From e40e0892c1aba8e2ca0a1bfb648c9a5fe4b2fe2f Mon Sep 17 00:00:00 2001 From: Lean stage0 autoupdater <> Date: Mon, 20 Jan 2025 03:43:04 +0000 Subject: [PATCH] chore: update stage0 --- stage0/stdlib/Init/Data/Array/Basic.c | 20 +- stage0/stdlib/Init/Data/Array/Lemmas.c | 358 +- stage0/stdlib/Init/Data/Char/Lemmas.c | 21 - stage0/stdlib/Init/Data/List/Basic.c | 39 - stage0/stdlib/Init/Data/List/MapIdx.c | 2 +- stage0/stdlib/Init/Grind/Tactics.c | 487 +- stage0/stdlib/Lean/Compiler/CSimpAttr.c | 6 +- stage0/stdlib/Lean/Elab/Tactic/Grind.c | 3254 ++++--- stage0/stdlib/Lean/Environment.c | 436 +- stage0/stdlib/Lean/Meta/IndPredBelow.c | 493 +- stage0/stdlib/Lean/Meta/Match/Match.c | 461 +- stage0/stdlib/Lean/Meta/Tactic/Grind.c | 238 +- .../Lean/Meta/Tactic/Grind/Arith/Offset.c | 322 +- stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c | 1768 +++- stage0/stdlib/Lean/Meta/Tactic/Grind/Beta.c | 3713 ++++++++ stage0/stdlib/Lean/Meta/Tactic/Grind/Cases.c | 3061 +++++- stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c | 8373 +++++++++++------ stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c | 2498 ++++- .../Lean/Meta/Tactic/Grind/EMatchTheorem.c | 6733 +++++++------ stage0/stdlib/Lean/Meta/Tactic/Grind/Ext.c | 33 +- .../Lean/Meta/Tactic/Grind/ForallProp.c | 635 +- .../Lean/Meta/Tactic/Grind/Internalize.c | 4408 +++++---- stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c | 90 +- stage0/stdlib/Lean/Meta/Tactic/Grind/Proj.c | 45 +- stage0/stdlib/Lean/Meta/Tactic/Grind/Proof.c | 318 +- .../stdlib/Lean/Meta/Tactic/Grind/Propagate.c | 1022 +- .../Lean/Meta/Tactic/Grind/PropagatorAttr.c | 4 +- .../stdlib/Lean/Meta/Tactic/Grind/SimpUtil.c | 4 +- stage0/stdlib/Lean/Meta/Tactic/Grind/Split.c | 1541 ++- stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c | 2298 +++-- 30 files changed, 28109 insertions(+), 14572 deletions(-) create mode 100644 stage0/stdlib/Lean/Meta/Tactic/Grind/Beta.c diff --git a/stage0/stdlib/Init/Data/Array/Basic.c b/stage0/stdlib/Init/Data/Array/Basic.c index 7a3973379174..2ff3713f581b 100644 --- a/stage0/stdlib/Init/Data/Array/Basic.c +++ b/stage0/stdlib/Init/Data/Array/Basic.c @@ -21,6 +21,7 @@ LEAN_EXPORT lean_object* l_Array_findFinIdx_x3f___rarg___boxed(lean_object*, lea LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Array_findRevM_x3f___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_eraseIdx_x21___rarg___closed__1; LEAN_EXPORT lean_object* l_Array_concatMapM(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___auto____x40_Init_Data_Array_Basic___hyg_11189_; LEAN_EXPORT lean_object* l_Array_takeWhile(lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Array_mapIdxM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___aux__Init__Data__Array__Basic______macroRules__term_x23_x5b___x2c_x5d__1___closed__5; @@ -191,6 +192,7 @@ static lean_object* l_term_x23_x5b___x2c_x5d___closed__5; LEAN_EXPORT lean_object* l_Array_getIdx_x3f___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_forM___spec__1___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_findSome_x3f___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___auto____x40_Init_Data_Array_Basic___hyg_10809_; LEAN_EXPORT lean_object* l_Array_findSome_x21(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_ofFn___rarg___boxed(lean_object*, lean_object*); @@ -475,7 +477,6 @@ static lean_object* l_Array_instRepr___rarg___closed__3; LEAN_EXPORT lean_object* l_Array_reduceOption___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_modify___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_term_x23_x5b___x2c_x5d___closed__11; -LEAN_EXPORT lean_object* l___auto____x40_Init_Data_Array_Basic___hyg_11179_; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Array_allM___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Array_findIdxM_x3f___spec__1___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); @@ -742,7 +743,6 @@ static lean_object* l_Array_getEvenElems___rarg___closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Array_findM_x3f___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_insertAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___auto____x40_Init_Data_Array_Basic___hyg_10799_; LEAN_EXPORT lean_object* l_Array_modifyMUnsafe___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapM_map___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_isEmpty___rarg(lean_object*); @@ -3375,7 +3375,7 @@ lean_inc(x_12); x_13 = lean_array_fget(x_2, x_5); lean_inc(x_3); lean_inc(x_5); -x_14 = lean_apply_2(x_3, x_5, x_13); +x_14 = lean_apply_3(x_3, x_5, x_13, lean_box(0)); x_15 = lean_alloc_closure((void*)(l_Array_mapFinIdxM_map___rarg___lambda__1___boxed), 7, 6); lean_closure_set(x_15, 0, x_5); lean_closure_set(x_15, 1, x_7); @@ -6257,7 +6257,7 @@ lean_dec(x_4); x_12 = lean_array_fget(x_3, x_5); lean_inc(x_2); lean_inc(x_5); -x_13 = lean_apply_2(x_2, x_5, x_12); +x_13 = lean_apply_3(x_2, x_5, x_12, lean_box(0)); x_14 = lean_nat_add(x_5, x_10); lean_dec(x_5); x_15 = lean_array_push(x_7, x_13); @@ -10116,7 +10116,7 @@ lean_dec(x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Basic___hyg_10799_() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Basic___hyg_10809_() { _start: { lean_object* x_1; @@ -10325,7 +10325,7 @@ x_2 = lean_alloc_closure((void*)(l_Array_eraseP___rarg), 2, 0); return x_2; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Basic___hyg_11179_() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Basic___hyg_11189_() { _start: { lean_object* x_1; @@ -12471,16 +12471,16 @@ l_Array_filter___rarg___closed__1 = _init_l_Array_filter___rarg___closed__1(); lean_mark_persistent(l_Array_filter___rarg___closed__1); l_Array_partition___rarg___closed__1 = _init_l_Array_partition___rarg___closed__1(); lean_mark_persistent(l_Array_partition___rarg___closed__1); -l___auto____x40_Init_Data_Array_Basic___hyg_10799_ = _init_l___auto____x40_Init_Data_Array_Basic___hyg_10799_(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Basic___hyg_10799_); +l___auto____x40_Init_Data_Array_Basic___hyg_10809_ = _init_l___auto____x40_Init_Data_Array_Basic___hyg_10809_(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Basic___hyg_10809_); l_Array_eraseIdx_x21___rarg___closed__1 = _init_l_Array_eraseIdx_x21___rarg___closed__1(); lean_mark_persistent(l_Array_eraseIdx_x21___rarg___closed__1); l_Array_eraseIdx_x21___rarg___closed__2 = _init_l_Array_eraseIdx_x21___rarg___closed__2(); lean_mark_persistent(l_Array_eraseIdx_x21___rarg___closed__2); l_Array_eraseIdx_x21___rarg___closed__3 = _init_l_Array_eraseIdx_x21___rarg___closed__3(); lean_mark_persistent(l_Array_eraseIdx_x21___rarg___closed__3); -l___auto____x40_Init_Data_Array_Basic___hyg_11179_ = _init_l___auto____x40_Init_Data_Array_Basic___hyg_11179_(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Basic___hyg_11179_); +l___auto____x40_Init_Data_Array_Basic___hyg_11189_ = _init_l___auto____x40_Init_Data_Array_Basic___hyg_11189_(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Basic___hyg_11189_); l_Array_insertIdx_x21___rarg___closed__1 = _init_l_Array_insertIdx_x21___rarg___closed__1(); lean_mark_persistent(l_Array_insertIdx_x21___rarg___closed__1); l_Array_insertIdx_x21___rarg___closed__2 = _init_l_Array_insertIdx_x21___rarg___closed__2(); diff --git a/stage0/stdlib/Init/Data/Array/Lemmas.c b/stage0/stdlib/Init/Data/Array/Lemmas.c index 79333c42f5bb..0396a1a08e0f 100644 --- a/stage0/stdlib/Init/Data/Array/Lemmas.c +++ b/stage0/stdlib/Init/Data/Array/Lemmas.c @@ -14,79 +14,73 @@ extern "C" { #endif LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_take_loop_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__22; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__8; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_findSomeRevM_x3f_find_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__20; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__31; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_findSomeRevM_x3f_find_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_filterMap__mkArray_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__29; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__List_filterMap__replicate_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_instDecidableMemOfLawfulBEq___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_toListRev___rarg___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_foldlM_loop_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176_; -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__26; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__22; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__25; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_toListRev___spec__1___rarg(lean_object*, size_t, size_t, lean_object*); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__15; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Array_instDecidableMemOfDecidableEq___spec__2(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_isEqvAux_match__1_splitter___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__30; lean_object* lean_array_push(lean_object*, lean_object*); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__30; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__GetElem_x3f_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_instDecidableMemOfLawfulBEq(lean_object*); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__6; uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Array_instDecidableForallForallMemOfDecidablePred___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__19; -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__4; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Option_getD_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__List_anyM_match__1_splitter___rarg(uint8_t, lean_object*, lean_object*); lean_object* l_Nat_decidableExistsLT_x27(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_foldl__filterMap_match__1_splitter(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Array_instDecidableMemOfDecidableEq___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__1; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_take_loop_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_isEqvAux_match__1_splitter(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__18; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_appendCore_loop_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__9; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_foldlM_loop_match__1_splitter(lean_object*); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__13; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__List_filterMap_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__List_foldl__filterMap_match__1_splitter(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_instDecidableMemOfDecidableEq(lean_object*); LEAN_EXPORT lean_object* l_Array_instDecidableExistsAndMemOfDecidablePred(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__List_filterMap_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__14; LEAN_EXPORT lean_object* l_Array_toListRev___rarg(lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__23; -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__28; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__4; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__20; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__18; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_filterMap__mkArray_match__1_splitter(lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__6; -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__3; LEAN_EXPORT lean_object* l_Array_contains___at_Array_instDecidableMemOfDecidableEq___spec__1(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__List_filterMap__replicate_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__14; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_appendCore_loop_match__1_splitter(lean_object*); LEAN_EXPORT lean_object* l_Array_contains___at_Array_instDecidableMemOfDecidableEq___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__25; -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__13; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__29; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__List_filterMap_match__1_splitter(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_toListRev___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Option_getD_match__1_splitter(lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__11; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__List_filterMap__replicate_match__1_splitter(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_isEqvAux_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_instDecidableExistsAndMemOfDecidablePred___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__27; -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__21; -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__15; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__23; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__12; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_isEqvAux_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_take_loop_match__1_splitter(lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__31; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_findSomeRevM_x3f_find_match__1_splitter(lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__17; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_toListRev___spec__1(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_foldl__filterMap_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__2; LEAN_EXPORT lean_object* l_Array_instDecidableForallForallMemOfDecidablePred(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__List_anyM_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_foldlM_loop_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -94,38 +88,44 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); uint8_t l_Array_contains___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_instDecidableMemOfLawfulBEq___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__5; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Option_getD_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__16; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Array_instDecidableMemOfDecidableEq___spec__2___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__27; lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__List_anyM_match__1_splitter(lean_object*); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__11; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__17; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__10; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__GetElem_x3f_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__16; LEAN_EXPORT lean_object* l_Array_instDecidableForallForallMemOfDecidablePred___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__19; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_appendCore_loop_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Array_instDecidableMemOfDecidableEq___rarg___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__2; lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_filterMap__mkArray_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__8; -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__7; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__28; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__7; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__List_foldl__filterMap_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_instDecidableMemOfDecidableEq___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_toListRev(lean_object*); LEAN_EXPORT lean_object* l_Array_instDecidableForallForallMemOfDecidablePred___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__9; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__21; uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__Array_foldl__filterMap_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__12; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__5; lean_object* l_Nat_decidableBallLT(lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__24; LEAN_EXPORT uint8_t l_Array_contains___at_Array_instDecidableMemOfDecidableEq___spec__1___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__1; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__3; +LEAN_EXPORT lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171_; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__List_foldl__filterMap_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lemmas_0__GetElem_x3f_match__1_splitter(lean_object*, lean_object*); -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__10; -static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__24; +static lean_object* l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__26; LEAN_EXPORT lean_object* l_Array_instDecidableForallForallMemOfDecidablePred___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -322,7 +322,7 @@ lean_dec(x_2); return x_4; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__1() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__1() { _start: { lean_object* x_1; @@ -330,7 +330,7 @@ x_1 = lean_mk_string_unchecked("Lean", 4, 4); return x_1; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__2() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__2() { _start: { lean_object* x_1; @@ -338,7 +338,7 @@ x_1 = lean_mk_string_unchecked("Parser", 6, 6); return x_1; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__3() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__3() { _start: { lean_object* x_1; @@ -346,7 +346,7 @@ x_1 = lean_mk_string_unchecked("Tactic", 6, 6); return x_1; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__4() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__4() { _start: { lean_object* x_1; @@ -354,19 +354,19 @@ x_1 = lean_mk_string_unchecked("tacticSeq", 9, 9); return x_1; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__5() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____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___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__1; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__2; -x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__3; -x_4 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__4; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__1; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__2; +x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__3; +x_4 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__4; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__6() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__6() { _start: { lean_object* x_1; lean_object* x_2; @@ -375,7 +375,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__7() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__7() { _start: { lean_object* x_1; @@ -383,19 +383,19 @@ x_1 = lean_mk_string_unchecked("tacticSeq1Indented", 18, 18); return x_1; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__8() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____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___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__1; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__2; -x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__3; -x_4 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__7; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__1; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__2; +x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__3; +x_4 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__7; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__9() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__9() { _start: { lean_object* x_1; @@ -403,17 +403,17 @@ x_1 = lean_mk_string_unchecked("null", 4, 4); return x_1; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__10() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__9; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__9; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__11() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__11() { _start: { lean_object* x_1; @@ -421,41 +421,41 @@ x_1 = lean_mk_string_unchecked("simp", 4, 4); return x_1; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__12() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____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___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__1; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__2; -x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__3; -x_4 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__11; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__1; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__2; +x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__3; +x_4 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__11; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__13() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(2); -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__11; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__11; 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___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__14() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__6; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__13; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__6; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__13; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__15() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__15() { _start: { lean_object* x_1; @@ -463,25 +463,25 @@ x_1 = lean_mk_string_unchecked("optConfig", 9, 9); return x_1; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__16() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____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___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__1; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__2; -x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__3; -x_4 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__15; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__1; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__2; +x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__3; +x_4 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__15; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__17() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__10; -x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__6; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__10; +x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__6; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -489,23 +489,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__18() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__6; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__17; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__6; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__17; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__19() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__16; -x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__18; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__16; +x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__18; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -513,63 +513,63 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__20() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__14; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__19; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__14; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__19; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__21() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__20; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__17; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__20; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__17; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__22() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__21; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__17; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__21; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__17; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__23() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__22; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__17; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__22; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__17; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__24() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__23; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__17; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__23; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__17; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__25() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__12; -x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__24; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__12; +x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__24; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -577,23 +577,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__26() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__6; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__25; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__6; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__25; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__27() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__10; -x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__26; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__10; +x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__26; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -601,23 +601,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__28() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__6; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__27; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__6; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__27; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__29() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__29() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__8; -x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__28; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__8; +x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__28; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -625,23 +625,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__30() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__30() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__6; -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__29; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__6; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__29; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__31() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__31() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__5; -x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__30; +x_2 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__5; +x_3 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__30; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -649,11 +649,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176_() { +static lean_object* _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171_() { _start: { lean_object* x_1; -x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__31; +x_1 = l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__31; return x_1; } } @@ -1333,70 +1333,70 @@ lean_dec_ref(res); res = initialize_Init_Data_List_ToArray(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__1 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__1(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__1); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__2 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__2(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__2); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__3 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__3(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__3); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__4 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__4(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__4); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__5 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__5(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__5); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__6 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__6(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__6); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__7 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__7(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__7); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__8 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__8(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__8); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__9 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__9(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__9); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__10 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__10(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__10); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__11 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__11(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__11); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__12 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__12(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__12); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__13 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__13(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__13); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__14 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__14(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__14); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__15 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__15(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__15); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__16 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__16(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__16); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__17 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__17(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__17); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__18 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__18(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__18); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__19 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__19(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__19); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__20 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__20(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__20); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__21 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__21(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__21); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__22 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__22(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__22); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__23 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__23(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__23); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__24 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__24(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__24); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__25 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__25(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__25); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__26 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__26(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__26); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__27 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__27(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__27); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__28 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__28(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__28); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__29 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__29(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__29); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__30 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__30(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__30); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__31 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__31(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176____closed__31); -l___auto____x40_Init_Data_Array_Lemmas___hyg_28176_ = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28176_(); -lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28176_); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__1 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__1(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__1); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__2 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__2(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__2); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__3 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__3(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__3); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__4 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__4(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__4); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__5 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__5(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__5); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__6 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__6(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__6); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__7 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__7(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__7); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__8 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__8(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__8); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__9 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__9(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__9); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__10 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__10(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__10); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__11 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__11(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__11); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__12 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__12(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__12); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__13 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__13(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__13); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__14 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__14(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__14); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__15 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__15(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__15); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__16 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__16(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__16); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__17 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__17(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__17); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__18 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__18(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__18); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__19 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__19(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__19); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__20 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__20(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__20); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__21 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__21(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__21); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__22 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__22(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__22); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__23 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__23(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__23); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__24 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__24(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__24); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__25 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__25(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__25); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__26 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__26(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__26); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__27 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__27(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__27); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__28 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__28(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__28); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__29 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__29(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__29); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__30 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__30(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__30); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__31 = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__31(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171____closed__31); +l___auto____x40_Init_Data_Array_Lemmas___hyg_28171_ = _init_l___auto____x40_Init_Data_Array_Lemmas___hyg_28171_(); +lean_mark_persistent(l___auto____x40_Init_Data_Array_Lemmas___hyg_28171_); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Data/Char/Lemmas.c b/stage0/stdlib/Init/Data/Char/Lemmas.c index 5d39fb75a253..7c029a21d98d 100644 --- a/stage0/stdlib/Init/Data/Char/Lemmas.c +++ b/stage0/stdlib/Init/Data/Char/Lemmas.c @@ -14,11 +14,8 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_Char_leTrans; -LEAN_EXPORT lean_object* l_String_csize(uint32_t); LEAN_EXPORT lean_object* l_Char_ltTrans; LEAN_EXPORT lean_object* l_Char_notLTTrans; -LEAN_EXPORT lean_object* l_String_csize___boxed(lean_object*); -lean_object* l_Char_utf8Size(uint32_t); static lean_object* _init_l_Char_leTrans() { _start: { @@ -37,24 +34,6 @@ static lean_object* _init_l_Char_notLTTrans() { return lean_box(0); } } -LEAN_EXPORT lean_object* l_String_csize(uint32_t x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Char_utf8Size(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_String_csize___boxed(lean_object* x_1) { -_start: -{ -uint32_t x_2; lean_object* x_3; -x_2 = lean_unbox_uint32(x_1); -lean_dec(x_1); -x_3 = l_String_csize(x_2); -return x_3; -} -} lean_object* initialize_Init_Data_Char_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_UInt_Lemmas(uint8_t builtin, lean_object*); static bool _G_initialized = false; diff --git a/stage0/stdlib/Init/Data/List/Basic.c b/stage0/stdlib/Init/Data/List/Basic.c index 9d5458801eb3..769a4a58f01d 100644 --- a/stage0/stdlib/Init/Data/List/Basic.c +++ b/stage0/stdlib/Init/Data/List/Basic.c @@ -185,7 +185,6 @@ static lean_object* l_List___aux__Init__Data__List__Basic______macroRules__List_ LEAN_EXPORT lean_object* l_List_groupBy___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_take___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_isEmpty___rarg___boxed(lean_object*); -LEAN_EXPORT uint8_t l_List_notElem___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_List_term___x3c_x2b_____closed__3; LEAN_EXPORT lean_object* l_List_filterMap___at_List_reduceOption___spec__1___rarg(lean_object*); static lean_object* l___auto____x40_Init_Data_List_Basic___hyg_2209____closed__28; @@ -284,7 +283,6 @@ LEAN_EXPORT lean_object* l_List_dropLast___rarg(lean_object*); LEAN_EXPORT lean_object* l_List_head___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_span_loop___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_List_term___x3c_x2b_____closed__5; -LEAN_EXPORT lean_object* l_List_notElem(lean_object*); static lean_object* l___auto____x40_Init_Data_List_Basic___hyg_2209____closed__20; LEAN_EXPORT lean_object* l_List_lex(lean_object*); static lean_object* l_List_term___x3c_x3a_x2b_____closed__1; @@ -416,7 +414,6 @@ LEAN_EXPORT lean_object* l_List_headD___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_sum___boxed(lean_object*); LEAN_EXPORT lean_object* l_List_drop___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___auto____x40_Init_Data_List_Basic___hyg_2209_; -LEAN_EXPORT lean_object* l_List_notElem___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_mod(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_rotateLeft(lean_object*); LEAN_EXPORT lean_object* l_List_foldr___at_List_intersperseTR___spec__1(lean_object*); @@ -3068,42 +3065,6 @@ x_5 = lean_box(x_4); return x_5; } } -LEAN_EXPORT uint8_t l_List_notElem___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = l_List_elem___rarg(x_1, x_2, x_3); -if (x_4 == 0) -{ -uint8_t x_5; -x_5 = 1; -return x_5; -} -else -{ -uint8_t x_6; -x_6 = 0; -return x_6; -} -} -} -LEAN_EXPORT lean_object* l_List_notElem(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_List_notElem___rarg___boxed), 3, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_List_notElem___rarg___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_List_notElem___rarg(x_1, x_2, x_3); -x_5 = lean_box(x_4); -return x_5; -} -} LEAN_EXPORT uint8_t l_List_contains___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { diff --git a/stage0/stdlib/Init/Data/List/MapIdx.c b/stage0/stdlib/Init/Data/List/MapIdx.c index 007fb65f0474..e7b28a7fd698 100644 --- a/stage0/stdlib/Init/Data/List/MapIdx.c +++ b/stage0/stdlib/Init/Data/List/MapIdx.c @@ -55,7 +55,7 @@ lean_inc(x_8); lean_dec(x_3); x_9 = lean_array_get_size(x_4); lean_inc(x_2); -x_10 = lean_apply_2(x_2, x_9, x_7); +x_10 = lean_apply_3(x_2, x_9, x_7, lean_box(0)); x_11 = lean_array_push(x_4, x_10); x_3 = x_8; x_4 = x_11; diff --git a/stage0/stdlib/Init/Grind/Tactics.c b/stage0/stdlib/Init/Grind/Tactics.c index 9bcd489cee7f..298deecb089c 100644 --- a/stage0/stdlib/Init/Grind/Tactics.c +++ b/stage0/stdlib/Init/Grind/Tactics.c @@ -14,25 +14,29 @@ extern "C" { #endif static lean_object* l_Lean_Parser_Attr_grindEqBoth___closed__12; +static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__7; static lean_object* l_Lean_Parser_Tactic_grind___closed__11; static lean_object* l_Lean_Parser_Attr_grindEqBoth___closed__4; static lean_object* l_Lean_Parser_Tactic_grind___closed__7; static lean_object* l_Lean_Parser_Tactic_grind___closed__15; -static lean_object* l_Lean_Parser_Attr_grindThmMod___closed__8; LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grindBwd; +static lean_object* l_Lean_Parser_Attr_grindCasesEager___closed__6; static lean_object* l_Lean_Parser_Tactic_grind___closed__24; +static lean_object* l_Lean_Parser_Attr_grindCasesEager___closed__2; static lean_object* l_Lean_Parser_Attr_grindBwd___closed__1; static lean_object* l_Lean_Parser_Tactic_grindLemma___closed__4; -static lean_object* l_Lean_Parser_Attr_grindThmMod___closed__5; -static lean_object* l_Lean_Parser_Attr_grindThmMod___closed__9; +static lean_object* l_Lean_Parser_Attr_grindCasesEager___closed__5; static lean_object* l_Lean_Parser_Tactic_grindParam___closed__1; static lean_object* l_Lean_Parser_Tactic_grindErase___closed__8; +static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__5; +static lean_object* l_Lean_Parser_Attr_grindMod___closed__9; LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grindFwd; static lean_object* l_Lean_Parser_Tactic_grind___closed__29; static lean_object* l_Lean_Parser_Tactic_grindErase___closed__2; extern lean_object* l_Lean_Parser_Tactic_optConfig; static lean_object* l_Lean_Parser_Attr_grindEqBoth___closed__8; static lean_object* l_Lean_Parser_Tactic_grind___closed__23; +LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grindEqBwd; static lean_object* l_Lean_Parser_Attr_grindFwd___closed__4; static lean_object* l_Lean_Parser_Attr_grindEq___closed__3; static lean_object* l_Lean_Parser_Attr_grind___closed__4; @@ -44,91 +48,110 @@ static lean_object* l_Lean_Parser_Attr_grindEqRhs___closed__4; static lean_object* l_Lean_Parser_Tactic_grind___closed__10; LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grindEqRhs; static lean_object* l_Lean_Parser_Attr_grindEqBoth___closed__6; +LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grindCasesEager; static lean_object* l_Lean_Parser_Attr_grindEq___closed__8; static lean_object* l_Lean_Parser_Tactic_grindErase___closed__4; static lean_object* l_Lean_Parser_Attr_grindEqBoth___closed__9; -LEAN_EXPORT lean_object* l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_151____boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Parser_Attr_grindThmMod___closed__2; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_grindParam; +static lean_object* l_Lean_Parser_Attr_grindCases___closed__5; LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grind; static lean_object* l_Lean_Parser_Attr_grindEq___closed__5; static lean_object* l_Lean_Parser_Tactic_grindErase___closed__9; static lean_object* l_Lean_Parser_Attr_grindBwd___closed__2; static lean_object* l_Lean_Parser_Attr_grindEqRhs___closed__1; +static lean_object* l_Lean_Parser_Attr_grindMod___closed__12; static lean_object* l_Lean_Parser_Tactic_grind___closed__6; static lean_object* l_Lean_Parser_Attr_grindEq___closed__1; -static lean_object* l_Lean_Parser_Attr_grindThmMod___closed__3; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_grind; static lean_object* l_Lean_Parser_Tactic_grind___closed__14; 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; static lean_object* l_Lean_Parser_Attr_grindEqBoth___closed__7; -LEAN_EXPORT uint8_t l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_151_(lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Attr_grindMod___closed__2; static lean_object* l_Lean_Parser_Tactic_grind___closed__9; +static lean_object* l_Lean_Parser_Attr_grindMod___closed__8; static lean_object* l_Lean_Parser_Attr_grindFwd___closed__3; static lean_object* l_Lean_Parser_Attr_grindEqBoth___closed__5; static lean_object* l_Lean_Parser_Attr_grindEqBoth___closed__3; +LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grindMod; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_grindErase; +static lean_object* l_Lean_Parser_Attr_grindMod___closed__1; static lean_object* l_Lean_Parser_Attr_grindEqBoth___closed__1; static lean_object* l_Lean_Parser_Tactic_grind___closed__1; +static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__6; LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grindEqBoth; static lean_object* l_Lean_Parser_Tactic_grindErase___closed__3; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_grindLemma; LEAN_EXPORT lean_object* l_Lean_Grind_instInhabitedConfig; +LEAN_EXPORT uint8_t l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_220_(lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Attr_grindCasesEager___closed__3; static lean_object* l_Lean_Parser_Attr_grind___closed__3; +static lean_object* l_Lean_Parser_Attr_grindCases___closed__4; static lean_object* l_Lean_Parser_Tactic_grindParam___closed__3; static lean_object* l_Lean_Parser_Tactic_grind___closed__17; static lean_object* l_Lean_Parser_Tactic_grind___closed__5; static lean_object* l_Lean_Parser_Tactic_grind___closed__18; static lean_object* l_Lean_Parser_Attr_grindFwd___closed__1; -LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grindThmMod; +LEAN_EXPORT lean_object* l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_220____boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Attr_grindCases___closed__2; static lean_object* l_Lean_Parser_Attr_grindFwd___closed__5; static lean_object* l_Lean_Parser_Attr_grind___closed__2; static lean_object* l_Lean_Parser_Attr_grindEq___closed__7; static lean_object* l_Lean_Parser_Tactic_grindErase___closed__7; static lean_object* l_Lean_Parser_Tactic_grind___closed__13; static lean_object* l_Lean_Parser_Attr_grindEqRhs___closed__5; +LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grindCases; static lean_object* l_Lean_Parser_Tactic_grind___closed__3; +static lean_object* l_Lean_Parser_Attr_grindMod___closed__11; static lean_object* l_Lean_Parser_Attr_grind___closed__6; +static lean_object* l_Lean_Parser_Attr_grindCases___closed__3; +static lean_object* l_Lean_Parser_Attr_grindMod___closed__6; static lean_object* l_Lean_Parser_Tactic_grindErase___closed__5; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_grindParam___closed__4; static lean_object* l_Lean_Parser_Tactic_grindErase___closed__1; static lean_object* l_Lean_Parser_Tactic_grind___closed__27; +static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__4; static lean_object* l_Lean_Parser_Attr_grindEqBoth___closed__2; static lean_object* l_Lean_Parser_Attr_grindBwd___closed__3; static lean_object* l_Lean_Parser_Tactic_grind___closed__25; static lean_object* l_Lean_Parser_Tactic_grind___closed__19; static lean_object* l_Lean_Parser_Attr_grindEqRhs___closed__3; +static lean_object* l_Lean_Parser_Attr_grindCases___closed__1; static lean_object* l_Lean_Parser_Attr_grindEq___closed__2; static lean_object* l_Lean_Parser_Attr_grindEq___closed__6; static lean_object* l_Lean_Parser_Tactic_grind___closed__28; static lean_object* l_Lean_Parser_Tactic_grindLemma___closed__2; +static lean_object* l_Lean_Parser_Attr_grindCasesEager___closed__7; LEAN_EXPORT lean_object* l_Lean_Parser_Attr_grindEq; static lean_object* l_Lean_Parser_Tactic_grind___closed__26; +static lean_object* l_Lean_Parser_Attr_grindCasesEager___closed__1; static lean_object* l_Lean_Parser_Tactic_grind___closed__4; static lean_object* l_Lean_Parser_Attr_grindEqBoth___closed__11; +static lean_object* l_Lean_Parser_Attr_grindMod___closed__7; static lean_object* l_Lean_Parser_Attr_grind___closed__5; +static lean_object* l_Lean_Parser_Attr_grindMod___closed__10; static lean_object* l_Lean_Parser_Tactic_grind___closed__30; -static lean_object* l_Lean_Parser_Attr_grindThmMod___closed__6; static lean_object* l_Lean_Parser_Tactic_grind___closed__21; static lean_object* l_Lean_Parser_Tactic_grind___closed__8; -static lean_object* l_Lean_Parser_Attr_grindThmMod___closed__4; static lean_object* l_Lean_Parser_Attr_grindEqBoth___closed__10; +static lean_object* l_Lean_Parser_Attr_grindMod___closed__5; +static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__3; +static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__2; lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Attr_grindEqBwd___closed__1; +static lean_object* l_Lean_Parser_Attr_grindMod___closed__4; static lean_object* l_Lean_Parser_Attr_grind___closed__8; -static lean_object* l_Lean_Parser_Attr_grindBwd___closed__4; +static lean_object* l_Lean_Parser_Attr_grindCasesEager___closed__4; static lean_object* l_Lean_Parser_Attr_grind___closed__7; static lean_object* l_Lean_Parser_Tactic_grind___closed__20; static lean_object* l_Lean_Parser_Tactic_grindErase___closed__6; -static lean_object* l_Lean_Parser_Attr_grindBwd___closed__5; static lean_object* l_Lean_Parser_Attr_grindFwd___closed__2; -static lean_object* l_Lean_Parser_Attr_grindThmMod___closed__1; static lean_object* l_Lean_Parser_Tactic_grindErase___closed__10; -static lean_object* l_Lean_Parser_Attr_grindThmMod___closed__7; static lean_object* l_Lean_Parser_Attr_grindEqRhs___closed__2; +static lean_object* l_Lean_Parser_Attr_grindMod___closed__3; static lean_object* l_Lean_Parser_Attr_grind___closed__1; static lean_object* l_Lean_Parser_Tactic_grind___closed__22; static lean_object* l_Lean_Parser_Tactic_grindLemma___closed__3; @@ -422,27 +445,27 @@ x_1 = l_Lean_Parser_Attr_grindEqRhs___closed__5; return x_1; } } -static lean_object* _init_l_Lean_Parser_Attr_grindBwd___closed__1() { +static lean_object* _init_l_Lean_Parser_Attr_grindEqBwd___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("grindBwd", 8, 8); +x_1 = lean_mk_string_unchecked("grindEqBwd", 10, 10); return x_1; } } -static lean_object* _init_l_Lean_Parser_Attr_grindBwd___closed__2() { +static lean_object* _init_l_Lean_Parser_Attr_grindEqBwd___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_Parser_Attr_grindEq___closed__1; x_2 = l_Lean_Parser_Attr_grindEq___closed__2; x_3 = l_Lean_Parser_Attr_grindEq___closed__3; -x_4 = l_Lean_Parser_Attr_grindBwd___closed__1; +x_4 = l_Lean_Parser_Attr_grindEqBwd___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_Parser_Attr_grindBwd___closed__3() { +static lean_object* _init_l_Lean_Parser_Attr_grindEqBwd___closed__3() { _start: { lean_object* x_1; @@ -450,23 +473,91 @@ x_1 = lean_mk_string_unchecked("←", 3, 1); return x_1; } } -static lean_object* _init_l_Lean_Parser_Attr_grindBwd___closed__4() { +static lean_object* _init_l_Lean_Parser_Attr_grindEqBwd___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Attr_grindBwd___closed__3; +x_1 = l_Lean_Parser_Attr_grindEqBwd___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_Parser_Attr_grindBwd___closed__5() { +static lean_object* _init_l_Lean_Parser_Attr_grindEqBwd___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Attr_grindEqBoth___closed__6; +x_2 = l_Lean_Parser_Attr_grindEqBwd___closed__4; +x_3 = l_Lean_Parser_Attr_grindEq___closed__7; +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_Attr_grindEqBwd___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Attr_grindEqBoth___closed__4; +x_2 = l_Lean_Parser_Attr_grindEqBwd___closed__5; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grindEqBwd___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Attr_grindEqBwd___closed__1; +x_2 = l_Lean_Parser_Attr_grindEqBwd___closed__2; +x_3 = l_Lean_Parser_Attr_grindEqBwd___closed__6; +x_4 = lean_alloc_ctor(9, 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_Attr_grindEqBwd() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Attr_grindEqBwd___closed__7; +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grindBwd___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grindBwd", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grindBwd___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_Parser_Attr_grindEq___closed__1; +x_2 = l_Lean_Parser_Attr_grindEq___closed__2; +x_3 = l_Lean_Parser_Attr_grindEq___closed__3; +x_4 = l_Lean_Parser_Attr_grindBwd___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_Parser_Attr_grindBwd___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Attr_grindBwd___closed__1; x_2 = l_Lean_Parser_Attr_grindBwd___closed__2; -x_3 = l_Lean_Parser_Attr_grindBwd___closed__4; +x_3 = l_Lean_Parser_Attr_grindEqBwd___closed__4; x_4 = lean_alloc_ctor(9, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -478,7 +569,7 @@ static lean_object* _init_l_Lean_Parser_Attr_grindBwd() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Attr_grindBwd___closed__5; +x_1 = l_Lean_Parser_Attr_grindBwd___closed__3; return x_1; } } @@ -542,27 +633,177 @@ x_1 = l_Lean_Parser_Attr_grindFwd___closed__5; return x_1; } } -static lean_object* _init_l_Lean_Parser_Attr_grindThmMod___closed__1() { +static lean_object* _init_l_Lean_Parser_Attr_grindCases___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("grindThmMod", 11, 11); +x_1 = lean_mk_string_unchecked("grindCases", 10, 10); return x_1; } } -static lean_object* _init_l_Lean_Parser_Attr_grindThmMod___closed__2() { +static lean_object* _init_l_Lean_Parser_Attr_grindCases___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_Parser_Attr_grindEq___closed__1; x_2 = l_Lean_Parser_Attr_grindEq___closed__2; x_3 = l_Lean_Parser_Attr_grindEq___closed__3; -x_4 = l_Lean_Parser_Attr_grindThmMod___closed__1; +x_4 = l_Lean_Parser_Attr_grindCases___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_Parser_Attr_grindThmMod___closed__3() { +static lean_object* _init_l_Lean_Parser_Attr_grindCases___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("cases", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grindCases___closed__4() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Attr_grindCases___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_Parser_Attr_grindCases___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Attr_grindCases___closed__1; +x_2 = l_Lean_Parser_Attr_grindCases___closed__2; +x_3 = l_Lean_Parser_Attr_grindCases___closed__4; +x_4 = lean_alloc_ctor(9, 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_Attr_grindCases() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Attr_grindCases___closed__5; +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grindCasesEager___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grindCasesEager", 15, 15); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grindCasesEager___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_Parser_Attr_grindEq___closed__1; +x_2 = l_Lean_Parser_Attr_grindEq___closed__2; +x_3 = l_Lean_Parser_Attr_grindEq___closed__3; +x_4 = l_Lean_Parser_Attr_grindCasesEager___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_Parser_Attr_grindCasesEager___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("eager", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grindCasesEager___closed__4() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Attr_grindCasesEager___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_Parser_Attr_grindCasesEager___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Attr_grindEqBoth___closed__6; +x_2 = l_Lean_Parser_Attr_grindCases___closed__4; +x_3 = l_Lean_Parser_Attr_grindCasesEager___closed__4; +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_Attr_grindCasesEager___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Attr_grindEqBoth___closed__4; +x_2 = l_Lean_Parser_Attr_grindCasesEager___closed__5; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grindCasesEager___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Attr_grindCasesEager___closed__1; +x_2 = l_Lean_Parser_Attr_grindCasesEager___closed__2; +x_3 = l_Lean_Parser_Attr_grindCasesEager___closed__6; +x_4 = lean_alloc_ctor(9, 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_Attr_grindCasesEager() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Attr_grindCasesEager___closed__7; +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grindMod___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grindMod", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Parser_Attr_grindMod___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_Parser_Attr_grindEq___closed__1; +x_2 = l_Lean_Parser_Attr_grindEq___closed__2; +x_3 = l_Lean_Parser_Attr_grindEq___closed__3; +x_4 = l_Lean_Parser_Attr_grindMod___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_Parser_Attr_grindMod___closed__3() { _start: { lean_object* x_1; @@ -570,23 +811,65 @@ x_1 = lean_mk_string_unchecked("orelse", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Parser_Attr_grindThmMod___closed__4() { +static lean_object* _init_l_Lean_Parser_Attr_grindMod___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Attr_grindThmMod___closed__3; +x_2 = l_Lean_Parser_Attr_grindMod___closed__3; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Attr_grindThmMod___closed__5() { +static lean_object* _init_l_Lean_Parser_Attr_grindMod___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Attr_grindThmMod___closed__4; +x_1 = l_Lean_Parser_Attr_grindMod___closed__4; +x_2 = l_Lean_Parser_Attr_grindCasesEager; +x_3 = l_Lean_Parser_Attr_grindCases; +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_Attr_grindMod___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Attr_grindMod___closed__4; +x_2 = l_Lean_Parser_Attr_grindFwd; +x_3 = l_Lean_Parser_Attr_grindMod___closed__5; +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_Attr_grindMod___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Attr_grindMod___closed__4; x_2 = l_Lean_Parser_Attr_grindBwd; -x_3 = l_Lean_Parser_Attr_grindFwd; +x_3 = l_Lean_Parser_Attr_grindMod___closed__6; +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_Attr_grindMod___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Attr_grindMod___closed__4; +x_2 = l_Lean_Parser_Attr_grindEqBwd; +x_3 = l_Lean_Parser_Attr_grindMod___closed__7; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -594,13 +877,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Attr_grindThmMod___closed__6() { +static lean_object* _init_l_Lean_Parser_Attr_grindMod___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Attr_grindThmMod___closed__4; +x_1 = l_Lean_Parser_Attr_grindMod___closed__4; x_2 = l_Lean_Parser_Attr_grindEq; -x_3 = l_Lean_Parser_Attr_grindThmMod___closed__5; +x_3 = l_Lean_Parser_Attr_grindMod___closed__8; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -608,13 +891,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Attr_grindThmMod___closed__7() { +static lean_object* _init_l_Lean_Parser_Attr_grindMod___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Attr_grindThmMod___closed__4; +x_1 = l_Lean_Parser_Attr_grindMod___closed__4; x_2 = l_Lean_Parser_Attr_grindEqRhs; -x_3 = l_Lean_Parser_Attr_grindThmMod___closed__6; +x_3 = l_Lean_Parser_Attr_grindMod___closed__9; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -622,13 +905,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Attr_grindThmMod___closed__8() { +static lean_object* _init_l_Lean_Parser_Attr_grindMod___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Attr_grindThmMod___closed__4; +x_1 = l_Lean_Parser_Attr_grindMod___closed__4; x_2 = l_Lean_Parser_Attr_grindEqBoth; -x_3 = l_Lean_Parser_Attr_grindThmMod___closed__7; +x_3 = l_Lean_Parser_Attr_grindMod___closed__10; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -636,13 +919,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Attr_grindThmMod___closed__9() { +static lean_object* _init_l_Lean_Parser_Attr_grindMod___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Attr_grindThmMod___closed__1; -x_2 = l_Lean_Parser_Attr_grindThmMod___closed__2; -x_3 = l_Lean_Parser_Attr_grindThmMod___closed__8; +x_1 = l_Lean_Parser_Attr_grindMod___closed__1; +x_2 = l_Lean_Parser_Attr_grindMod___closed__2; +x_3 = l_Lean_Parser_Attr_grindMod___closed__11; x_4 = lean_alloc_ctor(9, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -650,11 +933,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Attr_grindThmMod() { +static lean_object* _init_l_Lean_Parser_Attr_grindMod() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Attr_grindThmMod___closed__9; +x_1 = l_Lean_Parser_Attr_grindMod___closed__12; return x_1; } } @@ -713,7 +996,7 @@ static lean_object* _init_l_Lean_Parser_Attr_grind___closed__6() { { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Attr_grind___closed__5; -x_2 = l_Lean_Parser_Attr_grindThmMod; +x_2 = l_Lean_Parser_Attr_grindMod; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -785,7 +1068,7 @@ 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_151_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_220_(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; uint8_t x_8; uint8_t x_9; uint8_t 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; uint8_t x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_34; uint8_t x_41; uint8_t x_48; uint8_t x_55; @@ -1081,11 +1364,11 @@ goto block_47; } } } -LEAN_EXPORT lean_object* l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_151____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_220____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_151_(x_1, x_2); +x_3 = l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_220_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -1096,7 +1379,7 @@ 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_151____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_Grind_Tactics_0__Lean_Grind_beqConfig____x40_Init_Grind_Tactics___hyg_220____boxed), 2, 0); return x_1; } } @@ -1298,7 +1581,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_grindParam___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Attr_grindThmMod___closed__4; +x_1 = l_Lean_Parser_Attr_grindMod___closed__4; x_2 = l_Lean_Parser_Tactic_grindErase; x_3 = l_Lean_Parser_Tactic_grindLemma; x_4 = lean_alloc_ctor(2, 3, 0); @@ -1739,16 +2022,28 @@ l_Lean_Parser_Attr_grindEqRhs___closed__5 = _init_l_Lean_Parser_Attr_grindEqRhs_ lean_mark_persistent(l_Lean_Parser_Attr_grindEqRhs___closed__5); l_Lean_Parser_Attr_grindEqRhs = _init_l_Lean_Parser_Attr_grindEqRhs(); lean_mark_persistent(l_Lean_Parser_Attr_grindEqRhs); +l_Lean_Parser_Attr_grindEqBwd___closed__1 = _init_l_Lean_Parser_Attr_grindEqBwd___closed__1(); +lean_mark_persistent(l_Lean_Parser_Attr_grindEqBwd___closed__1); +l_Lean_Parser_Attr_grindEqBwd___closed__2 = _init_l_Lean_Parser_Attr_grindEqBwd___closed__2(); +lean_mark_persistent(l_Lean_Parser_Attr_grindEqBwd___closed__2); +l_Lean_Parser_Attr_grindEqBwd___closed__3 = _init_l_Lean_Parser_Attr_grindEqBwd___closed__3(); +lean_mark_persistent(l_Lean_Parser_Attr_grindEqBwd___closed__3); +l_Lean_Parser_Attr_grindEqBwd___closed__4 = _init_l_Lean_Parser_Attr_grindEqBwd___closed__4(); +lean_mark_persistent(l_Lean_Parser_Attr_grindEqBwd___closed__4); +l_Lean_Parser_Attr_grindEqBwd___closed__5 = _init_l_Lean_Parser_Attr_grindEqBwd___closed__5(); +lean_mark_persistent(l_Lean_Parser_Attr_grindEqBwd___closed__5); +l_Lean_Parser_Attr_grindEqBwd___closed__6 = _init_l_Lean_Parser_Attr_grindEqBwd___closed__6(); +lean_mark_persistent(l_Lean_Parser_Attr_grindEqBwd___closed__6); +l_Lean_Parser_Attr_grindEqBwd___closed__7 = _init_l_Lean_Parser_Attr_grindEqBwd___closed__7(); +lean_mark_persistent(l_Lean_Parser_Attr_grindEqBwd___closed__7); +l_Lean_Parser_Attr_grindEqBwd = _init_l_Lean_Parser_Attr_grindEqBwd(); +lean_mark_persistent(l_Lean_Parser_Attr_grindEqBwd); l_Lean_Parser_Attr_grindBwd___closed__1 = _init_l_Lean_Parser_Attr_grindBwd___closed__1(); lean_mark_persistent(l_Lean_Parser_Attr_grindBwd___closed__1); l_Lean_Parser_Attr_grindBwd___closed__2 = _init_l_Lean_Parser_Attr_grindBwd___closed__2(); lean_mark_persistent(l_Lean_Parser_Attr_grindBwd___closed__2); l_Lean_Parser_Attr_grindBwd___closed__3 = _init_l_Lean_Parser_Attr_grindBwd___closed__3(); lean_mark_persistent(l_Lean_Parser_Attr_grindBwd___closed__3); -l_Lean_Parser_Attr_grindBwd___closed__4 = _init_l_Lean_Parser_Attr_grindBwd___closed__4(); -lean_mark_persistent(l_Lean_Parser_Attr_grindBwd___closed__4); -l_Lean_Parser_Attr_grindBwd___closed__5 = _init_l_Lean_Parser_Attr_grindBwd___closed__5(); -lean_mark_persistent(l_Lean_Parser_Attr_grindBwd___closed__5); l_Lean_Parser_Attr_grindBwd = _init_l_Lean_Parser_Attr_grindBwd(); lean_mark_persistent(l_Lean_Parser_Attr_grindBwd); l_Lean_Parser_Attr_grindFwd___closed__1 = _init_l_Lean_Parser_Attr_grindFwd___closed__1(); @@ -1763,26 +2058,60 @@ l_Lean_Parser_Attr_grindFwd___closed__5 = _init_l_Lean_Parser_Attr_grindFwd___cl lean_mark_persistent(l_Lean_Parser_Attr_grindFwd___closed__5); l_Lean_Parser_Attr_grindFwd = _init_l_Lean_Parser_Attr_grindFwd(); lean_mark_persistent(l_Lean_Parser_Attr_grindFwd); -l_Lean_Parser_Attr_grindThmMod___closed__1 = _init_l_Lean_Parser_Attr_grindThmMod___closed__1(); -lean_mark_persistent(l_Lean_Parser_Attr_grindThmMod___closed__1); -l_Lean_Parser_Attr_grindThmMod___closed__2 = _init_l_Lean_Parser_Attr_grindThmMod___closed__2(); -lean_mark_persistent(l_Lean_Parser_Attr_grindThmMod___closed__2); -l_Lean_Parser_Attr_grindThmMod___closed__3 = _init_l_Lean_Parser_Attr_grindThmMod___closed__3(); -lean_mark_persistent(l_Lean_Parser_Attr_grindThmMod___closed__3); -l_Lean_Parser_Attr_grindThmMod___closed__4 = _init_l_Lean_Parser_Attr_grindThmMod___closed__4(); -lean_mark_persistent(l_Lean_Parser_Attr_grindThmMod___closed__4); -l_Lean_Parser_Attr_grindThmMod___closed__5 = _init_l_Lean_Parser_Attr_grindThmMod___closed__5(); -lean_mark_persistent(l_Lean_Parser_Attr_grindThmMod___closed__5); -l_Lean_Parser_Attr_grindThmMod___closed__6 = _init_l_Lean_Parser_Attr_grindThmMod___closed__6(); -lean_mark_persistent(l_Lean_Parser_Attr_grindThmMod___closed__6); -l_Lean_Parser_Attr_grindThmMod___closed__7 = _init_l_Lean_Parser_Attr_grindThmMod___closed__7(); -lean_mark_persistent(l_Lean_Parser_Attr_grindThmMod___closed__7); -l_Lean_Parser_Attr_grindThmMod___closed__8 = _init_l_Lean_Parser_Attr_grindThmMod___closed__8(); -lean_mark_persistent(l_Lean_Parser_Attr_grindThmMod___closed__8); -l_Lean_Parser_Attr_grindThmMod___closed__9 = _init_l_Lean_Parser_Attr_grindThmMod___closed__9(); -lean_mark_persistent(l_Lean_Parser_Attr_grindThmMod___closed__9); -l_Lean_Parser_Attr_grindThmMod = _init_l_Lean_Parser_Attr_grindThmMod(); -lean_mark_persistent(l_Lean_Parser_Attr_grindThmMod); +l_Lean_Parser_Attr_grindCases___closed__1 = _init_l_Lean_Parser_Attr_grindCases___closed__1(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCases___closed__1); +l_Lean_Parser_Attr_grindCases___closed__2 = _init_l_Lean_Parser_Attr_grindCases___closed__2(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCases___closed__2); +l_Lean_Parser_Attr_grindCases___closed__3 = _init_l_Lean_Parser_Attr_grindCases___closed__3(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCases___closed__3); +l_Lean_Parser_Attr_grindCases___closed__4 = _init_l_Lean_Parser_Attr_grindCases___closed__4(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCases___closed__4); +l_Lean_Parser_Attr_grindCases___closed__5 = _init_l_Lean_Parser_Attr_grindCases___closed__5(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCases___closed__5); +l_Lean_Parser_Attr_grindCases = _init_l_Lean_Parser_Attr_grindCases(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCases); +l_Lean_Parser_Attr_grindCasesEager___closed__1 = _init_l_Lean_Parser_Attr_grindCasesEager___closed__1(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCasesEager___closed__1); +l_Lean_Parser_Attr_grindCasesEager___closed__2 = _init_l_Lean_Parser_Attr_grindCasesEager___closed__2(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCasesEager___closed__2); +l_Lean_Parser_Attr_grindCasesEager___closed__3 = _init_l_Lean_Parser_Attr_grindCasesEager___closed__3(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCasesEager___closed__3); +l_Lean_Parser_Attr_grindCasesEager___closed__4 = _init_l_Lean_Parser_Attr_grindCasesEager___closed__4(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCasesEager___closed__4); +l_Lean_Parser_Attr_grindCasesEager___closed__5 = _init_l_Lean_Parser_Attr_grindCasesEager___closed__5(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCasesEager___closed__5); +l_Lean_Parser_Attr_grindCasesEager___closed__6 = _init_l_Lean_Parser_Attr_grindCasesEager___closed__6(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCasesEager___closed__6); +l_Lean_Parser_Attr_grindCasesEager___closed__7 = _init_l_Lean_Parser_Attr_grindCasesEager___closed__7(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCasesEager___closed__7); +l_Lean_Parser_Attr_grindCasesEager = _init_l_Lean_Parser_Attr_grindCasesEager(); +lean_mark_persistent(l_Lean_Parser_Attr_grindCasesEager); +l_Lean_Parser_Attr_grindMod___closed__1 = _init_l_Lean_Parser_Attr_grindMod___closed__1(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod___closed__1); +l_Lean_Parser_Attr_grindMod___closed__2 = _init_l_Lean_Parser_Attr_grindMod___closed__2(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod___closed__2); +l_Lean_Parser_Attr_grindMod___closed__3 = _init_l_Lean_Parser_Attr_grindMod___closed__3(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod___closed__3); +l_Lean_Parser_Attr_grindMod___closed__4 = _init_l_Lean_Parser_Attr_grindMod___closed__4(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod___closed__4); +l_Lean_Parser_Attr_grindMod___closed__5 = _init_l_Lean_Parser_Attr_grindMod___closed__5(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod___closed__5); +l_Lean_Parser_Attr_grindMod___closed__6 = _init_l_Lean_Parser_Attr_grindMod___closed__6(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod___closed__6); +l_Lean_Parser_Attr_grindMod___closed__7 = _init_l_Lean_Parser_Attr_grindMod___closed__7(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod___closed__7); +l_Lean_Parser_Attr_grindMod___closed__8 = _init_l_Lean_Parser_Attr_grindMod___closed__8(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod___closed__8); +l_Lean_Parser_Attr_grindMod___closed__9 = _init_l_Lean_Parser_Attr_grindMod___closed__9(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod___closed__9); +l_Lean_Parser_Attr_grindMod___closed__10 = _init_l_Lean_Parser_Attr_grindMod___closed__10(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod___closed__10); +l_Lean_Parser_Attr_grindMod___closed__11 = _init_l_Lean_Parser_Attr_grindMod___closed__11(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod___closed__11); +l_Lean_Parser_Attr_grindMod___closed__12 = _init_l_Lean_Parser_Attr_grindMod___closed__12(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod___closed__12); +l_Lean_Parser_Attr_grindMod = _init_l_Lean_Parser_Attr_grindMod(); +lean_mark_persistent(l_Lean_Parser_Attr_grindMod); l_Lean_Parser_Attr_grind___closed__1 = _init_l_Lean_Parser_Attr_grind___closed__1(); lean_mark_persistent(l_Lean_Parser_Attr_grind___closed__1); l_Lean_Parser_Attr_grind___closed__2 = _init_l_Lean_Parser_Attr_grind___closed__2(); diff --git a/stage0/stdlib/Lean/Compiler/CSimpAttr.c b/stage0/stdlib/Lean/Compiler/CSimpAttr.c index 6dab15cbb36d..6c8e4810cd4f 100644 --- a/stage0/stdlib/Lean/Compiler/CSimpAttr.c +++ b/stage0/stdlib/Lean/Compiler/CSimpAttr.c @@ -71,6 +71,7 @@ lean_object* l_Lean_registerSimpleScopedEnvExtension___rarg(lean_object*, lean_o static lean_object* l_Lean_Compiler_CSimp_initFn____x40_Lean_Compiler_CSimpAttr___hyg_471____closed__10; uint64_t lean_uint64_shift_right(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_CSimp_add___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__4(lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Compiler_CSimp_replaceConstants___spec__2___boxed(lean_object*, lean_object*); static lean_object* l_Lean_getConstInfo___at___private_Lean_Compiler_CSimpAttr_0__Lean_Compiler_CSimp_isConstantReplacement_x3f___spec__1___closed__2; @@ -161,7 +162,6 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_CSimp_replaceConstants___lambda__1___bo LEAN_EXPORT lean_object* l_Lean_Compiler_CSimp_State_switch(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_SMap_insert___at_Lean_NameSSet_insert___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__4(lean_object*); LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Compiler_CSimp_add___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getConstInfo___at___private_Lean_Compiler_CSimpAttr_0__Lean_Compiler_CSimp_isConstantReplacement_x3f___spec__1___closed__4; lean_object* lean_nat_add(lean_object*, lean_object*); @@ -330,7 +330,7 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); x_5 = l_Lean_SMap_switch___at_Lean_Compiler_CSimp_State_switch___spec__1(x_3); -x_6 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__4(x_4); +x_6 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__4(x_4); lean_ctor_set(x_1, 1, x_6); lean_ctor_set(x_1, 0, x_5); return x_1; @@ -344,7 +344,7 @@ lean_inc(x_8); lean_inc(x_7); lean_dec(x_1); x_9 = l_Lean_SMap_switch___at_Lean_Compiler_CSimp_State_switch___spec__1(x_7); -x_10 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__4(x_8); +x_10 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__4(x_8); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Grind.c b/stage0/stdlib/Lean/Elab/Tactic/Grind.c index 33e11e97a213..ae9924d15bf8 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Grind.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Grind.c @@ -14,7 +14,9 @@ extern "C" { #endif lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__1; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGrind__1(lean_object*); lean_object* l_Lean_Meta_Grind_goalsToMessageData(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_format_pretty(lean_object*, lean_object*, lean_object*, lean_object*); @@ -37,12 +39,15 @@ 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_Tactic_elabGrindParams_addEMatchTheorem___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_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__2; +static lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__1; 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_EXPORT lean_object* l_Lean_Elab_Tactic_mkGrindParams___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_Elab_Tactic_mkGrindParams___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_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*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__2; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__1; 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*); @@ -51,9 +56,12 @@ lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object* lean_object* l_Lean_Meta_Grind_registerNormTheorems(lean_object*, 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_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(uint8_t, uint8_t); extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalGrind___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_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__8; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__7; lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__3; lean_object* l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -62,20 +70,18 @@ static lean_object* l_Lean_Elab_Tactic_grind___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback_unsafe__1___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_instMonadTermElabM; lean_object* l_Lean_Syntax_getArgs(lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__4; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); static lean_object* l_Lean_preprocessSyntaxAndResolve___at_Lean_Elab_Tactic_elabGrindPattern___spec__7___closed__2; lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(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___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_Tactic_elabGrindParams___spec__2___lambda__4___closed__1; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__2; lean_object* l_Lean_Syntax_TSepArray_getElems___rarg(lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__5; static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__17; static lean_object* l_Lean_Elab_Tactic_evalGrind___lambda__4___closed__1; 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*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabInitGrindNorm___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_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__4; -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__3; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalGrind___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* l_Lean_stringToMessageData(lean_object*); @@ -85,6 +91,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_elabG static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabInitGrindNorm__1___closed__3; 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*); +static lean_object* l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__2; 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_EXPORT lean_object* l_Lean_Elab_Tactic_mkGrindParams(lean_object*, uint8_t, 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*); @@ -94,13 +101,16 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4(uint8_t, LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalGrind___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_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*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___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_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__1; uint8_t l_Lean_Expr_hasSyntheticSorry(lean_object*); +static lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_elabGrindPattern___spec__13(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkGrindParams___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_getConfigItems(lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__4; lean_object* l_List_filterMapTR_go___at_Lean_preprocessSyntaxAndResolve___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkGrindParams___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_mkGrindParams___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_Elab_Tactic_elabGrindParams_addEMatchTheorem___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_EMatchTheorems_eraseDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalGrind___closed__4; @@ -110,61 +120,57 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindPattern___lambda__1___boxed lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Lean_Meta_withLCtx___at_Lean_Elab_Term_MVarErrorInfo_logError___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* l_List_mapTR_loop___at_Lean_filterFieldList___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkGrindParams___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, 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_Elab_Tactic_mkGrindParams___closed__2; lean_object* l_Lean_Meta_Grind_preprocessPattern(lean_object*, uint8_t, 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; -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__13; 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; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___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_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalGrind___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_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__11; +lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___boxed__const__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindParams___boxed(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_Lean_Elab_Tactic_elabGrindConfig___lambda__1___closed__3; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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* 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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__1; lean_object* lean_eval_const(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_elabInitGrindNorm___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___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__5; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___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_elabGrindPattern___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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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* l_Lean_MessageData_ofFormat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___lambda__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, 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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback(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*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__4; lean_object* l_Lean_isReducible___at___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabInitGrindNorm__1___closed__2; -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__5; -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__2; 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*); -lean_object* l_Lean_Meta_isInductivePredicate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__1; 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_Meta_Grind_CasesTypes_eraseDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___elambda__1(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*); +static lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__2; 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_elabGrindParams_addEMatchTheorem___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_mkParams(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; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalGrind___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_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_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabGrindParams___spec__1(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*); lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toPArray_x27___rarg(lean_object*); @@ -175,11 +181,13 @@ lean_object* l_Lean_Elab_realizeGlobalConstNoOverloadWithInfo(lean_object*, lean LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindParams(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_elabGrindParams_addEMatchTheorem___closed__4; static lean_object* l_Lean_Elab_Tactic_evalGrind___lambda__4___closed__2; static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__5; static lean_object* l_Lean_Elab_Tactic_evalGrind___closed__3; static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__2; static lean_object* l_Lean_Elab_Tactic_mkGrindParams___closed__1; +static lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__2; static lean_object* l_Lean_Elab_Tactic_evalGrind___closed__1; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabGrindPattern___closed__6; @@ -190,12 +198,10 @@ lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_ 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*); uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__3; -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__6; static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__12; 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*); static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__15; 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*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__2; 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___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__7; static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__1; @@ -203,51 +209,52 @@ extern lean_object* l_Std_Format_defWidth; static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__14; 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_object* l_Lean_Meta_Grind_getAttrKindCore(lean_object*, lean_object*, lean_object*, lean_object*); 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*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__3; lean_object* l_Lean_MessageData_ofExpr(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*); 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*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalGrind___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*); +lean_object* l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabGrindConfig___lambda__4___closed__4; static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__16; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_elabInitGrindNorm__1(lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalGrind___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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1(lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1(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_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*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__4; 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*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___spec__1___boxed(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*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__1; static lean_object* l_panic___at_Lean_Elab_Tactic_elabGrindPattern___spec__10___closed__1; -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabGrindParams___spec__1___boxed(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_Tactic_elabGrindParams___spec__1___closed__8; 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_evalGrind___lambda__4___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGrind__1___closed__4; -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__6; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1(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_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__3; lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabInitGrindNorm__1___closed__1; 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*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback_unsafe__1(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; +static lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__4; static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1___rarg___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*); -uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(uint8_t, uint8_t); lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremsForDef_x3f(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_evalGrind___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___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_Elab_Tactic_evalGrind___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGrind__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_grind(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalGrind___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_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___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_Elab_Tactic_evalGrind___lambda__4___closed__4; static lean_object* l_Lean_Elab_Tactic_elabGrindPattern___closed__4; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -257,14 +264,15 @@ LEAN_EXPORT lean_object* l_Lean_ofExcept___at___private_Lean_Elab_Tactic_Grind_0 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*); lean_object* l_Lean_Elab_Term_elabTermAndSynthesize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_getCasesTypes___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_validateCasesAttr(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_evalConst___at___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback_unsafe__1___spec__1(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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___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* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGrind__1___closed__3; -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__5; +static lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_elabGrindPattern___spec__1___boxed(lean_object*, lean_object*); lean_object* l_List_toString___at_Lean_ensureNoOverload___spec__2(lean_object*); static lean_object* l_Lean_ensureNonAmbiguous___at_Lean_Elab_Tactic_elabGrindPattern___spec__9___closed__3; @@ -273,9 +281,8 @@ static lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___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* l_Lean_Meta_Grind_getTheoremKindCore(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_mk(lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__7; +static lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__4; size_t lean_usize_add(size_t, size_t); extern lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedEMatchTheorems___spec__1; lean_object* l_List_mapTR_loop___at_Lean_ensureNonAmbiguous___spec__2(lean_object*, lean_object*); @@ -285,13 +292,12 @@ 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_Lean_Elab_Tactic_mkGrindParams___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabGrindPattern__1___closed__6; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__2; 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*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___boxed(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_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback_unsafe__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_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__1; 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*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___elambda__1___rarg(lean_object*); @@ -302,13 +308,13 @@ lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_o 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*); static lean_object* l_Lean_Elab_Tactic_evalGrind___lambda__4___closed__5; static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__1; -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__9; lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalGrind___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_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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_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; static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__9; @@ -320,12 +326,12 @@ LEAN_EXPORT lean_object* l_Lean_ofExcept___at___private_Lean_Elab_Tactic_Grind_0 LEAN_EXPORT lean_object* l_Lean_evalConst___at___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback_unsafe__1___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addAndCompile(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalGrind___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_Elab_Tactic_elabGrindParams___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabInitGrindNorm___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*); uint8_t l_Lean_Exception_isRuntime(lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__6; 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*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__2; -lean_object* l_Lean_throwErrorAt___at_Lean_Meta_Match_Alt_checkAndReplaceFVarId___spec__3(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_Tactic_elabGrindParams___spec__1___closed__4; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__9; 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; @@ -333,6 +339,7 @@ lean_object* l_Lean_MessageData_ofName(lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__3; lean_object* l_List_filterTR_loop___at_Lean_filterFieldList___spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__18; +static lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__1; 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*); @@ -341,7 +348,6 @@ LEAN_EXPORT lean_object* l_Lean_filterFieldList___at_Lean_Elab_Tactic_elabGrindP LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_grind___boxed(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*); 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* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__3; static lean_object* _init_l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1() { _start: { @@ -2989,76 +2995,45 @@ x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabGrindParams___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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabGrindParams_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: { -uint8_t x_8; -x_8 = !lean_is_exclusive(x_5); -if (x_8 == 0) +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_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_5, 5); -x_10 = l_Lean_replaceRef(x_1, x_9); -lean_dec(x_9); -lean_ctor_set(x_5, 5, x_10); -x_11 = l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_5); -return x_11; +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; 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; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_12 = lean_ctor_get(x_5, 0); -x_13 = lean_ctor_get(x_5, 1); -x_14 = lean_ctor_get(x_5, 2); -x_15 = lean_ctor_get(x_5, 3); -x_16 = lean_ctor_get(x_5, 4); -x_17 = lean_ctor_get(x_5, 5); -x_18 = lean_ctor_get(x_5, 6); -x_19 = lean_ctor_get(x_5, 7); -x_20 = lean_ctor_get(x_5, 8); -x_21 = lean_ctor_get(x_5, 9); -x_22 = lean_ctor_get(x_5, 10); -x_23 = lean_ctor_get_uint8(x_5, sizeof(void*)*12); -x_24 = lean_ctor_get(x_5, 11); -x_25 = lean_ctor_get_uint8(x_5, sizeof(void*)*12 + 1); -lean_inc(x_24); -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_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_5); -x_26 = l_Lean_replaceRef(x_1, x_17); -lean_dec(x_17); -x_27 = lean_alloc_ctor(0, 12, 2); -lean_ctor_set(x_27, 0, x_12); -lean_ctor_set(x_27, 1, x_13); -lean_ctor_set(x_27, 2, x_14); -lean_ctor_set(x_27, 3, x_15); -lean_ctor_set(x_27, 4, x_16); -lean_ctor_set(x_27, 5, x_26); -lean_ctor_set(x_27, 6, x_18); -lean_ctor_set(x_27, 7, x_19); -lean_ctor_set(x_27, 8, x_20); -lean_ctor_set(x_27, 9, x_21); -lean_ctor_set(x_27, 10, x_22); -lean_ctor_set(x_27, 11, x_24); -lean_ctor_set_uint8(x_27, sizeof(void*)*12, x_23); -lean_ctor_set_uint8(x_27, sizeof(void*)*12 + 1, x_25); -x_28 = l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(x_2, x_3, x_4, x_27, x_6, x_7); -lean_dec(x_27); -return x_28; +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; } } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -3066,16 +3041,16 @@ x_1 = lean_mk_string_unchecked("failed to genereate equation theorems for `", 43 return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__2() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__1; +x_1 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__3() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__3() { _start: { lean_object* x_1; @@ -3083,271 +3058,200 @@ x_1 = lean_mk_string_unchecked("`", 1, 1); return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__4() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__3; +x_1 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___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_10; -lean_inc(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_1); -x_10 = l_Lean_Meta_Grind_mkEMatchEqTheoremsForDef_x3f(x_1, x_5, x_6, x_7, x_8, x_9); +x_9 = l_Lean_Meta_Grind_mkEMatchEqTheoremsForDef_x3f(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) == 0) { -lean_object* x_11; -x_11 = lean_ctor_get(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_dec(x_2); +x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); -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; -lean_dec(x_3); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_MessageData_ofName(x_1); -x_14 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__4; -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_throwErrorAt___at_Lean_Meta_Match_Alt_checkAndReplaceFVarId___spec__3(x_2, x_17, x_5, x_6, x_7, x_8, x_12); -lean_dec(x_8); +lean_dec(x_9); +x_12 = l_Lean_MessageData_ofName(x_1); +x_13 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__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 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__4; +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_throwError___at_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___spec__1(x_16, x_4, x_5, x_6, x_7, x_11); +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; -} +lean_dec(x_4); +return x_17; } else { -uint8_t x_23; -lean_dec(x_8); +uint8_t x_18; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); +lean_dec(x_4); lean_dec(x_1); -x_23 = !lean_is_exclusive(x_10); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -x_24 = lean_ctor_get(x_10, 0); -lean_dec(x_24); -x_25 = !lean_is_exclusive(x_11); -if (x_25 == 0) +x_18 = !lean_is_exclusive(x_9); +if (x_18 == 0) { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_3); -if (x_26 == 0) +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_9, 0); +lean_dec(x_19); +x_20 = lean_ctor_get(x_10, 0); +lean_inc(x_20); +lean_dec(x_10); +x_21 = !lean_is_exclusive(x_2); +if (x_21 == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_11, 0); -x_28 = lean_ctor_get(x_3, 2); -x_29 = l_Array_toPArray_x27___rarg(x_27); -lean_dec(x_27); -x_30 = l_Lean_PersistentArray_append___rarg(x_28, x_29); -lean_dec(x_29); -lean_ctor_set(x_3, 2, x_30); -lean_ctor_set(x_11, 0, x_3); -return x_10; +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_2, 3); +x_23 = l_Array_toPArray_x27___rarg(x_20); +lean_dec(x_20); +x_24 = l_Lean_PersistentArray_append___rarg(x_22, x_23); +lean_dec(x_23); +lean_ctor_set(x_2, 3, x_24); +lean_ctor_set(x_9, 0, x_2); +return x_9; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_31 = lean_ctor_get(x_11, 0); -x_32 = lean_ctor_get(x_3, 0); -x_33 = lean_ctor_get(x_3, 1); -x_34 = lean_ctor_get(x_3, 2); -x_35 = lean_ctor_get(x_3, 3); -x_36 = lean_ctor_get(x_3, 4); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_3); -x_37 = l_Array_toPArray_x27___rarg(x_31); +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_2, 0); +x_26 = lean_ctor_get(x_2, 1); +x_27 = lean_ctor_get(x_2, 2); +x_28 = lean_ctor_get(x_2, 3); +x_29 = lean_ctor_get(x_2, 4); +x_30 = lean_ctor_get(x_2, 5); +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_2); +x_31 = l_Array_toPArray_x27___rarg(x_20); +lean_dec(x_20); +x_32 = l_Lean_PersistentArray_append___rarg(x_28, x_31); lean_dec(x_31); -x_38 = l_Lean_PersistentArray_append___rarg(x_34, x_37); -lean_dec(x_37); -x_39 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_39, 0, x_32); -lean_ctor_set(x_39, 1, x_33); -lean_ctor_set(x_39, 2, x_38); -lean_ctor_set(x_39, 3, x_35); -lean_ctor_set(x_39, 4, x_36); -lean_ctor_set(x_11, 0, x_39); -return x_10; +x_33 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_33, 0, x_25); +lean_ctor_set(x_33, 1, x_26); +lean_ctor_set(x_33, 2, x_27); +lean_ctor_set(x_33, 3, x_32); +lean_ctor_set(x_33, 4, x_29); +lean_ctor_set(x_33, 5, x_30); +lean_ctor_set(x_9, 0, x_33); +return x_9; } } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_40 = lean_ctor_get(x_11, 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; +x_34 = lean_ctor_get(x_9, 1); +lean_inc(x_34); +lean_dec(x_9); +x_35 = lean_ctor_get(x_10, 0); +lean_inc(x_35); +lean_dec(x_10); +x_36 = lean_ctor_get(x_2, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_2, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_2, 2); +lean_inc(x_38); +x_39 = lean_ctor_get(x_2, 3); +lean_inc(x_39); +x_40 = lean_ctor_get(x_2, 4); lean_inc(x_40); -lean_dec(x_11); -x_41 = lean_ctor_get(x_3, 0); +x_41 = lean_ctor_get(x_2, 5); lean_inc(x_41); -x_42 = lean_ctor_get(x_3, 1); -lean_inc(x_42); -x_43 = lean_ctor_get(x_3, 2); -lean_inc(x_43); -x_44 = lean_ctor_get(x_3, 3); -lean_inc(x_44); -x_45 = lean_ctor_get(x_3, 4); -lean_inc(x_45); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - lean_ctor_release(x_3, 4); - x_46 = x_3; -} else { - lean_dec_ref(x_3); - x_46 = lean_box(0); -} -x_47 = l_Array_toPArray_x27___rarg(x_40); -lean_dec(x_40); -x_48 = l_Lean_PersistentArray_append___rarg(x_43, x_47); -lean_dec(x_47); -if (lean_is_scalar(x_46)) { - x_49 = lean_alloc_ctor(0, 5, 0); -} else { - x_49 = x_46; -} -lean_ctor_set(x_49, 0, x_41); -lean_ctor_set(x_49, 1, x_42); -lean_ctor_set(x_49, 2, x_48); -lean_ctor_set(x_49, 3, x_44); -lean_ctor_set(x_49, 4, x_45); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_10, 0, x_50); -return x_10; -} -} -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; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_51 = lean_ctor_get(x_10, 1); -lean_inc(x_51); -lean_dec(x_10); -x_52 = lean_ctor_get(x_11, 0); -lean_inc(x_52); -if (lean_is_exclusive(x_11)) { - lean_ctor_release(x_11, 0); - x_53 = x_11; +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + x_42 = x_2; } else { - lean_dec_ref(x_11); - x_53 = lean_box(0); + lean_dec_ref(x_2); + x_42 = lean_box(0); } -x_54 = lean_ctor_get(x_3, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_3, 1); -lean_inc(x_55); -x_56 = lean_ctor_get(x_3, 2); -lean_inc(x_56); -x_57 = lean_ctor_get(x_3, 3); -lean_inc(x_57); -x_58 = lean_ctor_get(x_3, 4); -lean_inc(x_58); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - lean_ctor_release(x_3, 4); - x_59 = x_3; -} else { - lean_dec_ref(x_3); - x_59 = lean_box(0); -} -x_60 = l_Array_toPArray_x27___rarg(x_52); -lean_dec(x_52); -x_61 = l_Lean_PersistentArray_append___rarg(x_56, x_60); -lean_dec(x_60); -if (lean_is_scalar(x_59)) { - x_62 = lean_alloc_ctor(0, 5, 0); -} else { - x_62 = x_59; -} -lean_ctor_set(x_62, 0, x_54); -lean_ctor_set(x_62, 1, x_55); -lean_ctor_set(x_62, 2, x_61); -lean_ctor_set(x_62, 3, x_57); -lean_ctor_set(x_62, 4, x_58); -if (lean_is_scalar(x_53)) { - x_63 = lean_alloc_ctor(1, 1, 0); +x_43 = l_Array_toPArray_x27___rarg(x_35); +lean_dec(x_35); +x_44 = l_Lean_PersistentArray_append___rarg(x_39, x_43); +lean_dec(x_43); +if (lean_is_scalar(x_42)) { + x_45 = lean_alloc_ctor(0, 6, 0); } else { - x_63 = x_53; -} -lean_ctor_set(x_63, 0, x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_51); -return x_64; + x_45 = x_42; +} +lean_ctor_set(x_45, 0, x_36); +lean_ctor_set(x_45, 1, x_37); +lean_ctor_set(x_45, 2, x_38); +lean_ctor_set(x_45, 3, x_44); +lean_ctor_set(x_45, 4, x_40); +lean_ctor_set(x_45, 5, x_41); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_34); +return x_46; } } } else { -uint8_t x_65; -lean_dec(x_8); +uint8_t x_47; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); -x_65 = !lean_is_exclusive(x_10); -if (x_65 == 0) +x_47 = !lean_is_exclusive(x_9); +if (x_47 == 0) { -return x_10; +return x_9; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_10, 0); -x_67 = lean_ctor_get(x_10, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_10); -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; +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_9, 0); +x_49 = lean_ctor_get(x_9, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_9); +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; } } } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -3355,16 +3259,16 @@ x_1 = lean_mk_string_unchecked("invalid `grind` parameter, `", 28, 28); return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__1; +x_1 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__3() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__3() { _start: { lean_object* x_1; @@ -3372,80 +3276,81 @@ x_1 = lean_mk_string_unchecked("` is a definition, the only acceptable (and redu return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__4() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__3; +x_1 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_11; uint8_t x_12; -x_11 = 0; -x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(x_3, x_11); -if (x_12 == 0) +uint8_t x_10; uint8_t x_11; +x_10 = 0; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(x_3, x_10); +if (x_11 == 0) { -uint8_t x_13; uint8_t x_14; -x_13 = 5; -x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(x_3, x_13); -if (x_14 == 0) +uint8_t x_12; uint8_t x_13; +x_12 = 6; +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(x_3, x_12); +if (x_13 == 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; uint8_t x_21; -lean_dec(x_4); -x_15 = l_Lean_MessageData_ofName(x_1); -x_16 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__2; -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 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__4; -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 = l_Lean_throwErrorAt___at_Lean_Meta_Match_Alt_checkAndReplaceFVarId___spec__3(x_2, x_19, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_dec(x_2); +x_14 = l_Lean_MessageData_ofName(x_1); +x_15 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___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_elabGrindParams_addEMatchTheorem___lambda__2___closed__4; +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_mkSimpCongrTheorem___spec__4(x_18, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) +lean_dec(x_5); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -return x_20; +return x_19; } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); +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_dec(x_20); -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_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; } } else { -lean_object* x_25; lean_object* x_26; -x_25 = lean_box(0); -x_26 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1(x_1, x_2, x_4, x_25, x_6, x_7, x_8, x_9, x_10); -return x_26; +lean_object* x_24; lean_object* x_25; +x_24 = lean_box(0); +x_25 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1(x_1, x_2, x_24, x_5, x_6, x_7, x_8, x_9); +return x_25; } } else { -lean_object* x_27; lean_object* x_28; -x_27 = lean_box(0); -x_28 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1(x_1, x_2, x_4, x_27, x_6, x_7, x_8, x_9, x_10); -return x_28; +lean_object* x_26; lean_object* x_27; +x_26 = lean_box(0); +x_27 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1(x_1, x_2, x_26, x_5, x_6, x_7, x_8, x_9); +return x_27; } } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__1() { _start: { lean_object* x_1; @@ -3453,16 +3358,16 @@ x_1 = lean_mk_string_unchecked("` is not a theorem, definition, or inductive typ return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__1; +x_1 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__3() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__3() { _start: { lean_object* x_1; @@ -3470,891 +3375,1345 @@ x_1 = lean_mk_string_unchecked("` is a reducible definition, `grind` automatical return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__4() { +static lean_object* _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__3; +x_1 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("NIY", 3, 3); -return x_1; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__6() { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem(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_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__5; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___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) { -_start: +lean_object* x_9; +lean_inc(x_2); +x_9 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_2, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) { 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_Meta_isInductivePredicate(x_1, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +switch (lean_obj_tag(x_10)) { +case 1: { -lean_object* x_11; uint8_t x_12; -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; -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_dec(x_10); -lean_inc(x_1); -x_14 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_1, x_5, x_6, x_7, x_8, x_13); -if (lean_obj_tag(x_14) == 0) +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +lean_inc(x_2); +x_12 = l_Lean_isReducible___at___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp___spec__1(x_2, x_4, x_5, x_6, x_7, x_11); +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; -x_15 = lean_ctor_get(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); -switch (lean_obj_tag(x_15)) { -case 1: -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -lean_dec(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -lean_inc(x_1); -x_17 = l_Lean_isReducible___at___private_Lean_Meta_Basic_0__Lean_Meta_getDefInfoTemp___spec__1(x_1, x_5, x_6, x_7, x_8, x_16); -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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2(x_1, x_2, x_4, x_3, x_21, x_5, x_6, x_7, x_8, x_20); -return x_22; +lean_dec(x_12); +x_16 = lean_box(0); +x_17 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2(x_2, x_1, x_3, x_16, x_4, x_5, x_6, x_7, x_15); +return x_17; } else { -uint8_t x_23; -lean_dec(x_3); -x_23 = !lean_is_exclusive(x_17); -if (x_23 == 0) +uint8_t x_18; +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_12); +if (x_18 == 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; uint8_t x_31; -x_24 = lean_ctor_get(x_17, 1); -x_25 = lean_ctor_get(x_17, 0); -lean_dec(x_25); -x_26 = l_Lean_MessageData_ofName(x_1); -x_27 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__4; -x_29 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_29, 0, x_17); -lean_ctor_set(x_29, 1, x_28); -x_30 = l_Lean_throwErrorAt___at_Lean_Meta_Match_Alt_checkAndReplaceFVarId___spec__3(x_2, x_29, x_5, x_6, x_7, x_8, x_24); -lean_dec(x_8); +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_ctor_get(x_12, 1); +x_20 = lean_ctor_get(x_12, 0); +lean_dec(x_20); +x_21 = l_Lean_MessageData_ofName(x_2); +x_22 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__4; +lean_ctor_set_tag(x_12, 7); +lean_ctor_set(x_12, 1, x_21); +lean_ctor_set(x_12, 0, x_22); +x_23 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__4; +x_24 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_24, 0, x_12); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_24, x_4, x_5, x_6, x_7, x_19); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +lean_dec(x_4); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) { -return x_30; +return x_25; } 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; +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_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_35 = lean_ctor_get(x_17, 1); -lean_inc(x_35); -lean_dec(x_17); -x_36 = l_Lean_MessageData_ofName(x_1); -x_37 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__4; -x_38 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -x_39 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__4; -x_40 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -x_41 = l_Lean_throwErrorAt___at_Lean_Meta_Match_Alt_checkAndReplaceFVarId___spec__3(x_2, x_40, x_5, x_6, x_7, x_8, x_35); -lean_dec(x_8); +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_30 = lean_ctor_get(x_12, 1); +lean_inc(x_30); +lean_dec(x_12); +x_31 = l_Lean_MessageData_ofName(x_2); +x_32 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__4; +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 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__4; +x_35 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_35, x_4, x_5, x_6, x_7, x_30); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -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; +lean_dec(x_4); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; } else { - lean_dec_ref(x_41); - x_44 = lean_box(0); + lean_dec_ref(x_36); + x_39 = lean_box(0); } -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_39)) { + x_40 = lean_alloc_ctor(1, 2, 0); } else { - x_45 = x_44; + x_40 = x_39; } -lean_ctor_set(x_45, 0, x_42); -lean_ctor_set(x_45, 1, x_43); -return x_45; +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_38); +return x_40; } } } case 2: { -uint8_t x_46; -x_46 = !lean_is_exclusive(x_15); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; uint8_t x_49; uint8_t x_50; -x_47 = lean_ctor_get(x_15, 0); -lean_dec(x_47); -x_48 = lean_ctor_get(x_14, 1); -lean_inc(x_48); -lean_dec(x_14); -x_49 = 2; -x_50 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(x_4, x_49); -if (x_50 == 0) +lean_object* x_41; uint8_t x_42; uint8_t x_43; +lean_dec(x_10); +x_41 = lean_ctor_get(x_9, 1); +lean_inc(x_41); +lean_dec(x_9); +x_42 = 2; +x_43 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(x_3, x_42); +if (x_43 == 0) { -lean_object* x_51; -x_51 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_4, x_5, x_6, x_7, x_8, x_48); -if (lean_obj_tag(x_51) == 0) +lean_object* x_44; +x_44 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_3, x_4, x_5, x_6, x_7, x_41); +if (lean_obj_tag(x_44) == 0) { -uint8_t x_52; -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) +uint8_t x_45; +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 0) { -uint8_t x_53; -x_53 = !lean_is_exclusive(x_3); -if (x_53 == 0) +uint8_t x_46; +x_46 = !lean_is_exclusive(x_1); +if (x_46 == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_51, 0); -x_55 = lean_ctor_get(x_3, 2); -x_56 = l_Lean_PersistentArray_push___rarg(x_55, x_54); -lean_ctor_set(x_3, 2, x_56); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 0, x_3); -lean_ctor_set(x_51, 0, x_15); -return x_51; +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_44, 0); +x_48 = lean_ctor_get(x_1, 3); +x_49 = l_Lean_PersistentArray_push___rarg(x_48, x_47); +lean_ctor_set(x_1, 3, x_49); +lean_ctor_set(x_44, 0, x_1); +return x_44; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_57 = lean_ctor_get(x_51, 0); -x_58 = lean_ctor_get(x_3, 0); -x_59 = lean_ctor_get(x_3, 1); -x_60 = lean_ctor_get(x_3, 2); -x_61 = lean_ctor_get(x_3, 3); -x_62 = lean_ctor_get(x_3, 4); -lean_inc(x_62); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_3); -x_63 = l_Lean_PersistentArray_push___rarg(x_60, x_57); -x_64 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_64, 0, x_58); -lean_ctor_set(x_64, 1, x_59); -lean_ctor_set(x_64, 2, x_63); -lean_ctor_set(x_64, 3, x_61); -lean_ctor_set(x_64, 4, x_62); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 0, x_64); -lean_ctor_set(x_51, 0, x_15); -return x_51; +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_50 = lean_ctor_get(x_44, 0); +x_51 = lean_ctor_get(x_1, 0); +x_52 = lean_ctor_get(x_1, 1); +x_53 = lean_ctor_get(x_1, 2); +x_54 = lean_ctor_get(x_1, 3); +x_55 = lean_ctor_get(x_1, 4); +x_56 = lean_ctor_get(x_1, 5); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_1); +x_57 = l_Lean_PersistentArray_push___rarg(x_54, x_50); +x_58 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_58, 0, x_51); +lean_ctor_set(x_58, 1, x_52); +lean_ctor_set(x_58, 2, x_53); +lean_ctor_set(x_58, 3, x_57); +lean_ctor_set(x_58, 4, x_55); +lean_ctor_set(x_58, 5, x_56); +lean_ctor_set(x_44, 0, x_58); +return x_44; } } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_65 = lean_ctor_get(x_51, 0); -x_66 = lean_ctor_get(x_51, 1); -lean_inc(x_66); +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_59 = lean_ctor_get(x_44, 0); +x_60 = lean_ctor_get(x_44, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_44); +x_61 = lean_ctor_get(x_1, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_1, 1); +lean_inc(x_62); +x_63 = lean_ctor_get(x_1, 2); +lean_inc(x_63); +x_64 = lean_ctor_get(x_1, 3); +lean_inc(x_64); +x_65 = lean_ctor_get(x_1, 4); lean_inc(x_65); -lean_dec(x_51); -x_67 = lean_ctor_get(x_3, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_3, 1); -lean_inc(x_68); -x_69 = lean_ctor_get(x_3, 2); -lean_inc(x_69); -x_70 = lean_ctor_get(x_3, 3); -lean_inc(x_70); -x_71 = lean_ctor_get(x_3, 4); -lean_inc(x_71); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - lean_ctor_release(x_3, 4); - x_72 = x_3; +x_66 = lean_ctor_get(x_1, 5); +lean_inc(x_66); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + lean_ctor_release(x_1, 2); + lean_ctor_release(x_1, 3); + lean_ctor_release(x_1, 4); + lean_ctor_release(x_1, 5); + x_67 = x_1; } else { - lean_dec_ref(x_3); - x_72 = lean_box(0); + lean_dec_ref(x_1); + x_67 = lean_box(0); } -x_73 = l_Lean_PersistentArray_push___rarg(x_69, x_65); -if (lean_is_scalar(x_72)) { - x_74 = lean_alloc_ctor(0, 5, 0); +x_68 = l_Lean_PersistentArray_push___rarg(x_64, x_59); +if (lean_is_scalar(x_67)) { + x_69 = lean_alloc_ctor(0, 6, 0); } else { - x_74 = x_72; -} -lean_ctor_set(x_74, 0, x_67); -lean_ctor_set(x_74, 1, x_68); -lean_ctor_set(x_74, 2, x_73); -lean_ctor_set(x_74, 3, x_70); -lean_ctor_set(x_74, 4, x_71); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 0, x_74); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_15); -lean_ctor_set(x_75, 1, x_66); -return x_75; + x_69 = x_67; +} +lean_ctor_set(x_69, 0, x_61); +lean_ctor_set(x_69, 1, x_62); +lean_ctor_set(x_69, 2, x_63); +lean_ctor_set(x_69, 3, x_68); +lean_ctor_set(x_69, 4, x_65); +lean_ctor_set(x_69, 5, x_66); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_60); +return x_70; } } else { -uint8_t x_76; -lean_free_object(x_15); -lean_dec(x_3); -x_76 = !lean_is_exclusive(x_51); -if (x_76 == 0) +uint8_t x_71; +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_44); +if (x_71 == 0) { -return x_51; +return x_44; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_51, 0); -x_78 = lean_ctor_get(x_51, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_51); -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_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_44, 0); +x_73 = lean_ctor_get(x_44, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_44); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; } } } else { -uint8_t x_80; lean_object* x_81; -x_80 = 0; -lean_inc(x_8); +uint8_t x_75; lean_object* x_76; +x_75 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_1); -x_81 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_80, x_5, x_6, x_7, x_8, x_48); -if (lean_obj_tag(x_81) == 0) +lean_inc(x_4); +lean_inc(x_2); +x_76 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_75, x_4, x_5, x_6, x_7, x_41); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_82; lean_object* x_83; uint8_t x_84; -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_is_exclusive(x_3); -if (x_84 == 0) -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; lean_object* x_92; -x_85 = lean_ctor_get(x_3, 0); -x_86 = lean_ctor_get(x_3, 1); -x_87 = lean_ctor_get(x_3, 2); -x_88 = lean_ctor_get(x_3, 3); -x_89 = lean_ctor_get(x_3, 4); -x_90 = l_Lean_PersistentArray_push___rarg(x_87, x_82); -x_91 = 1; -x_92 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_91, x_5, x_6, x_7, x_8, x_83); -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; lean_object* x_95; -x_94 = lean_ctor_get(x_92, 0); -x_95 = l_Lean_PersistentArray_push___rarg(x_90, x_94); -lean_ctor_set(x_3, 2, x_95); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 0, x_3); -lean_ctor_set(x_92, 0, x_15); -return x_92; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_96 = lean_ctor_get(x_92, 0); -x_97 = lean_ctor_get(x_92, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_92); -x_98 = l_Lean_PersistentArray_push___rarg(x_90, x_96); -lean_ctor_set(x_3, 2, x_98); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 0, x_3); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_15); -lean_ctor_set(x_99, 1, x_97); -return x_99; +lean_object* x_77; lean_object* x_78; uint8_t 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_is_exclusive(x_1); +if (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; lean_object* x_86; uint8_t x_87; lean_object* x_88; +x_80 = lean_ctor_get(x_1, 0); +x_81 = lean_ctor_get(x_1, 1); +x_82 = lean_ctor_get(x_1, 2); +x_83 = lean_ctor_get(x_1, 3); +x_84 = lean_ctor_get(x_1, 4); +x_85 = lean_ctor_get(x_1, 5); +x_86 = l_Lean_PersistentArray_push___rarg(x_83, x_77); +x_87 = 1; +x_88 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_87, x_4, x_5, x_6, x_7, x_78); +if (lean_obj_tag(x_88) == 0) +{ +uint8_t x_89; +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_ctor_get(x_88, 0); +x_91 = l_Lean_PersistentArray_push___rarg(x_86, x_90); +lean_ctor_set(x_1, 3, x_91); +lean_ctor_set(x_88, 0, x_1); +return x_88; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_92 = lean_ctor_get(x_88, 0); +x_93 = lean_ctor_get(x_88, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_88); +x_94 = l_Lean_PersistentArray_push___rarg(x_86, x_92); +lean_ctor_set(x_1, 3, x_94); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_1); +lean_ctor_set(x_95, 1, x_93); +return x_95; } } else { -uint8_t x_100; -lean_dec(x_90); -lean_free_object(x_3); -lean_dec(x_89); -lean_dec(x_88); +uint8_t x_96; lean_dec(x_86); +lean_free_object(x_1); lean_dec(x_85); -lean_free_object(x_15); -x_100 = !lean_is_exclusive(x_92); -if (x_100 == 0) +lean_dec(x_84); +lean_dec(x_82); +lean_dec(x_81); +lean_dec(x_80); +x_96 = !lean_is_exclusive(x_88); +if (x_96 == 0) { -return x_92; +return x_88; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_92, 0); -x_102 = lean_ctor_get(x_92, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_92); -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; +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_88, 0); +x_98 = lean_ctor_get(x_88, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_88); +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_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; -x_104 = lean_ctor_get(x_3, 0); -x_105 = lean_ctor_get(x_3, 1); -x_106 = lean_ctor_get(x_3, 2); -x_107 = lean_ctor_get(x_3, 3); -x_108 = lean_ctor_get(x_3, 4); -lean_inc(x_108); -lean_inc(x_107); -lean_inc(x_106); +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; uint8_t x_107; lean_object* x_108; +x_100 = lean_ctor_get(x_1, 0); +x_101 = lean_ctor_get(x_1, 1); +x_102 = lean_ctor_get(x_1, 2); +x_103 = lean_ctor_get(x_1, 3); +x_104 = lean_ctor_get(x_1, 4); +x_105 = lean_ctor_get(x_1, 5); lean_inc(x_105); lean_inc(x_104); -lean_dec(x_3); -x_109 = l_Lean_PersistentArray_push___rarg(x_106, x_82); -x_110 = 1; -x_111 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_110, x_5, x_6, x_7, x_8, x_83); -if (lean_obj_tag(x_111) == 0) -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_114 = x_111; +lean_inc(x_103); +lean_inc(x_102); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_1); +x_106 = l_Lean_PersistentArray_push___rarg(x_103, x_77); +x_107 = 1; +x_108 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_2, x_107, x_4, x_5, x_6, x_7, x_78); +if (lean_obj_tag(x_108) == 0) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +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_111); - x_114 = lean_box(0); -} -x_115 = l_Lean_PersistentArray_push___rarg(x_109, x_112); -x_116 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_116, 0, x_104); -lean_ctor_set(x_116, 1, x_105); -lean_ctor_set(x_116, 2, x_115); -lean_ctor_set(x_116, 3, x_107); -lean_ctor_set(x_116, 4, x_108); -lean_ctor_set_tag(x_15, 1); -lean_ctor_set(x_15, 0, x_116); -if (lean_is_scalar(x_114)) { - x_117 = lean_alloc_ctor(0, 2, 0); + lean_dec_ref(x_108); + x_111 = lean_box(0); +} +x_112 = l_Lean_PersistentArray_push___rarg(x_106, x_109); +x_113 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_113, 0, x_100); +lean_ctor_set(x_113, 1, x_101); +lean_ctor_set(x_113, 2, x_102); +lean_ctor_set(x_113, 3, x_112); +lean_ctor_set(x_113, 4, x_104); +lean_ctor_set(x_113, 5, x_105); +if (lean_is_scalar(x_111)) { + x_114 = lean_alloc_ctor(0, 2, 0); } else { - x_117 = x_114; + x_114 = x_111; } -lean_ctor_set(x_117, 0, x_15); -lean_ctor_set(x_117, 1, x_113); -return x_117; +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_110); +return x_114; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -lean_dec(x_109); -lean_dec(x_108); -lean_dec(x_107); +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_106); lean_dec(x_105); lean_dec(x_104); -lean_free_object(x_15); -x_118 = lean_ctor_get(x_111, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_111, 1); -lean_inc(x_119); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_120 = x_111; +lean_dec(x_102); +lean_dec(x_101); +lean_dec(x_100); +x_115 = lean_ctor_get(x_108, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_108, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_117 = x_108; } else { - lean_dec_ref(x_111); - x_120 = lean_box(0); + lean_dec_ref(x_108); + x_117 = lean_box(0); } -if (lean_is_scalar(x_120)) { - x_121 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); } else { - x_121 = x_120; + x_118 = x_117; } -lean_ctor_set(x_121, 0, x_118); -lean_ctor_set(x_121, 1, x_119); -return x_121; +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; } } } else { -uint8_t x_122; -lean_free_object(x_15); -lean_dec(x_8); +uint8_t x_119; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); -x_122 = !lean_is_exclusive(x_81); -if (x_122 == 0) +x_119 = !lean_is_exclusive(x_76); +if (x_119 == 0) { -return x_81; +return x_76; } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_81, 0); -x_124 = lean_ctor_get(x_81, 1); -lean_inc(x_124); -lean_inc(x_123); -lean_dec(x_81); -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; +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_76, 0); +x_121 = lean_ctor_get(x_76, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_76); +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 +default: { -lean_object* x_126; uint8_t x_127; uint8_t x_128; -lean_dec(x_15); -x_126 = lean_ctor_get(x_14, 1); -lean_inc(x_126); -lean_dec(x_14); -x_127 = 2; -x_128 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(x_4, x_127); -if (x_128 == 0) -{ -lean_object* x_129; -x_129 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_4, x_5, x_6, x_7, x_8, x_126); -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; lean_object* x_141; lean_object* x_142; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_132 = x_129; -} else { - lean_dec_ref(x_129); - x_132 = lean_box(0); -} -x_133 = lean_ctor_get(x_3, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_3, 1); -lean_inc(x_134); -x_135 = lean_ctor_get(x_3, 2); -lean_inc(x_135); -x_136 = lean_ctor_get(x_3, 3); -lean_inc(x_136); -x_137 = lean_ctor_get(x_3, 4); -lean_inc(x_137); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - lean_ctor_release(x_3, 4); - x_138 = x_3; -} else { - lean_dec_ref(x_3); - x_138 = lean_box(0); +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_dec(x_10); +lean_dec(x_1); +x_123 = lean_ctor_get(x_9, 1); +lean_inc(x_123); +lean_dec(x_9); +x_124 = l_Lean_MessageData_ofName(x_2); +x_125 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__2; +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_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__2; +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_throwError___at_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___spec__1(x_128, x_4, x_5, x_6, x_7, x_123); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_129; } -x_139 = l_Lean_PersistentArray_push___rarg(x_135, x_130); -if (lean_is_scalar(x_138)) { - x_140 = lean_alloc_ctor(0, 5, 0); -} else { - x_140 = x_138; -} -lean_ctor_set(x_140, 0, x_133); -lean_ctor_set(x_140, 1, x_134); -lean_ctor_set(x_140, 2, x_139); -lean_ctor_set(x_140, 3, x_136); -lean_ctor_set(x_140, 4, x_137); -x_141 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_141, 0, x_140); -if (lean_is_scalar(x_132)) { - x_142 = lean_alloc_ctor(0, 2, 0); -} else { - x_142 = x_132; } -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_131); -return x_142; } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_3); -x_143 = lean_ctor_get(x_129, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_129, 1); -lean_inc(x_144); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_145 = x_129; -} else { - lean_dec_ref(x_129); - x_145 = lean_box(0); -} -if (lean_is_scalar(x_145)) { - x_146 = lean_alloc_ctor(1, 2, 0); +uint8_t x_130; +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_130 = !lean_is_exclusive(x_9); +if (x_130 == 0) +{ +return x_9; +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_ctor_get(x_9, 0); +x_132 = lean_ctor_get(x_9, 1); +lean_inc(x_132); +lean_inc(x_131); +lean_dec(x_9); +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_throwError___at_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___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: +{ +lean_object* x_7; +x_7 = l_Lean_throwError___at_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___spec__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); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___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_Elab_Tactic_elabGrindParams_addEMatchTheorem___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_Elab_Tactic_elabGrindParams_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) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_3); +lean_dec(x_3); +x_11 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___boxed(lean_object* x_1, lean_object* x_2, 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_Elab_Tactic_elabGrindParams_addEMatchTheorem(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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: +{ +switch (lean_obj_tag(x_4)) { +case 0: +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get_uint8(x_4, 0); +x_12 = lean_ctor_get(x_7, 5); +x_13 = l_Lean_replaceRef(x_1, x_12); +lean_dec(x_12); +lean_ctor_set(x_7, 5, x_13); +x_14 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem(x_3, x_2, x_11, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_14, 0, x_17); +return x_14; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_14, 0); +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_14); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_18); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_14); +if (x_22 == 0) +{ +return x_14; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_14); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +else +{ +uint8_t x_26; lean_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; uint8_t x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_26 = lean_ctor_get_uint8(x_4, 0); +x_27 = lean_ctor_get(x_7, 0); +x_28 = lean_ctor_get(x_7, 1); +x_29 = lean_ctor_get(x_7, 2); +x_30 = lean_ctor_get(x_7, 3); +x_31 = lean_ctor_get(x_7, 4); +x_32 = lean_ctor_get(x_7, 5); +x_33 = lean_ctor_get(x_7, 6); +x_34 = lean_ctor_get(x_7, 7); +x_35 = lean_ctor_get(x_7, 8); +x_36 = lean_ctor_get(x_7, 9); +x_37 = lean_ctor_get(x_7, 10); +x_38 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_39 = lean_ctor_get(x_7, 11); +x_40 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_39); +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_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_7); +x_41 = l_Lean_replaceRef(x_1, x_32); +lean_dec(x_32); +x_42 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_42, 0, x_27); +lean_ctor_set(x_42, 1, x_28); +lean_ctor_set(x_42, 2, x_29); +lean_ctor_set(x_42, 3, x_30); +lean_ctor_set(x_42, 4, x_31); +lean_ctor_set(x_42, 5, x_41); +lean_ctor_set(x_42, 6, x_33); +lean_ctor_set(x_42, 7, x_34); +lean_ctor_set(x_42, 8, x_35); +lean_ctor_set(x_42, 9, x_36); +lean_ctor_set(x_42, 10, x_37); +lean_ctor_set(x_42, 11, x_39); +lean_ctor_set_uint8(x_42, sizeof(void*)*12, x_38); +lean_ctor_set_uint8(x_42, sizeof(void*)*12 + 1, x_40); +x_43 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem(x_3, x_2, x_26, x_5, x_6, x_42, x_8, x_9); +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; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_46 = x_43; } else { - x_146 = x_145; + lean_dec_ref(x_43); + x_46 = lean_box(0); } -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -return x_146; +x_47 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_47, 0, x_44); +if (lean_is_scalar(x_46)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_46; } +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_45); +return x_48; } else { -uint8_t x_147; lean_object* x_148; -x_147 = 0; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_1); -x_148 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_147, x_5, x_6, x_7, x_8, x_126); -if (lean_obj_tag(x_148) == 0) +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_43, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_43, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_51 = x_43; +} else { + lean_dec_ref(x_43); + 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; +} +} +} +case 1: { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; -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_3, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_3, 1); -lean_inc(x_152); -x_153 = lean_ctor_get(x_3, 2); -lean_inc(x_153); -x_154 = lean_ctor_get(x_3, 3); -lean_inc(x_154); -x_155 = lean_ctor_get(x_3, 4); -lean_inc(x_155); +uint8_t x_53; +lean_dec(x_6); +lean_dec(x_5); +x_53 = !lean_is_exclusive(x_7); +if (x_53 == 0) +{ +uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get_uint8(x_4, 0); +x_55 = lean_ctor_get(x_7, 5); +x_56 = l_Lean_replaceRef(x_1, x_55); +lean_dec(x_55); +lean_ctor_set(x_7, 5, x_56); +lean_inc(x_2); +x_57 = l_Lean_Meta_Grind_validateCasesAttr(x_2, x_54, x_7, x_8, x_9); +if (lean_obj_tag(x_57) == 0) +{ +uint8_t x_58; +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) +{ +lean_object* x_59; uint8_t x_60; +x_59 = lean_ctor_get(x_57, 0); +lean_dec(x_59); +x_60 = !lean_is_exclusive(x_3); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_3, 2); +x_62 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1(x_61, x_2, x_54); +lean_ctor_set(x_3, 2, x_62); +x_63 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_63, 0, x_3); +lean_ctor_set(x_57, 0, x_63); +return x_57; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_64 = lean_ctor_get(x_3, 0); +x_65 = lean_ctor_get(x_3, 1); +x_66 = lean_ctor_get(x_3, 2); +x_67 = lean_ctor_get(x_3, 3); +x_68 = lean_ctor_get(x_3, 4); +x_69 = lean_ctor_get(x_3, 5); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_3); +x_70 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1(x_66, x_2, x_54); +x_71 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_71, 0, x_64); +lean_ctor_set(x_71, 1, x_65); +lean_ctor_set(x_71, 2, x_70); +lean_ctor_set(x_71, 3, x_67); +lean_ctor_set(x_71, 4, x_68); +lean_ctor_set(x_71, 5, x_69); +x_72 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_57, 0, x_72); +return x_57; +} +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_73 = lean_ctor_get(x_57, 1); +lean_inc(x_73); +lean_dec(x_57); +x_74 = lean_ctor_get(x_3, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_3, 1); +lean_inc(x_75); +x_76 = lean_ctor_get(x_3, 2); +lean_inc(x_76); +x_77 = lean_ctor_get(x_3, 3); +lean_inc(x_77); +x_78 = lean_ctor_get(x_3, 4); +lean_inc(x_78); +x_79 = lean_ctor_get(x_3, 5); +lean_inc(x_79); if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 0); lean_ctor_release(x_3, 1); lean_ctor_release(x_3, 2); lean_ctor_release(x_3, 3); lean_ctor_release(x_3, 4); - x_156 = x_3; + lean_ctor_release(x_3, 5); + x_80 = x_3; } else { lean_dec_ref(x_3); - x_156 = lean_box(0); -} -x_157 = l_Lean_PersistentArray_push___rarg(x_153, x_149); -x_158 = 1; -x_159 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_158, x_5, x_6, x_7, x_8, x_150); -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; -x_160 = lean_ctor_get(x_159, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_159, 1); -lean_inc(x_161); -if (lean_is_exclusive(x_159)) { - lean_ctor_release(x_159, 0); - lean_ctor_release(x_159, 1); - x_162 = x_159; -} else { - lean_dec_ref(x_159); - x_162 = lean_box(0); + x_80 = lean_box(0); } -x_163 = l_Lean_PersistentArray_push___rarg(x_157, x_160); -if (lean_is_scalar(x_156)) { - x_164 = lean_alloc_ctor(0, 5, 0); -} else { - x_164 = x_156; -} -lean_ctor_set(x_164, 0, x_151); -lean_ctor_set(x_164, 1, x_152); -lean_ctor_set(x_164, 2, x_163); -lean_ctor_set(x_164, 3, x_154); -lean_ctor_set(x_164, 4, x_155); -x_165 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_165, 0, x_164); -if (lean_is_scalar(x_162)) { - x_166 = lean_alloc_ctor(0, 2, 0); +x_81 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1(x_76, x_2, x_54); +if (lean_is_scalar(x_80)) { + x_82 = lean_alloc_ctor(0, 6, 0); } else { - x_166 = x_162; + x_82 = x_80; +} +lean_ctor_set(x_82, 0, x_74); +lean_ctor_set(x_82, 1, x_75); +lean_ctor_set(x_82, 2, x_81); +lean_ctor_set(x_82, 3, x_77); +lean_ctor_set(x_82, 4, x_78); +lean_ctor_set(x_82, 5, x_79); +x_83 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_83, 0, x_82); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_73); +return x_84; } -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_161); -return x_166; } else { -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; -lean_dec(x_157); -lean_dec(x_156); -lean_dec(x_155); -lean_dec(x_154); -lean_dec(x_152); -lean_dec(x_151); -x_167 = lean_ctor_get(x_159, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_159, 1); -lean_inc(x_168); -if (lean_is_exclusive(x_159)) { - lean_ctor_release(x_159, 0); - lean_ctor_release(x_159, 1); - x_169 = x_159; -} else { - lean_dec_ref(x_159); - x_169 = lean_box(0); +uint8_t x_85; +lean_dec(x_3); +lean_dec(x_2); +x_85 = !lean_is_exclusive(x_57); +if (x_85 == 0) +{ +return x_57; } -if (lean_is_scalar(x_169)) { - x_170 = lean_alloc_ctor(1, 2, 0); +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_57, 0); +x_87 = lean_ctor_get(x_57, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_57); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; +} +} +} +else +{ +uint8_t x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_89 = lean_ctor_get_uint8(x_4, 0); +x_90 = lean_ctor_get(x_7, 0); +x_91 = lean_ctor_get(x_7, 1); +x_92 = lean_ctor_get(x_7, 2); +x_93 = lean_ctor_get(x_7, 3); +x_94 = lean_ctor_get(x_7, 4); +x_95 = lean_ctor_get(x_7, 5); +x_96 = lean_ctor_get(x_7, 6); +x_97 = lean_ctor_get(x_7, 7); +x_98 = lean_ctor_get(x_7, 8); +x_99 = lean_ctor_get(x_7, 9); +x_100 = lean_ctor_get(x_7, 10); +x_101 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_102 = lean_ctor_get(x_7, 11); +x_103 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_102); +lean_inc(x_100); +lean_inc(x_99); +lean_inc(x_98); +lean_inc(x_97); +lean_inc(x_96); +lean_inc(x_95); +lean_inc(x_94); +lean_inc(x_93); +lean_inc(x_92); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_7); +x_104 = l_Lean_replaceRef(x_1, x_95); +lean_dec(x_95); +x_105 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_105, 0, x_90); +lean_ctor_set(x_105, 1, x_91); +lean_ctor_set(x_105, 2, x_92); +lean_ctor_set(x_105, 3, x_93); +lean_ctor_set(x_105, 4, x_94); +lean_ctor_set(x_105, 5, x_104); +lean_ctor_set(x_105, 6, x_96); +lean_ctor_set(x_105, 7, x_97); +lean_ctor_set(x_105, 8, x_98); +lean_ctor_set(x_105, 9, x_99); +lean_ctor_set(x_105, 10, x_100); +lean_ctor_set(x_105, 11, x_102); +lean_ctor_set_uint8(x_105, sizeof(void*)*12, x_101); +lean_ctor_set_uint8(x_105, sizeof(void*)*12 + 1, x_103); +lean_inc(x_2); +x_106 = l_Lean_Meta_Grind_validateCasesAttr(x_2, x_89, x_105, x_8, x_9); +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; 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_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 { - x_170 = x_169; + lean_dec_ref(x_106); + x_108 = lean_box(0); +} +x_109 = lean_ctor_get(x_3, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_3, 1); +lean_inc(x_110); +x_111 = lean_ctor_get(x_3, 2); +lean_inc(x_111); +x_112 = lean_ctor_get(x_3, 3); +lean_inc(x_112); +x_113 = lean_ctor_get(x_3, 4); +lean_inc(x_113); +x_114 = lean_ctor_get(x_3, 5); +lean_inc(x_114); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + lean_ctor_release(x_3, 2); + lean_ctor_release(x_3, 3); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + x_115 = x_3; +} else { + lean_dec_ref(x_3); + x_115 = lean_box(0); } -lean_ctor_set(x_170, 0, x_167); -lean_ctor_set(x_170, 1, x_168); -return x_170; +x_116 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1(x_111, x_2, x_89); +if (lean_is_scalar(x_115)) { + x_117 = lean_alloc_ctor(0, 6, 0); +} else { + x_117 = x_115; +} +lean_ctor_set(x_117, 0, x_109); +lean_ctor_set(x_117, 1, x_110); +lean_ctor_set(x_117, 2, x_116); +lean_ctor_set(x_117, 3, x_112); +lean_ctor_set(x_117, 4, x_113); +lean_ctor_set(x_117, 5, x_114); +x_118 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_118, 0, x_117); +if (lean_is_scalar(x_108)) { + x_119 = lean_alloc_ctor(0, 2, 0); +} else { + 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_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_dec(x_3); -lean_dec(x_1); -x_171 = lean_ctor_get(x_148, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_148, 1); -lean_inc(x_172); -if (lean_is_exclusive(x_148)) { - lean_ctor_release(x_148, 0); - lean_ctor_release(x_148, 1); - x_173 = x_148; +lean_dec(x_2); +x_120 = lean_ctor_get(x_106, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_106, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + x_122 = x_106; } else { - lean_dec_ref(x_148); - x_173 = lean_box(0); + lean_dec_ref(x_106); + x_122 = lean_box(0); } -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_122)) { + x_123 = 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; + x_123 = x_122; } +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_121); +return x_123; } } } default: { -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; uint8_t x_182; -lean_dec(x_15); -lean_dec(x_3); -x_175 = lean_ctor_get(x_14, 1); -lean_inc(x_175); -lean_dec(x_14); -x_176 = l_Lean_MessageData_ofName(x_1); -x_177 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__2; -x_178 = lean_alloc_ctor(7, 2, 0); -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_Tactic_elabGrindParams___spec__2___lambda__3___closed__2; -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_throwErrorAt___at_Lean_Meta_Match_Alt_checkAndReplaceFVarId___spec__3(x_2, x_180, x_5, x_6, x_7, x_8, x_175); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_182 = !lean_is_exclusive(x_181); -if (x_182 == 0) +uint8_t x_124; lean_object* x_125; +x_124 = 0; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_2); +x_125 = l_Lean_Meta_Grind_isCasesAttrCandidate(x_2, x_124, x_7, x_8, x_9); +if (lean_obj_tag(x_125) == 0) +{ +lean_object* x_126; uint8_t x_127; +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_unbox(x_126); +lean_dec(x_126); +if (x_127 == 0) +{ +lean_object* x_128; uint8_t x_129; +x_128 = lean_ctor_get(x_125, 1); +lean_inc(x_128); +lean_dec(x_125); +x_129 = !lean_is_exclusive(x_7); +if (x_129 == 0) { -return x_181; +lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; +x_130 = lean_ctor_get(x_7, 5); +x_131 = l_Lean_replaceRef(x_1, x_130); +lean_dec(x_130); +lean_ctor_set(x_7, 5, x_131); +x_132 = 6; +x_133 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem(x_3, x_2, x_132, x_5, x_6, x_7, x_8, x_128); +if (lean_obj_tag(x_133) == 0) +{ +uint8_t x_134; +x_134 = !lean_is_exclusive(x_133); +if (x_134 == 0) +{ +lean_object* x_135; lean_object* x_136; +x_135 = lean_ctor_get(x_133, 0); +x_136 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_133, 0, x_136); +return x_133; +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_137 = lean_ctor_get(x_133, 0); +x_138 = lean_ctor_get(x_133, 1); +lean_inc(x_138); +lean_inc(x_137); +lean_dec(x_133); +x_139 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_139, 0, x_137); +x_140 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_138); +return x_140; +} +} +else +{ +uint8_t x_141; +x_141 = !lean_is_exclusive(x_133); +if (x_141 == 0) +{ +return x_133; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_142 = lean_ctor_get(x_133, 0); +x_143 = lean_ctor_get(x_133, 1); +lean_inc(x_143); +lean_inc(x_142); +lean_dec(x_133); +x_144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +return x_144; +} +} +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; +x_145 = lean_ctor_get(x_7, 0); +x_146 = lean_ctor_get(x_7, 1); +x_147 = lean_ctor_get(x_7, 2); +x_148 = lean_ctor_get(x_7, 3); +x_149 = lean_ctor_get(x_7, 4); +x_150 = lean_ctor_get(x_7, 5); +x_151 = lean_ctor_get(x_7, 6); +x_152 = lean_ctor_get(x_7, 7); +x_153 = lean_ctor_get(x_7, 8); +x_154 = lean_ctor_get(x_7, 9); +x_155 = lean_ctor_get(x_7, 10); +x_156 = lean_ctor_get_uint8(x_7, sizeof(void*)*12); +x_157 = lean_ctor_get(x_7, 11); +x_158 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1); +lean_inc(x_157); +lean_inc(x_155); +lean_inc(x_154); +lean_inc(x_153); +lean_inc(x_152); +lean_inc(x_151); +lean_inc(x_150); +lean_inc(x_149); +lean_inc(x_148); +lean_inc(x_147); +lean_inc(x_146); +lean_inc(x_145); +lean_dec(x_7); +x_159 = l_Lean_replaceRef(x_1, x_150); +lean_dec(x_150); +x_160 = lean_alloc_ctor(0, 12, 2); +lean_ctor_set(x_160, 0, x_145); +lean_ctor_set(x_160, 1, x_146); +lean_ctor_set(x_160, 2, x_147); +lean_ctor_set(x_160, 3, x_148); +lean_ctor_set(x_160, 4, x_149); +lean_ctor_set(x_160, 5, x_159); +lean_ctor_set(x_160, 6, x_151); +lean_ctor_set(x_160, 7, x_152); +lean_ctor_set(x_160, 8, x_153); +lean_ctor_set(x_160, 9, x_154); +lean_ctor_set(x_160, 10, x_155); +lean_ctor_set(x_160, 11, x_157); +lean_ctor_set_uint8(x_160, sizeof(void*)*12, x_156); +lean_ctor_set_uint8(x_160, sizeof(void*)*12 + 1, x_158); +x_161 = 6; +x_162 = l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem(x_3, x_2, x_161, x_5, x_6, x_160, x_8, x_128); +if (lean_obj_tag(x_162) == 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, 0); +lean_inc(x_163); +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_166, 0, x_163); +if (lean_is_scalar(x_165)) { + x_167 = lean_alloc_ctor(0, 2, 0); +} else { + x_167 = x_165; +} +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_164); +return x_167; } else { -lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_183 = lean_ctor_get(x_181, 0); -x_184 = lean_ctor_get(x_181, 1); -lean_inc(x_184); -lean_inc(x_183); -lean_dec(x_181); -x_185 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_185, 0, x_183); -lean_ctor_set(x_185, 1, x_184); -return x_185; +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_168 = lean_ctor_get(x_162, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_162, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_170 = x_162; +} else { + lean_dec_ref(x_162); + x_170 = lean_box(0); +} +if (lean_is_scalar(x_170)) { + x_171 = lean_alloc_ctor(1, 2, 0); +} else { + x_171 = x_170; } +lean_ctor_set(x_171, 0, x_168); +lean_ctor_set(x_171, 1, x_169); +return x_171; } } } else { -uint8_t x_186; +uint8_t x_172; 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_186 = !lean_is_exclusive(x_14); -if (x_186 == 0) -{ -return x_14; +x_172 = !lean_is_exclusive(x_125); +if (x_172 == 0) +{ +lean_object* x_173; uint8_t x_174; +x_173 = lean_ctor_get(x_125, 0); +lean_dec(x_173); +x_174 = !lean_is_exclusive(x_3); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = lean_ctor_get(x_3, 2); +x_176 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1(x_175, x_2, x_124); +lean_ctor_set(x_3, 2, x_176); +x_177 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_177, 0, x_3); +lean_ctor_set(x_125, 0, x_177); +return x_125; } else { -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_14, 0); -x_188 = lean_ctor_get(x_14, 1); -lean_inc(x_188); -lean_inc(x_187); -lean_dec(x_14); -x_189 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_189, 0, x_187); -lean_ctor_set(x_189, 1, x_188); -return x_189; -} +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; +x_178 = lean_ctor_get(x_3, 0); +x_179 = lean_ctor_get(x_3, 1); +x_180 = lean_ctor_get(x_3, 2); +x_181 = lean_ctor_get(x_3, 3); +x_182 = lean_ctor_get(x_3, 4); +x_183 = lean_ctor_get(x_3, 5); +lean_inc(x_183); +lean_inc(x_182); +lean_inc(x_181); +lean_inc(x_180); +lean_inc(x_179); +lean_inc(x_178); +lean_dec(x_3); +x_184 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1(x_180, x_2, x_124); +x_185 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_185, 0, x_178); +lean_ctor_set(x_185, 1, x_179); +lean_ctor_set(x_185, 2, x_184); +lean_ctor_set(x_185, 3, x_181); +lean_ctor_set(x_185, 4, x_182); +lean_ctor_set(x_185, 5, x_183); +x_186 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_186, 0, x_185); +lean_ctor_set(x_125, 0, x_186); +return x_125; } } else { -lean_object* x_190; lean_object* x_191; lean_object* x_192; uint8_t x_193; -lean_dec(x_3); -lean_dec(x_1); -x_190 = lean_ctor_get(x_10, 1); +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_187 = lean_ctor_get(x_125, 1); +lean_inc(x_187); +lean_dec(x_125); +x_188 = lean_ctor_get(x_3, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_3, 1); +lean_inc(x_189); +x_190 = lean_ctor_get(x_3, 2); lean_inc(x_190); -lean_dec(x_10); -x_191 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__6; -x_192 = l_Lean_throwErrorAt___at_Lean_Meta_Match_Alt_checkAndReplaceFVarId___spec__3(x_2, x_191, x_5, x_6, x_7, x_8, x_190); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -x_193 = !lean_is_exclusive(x_192); -if (x_193 == 0) -{ -return x_192; +x_191 = lean_ctor_get(x_3, 3); +lean_inc(x_191); +x_192 = lean_ctor_get(x_3, 4); +lean_inc(x_192); +x_193 = lean_ctor_get(x_3, 5); +lean_inc(x_193); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + lean_ctor_release(x_3, 2); + lean_ctor_release(x_3, 3); + lean_ctor_release(x_3, 4); + lean_ctor_release(x_3, 5); + x_194 = x_3; +} else { + lean_dec_ref(x_3); + x_194 = lean_box(0); } -else -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; -x_194 = lean_ctor_get(x_192, 0); -x_195 = lean_ctor_get(x_192, 1); -lean_inc(x_195); -lean_inc(x_194); -lean_dec(x_192); -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; +x_195 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1(x_190, x_2, x_124); +if (lean_is_scalar(x_194)) { + x_196 = lean_alloc_ctor(0, 6, 0); +} else { + x_196 = x_194; +} +lean_ctor_set(x_196, 0, x_188); +lean_ctor_set(x_196, 1, x_189); +lean_ctor_set(x_196, 2, x_195); +lean_ctor_set(x_196, 3, x_191); +lean_ctor_set(x_196, 4, x_192); +lean_ctor_set(x_196, 5, x_193); +x_197 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_197, 0, x_196); +x_198 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_187); +return x_198; } } } else { -uint8_t x_197; +uint8_t x_199; 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_197 = !lean_is_exclusive(x_10); -if (x_197 == 0) +lean_dec(x_2); +x_199 = !lean_is_exclusive(x_125); +if (x_199 == 0) { -return x_10; +return x_125; } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; -x_198 = lean_ctor_get(x_10, 0); -x_199 = lean_ctor_get(x_10, 1); -lean_inc(x_199); -lean_inc(x_198); -lean_dec(x_10); -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_200; lean_object* x_201; lean_object* x_202; +x_200 = lean_ctor_get(x_125, 0); +x_201 = lean_ctor_get(x_125, 1); +lean_inc(x_201); +lean_inc(x_200); +lean_dec(x_125); +x_202 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_202, 0, x_200); +lean_ctor_set(x_202, 1, x_201); +return x_202; +} } } } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__1() { +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -4362,16 +4721,16 @@ x_1 = lean_mk_string_unchecked("unexpected `grind` parameter", 28, 28); return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__2() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__1; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; @@ -4388,7 +4747,7 @@ lean_dec(x_5); lean_dec(x_3); x_15 = l_Lean_MessageData_ofSyntax(x_2); x_16 = l_Lean_indentD(x_15); -x_17 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__2; +x_17 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___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); @@ -4431,14 +4790,14 @@ if (lean_obj_tag(x_27) == 0) { if (lean_obj_tag(x_5) == 0) { -lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* 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 = 5; -x_31 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3(x_28, x_2, x_3, x_30, x_6, x_7, x_8, x_9, x_29); +x_30 = lean_box(2); +x_31 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__1(x_2, x_28, x_3, x_30, x_6, x_7, x_8, x_9, x_29); lean_dec(x_2); return x_31; } @@ -4453,24 +4812,23 @@ lean_dec(x_27); x_34 = lean_ctor_get(x_5, 0); lean_inc(x_34); lean_dec(x_5); -x_35 = l_Lean_Meta_Grind_getTheoremKindCore(x_34, x_8, x_9, x_33); +x_35 = l_Lean_Meta_Grind_getAttrKindCore(x_34, x_8, x_9, x_33); if (lean_obj_tag(x_35) == 0) { -lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; +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 = lean_unbox(x_36); +x_38 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__1(x_2, x_32, x_3, x_36, x_6, x_7, x_8, x_9, x_37); lean_dec(x_36); -x_39 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3(x_32, x_2, x_3, x_38, x_6, x_7, x_8, x_9, x_37); lean_dec(x_2); -return x_39; +return x_38; } else { -uint8_t x_40; +uint8_t x_39; lean_dec(x_32); lean_dec(x_9); lean_dec(x_8); @@ -4478,30 +4836,30 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_40 = !lean_is_exclusive(x_35); -if (x_40 == 0) +x_39 = !lean_is_exclusive(x_35); +if (x_39 == 0) { return x_35; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_35, 0); -x_42 = lean_ctor_get(x_35, 1); -lean_inc(x_42); +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_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; +x_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_44; +uint8_t x_43; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -4509,29 +4867,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_44 = !lean_is_exclusive(x_27); -if (x_44 == 0) +x_43 = !lean_is_exclusive(x_27); +if (x_43 == 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_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_27, 0); +x_45 = lean_ctor_get(x_27, 1); lean_inc(x_45); +lean_inc(x_44); 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; +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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__1() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__1() { _start: { lean_object* x_1; @@ -4539,19 +4897,19 @@ x_1 = lean_mk_string_unchecked("grindParam", 10, 10); return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__2() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__1; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__3() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__3() { _start: { lean_object* x_1; @@ -4559,19 +4917,19 @@ x_1 = lean_mk_string_unchecked("grindErase", 10, 10); return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__4() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__3; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_Tactic_elabGrindParams___spec__2___closed__5() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__5() { _start: { lean_object* x_1; @@ -4579,19 +4937,19 @@ x_1 = lean_mk_string_unchecked("grindLemma", 10, 10); return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__6() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__5; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_Tactic_elabGrindParams___spec__2___closed__7() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__7() { _start: { lean_object* x_1; @@ -4599,27 +4957,27 @@ x_1 = lean_mk_string_unchecked("Attr", 4, 4); return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__8() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__8() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("grindThmMod", 11, 11); +x_1 = lean_mk_string_unchecked("grindMod", 8, 8); return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__9() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Grind___hyg_5____closed__1; x_2 = l_Lean_Elab_Tactic_elabGrindPattern___closed__1; -x_3 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__7; -x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__8; +x_3 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__7; +x_4 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__8; 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_Tactic_elabGrindParams___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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, 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; @@ -4640,7 +4998,7 @@ else { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_24; uint8_t x_25; x_14 = lean_array_uget(x_3, x_5); -x_24 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__2; +x_24 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__2; lean_inc(x_14); x_25 = l_Lean_Syntax_isOfKind(x_14, x_24); if (x_25 == 0) @@ -4649,7 +5007,7 @@ lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean lean_dec(x_6); x_26 = l_Lean_MessageData_ofSyntax(x_14); x_27 = l_Lean_indentD(x_26); -x_28 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__2; +x_28 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___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); @@ -4686,13 +5044,13 @@ else lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; x_37 = lean_unsigned_to_nat(0u); x_38 = l_Lean_Syntax_getArg(x_14, x_37); -x_39 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__4; +x_39 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__4; lean_inc(x_38); x_40 = l_Lean_Syntax_isOfKind(x_38, x_39); if (x_40 == 0) { lean_object* x_41; uint8_t x_42; -x_41 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__6; +x_41 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__6; lean_inc(x_38); x_42 = l_Lean_Syntax_isOfKind(x_38, x_41); if (x_42 == 0) @@ -4702,7 +5060,7 @@ lean_dec(x_38); lean_dec(x_6); x_43 = l_Lean_MessageData_ofSyntax(x_14); x_44 = l_Lean_indentD(x_43); -x_45 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__2; +x_45 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__2; x_46 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_46, 1, x_44); @@ -4753,7 +5111,7 @@ lean_dec(x_38); lean_dec(x_6); x_58 = l_Lean_MessageData_ofSyntax(x_14); x_59 = l_Lean_indentD(x_58); -x_60 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__2; +x_60 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__2; x_61 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_61, 0, x_60); lean_ctor_set(x_61, 1, x_59); @@ -4790,7 +5148,7 @@ else lean_object* x_69; lean_object* x_70; uint8_t x_71; x_69 = l_Lean_Syntax_getArg(x_54, x_37); lean_dec(x_54); -x_70 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__9; +x_70 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__9; lean_inc(x_69); x_71 = l_Lean_Syntax_isOfKind(x_69, x_70); if (x_71 == 0) @@ -4801,7 +5159,7 @@ lean_dec(x_38); lean_dec(x_6); x_72 = l_Lean_MessageData_ofSyntax(x_14); x_73 = l_Lean_indentD(x_72); -x_74 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__2; +x_74 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__2; x_75 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_75, 0, x_74); lean_ctor_set(x_75, 1, x_73); @@ -4843,7 +5201,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_85 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4(x_38, x_14, x_6, x_84, x_83, x_7, x_8, x_9, x_10, x_11); +x_85 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2(x_38, x_14, x_6, x_84, x_83, x_7, x_8, x_9, x_10, x_11); lean_dec(x_38); if (lean_obj_tag(x_85) == 0) { @@ -4896,7 +5254,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_94 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4(x_38, x_14, x_6, x_93, x_92, x_7, x_8, x_9, x_10, x_11); +x_94 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2(x_38, x_14, x_6, x_93, x_92, x_7, x_8, x_9, x_10, x_11); lean_dec(x_38); if (lean_obj_tag(x_94) == 0) { @@ -4955,7 +5313,7 @@ lean_dec(x_102); lean_dec(x_6); x_105 = l_Lean_MessageData_ofSyntax(x_14); x_106 = l_Lean_indentD(x_105); -x_107 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__2; +x_107 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__2; x_108 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_108, 0, x_107); lean_ctor_set(x_108, 1, x_106); @@ -4990,262 +5348,370 @@ return x_115; else { lean_object* x_116; lean_object* x_117; +lean_dec(x_14); x_116 = lean_box(0); lean_inc(x_10); lean_inc(x_9); x_117 = l_Lean_Elab_realizeGlobalConstNoOverloadWithInfo(x_102, x_116, x_9, x_10, x_11); if (lean_obj_tag(x_117) == 0) { -lean_object* x_118; lean_object* x_119; lean_object* x_120; +lean_object* x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; 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 = 0; lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); lean_inc(x_118); -x_120 = l_Lean_Meta_isInductivePredicate(x_118, x_7, x_8, x_9, x_10, x_119); -if (lean_obj_tag(x_120) == 0) -{ -lean_object* x_121; uint8_t x_122; -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_unbox(x_121); +x_121 = l_Lean_Meta_Grind_isCasesAttrCandidate(x_118, x_120, x_9, x_10, x_119); +if (lean_obj_tag(x_121) == 0) +{ +lean_object* x_122; uint8_t x_123; +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; uint8_t x_125; +x_124 = lean_ctor_get(x_121, 1); +lean_inc(x_124); lean_dec(x_121); -if (x_122 == 0) -{ -lean_object* x_123; uint8_t x_124; -lean_dec(x_14); -x_123 = lean_ctor_get(x_120, 1); -lean_inc(x_123); -lean_dec(x_120); -x_124 = !lean_is_exclusive(x_6); -if (x_124 == 0) -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_125 = lean_ctor_get(x_6, 0); -x_126 = lean_ctor_get(x_6, 1); -x_127 = lean_ctor_get(x_6, 2); -x_128 = lean_ctor_get(x_6, 3); -x_129 = lean_ctor_get(x_6, 4); +x_125 = !lean_is_exclusive(x_6); +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; +x_126 = lean_ctor_get(x_6, 0); +x_127 = lean_ctor_get(x_6, 1); +x_128 = lean_ctor_get(x_6, 2); +x_129 = lean_ctor_get(x_6, 3); +x_130 = lean_ctor_get(x_6, 4); +x_131 = lean_ctor_get(x_6, 5); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_130 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl(x_126, x_118, x_7, x_8, x_9, x_10, x_123); -if (lean_obj_tag(x_130) == 0) +x_132 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl(x_127, x_118, x_7, x_8, x_9, x_10, x_124); +if (lean_obj_tag(x_132) == 0) { -lean_object* x_131; lean_object* x_132; lean_object* x_133; -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); -lean_ctor_set(x_6, 1, x_131); -x_133 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_133, 0, x_6); -x_15 = x_133; -x_16 = x_132; +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_ctor_set(x_6, 1, x_133); +x_135 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_135, 0, x_6); +x_15 = x_135; +x_16 = x_134; goto block_23; } else { -uint8_t x_134; +uint8_t x_136; lean_free_object(x_6); +lean_dec(x_131); +lean_dec(x_130); lean_dec(x_129); lean_dec(x_128); -lean_dec(x_127); -lean_dec(x_125); +lean_dec(x_126); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_134 = !lean_is_exclusive(x_130); -if (x_134 == 0) +x_136 = !lean_is_exclusive(x_132); +if (x_136 == 0) { -return x_130; +return x_132; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_135 = lean_ctor_get(x_130, 0); -x_136 = lean_ctor_get(x_130, 1); -lean_inc(x_136); -lean_inc(x_135); -lean_dec(x_130); -x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_135); -lean_ctor_set(x_137, 1, x_136); -return x_137; +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_132, 0); +x_138 = lean_ctor_get(x_132, 1); +lean_inc(x_138); +lean_inc(x_137); +lean_dec(x_132); +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 { -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_138 = lean_ctor_get(x_6, 0); -x_139 = lean_ctor_get(x_6, 1); -x_140 = lean_ctor_get(x_6, 2); -x_141 = lean_ctor_get(x_6, 3); -x_142 = lean_ctor_get(x_6, 4); +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_140 = lean_ctor_get(x_6, 0); +x_141 = lean_ctor_get(x_6, 1); +x_142 = lean_ctor_get(x_6, 2); +x_143 = lean_ctor_get(x_6, 3); +x_144 = lean_ctor_get(x_6, 4); +x_145 = lean_ctor_get(x_6, 5); +lean_inc(x_145); +lean_inc(x_144); +lean_inc(x_143); lean_inc(x_142); lean_inc(x_141); lean_inc(x_140); -lean_inc(x_139); -lean_inc(x_138); lean_dec(x_6); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_143 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl(x_139, x_118, x_7, x_8, x_9, x_10, x_123); -if (lean_obj_tag(x_143) == 0) +x_146 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl(x_141, x_118, x_7, x_8, x_9, x_10, x_124); +if (lean_obj_tag(x_146) == 0) { -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -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_alloc_ctor(0, 5, 0); -lean_ctor_set(x_146, 0, x_138); -lean_ctor_set(x_146, 1, x_144); -lean_ctor_set(x_146, 2, x_140); -lean_ctor_set(x_146, 3, x_141); -lean_ctor_set(x_146, 4, x_142); -x_147 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_147, 0, x_146); -x_15 = x_147; -x_16 = x_145; +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +lean_dec(x_146); +x_149 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_149, 0, x_140); +lean_ctor_set(x_149, 1, x_147); +lean_ctor_set(x_149, 2, x_142); +lean_ctor_set(x_149, 3, x_143); +lean_ctor_set(x_149, 4, x_144); +lean_ctor_set(x_149, 5, x_145); +x_150 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_150, 0, x_149); +x_15 = x_150; +x_16 = x_148; goto block_23; } else { -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +lean_dec(x_145); +lean_dec(x_144); +lean_dec(x_143); lean_dec(x_142); -lean_dec(x_141); lean_dec(x_140); -lean_dec(x_138); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_148 = lean_ctor_get(x_143, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_143, 1); -lean_inc(x_149); -if (lean_is_exclusive(x_143)) { - lean_ctor_release(x_143, 0); - lean_ctor_release(x_143, 1); - x_150 = x_143; +x_151 = lean_ctor_get(x_146, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_146, 1); +lean_inc(x_152); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_153 = x_146; } else { - lean_dec_ref(x_143); - x_150 = lean_box(0); + lean_dec_ref(x_146); + x_153 = lean_box(0); } -if (lean_is_scalar(x_150)) { - x_151 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_153)) { + x_154 = lean_alloc_ctor(1, 2, 0); } else { - x_151 = x_150; + x_154 = x_153; } -lean_ctor_set(x_151, 0, x_148); -lean_ctor_set(x_151, 1, x_149); -return x_151; +lean_ctor_set(x_154, 0, x_151); +lean_ctor_set(x_154, 1, x_152); +return x_154; } } } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; -lean_dec(x_118); -lean_dec(x_6); -x_152 = lean_ctor_get(x_120, 1); -lean_inc(x_152); -lean_dec(x_120); -x_153 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__6; -x_154 = l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabGrindParams___spec__1(x_14, x_153, x_7, x_8, x_9, x_10, x_152); +lean_object* x_155; uint8_t x_156; +x_155 = lean_ctor_get(x_121, 1); +lean_inc(x_155); +lean_dec(x_121); +x_156 = !lean_is_exclusive(x_6); +if (x_156 == 0) +{ +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; +x_157 = lean_ctor_get(x_6, 0); +x_158 = lean_ctor_get(x_6, 1); +x_159 = lean_ctor_get(x_6, 2); +x_160 = lean_ctor_get(x_6, 3); +x_161 = lean_ctor_get(x_6, 4); +x_162 = lean_ctor_get(x_6, 5); +x_163 = l_Lean_Meta_Grind_CasesTypes_eraseDecl(x_159, x_118, x_9, x_10, x_155); +if (lean_obj_tag(x_163) == 0) +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; +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); +lean_ctor_set(x_6, 2, x_164); +x_166 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_166, 0, x_6); +x_15 = x_166; +x_16 = x_165; +goto block_23; +} +else +{ +uint8_t x_167; +lean_free_object(x_6); +lean_dec(x_162); +lean_dec(x_161); +lean_dec(x_160); +lean_dec(x_158); +lean_dec(x_157); lean_dec(x_10); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_14); -x_155 = !lean_is_exclusive(x_154); -if (x_155 == 0) +x_167 = !lean_is_exclusive(x_163); +if (x_167 == 0) { -return x_154; +return x_163; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_156 = lean_ctor_get(x_154, 0); -x_157 = lean_ctor_get(x_154, 1); -lean_inc(x_157); -lean_inc(x_156); -lean_dec(x_154); -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_168; lean_object* x_169; lean_object* x_170; +x_168 = lean_ctor_get(x_163, 0); +x_169 = lean_ctor_get(x_163, 1); +lean_inc(x_169); +lean_inc(x_168); +lean_dec(x_163); +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; +} +} +} +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_171 = lean_ctor_get(x_6, 0); +x_172 = lean_ctor_get(x_6, 1); +x_173 = lean_ctor_get(x_6, 2); +x_174 = lean_ctor_get(x_6, 3); +x_175 = lean_ctor_get(x_6, 4); +x_176 = lean_ctor_get(x_6, 5); +lean_inc(x_176); +lean_inc(x_175); +lean_inc(x_174); +lean_inc(x_173); +lean_inc(x_172); +lean_inc(x_171); +lean_dec(x_6); +x_177 = l_Lean_Meta_Grind_CasesTypes_eraseDecl(x_173, x_118, x_9, x_10, x_155); +if (lean_obj_tag(x_177) == 0) +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +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_alloc_ctor(0, 6, 0); +lean_ctor_set(x_180, 0, x_171); +lean_ctor_set(x_180, 1, x_172); +lean_ctor_set(x_180, 2, x_178); +lean_ctor_set(x_180, 3, x_174); +lean_ctor_set(x_180, 4, x_175); +lean_ctor_set(x_180, 5, x_176); +x_181 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_181, 0, x_180); +x_15 = x_181; +x_16 = x_179; +goto block_23; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +lean_dec(x_176); +lean_dec(x_175); +lean_dec(x_174); +lean_dec(x_172); +lean_dec(x_171); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_182 = lean_ctor_get(x_177, 0); +lean_inc(x_182); +x_183 = lean_ctor_get(x_177, 1); +lean_inc(x_183); +if (lean_is_exclusive(x_177)) { + lean_ctor_release(x_177, 0); + lean_ctor_release(x_177, 1); + x_184 = x_177; +} else { + lean_dec_ref(x_177); + x_184 = lean_box(0); +} +if (lean_is_scalar(x_184)) { + x_185 = lean_alloc_ctor(1, 2, 0); +} else { + x_185 = x_184; +} +lean_ctor_set(x_185, 0, x_182); +lean_ctor_set(x_185, 1, x_183); +return x_185; +} } } } else { -uint8_t x_159; +uint8_t x_186; lean_dec(x_118); -lean_dec(x_14); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_159 = !lean_is_exclusive(x_120); -if (x_159 == 0) +x_186 = !lean_is_exclusive(x_121); +if (x_186 == 0) { -return x_120; +return x_121; } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_120, 0); -x_161 = lean_ctor_get(x_120, 1); -lean_inc(x_161); -lean_inc(x_160); -lean_dec(x_120); -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; +lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_187 = lean_ctor_get(x_121, 0); +x_188 = lean_ctor_get(x_121, 1); +lean_inc(x_188); +lean_inc(x_187); +lean_dec(x_121); +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_187); +lean_ctor_set(x_189, 1, x_188); +return x_189; } } } else { -uint8_t x_163; -lean_dec(x_14); +uint8_t x_190; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_163 = !lean_is_exclusive(x_117); -if (x_163 == 0) +x_190 = !lean_is_exclusive(x_117); +if (x_190 == 0) { return x_117; } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_ctor_get(x_117, 0); -x_165 = lean_ctor_get(x_117, 1); -lean_inc(x_165); -lean_inc(x_164); +lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_191 = lean_ctor_get(x_117, 0); +x_192 = lean_ctor_get(x_117, 1); +lean_inc(x_192); +lean_inc(x_191); lean_dec(x_117); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_164); -lean_ctor_set(x_166, 1, x_165); -return x_166; +x_193 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_193, 0, x_191); +lean_ctor_set(x_193, 1, x_192); +return x_193; } } } @@ -5292,7 +5758,7 @@ lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; x_8 = lean_box(0); x_9 = lean_array_size(x_2); x_10 = 0; -x_11 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2(x_2, x_8, x_2, x_9, x_10, x_1, x_3, x_4, x_5, x_6, x_7); +x_11 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1(x_2, x_8, x_2, x_9, x_10, x_1, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_11) == 0) { uint8_t x_12; @@ -5339,62 +5805,27 @@ return x_19; } } } -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_elabGrindParams___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_throwErrorAt___at_Lean_Elab_Tactic_elabGrindParams___spec__1(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_1); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_4); -lean_dec(x_2); +lean_dec(x_1); return x_10; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___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_3); -lean_dec(x_3); -x_12 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_5); -lean_dec(x_2); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___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: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_4); -lean_dec(x_4); -x_11 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3(x_1, x_2, x_3, x_10, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_2); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_4); lean_dec(x_1); return x_11; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___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; @@ -5402,7 +5833,7 @@ x_12 = lean_unbox_usize(x_4); lean_dec(x_4); x_13 = lean_unbox_usize(x_5); lean_dec(x_5); -x_14 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -5418,44 +5849,48 @@ lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkGrindParams___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_EXPORT lean_object* l_Lean_Elab_Tactic_mkGrindParams___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_9; -x_9 = !lean_is_exclusive(x_1); -if (x_9 == 0) +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 0) { -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_1, 1); -lean_dec(x_10); -lean_ctor_set(x_1, 1, x_3); -x_11 = l_Lean_Elab_Tactic_elabGrindParams(x_1, x_2, x_4, x_5, x_6, x_7, x_8); -return x_11; +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_1, 2); +lean_dec(x_11); +x_12 = lean_ctor_get(x_1, 1); +lean_dec(x_12); +lean_ctor_set(x_1, 2, x_4); +lean_ctor_set(x_1, 1, x_2); +x_13 = l_Lean_Elab_Tactic_elabGrindParams(x_1, x_3, x_5, x_6, x_7, x_8, x_9); +return x_13; } 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; -x_12 = lean_ctor_get(x_1, 0); -x_13 = lean_ctor_get(x_1, 2); -x_14 = lean_ctor_get(x_1, 3); -x_15 = lean_ctor_get(x_1, 4); +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_1, 0); +x_15 = lean_ctor_get(x_1, 3); +x_16 = lean_ctor_get(x_1, 4); +x_17 = lean_ctor_get(x_1, 5); +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_dec(x_1); -x_16 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_16, 0, x_12); -lean_ctor_set(x_16, 1, x_3); -lean_ctor_set(x_16, 2, x_13); -lean_ctor_set(x_16, 3, x_14); -lean_ctor_set(x_16, 4, x_15); -x_17 = l_Lean_Elab_Tactic_elabGrindParams(x_16, x_2, x_4, x_5, x_6, x_7, x_8); -return x_17; +x_18 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_18, 0, x_14); +lean_ctor_set(x_18, 1, x_2); +lean_ctor_set(x_18, 2, x_4); +lean_ctor_set(x_18, 3, x_15); +lean_ctor_set(x_18, 4, x_16); +lean_ctor_set(x_18, 5, x_17); +x_19 = l_Lean_Elab_Tactic_elabGrindParams(x_18, x_3, x_5, x_6, x_7, x_8, x_9); +return x_19; } } } -static lean_object* _init_l_Lean_Elab_Tactic_mkGrindParams___closed__1() { +static lean_object* _init_l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -5463,21 +5898,45 @@ x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_mkGrindParams___closed__2() { +static lean_object* _init_l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_mkGrindParams___closed__1; +x_1 = l_Lean_Elab_Tactic_mkGrindParams___lambda__2___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_Elab_Tactic_mkGrindParams___closed__3() { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkGrindParams___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +if (x_3 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = l_Lean_Meta_Grind_getCasesTypes___rarg(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_Elab_Tactic_mkGrindParams___lambda__1(x_1, x_4, x_2, x_11, x_5, x_6, x_7, x_8, x_12); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__2; +x_15 = l_Lean_Elab_Tactic_mkGrindParams___lambda__1(x_1, x_4, x_2, x_14, x_5, x_6, x_7, x_8, x_9); +return x_15; +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_mkGrindParams___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_mkGrindParams___closed__2; +x_1 = l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__2; x_2 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedEMatchTheorems___spec__1; x_3 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_3, 0, x_1); @@ -5507,7 +5966,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); lean_dec(x_12); -x_15 = l_Lean_Elab_Tactic_mkGrindParams___lambda__1(x_10, x_3, x_13, x_4, x_5, x_6, x_7, x_14); +x_15 = l_Lean_Elab_Tactic_mkGrindParams___lambda__2(x_10, x_3, x_2, x_13, x_4, x_5, x_6, x_7, x_14); return x_15; } else @@ -5518,8 +5977,8 @@ lean_inc(x_16); x_17 = lean_ctor_get(x_9, 1); lean_inc(x_17); lean_dec(x_9); -x_18 = l_Lean_Elab_Tactic_mkGrindParams___closed__3; -x_19 = l_Lean_Elab_Tactic_mkGrindParams___lambda__1(x_16, x_3, x_18, x_4, x_5, x_6, x_7, x_17); +x_18 = l_Lean_Elab_Tactic_mkGrindParams___closed__1; +x_19 = l_Lean_Elab_Tactic_mkGrindParams___lambda__2(x_16, x_3, x_2, x_18, x_4, x_5, x_6, x_7, x_17); return x_19; } } @@ -5551,13 +6010,24 @@ return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkGrindParams___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_EXPORT lean_object* l_Lean_Elab_Tactic_mkGrindParams___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_9; -x_9 = l_Lean_Elab_Tactic_mkGrindParams___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_mkGrindParams___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; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkGrindParams___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: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_3); +lean_dec(x_3); +x_11 = l_Lean_Elab_Tactic_mkGrindParams___lambda__2(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_2); -return x_9; +return x_11; } } LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkGrindParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { @@ -6208,7 +6678,7 @@ static lean_object* _init_l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_mkGrindParams___closed__2; +x_1 = l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__2; x_2 = l___private_Lean_Elab_Tactic_Grind_0__Lean_Elab_Tactic_elabFallback___closed__12; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -7743,62 +8213,58 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_elabInitGrindNorm__1___clos if (builtin) {res = l___regBuiltin_Lean_Elab_Tactic_elabInitGrindNorm__1(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -}l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__1); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__2(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__2); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__3(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__3); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__4(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__1___closed__4); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__1); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__2(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__2); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__3(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__3); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__4(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__2___closed__4); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__1); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__2(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__2); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__3(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__3); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__4(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__4); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__5 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__5(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__5); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__6 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__6(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__3___closed__6); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__1); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__2(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___lambda__4___closed__2); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__1); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__2(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__2); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__3(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__3); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__4(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__4); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__5 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__5(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__5); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__6 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__6(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__6); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__7 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__7(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__7); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__8 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__8(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__8); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__9 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__9(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__2___closed__9); +}l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__1); +l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__2 = _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__2); +l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__3 = _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__3); +l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__4 = _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__1___closed__4); +l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__1); +l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__2 = _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__2); +l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__3 = _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__3); +l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__4 = _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___lambda__2___closed__4); +l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__1 = _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__1); +l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__2 = _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__2); +l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__3 = _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__3); +l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__4 = _init_l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_elabGrindParams_addEMatchTheorem___closed__4); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__1); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___lambda__2___closed__2); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__1); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__2); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__3(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__3); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__4(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__4); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__5 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__5(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__5); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__6 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__6(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__6); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__7 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__7(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__7); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__8 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__8(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__8); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__9 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__9(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_elabGrindParams___spec__1___closed__9); +l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__1); +l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__2 = _init_l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_mkGrindParams___lambda__2___closed__2); l_Lean_Elab_Tactic_mkGrindParams___closed__1 = _init_l_Lean_Elab_Tactic_mkGrindParams___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_mkGrindParams___closed__1); -l_Lean_Elab_Tactic_mkGrindParams___closed__2 = _init_l_Lean_Elab_Tactic_mkGrindParams___closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_mkGrindParams___closed__2); -l_Lean_Elab_Tactic_mkGrindParams___closed__3 = _init_l_Lean_Elab_Tactic_mkGrindParams___closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_mkGrindParams___closed__3); l_Lean_Elab_Tactic_grind___closed__1 = _init_l_Lean_Elab_Tactic_grind___closed__1(); 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(); diff --git a/stage0/stdlib/Lean/Environment.c b/stage0/stdlib/Lean/Environment.c index 1838264b0d04..1bad92bde385 100644 --- a/stage0/stdlib/Lean/Environment.c +++ b/stage0/stdlib/Lean/Environment.c @@ -20,12 +20,11 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_Environmen static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_85____closed__9; LEAN_EXPORT lean_object* l_Lean_throwAlreadyImported___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__2; static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__35; static lean_object* l_Lean_instBEqConstantKind___closed__1; LEAN_EXPORT lean_object* l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instMonadEnvOfMonadLift(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__4; -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__9___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_Environment_dbgFormatAsyncState___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_reprPrec(lean_object*, lean_object*); @@ -49,7 +48,6 @@ lean_object* lean_read_module_data(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkModuleData___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtension_getState___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkModuleData(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBTree_toArray___at_Lean_mkModuleData___spec__4(lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_importModules___spec__1___closed__2; LEAN_EXPORT lean_object* lean_elab_environment_of_kernel_env(lean_object*); @@ -65,7 +63,6 @@ static lean_object* l___auto____x40_Lean_Environment___hyg_5404____closed__20; static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__17; LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_modifyState___rarg___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_addDeclCore(lean_object*, size_t, lean_object*, lean_object*, uint8_t); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_5359_(lean_object*); LEAN_EXPORT lean_object* l_Lean_registerPersistentEnvExtensionUnsafe(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_importModules___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -92,7 +89,6 @@ static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40 static lean_object* l_Option_repr___at_Lean_Environment_dbgFormatAsyncState___spec__12___closed__2; static lean_object* l_List_repr___at_Lean_Environment_dbgFormatAsyncState___spec__9___closed__5; lean_object* l_Lean_profileitIOUnsafe___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_instModuleIdxToString___closed__1; LEAN_EXPORT lean_object* l_Lean_TagDeclarationExtension_instInhabited; static lean_object* l___private_Lean_Environment_0__Lean_Environment_throwUnexpectedType___rarg___closed__3; @@ -108,6 +104,7 @@ LEAN_EXPORT lean_object* l_Lean_Kernel_enableDiag___boxed(lean_object*, lean_obj LEAN_EXPORT lean_object* l_Lean_Environment_header(lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_mkTagDeclarationExtension___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MapDeclarationExtension_insert(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_finalizeImport___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); @@ -118,6 +115,7 @@ LEAN_EXPORT lean_object* l_Lean_Environment_allImportedModuleNames___boxed(lean_ lean_object* lean_io_promise_new(lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_AddConstAsyncResult_commitSignature___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrefixTreeNode_empty(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__9___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__5; static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__19; @@ -133,7 +131,6 @@ LEAN_EXPORT lean_object* l_Lean_mkMapDeclarationExtension___rarg___lambda__1(lea LEAN_EXPORT lean_object* l_Lean_instReprConstantKind; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_registerPersistentEnvExtensionUnsafe___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__16; -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__5; lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedEnvExtensionState; LEAN_EXPORT lean_object* l_Lean_AsyncConsts_find_x3f(lean_object*, lean_object*); @@ -145,6 +142,7 @@ static lean_object* l___private_Lean_Environment_0__Lean_Environment_throwUnexpe lean_object* l_Array_findIdx_x3f_loop___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_kernel_is_def_eq(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*); @@ -168,6 +166,7 @@ uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__8; static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_85____closed__3; LEAN_EXPORT lean_object* l_Lean_importModulesCore(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*); uint8_t l_Lean_NameHashSet_contains(lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_invalidExtMsg___closed__1; static lean_object* l_Lean_mkTagDeclarationExtension___closed__3; @@ -200,11 +199,11 @@ LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___la LEAN_EXPORT lean_object* l_Lean_EnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__10(lean_object*, lean_object*, lean_object*); lean_object* lean_get_num_attributes(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__1; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_mkInitialExtStates(lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedAsyncConsts; static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__28; static lean_object* l_Lean_Environment_AddConstAsyncResult_commitConst___closed__2; -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Environment_find_x3f(lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Environment___hyg_5404____closed__14; static lean_object* l_Lean_Environment_ofKernelEnv___closed__2; @@ -212,6 +211,7 @@ static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Kernel_Environment_find lean_object* l_Std_DHashMap_Raw_Internal_numBuckets___rarg(lean_object*); lean_object* l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_finalizeImport_unsafe__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_imports___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_beqConstantKind____x40_Lean_Environment___hyg_1222____boxed(lean_object*, lean_object*); @@ -225,7 +225,6 @@ lean_object* l_List_find_x3f___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Environment_AddConstAsyncResult_commitFailure___closed__5; static lean_object* l_List_repr___at_Lean_Environment_dbgFormatAsyncState___spec__9___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Kernel_getDiagnostics(lean_object*); LEAN_EXPORT lean_object* l_Lean_ImportStateM_run(lean_object*); static lean_object* l___auto____x40_Lean_Environment___hyg_5404____closed__6; @@ -296,14 +295,12 @@ lean_object* l_Lean_initializing(lean_object*); LEAN_EXPORT lean_object* l_Lean_ConstantKind_noConfusion___rarg___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_85____boxed(lean_object*, lean_object*); lean_object* lean_elab_add_decl_without_checking(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrefixTreeNode_findLongestPrefix_x3f_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_AddConstAsyncResult_commitSignature___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_environment_mark_quot_init(lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_AddConstAsyncResult_commitFailure___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__10(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkMapDeclarationExtension___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_TagDeclarationExtension_tag___closed__1; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__4(lean_object*); @@ -356,7 +353,6 @@ static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40 static lean_object* l___auto____x40_Lean_Environment___hyg_5404____closed__28; LEAN_EXPORT lean_object* l_Lean_instToStringImport(lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__7(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(lean_object*); lean_object* l_List_toArray___rarg(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_registerPersistentEnvExtensionUnsafe___spec__1___rarg(lean_object*, lean_object*, size_t, size_t); @@ -375,6 +371,7 @@ lean_object* lean_nat_to_int(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_throwUnexpectedType___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Environment_addDeclCore___closed__1; static lean_object* l___auto____x40_Lean_Environment___hyg_5404____closed__16; +LEAN_EXPORT lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__4(lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkEmptyEnvironment___boxed(lean_object*, lean_object*); static lean_object* l_Lean_mkMapDeclarationExtension___rarg___closed__2; @@ -397,13 +394,13 @@ static lean_object* l_Lean_Environment_dbgFormatAsyncState___closed__3; LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtension___lambda__3(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_eval_const(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_PersistentHashMap_toList___at_Lean_Environment_dbgFormatAsyncState___spec__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Kernel_Environment_resetDiag(lean_object*); LEAN_EXPORT lean_object* l_Lean_instModuleIdxToString; static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__40; LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__1___lambda__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_mkEmptyEnvironment___closed__1; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_5782_; static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__21; LEAN_EXPORT lean_object* l_Lean_instMonadEnvOfMonadLift___rarg___lambda__1(lean_object*, lean_object*, lean_object*); @@ -434,11 +431,9 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_ static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__3; LEAN_EXPORT uint8_t l_Array_binSearchAux___at_Lean_MapDeclarationExtension_contains___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_mkMapDeclarationExtension___spec__2(lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_85____closed__16; static lean_object* l_List_repr___at_Lean_Environment_dbgFormatAsyncState___spec__9___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_List_repr___at_Lean_Environment_dbgFormatAsyncState___spec__9___closed__7; LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtension___lambda__3___boxed(lean_object*); LEAN_EXPORT uint8_t l_Array_binSearchAux___at_Lean_TagDeclarationExtension_isTagged___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -457,6 +452,7 @@ static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_ static lean_object* l_Lean_finalizeImport___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__2___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__10(lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_instInhabitedModuleData___closed__1; LEAN_EXPORT lean_object* l_Lean_Environment_AddConstAsyncResult_commitFailure(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_ensureExtensionsArraySize(lean_object*, lean_object*); @@ -468,11 +464,11 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_numBuckets___at_Lean_Environmen LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_mkExtNameMap___spec__2(lean_object*); static lean_object* l_Option_repr___at_Lean_Environment_dbgFormatAsyncState___spec__12___closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Kernel_Environment_find_x3f___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Environment_dbgFormatCheckedSyncState___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Environment_dbgFormatAsyncState___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withImportModules___rarg(lean_object*, lean_object*, uint32_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_finalizeImport___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__3; lean_object* l_EStateM_pure___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Environment_dbgFormatAsyncState___closed__7; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_toList___at_Lean_Environment_dbgFormatAsyncState___spec__3(lean_object*); @@ -486,7 +482,6 @@ LEAN_EXPORT lean_object* l_Lean_ConstantKind_toCtorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Kernel_Environment_find_x3f___spec__3(lean_object*, size_t, lean_object*); lean_object* l_Lean_privateToUserName(lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__6; -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__5(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedEnvExtensionInterface___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_instInhabitedConstantKind; LEAN_EXPORT uint8_t lean_environment_quot_init(lean_object*); @@ -504,7 +499,6 @@ static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40 LEAN_EXPORT lean_object* l_Lean_Environment_addDeclCore___lambda__1(uint8_t, lean_object*, lean_object*, size_t, lean_object*, lean_object*); static lean_object* l_Lean_TagDeclarationExtension_tag___closed__3; static lean_object* l_Lean_instToStringImport___closed__1; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___boxed(lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___rarg___closed__1; lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Environment_dbgFormatAsyncState___spec__4(lean_object*, lean_object*, lean_object*); @@ -531,10 +525,12 @@ LEAN_EXPORT uint8_t l_Lean_ConstantKind_ofConstantInfo(lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lean_finalizeImport___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_AsyncContext_mayContain(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_modifyState___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_instToStringNat(lean_object*); LEAN_EXPORT lean_object* l_Lean_instToStringImport___lambda__1___boxed(lean_object*); static lean_object* l_Lean_Environment_AddConstAsyncResult_commitFailure___closed__9; +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__6; LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_modifyState(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Kernel_setDiagnostics___lambda__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__44; @@ -543,9 +539,9 @@ LEAN_EXPORT lean_object* l_Lean_ConstantInfo_instantiateValueLevelParams_x21(lea static lean_object* l_Lean_instInhabitedEnvExtensionInterface___closed__2; LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___boxed(lean_object*); LEAN_EXPORT uint8_t l_Lean_instToStringImport___lambda__1(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_mkTagDeclarationExtension___lambda__3(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_finalizePersistentExtensions_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_repr___at_Lean_Environment_dbgFormatAsyncState___spec__12(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Environment_AddConstAsyncResult_commitFailure___spec__1(lean_object*); @@ -574,8 +570,10 @@ LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtension___lambda__4( LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_TagDeclarationExtension_tag___closed__2; LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_withImportModules(lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedImport; +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__3; static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__11; static lean_object* l_Lean_Environment_AddConstAsyncResult_commitCheckEnv___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_EnvExtensionInterfaceUnsafe_mkInitialExtStates___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -593,6 +591,7 @@ LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_getEntries___rarg(l LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_freeRegions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Environment_AddConstAsyncResult_commitFailure___closed__11; LEAN_EXPORT lean_object* l_Lean_Kernel_Environment_enableDiag___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__4; static lean_object* l_Lean_MapDeclarationExtension_instInhabited___closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__1___lambda__1(lean_object*, lean_object*); @@ -617,8 +616,8 @@ LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_TagDeclarationExtension_ static lean_object* l___auto____x40_Lean_Environment___hyg_5404____closed__26; LEAN_EXPORT lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__25; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Kernel_Environment_addDeclCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Environment___hyg_5404____closed__19; static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__29; static lean_object* l_Lean_Environment_dbgFormatAsyncState___closed__6; @@ -656,10 +655,11 @@ static lean_object* l_Lean_ConstantKind_noConfusion___rarg___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__6___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_hasUnsafe___lambda__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__5(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_getEntries(lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_finalizeImport___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__9(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__2; static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_setState___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Environment_hasUnsafe___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__18; @@ -677,10 +677,10 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Environment_d LEAN_EXPORT lean_object* l_Lean_Environment_AddConstAsyncResult_commitSignature(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_modifyState___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_mkMapDeclarationExtension___rarg___lambda__2(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_length(lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___closed__6; LEAN_EXPORT lean_object* l_IO_println___at_Lean_Environment_displayStats___spec__3(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__3; static lean_object* l_Lean_instReprImport___closed__1; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_mkExtNameMap___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___rarg___lambda__1(lean_object*, lean_object*, lean_object*); @@ -711,7 +711,6 @@ static lean_object* l___auto____x40_Lean_Environment___hyg_5404____closed__3; static lean_object* l_Lean_Environment_displayStats___closed__1; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Kernel_Environment_find_x3f___spec__5___boxed(lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedPersistentEnvExtension___closed__3; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtension_getState(lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__24; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); @@ -746,6 +745,7 @@ lean_object* lean_io_get_task_state(lean_object*, lean_object*); uint64_t l_Lean_Name_hash___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedEnvExtensionInterface___lambda__1(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Environment_addDeclCore___lambda__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mkTagDeclarationExtension___closed__1; LEAN_EXPORT lean_object* l_Lean_RBMap_toArray___at_Lean_mkMapDeclarationExtension___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_const2ModIdx(lean_object*); @@ -791,7 +791,6 @@ lean_object* l___private_Init_Data_Array_QSort_0__Array_qpartition___rarg(lean_o LEAN_EXPORT lean_object* l_Lean_Environment_evalConstCheck___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Kernel_Environment_find_x3f___spec__2(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__2; static lean_object* l_Lean_mkModuleData___closed__1; static lean_object* l_Lean_TagDeclarationExtension_isTagged___closed__1; LEAN_EXPORT lean_object* l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -809,27 +808,24 @@ LEAN_EXPORT lean_object* l_Lean_Kernel_whnf___boxed(lean_object*, lean_object*, LEAN_EXPORT lean_object* l_Lean_EnvExtension_instInhabited___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_getState___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_add_decl_without_checking(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___closed__7; LEAN_EXPORT lean_object* l_Lean_EnvExtension_setState___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2(lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__20; LEAN_EXPORT lean_object* l_Lean_persistentEnvExtensionsRef; -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__6; lean_object* lean_io_initializing(lean_object*); lean_object* l_List_reverse___rarg(lean_object*); static lean_object* l_Lean_Environment_AddConstAsyncResult_commitFailure___closed__1; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_finalizeImport___spec__2(lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___closed__1; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_imports(lean_object*); static lean_object* l___auto____x40_Lean_Environment___hyg_5404____closed__9; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); lean_object* lean_array_mk(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_finalizePersistentExtensions_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtensionState___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedEnvExtensionInterface___lambda__1___boxed(lean_object*, lean_object*); @@ -840,9 +836,9 @@ static lean_object* l___auto____x40_Lean_Environment___hyg_5404____closed__15; LEAN_EXPORT lean_object* l_Lean_EnvExtension_modifyState(lean_object*); static lean_object* l___auto____x40_Lean_Environment___hyg_5404____closed__17; LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Environment_dbgFormatAsyncState___spec__11(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__5___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedPersistentEnvExtension___closed__1; LEAN_EXPORT lean_object* l_Lean_TagDeclarationExtension_isTagged___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__8(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_PrefixTreeNode_findLongestPrefix_x3f___at_Lean_AsyncConsts_hasPrefix___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Environment_findAsync_x3f(lean_object*, lean_object*); static lean_object* l_Lean_mkMapDeclarationExtension___rarg___closed__1; @@ -865,8 +861,10 @@ extern lean_object* l_Lean_instInhabitedName; LEAN_EXPORT lean_object* l_Lean_Kernel_isDiagnosticsEnabled___boxed(lean_object*); static lean_object* l_Lean_Environment_AddConstAsyncResult_commitFailure___closed__12; LEAN_EXPORT lean_object* l_Lean_instInhabitedEnvExtensionInterface___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__7(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l_Lean_ConstantKind_noConfusion(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__8(lean_object*, size_t, size_t, lean_object*); size_t lean_array_size(lean_object*); static lean_object* l_Lean_Environment_displayStats___closed__5; lean_object* l_Array_foldlMUnsafe_fold___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); @@ -876,7 +874,6 @@ LEAN_EXPORT lean_object* l_Lean_Kernel_resetDiag(lean_object*); LEAN_EXPORT lean_object* l_Lean_mkModuleData___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SMap_numBuckets___at_Lean_Environment_displayStats___spec__4___boxed(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_write_module(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MapDeclarationExtension_insert___rarg___closed__3; LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); @@ -901,6 +898,7 @@ static lean_object* l_Array_qsort_sort___at_Lean_mkTagDeclarationExtension___spe static lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Environment_AddConstAsyncResult_commitConst___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__34; +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__9(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_MapDeclarationExtension_contains___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_6262_; @@ -908,6 +906,7 @@ static lean_object* l_Lean_instReprConstantKind___closed__1; LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_6099_; LEAN_EXPORT lean_object* l_Lean_Environment_dbgFormatAsyncState(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Kernel_Environment_enableDiag(lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Environment_displayStats___closed__2; static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_85____closed__15; LEAN_EXPORT lean_object* l_Lean_AsyncConstantInfo_toConstantVal(lean_object*); @@ -919,9 +918,9 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_SMap_insert___at_Lean_NameSSet_insert___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_kernel_record_unfold(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__4(lean_object*); lean_object* l_Lean_RBNode_find___at_Lean_NameMap_find_x3f___spec__1___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357_(lean_object*); LEAN_EXPORT lean_object* lean_mk_empty_environment(uint32_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkTagDeclarationExtension___lambda__1(lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___closed__2; @@ -946,8 +945,10 @@ LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_equivInfo___boxed( LEAN_EXPORT lean_object* lean_environment_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_import_modules(lean_object*, lean_object*, uint32_t, uint8_t, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__39; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt(lean_object*); static lean_object* l_Lean_Environment_dbgFormatAsyncState___closed__5; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*); uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Kernel_Environment_Diagnostics_recordUnfold___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_importModules___boxed__const__1; @@ -975,6 +976,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_setState___rarg___boxed(l LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___private_Lean_Environment_0__Lean_Kernel_Environment_add___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MapDeclarationExtension_contains(lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ConstantKind_ofConstantInfo___boxed(lean_object*); LEAN_EXPORT lean_object* lean_environment_free_regions(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -983,19 +985,18 @@ static lean_object* l___auto____x40_Lean_Environment___hyg_5404____closed__22; LEAN_EXPORT lean_object* l_Lean_ConstantKind_noConfusion___rarg___lambda__1(lean_object*); lean_object* l_Lean_NameTrie_insert___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Kernel_Environment_addDeclWithoutChecking___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__1; LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Environment_displayStats___spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Environment_AddConstAsyncResult_commitFailure___closed__6; static lean_object* l_Lean_instInhabitedPersistentEnvExtension___closed__4; static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__13; static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_85____closed__13; static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_85____closed__12; -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__5___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332_(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__37; static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_85____closed__23; static lean_object* l_Lean_Environment_AddConstAsyncResult_commitSignature___closed__1; LEAN_EXPORT lean_object* l_Lean_EnvExtension_setState(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__5; LEAN_EXPORT lean_object* l_List_toString___at_Lean_Environment_AddConstAsyncResult_commitConst___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_withImportModules___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); @@ -1004,7 +1005,6 @@ lean_object* lean_save_module_data(lean_object*, lean_object*, lean_object*, lea LEAN_EXPORT lean_object* l_Lean_mkEmptyEnvironment___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_dbgFormatAsyncState___spec__6(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_setState___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__6(lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_85____closed__25; static lean_object* l___private_Lean_Environment_0__Lean_reprConstantKind____x40_Lean_Environment___hyg_1240____closed__27; @@ -15070,7 +15070,7 @@ lean_dec(x_10); lean_inc(x_1); x_12 = lean_alloc_closure((void*)(l_Subarray_forInUnsafe_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__1___lambda__1___boxed), 2, 1); lean_closure_set(x_12, 0, x_1); -x_13 = l_Lean_EnvExtension_modifyState___rarg(x_11, x_5, x_12); +x_13 = l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__2___rarg(x_11, x_5, x_12); lean_dec(x_11); x_14 = 1; x_15 = lean_usize_add(x_4, x_14); @@ -15222,7 +15222,7 @@ x_39 = l_outOfBounds___rarg(x_38); x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); lean_dec(x_39); -x_41 = l_Lean_EnvExtension_modifyState___rarg(x_40, x_9, x_37); +x_41 = l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__2___rarg(x_40, x_9, x_37); lean_dec(x_40); x_42 = lean_usize_add(x_8, x_27); x_8 = x_42; @@ -15237,7 +15237,7 @@ lean_dec(x_34); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); lean_dec(x_44); -x_46 = l_Lean_EnvExtension_modifyState___rarg(x_45, x_9, x_37); +x_46 = l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__2___rarg(x_45, x_9, x_37); lean_dec(x_45); x_47 = lean_usize_add(x_8, x_27); x_8 = x_47; @@ -15296,69 +15296,149 @@ goto _start; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_setImportedEntries(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; lean_object* 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; 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_5 = l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2___closed__2; -x_6 = lean_st_ref_get(x_5, x_4); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = lean_array_get_size(x_7); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; lean_object* x_15; size_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 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_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_5, 3); +lean_inc(x_6); +x_7 = l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2___closed__2; +x_8 = lean_st_ref_get(x_7, x_4); +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_array_get_size(x_9); lean_inc(x_3); -lean_inc(x_7); -x_10 = l_Array_toSubarray___rarg(x_7, x_3, x_9); -x_11 = lean_ctor_get(x_10, 2); -lean_inc(x_11); -x_12 = lean_usize_of_nat(x_11); -lean_dec(x_11); -x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_9); +x_12 = l_Array_toSubarray___rarg(x_9, x_3, x_11); +x_13 = lean_ctor_get(x_12, 2); lean_inc(x_13); x_14 = lean_usize_of_nat(x_13); lean_dec(x_13); -lean_inc(x_2); -x_15 = l_Subarray_forInUnsafe_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__1(x_2, x_10, x_12, x_14, x_1, x_8); -lean_dec(x_10); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +x_16 = lean_usize_of_nat(x_15); lean_dec(x_15); -x_18 = l_Lean_mkExtNameMap(x_3, x_17); -x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_2); +x_17 = l_Subarray_forInUnsafe_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__1(x_2, x_12, x_14, x_16, x_6, x_10); +lean_dec(x_12); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_array_get_size(x_2); -x_22 = lean_unsigned_to_nat(0u); -x_23 = lean_unsigned_to_nat(1u); -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 = l_Std_Range_forIn_x27_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__4(x_2, x_7, x_19, x_24, x_24, x_16, x_22, lean_box(0), lean_box(0), x_20); -lean_dec(x_24); -lean_dec(x_19); -lean_dec(x_7); +lean_dec(x_17); +x_20 = l_Lean_mkExtNameMap(x_3, 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_array_get_size(x_2); +x_24 = lean_unsigned_to_nat(0u); +x_25 = lean_unsigned_to_nat(1u); +x_26 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_23); +lean_ctor_set(x_26, 2, x_25); +x_27 = l_Std_Range_forIn_x27_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__4(x_2, x_9, x_21, x_26, x_26, x_18, x_24, lean_box(0), lean_box(0), x_22); +lean_dec(x_26); +lean_dec(x_21); +lean_dec(x_9); lean_dec(x_2); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -return x_25; +uint8_t x_29; +x_29 = !lean_is_exclusive(x_5); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_27, 0); +x_31 = lean_ctor_get(x_5, 3); +lean_dec(x_31); +lean_ctor_set(x_5, 3, x_30); +x_32 = l___private_Lean_Environment_0__Lean_Environment_setCheckedSync(x_1, x_5); +lean_ctor_set(x_27, 0, x_32); +return x_27; } 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(0, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +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; +x_33 = lean_ctor_get(x_27, 0); +x_34 = lean_ctor_get(x_5, 0); +x_35 = lean_ctor_get_uint8(x_5, sizeof(void*)*6); +x_36 = lean_ctor_get(x_5, 1); +x_37 = lean_ctor_get(x_5, 2); +x_38 = lean_ctor_get(x_5, 4); +x_39 = lean_ctor_get(x_5, 5); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_34); +lean_dec(x_5); +x_40 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_40, 0, x_34); +lean_ctor_set(x_40, 1, x_36); +lean_ctor_set(x_40, 2, x_37); +lean_ctor_set(x_40, 3, x_33); +lean_ctor_set(x_40, 4, x_38); +lean_ctor_set(x_40, 5, x_39); +lean_ctor_set_uint8(x_40, sizeof(void*)*6, x_35); +x_41 = l___private_Lean_Environment_0__Lean_Environment_setCheckedSync(x_1, x_40); +lean_ctor_set(x_27, 0, x_41); +return x_27; +} +} +else +{ +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; +x_42 = lean_ctor_get(x_27, 0); +x_43 = lean_ctor_get(x_27, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_27); +x_44 = lean_ctor_get(x_5, 0); +lean_inc(x_44); +x_45 = lean_ctor_get_uint8(x_5, sizeof(void*)*6); +x_46 = lean_ctor_get(x_5, 1); +lean_inc(x_46); +x_47 = lean_ctor_get(x_5, 2); +lean_inc(x_47); +x_48 = lean_ctor_get(x_5, 4); +lean_inc(x_48); +x_49 = lean_ctor_get(x_5, 5); +lean_inc(x_49); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + lean_ctor_release(x_5, 2); + lean_ctor_release(x_5, 3); + lean_ctor_release(x_5, 4); + lean_ctor_release(x_5, 5); + x_50 = x_5; +} else { + lean_dec_ref(x_5); + x_50 = lean_box(0); +} +if (lean_is_scalar(x_50)) { + x_51 = lean_alloc_ctor(0, 6, 1); +} else { + x_51 = x_50; +} +lean_ctor_set(x_51, 0, x_44); +lean_ctor_set(x_51, 1, x_46); +lean_ctor_set(x_51, 2, x_47); +lean_ctor_set(x_51, 3, x_42); +lean_ctor_set(x_51, 4, x_48); +lean_ctor_set(x_51, 5, x_49); +lean_ctor_set_uint8(x_51, sizeof(void*)*6, x_45); +x_52 = l___private_Lean_Environment_0__Lean_Environment_setCheckedSync(x_1, 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_43); +return x_53; } } } @@ -20756,7 +20836,7 @@ x_7 = l_Lean_withImportModules___rarg(x_1, x_2, x_6, x_4, x_5); return x_7; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__2(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; @@ -20929,7 +21009,7 @@ return x_5; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__3(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; @@ -20968,7 +21048,7 @@ x_16 = 0; x_17 = lean_usize_of_nat(x_8); lean_dec(x_8); lean_inc(x_1); -x_18 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__2(x_1, x_7, x_16, x_17, x_5); +x_18 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__2(x_1, x_7, x_16, x_17, x_5); lean_dec(x_7); x_3 = x_12; x_5 = x_18; @@ -20983,7 +21063,7 @@ return x_5; } } } -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -21012,13 +21092,13 @@ size_t x_8; size_t x_9; lean_object* x_10; x_8 = 0; x_9 = lean_usize_of_nat(x_4); lean_dec(x_4); -x_10 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__3(x_1, x_3, x_8, x_9, x_2); +x_10 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__3(x_1, x_3, x_8, x_9, x_2); return x_10; } } } } -LEAN_EXPORT lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__4(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__4(lean_object* x_1) { _start: { uint8_t x_2; @@ -21056,7 +21136,7 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__6(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__6(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; @@ -21229,7 +21309,7 @@ return x_5; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__7(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____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; @@ -21268,7 +21348,7 @@ x_16 = 0; x_17 = lean_usize_of_nat(x_8); lean_dec(x_8); lean_inc(x_1); -x_18 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__6(x_1, x_7, x_16, x_17, x_5); +x_18 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__6(x_1, x_7, x_16, x_17, x_5); lean_dec(x_7); x_3 = x_12; x_5 = x_18; @@ -21283,7 +21363,7 @@ return x_5; } } } -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -21312,13 +21392,13 @@ size_t x_8; size_t x_9; lean_object* x_10; x_8 = 0; x_9 = lean_usize_of_nat(x_4); lean_dec(x_4); -x_10 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__7(x_1, x_3, x_8, x_9, x_2); +x_10 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__7(x_1, x_3, x_8, x_9, x_2); return x_10; } } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__8(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__8(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -21344,7 +21424,7 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__10(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__10(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; @@ -21517,7 +21597,7 @@ return x_5; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__11(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____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; @@ -21556,7 +21636,7 @@ x_16 = 0; x_17 = lean_usize_of_nat(x_8); lean_dec(x_8); lean_inc(x_1); -x_18 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__10(x_1, x_7, x_16, x_17, x_5); +x_18 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__10(x_1, x_7, x_16, x_17, x_5); lean_dec(x_7); x_3 = x_12; x_5 = x_18; @@ -21571,7 +21651,7 @@ return x_5; } } } -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -21600,13 +21680,13 @@ size_t x_8; size_t x_9; lean_object* x_10; x_8 = 0; x_9 = lean_usize_of_nat(x_4); lean_dec(x_4); -x_10 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__11(x_1, x_3, x_8, x_9, x_2); +x_10 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__11(x_1, x_3, x_8, x_9, x_2); return x_10; } } } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -21615,7 +21695,7 @@ x_4 = l_Lean_SMap_insert___at_Lean_NameSSet_insert___spec__1(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -21625,29 +21705,29 @@ x_3 = l_Nat_nextPowerOfTwo_go(x_1, x_2, lean_box(0)); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___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_Environment___hyg_9332____lambda__2___closed__1; +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__1; x_3 = lean_mk_array(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___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_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__2; +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___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; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; @@ -21659,15 +21739,15 @@ if (x_4 == 0) { 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_dec(x_2); -x_6 = l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__3; -x_7 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__1(x_5, x_6, x_1); +x_6 = l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__3; +x_7 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__1(x_5, x_6, x_1); x_8 = 1; x_9 = l_Lean_Kernel_instInhabitedDiagnostics___closed__2; x_10 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_10, 0, x_7); lean_ctor_set(x_10, 1, x_9); lean_ctor_set_uint8(x_10, sizeof(void*)*2, x_8); -x_11 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__4(x_10); +x_11 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__4(x_10); return x_11; } else @@ -21678,15 +21758,15 @@ if (x_12 == 0) { lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_dec(x_2); -x_13 = l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__3; -x_14 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__5(x_5, x_13, x_1); +x_13 = l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__3; +x_14 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__5(x_5, x_13, x_1); x_15 = 1; x_16 = l_Lean_Kernel_instInhabitedDiagnostics___closed__2; x_17 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_17, 0, x_14); lean_ctor_set(x_17, 1, x_16); lean_ctor_set_uint8(x_17, sizeof(void*)*2, x_15); -x_18 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__4(x_17); +x_18 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__4(x_17); return x_18; } else @@ -21695,7 +21775,7 @@ size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_2 x_19 = 0; x_20 = lean_usize_of_nat(x_2); lean_dec(x_2); -x_21 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__8(x_1, x_19, x_20, x_3); +x_21 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__8(x_1, x_19, x_20, x_3); x_22 = lean_unsigned_to_nat(4u); x_23 = lean_nat_mul(x_21, x_22); lean_dec(x_21); @@ -21709,20 +21789,20 @@ x_28 = lean_mk_array(x_27, x_5); 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 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__9(x_5, x_29, x_1); +x_30 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__9(x_5, x_29, x_1); x_31 = 1; x_32 = l_Lean_Kernel_instInhabitedDiagnostics___closed__2; x_33 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_33, 0, x_30); lean_ctor_set(x_33, 1, x_32); lean_ctor_set_uint8(x_33, sizeof(void*)*2, x_31); -x_34 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__4(x_33); +x_34 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__4(x_33); return x_34; } } } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__1() { _start: { lean_object* x_1; @@ -21730,33 +21810,33 @@ x_1 = lean_mk_string_unchecked("namespacesExt", 13, 13); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___auto____x40_Lean_Environment___hyg_5404____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__3() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__1), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__1), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__4() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__4() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__5() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__5() { _start: { lean_object* x_1; @@ -21764,14 +21844,14 @@ x_1 = lean_alloc_closure((void*)(l_List_toArray___rarg), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__6() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__2; -x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__3; -x_3 = l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__4; -x_4 = l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__5; +x_1 = l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__3; +x_3 = l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__4; +x_4 = l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__5; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -21780,16 +21860,16 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__6; +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__6; x_3 = l_Lean_registerSimplePersistentEnvExtension___rarg(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____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; lean_object* x_8; @@ -21797,12 +21877,12 @@ 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_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__2(x_1, x_2, x_6, x_7, x_5); +x_8 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__2(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____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; @@ -21810,21 +21890,21 @@ 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_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__3(x_1, x_2, x_6, x_7, x_5); +x_8 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__3(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__1(x_1, x_2, x_3); +x_4 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__1(x_1, x_2, x_3); lean_dec(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____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; @@ -21832,12 +21912,12 @@ 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_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__6(x_1, x_2, x_6, x_7, x_5); +x_8 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__6(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____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; @@ -21845,21 +21925,21 @@ 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_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__7(x_1, x_2, x_6, x_7, x_5); +x_8 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__7(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__5(x_1, x_2, x_3); +x_4 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__5(x_1, x_2, x_3); lean_dec(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__8___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; @@ -21867,12 +21947,12 @@ 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_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__8(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__8(x_1, x_5, x_6, x_4); lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__10___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; @@ -21880,12 +21960,12 @@ 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_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__10(x_1, x_2, x_6, x_7, x_5); +x_8 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__10(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____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; @@ -21893,25 +21973,25 @@ 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_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__11(x_1, x_2, x_6, x_7, x_5); +x_8 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__11(x_1, x_2, x_6, x_7, x_5); lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9332____spec__9(x_1, x_2, x_3); +x_4 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_9357____spec__9(x_1, x_2, x_3); lean_dec(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2(x_1); +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2(x_1); lean_dec(x_1); return x_2; } @@ -24223,25 +24303,25 @@ l_Lean_importModules___closed__1 = _init_l_Lean_importModules___closed__1(); lean_mark_persistent(l_Lean_importModules___closed__1); l_Lean_importModules___boxed__const__1 = _init_l_Lean_importModules___boxed__const__1(); lean_mark_persistent(l_Lean_importModules___boxed__const__1); -l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__1); -l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__2 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__2); -l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__3 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9332____lambda__2___closed__3); -l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__1); -l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__2 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__2); -l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__3 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__3); -l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__4 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__4(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__4); -l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__5 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__5(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__5); -l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__6 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__6(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9332____closed__6); -if (builtin) {res = l_Lean_initFn____x40_Lean_Environment___hyg_9332_(lean_io_mk_world()); +l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__1); +l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__2 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__2); +l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__3 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9357____lambda__2___closed__3); +l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__1); +l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__2 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__2); +l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__3 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__3); +l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__4 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__4(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__4); +l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__5 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__5(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__5); +l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__6 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__6(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_9357____closed__6); +if (builtin) {res = l_Lean_initFn____x40_Lean_Environment___hyg_9357_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_namespacesExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_namespacesExt); diff --git a/stage0/stdlib/Lean/Meta/IndPredBelow.c b/stage0/stdlib/Lean/Meta/IndPredBelow.c index 174f7baf6ce7..215c779bb7b3 100644 --- a/stage0/stdlib/Lean/Meta/IndPredBelow.c +++ b/stage0/stdlib/Lean/Meta/IndPredBelow.c @@ -18,9 +18,11 @@ LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_backwardsChaining___lambda__1( static lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_induction___closed__1; lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkMotiveBinder___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145_(lean_object*); static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___closed__3; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__7___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__6; static lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__3___lambda__2___closed__2; static lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__3___lambda__2___closed__7; lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(lean_object*); @@ -47,12 +49,12 @@ LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_checkCount___lambda lean_object* l_Lean_Meta_mkForallFVars___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_IndPredBelow_mkContext_addMotives(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_IndPredBelow_proveBrecOn_applyCtors___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_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_rebuild___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkCtorType_addHeaderVars___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_getBelowIndices___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_6____closed__9; static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__3___lambda__5___closed__10; -static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__9; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__13(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__3___lambda__2___closed__5; @@ -63,6 +65,7 @@ extern lean_object* l_Lean_maxRecDepthErrorMessage; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__3(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_IndPredBelow_mkBelow___closed__6; static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_IndPredBelow_mkBelow___spec__1___closed__1; +static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__13; uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__3___lambda__5___closed__6; @@ -113,6 +116,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_copyVarName___boxed LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_mkMotiveBinder___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_Array_anyMUnsafe_any___at_Lean_Meta_IndPredBelow_backwardsChaining___spec__5___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_IndPredBelow_proveBrecOn_applyIH___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*); +static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_transformFields_loop(lean_object*, 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_anyMUnsafe_any___at_Lean_Meta_IndPredBelow_backwardsChaining___spec__5___lambda__2___closed__7; @@ -124,7 +128,6 @@ lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkCtorType_addHeaderVars___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowDecl___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_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__12; LEAN_EXPORT lean_object* l___private_Lean_Meta_IndPredBelow_0__Lean_Meta_IndPredBelow_belowType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_IndPredBelow_backwardsChaining___spec__5___lambda__2___closed__6; static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__3___lambda__5___closed__1; @@ -161,7 +164,6 @@ static lean_object* l_Lean_Meta_IndPredBelow_mkContext_motiveType___lambda__1___ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__12(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecls___at_Lean_Meta_Linear_Nat_withAbstractAtoms___spec__4___rarg(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_IndPredBelow_mkCtorType_checkCount___spec__8(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_modifyBinders___lambda__2___boxed(lean_object**); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___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*); static lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_closeGoal___closed__7; @@ -180,6 +182,7 @@ lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Meta_WHNF_0__Lean_Meta_ extern lean_object* l_instInhabitedNat; static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__3___lambda__5___closed__8; lean_object* l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__8; LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Meta_IndPredBelow_mkContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_applyIH(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkConstructor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -210,7 +213,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkCt lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_IndPredBelow_mkContext_addMotives___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__1; +static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__5; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__16(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_IndPredBelow_mkBelowMatcher_convertToBelow___closed__3; @@ -280,11 +283,13 @@ static lean_object* l_Lean_Meta_IndPredBelow_backwardsChaining___lambda__3___clo static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__17___rarg___closed__5; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_IndPredBelow_mkBelow___spec__2(lean_object*, size_t, size_t, 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_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__4; lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_addHeaderVars(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_Meta_IndPredBelow_mkCtorType(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_IndPredBelow_mkBelow___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_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__11; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkCtorType_replaceTempVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_IndPredBelow_mkBelow___closed__1; lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); @@ -299,7 +304,6 @@ lean_object* l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed(lean_object*, lean_obj extern lean_object* l_Lean_levelZero; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_proveBrecOn_induction___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_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__8; static lean_object* l_Lean_Meta_IndPredBelow_backwardsChaining___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_replaceTempVars(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__2(lean_object*); @@ -307,7 +311,6 @@ LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkBe LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__8___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x21(lean_object*); extern lean_object* l_Lean_instInhabitedExpr; -static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__4; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkCtorType_addMotives___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkContext___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* l_Lean_MVarId_applyRules(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -321,6 +324,7 @@ static lean_object* l_Lean_Meta_transform___at_Lean_Meta_IndPredBelow_mkCtorType lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_intros(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_IndPredBelow_mkCtorType_rebuild___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__12; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__7(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkContext_mkHeader___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(lean_object*, lean_object*); @@ -330,8 +334,6 @@ static lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMa static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__3___lambda__5___closed__5; static lean_object* l_Lean_Meta_IndPredBelow_mkBelow___closed__7; uint8_t lean_name_eq(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__3; -static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__10; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_checkCount___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -360,7 +362,6 @@ lean_object* l_Lean_LocalDecl_fvarId(lean_object*); static lean_object* l_Lean_Meta_IndPredBelow_mkBelow___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_newMotive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); -static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__2; static lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_convertToBelow___closed__4; static lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_convertToBelow___closed__1; static lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__3___lambda__5___closed__2; @@ -370,10 +371,8 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_IndPredBelo LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkContext_mkHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getConstInfoInduct___at_Lean_Meta_IndPredBelow_mkContext___spec__1___closed__2; lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkContext___spec__3___boxed(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_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__5; static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_6____closed__3; lean_object* l_Lean_MessageData_ofExpr(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Backtrack_0__Lean_Meta_Tactic_Backtrack_Backtrack_run___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -387,8 +386,6 @@ lean_object* l_Lean_Meta_Match_getMkMatcherInputInContext(lean_object*, lean_obj lean_object* l_Lean_Meta_withExistingLocalDecls___at_Lean_Meta_Match_Alt_toMessageData___spec__4___rarg(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_Std_Range_forIn_x27_loop___at_Lean_Meta_IndPredBelow_mkBelowMatcher_convertToBelow___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*); -static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__7; -static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__11; lean_object* l_Lean_LocalDecl_userName(lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkContext___spec__7___closed__1; static lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_applyIH___closed__1; @@ -398,9 +395,11 @@ LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_IndPredBelow_proveBrecOn___s LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__3___lambda__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_closeGoal___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__7; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_IndPredBelow_proveBrecOn_applyIH___spec__1___closed__1; lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_IndPredBelow_backwardsChaining___spec__5___lambda__2___closed__1; +static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__10; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkContext_mkHeader___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_newMotive___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_Lean_throwMaxRecDepthAt___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__17___boxed(lean_object*, lean_object*); @@ -448,7 +447,6 @@ lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_rebuild___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_Expr_withAppAux___at___private_Lean_Meta_IndPredBelow_0__Lean_Meta_IndPredBelow_belowType___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_Lean_Meta_IndPredBelow_proveBrecOn_closeGoal___closed__2; -static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__6; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_backwardsChaining___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_IndPredBelow_mkBrecOnDecl___closed__1; @@ -484,6 +482,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at_Lean_Meta_ static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_6____closed__5; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_proveBrecOn_induction___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_nat_sub(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__3(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_mkContext___spec__7___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_closeGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -497,6 +496,7 @@ static lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_closeGoal___closed__6; lean_object* l_Lean_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___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_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__9; static lean_object* l_Lean_Meta_IndPredBelow_mkBelow___closed__5; lean_object* l_Array_back_x21___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_convertToBelow___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -510,7 +510,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_copyVarName(lean_ob lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_backwardsChaining___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__3___lambda__2___closed__3; -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___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_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_IndPredBelow_mkBelowMatcher___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_Meta_IndPredBelow_backwardsChaining___spec__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_throwError___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -563,6 +562,7 @@ lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___s LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_findBelowIdx___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_mkCtorType_mkBelowBinder___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* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__3___boxed(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_IndPredBelow_findBelowIdx___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_array_get_size(lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); @@ -591,8 +591,8 @@ LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkBelowMatcher_toInaccessible( uint8_t l_Lean_Expr_isConst(lean_object*); uint8_t l_Lean_Exception_isRuntime(lean_object*); static lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_closeGoal___closed__5; +static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__1; uint8_t l_Lean_Expr_isForall(lean_object*); -static lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__13; LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_mkCtorType_checkCount___lambda__3___boxed(lean_object*, 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_Meta_transform_visit_visitLambda___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__5(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -15024,176 +15024,165 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__3(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: { -lean_object* x_12; uint8_t x_13; -x_12 = lean_unsigned_to_nat(0u); -x_13 = lean_nat_dec_eq(x_3, x_12); -if (x_13 == 0) +uint8_t x_9; +x_9 = lean_usize_dec_lt(x_2, x_1); +if (x_9 == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_unsigned_to_nat(1u); -x_15 = lean_nat_sub(x_3, x_14); -lean_dec(x_3); -x_16 = lean_array_fget(x_2, x_4); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); +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); -x_17 = l_Lean_Meta_IndPredBelow_proveBrecOn_introNPRec(x_16, x_7, x_8, x_9, x_10, x_11); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_14 = l_Lean_Meta_IndPredBelow_proveBrecOn_introNPRec(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; 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_15); +x_17 = l_Lean_MVarId_getType(x_15, 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_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_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_18); -x_20 = l_Lean_MVarId_getType(x_18, x_7, x_8, x_9, x_10, x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -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_20 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_18, x_12); +x_21 = l_Lean_Meta_IndPredBelow_mkContext_motiveType___lambda__1___closed__1; +lean_inc(x_20); +x_22 = lean_mk_array(x_20, x_21); +x_23 = lean_unsigned_to_nat(1u); +x_24 = lean_nat_sub(x_20, x_23); lean_dec(x_20); -x_23 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_21, x_12); -x_24 = l_Lean_Meta_IndPredBelow_mkContext_motiveType___lambda__1___closed__1; -lean_inc(x_23); -x_25 = lean_mk_array(x_23, x_24); -x_26 = lean_nat_sub(x_23, x_14); -lean_dec(x_23); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); lean_inc(x_7); -x_27 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__2(x_18, x_21, x_25, x_26, x_7, x_8, x_9, x_10, x_22); -if (lean_obj_tag(x_27) == 0) +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_25 = l_Lean_Expr_withAppAux___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__2(x_15, x_18, x_22, x_24, x_4, x_5, x_6, x_7, x_19); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* 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_nat_add(x_4, x_14); -lean_dec(x_4); -x_31 = lean_array_push(x_6, x_28); -x_3 = x_15; -x_4 = x_30; -x_5 = lean_box(0); -x_6 = x_31; -x_11 = x_29; +lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; lean_object* x_30; +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 = 1; +x_29 = lean_usize_add(x_2, x_28); +x_30 = lean_array_uset(x_13, x_2, x_26); +x_2 = x_29; +x_3 = x_30; +x_8 = x_27; goto _start; } else { -uint8_t x_33; -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); +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_33 = !lean_is_exclusive(x_27); -if (x_33 == 0) +x_32 = !lean_is_exclusive(x_25); +if (x_32 == 0) { -return x_27; +return x_25; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_27, 0); -x_35 = lean_ctor_get(x_27, 1); -lean_inc(x_35); +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_dec(x_27); -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_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_37; -lean_dec(x_18); +uint8_t x_36; lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); +lean_dec(x_13); lean_dec(x_7); lean_dec(x_6); +lean_dec(x_5); lean_dec(x_4); -x_37 = !lean_is_exclusive(x_20); -if (x_37 == 0) +x_36 = !lean_is_exclusive(x_17); +if (x_36 == 0) { -return x_20; +return x_17; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_20, 0); -x_39 = lean_ctor_get(x_20, 1); -lean_inc(x_39); +lean_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_dec(x_20); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +lean_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 { -uint8_t x_41; -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); +uint8_t x_40; +lean_dec(x_13); lean_dec(x_7); lean_dec(x_6); +lean_dec(x_5); lean_dec(x_4); -x_41 = !lean_is_exclusive(x_17); -if (x_41 == 0) +x_40 = !lean_is_exclusive(x_14); +if (x_40 == 0) { -return x_17; +return x_14; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_17, 0); -x_43 = lean_ctor_get(x_17, 1); -lean_inc(x_43); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_14, 0); +x_42 = lean_ctor_get(x_14, 1); lean_inc(x_42); -lean_dec(x_17); -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_inc(x_41); +lean_dec(x_14); +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_45; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_3); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_6); -lean_ctor_set(x_45, 1, x_11); -return x_45; -} } } LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { @@ -15221,99 +15210,97 @@ return x_4; LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; x_7 = lean_array_mk(x_1); -x_8 = lean_array_get_size(x_7); -x_9 = lean_mk_empty_array_with_capacity(x_8); -x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__3(x_7, x_7, x_8, x_10, lean_box(0), x_9, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_7); -if (lean_obj_tag(x_11) == 0) +x_8 = lean_array_size(x_7); +x_9 = 0; +x_10 = l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__3(x_8, x_9, x_7, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_10) == 0) { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_ctor_get(x_11, 0); -x_14 = lean_box(0); -x_15 = lean_array_get_size(x_13); -x_16 = lean_nat_dec_lt(x_10, x_15); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_box(0); +x_14 = lean_array_get_size(x_12); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_nat_dec_lt(x_15, x_14); if (x_16 == 0) { -lean_dec(x_15); -lean_dec(x_13); -lean_ctor_set(x_11, 0, x_14); -return x_11; +lean_dec(x_14); +lean_dec(x_12); +lean_ctor_set(x_10, 0, x_13); +return x_10; } else { -size_t x_17; size_t x_18; lean_object* x_19; -x_17 = lean_usize_of_nat(x_15); -lean_dec(x_15); -x_18 = 0; -x_19 = l_Array_foldrMUnsafe_fold___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__4(x_13, x_17, x_18, x_14); -lean_dec(x_13); -lean_ctor_set(x_11, 0, x_19); -return x_11; +size_t x_17; lean_object* x_18; +x_17 = lean_usize_of_nat(x_14); +lean_dec(x_14); +x_18 = l_Array_foldrMUnsafe_fold___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__4(x_12, x_17, x_9, x_13); +lean_dec(x_12); +lean_ctor_set(x_10, 0, x_18); +return x_10; } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_21); +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_10, 0); +x_20 = lean_ctor_get(x_10, 1); lean_inc(x_20); -lean_dec(x_11); -x_22 = lean_box(0); -x_23 = lean_array_get_size(x_20); -x_24 = lean_nat_dec_lt(x_10, x_23); +lean_inc(x_19); +lean_dec(x_10); +x_21 = lean_box(0); +x_22 = lean_array_get_size(x_19); +x_23 = lean_unsigned_to_nat(0u); +x_24 = lean_nat_dec_lt(x_23, x_22); if (x_24 == 0) { lean_object* x_25; -lean_dec(x_23); -lean_dec(x_20); +lean_dec(x_22); +lean_dec(x_19); x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_22); -lean_ctor_set(x_25, 1, x_21); +lean_ctor_set(x_25, 0, x_21); +lean_ctor_set(x_25, 1, x_20); return x_25; } else { -size_t x_26; size_t x_27; lean_object* x_28; lean_object* x_29; -x_26 = lean_usize_of_nat(x_23); -lean_dec(x_23); -x_27 = 0; -x_28 = l_Array_foldrMUnsafe_fold___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__4(x_20, x_26, x_27, x_22); -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_21); -return x_29; +size_t x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_usize_of_nat(x_22); +lean_dec(x_22); +x_27 = l_Array_foldrMUnsafe_fold___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__4(x_19, x_26, x_9, x_21); +lean_dec(x_19); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_20); +return x_28; } } } else { -uint8_t x_30; -x_30 = !lean_is_exclusive(x_11); -if (x_30 == 0) +uint8_t x_29; +x_29 = !lean_is_exclusive(x_10); +if (x_29 == 0) { -return x_11; +return x_10; } 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_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_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_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; } } } @@ -15327,14 +15314,16 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___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_12; -x_12 = l_Array_mapFinIdxM_map___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_2); +size_t x_9; size_t x_10; lean_object* x_11; +x_9 = lean_unbox_usize(x_1); lean_dec(x_1); -return x_12; +x_10 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_11 = l_Array_mapMUnsafe_map___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__3(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_foldrMUnsafe_fold___at_Lean_Meta_IndPredBelow_proveBrecOn_applyCtors___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -25549,7 +25538,7 @@ lean_dec(x_3); return x_9; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__1() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -25559,27 +25548,27 @@ x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__2() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__1; +x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__1; x_2 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_6____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__3() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__2; +x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__2; x_2 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_6____closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__4() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__4() { _start: { lean_object* x_1; @@ -25587,17 +25576,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__5() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__3; -x_2 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__4; +x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__3; +x_2 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__6() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__6() { _start: { lean_object* x_1; @@ -25605,47 +25594,47 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__7() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__5; -x_2 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__6; +x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__5; +x_2 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__8() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__7; +x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__7; x_2 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_6____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__9() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__8; +x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__8; x_2 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_6____closed__7; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__10() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__9; +x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__9; x_2 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_6____closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__11() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__11() { _start: { lean_object* x_1; @@ -25653,33 +25642,33 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__12() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__10; -x_2 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__11; +x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__10; +x_2 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__11; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__13() { +static lean_object* _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__12; -x_2 = lean_unsigned_to_nat(8147u); +x_1 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__12; +x_2 = lean_unsigned_to_nat(8145u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145_(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_IndPredBelow_mkBelow___closed__1; x_3 = 0; -x_4 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__13; +x_4 = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__13; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -26021,33 +26010,33 @@ l_Lean_Meta_IndPredBelow_mkBelow___closed__6 = _init_l_Lean_Meta_IndPredBelow_mk lean_mark_persistent(l_Lean_Meta_IndPredBelow_mkBelow___closed__6); l_Lean_Meta_IndPredBelow_mkBelow___closed__7 = _init_l_Lean_Meta_IndPredBelow_mkBelow___closed__7(); lean_mark_persistent(l_Lean_Meta_IndPredBelow_mkBelow___closed__7); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__1 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__1(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__1); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__2 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__2(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__2); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__3 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__3(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__3); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__4 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__4(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__4); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__5 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__5(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__5); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__6 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__6(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__6); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__7 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__7(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__7); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__8 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__8(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__8); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__9 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__9(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__9); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__10 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__10(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__10); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__11 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__11(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__11); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__12 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__12(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__12); -l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__13 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__13(); -lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147____closed__13); -if (builtin) {res = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8147_(lean_io_mk_world()); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__1 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__1(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__1); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__2 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__2(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__2); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__3 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__3(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__3); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__4 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__4(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__4); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__5 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__5(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__5); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__6 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__6(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__6); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__7 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__7(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__7); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__8 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__8(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__8); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__9 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__9(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__9); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__10 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__10(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__10); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__11 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__11(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__11); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__12 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__12(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__12); +l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__13 = _init_l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__13(); +lean_mark_persistent(l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145____closed__13); +if (builtin) {res = l_Lean_Meta_IndPredBelow_initFn____x40_Lean_Meta_IndPredBelow___hyg_8145_(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/Match/Match.c b/stage0/stdlib/Lean/Meta/Match/Match.c index 57276c7f270b..3dae00a67db5 100644 --- a/stage0/stdlib/Lean/Meta/Match/Match.c +++ b/stage0/stdlib/Lean/Meta/Match/Match.c @@ -978,7 +978,7 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); LEAN_EXPORT lean_object* l_List_filterTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processConstructor___spec__7___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isValueTransition___lambda__1(lean_object*); -LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isConstructorTransition(lean_object*); static lean_object* l_List_mapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandIntValuePattern___spec__1___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandVarIntoCtor_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -991,7 +991,7 @@ static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_solveSo LEAN_EXPORT lean_object* l_Lean_Meta_Match_mkMatcher___lambda__19___boxed__const__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withEqs_go___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* l_Lean_Meta_checkpointDefEq___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Match_mkMatcher___spec__15___at_Lean_Meta_Match_mkMatcher___spec__16___at_Lean_Meta_Match_mkMatcher___spec__17(lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Match_processInaccessibleAsCtor___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -19390,301 +19390,301 @@ 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_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___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, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, uint8_t x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(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, uint8_t x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -if (lean_obj_tag(x_13) == 0) +if (lean_obj_tag(x_12) == 0) { -lean_object* x_15; -lean_dec(x_10); -x_15 = l_List_reverse___rarg(x_14); -return x_15; +lean_object* x_14; +lean_dec(x_9); +x_14 = l_List_reverse___rarg(x_13); +return x_14; } else { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_13, 0); +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_15, 4); lean_inc(x_16); -x_17 = lean_ctor_get(x_16, 4); -lean_inc(x_17); -if (lean_obj_tag(x_17) == 0) +if (lean_obj_tag(x_16) == 0) { -uint8_t x_18; -lean_dec(x_16); -x_18 = !lean_is_exclusive(x_13); -if (x_18 == 0) +uint8_t x_17; +lean_dec(x_15); +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_13, 1); -x_20 = lean_ctor_get(x_13, 0); -lean_dec(x_20); -x_21 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7___closed__2; -x_22 = l_panic___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_21); -lean_ctor_set(x_13, 1, x_14); -lean_ctor_set(x_13, 0, x_22); -{ -lean_object* _tmp_8 = lean_box(0); -lean_object* _tmp_12 = x_19; -lean_object* _tmp_13 = x_13; -x_9 = _tmp_8; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_12, 1); +x_19 = lean_ctor_get(x_12, 0); +lean_dec(x_19); +x_20 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7___closed__2; +x_21 = l_panic___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_20); +lean_ctor_set(x_12, 1, x_13); +lean_ctor_set(x_12, 0, x_21); +{ +lean_object* _tmp_7 = lean_box(0); +lean_object* _tmp_11 = x_18; +lean_object* _tmp_12 = x_12; +x_8 = _tmp_7; +x_12 = _tmp_11; x_13 = _tmp_12; -x_14 = _tmp_13; } goto _start; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_13, 1); -lean_inc(x_24); -lean_dec(x_13); -x_25 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7___closed__2; -x_26 = l_panic___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(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_14); -x_9 = lean_box(0); -x_13 = x_24; -x_14 = x_27; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); +lean_dec(x_12); +x_24 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7___closed__2; +x_25 = l_panic___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_24); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_13); +x_8 = lean_box(0); +x_12 = x_23; +x_13 = x_26; goto _start; } } else { -lean_object* x_29; -x_29 = lean_ctor_get(x_17, 0); -lean_inc(x_29); -switch (lean_obj_tag(x_29)) { +lean_object* x_28; +x_28 = lean_ctor_get(x_16, 0); +lean_inc(x_28); +switch (lean_obj_tag(x_28)) { case 1: { -lean_object* x_30; uint8_t x_31; -x_30 = lean_ctor_get(x_13, 1); -lean_inc(x_30); -lean_dec(x_13); -x_31 = !lean_is_exclusive(x_16); -if (x_31 == 0) +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_12, 1); +lean_inc(x_29); +lean_dec(x_12); +x_30 = !lean_is_exclusive(x_15); +if (x_30 == 0) { -lean_object* x_32; uint8_t x_33; -x_32 = lean_ctor_get(x_16, 4); -lean_dec(x_32); -x_33 = !lean_is_exclusive(x_17); -if (x_33 == 0) +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_15, 4); +lean_dec(x_31); +x_32 = !lean_is_exclusive(x_16); +if (x_32 == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_17, 1); -x_35 = lean_ctor_get(x_17, 0); -lean_dec(x_35); -x_36 = lean_ctor_get(x_29, 0); -lean_inc(x_36); -lean_dec(x_29); -lean_ctor_set(x_16, 4, x_34); -lean_inc(x_10); -x_37 = l_Lean_Meta_Match_Alt_replaceFVarId(x_36, x_10, x_16); -lean_ctor_set(x_17, 1, x_14); -lean_ctor_set(x_17, 0, x_37); -x_9 = lean_box(0); -x_13 = x_30; -x_14 = x_17; +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_16, 1); +x_34 = lean_ctor_get(x_16, 0); +lean_dec(x_34); +x_35 = lean_ctor_get(x_28, 0); +lean_inc(x_35); +lean_dec(x_28); +lean_ctor_set(x_15, 4, x_33); +lean_inc(x_9); +x_36 = l_Lean_Meta_Match_Alt_replaceFVarId(x_35, x_9, x_15); +lean_ctor_set(x_16, 1, x_13); +lean_ctor_set(x_16, 0, x_36); +x_8 = lean_box(0); +x_12 = x_29; +x_13 = x_16; goto _start; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_39 = lean_ctor_get(x_17, 1); +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_ctor_get(x_16, 1); +lean_inc(x_38); +lean_dec(x_16); +x_39 = lean_ctor_get(x_28, 0); lean_inc(x_39); -lean_dec(x_17); -x_40 = lean_ctor_get(x_29, 0); -lean_inc(x_40); -lean_dec(x_29); -lean_ctor_set(x_16, 4, x_39); -lean_inc(x_10); -x_41 = l_Lean_Meta_Match_Alt_replaceFVarId(x_40, x_10, x_16); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_14); -x_9 = lean_box(0); -x_13 = x_30; -x_14 = x_42; +lean_dec(x_28); +lean_ctor_set(x_15, 4, x_38); +lean_inc(x_9); +x_40 = l_Lean_Meta_Match_Alt_replaceFVarId(x_39, x_9, x_15); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_13); +x_8 = lean_box(0); +x_12 = x_29; +x_13 = x_41; goto _start; } } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_44 = lean_ctor_get(x_16, 0); -x_45 = lean_ctor_get(x_16, 1); -x_46 = lean_ctor_get(x_16, 2); -x_47 = lean_ctor_get(x_16, 3); -x_48 = lean_ctor_get(x_16, 5); -lean_inc(x_48); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_43 = lean_ctor_get(x_15, 0); +x_44 = lean_ctor_get(x_15, 1); +x_45 = lean_ctor_get(x_15, 2); +x_46 = lean_ctor_get(x_15, 3); +x_47 = lean_ctor_get(x_15, 5); lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); lean_inc(x_44); -lean_dec(x_16); -x_49 = lean_ctor_get(x_17, 1); -lean_inc(x_49); -if (lean_is_exclusive(x_17)) { - lean_ctor_release(x_17, 0); - lean_ctor_release(x_17, 1); - x_50 = x_17; +lean_inc(x_43); +lean_dec(x_15); +x_48 = lean_ctor_get(x_16, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + x_49 = x_16; } else { - lean_dec_ref(x_17); - x_50 = lean_box(0); + lean_dec_ref(x_16); + x_49 = lean_box(0); } -x_51 = lean_ctor_get(x_29, 0); -lean_inc(x_51); -lean_dec(x_29); -x_52 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_52, 0, x_44); -lean_ctor_set(x_52, 1, x_45); -lean_ctor_set(x_52, 2, x_46); -lean_ctor_set(x_52, 3, x_47); -lean_ctor_set(x_52, 4, x_49); -lean_ctor_set(x_52, 5, x_48); -lean_inc(x_10); -x_53 = l_Lean_Meta_Match_Alt_replaceFVarId(x_51, x_10, x_52); -if (lean_is_scalar(x_50)) { - x_54 = lean_alloc_ctor(1, 2, 0); +x_50 = lean_ctor_get(x_28, 0); +lean_inc(x_50); +lean_dec(x_28); +x_51 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_51, 0, x_43); +lean_ctor_set(x_51, 1, x_44); +lean_ctor_set(x_51, 2, x_45); +lean_ctor_set(x_51, 3, x_46); +lean_ctor_set(x_51, 4, x_48); +lean_ctor_set(x_51, 5, x_47); +lean_inc(x_9); +x_52 = l_Lean_Meta_Match_Alt_replaceFVarId(x_50, x_9, x_51); +if (lean_is_scalar(x_49)) { + x_53 = lean_alloc_ctor(1, 2, 0); } else { - x_54 = x_50; + x_53 = x_49; } -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_14); -x_9 = lean_box(0); -x_13 = x_30; -x_14 = x_54; +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_13); +x_8 = lean_box(0); +x_12 = x_29; +x_13 = x_53; goto _start; } } case 3: { -lean_object* x_56; uint8_t x_57; -lean_dec(x_29); -x_56 = lean_ctor_get(x_13, 1); -lean_inc(x_56); -lean_dec(x_13); -x_57 = !lean_is_exclusive(x_16); -if (x_57 == 0) +lean_object* x_55; uint8_t x_56; +lean_dec(x_28); +x_55 = lean_ctor_get(x_12, 1); +lean_inc(x_55); +lean_dec(x_12); +x_56 = !lean_is_exclusive(x_15); +if (x_56 == 0) { -lean_object* x_58; uint8_t x_59; -x_58 = lean_ctor_get(x_16, 4); -lean_dec(x_58); -x_59 = !lean_is_exclusive(x_17); -if (x_59 == 0) +lean_object* x_57; uint8_t x_58; +x_57 = lean_ctor_get(x_15, 4); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_16); +if (x_58 == 0) { -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_17, 1); -x_61 = lean_ctor_get(x_17, 0); -lean_dec(x_61); -lean_ctor_set(x_16, 4, x_60); -lean_ctor_set(x_17, 1, x_14); -lean_ctor_set(x_17, 0, x_16); -x_9 = lean_box(0); -x_13 = x_56; -x_14 = x_17; +lean_object* x_59; lean_object* x_60; +x_59 = lean_ctor_get(x_16, 1); +x_60 = lean_ctor_get(x_16, 0); +lean_dec(x_60); +lean_ctor_set(x_15, 4, x_59); +lean_ctor_set(x_16, 1, x_13); +lean_ctor_set(x_16, 0, x_15); +x_8 = lean_box(0); +x_12 = x_55; +x_13 = x_16; goto _start; } else { -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_17, 1); -lean_inc(x_63); -lean_dec(x_17); -lean_ctor_set(x_16, 4, x_63); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_16); -lean_ctor_set(x_64, 1, x_14); -x_9 = lean_box(0); -x_13 = x_56; -x_14 = x_64; +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_16, 1); +lean_inc(x_62); +lean_dec(x_16); +lean_ctor_set(x_15, 4, x_62); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_15); +lean_ctor_set(x_63, 1, x_13); +x_8 = lean_box(0); +x_12 = x_55; +x_13 = x_63; goto _start; } } 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; -x_66 = lean_ctor_get(x_16, 0); -x_67 = lean_ctor_get(x_16, 1); -x_68 = lean_ctor_get(x_16, 2); -x_69 = lean_ctor_get(x_16, 3); -x_70 = lean_ctor_get(x_16, 5); -lean_inc(x_70); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_65 = lean_ctor_get(x_15, 0); +x_66 = lean_ctor_get(x_15, 1); +x_67 = lean_ctor_get(x_15, 2); +x_68 = lean_ctor_get(x_15, 3); +x_69 = lean_ctor_get(x_15, 5); lean_inc(x_69); lean_inc(x_68); lean_inc(x_67); lean_inc(x_66); -lean_dec(x_16); -x_71 = lean_ctor_get(x_17, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_17)) { - lean_ctor_release(x_17, 0); - lean_ctor_release(x_17, 1); - x_72 = x_17; +lean_inc(x_65); +lean_dec(x_15); +x_70 = lean_ctor_get(x_16, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + x_71 = x_16; } else { - lean_dec_ref(x_17); - x_72 = lean_box(0); + lean_dec_ref(x_16); + x_71 = lean_box(0); } -x_73 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_73, 0, x_66); -lean_ctor_set(x_73, 1, x_67); -lean_ctor_set(x_73, 2, x_68); -lean_ctor_set(x_73, 3, x_69); -lean_ctor_set(x_73, 4, x_71); -lean_ctor_set(x_73, 5, x_70); -if (lean_is_scalar(x_72)) { - x_74 = lean_alloc_ctor(1, 2, 0); +x_72 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_72, 0, x_65); +lean_ctor_set(x_72, 1, x_66); +lean_ctor_set(x_72, 2, x_67); +lean_ctor_set(x_72, 3, x_68); +lean_ctor_set(x_72, 4, x_70); +lean_ctor_set(x_72, 5, x_69); +if (lean_is_scalar(x_71)) { + x_73 = lean_alloc_ctor(1, 2, 0); } else { - x_74 = x_72; + x_73 = x_71; } -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_14); -x_9 = lean_box(0); -x_13 = x_56; -x_14 = x_74; +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_13); +x_8 = lean_box(0); +x_12 = x_55; +x_13 = x_73; goto _start; } } default: { -uint8_t x_76; -lean_dec(x_29); -lean_dec(x_16); -x_76 = !lean_is_exclusive(x_17); -if (x_76 == 0) +uint8_t x_75; +lean_dec(x_28); +lean_dec(x_15); +x_75 = !lean_is_exclusive(x_16); +if (x_75 == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_77 = lean_ctor_get(x_17, 1); +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_76 = lean_ctor_get(x_16, 1); +lean_dec(x_76); +x_77 = lean_ctor_get(x_16, 0); lean_dec(x_77); -x_78 = lean_ctor_get(x_17, 0); -lean_dec(x_78); -x_79 = lean_ctor_get(x_13, 1); -lean_inc(x_79); -lean_dec(x_13); -x_80 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7___closed__2; -x_81 = l_panic___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_80); -lean_ctor_set(x_17, 1, x_14); -lean_ctor_set(x_17, 0, x_81); -x_9 = lean_box(0); -x_13 = x_79; -x_14 = x_17; +x_78 = lean_ctor_get(x_12, 1); +lean_inc(x_78); +lean_dec(x_12); +x_79 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7___closed__2; +x_80 = l_panic___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_79); +lean_ctor_set(x_16, 1, x_13); +lean_ctor_set(x_16, 0, x_80); +x_8 = lean_box(0); +x_12 = x_78; +x_13 = x_16; goto _start; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -lean_dec(x_17); -x_83 = lean_ctor_get(x_13, 1); -lean_inc(x_83); -lean_dec(x_13); -x_84 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7___closed__2; -x_85 = l_panic___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_84); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_14); -x_9 = lean_box(0); -x_13 = x_83; -x_14 = x_86; +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_16); +x_82 = lean_ctor_get(x_12, 1); +lean_inc(x_82); +lean_dec(x_12); +x_83 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7___closed__2; +x_84 = l_panic___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__6(x_83); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_13); +x_8 = lean_box(0); +x_12 = x_82; +x_13 = x_85; goto _start; } } @@ -19870,7 +19870,7 @@ x_25 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match x_26 = l_List_filterTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__4(x_1, x_21, x_23); lean_inc(x_4); x_27 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__5(x_2, x_5, x_6, x_7, x_8, x_9, lean_box(0), x_4, x_10, x_14, x_26, x_23); -x_28 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(x_2, x_11, x_5, x_6, x_7, x_6, x_8, x_9, lean_box(0), x_1, x_10, x_14, x_27, x_23); +x_28 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(x_2, x_11, x_5, x_6, x_7, x_8, x_9, lean_box(0), x_1, x_10, x_14, x_27, x_23); x_29 = !lean_is_exclusive(x_2); if (x_29 == 0) { @@ -20519,24 +20519,23 @@ lean_dec(x_1); return x_15; } } -LEAN_EXPORT lean_object* l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___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_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___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: { -uint8_t x_15; uint8_t x_16; lean_object* x_17; -x_15 = lean_unbox(x_7); -lean_dec(x_7); -x_16 = lean_unbox(x_11); -lean_dec(x_11); -x_17 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_8, x_9, x_10, x_16, x_12, x_13, x_14); -lean_dec(x_12); -lean_dec(x_8); +uint8_t x_14; uint8_t x_15; lean_object* x_16; +x_14 = lean_unbox(x_6); lean_dec(x_6); +x_15 = lean_unbox(x_10); +lean_dec(x_10); +x_16 = l_List_mapTR_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__7(x_1, x_2, x_3, x_4, x_5, x_14, x_7, x_8, x_9, x_15, x_11, x_12, x_13); +lean_dec(x_11); +lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_17; +return x_16; } } LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue___spec__11___lambda__1___boxed(lean_object** _args) { diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind.c b/stage0/stdlib/Lean/Meta/Tactic/Grind.c index bf48c1f8a9c9..f9745716db96 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind.c @@ -13,10 +13,11 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1340_(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_745____closed__2; 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_1377____closed__2; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__8; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859_(lean_object*); 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_1081____closed__3; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_559____closed__2; @@ -27,12 +28,14 @@ static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____cl LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_226_(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_970____closed__3; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_708____closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1340____closed__2; 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_1118____closed__3; 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_1044____closed__2; LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1081_(lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_820_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__2; 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_820____closed__3; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_448____closed__2; @@ -46,19 +49,23 @@ static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____clo LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_745_(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_448____closed__1; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__13; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1377_(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_411____closed__1; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1081____closed__2; LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229_(lean_object*); 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_858____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_1155____closed__2; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_633____closed__2; LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192_(lean_object*); 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_448_(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__3; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_411____closed__2; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_970____closed__1; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_745____closed__1; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858_(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1007____closed__2; lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_115_(lean_object*); @@ -77,6 +84,7 @@ static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_337____clo lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); 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_1377____closed__1; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_485____closed__3; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__1; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_374____closed__2; @@ -85,6 +93,7 @@ LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896_( LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1266_(lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_374_(lean_object*); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__3; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_596____closed__3; LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_708_(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__6; @@ -106,7 +115,6 @@ static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____clo static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1044____closed__1; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__2; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_670____closed__2; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__1; 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_78____closed__3; @@ -132,7 +140,6 @@ static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_745____clo static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1007____closed__1; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_374____closed__3; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_782____closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__2; LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_41_(lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1044_(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_782____closed__2; @@ -143,7 +150,6 @@ static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_263____clo LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_411_(lean_object*); static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_820____closed__1; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_300____closed__2; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__3; 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*); static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_522____closed__3; @@ -164,11 +170,12 @@ static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____cl 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; -static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__3; +static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__3; static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_782____closed__3; LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1118_(lean_object*); LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_485_(lean_object*); 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_1340____closed__1; 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_41____closed__2; @@ -1216,41 +1223,41 @@ 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_859____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("debug", 5, 5); +x_1 = lean_mk_string_unchecked("beta", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____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_859____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____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_859____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____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(859u); +x_2 = lean_unsigned_to_nat(858u); 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_859_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858_(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_859____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__2; x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__3; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__3; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -1259,19 +1266,18 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("proofs", 6, 6); +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_896____closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +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_859____closed__1; -x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; -x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); -return x_4; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____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_896____closed__3() { @@ -1299,7 +1305,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_933_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("congr", 5, 5); +x_1 = lean_mk_string_unchecked("proofs", 6, 6); return x_1; } } @@ -1308,7 +1314,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_933_ { 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_859____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_933____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; @@ -1339,7 +1345,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_970_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("proof", 5, 5); +x_1 = lean_mk_string_unchecked("congr", 5, 5); return x_1; } } @@ -1348,7 +1354,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_970_ { 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_859____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_970____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; @@ -1379,7 +1385,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1007 _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("proj", 4, 4); +x_1 = lean_mk_string_unchecked("proof", 5, 5); return x_1; } } @@ -1388,7 +1394,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1007 { 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_859____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1007____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; @@ -1419,7 +1425,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1044 _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("parent", 6, 6); +x_1 = lean_mk_string_unchecked("proj", 4, 4); return x_1; } } @@ -1428,7 +1434,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1044 { 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_859____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1044____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; @@ -1459,7 +1465,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1081 _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("final", 5, 5); +x_1 = lean_mk_string_unchecked("parent", 6, 6); return x_1; } } @@ -1468,7 +1474,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1081 { 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_859____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1081____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; @@ -1499,7 +1505,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1118 _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("forallPropagator", 16, 16); +x_1 = lean_mk_string_unchecked("final", 5, 5); return x_1; } } @@ -1508,7 +1514,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1118 { 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_859____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1118____closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; @@ -1538,15 +1544,23 @@ return x_5; static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__1() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("forallPropagator", 16, 16); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____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_859____closed__1; -x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_448____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____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_1155____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -1560,9 +1574,9 @@ LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155_ _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_1155____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__2; x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__2; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__3; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -1570,23 +1584,15 @@ return x_5; static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("canon", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____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_859____closed__1; -x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_448____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_1192____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -1600,9 +1606,9 @@ LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192_ _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_1192____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__1; x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__3; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__2; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -1610,15 +1616,23 @@ return x_5; static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__1() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("canon", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____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_859____closed__1; -x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_559____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____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_1229____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -1632,9 +1646,9 @@ LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229_ _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_1229____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__2; x_3 = 0; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__2; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__3; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -1642,13 +1656,12 @@ return x_5; static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1266____closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +lean_object* x_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_859____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_559____closed__1; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_970____closed__1; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; +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_1266____closed__2() { @@ -1677,9 +1690,9 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1303 { 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_859____closed__1; -x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__1; -x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_559____closed__1; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1007____closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } @@ -1705,6 +1718,71 @@ 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_1340____closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_4____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_152____closed__1; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_189____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_1340____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__17; +x_2 = lean_unsigned_to_nat(1340u); +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_1340_(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_1340____closed__1; +x_3 = 0; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1340____closed__2; +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_1377____closed__1() { +_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_896____closed__1; +x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____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_1377____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__17; +x_2 = lean_unsigned_to_nat(1377u); +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_1377_(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_1377____closed__1; +x_3 = 0; +x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1377____closed__2; +x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); +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*); @@ -2033,13 +2111,13 @@ lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_820____cl if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_820_(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_859____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__1); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859____closed__3); -if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_859_(lean_io_mk_world()); +}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858____closed__3); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_858_(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_896____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_896____closed__1(); @@ -2109,6 +2187,8 @@ lean_dec_ref(res); lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__1); l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__2(); lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155____closed__3); if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1155_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -2116,8 +2196,6 @@ lean_dec_ref(res); lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__1); l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__2(); lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__2); -l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192____closed__3); if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1192_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -2125,6 +2203,8 @@ lean_dec_ref(res); lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__1); l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__2(); lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__2); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229____closed__3); if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1229_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -2142,6 +2222,20 @@ lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1303____c if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1303_(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_1340____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1340____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1340____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1340____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1340____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1340____closed__2); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1340_(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_1377____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1377____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1377____closed__1); +l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1377____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1377____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1377____closed__2); +if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind___hyg_1377_(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/Meta/Tactic/Grind/Arith/Offset.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Offset.c index 4a5573b343a4..0273532730ba 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Offset.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Offset.c @@ -20,6 +20,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean lean_object* l_Lean_Meta_Grind_Arith_Offset_mkPropagateEqTrueProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_process_new_offset_eq_lit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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_PersistentArray_modifyAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setProof___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeCnstr___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_Arith_Offset_toMessageData___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateFalse___spec__1(lean_object*, lean_object*); @@ -33,8 +34,9 @@ static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_Arit size_t lean_usize_shift_right(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_getZeroNode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterAuxM___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateAll___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*); -static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_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*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateFalse___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_toArray___rarg(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_Offset_toMessageData___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___spec__8___closed__1; @@ -42,17 +44,18 @@ LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Arith_Off LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_processNewOffsetEqImpl___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_le(size_t, size_t); lean_object* l_Lean_Meta_Grind_Arith_Offset_mkTrans(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__5; uint64_t lean_uint64_of_nat(lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); +lean_object* l_panic___at_Lean_Meta_Grind_foldEqc___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_process_new_offset_eq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_getNodeId___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_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); uint64_t lean_uint64_lor(uint64_t, uint64_t); -LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_EXPORT lean_object* l_Lean_AssocList_replace___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setProof___spec__3(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_Offset_processNewOffsetEqImpl___lambda__1___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_isShorter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); @@ -72,14 +75,11 @@ static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0 lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___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_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_mkProofForPath_go___closed__3; -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_pushEqCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_forM___at_Lean_Meta_Grind_Arith_Offset_addEdge_update___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_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_updateCnstrsOf___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static uint64_t l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__1; -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__7; -LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_Lean_PersistentArray_modify___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeCnstr___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -90,6 +90,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean LEAN_EXPORT lean_object* l_Lean_AssocList_forM___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_forEachSourceOf___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_AssocList_forM___at_Lean_Meta_Grind_Arith_Offset_addEdge_update___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_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_traceDists___spec__2___closed__2; +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__5; static lean_object* l_Lean_Meta_Grind_Arith_Offset_processNewOffsetEqImpl___closed__2; lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_checkInvariants(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -97,24 +98,25 @@ lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_updateIfShorter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_int_dec_le(lean_object*, lean_object*); static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setUnsat___spec__1___closed__2; +static uint64_t l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_addEdge___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_PersistentArray_modifyAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t); static lean_object* l_Lean_Meta_Grind_Arith_Offset_processNewOffsetEqLitImpl___lambda__1___closed__2; static lean_object* l_Lean_Meta_Grind_Arith_Offset_toMessageData___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___spec__8___closed__6; -static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_forEachTargetOf___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_Arith_Offset_mkNode___spec__5___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_Cnstr_toExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___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_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_Arith_Offset_traceDists___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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__4; extern lean_object* l_instInhabitedPUnit; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_getProof_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_Offset_processNewOffsetEqImpl___closed__1; -LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_EXPORT lean_object* l_Lean_AssocList_forM___at_Lean_Meta_Grind_Arith_Offset_addEdge_update___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_EXPORT lean_object* l_Lean_AssocList_forM___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_forEachSourceOf___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_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setUnsat___spec__1___closed__5; lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__2; LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_mkProofForPath_go___spec__1(lean_object*); size_t lean_usize_of_nat(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeCnstr___lambda__2___closed__1; @@ -139,6 +141,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_get_x27___boxed(lean_obj extern lean_object* l___private_Lean_Expr_0__Lean_natAddFn; static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_traceDists___spec__2___closed__3; 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*); +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateTrue___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_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_Arith_Offset_mkNode___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -149,6 +152,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___lambda__1___closed__6; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_updateCnstrsOf___spec__2(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_updateCnstrsOf___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentArray_modify___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_Offset_processNewOffsetEqImpl___lambda__1___closed__5; lean_object* l_Lean_MessageData_ofFormat(lean_object*); @@ -169,21 +173,20 @@ lean_object* l_Lean_Meta_Grind_Arith_isNatOffset_x3f(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setUnsat___closed__4; static lean_object* l_Lean_Meta_Grind_Arith_Offset_processNewOffsetEqLitImpl___lambda__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_isRelevantParent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_getNodeId___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentArray_modifyAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setUnsat___closed__1; +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeCnstr___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_object*); static lean_object* l_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__9; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_isRelevantParent___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeTerm___closed__6; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___lambda__2___closed__1; extern lean_object* l_Lean_instInhabitedExpr; -static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__6; 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_object* l_Lean_Meta_Grind_markAsOffsetTerm(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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__1; static lean_object* l_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateTrue___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_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeCnstr___lambda__2___closed__3; @@ -206,8 +209,8 @@ LEAN_EXPORT lean_object* l_Lean_AssocList_forM___at_Lean_Meta_Grind_Arith_Offset LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setProof___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_Offset_processNewOffsetEqImpl___lambda__1___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_EXPORT lean_object* l_Lean_PersistentArray_modify___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setProof___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_PersistentArray_modifyAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_addEdge___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___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -215,12 +218,11 @@ extern lean_object* l_Lean_Meta_instMonadMetaM; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_updateCnstrsOf___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_getDist_x3f___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___boxed(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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_getNodeId___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_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateTrue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_forM___at_Lean_Meta_Grind_Arith_Offset_addEdge_update___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*); -static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__2; +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__4; lean_object* lean_usize_to_nat(size_t); LEAN_EXPORT lean_object* l_Lean_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___spec__2___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setUnsat___closed__6; @@ -257,11 +259,9 @@ lean_object* l_Lean_Meta_Grind_getNatZeroExpr___rarg(lean_object*, lean_object*, LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeCnstr(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_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__2; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___lambda__1___closed__4; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_Arith_Offset_mkNode___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_updateCnstrsOf___spec__5(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_Arith_Offset_mkNode___spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeCnstr___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -271,11 +271,8 @@ LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at___private_Lean_Meta_Tact lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateFalse___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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateTrue___closed__4; -static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__3; lean_object* l_Lean_indentExpr(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeCnstr___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_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___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_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_mkProofForPath_go___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___lambda__2___closed__3; @@ -301,7 +298,6 @@ uint64_t lean_uint64_shift_left(uint64_t, uint64_t); static lean_object* l_Lean_Meta_Grind_Arith_Offset_toMessageData___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___spec__8___closed__2; static lean_object* l_Lean_Meta_Grind_Arith_Offset_processNewOffsetEqLitImpl___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_toMessageData___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeCnstr___spec__5(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_toMessageData___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___lambda__1___closed__2; lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_updateCnstrsOf___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -311,7 +307,6 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_Ar LEAN_EXPORT lean_object* l_Lean_AssocList_forM___at_Lean_Meta_Grind_Arith_Offset_addEdge_update___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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeTerm___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_getDist_x3f___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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_mkProofForPath(lean_object*, 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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_traceDists___spec__2___closed__1; lean_object* l_List_reverse___rarg(lean_object*); @@ -320,8 +315,12 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean size_t lean_usize_sub(size_t, size_t); lean_object* lean_array_mk(lean_object*); static lean_object* l_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__6; +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___closed__1; +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__6; lean_object* l_Lean_PersistentArray_get_x21___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeCnstr___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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*); +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__2; LEAN_EXPORT uint8_t l_Lean_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___spec__2(lean_object*, lean_object*); 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_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*); @@ -334,7 +333,6 @@ size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_modify_x27___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_AssocList_find_x3f___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_getProof_x3f___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_Arith_Offset_traceDists___spec__1___closed__2; -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_int_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_toMessageData___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateTrue___spec__1(lean_object*, lean_object*); @@ -343,8 +341,8 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_addEdge___lambda__1___bo lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_modifyAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_traceDists(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__2; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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_Arith_Offset_mkNode___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_Arith_Offset_mkNode___lambda__2___closed__8; lean_object* l_Lean_Meta_Grind_Arith_isNatNum_x3f(lean_object*); @@ -352,6 +350,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean size_t lean_usize_shift_left(size_t, size_t); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_int_dec_eq(lean_object*, lean_object*); +static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__5; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeCnstr___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_updateCnstrsOf___spec__8(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*); @@ -366,7 +365,6 @@ lean_object* lean_int_neg(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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___lambda__1___closed__5; -static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_Cnstr_toExpr___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_Lean_Meta_Grind_Arith_Offset_traceDists___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_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_Arith_Offset_mkNode___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -377,7 +375,6 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_processNewOffsetEqLitImpl___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_PersistentArray_modifyAux___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setProof___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__4; LEAN_EXPORT lean_object* l_Lean_AssocList_contains___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setProof___spec__2___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___lambda__1___closed__3; extern lean_object* l_Lean_Meta_Grind_Arith_Offset_instInhabitedProofInfo; @@ -389,6 +386,7 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_mkNode___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___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_updateCnstrsOf___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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_Meta_Grind_Arith_Offset_mkNode___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_Arith_Offset_toMessageData___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setDist___spec__8___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_addEdge(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -402,7 +400,9 @@ size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_Arith_Offset_traceDists___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_traceDists___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_AssocList_forM___at___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_forEachTargetOf___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_Arith_Offset_toMessageData___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_internalizeCnstr___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_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_Lean_Meta_Grind_Arith_Offset_get_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) { _start: { @@ -8751,7 +8751,7 @@ return x_101; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___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; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; x_13 = l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_getExpr(x_1, 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); @@ -8764,12 +8764,7 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -lean_inc(x_17); -lean_inc(x_14); x_19 = l_Lean_Meta_Grind_isEqv(x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_18); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; uint8_t x_21; x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_unbox(x_20); @@ -8813,31 +8808,6 @@ return x_30; } } } -else -{ -uint8_t x_31; -lean_dec(x_17); -lean_dec(x_14); -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; -} -} -} } LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_propagateEq___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: @@ -17075,17 +17045,7 @@ lean_dec(x_1); return x_11; } } -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setUnsat___spec__1___closed__5; -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; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_toMessageData___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_toMessageData___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -17271,7 +17231,7 @@ return x_81; } } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__1() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -17279,12 +17239,12 @@ x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.Arith.Offset.checkInvariants", 4 return x_1; } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__2() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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_Arith_Offset_0__Lean_Meta_Grind_Arith_Offset_setUnsat___closed__5; -x_2 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__1; +x_2 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__1; x_3 = lean_unsigned_to_nat(333u); x_4 = lean_unsigned_to_nat(8u); x_5 = l_Lean_Meta_Grind_Arith_Offset_processNewOffsetEqLitImpl___lambda__1___closed__2; @@ -17292,7 +17252,7 @@ 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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__3() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -17302,12 +17262,12 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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) { _start: { lean_object* x_11; lean_object* x_12; -x_11 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__2; -x_12 = l_panic___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__1(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__2; +x_12 = l_panic___at_Lean_Meta_Grind_foldEqc___spec__2(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) { uint8_t x_13; @@ -17317,7 +17277,7 @@ 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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__3; +x_15 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__3; lean_ctor_set(x_12, 0, x_15); return x_12; } @@ -17327,7 +17287,7 @@ 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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__3; +x_17 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__3; x_18 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); @@ -17358,7 +17318,7 @@ return x_22; } } } -static uint64_t _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__1() { +static uint64_t _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__1() { _start: { uint8_t x_1; uint64_t x_2; @@ -17367,15 +17327,15 @@ x_2 = l_Lean_Meta_TransparencyMode_toUInt64(x_1); return x_2; } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__2() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__2() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___boxed), 10, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___boxed), 10, 0); return x_1; } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__3() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__3() { _start: { lean_object* x_1; @@ -17383,16 +17343,16 @@ x_1 = lean_mk_string_unchecked("failed: ", 8, 8); return x_1; } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__4() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__3; +x_1 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__5() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__5() { _start: { lean_object* x_1; @@ -17400,16 +17360,16 @@ x_1 = lean_mk_string_unchecked(" =\?= ", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__6() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__5; +x_1 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___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_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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; @@ -17473,7 +17433,7 @@ lean_ctor_set_uint8(x_20, 9, x_35); x_36 = 2; x_37 = lean_uint64_shift_right(x_24, x_36); x_38 = lean_uint64_shift_left(x_37, x_36); -x_39 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__1; +x_39 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__1; x_40 = lean_uint64_lor(x_38, x_39); x_41 = lean_alloc_ctor(0, 7, 11); lean_ctor_set(x_41, 0, x_20); @@ -17512,7 +17472,7 @@ if (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_46, 0); x_49 = lean_ctor_get(x_46, 1); -x_50 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__2; +x_50 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__2; x_51 = lean_unbox(x_48); lean_dec(x_48); if (x_51 == 0) @@ -17550,11 +17510,11 @@ lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean x_59 = lean_ctor_get(x_57, 0); x_60 = lean_ctor_get(x_57, 1); x_61 = l_Lean_MessageData_ofExpr(x_55); -x_62 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__4; +x_62 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__4; lean_ctor_set_tag(x_57, 7); lean_ctor_set(x_57, 1, x_61); lean_ctor_set(x_57, 0, x_62); -x_63 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__6; +x_63 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__6; lean_ctor_set_tag(x_46, 7); lean_ctor_set(x_46, 1, x_63); lean_ctor_set(x_46, 0, x_57); @@ -17584,11 +17544,11 @@ lean_inc(x_72); lean_inc(x_71); lean_dec(x_57); x_73 = l_Lean_MessageData_ofExpr(x_55); -x_74 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__4; +x_74 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__4; 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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__6; +x_76 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__6; lean_ctor_set_tag(x_46, 7); lean_ctor_set(x_46, 1, x_76); lean_ctor_set(x_46, 0, x_75); @@ -17653,7 +17613,7 @@ x_89 = lean_ctor_get(x_46, 1); lean_inc(x_89); lean_inc(x_88); lean_dec(x_46); -x_90 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__2; +x_90 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__2; x_91 = lean_unbox(x_88); lean_dec(x_88); if (x_91 == 0) @@ -17696,7 +17656,7 @@ if (lean_is_exclusive(x_97)) { x_100 = lean_box(0); } x_101 = l_Lean_MessageData_ofExpr(x_95); -x_102 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__4; +x_102 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__4; if (lean_is_scalar(x_100)) { x_103 = lean_alloc_ctor(7, 2, 0); } else { @@ -17705,7 +17665,7 @@ if (lean_is_scalar(x_100)) { } lean_ctor_set(x_103, 0, x_102); lean_ctor_set(x_103, 1, x_101); -x_104 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__6; +x_104 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__6; x_105 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_105, 0, x_103); lean_ctor_set(x_105, 1, x_104); @@ -17783,7 +17743,7 @@ if (x_117 == 0) lean_object* x_118; lean_object* x_119; x_118 = lean_ctor_get(x_42, 0); lean_dec(x_118); -x_119 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__3; +x_119 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__3; lean_ctor_set(x_42, 0, x_119); return x_42; } @@ -17793,7 +17753,7 @@ lean_object* x_120; lean_object* x_121; lean_object* x_122; x_120 = lean_ctor_get(x_42, 1); lean_inc(x_120); lean_dec(x_42); -x_121 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__3; +x_121 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__3; x_122 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_122, 0, x_121); lean_ctor_set(x_122, 1, x_120); @@ -17879,7 +17839,7 @@ lean_ctor_set_uint8(x_146, 16, x_144); x_147 = 2; x_148 = lean_uint64_shift_right(x_24, x_147); x_149 = lean_uint64_shift_left(x_148, x_147); -x_150 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__1; +x_150 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__1; x_151 = lean_uint64_lor(x_149, x_150); x_152 = lean_alloc_ctor(0, 7, 11); lean_ctor_set(x_152, 0, x_146); @@ -17924,7 +17884,7 @@ if (lean_is_exclusive(x_157)) { lean_dec_ref(x_157); x_160 = lean_box(0); } -x_161 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__2; +x_161 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__2; x_162 = lean_unbox(x_158); lean_dec(x_158); if (x_162 == 0) @@ -17968,7 +17928,7 @@ if (lean_is_exclusive(x_168)) { x_171 = lean_box(0); } x_172 = l_Lean_MessageData_ofExpr(x_166); -x_173 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__4; +x_173 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__4; if (lean_is_scalar(x_171)) { x_174 = lean_alloc_ctor(7, 2, 0); } else { @@ -17977,7 +17937,7 @@ if (lean_is_scalar(x_171)) { } lean_ctor_set(x_174, 0, x_173); lean_ctor_set(x_174, 1, x_172); -x_175 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__6; +x_175 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__6; if (lean_is_scalar(x_160)) { x_176 = lean_alloc_ctor(7, 2, 0); } else { @@ -18064,7 +18024,7 @@ if (lean_is_exclusive(x_153)) { lean_dec_ref(x_153); x_189 = lean_box(0); } -x_190 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__3; +x_190 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__3; if (lean_is_scalar(x_189)) { x_191 = lean_alloc_ctor(0, 2, 0); } else { @@ -18184,7 +18144,7 @@ lean_ctor_set_uint8(x_226, 16, x_223); x_227 = 2; x_228 = lean_uint64_shift_right(x_198, x_227); x_229 = lean_uint64_shift_left(x_228, x_227); -x_230 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__1; +x_230 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__1; x_231 = lean_uint64_lor(x_229, x_230); x_232 = lean_alloc_ctor(0, 7, 11); lean_ctor_set(x_232, 0, x_226); @@ -18229,7 +18189,7 @@ if (lean_is_exclusive(x_237)) { lean_dec_ref(x_237); x_240 = lean_box(0); } -x_241 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__2; +x_241 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__2; x_242 = lean_unbox(x_238); lean_dec(x_238); if (x_242 == 0) @@ -18272,7 +18232,7 @@ if (lean_is_exclusive(x_248)) { x_251 = lean_box(0); } x_252 = l_Lean_MessageData_ofExpr(x_246); -x_253 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__4; +x_253 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__4; if (lean_is_scalar(x_251)) { x_254 = lean_alloc_ctor(7, 2, 0); } else { @@ -18281,7 +18241,7 @@ if (lean_is_scalar(x_251)) { } lean_ctor_set(x_254, 0, x_253); lean_ctor_set(x_254, 1, x_252); -x_255 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__6; +x_255 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__6; if (lean_is_scalar(x_240)) { x_256 = lean_alloc_ctor(7, 2, 0); } else { @@ -18366,7 +18326,7 @@ if (lean_is_exclusive(x_233)) { lean_dec_ref(x_233); x_270 = lean_box(0); } -x_271 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__3; +x_271 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__3; if (lean_is_scalar(x_270)) { x_272 = lean_alloc_ctor(0, 2, 0); } else { @@ -18480,7 +18440,7 @@ return x_284; } } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__1() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -18488,7 +18448,7 @@ x_1 = lean_mk_string_unchecked("debug", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__2() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__2() { _start: { lean_object* x_1; @@ -18496,19 +18456,19 @@ x_1 = lean_mk_string_unchecked("proof", 5, 5); return x_1; } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__3() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__1; -x_2 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__1; +x_2 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__1; x_3 = l_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__2; -x_4 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__2; +x_4 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__2; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__4() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__4() { _start: { lean_object* x_1; @@ -18516,16 +18476,16 @@ x_1 = lean_mk_string_unchecked(" : ", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__5() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__4; +x_1 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__4; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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, lean_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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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; uint8_t x_15; @@ -18536,7 +18496,7 @@ 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, 0); x_17 = lean_ctor_get(x_14, 1); -x_18 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__3; +x_18 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__3; x_19 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_17); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); @@ -18550,7 +18510,7 @@ x_22 = lean_ctor_get(x_19, 1); lean_inc(x_22); lean_dec(x_19); x_23 = lean_box(0); -x_24 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2(x_16, x_3, x_18, x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); +x_24 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2(x_16, x_3, x_18, x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); return x_24; } else @@ -18583,7 +18543,7 @@ x_32 = l_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__7; lean_ctor_set_tag(x_19, 7); lean_ctor_set(x_19, 1, x_31); lean_ctor_set(x_19, 0, x_32); -x_33 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__5; +x_33 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__5; lean_ctor_set_tag(x_14, 7); lean_ctor_set(x_14, 1, x_33); lean_ctor_set(x_14, 0, x_19); @@ -18600,7 +18560,7 @@ lean_inc(x_38); x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); lean_dec(x_37); -x_40 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2(x_16, x_3, x_18, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_39); +x_40 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2(x_16, x_3, x_18, x_38, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_39); lean_dec(x_38); return x_40; } @@ -18664,7 +18624,7 @@ x_50 = l_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__7; 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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__5; +x_52 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__5; lean_ctor_set_tag(x_14, 7); lean_ctor_set(x_14, 1, x_52); lean_ctor_set(x_14, 0, x_51); @@ -18681,7 +18641,7 @@ lean_inc(x_57); x_58 = lean_ctor_get(x_56, 1); lean_inc(x_58); lean_dec(x_56); -x_59 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2(x_16, x_3, x_18, x_57, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_58); +x_59 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2(x_16, x_3, x_18, x_57, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_58); lean_dec(x_57); return x_59; } @@ -18730,7 +18690,7 @@ x_65 = lean_ctor_get(x_14, 1); lean_inc(x_65); lean_inc(x_64); lean_dec(x_14); -x_66 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__3; +x_66 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__3; x_67 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_66, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_65); x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); @@ -18743,7 +18703,7 @@ x_70 = lean_ctor_get(x_67, 1); lean_inc(x_70); lean_dec(x_67); x_71 = lean_box(0); -x_72 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2(x_64, x_3, x_66, x_71, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_70); +x_72 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2(x_64, x_3, x_66, x_71, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_70); return x_72; } else @@ -18784,7 +18744,7 @@ if (lean_is_scalar(x_74)) { } lean_ctor_set(x_80, 0, x_79); lean_ctor_set(x_80, 1, x_78); -x_81 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__5; +x_81 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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); @@ -18801,7 +18761,7 @@ lean_inc(x_87); x_88 = lean_ctor_get(x_86, 1); lean_inc(x_88); lean_dec(x_86); -x_89 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2(x_64, x_3, x_66, x_87, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_88); +x_89 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2(x_64, x_3, x_66, x_87, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_88); lean_dec(x_87); return x_89; } @@ -18843,18 +18803,18 @@ return x_93; } } } -static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___closed__1() { +static lean_object* _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__1; -x_2 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__1; +x_2 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__1; x_3 = l_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__2; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_3) == 0) @@ -18891,7 +18851,7 @@ lean_ctor_set_tag(x_3, 0); lean_ctor_set(x_3, 2, x_16); lean_ctor_set(x_3, 1, x_15); lean_ctor_set(x_3, 0, x_1); -x_18 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___closed__1; +x_18 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___closed__1; x_19 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); @@ -18912,7 +18872,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_24 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3(x_1, x_15, x_3, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +x_24 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3(x_1, x_15, x_3, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); lean_dec(x_3); lean_dec(x_15); if (lean_obj_tag(x_24) == 0) @@ -19020,7 +18980,7 @@ x_41 = lean_ctor_get(x_19, 0); lean_dec(x_41); x_42 = l_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__7; lean_inc(x_3); -x_43 = l_Lean_Meta_Grind_Arith_Offset_toMessageData___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2(x_42, x_3); +x_43 = l_Lean_Meta_Grind_Arith_Offset_toMessageData___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__1(x_42, x_3); lean_ctor_set_tag(x_19, 7); lean_ctor_set(x_19, 1, x_43); lean_ctor_set(x_19, 0, x_42); @@ -19041,7 +19001,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_48 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3(x_1, x_15, x_3, x_46, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_47); +x_48 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3(x_1, x_15, x_3, x_46, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_47); lean_dec(x_46); lean_dec(x_3); lean_dec(x_15); @@ -19146,7 +19106,7 @@ lean_inc(x_63); lean_dec(x_19); x_64 = l_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__7; lean_inc(x_3); -x_65 = l_Lean_Meta_Grind_Arith_Offset_toMessageData___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2(x_64, x_3); +x_65 = l_Lean_Meta_Grind_Arith_Offset_toMessageData___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__1(x_64, x_3); x_66 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_66, 0, x_64); lean_ctor_set(x_66, 1, x_65); @@ -19167,7 +19127,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_71 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3(x_1, x_15, x_3, x_69, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_70); +x_71 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3(x_1, x_15, x_3, x_69, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_70); lean_dec(x_69); lean_dec(x_3); lean_dec(x_15); @@ -19279,7 +19239,7 @@ x_87 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_87, 0, x_1); lean_ctor_set(x_87, 1, x_84); lean_ctor_set(x_87, 2, x_85); -x_88 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___closed__1; +x_88 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___closed__1; x_89 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_88, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); x_90 = lean_ctor_get(x_89, 0); lean_inc(x_90); @@ -19300,7 +19260,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_94 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3(x_1, x_84, x_87, x_93, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_92); +x_94 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3(x_1, x_84, x_87, x_93, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_92); lean_dec(x_87); lean_dec(x_84); if (lean_obj_tag(x_94) == 0) @@ -19408,7 +19368,7 @@ if (lean_is_exclusive(x_89)) { } x_109 = l_Lean_Meta_Grind_Arith_Offset_mkNode___lambda__2___closed__7; lean_inc(x_87); -x_110 = l_Lean_Meta_Grind_Arith_Offset_toMessageData___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2(x_109, x_87); +x_110 = l_Lean_Meta_Grind_Arith_Offset_toMessageData___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__1(x_109, x_87); if (lean_is_scalar(x_108)) { x_111 = lean_alloc_ctor(7, 2, 0); } else { @@ -19434,7 +19394,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_116 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3(x_1, x_84, x_87, x_114, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_115); +x_116 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3(x_1, x_84, x_87, x_114, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_115); lean_dec(x_114); lean_dec(x_87); lean_dec(x_84); @@ -19532,7 +19492,7 @@ return x_128; } } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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) { _start: { lean_object* x_16; uint8_t x_17; @@ -19613,7 +19573,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_4); -x_32 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3(x_4, x_31, x_28, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_32 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2(x_4, x_31, x_28, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; @@ -19684,7 +19644,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_4); -x_46 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3(x_4, x_45, x_41, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_46 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2(x_4, x_45, x_41, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); if (lean_obj_tag(x_46) == 0) { lean_object* x_47; lean_object* x_48; lean_object* x_49; @@ -19765,7 +19725,7 @@ x_20 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_20, 0, x_16); lean_ctor_set(x_20, 1, x_18); lean_ctor_set(x_20, 2, x_19); -x_21 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__4(x_20, x_20, x_17, x_16, lean_box(0), lean_box(0), x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_21 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3(x_20, x_20, x_17, x_16, lean_box(0), lean_box(0), x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); lean_dec(x_20); if (lean_obj_tag(x_21) == 0) { @@ -19817,30 +19777,30 @@ return x_31; } } } -LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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) { _start: { lean_object* x_11; -x_11 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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_1); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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) { +LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___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 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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_4); lean_dec(x_2); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_EXPORT lean_object* l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___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); +x_14 = l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___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_4); lean_dec(x_3); lean_dec(x_2); @@ -19848,11 +19808,11 @@ lean_dec(x_1); return x_14; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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: { lean_object* x_16; -x_16 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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); +x_16 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___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); lean_dec(x_2); lean_dec(x_1); return x_16; @@ -20042,35 +20002,35 @@ l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_traceDists___spec_ lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_traceDists___spec__2___closed__4); l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_traceDists___spec__2___closed__5 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_traceDists___spec__2___closed__5(); lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_traceDists___spec__2___closed__5); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__1 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__1); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__2 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__2); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__3 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__1___closed__3); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__1 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__1(); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__2 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__2); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__3 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__3(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__3); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__4 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__4(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__4); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__5 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__5(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__5); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__6 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__6(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__2___closed__6); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__1 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__1); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__2 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__2); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__3 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__3(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__3); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__4 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__4(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__4); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__5 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__5(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___lambda__3___closed__5); -l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___closed__1 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___closed__1(); -lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__3___closed__1); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__1 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__1); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__2 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__2); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__3 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__1___closed__3); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__1 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__1(); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__2 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__2); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__3 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__3); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__4 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__4); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__5 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__5(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__5); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__6 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__6(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__2___closed__6); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__1 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__1); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__2 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__2); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__3 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__3); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__4 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__4(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__4); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__5 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__5(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___lambda__3___closed__5); +l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___closed__1 = _init_l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___closed__1(); +lean_mark_persistent(l_Lean_AssocList_forIn_loop___at_Lean_Meta_Grind_Arith_Offset_checkInvariants___spec__2___closed__1); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c index d2bb4926bd53..5368393d0482 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Attr.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.Attr -// Imports: Lean.Meta.Tactic.Simp.Attr Lean.Meta.Tactic.Simp.Simproc +// Imports: Lean.Meta.Tactic.Grind.EMatchTheorem Lean.Meta.Tactic.Grind.Cases #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,111 +13,168 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isGrindCasesTarget___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__7; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__17; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__21; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__1; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr(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_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__20; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getAttrKindFromOpt(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__10; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__22; +lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Meta_Eqns_0__Lean_Meta_mkSimpleEqThm___spec__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__8; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__15; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__19; uint8_t l_Lean_Exception_isInterrupt(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__22; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__18; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__8; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___closed__1; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_grindCasesExt; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__23; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__2; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__26; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_getAttrKindCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____lambda__1(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__7; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__12; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__20; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__3; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__6; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__4; lean_object* l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__9; static uint64_t l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__8; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__6; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getAttrKindCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__19; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__15; +lean_object* l_Lean_Meta_Grind_eraseCasesAttr(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__3; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__19; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__16; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__18; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__14; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__15; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__15; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__7; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__11; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__7; +lean_object* l_Lean_Meta_Grind_addEMatchAttr(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__21; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__1; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__21; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_getAlias_x3f___lambda__1___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_Attr___hyg_370____lambda__2___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__29; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__24; static lean_object* l_Lean_Meta_Grind_isGrindCasesTarget___closed__1; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__14; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_getConstInfo___at___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__20; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__1___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_Attr___hyg_369____closed__4; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__12; lean_object* l_Lean_registerSimpleScopedEnvExtension___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__7; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofSyntax(lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__17; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__2; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__8; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__23; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__2; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__2; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__8; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__11; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__9; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971_(lean_object*); +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__16; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__4; lean_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__11; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__12; lean_object* lean_st_mk_ref(lean_object*, lean_object*); +lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__20; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isGrindCasesTarget(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__1; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__7; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__27; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__6; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__6; -LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); -lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_PrettyPrinter_Delaborator_returnsPi___spec__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__3; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__11; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__10; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__2; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__24; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__3; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__6; +lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__25; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__8; +lean_object* l_Lean_Meta_Grind_eraseEMatchAttr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getAttrKindCore(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_addCasesAttr(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__10; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__5; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4_(lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__5; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__3; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__28; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_getAttrKindCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__23; lean_object* l_id___rarg___boxed(lean_object*); +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__10; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__14; uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__13; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__4; lean_object* l_Lean_Expr_getAppFn_x27(lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__14; +uint8_t l_Lean_Syntax_isNone(lean_object*); +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__13; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3_(lean_object*); lean_object* l_Lean_ScopedEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__12; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__19; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__16; lean_object* l_Lean_ScopedEnvExtension_addCore___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__18; +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1___boxed(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___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__13; lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__21; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__7; lean_object* lean_array_mk(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__4; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__16; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__5; extern lean_object* l_Lean_NameSet_instInhabited; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__22; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_getAlias_x3f___lambda__1(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_Attr___hyg_370____closed__24; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__2; +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__17; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1___closed__1; lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__5; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__8; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___closed__2; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__17; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__6; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__4; -static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____spec__1___closed__1; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__9; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__1; uint8_t l_Lean_Exception_isRuntime(lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__5; static lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_getAlias_x3f___closed__1; lean_object* l_Lean_throwError___at___private_Lean_ReducibilityAttrs_0__Lean_validate___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getAttrKindFromOpt___boxed(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*); uint64_t l___private_Lean_Meta_Basic_0__Lean_Meta_Config_toKey(lean_object*); +static lean_object* l_Lean_Meta_Grind_getAttrKindCore___closed__3; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__22; lean_object* l_Lean_MessageData_ofName(lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__18; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_getAlias_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____lambda__1(lean_object* x_1, lean_object* x_2) { +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__9; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____lambda__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -126,7 +183,7 @@ x_4 = l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1() { _start: { lean_object* x_1; @@ -134,7 +191,7 @@ 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_Attr___hyg_4____closed__2() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__2() { _start: { lean_object* x_1; @@ -142,7 +199,7 @@ 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_Attr___hyg_4____closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__3() { _start: { lean_object* x_1; @@ -150,7 +207,7 @@ 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_Attr___hyg_4____closed__4() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__4() { _start: { lean_object* x_1; @@ -158,27 +215,27 @@ x_1 = lean_mk_string_unchecked("grindCasesExt", 13, 13); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__5() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____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_Attr___hyg_4____closed__1; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__2; -x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__3; -x_4 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__4; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__2; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__3; +x_4 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____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_Attr___hyg_4____closed__6() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__6() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____lambda__1), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____lambda__1), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__7() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__7() { _start: { lean_object* x_1; @@ -186,14 +243,14 @@ x_1 = lean_alloc_closure((void*)(l_id___rarg___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__8() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_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_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__5; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__6; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__5; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__6; x_3 = l_Lean_NameSet_empty; -x_4 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__7; +x_4 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__7; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -202,11 +259,11 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__8; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__8; x_3 = l_Lean_registerSimpleScopedEnvExtension___rarg(x_2, x_1); return x_3; } @@ -320,7 +377,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Gr lean_object* x_7; uint8_t x_8; lean_object* x_9; x_7 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_getAlias_x3f___closed__1; x_8 = 0; -x_9 = l_Lean_Meta_lambdaTelescope___at_Lean_PrettyPrinter_Delaborator_returnsPi___spec__1___rarg(x_1, x_7, x_8, x_2, x_3, x_4, x_5, x_6); +x_9 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Meta_Eqns_0__Lean_Meta_mkSimpleEqThm___spec__1___rarg(x_1, x_7, x_8, x_2, x_3, x_4, x_5, x_6); return x_9; } } @@ -658,7 +715,7 @@ x_21 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindC lean_inc(x_3); lean_inc(x_2); lean_inc(x_17); -x_22 = l_Lean_Meta_lambdaTelescope___at_Lean_PrettyPrinter_Delaborator_returnsPi___spec__1___rarg(x_14, x_19, x_20, x_21, x_17, x_2, x_3, x_18); +x_22 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Meta_Eqns_0__Lean_Meta_mkSimpleEqThm___spec__1___rarg(x_14, x_19, x_20, x_21, x_17, x_2, x_3, x_18); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; @@ -923,7 +980,7 @@ return x_73; } } } -static lean_object* _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____spec__1___closed__1() { +static lean_object* _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -934,7 +991,7 @@ lean_ctor_set(x_2, 1, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____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_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; @@ -955,7 +1012,7 @@ x_12 = lean_ctor_get(x_9, 0); x_13 = lean_ctor_get(x_9, 4); lean_dec(x_13); x_14 = l_Lean_ScopedEnvExtension_addCore___rarg(x_12, x_1, x_2, x_3, x_7); -x_15 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____spec__1___closed__1; +x_15 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1___closed__1; lean_ctor_set(x_9, 4, x_15); lean_ctor_set(x_9, 0, x_14); x_16 = lean_st_ref_set(x_5, x_9, x_10); @@ -1001,7 +1058,7 @@ lean_inc(x_24); lean_inc(x_23); lean_dec(x_9); x_30 = l_Lean_ScopedEnvExtension_addCore___rarg(x_23, x_1, x_2, x_3, x_7); -x_31 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____spec__1___closed__1; +x_31 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1___closed__1; x_32 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_24); @@ -1034,7 +1091,7 @@ return x_37; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____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_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____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) { _start: { lean_object* x_7; @@ -1049,7 +1106,7 @@ x_8 = lean_ctor_get(x_7, 1); lean_inc(x_8); lean_dec(x_7); x_9 = l_Lean_Meta_Grind_isGrindCasesTarget___closed__1; -x_10 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____spec__1(x_9, x_1, x_3, x_4, x_5, x_8); +x_10 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1(x_9, x_1, x_3, x_4, x_5, x_8); lean_dec(x_5); return x_10; } @@ -1080,7 +1137,7 @@ return x_14; } } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___closed__1() { _start: { lean_object* x_1; @@ -1088,55 +1145,55 @@ x_1 = lean_mk_string_unchecked("attribute cannot be erased", 26, 26); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___closed__2() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___closed__1; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___closed__2; +x_5 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__1; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____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_Attr___hyg_370____closed__2() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__2() { _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_Attr___hyg_370____closed__1; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__2; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__1; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__2; 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_Attr___hyg_370____closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__3() { _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_Attr___hyg_370____closed__2; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__3; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__2; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____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_Attr___hyg_370____closed__4() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__4() { _start: { lean_object* x_1; @@ -1144,17 +1201,17 @@ x_1 = lean_mk_string_unchecked("initFn", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__5() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__5() { _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_Attr___hyg_370____closed__3; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__4; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__3; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__4; 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_Attr___hyg_370____closed__6() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__6() { _start: { lean_object* x_1; @@ -1162,37 +1219,37 @@ x_1 = lean_mk_string_unchecked("_@", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__7() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__7() { _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_Attr___hyg_370____closed__5; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__6; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__5; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__6; 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_Attr___hyg_370____closed__8() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____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_Attr___hyg_370____closed__7; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__1; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__7; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____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_Attr___hyg_370____closed__9() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__9() { _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_Attr___hyg_370____closed__8; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__2; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__8; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__2; 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_Attr___hyg_370____closed__10() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__10() { _start: { lean_object* x_1; @@ -1200,27 +1257,27 @@ 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_Attr___hyg_370____closed__11() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__11() { _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_Attr___hyg_370____closed__9; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__10; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__9; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__10; 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_Attr___hyg_370____closed__12() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____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_Attr___hyg_370____closed__11; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__3; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__11; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____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_Attr___hyg_370____closed__13() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13() { _start: { lean_object* x_1; @@ -1228,17 +1285,17 @@ x_1 = lean_mk_string_unchecked("Attr", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__14() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____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_Attr___hyg_370____closed__12; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__13; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__12; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13; 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_Attr___hyg_370____closed__15() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__15() { _start: { lean_object* x_1; @@ -1246,27 +1303,27 @@ x_1 = lean_mk_string_unchecked("_hyg", 4, 4); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__16() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____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_Attr___hyg_370____closed__14; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__15; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__14; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__15; 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_Attr___hyg_370____closed__17() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__17() { _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_Attr___hyg_370____closed__16; -x_2 = lean_unsigned_to_nat(370u); +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__16; +x_2 = lean_unsigned_to_nat(369u); 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_Attr___hyg_370____closed__18() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__18() { _start: { lean_object* x_1; @@ -1274,17 +1331,17 @@ x_1 = lean_mk_string_unchecked("grind_cases", 11, 11); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__19() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__19() { _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_Attr___hyg_370____closed__18; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__18; 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_Attr___hyg_370____closed__20() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__20() { _start: { lean_object* x_1; @@ -1292,13 +1349,13 @@ x_1 = lean_mk_string_unchecked("`grind` tactic applies `cases` to (non-recursive return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__21() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__21() { _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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__17; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__19; -x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__20; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__17; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__19; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__20; x_4 = 0; x_5 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_5, 0, x_1); @@ -1308,29 +1365,29 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__22() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__22() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__1___boxed), 6, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__1___boxed), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__23() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__23() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___boxed), 4, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__24() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__21; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__22; -x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__23; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__21; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__22; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__23; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -1338,78 +1395,1276 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__24; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__24; x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____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_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_3); lean_dec(x_3); -x_8 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____spec__1(x_1, x_2, x_7, x_4, x_5, x_6); +x_8 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1(x_1, x_2, x_7, x_4, x_5, x_6); lean_dec(x_5); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____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_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____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: { uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_3); lean_dec(x_3); -x_8 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__1(x_1, x_2, x_7, x_4, x_5, x_6); +x_8 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__1(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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_5; } } -lean_object* initialize_Lean_Meta_Tactic_Simp_Attr(uint8_t builtin, lean_object*); -lean_object* initialize_Lean_Meta_Tactic_Simp_Simproc(uint8_t builtin, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_getAttrKindCore___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 5); +x_6 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_1, x_2, x_3, x_4); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_5); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_5); +lean_ctor_set(x_9, 1, x_8); +lean_ctor_set_tag(x_6, 1); +lean_ctor_set(x_6, 0, x_9); +return x_6; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_6, 0); +x_11 = lean_ctor_get(x_6, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_6); +lean_inc(x_5); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_10); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___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_Meta_Grind_getAttrKindCore___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grindMod", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1; +x_2 = l_Lean_Meta_Grind_getAttrKindCore___closed__1; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13; +x_4 = l_Lean_Meta_Grind_getAttrKindCore___closed__2; +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_getAttrKindCore___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("unexpected `grind` theorem kind: `", 34, 34); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_getAttrKindCore___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grindEq", 7, 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1; +x_2 = l_Lean_Meta_Grind_getAttrKindCore___closed__1; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13; +x_4 = l_Lean_Meta_Grind_getAttrKindCore___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_Meta_Grind_getAttrKindCore___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grindFwd", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1; +x_2 = l_Lean_Meta_Grind_getAttrKindCore___closed__1; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13; +x_4 = l_Lean_Meta_Grind_getAttrKindCore___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_Meta_Grind_getAttrKindCore___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grindBwd", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1; +x_2 = l_Lean_Meta_Grind_getAttrKindCore___closed__1; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13; +x_4 = l_Lean_Meta_Grind_getAttrKindCore___closed__10; +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_getAttrKindCore___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grindEqRhs", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___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_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1; +x_2 = l_Lean_Meta_Grind_getAttrKindCore___closed__1; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13; +x_4 = l_Lean_Meta_Grind_getAttrKindCore___closed__12; +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_getAttrKindCore___closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grindEqBoth", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___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_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1; +x_2 = l_Lean_Meta_Grind_getAttrKindCore___closed__1; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13; +x_4 = l_Lean_Meta_Grind_getAttrKindCore___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_Meta_Grind_getAttrKindCore___closed__16() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grindEqBwd", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___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_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1; +x_2 = l_Lean_Meta_Grind_getAttrKindCore___closed__1; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13; +x_4 = l_Lean_Meta_Grind_getAttrKindCore___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_Meta_Grind_getAttrKindCore___closed__18() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grindCases", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__19() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1; +x_2 = l_Lean_Meta_Grind_getAttrKindCore___closed__1; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13; +x_4 = l_Lean_Meta_Grind_getAttrKindCore___closed__18; +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_getAttrKindCore___closed__20() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("grindCasesEager", 15, 15); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__21() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1; +x_2 = l_Lean_Meta_Grind_getAttrKindCore___closed__1; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13; +x_4 = l_Lean_Meta_Grind_getAttrKindCore___closed__20; +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_getAttrKindCore___closed__22() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 1; +x_2 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__23() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 0; +x_2 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__24() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 3; +x_2 = lean_alloc_ctor(0, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__25() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 2; +x_2 = lean_alloc_ctor(0, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__26() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 1; +x_2 = lean_alloc_ctor(0, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__27() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 5; +x_2 = lean_alloc_ctor(0, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__28() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 4; +x_2 = lean_alloc_ctor(0, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getAttrKindCore___closed__29() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 0; +x_2 = lean_alloc_ctor(0, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getAttrKindCore(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 = l_Lean_Meta_Grind_getAttrKindCore___closed__3; +lean_inc(x_1); +x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_7 = l_Lean_MessageData_ofSyntax(x_1); +x_8 = l_Lean_Meta_Grind_getAttrKindCore___closed__5; +x_9 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +x_10 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__2; +x_11 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = l_Lean_throwError___at_Lean_Meta_Grind_getAttrKindCore___spec__1(x_11, x_2, x_3, x_4); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Lean_Syntax_getArg(x_1, x_13); +x_15 = l_Lean_Meta_Grind_getAttrKindCore___closed__7; +lean_inc(x_14); +x_16 = l_Lean_Syntax_isOfKind(x_14, x_15); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = l_Lean_Meta_Grind_getAttrKindCore___closed__9; +lean_inc(x_14); +x_18 = l_Lean_Syntax_isOfKind(x_14, x_17); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = l_Lean_Meta_Grind_getAttrKindCore___closed__11; +lean_inc(x_14); +x_20 = l_Lean_Syntax_isOfKind(x_14, x_19); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = l_Lean_Meta_Grind_getAttrKindCore___closed__13; +lean_inc(x_14); +x_22 = l_Lean_Syntax_isOfKind(x_14, x_21); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = l_Lean_Meta_Grind_getAttrKindCore___closed__15; +lean_inc(x_14); +x_24 = l_Lean_Syntax_isOfKind(x_14, x_23); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; +x_25 = l_Lean_Meta_Grind_getAttrKindCore___closed__17; +lean_inc(x_14); +x_26 = l_Lean_Syntax_isOfKind(x_14, x_25); +if (x_26 == 0) +{ +lean_object* x_27; uint8_t x_28; +x_27 = l_Lean_Meta_Grind_getAttrKindCore___closed__19; +lean_inc(x_14); +x_28 = l_Lean_Syntax_isOfKind(x_14, x_27); +if (x_28 == 0) +{ +lean_object* x_29; uint8_t x_30; +x_29 = l_Lean_Meta_Grind_getAttrKindCore___closed__21; +x_30 = l_Lean_Syntax_isOfKind(x_14, x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_31 = l_Lean_MessageData_ofSyntax(x_1); +x_32 = l_Lean_Meta_Grind_getAttrKindCore___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 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__2; +x_35 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_Lean_throwError___at_Lean_Meta_Grind_getAttrKindCore___spec__1(x_35, x_2, x_3, x_4); +return x_36; +} +else +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_1); +x_37 = l_Lean_Meta_Grind_getAttrKindCore___closed__22; +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_4); +return x_38; +} +} +else +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_14); +lean_dec(x_1); +x_39 = l_Lean_Meta_Grind_getAttrKindCore___closed__23; +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_4); +return x_40; +} +} +else +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_14); +lean_dec(x_1); +x_41 = l_Lean_Meta_Grind_getAttrKindCore___closed__24; +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_4); +return x_42; +} +} +else +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_14); +lean_dec(x_1); +x_43 = l_Lean_Meta_Grind_getAttrKindCore___closed__25; +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_4); +return x_44; +} +} +else +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_14); +lean_dec(x_1); +x_45 = l_Lean_Meta_Grind_getAttrKindCore___closed__26; +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_4); +return x_46; +} +} +else +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_14); +lean_dec(x_1); +x_47 = l_Lean_Meta_Grind_getAttrKindCore___closed__27; +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_4); +return x_48; +} +} +else +{ +lean_object* x_49; lean_object* x_50; +lean_dec(x_14); +lean_dec(x_1); +x_49 = l_Lean_Meta_Grind_getAttrKindCore___closed__28; +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_4); +return x_50; +} +} +else +{ +lean_object* x_51; lean_object* x_52; +lean_dec(x_14); +lean_dec(x_1); +x_51 = l_Lean_Meta_Grind_getAttrKindCore___closed__29; +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_4); +return x_52; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_getAttrKindCore___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_throwError___at_Lean_Meta_Grind_getAttrKindCore___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_Lean_Meta_Grind_getAttrKindCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Meta_Grind_getAttrKindCore(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getAttrKindFromOpt(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; uint8_t x_7; +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = l_Lean_Syntax_isNone(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Lean_Syntax_getArg(x_6, x_8); +lean_dec(x_6); +x_10 = l_Lean_Meta_Grind_getAttrKindCore(x_9, x_2, x_3, x_4); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_6); +x_11 = lean_box(2); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_4); +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getAttrKindFromOpt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Meta_Grind_getAttrKindFromOpt(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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__20; +x_8 = lean_st_mk_ref(x_7, x_6); +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 = l_Lean_Meta_Grind_getAttrKindFromOpt(x_2, x_4, x_5, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +switch (lean_obj_tag(x_12)) { +case 0: +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_ctor_get_uint8(x_12, 0); +lean_dec(x_12); +x_15 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__16; +lean_inc(x_9); +x_16 = l_Lean_Meta_Grind_addEMatchAttr(x_1, x_3, x_14, x_15, x_9, x_4, x_5, x_13); +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_9, x_18); +lean_dec(x_9); +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_9); +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; +} +} +} +case 1: +{ +lean_object* x_28; uint8_t x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_11, 1); +lean_inc(x_28); +lean_dec(x_11); +x_29 = lean_ctor_get_uint8(x_12, 0); +lean_dec(x_12); +x_30 = l_Lean_Meta_Grind_addCasesAttr(x_1, x_29, x_3, x_4, x_5, x_28); +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_9, x_32); +lean_dec(x_9); +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_9); +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; +} +} +} +default: +{ +lean_object* x_42; uint8_t x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_11, 1); +lean_inc(x_42); +lean_dec(x_11); +x_43 = 0; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_44 = l_Lean_Meta_Grind_isCasesAttrCandidate(x_1, x_43, x_4, x_5, x_42); +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; uint8_t 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 = 6; +x_49 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__16; +lean_inc(x_9); +x_50 = l_Lean_Meta_Grind_addEMatchAttr(x_1, x_3, x_48, x_49, x_9, x_4, x_5, x_47); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_53 = lean_st_ref_get(x_9, x_52); +lean_dec(x_9); +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) +{ +lean_object* x_55; +x_55 = lean_ctor_get(x_53, 0); +lean_dec(x_55); +lean_ctor_set(x_53, 0, x_51); +return x_53; +} +else +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_51); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +else +{ +uint8_t x_58; +lean_dec(x_9); +x_58 = !lean_is_exclusive(x_50); +if (x_58 == 0) +{ +return x_50; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_50, 0); +x_60 = lean_ctor_get(x_50, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_50); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +} +else +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_44, 1); +lean_inc(x_62); +lean_dec(x_44); +x_63 = l_Lean_Meta_Grind_addCasesAttr(x_1, x_43, x_3, x_4, x_5, x_62); +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 = lean_st_ref_get(x_9, x_65); +lean_dec(x_9); +x_67 = !lean_is_exclusive(x_66); +if (x_67 == 0) +{ +lean_object* x_68; +x_68 = lean_ctor_get(x_66, 0); +lean_dec(x_68); +lean_ctor_set(x_66, 0, x_64); +return x_66; +} +else +{ +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_66, 1); +lean_inc(x_69); +lean_dec(x_66); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_64); +lean_ctor_set(x_70, 1, x_69); +return x_70; +} +} +else +{ +uint8_t x_71; +lean_dec(x_9); +x_71 = !lean_is_exclusive(x_63); +if (x_71 == 0) +{ +return x_63; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_63, 0); +x_73 = lean_ctor_get(x_63, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_63); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_44); +if (x_75 == 0) +{ +return x_44; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_44, 0); +x_77 = lean_ctor_get(x_44, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_44); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +} +} +else +{ +uint8_t x_79; +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_79 = !lean_is_exclusive(x_11); +if (x_79 == 0) +{ +return x_11; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_11, 0); +x_81 = lean_ctor_get(x_11, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_11); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; +x_5 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__20; +x_6 = lean_st_mk_ref(x_5, x_4); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = 0; +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_10 = l_Lean_Meta_Grind_isCasesAttrCandidate(x_1, x_9, x_2, x_3, x_8); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; uint8_t x_12; +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; +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +x_14 = l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__16; +lean_inc(x_7); +x_15 = l_Lean_Meta_Grind_eraseEMatchAttr(x_1, x_14, x_7, x_2, x_3, 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; +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_get(x_7, x_17); +lean_dec(x_7); +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_16); +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_16); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +uint8_t x_23; +lean_dec(x_7); +x_23 = !lean_is_exclusive(x_15); +if (x_23 == 0) +{ +return x_15; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_15, 0); +x_25 = lean_ctor_get(x_15, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_15); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_10, 1); +lean_inc(x_27); +lean_dec(x_10); +x_28 = l_Lean_Meta_Grind_eraseCasesAttr(x_1, x_2, x_3, x_27); +lean_dec(x_3); +lean_dec(x_2); +if (lean_obj_tag(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_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_st_ref_get(x_7, x_30); +lean_dec(x_7); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +lean_ctor_set(x_31, 0, x_29); +return x_31; +} +else +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_29); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +else +{ +uint8_t x_36; +lean_dec(x_7); +x_36 = !lean_is_exclusive(x_28); +if (x_36 == 0) +{ +return x_28; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_28, 0); +x_38 = lean_ctor_get(x_28, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_28); +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_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_10); +if (x_40 == 0) +{ +return x_10; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_10, 0); +x_42 = lean_ctor_get(x_10, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_10); +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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__1() { +_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_Attr___hyg_369____closed__16; +x_2 = lean_unsigned_to_nat(971u); +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_Attr___hyg_971____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_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____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_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__2; +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_Attr___hyg_971____closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("The `[grind]` attribute is used to annotate declarations.When applied to an equational theorem, `[grind =]`, `[grind =_]`, or `[grind _=_]`will mark the theorem for use in heuristic instantiations by the `grind` tactic,\n using respectively the left-hand side, the right-hand side, or both sides of the theorem.When applied to a function, `[grind =]` automatically annotates the equational theorems associated with that function.When applied to a theorem `[grind ←]` will instantiate the theorem whenever it encounters the conclusion of the theorem\n (that is, it will use the theorem for backwards reasoning).When applied to a theorem `[grind →]` will instantiate the theorem whenever it encounters sufficiently many of the propositional hypotheses\n (that is, it will use the theorem for forwards reasoning).The attribute `[grind]` by itself will effectively try `[grind ←]` (if the conclusion is sufficient for instantiation) and then `[grind →]`.The `grind` tactic utilizes annotated theorems to add instances of matching patterns into the local context during proof search.For example, if a theorem `@[grind =] theorem foo_idempotent : foo (foo x) = foo x` is annotated,`grind` will add an instance of this theorem to the local context whenever it encounters the pattern `foo (foo x)`.", 1310, 1302); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__5() { +_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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__1; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__3; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__4; +x_4 = 1; +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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____lambda__1___boxed), 6, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____lambda__2), 4, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__5; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__6; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__7; +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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__8; +x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____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: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_3); +lean_dec(x_3); +x_8 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____lambda__1(x_1, x_2, x_7, x_4, x_5, x_6); +lean_dec(x_2); +return x_8; +} +} +lean_object* initialize_Lean_Meta_Tactic_Grind_EMatchTheorem(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Cases(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Attr(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_Simp_Attr(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); -res = initialize_Lean_Meta_Tactic_Simp_Simproc(builtin, lean_io_mk_world()); +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); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__1); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__2); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__3); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__4); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__5 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__5); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__6 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__6); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__7 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__7); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__8 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4____closed__8); -if (builtin) {res = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_4_(lean_io_mk_world()); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__1); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__2); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__3); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__4); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__5 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__5); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__6 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__6); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__7 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__7); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__8 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3____closed__8); +if (builtin) {res = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_3_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Meta_Grind_grindCasesExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Meta_Grind_grindCasesExt); @@ -1461,61 +2716,138 @@ l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAtt lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__21); l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__22 = _init_l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__22(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Attr_0__Lean_Meta_Grind_validateGrindCasesAttr___closed__22); -l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____spec__1___closed__1 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____spec__1___closed__1(); -lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____spec__1___closed__1); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___closed__1); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____lambda__2___closed__2); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__1); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__2); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__3); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__4); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__5 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__5); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__6 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__6); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__7 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__7); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__8 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__8); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__9 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__9); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__10 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__10); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__11 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__11(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__11); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__12 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__12(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__12); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__13 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__13(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__13); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__14 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__14(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__14); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__15 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__15(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__15); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__16 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__16(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__16); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__17 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__17(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__17); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__18 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__18(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__18); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__19 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__19(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__19); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__20 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__20(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__20); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__21 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__21(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__21); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__22 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__22(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__22); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__23 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__23(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__23); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__24 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__24(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370____closed__24); -if (builtin) {res = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_370_(lean_io_mk_world()); +l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1___closed__1 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1___closed__1(); +lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____spec__1___closed__1); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___closed__1); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____lambda__2___closed__2); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__1); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__2); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__3); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__4); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__5 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__5); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__6 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__6); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__7 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__7); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__8 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__8); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__9 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__9(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__9); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__10 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__10(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__10); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__11 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__11(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__11); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__12 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__12(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__12); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__13); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__14 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__14(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__14); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__15 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__15(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__15); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__16 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__16(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__16); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__17 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__17(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__17); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__18 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__18(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__18); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__19 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__19(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__19); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__20 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__20(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__20); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__21 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__21(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__21); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__22 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__22(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__22); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__23 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__23(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__23); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__24 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__24(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369____closed__24); +if (builtin) {res = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_369_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}l_Lean_Meta_Grind_getAttrKindCore___closed__1 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__1); +l_Lean_Meta_Grind_getAttrKindCore___closed__2 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__2); +l_Lean_Meta_Grind_getAttrKindCore___closed__3 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__3); +l_Lean_Meta_Grind_getAttrKindCore___closed__4 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__4); +l_Lean_Meta_Grind_getAttrKindCore___closed__5 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__5); +l_Lean_Meta_Grind_getAttrKindCore___closed__6 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__6); +l_Lean_Meta_Grind_getAttrKindCore___closed__7 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__7); +l_Lean_Meta_Grind_getAttrKindCore___closed__8 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__8); +l_Lean_Meta_Grind_getAttrKindCore___closed__9 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__9(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__9); +l_Lean_Meta_Grind_getAttrKindCore___closed__10 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__10(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__10); +l_Lean_Meta_Grind_getAttrKindCore___closed__11 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__11(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__11); +l_Lean_Meta_Grind_getAttrKindCore___closed__12 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__12(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__12); +l_Lean_Meta_Grind_getAttrKindCore___closed__13 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__13(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__13); +l_Lean_Meta_Grind_getAttrKindCore___closed__14 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__14(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__14); +l_Lean_Meta_Grind_getAttrKindCore___closed__15 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__15(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__15); +l_Lean_Meta_Grind_getAttrKindCore___closed__16 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__16(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__16); +l_Lean_Meta_Grind_getAttrKindCore___closed__17 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__17(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__17); +l_Lean_Meta_Grind_getAttrKindCore___closed__18 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__18(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__18); +l_Lean_Meta_Grind_getAttrKindCore___closed__19 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__19(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__19); +l_Lean_Meta_Grind_getAttrKindCore___closed__20 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__20(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__20); +l_Lean_Meta_Grind_getAttrKindCore___closed__21 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__21(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__21); +l_Lean_Meta_Grind_getAttrKindCore___closed__22 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__22(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__22); +l_Lean_Meta_Grind_getAttrKindCore___closed__23 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__23(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__23); +l_Lean_Meta_Grind_getAttrKindCore___closed__24 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__24(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__24); +l_Lean_Meta_Grind_getAttrKindCore___closed__25 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__25(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__25); +l_Lean_Meta_Grind_getAttrKindCore___closed__26 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__26(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__26); +l_Lean_Meta_Grind_getAttrKindCore___closed__27 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__27(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__27); +l_Lean_Meta_Grind_getAttrKindCore___closed__28 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__28(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__28); +l_Lean_Meta_Grind_getAttrKindCore___closed__29 = _init_l_Lean_Meta_Grind_getAttrKindCore___closed__29(); +lean_mark_persistent(l_Lean_Meta_Grind_getAttrKindCore___closed__29); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__1); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__2); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__3); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__4); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__5 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__5); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__6 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__6); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__7 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__7); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__8 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971____closed__8); +if (builtin) {res = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Attr___hyg_971_(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/Beta.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Beta.c new file mode 100644 index 000000000000..322bbfad5794 --- /dev/null +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Beta.c @@ -0,0 +1,3713 @@ +// Lean compiler output +// Module: Lean.Meta.Tactic.Grind.Beta +// Imports: Lean.Meta.Tactic.Grind.Types +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getFnRoots___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget(lean_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_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_go(lean_object*, 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_Lean_Meta_Grind_getFnRoots___spec__3___lambda__1___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEqcLambdas___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_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__3; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getFnRoots___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_panic___at_Lean_Meta_Grind_foldEqc___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBetaForNewApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___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_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___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_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEqcLambdas___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_Meta_Grind_getEqcLambdas___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_getRootENode_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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__6; +static lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___spec__1___lambda__1___closed__1; +lean_object* l_Lean_Meta_Grind_Goal_getENode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isLambda(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getFnRoots___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__2; +lean_object* l_Array_reverse___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBetaForNewApp___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_propagateBetaEqs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBetaEqs___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_Lean_Meta_Grind_getFnRoots(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBetaEqs___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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2(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_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___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_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___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*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBetaForNewApp___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_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___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___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget___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_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_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* l_Lean_Meta_mkEq(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_propagateBetaEqs___spec__2___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEqcLambdas(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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___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_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_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__7; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__5; +static lean_object* l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__2; +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_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___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___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_go___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_MessageData_ofExpr(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___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_getEqcLambdas___lambda__1___closed__4; +lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___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_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_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*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__1; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getFnRoots___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEqcLambdas___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_propagateBetaEqs___spec__2___closed__3; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_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_getEqcLambdas___lambda__1___closed__1; +lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___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_Name_mkStr2(lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__4; +lean_object* l_Lean_Meta_Grind_Goal_getRoot_x3f(lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppFn(lean_object*); +static lean_object* l_Lean_Meta_Grind_getEqcLambdas___lambda__2___closed__1; +lean_object* lean_array_mk(lean_object*); +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_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___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*); +size_t lean_usize_add(size_t, size_t); +lean_object* lean_array_uget(lean_object*, size_t); +size_t lean_array_size(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBetaEqs___boxed(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_Lean_Meta_Grind_getFnRoots___spec__3___closed__1; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___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_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_Expr_beta(lean_object*, lean_object*); +static lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__2; +static lean_object* l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__3; +uint8_t l_Array_isEmpty___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___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; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_1, 1); +lean_inc(x_15); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_2); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_3); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, 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_14); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___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; uint8_t x_14; +x_13 = lean_ctor_get(x_3, 1); +lean_inc(x_13); +lean_dec(x_3); +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_st_ref_get(x_4, x_12); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +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_15); +x_21 = l_Lean_Meta_Grind_Goal_getENode(x_19, x_15, x_10, x_11, x_20); +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; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +x_26 = l_Lean_Expr_isLambda(x_25); +if (x_26 == 0) +{ +lean_object* x_27; uint8_t x_28; +lean_dec(x_25); +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +x_28 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_27, x_1); +lean_dec(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_free_object(x_21); +lean_free_object(x_17); +lean_free_object(x_13); +x_29 = lean_box(0); +lean_inc(x_2); +x_30 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___spec__1___lambda__1(x_23, x_16, x_2, x_15, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_24); +lean_dec(x_15); +lean_dec(x_23); +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, 0); +lean_inc(x_33); +lean_dec(x_31); +x_3 = x_33; +x_12 = x_32; +goto _start; +} +else +{ +lean_object* x_35; +lean_dec(x_23); +lean_dec(x_2); +lean_inc(x_16); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_16); +lean_ctor_set(x_17, 1, x_13); +lean_ctor_set(x_17, 0, x_35); +lean_ctor_set(x_21, 0, x_17); +return x_21; +} +} +else +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_array_push(x_16, x_25); +x_37 = lean_ctor_get(x_23, 1); +lean_inc(x_37); +x_38 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_37, x_1); +lean_dec(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_free_object(x_21); +lean_free_object(x_17); +lean_free_object(x_13); +x_39 = lean_box(0); +lean_inc(x_2); +x_40 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___spec__1___lambda__1(x_23, x_36, x_2, x_15, x_39, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_24); +lean_dec(x_15); +lean_dec(x_23); +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 = lean_ctor_get(x_41, 0); +lean_inc(x_43); +lean_dec(x_41); +x_3 = x_43; +x_12 = x_42; +goto _start; +} +else +{ +lean_object* x_45; +lean_dec(x_23); +lean_dec(x_2); +lean_inc(x_36); +x_45 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_45, 0, x_36); +lean_ctor_set(x_13, 1, x_36); +lean_ctor_set(x_17, 1, x_13); +lean_ctor_set(x_17, 0, x_45); +lean_ctor_set(x_21, 0, x_17); +return x_21; +} +} +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_46 = lean_ctor_get(x_21, 0); +x_47 = lean_ctor_get(x_21, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_21); +x_48 = lean_ctor_get(x_46, 0); +lean_inc(x_48); +x_49 = l_Lean_Expr_isLambda(x_48); +if (x_49 == 0) +{ +lean_object* x_50; uint8_t x_51; +lean_dec(x_48); +x_50 = lean_ctor_get(x_46, 1); +lean_inc(x_50); +x_51 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_50, x_1); +lean_dec(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_free_object(x_17); +lean_free_object(x_13); +x_52 = lean_box(0); +lean_inc(x_2); +x_53 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___spec__1___lambda__1(x_46, x_16, x_2, x_15, x_52, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_47); +lean_dec(x_15); +lean_dec(x_46); +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_ctor_get(x_54, 0); +lean_inc(x_56); +lean_dec(x_54); +x_3 = x_56; +x_12 = x_55; +goto _start; +} +else +{ +lean_object* x_58; lean_object* x_59; +lean_dec(x_46); +lean_dec(x_2); +lean_inc(x_16); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_16); +lean_ctor_set(x_17, 1, x_13); +lean_ctor_set(x_17, 0, x_58); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_17); +lean_ctor_set(x_59, 1, x_47); +return x_59; +} +} +else +{ +lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_60 = lean_array_push(x_16, x_48); +x_61 = lean_ctor_get(x_46, 1); +lean_inc(x_61); +x_62 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_61, x_1); +lean_dec(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_free_object(x_17); +lean_free_object(x_13); +x_63 = lean_box(0); +lean_inc(x_2); +x_64 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___spec__1___lambda__1(x_46, x_60, x_2, x_15, x_63, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_47); +lean_dec(x_15); +lean_dec(x_46); +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); +lean_dec(x_65); +x_3 = x_67; +x_12 = x_66; +goto _start; +} +else +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_46); +lean_dec(x_2); +lean_inc(x_60); +x_69 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_69, 0, x_60); +lean_ctor_set(x_13, 1, x_60); +lean_ctor_set(x_17, 1, x_13); +lean_ctor_set(x_17, 0, x_69); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_17); +lean_ctor_set(x_70, 1, x_47); +return x_70; +} +} +} +} +else +{ +uint8_t x_71; +lean_free_object(x_17); +lean_free_object(x_13); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_2); +x_71 = !lean_is_exclusive(x_21); +if (x_71 == 0) +{ +return x_21; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_21, 0); +x_73 = lean_ctor_get(x_21, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_21); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_17, 0); +x_76 = lean_ctor_get(x_17, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_17); +lean_inc(x_15); +x_77 = l_Lean_Meta_Grind_Goal_getENode(x_75, x_15, x_10, x_11, x_76); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_80 = x_77; +} else { + lean_dec_ref(x_77); + x_80 = lean_box(0); +} +x_81 = lean_ctor_get(x_78, 0); +lean_inc(x_81); +x_82 = l_Lean_Expr_isLambda(x_81); +if (x_82 == 0) +{ +lean_object* x_83; uint8_t x_84; +lean_dec(x_81); +x_83 = lean_ctor_get(x_78, 1); +lean_inc(x_83); +x_84 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_83, x_1); +lean_dec(x_83); +if (x_84 == 0) +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_80); +lean_free_object(x_13); +x_85 = lean_box(0); +lean_inc(x_2); +x_86 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___spec__1___lambda__1(x_78, x_16, x_2, x_15, x_85, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_79); +lean_dec(x_15); +lean_dec(x_78); +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); +lean_dec(x_87); +x_3 = x_89; +x_12 = x_88; +goto _start; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_78); +lean_dec(x_2); +lean_inc(x_16); +x_91 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_91, 0, x_16); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_13); +if (lean_is_scalar(x_80)) { + x_93 = lean_alloc_ctor(0, 2, 0); +} else { + x_93 = x_80; +} +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_79); +return x_93; +} +} +else +{ +lean_object* x_94; lean_object* x_95; uint8_t x_96; +x_94 = lean_array_push(x_16, x_81); +x_95 = lean_ctor_get(x_78, 1); +lean_inc(x_95); +x_96 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_95, x_1); +lean_dec(x_95); +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_dec(x_80); +lean_free_object(x_13); +x_97 = lean_box(0); +lean_inc(x_2); +x_98 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___spec__1___lambda__1(x_78, x_94, x_2, x_15, x_97, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_79); +lean_dec(x_15); +lean_dec(x_78); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); +x_101 = lean_ctor_get(x_99, 0); +lean_inc(x_101); +lean_dec(x_99); +x_3 = x_101; +x_12 = x_100; +goto _start; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_78); +lean_dec(x_2); +lean_inc(x_94); +x_103 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_103, 0, x_94); +lean_ctor_set(x_13, 1, x_94); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_13); +if (lean_is_scalar(x_80)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_80; +} +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_79); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_free_object(x_13); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_2); +x_106 = lean_ctor_get(x_77, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_77, 1); +lean_inc(x_107); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_108 = x_77; +} else { + lean_dec_ref(x_77); + x_108 = lean_box(0); +} +if (lean_is_scalar(x_108)) { + x_109 = lean_alloc_ctor(1, 2, 0); +} else { + x_109 = x_108; +} +lean_ctor_set(x_109, 0, x_106); +lean_ctor_set(x_109, 1, x_107); +return x_109; +} +} +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_110 = lean_ctor_get(x_13, 0); +x_111 = lean_ctor_get(x_13, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_13); +x_112 = lean_st_ref_get(x_4, x_12); +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_112, 1); +lean_inc(x_114); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_115 = x_112; +} else { + lean_dec_ref(x_112); + x_115 = lean_box(0); +} +lean_inc(x_110); +x_116 = l_Lean_Meta_Grind_Goal_getENode(x_113, x_110, x_10, x_11, x_114); +if (lean_obj_tag(x_116) == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_119 = x_116; +} else { + lean_dec_ref(x_116); + x_119 = lean_box(0); +} +x_120 = lean_ctor_get(x_117, 0); +lean_inc(x_120); +x_121 = l_Lean_Expr_isLambda(x_120); +if (x_121 == 0) +{ +lean_object* x_122; uint8_t x_123; +lean_dec(x_120); +x_122 = lean_ctor_get(x_117, 1); +lean_inc(x_122); +x_123 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_122, x_1); +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_object* x_128; +lean_dec(x_119); +lean_dec(x_115); +x_124 = lean_box(0); +lean_inc(x_2); +x_125 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___spec__1___lambda__1(x_117, x_111, x_2, x_110, x_124, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_118); +lean_dec(x_110); +lean_dec(x_117); +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_3 = x_128; +x_12 = x_127; +goto _start; +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +lean_dec(x_117); +lean_dec(x_2); +lean_inc(x_111); +x_130 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_130, 0, x_111); +x_131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_131, 0, x_110); +lean_ctor_set(x_131, 1, x_111); +if (lean_is_scalar(x_115)) { + x_132 = lean_alloc_ctor(0, 2, 0); +} else { + x_132 = x_115; +} +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_131); +if (lean_is_scalar(x_119)) { + x_133 = lean_alloc_ctor(0, 2, 0); +} else { + x_133 = x_119; +} +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_118); +return x_133; +} +} +else +{ +lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_134 = lean_array_push(x_111, x_120); +x_135 = lean_ctor_get(x_117, 1); +lean_inc(x_135); +x_136 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_135, x_1); +lean_dec(x_135); +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_dec(x_119); +lean_dec(x_115); +x_137 = lean_box(0); +lean_inc(x_2); +x_138 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___spec__1___lambda__1(x_117, x_134, x_2, x_110, x_137, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_118); +lean_dec(x_110); +lean_dec(x_117); +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_ctor_get(x_139, 0); +lean_inc(x_141); +lean_dec(x_139); +x_3 = x_141; +x_12 = x_140; +goto _start; +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_117); +lean_dec(x_2); +lean_inc(x_134); +x_143 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_143, 0, x_134); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_110); +lean_ctor_set(x_144, 1, x_134); +if (lean_is_scalar(x_115)) { + x_145 = lean_alloc_ctor(0, 2, 0); +} else { + x_145 = x_115; +} +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set(x_145, 1, x_144); +if (lean_is_scalar(x_119)) { + x_146 = lean_alloc_ctor(0, 2, 0); +} else { + x_146 = x_119; +} +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_118); +return x_146; +} +} +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_dec(x_115); +lean_dec(x_111); +lean_dec(x_110); +lean_dec(x_2); +x_147 = lean_ctor_get(x_116, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_116, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_149 = x_116; +} else { + lean_dec_ref(x_116); + x_149 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(1, 2, 0); +} else { + x_150 = x_149; +} +lean_ctor_set(x_150, 0, x_147); +lean_ctor_set(x_150, 1, x_148); +return x_150; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Tactic.Grind.Types", 28, 28); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.foldEqc", 23, 23); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getEqcLambdas___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_getEqcLambdas___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_getEqcLambdas___lambda__1___closed__1; +x_2 = l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__2; +x_3 = lean_unsigned_to_nat(816u); +x_4 = lean_unsigned_to_nat(2u); +x_5 = l_Lean_Meta_Grind_getEqcLambdas___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_getEqcLambdas___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 = l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__4; +x_13 = l_panic___at_Lean_Meta_Grind_foldEqc___spec__2(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; +x_15 = lean_ctor_get(x_13, 0); +lean_dec(x_15); +lean_ctor_set(x_13, 0, x_1); +return x_13; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +uint8_t x_18; +lean_dec(x_1); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_getEqcLambdas___lambda__2___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_getEqcLambdas___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; lean_object* x_15; lean_object* x_16; +x_12 = lean_box(0); +x_13 = l_Lean_Meta_Grind_getEqcLambdas___lambda__2___closed__1; +lean_inc(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_1); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___spec__1(x_1, x_12, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_1); +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_17, 1); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_dec(x_16); +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_Grind_getEqcLambdas___lambda__1(x_21, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_20); +return x_23; +} +else +{ +uint8_t x_24; +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_3); +x_24 = !lean_is_exclusive(x_16); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_16, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_19, 0); +lean_inc(x_26); +lean_dec(x_19); +lean_ctor_set(x_16, 0, x_26); +return x_16; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_16, 1); +lean_inc(x_27); +lean_dec(x_16); +x_28 = lean_ctor_get(x_19, 0); +lean_inc(x_28); +lean_dec(x_19); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +} +else +{ +uint8_t x_30; +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_30 = !lean_is_exclusive(x_16); +if (x_30 == 0) +{ +return x_16; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_16, 0); +x_32 = lean_ctor_get(x_16, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_16); +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_getEqcLambdas(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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*)*11 + 3); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* 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_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = l_Lean_Meta_Grind_getEqcLambdas___lambda__2___closed__1; +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; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); +lean_dec(x_1); +x_15 = lean_box(0); +x_16 = l_Lean_Meta_Grind_getEqcLambdas___lambda__2(x_14, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_16; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___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_Lean_Meta_Grind_getEqcLambdas___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_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___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_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___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_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEqcLambdas___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_getEqcLambdas___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; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEqcLambdas___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_Lean_Meta_Grind_getEqcLambdas___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_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getFnRoots___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) { +_start: +{ +uint8_t x_9; +x_9 = lean_usize_dec_lt(x_7, x_6); +if (x_9 == 0) +{ +lean_inc(x_8); +return x_8; +} +else +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_uget(x_5, x_7); +x_11 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_10, x_2); +if (x_11 == 0) +{ +size_t x_12; size_t x_13; +lean_dec(x_10); +x_12 = 1; +x_13 = lean_usize_add(x_7, x_12); +{ +size_t _tmp_6 = x_13; +lean_object* _tmp_7 = x_4; +x_7 = _tmp_6; +x_8 = _tmp_7; +} +goto _start; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_10); +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); +return x_18; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getFnRoots___spec__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, size_t x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; +x_9 = lean_usize_dec_lt(x_7, x_6); +if (x_9 == 0) +{ +lean_inc(x_8); +return x_8; +} +else +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_uget(x_5, x_7); +x_11 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_10, x_4); +if (x_11 == 0) +{ +size_t x_12; size_t x_13; +lean_dec(x_10); +x_12 = 1; +x_13 = lean_usize_add(x_7, x_12); +{ +size_t _tmp_6 = x_13; +lean_object* _tmp_7 = x_3; +x_7 = _tmp_6; +x_8 = _tmp_7; +} +goto _start; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_10); +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); +return x_18; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___lambda__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +} +static lean_object* _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___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; +} +} +static lean_object* _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___lambda__1___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__2; +x_2 = lean_box(0); +x_3 = lean_apply_1(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___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: +{ +lean_object* x_13; 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_3, 1); +lean_inc(x_29); +lean_dec(x_3); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_32 = x_29; +} else { + lean_dec_ref(x_29); + x_32 = lean_box(0); +} +x_33 = lean_st_ref_get(x_4, x_12); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_36 = x_33; +} else { + lean_dec_ref(x_33); + x_36 = lean_box(0); +} +lean_inc(x_30); +x_37 = l_Lean_Meta_Grind_Goal_getENode(x_34, x_30, x_10, x_11, x_35); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 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; size_t x_60; size_t x_61; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_40 = x_37; +} else { + lean_dec_ref(x_37); + x_40 = lean_box(0); +} +x_53 = lean_ctor_get(x_38, 0); +lean_inc(x_53); +x_54 = l_Lean_Expr_getAppFn(x_53); +lean_dec(x_53); +x_55 = lean_st_ref_get(x_4, x_39); +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_Grind_Goal_getRoot_x3f(x_56, x_54); +x_59 = lean_box(0); +x_60 = lean_array_size(x_31); +x_61 = 0; +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__1; +x_63 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getFnRoots___spec__1(x_31, x_54, x_59, x_62, x_31, x_60, x_61, x_62); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +lean_dec(x_63); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; +x_65 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__3; +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; +x_66 = lean_array_push(x_31, x_54); +x_41 = x_66; +x_42 = x_57; +goto block_52; +} +else +{ +lean_dec(x_54); +x_41 = x_31; +x_42 = x_57; +goto block_52; +} +} +else +{ +lean_object* x_67; +x_67 = lean_ctor_get(x_64, 0); +lean_inc(x_67); +lean_dec(x_64); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; +x_68 = lean_array_push(x_31, x_54); +x_41 = x_68; +x_42 = x_57; +goto block_52; +} +else +{ +lean_dec(x_67); +lean_dec(x_54); +x_41 = x_31; +x_42 = x_57; +goto block_52; +} +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_dec(x_54); +x_69 = lean_ctor_get(x_58, 0); +lean_inc(x_69); +lean_dec(x_58); +x_70 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__1; +x_71 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getFnRoots___spec__2(x_31, x_59, x_70, x_69, x_31, x_60, x_61, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +lean_dec(x_71); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; +x_73 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__3; +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; +x_74 = lean_array_push(x_31, x_69); +x_41 = x_74; +x_42 = x_57; +goto block_52; +} +else +{ +lean_dec(x_69); +x_41 = x_31; +x_42 = x_57; +goto block_52; +} +} +else +{ +lean_object* x_75; +x_75 = lean_ctor_get(x_72, 0); +lean_inc(x_75); +lean_dec(x_72); +if (lean_obj_tag(x_75) == 0) +{ +lean_object* x_76; +x_76 = lean_array_push(x_31, x_69); +x_41 = x_76; +x_42 = x_57; +goto block_52; +} +else +{ +lean_dec(x_75); +lean_dec(x_69); +x_41 = x_31; +x_42 = x_57; +goto block_52; +} +} +} +block_52: +{ +lean_object* x_43; uint8_t x_44; +x_43 = lean_ctor_get(x_38, 1); +lean_inc(x_43); +x_44 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_43, x_1); +lean_dec(x_43); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_40); +lean_dec(x_36); +lean_dec(x_32); +x_45 = lean_box(0); +lean_inc(x_2); +x_46 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getEqcLambdas___spec__1___lambda__1(x_38, x_41, x_2, x_30, x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_42); +lean_dec(x_30); +lean_dec(x_38); +x_13 = x_46; +goto block_28; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_38); +lean_inc(x_41); +x_47 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_47, 0, x_41); +if (lean_is_scalar(x_32)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_32; +} +lean_ctor_set(x_48, 0, x_30); +lean_ctor_set(x_48, 1, x_41); +if (lean_is_scalar(x_36)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_36; +} +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_50, 0, x_49); +if (lean_is_scalar(x_40)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_40; +} +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_42); +x_13 = x_51; +goto block_28; +} +} +} +else +{ +uint8_t x_77; +lean_dec(x_36); +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_30); +x_77 = !lean_is_exclusive(x_37); +if (x_77 == 0) +{ +x_13 = x_37; +goto block_28; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_37, 0); +x_79 = lean_ctor_get(x_37, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_37); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +x_13 = x_80; +goto block_28; +} +} +block_28: +{ +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_2); +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; +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_3 = x_22; +x_12 = x_21; +goto _start; +} +} +else +{ +uint8_t x_24; +lean_dec(x_2); +x_24 = !lean_is_exclusive(x_13); +if (x_24 == 0) +{ +return x_13; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_13, 0); +x_26 = lean_ctor_get(x_13, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_13); +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_getFnRoots(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_box(0); +x_12 = l_Lean_Meta_Grind_getEqcLambdas___lambda__2___closed__1; +lean_inc(x_1); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_1); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set(x_14, 1, x_13); +x_15 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3(x_1, x_11, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +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_16, 1); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); +lean_dec(x_15); +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_Grind_getEqcLambdas___lambda__1(x_20, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); +return x_22; +} +else +{ +uint8_t x_23; +lean_dec(x_17); +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_23 = !lean_is_exclusive(x_15); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_15, 0); +lean_dec(x_24); +x_25 = lean_ctor_get(x_18, 0); +lean_inc(x_25); +lean_dec(x_18); +lean_ctor_set(x_15, 0, x_25); +return x_15; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_15, 1); +lean_inc(x_26); +lean_dec(x_15); +x_27 = lean_ctor_get(x_18, 0); +lean_inc(x_27); +lean_dec(x_18); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +return x_28; +} +} +} +else +{ +uint8_t x_29; +lean_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_29 = !lean_is_exclusive(x_15); +if (x_29 == 0) +{ +return x_15; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_15, 0); +x_31 = lean_ctor_get(x_15, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_15); +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_Meta_Grind_getFnRoots___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_6); +lean_dec(x_6); +x_10 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_11 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getFnRoots___spec__1(x_1, x_2, x_3, x_4, x_5, x_9, x_10, x_8); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getFnRoots___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_6); +lean_dec(x_6); +x_10 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_11 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_getFnRoots___spec__2(x_1, x_2, x_3, x_4, x_5, x_9, x_10, x_8); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___lambda__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___lambda__1(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___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_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___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_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___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, lean_object* x_7, lean_object* x_8, 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_5, x_4); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_uget(x_3, x_5); +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; lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_20 = lean_ctor_get(x_6, 0); +x_21 = lean_ctor_get(x_6, 1); +x_22 = l_Lean_Meta_Grind_getGeneration(x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +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_nat_dec_le(x_20, x_23); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_26 = l_Lean_Meta_mkCongrFun(x_21, x_18, x_11, x_12, x_13, x_14, x_24); +if (x_25 == 0) +{ +lean_dec(x_23); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; size_t x_29; size_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_ctor_set(x_6, 1, x_27); +x_29 = 1; +x_30 = lean_usize_add(x_5, x_29); +x_5 = x_30; +x_15 = x_28; +goto _start; +} +else +{ +uint8_t x_32; +lean_free_object(x_6); +lean_dec(x_20); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_32 = !lean_is_exclusive(x_26); +if (x_32 == 0) +{ +return x_26; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_26, 0); +x_34 = lean_ctor_get(x_26, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_26); +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_dec(x_20); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_36; lean_object* x_37; size_t x_38; size_t x_39; +x_36 = lean_ctor_get(x_26, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_26, 1); +lean_inc(x_37); +lean_dec(x_26); +lean_ctor_set(x_6, 1, x_36); +lean_ctor_set(x_6, 0, x_23); +x_38 = 1; +x_39 = lean_usize_add(x_5, x_38); +x_5 = x_39; +x_15 = x_37; +goto _start; +} +else +{ +uint8_t x_41; +lean_dec(x_23); +lean_free_object(x_6); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +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; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; +x_45 = lean_ctor_get(x_6, 0); +x_46 = lean_ctor_get(x_6, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_6); +x_47 = l_Lean_Meta_Grind_getGeneration(x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +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_nat_dec_le(x_45, x_48); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_51 = l_Lean_Meta_mkCongrFun(x_46, x_18, x_11, x_12, x_13, x_14, x_49); +if (x_50 == 0) +{ +lean_dec(x_48); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; size_t x_55; size_t 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); +lean_dec(x_51); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_45); +lean_ctor_set(x_54, 1, x_52); +x_55 = 1; +x_56 = lean_usize_add(x_5, x_55); +x_5 = x_56; +x_6 = x_54; +x_15 = x_53; +goto _start; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_45); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_58 = lean_ctor_get(x_51, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_51, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_60 = x_51; +} else { + lean_dec_ref(x_51); + 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 +{ +lean_dec(x_45); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; size_t x_65; size_t x_66; +x_62 = lean_ctor_get(x_51, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_51, 1); +lean_inc(x_63); +lean_dec(x_51); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_48); +lean_ctor_set(x_64, 1, x_62); +x_65 = 1; +x_66 = lean_usize_add(x_5, x_65); +x_5 = x_66; +x_6 = x_64; +x_15 = x_63; +goto _start; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_48); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_68 = lean_ctor_get(x_51, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_51, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_70 = x_51; +} else { + lean_dec_ref(x_51); + x_70 = lean_box(0); +} +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); +} else { + x_71 = x_70; +} +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +return x_71; +} +} +} +} +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___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, 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 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_1, x_14); +x_16 = l_Lean_Meta_Grind_addNewFact(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_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +x_19 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1___closed__1; +lean_ctor_set(x_16, 0, x_19); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_dec(x_16); +x_21 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1___closed__1; +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; +} +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("beta", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__1; +x_2 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__2; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(", using ", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__6; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__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, 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_9); +lean_dec(x_3); +lean_dec(x_2); +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; lean_object* x_21; lean_object* x_22; lean_object* x_28; uint8_t x_29; +lean_dec(x_8); +x_20 = lean_array_uget(x_5, x_7); +lean_inc(x_3); +lean_inc(x_20); +x_28 = l_Lean_Expr_beta(x_20, x_3); +x_29 = l_Lean_Expr_isLambda(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_144; +x_30 = l_Lean_Meta_Grind_getGeneration(x_20, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +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 = l_Lean_Meta_Grind_getGeneration(x_2, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_32); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_37 = x_34; +} else { + lean_dec_ref(x_34); + x_37 = lean_box(0); +} +x_38 = lean_nat_dec_le(x_31, x_35); +lean_inc(x_2); +x_39 = l_Lean_mkAppN(x_2, x_3); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_20); +lean_inc(x_2); +x_144 = l_Lean_Meta_Grind_hasSameType(x_2, x_20, x_13, x_14, x_15, x_16, x_36); +if (x_38 == 0) +{ +lean_dec(x_35); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_145; lean_object* x_146; uint8_t x_147; +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_147 = lean_unbox(x_145); +lean_dec(x_145); +x_40 = x_31; +x_41 = x_147; +x_42 = x_146; +goto block_143; +} +else +{ +uint8_t x_148; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_20); +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); +x_148 = !lean_is_exclusive(x_144); +if (x_148 == 0) +{ +return x_144; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_ctor_get(x_144, 0); +x_150 = lean_ctor_get(x_144, 1); +lean_inc(x_150); +lean_inc(x_149); +lean_dec(x_144); +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); +return x_151; +} +} +} +else +{ +lean_dec(x_31); +if (lean_obj_tag(x_144) == 0) +{ +lean_object* x_152; lean_object* x_153; uint8_t x_154; +x_152 = lean_ctor_get(x_144, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_144, 1); +lean_inc(x_153); +lean_dec(x_144); +x_154 = lean_unbox(x_152); +lean_dec(x_152); +x_40 = x_35; +x_41 = x_154; +x_42 = x_153; +goto block_143; +} +else +{ +uint8_t x_155; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_35); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_20); +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); +x_155 = !lean_is_exclusive(x_144); +if (x_155 == 0) +{ +return x_144; +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_144, 0); +x_157 = lean_ctor_get(x_144, 1); +lean_inc(x_157); +lean_inc(x_156); +lean_dec(x_144); +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; +} +} +} +block_143: +{ +if (x_41 == 0) +{ +lean_object* x_43; +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_20); +x_43 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1___closed__1; +x_21 = x_43; +x_22 = x_42; +goto block_27; +} +else +{ +lean_object* x_44; +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_20); +lean_inc(x_2); +x_44 = lean_grind_mk_eq_proof(x_2, x_20, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_42); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; size_t x_48; size_t x_49; lean_object* x_50; +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_37)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_37; +} +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_45); +x_48 = lean_array_size(x_3); +x_49 = 0; +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_50 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__1(x_3, x_4, x_3, x_48, x_49, x_47, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_46); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; uint8_t x_53; +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_is_exclusive(x_51); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_51, 0); +x_55 = lean_ctor_get(x_51, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_56 = l_Lean_Meta_mkEq(x_39, x_28, x_13, x_14, x_15, x_16, x_52); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__3; +x_60 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_59, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_58); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_unbox(x_61); +lean_dec(x_61); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_free_object(x_51); +lean_dec(x_33); +lean_dec(x_20); +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +lean_dec(x_60); +x_64 = lean_box(0); +x_65 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1(x_54, x_55, x_57, x_64, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_63); +lean_dec(x_54); +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_21 = x_66; +x_22 = x_67; +goto block_27; +} +else +{ +uint8_t x_68; +x_68 = !lean_is_exclusive(x_60); +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; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_69 = lean_ctor_get(x_60, 1); +x_70 = lean_ctor_get(x_60, 0); +lean_dec(x_70); +lean_inc(x_57); +x_71 = l_Lean_MessageData_ofExpr(x_57); +x_72 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__5; +lean_ctor_set_tag(x_60, 7); +lean_ctor_set(x_60, 1, x_71); +lean_ctor_set(x_60, 0, x_72); +x_73 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__7; +lean_ctor_set_tag(x_51, 7); +lean_ctor_set(x_51, 1, x_73); +lean_ctor_set(x_51, 0, x_60); +x_74 = l_Lean_MessageData_ofExpr(x_20); +if (lean_is_scalar(x_33)) { + x_75 = lean_alloc_ctor(7, 2, 0); +} else { + x_75 = x_33; + lean_ctor_set_tag(x_75, 7); +} +lean_ctor_set(x_75, 0, x_51); +lean_ctor_set(x_75, 1, x_74); +x_76 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_72); +x_77 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_59, x_76, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_69); +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); +x_80 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1(x_54, x_55, x_57, x_78, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_79); +lean_dec(x_78); +lean_dec(x_54); +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_21 = x_81; +x_22 = x_82; +goto block_27; +} +else +{ +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_83 = lean_ctor_get(x_60, 1); +lean_inc(x_83); +lean_dec(x_60); +lean_inc(x_57); +x_84 = l_Lean_MessageData_ofExpr(x_57); +x_85 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__5; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_84); +x_87 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__7; +lean_ctor_set_tag(x_51, 7); +lean_ctor_set(x_51, 1, x_87); +lean_ctor_set(x_51, 0, x_86); +x_88 = l_Lean_MessageData_ofExpr(x_20); +if (lean_is_scalar(x_33)) { + x_89 = lean_alloc_ctor(7, 2, 0); +} else { + x_89 = x_33; + lean_ctor_set_tag(x_89, 7); +} +lean_ctor_set(x_89, 0, x_51); +lean_ctor_set(x_89, 1, x_88); +x_90 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_85); +x_91 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_59, x_90, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_83); +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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1(x_54, x_55, x_57, x_92, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_93); +lean_dec(x_92); +lean_dec(x_54); +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_21 = x_95; +x_22 = x_96; +goto block_27; +} +} +} +else +{ +uint8_t x_97; +lean_free_object(x_51); +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_33); +lean_dec(x_20); +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); +x_97 = !lean_is_exclusive(x_56); +if (x_97 == 0) +{ +return x_56; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_56, 0); +x_99 = lean_ctor_get(x_56, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_56); +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 +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_51, 0); +x_102 = lean_ctor_get(x_51, 1); +lean_inc(x_102); +lean_inc(x_101); +lean_dec(x_51); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_103 = l_Lean_Meta_mkEq(x_39, x_28, x_13, x_14, x_15, x_16, x_52); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; +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_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__3; +x_107 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_106, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_105); +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_unbox(x_108); +lean_dec(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_dec(x_33); +lean_dec(x_20); +x_110 = lean_ctor_get(x_107, 1); +lean_inc(x_110); +lean_dec(x_107); +x_111 = lean_box(0); +x_112 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1(x_101, x_102, x_104, x_111, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_110); +lean_dec(x_101); +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); +x_21 = x_113; +x_22 = x_114; +goto block_27; +} +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_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; +x_115 = lean_ctor_get(x_107, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_116 = x_107; +} else { + lean_dec_ref(x_107); + x_116 = lean_box(0); +} +lean_inc(x_104); +x_117 = l_Lean_MessageData_ofExpr(x_104); +x_118 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__5; +if (lean_is_scalar(x_116)) { + x_119 = lean_alloc_ctor(7, 2, 0); +} else { + x_119 = x_116; + lean_ctor_set_tag(x_119, 7); +} +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_117); +x_120 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__7; +x_121 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); +x_122 = l_Lean_MessageData_ofExpr(x_20); +if (lean_is_scalar(x_33)) { + x_123 = lean_alloc_ctor(7, 2, 0); +} else { + x_123 = x_33; + lean_ctor_set_tag(x_123, 7); +} +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +x_124 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_118); +x_125 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_106, x_124, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_115); +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 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1(x_101, x_102, x_104, x_126, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_127); +lean_dec(x_126); +lean_dec(x_101); +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); +x_21 = x_129; +x_22 = x_130; +goto block_27; +} +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_102); +lean_dec(x_101); +lean_dec(x_33); +lean_dec(x_20); +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); +x_131 = lean_ctor_get(x_103, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_103, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_133 = x_103; +} else { + lean_dec_ref(x_103); + x_133 = lean_box(0); +} +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(1, 2, 0); +} else { + x_134 = x_133; +} +lean_ctor_set(x_134, 0, x_131); +lean_ctor_set(x_134, 1, x_132); +return x_134; +} +} +} +else +{ +uint8_t x_135; +lean_dec(x_39); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_20); +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); +x_135 = !lean_is_exclusive(x_50); +if (x_135 == 0) +{ +return x_50; +} +else +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_50, 0); +x_137 = lean_ctor_get(x_50, 1); +lean_inc(x_137); +lean_inc(x_136); +lean_dec(x_50); +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 +{ +uint8_t x_139; +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_28); +lean_dec(x_20); +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); +x_139 = !lean_is_exclusive(x_44); +if (x_139 == 0) +{ +return x_44; +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_140 = lean_ctor_get(x_44, 0); +x_141 = lean_ctor_get(x_44, 1); +lean_inc(x_141); +lean_inc(x_140); +lean_dec(x_44); +x_142 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_142, 0, x_140); +lean_ctor_set(x_142, 1, x_141); +return x_142; +} +} +} +} +} +else +{ +lean_object* x_159; +lean_dec(x_28); +lean_dec(x_20); +x_159 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1___closed__1; +x_21 = x_159; +x_22 = x_17; +goto block_27; +} +block_27: +{ +lean_object* x_23; size_t x_24; size_t x_25; +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +lean_dec(x_21); +x_24 = 1; +x_25 = lean_usize_add(x_7, x_24); +x_7 = x_25; +x_8 = x_23; +x_17 = x_22; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBetaEqs___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; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_box(0); +x_15 = lean_array_size(x_1); +x_16 = 0; +x_17 = lean_box(0); +x_18 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2(x_1, x_2, x_3, x_14, x_1, x_15, x_16, x_17, x_5, x_6, x_7, x_8, 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) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_18, 0); +lean_dec(x_20); +lean_ctor_set(x_18, 0, x_17); +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_17); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBetaEqs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_Array_isEmpty___rarg(x_3); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Meta_Grind_propagateBetaEqs___lambda__1(x_1, x_2, x_3, x_14, 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; lean_object* 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_2); +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_12); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___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_4); +lean_dec(x_4); +x_17 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_18 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__1(x_1, x_2, x_3, x_16, x_17, 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_3); +lean_dec(x_2); +lean_dec(x_1); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___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, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___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, 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_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__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]; +_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_propagateBetaEqs___spec__2(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_5); +lean_dec(x_4); +lean_dec(x_1); +return x_20; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBetaEqs___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_propagateBetaEqs___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_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBetaEqs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_propagateBetaEqs(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_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_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) { +_start: +{ +if (lean_obj_tag(x_1) == 5) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_1, 0); +x_13 = l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_go(x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +else +{ +uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_14 = 0; +x_15 = lean_box(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_11); +return x_16; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_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) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = l_Lean_Meta_Grind_getRootENode_x3f(x_1, 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); +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_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_box(0); +x_15 = l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_go___lambda__1(x_1, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); +return x_15; +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_11, 0); +lean_dec(x_17); +x_18 = lean_ctor_get(x_12, 0); +lean_inc(x_18); +lean_dec(x_12); +x_19 = lean_ctor_get_uint8(x_18, sizeof(void*)*11 + 3); +lean_dec(x_18); +x_20 = lean_box(x_19); +lean_ctor_set(x_11, 0, x_20); +return x_11; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; +x_21 = lean_ctor_get(x_11, 1); +lean_inc(x_21); +lean_dec(x_11); +x_22 = lean_ctor_get(x_12, 0); +lean_inc(x_22); +lean_dec(x_12); +x_23 = lean_ctor_get_uint8(x_22, sizeof(void*)*11 + 3); +lean_dec(x_22); +x_24 = lean_box(x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_21); +return x_25; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_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) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_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); +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_12; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_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) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_go(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); +lean_dec(x_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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) == 5) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_1, 0); +x_12 = l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget_go(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +else +{ +uint8_t x_13; lean_object* x_14; lean_object* x_15; +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_10); +return x_15; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget(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); +lean_dec(x_1); +return x_11; +} +} +static lean_object* _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___spec__1___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_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___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: +{ +if (lean_obj_tag(x_3) == 5) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_3, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_3, 1); +lean_inc(x_15); +lean_dec(x_3); +x_16 = lean_array_push(x_2, 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_14); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_1); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(1, 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_13); +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_dec(x_1); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_2); +lean_ctor_set(x_21, 1, x_3); +x_22 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___spec__1___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); +x_24 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_13); +return x_25; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___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; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_2, 1); +lean_inc(x_12); +lean_dec(x_2); +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_Array_isEmpty___rarg(x_13); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = l_Lean_Meta_Grind_getRootENode_x3f(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_box(0); +lean_inc(x_1); +x_20 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___spec__1___lambda__1(x_1, x_13, x_14, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_18); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +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_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 0); +lean_dec(x_23); +x_24 = lean_ctor_get(x_21, 0); +lean_inc(x_24); +lean_dec(x_21); +lean_ctor_set(x_20, 0, x_24); +return x_20; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_dec(x_20); +x_26 = lean_ctor_get(x_21, 0); +lean_inc(x_26); +lean_dec(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_25); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_20, 1); +lean_inc(x_28); +lean_dec(x_20); +x_29 = lean_ctor_get(x_21, 0); +lean_inc(x_29); +lean_dec(x_21); +x_2 = x_29; +x_11 = x_28; +goto _start; +} +} +else +{ +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_17, 0); +lean_inc(x_31); +lean_dec(x_17); +x_32 = lean_ctor_get_uint8(x_31, sizeof(void*)*11 + 3); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_31); +x_33 = lean_ctor_get(x_16, 1); +lean_inc(x_33); +lean_dec(x_16); +x_34 = lean_box(0); +lean_inc(x_1); +x_35 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___spec__1___lambda__1(x_1, x_13, x_14, x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_33); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +if (lean_obj_tag(x_36) == 0) +{ +uint8_t 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_1); +x_37 = !lean_is_exclusive(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_35, 0); +lean_dec(x_38); +x_39 = lean_ctor_get(x_36, 0); +lean_inc(x_39); +lean_dec(x_36); +lean_ctor_set(x_35, 0, x_39); +return x_35; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_35, 1); +lean_inc(x_40); +lean_dec(x_35); +x_41 = lean_ctor_get(x_36, 0); +lean_inc(x_41); +lean_dec(x_36); +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 +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_35, 1); +lean_inc(x_43); +lean_dec(x_35); +x_44 = lean_ctor_get(x_36, 0); +lean_inc(x_44); +lean_dec(x_36); +x_2 = x_44; +x_11 = x_43; +goto _start; +} +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_16, 1); +lean_inc(x_46); +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); +x_47 = l_Lean_Meta_Grind_getEqcLambdas(x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_46); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* 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); +lean_inc(x_13); +x_50 = l_Array_reverse___rarg(x_13); +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_14); +x_51 = l_Lean_Meta_Grind_propagateBetaEqs(x_48, x_14, x_50, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_49); +lean_dec(x_48); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +lean_inc(x_1); +x_54 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___spec__1___lambda__1(x_1, x_13, x_14, 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); +if (lean_obj_tag(x_55) == 0) +{ +uint8_t x_56; +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_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_ctor_get(x_55, 0); +lean_inc(x_58); +lean_dec(x_55); +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_ctor_get(x_55, 0); +lean_inc(x_60); +lean_dec(x_55); +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; +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_2 = x_63; +x_11 = x_62; +goto _start; +} +} +else +{ +uint8_t x_65; +lean_dec(x_14); +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_1); +x_65 = !lean_is_exclusive(x_51); +if (x_65 == 0) +{ +return x_51; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_51, 0); +x_67 = lean_ctor_get(x_51, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_51); +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_14); +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_1); +x_69 = !lean_is_exclusive(x_47); +if (x_69 == 0) +{ +return x_47; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_47, 0); +x_71 = lean_ctor_get(x_47, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_47); +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; +x_73 = lean_box(0); +lean_inc(x_1); +x_74 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___spec__1___lambda__1(x_1, x_13, x_14, x_73, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +if (lean_obj_tag(x_75) == 0) +{ +uint8_t x_76; +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_76 = !lean_is_exclusive(x_74); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_74, 0); +lean_dec(x_77); +x_78 = lean_ctor_get(x_75, 0); +lean_inc(x_78); +lean_dec(x_75); +lean_ctor_set(x_74, 0, x_78); +return x_74; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_74, 1); +lean_inc(x_79); +lean_dec(x_74); +x_80 = lean_ctor_get(x_75, 0); +lean_inc(x_80); +lean_dec(x_75); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +} +else +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_74, 1); +lean_inc(x_82); +lean_dec(x_74); +x_83 = lean_ctor_get(x_75, 0); +lean_inc(x_83); +lean_dec(x_75); +x_2 = x_83; +x_11 = x_82; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBetaForNewApp___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; +x_12 = lean_box(0); +x_13 = l_Lean_Meta_Grind_getEqcLambdas___lambda__2___closed__1; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___spec__1(x_12, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +lean_dec(x_17); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_16, 0); +lean_dec(x_20); +x_21 = lean_box(0); +lean_ctor_set(x_16, 0, x_21); +return x_16; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_16, 1); +lean_inc(x_22); +lean_dec(x_16); +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_16); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_16, 0); +lean_dec(x_26); +x_27 = lean_ctor_get(x_18, 0); +lean_inc(x_27); +lean_dec(x_18); +lean_ctor_set(x_16, 0, x_27); +return x_16; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_16, 1); +lean_inc(x_28); +lean_dec(x_16); +x_29 = lean_ctor_get(x_18, 0); +lean_inc(x_29); +lean_dec(x_18); +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_16); +if (x_31 == 0) +{ +return x_16; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_16, 0); +x_33 = lean_ctor_get(x_16, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_16); +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_propagateBetaForNewApp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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 = l___private_Lean_Meta_Tactic_Grind_Beta_0__Lean_Meta_Grind_isPropagateBetaTarget(x_1, 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_13 = lean_unbox(x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +uint8_t 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); +lean_dec(x_1); +x_14 = !lean_is_exclusive(x_11); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_11, 0); +lean_dec(x_15); +x_16 = lean_box(0); +lean_ctor_set(x_11, 0, x_16); +return x_11; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_box(0); +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 +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_11, 1); +lean_inc(x_20); +lean_dec(x_11); +x_21 = lean_box(0); +x_22 = l_Lean_Meta_Grind_propagateBetaForNewApp___lambda__1(x_1, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +return x_22; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___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: +{ +lean_object* x_14; +x_14 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___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); +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_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBetaForNewApp___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_propagateBetaForNewApp___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; +} +} +lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Beta(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); +l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__1 = _init_l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__1); +l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__2 = _init_l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__2); +l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__3 = _init_l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__3); +l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__4 = _init_l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__4); +l_Lean_Meta_Grind_getEqcLambdas___lambda__2___closed__1 = _init_l_Lean_Meta_Grind_getEqcLambdas___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_getEqcLambdas___lambda__2___closed__1); +l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__1 = _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__1(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__1); +l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__2 = _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__2(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__2); +l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__3 = _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__3(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_getFnRoots___spec__3___closed__3); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___lambda__1___closed__1); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__1); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__2); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__3(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__3); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__4(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__4); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__5 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__5(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__5); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__6 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__6(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__6); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__7 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__7(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBetaEqs___spec__2___closed__7); +l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___spec__1___lambda__1___closed__1 = _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___spec__1___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBetaForNewApp___spec__1___lambda__1___closed__1); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Cases.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Cases.c index 381b145afbf4..a40722e03c53 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Cases.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Cases.c @@ -13,95 +13,220 @@ #ifdef __cplusplus extern "C" { #endif +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__4; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___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*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_contains___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__1; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__8___boxed(lean_object**); lean_object* l_Array_mapMUnsafe_map___at_Lean_LocalContext_getFVars___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___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*); +static lean_object* l_Lean_Meta_Grind_validateCasesAttr___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*); +static lean_object* l_Lean_Meta_Grind_validateCasesAttr___closed__7; lean_object* l_Lean_Meta_throwTacticEx___rarg(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*); +size_t lean_usize_shift_right(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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*); +static lean_object* l_Lean_Meta_Grind_validateCasesAttr___closed__4; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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*); +uint8_t lean_usize_dec_le(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_Grind_cases___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_uint64_to_usize(uint64_t); +static size_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2___closed__2; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_CasesTypes_find_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_instInhabitedCasesEntry___closed__1; +static lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___closed__6; lean_object* lean_array_push(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_CasesTypes_erase___spec__2(lean_object*, size_t, lean_object*); +size_t lean_usize_mul(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_find_x3f___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__6___boxed(lean_object**); static lean_object* l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_object* lean_array_fget(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_insert(lean_object*, lean_object*, uint8_t); +lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_casesOnSuffix; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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* l_Lean_MVarId_getTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseCasesAttr___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__3; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___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*); lean_object* l_Lean_Meta_RecursorInfo_numIndices(lean_object*); static lean_object* l_Lean_Meta_Grind_cases___lambda__13___closed__4; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__13___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_erase___boxed(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseCasesAttr(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__7___boxed(lean_object**); +static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2___closed__1; +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_CasesTypes_contains___spec__1(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2(lean_object*, size_t, size_t, lean_object*, uint8_t); +static lean_object* l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__1; 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_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_CasesTypes_erase___spec__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentHashMap_isUnaryNode___rarg(lean_object*); +static lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_CasesTypes_erase___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__11___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedCasesEntry; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_Lean_Meta_Grind_getCasesTypes(lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l_Lean_getConstInfo___at___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static size_t l_Lean_Meta_Grind_cases___lambda__13___closed__3; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__7; +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1___boxed(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_Lean_Meta_Grind_isCasesAttrCandidate(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__4___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_CasesTypes_contains___spec__1___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___closed__4; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__5; +static lean_object* l_Lean_Meta_Grind_validateCasesAttr___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_generalizeIndices_x27(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_CasesTypes_find_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___closed__3; lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__1___closed__4; 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_validateCasesAttr___closed__8; +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_eraseDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122_(lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___closed__9; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___lambda__13(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_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); +lean_object* l_Lean_ScopedEnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_insert___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedCasesTypes; +static uint64_t l_Lean_Meta_Grind_isCasesAttrCandidate___closed__2; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_casesExt; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_CasesTypes_insert___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__1; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__1___closed__2; +lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_PrettyPrinter_Delaborator_returnsPi___spec__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__10___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_find_x3f(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__1; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_CasesTypes_eraseDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__5___boxed(lean_object**); +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_CasesTypes_contains(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___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_EXPORT lean_object* l_Lean_Meta_Grind_eraseCasesAttr___lambda__1(lean_object*, lean_object*); +static size_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_CasesTypes_find_x3f___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_validateCasesAttr___closed__6; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_eraseIdx___rarg(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_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___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*); +static lean_object* l_Lean_Meta_Grind_validateCasesAttr___closed__2; +lean_object* lean_usize_to_nat(size_t); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addCasesAttr(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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* l_Lean_MessageData_ofExpr(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addCasesAttr___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_CasesTypes_insert___spec__1(lean_object*, lean_object*, uint8_t); +static lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___closed__5; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_cases___lambda__12___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_EXPORT lean_object* l_Lean_Meta_Grind_validateCasesAttr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___closed__1; lean_object* l_Lean_Meta_mkRecursorAppPrefix(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_cases___lambda__13___closed__1; lean_object* l_Lean_Meta_mkRecursorInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__9___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_RecursorInfo_numMinors(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_CasesTypes_find_x3f___spec__2(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_id___rarg___boxed(lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__6; lean_object* l_Lean_indentExpr(lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__8; +static lean_object* l_Lean_Meta_Grind_validateCasesAttr___closed__1; +lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__1___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getCasesTypes___rarg___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getCasesTypes___boxed(lean_object*); static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__4(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppFn_x27(lean_object*); +uint64_t l_Lean_Name_hash___override(lean_object*); +static lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___closed__10; +lean_object* l_Lean_ScopedEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getCasesTypes___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_validateCasesAttr(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_indexOfAux___at_Lean_MetavarContext_setMVarUserName___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ScopedEnvExtension_addCore___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +static lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___closed__11; +lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__3; +lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_x3f___closed__1; +size_t lean_usize_sub(size_t, size_t); lean_object* lean_array_mk(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_eraseDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_CasesTypes_find_x3f___spec__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_tryClearMany(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_cases___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*); static lean_object* l_Lean_Meta_Grind_cases___lambda__13___closed__2; +size_t lean_usize_add(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseCasesAttr___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_fvar___override(lean_object*); size_t lean_array_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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*); +static lean_object* l_Lean_Meta_Grind_getCasesTypes___rarg___closed__1; +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +size_t lean_usize_shift_left(size_t, size_t); +lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___closed__8; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_CasesTypes_find_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_CasesTypes_erase___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases_throwInductiveExpected___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_cases___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_cases___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* lean_array_get_size(lean_object*); static lean_object* l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -111,15 +236,2820 @@ lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_ob LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__2___boxed(lean_object**); static lean_object* l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__5; lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__2; +lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__12___boxed(lean_object**); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__2; +lean_object* l_Lean_throwError___at___private_Lean_ReducibilityAttrs_0__Lean_validate___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__7; static lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__1___closed__3; +static lean_object* l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__4; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases_throwInductiveExpected(lean_object*, lean_object*, 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_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_cases___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* l_Lean_MessageData_ofName(lean_object*); +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_CasesTypes_insert___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1___closed__1; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__3___boxed(lean_object**); +size_t lean_usize_land(size_t, size_t); +static lean_object* l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__2; LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___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*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_CasesTypes_eraseDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___closed__12; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_erase(lean_object*, lean_object*); +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_instInhabitedCasesTypes___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_instInhabitedCasesTypes() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__2; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instInhabitedCasesEntry___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = 0; +x_3 = lean_alloc_ctor(0, 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_Meta_Grind_instInhabitedCasesEntry() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_instInhabitedCasesEntry___closed__1; +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_CasesTypes_contains___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; +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 = 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 +{ +uint8_t x_14; +lean_dec(x_4); +x_14 = 1; +return x_14; +} +} +} +} +static size_t _init_l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2___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_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2___closed__2() { +_start: +{ +size_t x_1; size_t x_2; size_t x_3; +x_1 = 1; +x_2 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2___closed__1; +x_3 = lean_usize_sub(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___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); +lean_dec(x_1); +x_5 = 5; +x_6 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___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 = lean_name_eq(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_Lean_Meta_Grind_CasesTypes_contains___spec__3(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_Lean_Meta_Grind_CasesTypes_contains___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 = l_Lean_Name_hash___override(x_2); +x_4 = lean_uint64_to_usize(x_3); +x_5 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2(x_1, x_4, x_2); +return x_5; +} +} +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_CasesTypes_contains(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_CasesTypes_contains___spec__1(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__3___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_CasesTypes_contains___spec__3(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_CasesTypes_contains___spec__2___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_CasesTypes_contains___spec__2(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_CasesTypes_contains___spec__1___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_CasesTypes_contains___spec__1(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_CasesTypes_contains___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Meta_Grind_CasesTypes_contains(x_1, x_2); +lean_dec(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_CasesTypes_erase___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_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___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_Lean_Meta_Grind_CasesTypes_erase___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_Lean_Meta_Grind_CasesTypes_erase___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_Lean_Meta_Grind_CasesTypes_erase___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_Lean_Meta_Grind_CasesTypes_erase___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_Lean_Meta_Grind_CasesTypes_erase___spec__2(x_1, x_4, x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_erase(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_CasesTypes_erase___spec__1(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_CasesTypes_erase___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_Lean_Meta_Grind_CasesTypes_erase___spec__2(x_1, x_4, x_3); +lean_dec(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_CasesTypes_erase___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_CasesTypes_erase___spec__1(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_erase___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Grind_CasesTypes_erase(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_CasesTypes_insert___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: +{ +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; uint8_t 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; +x_9 = lean_array_fget(x_2, x_5); +x_10 = lean_array_fget(x_3, x_5); +x_11 = lean_unbox(x_10); +lean_dec(x_10); +x_12 = l_Lean_Name_hash___override(x_9); +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); +lean_dec(x_5); +x_21 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2(x_6, x_18, x_1, x_9, x_11); +x_4 = lean_box(0); +x_5 = x_20; +x_6 = x_21; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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; lean_object* x_14; +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_box(x_4); +x_14 = lean_array_push(x_6, x_13); +lean_ctor_set(x_1, 1, x_14); +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_dec(x_1); +x_15 = lean_array_push(x_5, x_3); +x_16 = lean_box(x_4); +x_17 = lean_array_push(x_6, x_16); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +else +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_array_fget(x_5, x_2); +x_20 = lean_name_eq(x_3, x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +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 +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_1); +if (x_24 == 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_1, 1); +lean_dec(x_25); +x_26 = lean_ctor_get(x_1, 0); +lean_dec(x_26); +x_27 = lean_array_fset(x_5, x_2, x_3); +x_28 = lean_box(x_4); +x_29 = lean_array_fset(x_6, x_2, x_28); +lean_dec(x_2); +lean_ctor_set(x_1, 1, x_29); +lean_ctor_set(x_1, 0, x_27); +return x_1; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_1); +x_30 = lean_array_fset(x_5, x_2, x_3); +x_31 = lean_box(x_4); +x_32 = lean_array_fset(x_6, x_2, x_31); +lean_dec(x_2); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +} +} +} +static lean_object* _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2___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_CasesTypes_insert___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, uint8_t 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_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___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_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_object* x_25; +lean_free_object(x_15); +x_22 = lean_box(x_5); +x_23 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_22); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_array_fset(x_17, x_12, x_24); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_25); +return x_1; +} +else +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_20); +lean_dec(x_19); +x_26 = lean_box(x_5); +lean_ctor_set(x_15, 1, x_26); +lean_ctor_set(x_15, 0, x_4); +x_27 = lean_array_fset(x_17, x_12, x_15); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_27); +return x_1; +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_28 = lean_ctor_get(x_15, 0); +x_29 = lean_ctor_get(x_15, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_15); +x_30 = lean_name_eq(x_4, x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_box(x_5); +x_32 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_28, x_29, x_4, x_31); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = lean_array_fset(x_17, x_12, x_33); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_34); +return x_1; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_29); +lean_dec(x_28); +x_35 = lean_box(x_5); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_4); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_array_fset(x_17, x_12, x_36); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_37); +return x_1; +} +} +} +case 1: +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_15); +if (x_38 == 0) +{ +lean_object* x_39; size_t x_40; size_t x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_15, 0); +x_40 = lean_usize_shift_right(x_2, x_9); +x_41 = lean_usize_add(x_3, x_8); +x_42 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2(x_39, x_40, x_41, x_4, x_5); +lean_ctor_set(x_15, 0, x_42); +x_43 = lean_array_fset(x_17, x_12, x_15); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_43); +return x_1; +} +else +{ +lean_object* x_44; size_t x_45; size_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_44 = lean_ctor_get(x_15, 0); +lean_inc(x_44); +lean_dec(x_15); +x_45 = lean_usize_shift_right(x_2, x_9); +x_46 = lean_usize_add(x_3, x_8); +x_47 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2(x_44, x_45, x_46, x_4, x_5); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_47); +x_49 = lean_array_fset(x_17, x_12, x_48); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_49); +return x_1; +} +} +default: +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_box(x_5); +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 = lean_array_fset(x_17, x_12, x_51); +lean_dec(x_12); +lean_ctor_set(x_1, 0, x_52); +return x_1; +} +} +} +} +else +{ +lean_object* 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; uint8_t x_60; +x_53 = lean_ctor_get(x_1, 0); +lean_inc(x_53); +lean_dec(x_1); +x_54 = 1; +x_55 = 5; +x_56 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2___closed__2; +x_57 = lean_usize_land(x_2, x_56); +x_58 = lean_usize_to_nat(x_57); +x_59 = lean_array_get_size(x_53); +x_60 = lean_nat_dec_lt(x_58, x_59); +lean_dec(x_59); +if (x_60 == 0) +{ +lean_object* x_61; +lean_dec(x_58); +lean_dec(x_4); +x_61 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_61, 0, x_53); +return x_61; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_array_fget(x_53, x_58); +x_63 = lean_box(0); +x_64 = lean_array_fset(x_53, x_58, x_63); +switch (lean_obj_tag(x_62)) { +case 0: +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_65 = lean_ctor_get(x_62, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_62, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_67 = x_62; +} else { + lean_dec_ref(x_62); + x_67 = lean_box(0); +} +x_68 = lean_name_eq(x_4, x_65); +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_dec(x_67); +x_69 = lean_box(x_5); +x_70 = l_Lean_PersistentHashMap_mkCollisionNode___rarg(x_65, x_66, x_4, x_69); +x_71 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_71, 0, x_70); +x_72 = lean_array_fset(x_64, x_58, x_71); +lean_dec(x_58); +x_73 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_73, 0, x_72); +return x_73; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_66); +lean_dec(x_65); +x_74 = lean_box(x_5); +if (lean_is_scalar(x_67)) { + x_75 = lean_alloc_ctor(0, 2, 0); +} else { + x_75 = x_67; +} +lean_ctor_set(x_75, 0, x_4); +lean_ctor_set(x_75, 1, x_74); +x_76 = lean_array_fset(x_64, x_58, x_75); +lean_dec(x_58); +x_77 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_77, 0, x_76); +return x_77; +} +} +case 1: +{ +lean_object* x_78; lean_object* x_79; size_t x_80; size_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_78 = lean_ctor_get(x_62, 0); +lean_inc(x_78); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + x_79 = x_62; +} else { + lean_dec_ref(x_62); + x_79 = lean_box(0); +} +x_80 = lean_usize_shift_right(x_2, x_55); +x_81 = lean_usize_add(x_3, x_54); +x_82 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2(x_78, x_80, x_81, x_4, x_5); +if (lean_is_scalar(x_79)) { + x_83 = lean_alloc_ctor(1, 1, 0); +} else { + x_83 = x_79; +} +lean_ctor_set(x_83, 0, x_82); +x_84 = lean_array_fset(x_64, x_58, x_83); +lean_dec(x_58); +x_85 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_85, 0, x_84); +return x_85; +} +default: +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_86 = lean_box(x_5); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_4); +lean_ctor_set(x_87, 1, x_86); +x_88 = lean_array_fset(x_64, x_58, x_87); +lean_dec(x_58); +x_89 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_89, 0, x_88); +return x_89; +} +} +} +} +} +else +{ +uint8_t x_90; +x_90 = !lean_is_exclusive(x_1); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; size_t x_93; uint8_t x_94; +x_91 = lean_unsigned_to_nat(0u); +x_92 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__4(x_1, x_91, x_4, x_5); +x_93 = 7; +x_94 = lean_usize_dec_le(x_93, x_3); +if (x_94 == 0) +{ +lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_95 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_92); +x_96 = lean_unsigned_to_nat(4u); +x_97 = lean_nat_dec_lt(x_95, x_96); +lean_dec(x_95); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_98 = lean_ctor_get(x_92, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_92, 1); +lean_inc(x_99); +lean_dec(x_92); +x_100 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2___closed__1; +x_101 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_CasesTypes_insert___spec__3(x_3, x_98, x_99, lean_box(0), x_91, x_100); +lean_dec(x_99); +lean_dec(x_98); +return x_101; +} +else +{ +return x_92; +} +} +else +{ +return x_92; +} +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; size_t x_107; uint8_t x_108; +x_102 = lean_ctor_get(x_1, 0); +x_103 = lean_ctor_get(x_1, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_1); +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_105 = lean_unsigned_to_nat(0u); +x_106 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__4(x_104, x_105, x_4, x_5); +x_107 = 7; +x_108 = lean_usize_dec_le(x_107, x_3); +if (x_108 == 0) +{ +lean_object* x_109; lean_object* x_110; uint8_t x_111; +x_109 = l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(x_106); +x_110 = lean_unsigned_to_nat(4u); +x_111 = lean_nat_dec_lt(x_109, x_110); +lean_dec(x_109); +if (x_111 == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_112 = lean_ctor_get(x_106, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_106, 1); +lean_inc(x_113); +lean_dec(x_106); +x_114 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2___closed__1; +x_115 = l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_CasesTypes_insert___spec__3(x_3, x_112, x_113, lean_box(0), x_105, x_114); +lean_dec(x_113); +lean_dec(x_112); +return x_115; +} +else +{ +return x_106; +} +} +else +{ +return x_106; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1(lean_object* x_1, lean_object* x_2, uint8_t 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_CasesTypes_insert___spec__2(x_1, x_5, x_6, x_2, x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_insert(lean_object* x_1, lean_object* x_2, uint8_t x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_CasesTypes_insert___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; 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_CasesTypes_insert___spec__3(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_CasesTypes_insert___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_4); +lean_dec(x_4); +x_6 = l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__4(x_1, x_2, x_3, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___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_2); +lean_dec(x_2); +x_7 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_8 = lean_unbox(x_5); +lean_dec(x_5); +x_9 = l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2(x_1, x_6, x_7, x_4, x_8); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__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 = lean_unbox(x_3); +lean_dec(x_3); +x_5 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1(x_1, x_2, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_insert___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_3); +lean_dec(x_3); +x_5 = l_Lean_Meta_Grind_CasesTypes_insert(x_1, x_2, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_CasesTypes_find_x3f___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; +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; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_array_fget(x_2, x_4); +lean_dec(x_4); +x_15 = lean_unbox(x_14); +lean_dec(x_14); +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +return x_17; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_CasesTypes_find_x3f___spec__2(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_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___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 = 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_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___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 = 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_CasesTypes_find_x3f___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_Lean_Meta_Grind_CasesTypes_find_x3f___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_findAux___at_Lean_Meta_Grind_CasesTypes_find_x3f___spec__2(x_1, x_4, x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_find_x3f(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_CasesTypes_find_x3f___spec__1(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_CasesTypes_find_x3f___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_CasesTypes_find_x3f___spec__3(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_CasesTypes_find_x3f___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_findAux___at_Lean_Meta_Grind_CasesTypes_find_x3f___spec__2(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_CasesTypes_find_x3f___spec__1___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_CasesTypes_find_x3f___spec__1(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_find_x3f___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Grind_CasesTypes_find_x3f(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +lean_dec(x_2); +x_5 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_CasesTypes_insert___spec__1(x_1, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____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_Cases___hyg_122____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_Cases___hyg_122____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_Cases___hyg_122____closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("casesExt", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____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_Cases___hyg_122____closed__1; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__2; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__3; +x_4 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____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_Cases___hyg_122____closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____lambda__1), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__7() { +_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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__5; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__6; +x_3 = l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__2; +x_4 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__7; +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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__8; +x_3 = l_Lean_registerSimpleScopedEnvExtension___rarg(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_getCasesTypes___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_casesExt; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getCasesTypes___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_Lean_Meta_Grind_instInhabitedCasesTypes; +x_8 = l_Lean_Meta_Grind_getCasesTypes___rarg___closed__1; +x_9 = l_Lean_ScopedEnvExtension_getState___rarg(x_7, x_8, 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_Lean_Meta_Grind_instInhabitedCasesTypes; +x_14 = l_Lean_Meta_Grind_getCasesTypes___rarg___closed__1; +x_15 = l_Lean_ScopedEnvExtension_getState___rarg(x_13, x_14, 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_getCasesTypes(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_getCasesTypes___rarg___boxed), 2, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getCasesTypes___rarg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Grind_getCasesTypes___rarg(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getCasesTypes___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_getCasesTypes(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Expr_getAppFn_x27(x_2); +if (lean_obj_tag(x_8) == 4) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, 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_7); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_8); +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_7); +return x_13; +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_x3f___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_x3f___lambda__1___boxed), 7, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_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) { +_start: +{ +lean_object* x_7; uint8_t x_8; lean_object* x_9; +x_7 = l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_x3f___closed__1; +x_8 = 0; +x_9 = l_Lean_Meta_lambdaTelescope___at_Lean_PrettyPrinter_Delaborator_returnsPi___spec__1___rarg(x_1, x_7, x_8, x_2, x_3, x_4, x_5, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_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) { +_start: +{ +lean_object* x_8; +x_8 = l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_x3f___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); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +static lean_object* _init_l_Lean_Meta_Grind_isCasesAttrCandidate___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_Grind_isCasesAttrCandidate___closed__2() { +_start: +{ +lean_object* x_1; uint64_t x_2; +x_1 = l_Lean_Meta_Grind_isCasesAttrCandidate___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_Grind_isCasesAttrCandidate___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_Grind_isCasesAttrCandidate___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_isCasesAttrCandidate___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_Grind_isCasesAttrCandidate___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_Grind_isCasesAttrCandidate___closed__4; +x_3 = l_Lean_Meta_Grind_isCasesAttrCandidate___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_Grind_isCasesAttrCandidate___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__2; +x_2 = l_Lean_Meta_Grind_isCasesAttrCandidate___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_Grind_isCasesAttrCandidate___closed__7() { +_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_isCasesAttrCandidate___closed__8() { +_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_Grind_isCasesAttrCandidate___closed__1; +x_4 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__2; +x_5 = 0; +x_6 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__6; +x_7 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; +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_Grind_isCasesAttrCandidate___closed__9() { +_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_instInhabitedCasesTypes___closed__2; +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_Grind_isCasesAttrCandidate___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_instInhabitedCasesTypes___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; +} +} +static lean_object* _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__2; +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_Grind_isCasesAttrCandidate___closed__12() { +_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_isCasesAttrCandidate___closed__9; +x_3 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__10; +x_4 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__5; +x_5 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__11; +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; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_getConstInfo___at___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_isValidMacroInline___spec__1(x_1, x_3, x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +switch (lean_obj_tag(x_7)) { +case 1: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +x_11 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__12; +x_12 = lean_st_mk_ref(x_11, x_8); +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___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_x3f___closed__1; +x_16 = 0; +x_17 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__8; +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_13); +x_18 = l_Lean_Meta_lambdaTelescope___at_Lean_PrettyPrinter_Delaborator_returnsPi___spec__1___rarg(x_10, x_15, x_16, x_17, x_13, x_3, x_4, x_14); +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); +x_21 = lean_st_ref_get(x_13, x_20); +lean_dec(x_13); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_22; +lean_dec(x_4); +lean_dec(x_3); +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(x_16); +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(x_16); +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; +x_28 = lean_ctor_get(x_21, 1); +lean_inc(x_28); +lean_dec(x_21); +x_29 = lean_ctor_get(x_19, 0); +lean_inc(x_29); +lean_dec(x_19); +x_1 = x_29; +x_5 = x_28; +goto _start; +} +} +else +{ +uint8_t x_31; +lean_dec(x_13); +lean_dec(x_4); +lean_dec(x_3); +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; +} +} +} +case 5: +{ +lean_object* x_35; uint8_t x_36; +lean_dec(x_4); +lean_dec(x_3); +x_35 = lean_ctor_get(x_7, 0); +lean_inc(x_35); +lean_dec(x_7); +x_36 = lean_ctor_get_uint8(x_35, sizeof(void*)*6); +lean_dec(x_35); +if (x_36 == 0) +{ +uint8_t x_37; +x_37 = !lean_is_exclusive(x_6); +if (x_37 == 0) +{ +lean_object* x_38; uint8_t x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_6, 0); +lean_dec(x_38); +x_39 = 1; +x_40 = lean_box(x_39); +lean_ctor_set(x_6, 0, x_40); +return x_6; +} +else +{ +lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_6, 1); +lean_inc(x_41); +lean_dec(x_6); +x_42 = 1; +x_43 = lean_box(x_42); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_41); +return x_44; +} +} +else +{ +if (x_2 == 0) +{ +uint8_t x_45; +x_45 = !lean_is_exclusive(x_6); +if (x_45 == 0) +{ +lean_object* x_46; uint8_t x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_6, 0); +lean_dec(x_46); +x_47 = 1; +x_48 = lean_box(x_47); +lean_ctor_set(x_6, 0, x_48); +return x_6; +} +else +{ +lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_6, 1); +lean_inc(x_49); +lean_dec(x_6); +x_50 = 1; +x_51 = lean_box(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_49); +return x_52; +} +} +else +{ +uint8_t x_53; +x_53 = !lean_is_exclusive(x_6); +if (x_53 == 0) +{ +lean_object* x_54; uint8_t x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_6, 0); +lean_dec(x_54); +x_55 = 0; +x_56 = lean_box(x_55); +lean_ctor_set(x_6, 0, x_56); +return x_6; +} +else +{ +lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; +x_57 = lean_ctor_get(x_6, 1); +lean_inc(x_57); +lean_dec(x_6); +x_58 = 0; +x_59 = lean_box(x_58); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_57); +return x_60; +} +} +} +} +default: +{ +uint8_t x_61; +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +x_61 = !lean_is_exclusive(x_6); +if (x_61 == 0) +{ +lean_object* x_62; uint8_t x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_6, 0); +lean_dec(x_62); +x_63 = 0; +x_64 = lean_box(x_63); +lean_ctor_set(x_6, 0, x_64); +return x_6; +} +else +{ +lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; +x_65 = lean_ctor_get(x_6, 1); +lean_inc(x_65); +lean_dec(x_6); +x_66 = 0; +x_67 = lean_box(x_66); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_65); +return x_68; +} +} +} +} +else +{ +uint8_t x_69; +lean_dec(x_4); +lean_dec(x_3); +x_69 = !lean_is_exclusive(x_6); +if (x_69 == 0) +{ +return x_6; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_6, 0); +x_71 = lean_ctor_get(x_6, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_6); +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_EXPORT lean_object* l_Lean_Meta_Grind_isCasesAttrCandidate___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_2); +lean_dec(x_2); +x_7 = l_Lean_Meta_Grind_isCasesAttrCandidate(x_1, x_6, x_3, x_4, x_5); +return x_7; +} +} +static lean_object* _init_l_Lean_Meta_Grind_validateCasesAttr___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid `[grind cases]`, `", 26, 26); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_validateCasesAttr___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_validateCasesAttr___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_validateCasesAttr___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("` is not an inductive datatype or an alias for one", 50, 50); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_validateCasesAttr___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_validateCasesAttr___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_validateCasesAttr___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid `[grind cases eager]`, `", 32, 32); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_validateCasesAttr___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_validateCasesAttr___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_validateCasesAttr___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("` is not a non-recursive inductive datatype or an alias for one", 63, 63); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_validateCasesAttr___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_validateCasesAttr___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_validateCasesAttr(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_6 = l_Lean_Meta_Grind_isCasesAttrCandidate(x_1, x_2, x_3, x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_unbox(x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +if (x_2 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +lean_dec(x_6); +x_10 = l_Lean_MessageData_ofName(x_1); +x_11 = l_Lean_Meta_Grind_validateCasesAttr___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_Grind_validateCasesAttr___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_throwError___at___private_Lean_ReducibilityAttrs_0__Lean_validate___spec__3(x_14, x_3, x_4, x_9); +lean_dec(x_4); +lean_dec(x_3); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_16 = lean_ctor_get(x_6, 1); +lean_inc(x_16); +lean_dec(x_6); +x_17 = l_Lean_MessageData_ofName(x_1); +x_18 = l_Lean_Meta_Grind_validateCasesAttr___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_Lean_Meta_Grind_validateCasesAttr___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 = l_Lean_throwError___at___private_Lean_ReducibilityAttrs_0__Lean_validate___spec__3(x_21, x_3, x_4, x_16); +lean_dec(x_4); +lean_dec(x_3); +return x_22; +} +} +else +{ +uint8_t x_23; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_23 = !lean_is_exclusive(x_6); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_6, 0); +lean_dec(x_24); +x_25 = lean_box(0); +lean_ctor_set(x_6, 0, x_25); +return x_6; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_6, 1); +lean_inc(x_26); +lean_dec(x_6); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +return x_28; +} +} +} +else +{ +uint8_t x_29; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_29 = !lean_is_exclusive(x_6); +if (x_29 == 0) +{ +return x_6; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_6, 0); +x_31 = lean_ctor_get(x_6, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_6); +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_validateCasesAttr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_2); +lean_dec(x_2); +x_7 = l_Lean_Meta_Grind_validateCasesAttr(x_1, x_6, x_3, x_4, x_5); +return x_7; +} +} +static lean_object* _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_instInhabitedCasesTypes___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; +} +} +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_ctor_get(x_4, 6); +lean_inc(x_7); +lean_dec(x_4); +x_8 = lean_st_ref_take(x_5, x_6); +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_is_exclusive(x_9); +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_9, 0); +x_13 = lean_ctor_get(x_9, 4); +lean_dec(x_13); +x_14 = l_Lean_ScopedEnvExtension_addCore___rarg(x_12, x_1, x_2, x_3, x_7); +x_15 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1___closed__1; +lean_ctor_set(x_9, 4, x_15); +lean_ctor_set(x_9, 0, x_14); +x_16 = lean_st_ref_set(x_5, x_9, x_10); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +x_19 = lean_box(0); +lean_ctor_set(x_16, 0, x_19); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_dec(x_16); +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; 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_9, 0); +x_24 = lean_ctor_get(x_9, 1); +x_25 = lean_ctor_get(x_9, 2); +x_26 = lean_ctor_get(x_9, 3); +x_27 = lean_ctor_get(x_9, 5); +x_28 = lean_ctor_get(x_9, 6); +x_29 = lean_ctor_get(x_9, 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_9); +x_30 = l_Lean_ScopedEnvExtension_addCore___rarg(x_23, x_1, x_2, x_3, x_7); +x_31 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1___closed__1; +x_32 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_32, 0, x_30); +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_31); +lean_ctor_set(x_32, 5, x_27); +lean_ctor_set(x_32, 6, x_28); +lean_ctor_set(x_32, 7, x_29); +x_33 = lean_st_ref_set(x_5, x_32, x_10); +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; +} else { + lean_dec_ref(x_33); + x_35 = lean_box(0); +} +x_36 = lean_box(0); +if (lean_is_scalar(x_35)) { + x_37 = lean_alloc_ctor(0, 2, 0); +} else { + x_37 = x_35; +} +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_34); +return x_37; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addCasesAttr(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_7 = l_Lean_Meta_Grind_validateCasesAttr(x_1, x_2, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_9, 0, x_1); +lean_ctor_set_uint8(x_9, sizeof(void*)*1, x_2); +x_10 = l_Lean_Meta_Grind_getCasesTypes___rarg___closed__1; +x_11 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1(x_10, x_9, x_3, x_4, x_5, x_8); +lean_dec(x_5); +return x_11; +} +else +{ +uint8_t x_12; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_12 = !lean_is_exclusive(x_7); +if (x_12 == 0) +{ +return x_7; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_7, 0); +x_14 = lean_ctor_get(x_7, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_7); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_3); +lean_dec(x_3); +x_8 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1(x_1, x_2, x_7, x_4, x_5, x_6); +lean_dec(x_5); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addCasesAttr___boxed(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; uint8_t x_8; lean_object* x_9; +x_7 = lean_unbox(x_2); +lean_dec(x_2); +x_8 = lean_unbox(x_3); +lean_dec(x_3); +x_9 = l_Lean_Meta_Grind_addCasesAttr(x_1, x_7, x_8, x_4, x_5, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_CasesTypes_eraseDecl___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_2, 5); +x_6 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_1, x_2, x_3, x_4); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_5); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_5); +lean_ctor_set(x_9, 1, x_8); +lean_ctor_set_tag(x_6, 1); +lean_ctor_set(x_6, 0, x_9); +return x_6; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_6, 0); +x_11 = lean_ctor_get(x_6, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_6); +lean_inc(x_5); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_10); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_CasesTypes_eraseDecl___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_CasesTypes_eraseDecl___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("` is not marked with the `[grind]` attribute", 44, 44); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_CasesTypes_eraseDecl(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_inc(x_1); +x_6 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_CasesTypes_contains___spec__1(x_1, x_2); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_1); +x_7 = l_Lean_MessageData_ofName(x_2); +x_8 = l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__2; +x_9 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +x_10 = l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__4; +x_11 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +x_12 = l_Lean_throwError___at_Lean_Meta_Grind_CasesTypes_eraseDecl___spec__1(x_11, x_3, x_4, x_5); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_CasesTypes_erase___spec__1(x_1, x_2); +lean_dec(x_2); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_5); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_CasesTypes_eraseDecl___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_throwError___at_Lean_Meta_Grind_CasesTypes_eraseDecl___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_Lean_Meta_Grind_CasesTypes_eraseDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_Meta_Grind_CasesTypes_eraseDecl(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseCasesAttr___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_inc(x_1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseCasesAttr(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_5 = lean_st_ref_get(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_Meta_Grind_instInhabitedCasesTypes; +x_10 = l_Lean_Meta_Grind_getCasesTypes___rarg___closed__1; +x_11 = l_Lean_ScopedEnvExtension_getState___rarg(x_9, x_10, x_8); +x_12 = l_Lean_Meta_Grind_CasesTypes_eraseDecl(x_11, x_1, x_2, x_3, x_7); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_st_ref_take(x_3, 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; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_16, 4); +lean_dec(x_20); +x_21 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_eraseCasesAttr___lambda__1___boxed), 2, 1); +lean_closure_set(x_21, 0, x_13); +x_22 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_10, x_19, x_21); +x_23 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1___closed__1; +lean_ctor_set(x_16, 4, x_23); +lean_ctor_set(x_16, 0, x_22); +x_24 = lean_st_ref_set(x_3, x_16, x_17); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +x_27 = lean_box(0); +lean_ctor_set(x_24, 0, x_27); +return x_24; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_24, 1); +lean_inc(x_28); +lean_dec(x_24); +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 +{ +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; +x_31 = lean_ctor_get(x_16, 0); +x_32 = lean_ctor_get(x_16, 1); +x_33 = lean_ctor_get(x_16, 2); +x_34 = lean_ctor_get(x_16, 3); +x_35 = lean_ctor_get(x_16, 5); +x_36 = lean_ctor_get(x_16, 6); +x_37 = lean_ctor_get(x_16, 7); +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_31); +lean_dec(x_16); +x_38 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_eraseCasesAttr___lambda__1___boxed), 2, 1); +lean_closure_set(x_38, 0, x_13); +x_39 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_10, x_31, x_38); +x_40 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1___closed__1; +x_41 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_32); +lean_ctor_set(x_41, 2, x_33); +lean_ctor_set(x_41, 3, x_34); +lean_ctor_set(x_41, 4, x_40); +lean_ctor_set(x_41, 5, x_35); +lean_ctor_set(x_41, 6, x_36); +lean_ctor_set(x_41, 7, x_37); +x_42 = lean_st_ref_set(x_3, x_41, x_17); +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 = lean_box(0); +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; +} +} +else +{ +uint8_t x_47; +x_47 = !lean_is_exclusive(x_12); +if (x_47 == 0) +{ +return x_12; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_12, 0); +x_49 = lean_ctor_get(x_12, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_12); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseCasesAttr___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Grind_eraseCasesAttr___lambda__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseCasesAttr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Meta_Grind_eraseCasesAttr(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} static lean_object* _init_l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__1() { _start: { @@ -9211,15 +12141,6 @@ return x_54; } } } -static lean_object* _init_l_Lean_Meta_Grind_cases___lambda__12___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_cases___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) { _start: { @@ -9270,7 +12191,7 @@ lean_ctor_set(x_25, 2, x_24); x_26 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_26, 0, x_18); lean_ctor_set(x_26, 1, x_20); -x_27 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_27 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; x_28 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_28, 0, x_27); lean_ctor_set(x_28, 1, x_26); @@ -9451,7 +12372,7 @@ static size_t _init_l_Lean_Meta_Grind_cases___lambda__13___closed__3() { _start: { lean_object* x_1; size_t x_2; -x_1 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_1 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; x_2 = lean_array_size(x_1); return x_2; } @@ -9462,7 +12383,7 @@ static lean_object* _init_l_Lean_Meta_Grind_cases___lambda__13___closed__4() { size_t x_1; size_t x_2; lean_object* x_3; lean_object* x_4; x_1 = 0; x_2 = l_Lean_Meta_Grind_cases___lambda__13___closed__3; -x_3 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_3 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; x_4 = l_Array_mapMUnsafe_map___at_Lean_LocalContext_getFVars___spec__1(x_2, x_1, x_3); return x_4; } @@ -9596,7 +12517,7 @@ lean_inc(x_43); lean_dec(x_40); x_44 = l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__3; x_45 = l_Lean_Meta_Grind_cases___lambda__13___closed__4; -x_46 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_46 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; lean_inc(x_43); x_47 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_cases___lambda__1___boxed), 12, 7); lean_closure_set(x_47, 0, x_43); @@ -9720,7 +12641,7 @@ lean_ctor_set(x_71, 2, x_70); x_72 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_72, 0, x_65); lean_ctor_set(x_72, 1, x_67); -x_73 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_73 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; x_74 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_74, 0, x_73); lean_ctor_set(x_74, 1, x_72); @@ -9918,7 +12839,7 @@ lean_inc(x_114); lean_dec(x_111); x_115 = l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__3; x_116 = l_Lean_Meta_Grind_cases___lambda__13___closed__4; -x_117 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_117 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; lean_inc(x_114); x_118 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_cases___lambda__2___boxed), 12, 7); lean_closure_set(x_118, 0, x_114); @@ -10033,7 +12954,7 @@ lean_inc(x_140); lean_dec(x_137); x_141 = l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__3; x_142 = l_Lean_Meta_Grind_cases___lambda__13___closed__4; -x_143 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_143 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; lean_inc(x_140); x_144 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_cases___lambda__3___boxed), 12, 7); lean_closure_set(x_144, 0, x_140); @@ -10148,7 +13069,7 @@ lean_inc(x_166); lean_dec(x_163); x_167 = l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__3; x_168 = l_Lean_Meta_Grind_cases___lambda__13___closed__4; -x_169 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_169 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; lean_inc(x_166); x_170 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_cases___lambda__4___boxed), 12, 7); lean_closure_set(x_170, 0, x_166); @@ -10263,7 +13184,7 @@ lean_inc(x_192); lean_dec(x_189); x_193 = l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__3; x_194 = l_Lean_Meta_Grind_cases___lambda__13___closed__4; -x_195 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_195 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; lean_inc(x_192); x_196 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_cases___lambda__5___boxed), 12, 7); lean_closure_set(x_196, 0, x_192); @@ -10378,7 +13299,7 @@ lean_inc(x_218); lean_dec(x_215); x_219 = l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__3; x_220 = l_Lean_Meta_Grind_cases___lambda__13___closed__4; -x_221 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_221 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; lean_inc(x_218); x_222 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_cases___lambda__6___boxed), 12, 7); lean_closure_set(x_222, 0, x_218); @@ -10493,7 +13414,7 @@ lean_inc(x_244); lean_dec(x_241); x_245 = l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__3; x_246 = l_Lean_Meta_Grind_cases___lambda__13___closed__4; -x_247 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_247 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; lean_inc(x_244); x_248 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_cases___lambda__7___boxed), 12, 7); lean_closure_set(x_248, 0, x_244); @@ -10608,7 +13529,7 @@ lean_inc(x_270); lean_dec(x_267); x_271 = l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__3; x_272 = l_Lean_Meta_Grind_cases___lambda__13___closed__4; -x_273 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_273 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; lean_inc(x_270); x_274 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_cases___lambda__8___boxed), 12, 7); lean_closure_set(x_274, 0, x_270); @@ -10723,7 +13644,7 @@ lean_inc(x_296); lean_dec(x_293); x_297 = l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__3; x_298 = l_Lean_Meta_Grind_cases___lambda__13___closed__4; -x_299 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_299 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; lean_inc(x_296); x_300 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_cases___lambda__9___boxed), 12, 7); lean_closure_set(x_300, 0, x_296); @@ -10838,7 +13759,7 @@ lean_inc(x_322); lean_dec(x_319); x_323 = l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__3; x_324 = l_Lean_Meta_Grind_cases___lambda__13___closed__4; -x_325 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_325 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; lean_inc(x_322); x_326 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_cases___lambda__10___boxed), 12, 7); lean_closure_set(x_326, 0, x_322); @@ -10953,7 +13874,7 @@ lean_inc(x_348); lean_dec(x_345); x_349 = l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__3; x_350 = l_Lean_Meta_Grind_cases___lambda__13___closed__4; -x_351 = l_Lean_Meta_Grind_cases___lambda__12___closed__1; +x_351 = l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7; lean_inc(x_348); x_352 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_cases___lambda__11___boxed), 12, 7); lean_closure_set(x_352, 0, x_348); @@ -11799,6 +14720,94 @@ _G_initialized = true; res = initialize_Lean_Meta_Tactic_Cases(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__1 = _init_l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__1); +l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__2 = _init_l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedCasesTypes___closed__2); +l_Lean_Meta_Grind_instInhabitedCasesTypes = _init_l_Lean_Meta_Grind_instInhabitedCasesTypes(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedCasesTypes); +l_Lean_Meta_Grind_instInhabitedCasesEntry___closed__1 = _init_l_Lean_Meta_Grind_instInhabitedCasesEntry___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedCasesEntry___closed__1); +l_Lean_Meta_Grind_instInhabitedCasesEntry = _init_l_Lean_Meta_Grind_instInhabitedCasesEntry(); +lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedCasesEntry); +l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2___closed__1 = _init_l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2___closed__1(); +l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2___closed__2 = _init_l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_CasesTypes_contains___spec__2___closed__2(); +l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2___closed__1 = _init_l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2___closed__1(); +lean_mark_persistent(l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_CasesTypes_insert___spec__2___closed__1); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__1); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__2); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__3); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__4); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__5 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__5); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__6 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__6); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__7 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__7); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__8 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122____closed__8); +if (builtin) {res = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Cases___hyg_122_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l_Lean_Meta_Grind_casesExt = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Meta_Grind_casesExt); +lean_dec_ref(res); +}l_Lean_Meta_Grind_getCasesTypes___rarg___closed__1 = _init_l_Lean_Meta_Grind_getCasesTypes___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_getCasesTypes___rarg___closed__1); +l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_x3f___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_x3f___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Cases_0__Lean_Meta_Grind_getAlias_x3f___closed__1); +l_Lean_Meta_Grind_isCasesAttrCandidate___closed__1 = _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_isCasesAttrCandidate___closed__1); +l_Lean_Meta_Grind_isCasesAttrCandidate___closed__2 = _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__2(); +l_Lean_Meta_Grind_isCasesAttrCandidate___closed__3 = _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_isCasesAttrCandidate___closed__3); +l_Lean_Meta_Grind_isCasesAttrCandidate___closed__4 = _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_isCasesAttrCandidate___closed__4); +l_Lean_Meta_Grind_isCasesAttrCandidate___closed__5 = _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_isCasesAttrCandidate___closed__5); +l_Lean_Meta_Grind_isCasesAttrCandidate___closed__6 = _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_isCasesAttrCandidate___closed__6); +l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7 = _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_isCasesAttrCandidate___closed__7); +l_Lean_Meta_Grind_isCasesAttrCandidate___closed__8 = _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_isCasesAttrCandidate___closed__8); +l_Lean_Meta_Grind_isCasesAttrCandidate___closed__9 = _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__9(); +lean_mark_persistent(l_Lean_Meta_Grind_isCasesAttrCandidate___closed__9); +l_Lean_Meta_Grind_isCasesAttrCandidate___closed__10 = _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__10(); +lean_mark_persistent(l_Lean_Meta_Grind_isCasesAttrCandidate___closed__10); +l_Lean_Meta_Grind_isCasesAttrCandidate___closed__11 = _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__11(); +lean_mark_persistent(l_Lean_Meta_Grind_isCasesAttrCandidate___closed__11); +l_Lean_Meta_Grind_isCasesAttrCandidate___closed__12 = _init_l_Lean_Meta_Grind_isCasesAttrCandidate___closed__12(); +lean_mark_persistent(l_Lean_Meta_Grind_isCasesAttrCandidate___closed__12); +l_Lean_Meta_Grind_validateCasesAttr___closed__1 = _init_l_Lean_Meta_Grind_validateCasesAttr___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_validateCasesAttr___closed__1); +l_Lean_Meta_Grind_validateCasesAttr___closed__2 = _init_l_Lean_Meta_Grind_validateCasesAttr___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_validateCasesAttr___closed__2); +l_Lean_Meta_Grind_validateCasesAttr___closed__3 = _init_l_Lean_Meta_Grind_validateCasesAttr___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_validateCasesAttr___closed__3); +l_Lean_Meta_Grind_validateCasesAttr___closed__4 = _init_l_Lean_Meta_Grind_validateCasesAttr___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_validateCasesAttr___closed__4); +l_Lean_Meta_Grind_validateCasesAttr___closed__5 = _init_l_Lean_Meta_Grind_validateCasesAttr___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_validateCasesAttr___closed__5); +l_Lean_Meta_Grind_validateCasesAttr___closed__6 = _init_l_Lean_Meta_Grind_validateCasesAttr___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_validateCasesAttr___closed__6); +l_Lean_Meta_Grind_validateCasesAttr___closed__7 = _init_l_Lean_Meta_Grind_validateCasesAttr___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_validateCasesAttr___closed__7); +l_Lean_Meta_Grind_validateCasesAttr___closed__8 = _init_l_Lean_Meta_Grind_validateCasesAttr___closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_validateCasesAttr___closed__8); +l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1___closed__1 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1___closed__1(); +lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addCasesAttr___spec__1___closed__1); +l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__1 = _init_l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__1); +l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__2 = _init_l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__2); +l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__3 = _init_l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__3); +l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__4 = _init_l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_CasesTypes_eraseDecl___closed__4); l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__1 = _init_l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__1); l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__2 = _init_l_Lean_Meta_Grind_cases_throwInductiveExpected___closed__2(); @@ -11821,8 +14830,6 @@ l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__1___closed__3 = _i lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__1___closed__3); l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__1___closed__4 = _init_l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__1___closed__4(); lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_cases___spec__1___closed__4); -l_Lean_Meta_Grind_cases___lambda__12___closed__1 = _init_l_Lean_Meta_Grind_cases___lambda__12___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_cases___lambda__12___closed__1); l_Lean_Meta_Grind_cases___lambda__13___closed__1 = _init_l_Lean_Meta_Grind_cases___lambda__13___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_cases___lambda__13___closed__1); l_Lean_Meta_Grind_cases___lambda__13___closed__2 = _init_l_Lean_Meta_Grind_cases___lambda__13___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c index 7f73357a7d26..48bb16beb5bc 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Core.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Grind.Core -// Imports: Init.Grind.Util Lean.Meta.LitValues Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Inv Lean.Meta.Tactic.Grind.PP Lean.Meta.Tactic.Grind.Ctor Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Internalize +// Imports: Init.Grind.Util Lean.Meta.LitValues Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Inv Lean.Meta.Tactic.Grind.PP Lean.Meta.Tactic.Grind.Ctor Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Beta Lean.Meta.Tactic.Grind.Internalize #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -19,15 +19,18 @@ static lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Gr 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*); +static lean_object* l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__4; 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*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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*); size_t lean_usize_shift_right(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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_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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__5; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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* 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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__5(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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__2___closed__1; 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*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__8___closed__1; @@ -36,6 +39,7 @@ 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_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_Lean_Meta_Grind_propagateBeta___lambda__2___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); @@ -45,20 +49,29 @@ lean_object* l_Lean_Meta_Grind_propagateCtor(lean_object*, lean_object*, lean_ob 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*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__1; +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 lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_checkSystem(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_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; +LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___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*); 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; LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__11; +static lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents___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__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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__16; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___boxed(lean_object**); lean_object* lean_array_fget(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__6; +static lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___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; @@ -74,6 +87,7 @@ lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add_goFact(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_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_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___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_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_storeFact(lean_object*, 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(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; @@ -88,11 +102,13 @@ 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_object* l_Lean_Meta_Grind_Goal_getENode(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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___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_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; 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*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__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__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*); @@ -100,7 +116,10 @@ lean_object* l_Lean_Meta_Grind_getFalseExpr___rarg(lean_object*, lean_object*, l 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*, 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_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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*); 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_Lean_Meta_Grind_propagateBeta___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* l_Array_reverse___rarg(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*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add_go(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -109,13 +128,18 @@ 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*); +lean_object* l_Lean_Meta_Grind_propagateBetaEqs(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_Lean_Meta_Grind_propagateBeta___spec__2___closed__1; +lean_object* l_Lean_Meta_Grind_getFnRoots(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__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_Meta_Grind_addNewEq(lean_object*, lean_object*, lean_object*, lean_object*, 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_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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_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*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__4; +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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(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_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*); @@ -127,6 +151,7 @@ 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* lean_array_to_list(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*); @@ -137,22 +162,27 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add_go___lambda__1(lean_object*, lean LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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* 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___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*); +extern lean_object* l_Lean_instInhabitedExpr; 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*); 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*); +lean_object* l_Lean_Meta_Grind_getEqcLambdas(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBTree_toArray___at_Lean_Meta_Grind_propagateBeta___spec__3(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; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go(lean_object*, uint8_t, 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_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add_go___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__3(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___closed__1; +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__3; uint8_t l_Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqCore_processTodo___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_add___closed__2; 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*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_resetNewEqs___closed__1; +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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_process_new_offset_eq_lit(lean_object*, lean_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(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_Core_0__Lean_Meta_Grind_addEqCore_processTodo___closed__1; @@ -164,24 +194,30 @@ 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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__5___boxed(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___private_Lean_Meta_Tactic_Grind_Core_0__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*); lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___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_Lean_Meta_Grind_propagateBeta___lambda__2___closed__3; 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_Lean_RBNode_fold___at_Lean_Meta_Grind_propagateBeta___spec__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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* l_Lean_Meta_Grind_Goal_ppState(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; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add___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_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_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__7; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBeta(lean_object*, lean_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(uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_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*); lean_object* lean_process_new_offset_eq(lean_object*, 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; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___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*); 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*); @@ -189,12 +225,14 @@ lean_object* l_Lean_Meta_Grind_mkEqFalseProof(lean_object*, lean_object*, lean_o LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2___boxed(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*, 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*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__2; +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*, 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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___closed__4; lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___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_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__6; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__4___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents(lean_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__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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*); @@ -204,45 +242,60 @@ lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_indexOfAux___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__3(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__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___boxed(lean_object*, lean_object*, 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_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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_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*); uint8_t l_Lean_Expr_isProp(lean_object*); +LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___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_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_add_go___closed__2; +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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*); 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_object* l_Array_back_x21___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_storeFact___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_go___lambda__3___boxed(lean_object**); lean_object* l_Lean_Meta_Grind_ppENodeRef(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_propagateBeta___lambda__2___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__8; 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*); +static lean_object* l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__2; uint8_t l_Lean_Expr_isTrue(lean_object*); static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___closed__1; +size_t lean_usize_add(size_t, size_t); 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*); 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* 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_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___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_Lean_Meta_Grind_propagateBeta___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_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*); size_t lean_usize_shift_left(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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*); +static lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__2; 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_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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_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; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_add_goFact___boxed(lean_object*, 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__9; +uint8_t lean_usize_dec_lt(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBeta___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* l_Lean_Meta_Grind_resetParentsOf(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___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*); @@ -260,9 +313,12 @@ LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_ 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*, lean_object*); size_t lean_usize_land(size_t, size_t); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBeta___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___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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__14; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep___lambda__2(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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans_go___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: { @@ -1656,7 +1712,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; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = l_Lean_Meta_Grind_getParentsAndReset(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_Grind_getParents(x_1, 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_13 = lean_ctor_get(x_11, 1); @@ -3901,212 +3957,157 @@ return x_97; } } } -LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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; lean_object* x_17; -x_14 = lean_ctor_get(x_1, 1); +if (lean_obj_tag(x_3) == 5) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_3, 0); lean_inc(x_14); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_2); -lean_ctor_set(x_15, 1, x_14); -x_16 = lean_alloc_ctor(1, 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_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1() { -_start: +x_15 = lean_ctor_get(x_3, 1); +lean_inc(x_15); +x_16 = l_Lean_Meta_Grind_getGeneration(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) { -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_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_ctor_get(x_16, 1); +x_20 = lean_box(0); +x_21 = l_Lean_Meta_Grind_internalize(x_3, x_18, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_13 = lean_ctor_get(x_3, 1); -lean_inc(x_13); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - x_14 = x_3; -} else { - lean_dec_ref(x_3); - x_14 = lean_box(0); -} -x_15 = lean_st_ref_get(x_4, 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); -lean_inc(x_13); -x_18 = l_Lean_Meta_Grind_Goal_getENode(x_16, x_13, x_10, x_11, x_17); -if (lean_obj_tag(x_18) == 0) +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -if (lean_is_exclusive(x_18)) { - lean_ctor_release(x_18, 0); - lean_ctor_release(x_18, 1); - x_21 = x_18; -} else { - lean_dec_ref(x_18); - x_21 = lean_box(0); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +x_24 = lean_array_push(x_2, x_15); +lean_ctor_set(x_16, 1, x_14); +lean_ctor_set(x_16, 0, x_24); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_16); +lean_ctor_set(x_21, 0, x_25); +return x_21; } -x_35 = l_Lean_Meta_Grind_isInconsistent(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_unbox(x_36); -lean_dec(x_36); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -x_39 = lean_ctor_get(x_19, 0); -lean_inc(x_39); -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_40 = l_Lean_Meta_Grind_propagateDown(x_39, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_38); -if (lean_obj_tag(x_40) == 0) +else { -lean_object* x_41; -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -lean_dec(x_40); -x_22 = x_41; -goto block_34; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_21, 1); +lean_inc(x_26); +lean_dec(x_21); +x_27 = lean_array_push(x_2, x_15); +lean_ctor_set(x_16, 1, x_14); +lean_ctor_set(x_16, 0, x_27); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_16); +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_42; -lean_dec(x_21); -lean_dec(x_19); +uint8_t x_30; +lean_free_object(x_16); +lean_dec(x_15); lean_dec(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_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); lean_dec(x_2); -x_42 = !lean_is_exclusive(x_40); -if (x_42 == 0) +x_30 = !lean_is_exclusive(x_21); +if (x_30 == 0) { -return x_40; +return x_21; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_40, 0); -x_44 = lean_ctor_get(x_40, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_40); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_21, 0); +x_32 = lean_ctor_get(x_21, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_21); +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_46; -x_46 = lean_ctor_get(x_35, 1); -lean_inc(x_46); -lean_dec(x_35); -x_22 = x_46; -goto block_34; -} -block_34: -{ -lean_object* x_23; uint8_t x_24; -x_23 = lean_ctor_get(x_19, 1); -lean_inc(x_23); -x_24 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_23, x_1); -lean_dec(x_23); -if (x_24 == 0) +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +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_box(0); +x_37 = l_Lean_Meta_Grind_internalize(x_3, x_34, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_35); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_dec(x_21); -lean_dec(x_14); -x_25 = lean_box(0); -lean_inc(x_2); -x_26 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___lambda__1(x_19, x_2, x_13, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); -lean_dec(x_13); -lean_dec(x_19); -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); -lean_dec(x_27); -x_3 = x_29; -x_12 = x_28; -goto _start; +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_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); +} +x_40 = lean_array_push(x_2, x_15); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_14); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +if (lean_is_scalar(x_39)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_39; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_38); +return x_43; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -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_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_15); +lean_dec(x_14); lean_dec(x_2); -x_31 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1; -if (lean_is_scalar(x_14)) { - x_32 = lean_alloc_ctor(0, 2, 0); +x_44 = lean_ctor_get(x_37, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_37, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_46 = x_37; } else { - x_32 = x_14; + lean_dec_ref(x_37); + x_46 = lean_box(0); } -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_13); -if (lean_is_scalar(x_21)) { - x_33 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); } else { - x_33 = x_21; + x_47 = x_46; } -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_22); -return x_33; +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; } } } else { -uint8_t x_47; -lean_dec(x_14); -lean_dec(x_13); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4114,121 +4115,93 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_47 = !lean_is_exclusive(x_18); -if (x_47 == 0) -{ -return x_18; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_18, 0); -x_49 = lean_ctor_get(x_18, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_18); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_2); +lean_ctor_set(x_48, 1, x_3); +x_49 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_49, 0, x_48); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_13); return x_50; } } } -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_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_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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, 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_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_box(0); -lean_inc(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_1); -x_13 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1(x_1, x_11, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_1); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -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 = !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_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = l_Lean_Meta_Grind_isEqv(x_5, x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_unbox(x_17); lean_dec(x_17); -x_18 = lean_box(0); -lean_ctor_set(x_13, 0, x_18); -return x_13; -} -else +if (x_18 == 0) { lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_13, 1); +x_19 = lean_ctor_get(x_16, 1); lean_inc(x_19); -lean_dec(x_13); +lean_dec(x_16); 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); +x_21 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___lambda__1(x_2, x_4, x_5, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_19); return x_21; } -} else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_13); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_13, 0); -lean_dec(x_23); -x_24 = lean_ctor_get(x_15, 0); -lean_inc(x_24); -lean_dec(x_15); -lean_ctor_set(x_13, 0, x_24); -return x_13; -} -else +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_16, 1); +lean_inc(x_22); +lean_dec(x_16); +lean_inc(x_4); +x_23 = l_Array_reverse___rarg(x_4); +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_5); +x_24 = l_Lean_Meta_Grind_propagateBetaEqs(x_3, x_5, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_22); +if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_13, 1); +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_13); -x_26 = lean_ctor_get(x_15, 0); +x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); -lean_dec(x_15); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); +lean_dec(x_24); +x_27 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___lambda__1(x_2, x_4, x_5, x_25, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26); +lean_dec(x_25); return x_27; } -} -} else { uint8_t x_28; -x_28 = !lean_is_exclusive(x_13); +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_4); +x_28 = !lean_is_exclusive(x_24); if (x_28 == 0) { -return x_13; +return x_24; } else { lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_13, 0); -x_30 = lean_ctor_get(x_13, 1); +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_13); +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); @@ -4237,575 +4210,486 @@ return x_31; } } } -LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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: -{ -lean_object* x_14; -x_14 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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); -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_14; -} } -LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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) { +static lean_object* _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__1() { _start: { -lean_object* x_13; -x_13 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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_object* x_1; +x_1 = lean_mk_string_unchecked("curr: ", 6, 6); +return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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) { +static lean_object* _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__2() { _start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_1); -lean_ctor_set(x_14, 1, x_2); -x_15 = lean_alloc_ctor(1, 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_13); -return x_16; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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: { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_4); -if (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; -x_15 = lean_ctor_get(x_4, 1); -x_16 = lean_ctor_get(x_4, 0); -lean_dec(x_16); -x_17 = lean_st_ref_get(x_5, x_13); +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_5, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_5, 1); +lean_inc(x_16); +lean_dec(x_5); +lean_inc(x_3); +x_17 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); +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); -lean_inc(x_15); -x_20 = l_Lean_Meta_Grind_Goal_getENode(x_18, x_15, x_11, x_12, x_19); -if (lean_obj_tag(x_20) == 0) +x_21 = lean_box(0); +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); +x_22 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___lambda__2(x_2, x_4, x_1, x_15, x_16, x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_20); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = !lean_is_exclusive(x_21); -if (x_23 == 0) +lean_object* x_23; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_24 = lean_ctor_get(x_21, 0); -x_25 = lean_ctor_get(x_21, 1); -x_26 = lean_ctor_get(x_21, 2); -lean_dec(x_26); -lean_inc(x_2); -lean_inc(x_25); -lean_inc(x_24); -lean_ctor_set(x_21, 2, x_2); -x_27 = l_Lean_Meta_Grind_setENode(x_24, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) +uint8_t x_24; +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); +x_24 = !lean_is_exclusive(x_22); +if (x_24 == 0) { -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_27, 1); -x_30 = lean_ctor_get(x_27, 0); -lean_dec(x_30); -x_31 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_25, x_1); -if (x_31 == 0) +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_22, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_23, 0); +lean_inc(x_26); +lean_dec(x_23); +lean_ctor_set(x_22, 0, x_26); +return x_22; +} +else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -lean_free_object(x_27); -lean_free_object(x_4); -x_32 = lean_box(0); -lean_inc(x_3); -x_33 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___spec__1___lambda__1(x_3, x_25, x_15, x_32, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_29); -lean_dec(x_15); -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 = lean_ctor_get(x_34, 0); -lean_inc(x_36); -lean_dec(x_34); -x_4 = x_36; -x_13 = x_35; -goto _start; +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_22, 1); +lean_inc(x_27); +lean_dec(x_22); +x_28 = lean_ctor_get(x_23, 0); +lean_inc(x_28); +lean_dec(x_23); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} } else { -lean_object* x_38; -lean_dec(x_25); -lean_dec(x_3); -lean_dec(x_2); -x_38 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1; -lean_ctor_set(x_4, 0, x_38); -lean_ctor_set(x_27, 0, x_4); -return x_27; +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_22, 1); +lean_inc(x_30); +lean_dec(x_22); +x_31 = lean_ctor_get(x_23, 0); +lean_inc(x_31); +lean_dec(x_23); +x_5 = x_31; +x_14 = x_30; +goto _start; } } else { -lean_object* x_39; uint8_t x_40; -x_39 = lean_ctor_get(x_27, 1); -lean_inc(x_39); -lean_dec(x_27); -x_40 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_25, x_1); -if (x_40 == 0) +uint8_t 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_6); +lean_dec(x_3); +x_33 = !lean_is_exclusive(x_22); +if (x_33 == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -lean_free_object(x_4); -x_41 = lean_box(0); -lean_inc(x_3); -x_42 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___spec__1___lambda__1(x_3, x_25, x_15, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_39); -lean_dec(x_15); -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_ctor_get(x_43, 0); -lean_inc(x_45); -lean_dec(x_43); -x_4 = x_45; -x_13 = x_44; -goto _start; +return x_22; } else { -lean_object* x_47; lean_object* x_48; -lean_dec(x_25); -lean_dec(x_3); -lean_dec(x_2); -x_47 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1; -lean_ctor_set(x_4, 0, x_47); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_4); -lean_ctor_set(x_48, 1, x_39); -return x_48; +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_22, 0); +x_35 = lean_ctor_get(x_22, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_22); +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_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; uint8_t 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; lean_object* x_67; uint8_t x_68; -x_49 = lean_ctor_get(x_21, 0); -x_50 = lean_ctor_get(x_21, 1); -x_51 = lean_ctor_get(x_21, 3); -x_52 = lean_ctor_get(x_21, 4); -x_53 = lean_ctor_get(x_21, 5); -x_54 = lean_ctor_get_uint8(x_21, sizeof(void*)*11); -x_55 = lean_ctor_get(x_21, 6); -x_56 = lean_ctor_get_uint8(x_21, sizeof(void*)*11 + 1); -x_57 = lean_ctor_get_uint8(x_21, sizeof(void*)*11 + 2); -x_58 = lean_ctor_get_uint8(x_21, sizeof(void*)*11 + 3); -x_59 = lean_ctor_get_uint8(x_21, sizeof(void*)*11 + 4); -x_60 = lean_ctor_get(x_21, 7); -x_61 = lean_ctor_get(x_21, 8); -x_62 = lean_ctor_get(x_21, 9); -x_63 = lean_ctor_get(x_21, 10); -lean_inc(x_63); -lean_inc(x_62); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_55); -lean_inc(x_53); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_21); -lean_inc(x_2); -lean_inc(x_50); -lean_inc(x_49); -x_64 = lean_alloc_ctor(0, 11, 5); -lean_ctor_set(x_64, 0, x_49); -lean_ctor_set(x_64, 1, x_50); -lean_ctor_set(x_64, 2, x_2); -lean_ctor_set(x_64, 3, x_51); -lean_ctor_set(x_64, 4, x_52); -lean_ctor_set(x_64, 5, x_53); -lean_ctor_set(x_64, 6, x_55); -lean_ctor_set(x_64, 7, x_60); -lean_ctor_set(x_64, 8, x_61); -lean_ctor_set(x_64, 9, x_62); -lean_ctor_set(x_64, 10, x_63); -lean_ctor_set_uint8(x_64, sizeof(void*)*11, x_54); -lean_ctor_set_uint8(x_64, sizeof(void*)*11 + 1, x_56); -lean_ctor_set_uint8(x_64, sizeof(void*)*11 + 2, x_57); -lean_ctor_set_uint8(x_64, sizeof(void*)*11 + 3, x_58); -lean_ctor_set_uint8(x_64, sizeof(void*)*11 + 4, x_59); -x_65 = l_Lean_Meta_Grind_setENode(x_49, x_64, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -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 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_50, x_1); -if (x_68 == 0) +uint8_t x_37; +x_37 = !lean_is_exclusive(x_17); +if (x_37 == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -lean_dec(x_67); -lean_free_object(x_4); -x_69 = lean_box(0); +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_38 = lean_ctor_get(x_17, 1); +x_39 = lean_ctor_get(x_17, 0); +lean_dec(x_39); +lean_inc(x_16); +x_40 = l_Lean_MessageData_ofExpr(x_16); +x_41 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__2; +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_40); +lean_ctor_set(x_17, 0, x_41); +x_42 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_43 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_43, 0, x_17); +lean_ctor_set(x_43, 1, x_42); lean_inc(x_3); -x_70 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___spec__1___lambda__1(x_3, x_50, x_15, x_69, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_66); -lean_dec(x_15); -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_71, 0); -lean_inc(x_73); -lean_dec(x_71); -x_4 = x_73; -x_13 = x_72; -goto _start; +x_44 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_3, x_43, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_38); +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_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); +x_47 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___lambda__2(x_2, x_4, x_1, x_15, x_16, x_45, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_46); +lean_dec(x_45); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +if (lean_obj_tag(x_48) == 0) +{ +uint8_t x_49; +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); +x_49 = !lean_is_exclusive(x_47); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_47, 0); +lean_dec(x_50); +x_51 = lean_ctor_get(x_48, 0); +lean_inc(x_51); +lean_dec(x_48); +lean_ctor_set(x_47, 0, x_51); +return x_47; } else { -lean_object* x_75; lean_object* x_76; -lean_dec(x_50); -lean_dec(x_3); -lean_dec(x_2); -x_75 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1; -lean_ctor_set(x_4, 0, x_75); -if (lean_is_scalar(x_67)) { - x_76 = lean_alloc_ctor(0, 2, 0); -} else { - x_76 = x_67; +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_47, 1); +lean_inc(x_52); +lean_dec(x_47); +x_53 = lean_ctor_get(x_48, 0); +lean_inc(x_53); +lean_dec(x_48); +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; } -lean_ctor_set(x_76, 0, x_4); -lean_ctor_set(x_76, 1, x_66); -return x_76; } +else +{ +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_47, 1); +lean_inc(x_55); +lean_dec(x_47); +x_56 = lean_ctor_get(x_48, 0); +lean_inc(x_56); +lean_dec(x_48); +x_5 = x_56; +x_14 = x_55; +goto _start; } } else { -uint8_t x_77; -lean_free_object(x_4); -lean_dec(x_15); +uint8_t x_58; +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); -x_77 = !lean_is_exclusive(x_20); -if (x_77 == 0) +x_58 = !lean_is_exclusive(x_47); +if (x_58 == 0) { -return x_20; +return x_47; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_20, 0); -x_79 = lean_ctor_get(x_20, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_20); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_47, 0); +x_60 = lean_ctor_get(x_47, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_47); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; } } } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_81 = lean_ctor_get(x_4, 1); -lean_inc(x_81); -lean_dec(x_4); -x_82 = lean_st_ref_get(x_5, x_13); -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); -lean_inc(x_81); -x_85 = l_Lean_Meta_Grind_Goal_getENode(x_83, x_81, x_11, x_12, x_84); -if (lean_obj_tag(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; uint8_t x_93; lean_object* x_94; uint8_t x_95; uint8_t x_96; uint8_t x_97; uint8_t 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; uint8_t x_108; -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 = lean_ctor_get(x_86, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_86, 1); -lean_inc(x_89); -x_90 = lean_ctor_get(x_86, 3); -lean_inc(x_90); -x_91 = lean_ctor_get(x_86, 4); -lean_inc(x_91); -x_92 = lean_ctor_get(x_86, 5); -lean_inc(x_92); -x_93 = lean_ctor_get_uint8(x_86, sizeof(void*)*11); -x_94 = lean_ctor_get(x_86, 6); -lean_inc(x_94); -x_95 = lean_ctor_get_uint8(x_86, sizeof(void*)*11 + 1); -x_96 = lean_ctor_get_uint8(x_86, sizeof(void*)*11 + 2); -x_97 = lean_ctor_get_uint8(x_86, sizeof(void*)*11 + 3); -x_98 = lean_ctor_get_uint8(x_86, sizeof(void*)*11 + 4); -x_99 = lean_ctor_get(x_86, 7); -lean_inc(x_99); -x_100 = lean_ctor_get(x_86, 8); -lean_inc(x_100); -x_101 = lean_ctor_get(x_86, 9); -lean_inc(x_101); -x_102 = lean_ctor_get(x_86, 10); -lean_inc(x_102); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - lean_ctor_release(x_86, 2); - lean_ctor_release(x_86, 3); - lean_ctor_release(x_86, 4); - lean_ctor_release(x_86, 5); - lean_ctor_release(x_86, 6); - lean_ctor_release(x_86, 7); - lean_ctor_release(x_86, 8); - lean_ctor_release(x_86, 9); - lean_ctor_release(x_86, 10); - x_103 = x_86; -} else { - lean_dec_ref(x_86); - x_103 = lean_box(0); -} -lean_inc(x_2); -lean_inc(x_89); -lean_inc(x_88); -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(0, 11, 5); +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_62 = lean_ctor_get(x_17, 1); +lean_inc(x_62); +lean_dec(x_17); +lean_inc(x_16); +x_63 = l_Lean_MessageData_ofExpr(x_16); +x_64 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__2; +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 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_67 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +lean_inc(x_3); +x_68 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_3, x_67, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_62); +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); +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); +x_71 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___lambda__2(x_2, x_4, x_1, x_15, x_16, x_69, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_70); +lean_dec(x_69); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +if (lean_obj_tag(x_72) == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +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); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_74 = x_71; } else { - x_104 = x_103; + lean_dec_ref(x_71); + x_74 = lean_box(0); } -lean_ctor_set(x_104, 0, x_88); -lean_ctor_set(x_104, 1, x_89); -lean_ctor_set(x_104, 2, x_2); -lean_ctor_set(x_104, 3, x_90); -lean_ctor_set(x_104, 4, x_91); -lean_ctor_set(x_104, 5, x_92); -lean_ctor_set(x_104, 6, x_94); -lean_ctor_set(x_104, 7, x_99); -lean_ctor_set(x_104, 8, x_100); -lean_ctor_set(x_104, 9, x_101); -lean_ctor_set(x_104, 10, x_102); -lean_ctor_set_uint8(x_104, sizeof(void*)*11, x_93); -lean_ctor_set_uint8(x_104, sizeof(void*)*11 + 1, x_95); -lean_ctor_set_uint8(x_104, sizeof(void*)*11 + 2, x_96); -lean_ctor_set_uint8(x_104, sizeof(void*)*11 + 3, x_97); -lean_ctor_set_uint8(x_104, sizeof(void*)*11 + 4, x_98); -x_105 = l_Lean_Meta_Grind_setENode(x_88, x_104, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_87); -x_106 = lean_ctor_get(x_105, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_107 = x_105; +x_75 = lean_ctor_get(x_72, 0); +lean_inc(x_75); +lean_dec(x_72); +if (lean_is_scalar(x_74)) { + x_76 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_105); - x_107 = lean_box(0); + x_76 = x_74; } -x_108 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_89, x_1); -if (x_108 == 0) -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -lean_dec(x_107); -x_109 = lean_box(0); -lean_inc(x_3); -x_110 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___spec__1___lambda__1(x_3, x_89, x_81, x_109, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_106); -lean_dec(x_81); -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_110, 1); -lean_inc(x_112); -lean_dec(x_110); -x_113 = lean_ctor_get(x_111, 0); -lean_inc(x_113); -lean_dec(x_111); -x_4 = x_113; -x_13 = x_112; -goto _start; +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_73); +return x_76; } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; -lean_dec(x_89); -lean_dec(x_3); -lean_dec(x_2); -x_115 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___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_81); -if (lean_is_scalar(x_107)) { - x_117 = lean_alloc_ctor(0, 2, 0); -} else { - x_117 = x_107; -} -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_106); -return x_117; +lean_object* x_77; lean_object* x_78; +x_77 = lean_ctor_get(x_71, 1); +lean_inc(x_77); +lean_dec(x_71); +x_78 = lean_ctor_get(x_72, 0); +lean_inc(x_78); +lean_dec(x_72); +x_5 = x_78; +x_14 = x_77; +goto _start; } } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -lean_dec(x_81); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* 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_3); -lean_dec(x_2); -x_118 = lean_ctor_get(x_85, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_85, 1); -lean_inc(x_119); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_120 = x_85; +x_80 = lean_ctor_get(x_71, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_71, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_82 = x_71; } else { - lean_dec_ref(x_85); - x_120 = lean_box(0); + lean_dec_ref(x_71); + x_82 = lean_box(0); } -if (lean_is_scalar(x_120)) { - x_121 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); } else { - x_121 = x_120; + x_83 = x_82; } -lean_ctor_set(x_121, 0, x_118); -lean_ctor_set(x_121, 1, x_119); -return x_121; +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; } } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_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_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_box(0); -lean_inc(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_1); -x_14 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___spec__1(x_1, x_2, x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_1); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -lean_dec(x_15); -if (lean_obj_tag(x_16) == 0) +lean_object* x_17; lean_object* x_18; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_5); +lean_ctor_set(x_17, 1, x_6); +x_18 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1(x_1, x_2, x_3, x_4, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_18) == 0) { -uint8_t x_17; -x_17 = !lean_is_exclusive(x_14); -if (x_17 == 0) +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_14, 0); -lean_dec(x_18); -x_19 = lean_box(0); -lean_ctor_set(x_14, 0, x_19); -return x_14; +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_18, 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___lambda__1___closed__1; +lean_ctor_set(x_18, 0, x_21); +return x_18; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_14, 1); -lean_inc(x_20); -lean_dec(x_14); -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; +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_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___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 { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_14); -if (x_23 == 0) +uint8_t x_25; +x_25 = !lean_is_exclusive(x_18); +if (x_25 == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_14, 0); -lean_dec(x_24); -x_25 = lean_ctor_get(x_16, 0); -lean_inc(x_25); -lean_dec(x_16); -lean_ctor_set(x_14, 0, x_25); -return x_14; +return x_18; } else { lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_14, 1); -lean_inc(x_26); -lean_dec(x_14); -x_27 = lean_ctor_get(x_16, 0); +x_26 = lean_ctor_get(x_18, 0); +x_27 = lean_ctor_get(x_18, 1); lean_inc(x_27); -lean_dec(x_16); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); +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; } } } -else -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_14); -if (x_29 == 0) +} +static lean_object* _init_l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1() { +_start: { -return x_14; +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_array_mk(x_1); +return x_2; } -else +} +static lean_object* _init_l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__2() { +_start: { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_14, 0); -x_31 = lean_ctor_get(x_14, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_14); -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_object* x_1; +x_1 = lean_mk_string_unchecked("parent: ", 8, 8); +return x_1; } } +static lean_object* _init_l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__2; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___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_14; -x_14 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -4813,17 +4697,45 @@ 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; -} +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_5); +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; } -LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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: +else { -lean_object* x_14; -x_14 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_4, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_4, 1); +lean_inc(x_18); +x_19 = lean_ctor_get(x_4, 3); +lean_inc(x_19); +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_3); +x_20 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2(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); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -4831,283 +4743,2628 @@ 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_14; +lean_dec(x_3); +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_20, 0); +lean_dec(x_23); +return x_20; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_20, 1); +lean_inc(x_24); +lean_dec(x_20); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_21); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots(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_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_dec(x_21); +x_26 = lean_ctor_get(x_20, 1); +lean_inc(x_26); +lean_dec(x_20); +lean_inc(x_3); +x_27 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_26); +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; lean_object* x_33; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1; +x_32 = lean_box(0); +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_18); +lean_inc(x_3); +x_33 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___lambda__1(x_1, x_2, x_3, x_18, x_31, x_18, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_30); +lean_dec(x_18); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +if (lean_obj_tag(x_34) == 0) +{ +uint8_t x_35; +lean_dec(x_19); +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); -return x_12; +x_35 = !lean_is_exclusive(x_33); +if (x_35 == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_33, 0); +lean_dec(x_36); +return x_33; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_33, 1); +lean_inc(x_37); +lean_dec(x_33); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_34); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } -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* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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 { -if (lean_obj_tag(x_1) == 0) +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_33, 1); +lean_inc(x_39); +lean_dec(x_33); +x_40 = lean_ctor_get(x_34, 0); +lean_inc(x_40); +lean_dec(x_34); +x_4 = x_19; +x_5 = x_40; +x_14 = x_39; +goto _start; +} +} +else { -lean_object* x_12; lean_object* x_13; +uint8_t x_42; +lean_dec(x_19); +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); -x_12 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_12, 0, x_2); -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; +x_42 = !lean_is_exclusive(x_33); +if (x_42 == 0) +{ +return x_33; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_1, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_1, 1); -lean_inc(x_15); -x_16 = lean_ctor_get(x_1, 3); -lean_inc(x_16); -lean_dec(x_1); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_33, 0); +x_44 = lean_ctor_get(x_33, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_33); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +} +else +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_27); +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; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_47 = lean_ctor_get(x_27, 1); +x_48 = lean_ctor_get(x_27, 0); +lean_dec(x_48); +lean_inc(x_18); +x_49 = l_Lean_MessageData_ofExpr(x_18); +x_50 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__3; +lean_ctor_set_tag(x_27, 7); +lean_ctor_set(x_27, 1, x_49); +lean_ctor_set(x_27, 0, x_50); +x_51 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_52 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_52, 0, x_27); +lean_ctor_set(x_52, 1, x_51); +lean_inc(x_3); +x_53 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_3, x_52, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_47); +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_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1; +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); -lean_inc(x_4); +lean_inc(x_18); lean_inc(x_3); -x_17 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___spec__1(x_14, 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_17) == 0) +x_57 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___lambda__1(x_1, x_2, x_3, x_18, x_56, x_18, x_54, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_55); +lean_dec(x_54); +lean_dec(x_18); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_18; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -if (lean_obj_tag(x_18) == 0) +lean_object* x_58; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +if (lean_obj_tag(x_58) == 0) { -uint8_t x_19; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_10); -lean_dec(x_9); +uint8_t x_59; +lean_dec(x_19); +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); -x_19 = !lean_is_exclusive(x_17); -if (x_19 == 0) +x_59 = !lean_is_exclusive(x_57); +if (x_59 == 0) { -lean_object* x_20; -x_20 = lean_ctor_get(x_17, 0); +lean_object* x_60; +x_60 = lean_ctor_get(x_57, 0); +lean_dec(x_60); +return x_57; +} +else +{ +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +lean_dec(x_57); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_58); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +else +{ +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_57, 1); +lean_inc(x_63); +lean_dec(x_57); +x_64 = lean_ctor_get(x_58, 0); +lean_inc(x_64); +lean_dec(x_58); +x_4 = x_19; +x_5 = x_64; +x_14 = x_63; +goto _start; +} +} +else +{ +uint8_t x_66; +lean_dec(x_19); +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); +x_66 = !lean_is_exclusive(x_57); +if (x_66 == 0) +{ +return x_57; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_57, 0); +x_68 = lean_ctor_get(x_57, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_57); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} +} +else +{ +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_70 = lean_ctor_get(x_27, 1); +lean_inc(x_70); +lean_dec(x_27); +lean_inc(x_18); +x_71 = l_Lean_MessageData_ofExpr(x_18); +x_72 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__3; +x_73 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_71); +x_74 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___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_3); +x_76 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_3, x_75, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_70); +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_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1; +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_18); +lean_inc(x_3); +x_80 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___lambda__1(x_1, x_2, x_3, x_18, x_79, x_18, x_77, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_78); +lean_dec(x_77); +lean_dec(x_18); +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_dec(x_19); +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); +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); +} +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(0, 2, 0); +} else { + x_84 = x_83; +} +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_82); +return x_84; +} +else +{ +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_80, 1); +lean_inc(x_85); +lean_dec(x_80); +x_86 = lean_ctor_get(x_81, 0); +lean_inc(x_86); +lean_dec(x_81); +x_4 = x_19; +x_5 = x_86; +x_14 = x_85; +goto _start; +} +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_19); +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); +x_88 = lean_ctor_get(x_80, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_80, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_90 = x_80; +} else { + lean_dec_ref(x_80); + x_90 = lean_box(0); +} +if (lean_is_scalar(x_90)) { + x_91 = lean_alloc_ctor(1, 2, 0); +} else { + x_91 = x_90; +} +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_89); +return x_91; +} +} +} +} +} +else +{ +uint8_t x_92; +lean_dec(x_19); +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_6); +lean_dec(x_3); +x_92 = !lean_is_exclusive(x_20); +if (x_92 == 0) +{ +return x_20; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_20, 0); +x_94 = lean_ctor_get(x_20, 1); +lean_inc(x_94); +lean_inc(x_93); lean_dec(x_20); -return x_17; +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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_Meta_Grind_propagateBeta___spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; } else { +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_2, 3); +lean_inc(x_5); +lean_dec(x_2); +x_6 = l_Lean_RBNode_fold___at_Lean_Meta_Grind_propagateBeta___spec__4(x_1, x_3); +x_7 = lean_array_push(x_6, x_4); +x_1 = x_7; +x_2 = x_5; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Lean_RBTree_toArray___at_Lean_Meta_Grind_propagateBeta___spec__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1; +x_3 = l_Lean_RBNode_fold___at_Lean_Meta_Grind_propagateBeta___spec__4(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___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, lean_object* x_14) { +_start: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = l_Lean_Meta_Grind_getParents(x_1, 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_box(0); +x_19 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2(x_2, x_3, x_4, x_16, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_17); +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; -x_21 = lean_ctor_get(x_17, 1); -lean_inc(x_21); -lean_dec(x_17); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_18); -lean_ctor_set(x_22, 1, x_21); -return x_22; +x_21 = lean_ctor_get(x_19, 0); +lean_dec(x_21); +x_22 = 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_19, 0, x_22); +return x_19; +} +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 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___lambda__1___closed__1; +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 +{ +uint8_t x_26; +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; +} } } -else +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("fn: ", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(", parents: ", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___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, 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, 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_8, x_7); +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_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_4); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_9); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +lean_dec(x_9); +x_21 = lean_array_uget(x_6, x_8); +lean_inc(x_4); +x_22 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_4, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +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; +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_box(0); +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_4); +x_27 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___lambda__1(x_21, x_1, x_3, x_4, x_26, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_25); +lean_dec(x_21); +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_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_4); +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_ctor_get(x_28, 0); +lean_inc(x_31); +lean_dec(x_28); +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_ctor_get(x_28, 0); +lean_inc(x_33); +lean_dec(x_28); +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; lean_object* x_36; size_t x_37; size_t x_38; +x_35 = lean_ctor_get(x_27, 1); +lean_inc(x_35); +lean_dec(x_27); +x_36 = lean_ctor_get(x_28, 0); +lean_inc(x_36); +lean_dec(x_28); +x_37 = 1; +x_38 = lean_usize_add(x_8, x_37); +x_8 = x_38; +x_9 = x_36; +x_18 = x_35; +goto _start; +} +} +else +{ +uint8_t x_40; +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_4); +x_40 = !lean_is_exclusive(x_27); +if (x_40 == 0) +{ +return x_27; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_27, 0); +x_42 = lean_ctor_get(x_27, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_27); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +else +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_22); +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_22, 1); +x_46 = lean_ctor_get(x_22, 0); +lean_dec(x_46); +x_47 = l_Lean_Meta_Grind_getParents(x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_45); +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_64; lean_object* x_65; +x_49 = lean_ctor_get(x_47, 0); +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_21); +x_51 = l_Lean_MessageData_ofExpr(x_21); +x_52 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__2; +lean_ctor_set_tag(x_47, 7); +lean_ctor_set(x_47, 1, x_51); +lean_ctor_set(x_47, 0, x_52); +x_53 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__4; +lean_ctor_set_tag(x_22, 7); +lean_ctor_set(x_22, 1, x_53); +lean_ctor_set(x_22, 0, x_47); +x_54 = l_Lean_RBTree_toArray___at_Lean_Meta_Grind_propagateBeta___spec__3(x_49); +x_55 = lean_array_to_list(x_54); +x_56 = lean_box(0); +x_57 = l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(x_55, x_56); +x_58 = l_Lean_MessageData_ofList(x_57); +x_59 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_59, 0, x_22); +lean_ctor_set(x_59, 1, x_58); +x_60 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_61 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +lean_inc(x_4); +x_62 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_4, x_61, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_50); +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); +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_4); +x_65 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___lambda__1(x_21, x_1, x_3, x_4, x_63, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_64); +lean_dec(x_63); +lean_dec(x_21); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +if (lean_obj_tag(x_66) == 0) +{ +uint8_t x_67; +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_4); +x_67 = !lean_is_exclusive(x_65); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; +x_68 = lean_ctor_get(x_65, 0); +lean_dec(x_68); +x_69 = lean_ctor_get(x_66, 0); +lean_inc(x_69); +lean_dec(x_66); +lean_ctor_set(x_65, 0, x_69); +return x_65; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_65, 1); +lean_inc(x_70); +lean_dec(x_65); +x_71 = lean_ctor_get(x_66, 0); +lean_inc(x_71); +lean_dec(x_66); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} +} +else +{ +lean_object* x_73; lean_object* x_74; size_t x_75; size_t x_76; +x_73 = lean_ctor_get(x_65, 1); +lean_inc(x_73); +lean_dec(x_65); +x_74 = lean_ctor_get(x_66, 0); +lean_inc(x_74); +lean_dec(x_66); +x_75 = 1; +x_76 = lean_usize_add(x_8, x_75); +x_8 = x_76; +x_9 = x_74; +x_18 = x_73; +goto _start; +} +} +else +{ +uint8_t x_78; +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_4); +x_78 = !lean_is_exclusive(x_65); +if (x_78 == 0) +{ +return x_65; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_65, 0); +x_80 = lean_ctor_get(x_65, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_65); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_82 = lean_ctor_get(x_47, 0); +x_83 = lean_ctor_get(x_47, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_47); +lean_inc(x_21); +x_84 = l_Lean_MessageData_ofExpr(x_21); +x_85 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__2; +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_84); +x_87 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__4; +lean_ctor_set_tag(x_22, 7); +lean_ctor_set(x_22, 1, x_87); +lean_ctor_set(x_22, 0, x_86); +x_88 = l_Lean_RBTree_toArray___at_Lean_Meta_Grind_propagateBeta___spec__3(x_82); +x_89 = lean_array_to_list(x_88); +x_90 = lean_box(0); +x_91 = l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(x_89, x_90); +x_92 = l_Lean_MessageData_ofList(x_91); +x_93 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_93, 0, x_22); +lean_ctor_set(x_93, 1, x_92); +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); +lean_inc(x_4); +x_96 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_4, x_95, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_83); +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); +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_4); +x_99 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___lambda__1(x_21, x_1, x_3, x_4, x_97, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_98); +lean_dec(x_97); +lean_dec(x_21); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +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_4); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_102 = x_99; +} else { + lean_dec_ref(x_99); + x_102 = lean_box(0); +} +x_103 = lean_ctor_get(x_100, 0); +lean_inc(x_103); +lean_dec(x_100); +if (lean_is_scalar(x_102)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_102; +} +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_101); +return x_104; +} +else +{ +lean_object* x_105; lean_object* x_106; size_t x_107; size_t x_108; +x_105 = lean_ctor_get(x_99, 1); +lean_inc(x_105); +lean_dec(x_99); +x_106 = lean_ctor_get(x_100, 0); +lean_inc(x_106); +lean_dec(x_100); +x_107 = 1; +x_108 = lean_usize_add(x_8, x_107); +x_8 = x_108; +x_9 = x_106; +x_18 = x_105; +goto _start; +} +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +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_4); +x_110 = lean_ctor_get(x_99, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_99, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_112 = x_99; +} else { + lean_dec_ref(x_99); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_112; +} +lean_ctor_set(x_113, 0, x_110); +lean_ctor_set(x_113, 1, x_111); +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; 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; +x_114 = lean_ctor_get(x_22, 1); +lean_inc(x_114); +lean_dec(x_22); +x_115 = l_Lean_Meta_Grind_getParents(x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_114); +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; +} else { + lean_dec_ref(x_115); + x_118 = lean_box(0); +} +lean_inc(x_21); +x_119 = l_Lean_MessageData_ofExpr(x_21); +x_120 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__2; +if (lean_is_scalar(x_118)) { + x_121 = lean_alloc_ctor(7, 2, 0); +} else { + x_121 = x_118; + lean_ctor_set_tag(x_121, 7); +} +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_119); +x_122 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__4; +x_123 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +x_124 = l_Lean_RBTree_toArray___at_Lean_Meta_Grind_propagateBeta___spec__3(x_116); +x_125 = lean_array_to_list(x_124); +x_126 = lean_box(0); +x_127 = l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(x_125, x_126); +x_128 = l_Lean_MessageData_ofList(x_127); +x_129 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_129, 0, x_123); +lean_ctor_set(x_129, 1, x_128); +x_130 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_131 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_130); +lean_inc(x_4); +x_132 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_4, x_131, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_117); +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_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_4); +x_135 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___lambda__1(x_21, x_1, x_3, x_4, x_133, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_134); +lean_dec(x_133); +lean_dec(x_21); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +if (lean_obj_tag(x_136) == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +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_4); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_138 = x_135; +} else { + lean_dec_ref(x_135); + x_138 = lean_box(0); +} +x_139 = lean_ctor_get(x_136, 0); +lean_inc(x_139); +lean_dec(x_136); +if (lean_is_scalar(x_138)) { + x_140 = lean_alloc_ctor(0, 2, 0); +} else { + x_140 = x_138; +} +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_137); +return x_140; +} +else +{ +lean_object* x_141; lean_object* x_142; size_t x_143; size_t x_144; +x_141 = lean_ctor_get(x_135, 1); +lean_inc(x_141); +lean_dec(x_135); +x_142 = lean_ctor_get(x_136, 0); +lean_inc(x_142); +lean_dec(x_136); +x_143 = 1; +x_144 = lean_usize_add(x_8, x_143); +x_8 = x_144; +x_9 = x_142; +x_18 = x_141; +goto _start; +} +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +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_4); +x_146 = lean_ctor_get(x_135, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_135, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_148 = x_135; +} else { + lean_dec_ref(x_135); + x_148 = lean_box(0); +} +if (lean_is_scalar(x_148)) { + x_149 = lean_alloc_ctor(1, 2, 0); +} else { + x_149 = x_148; +} +lean_ctor_set(x_149, 0, x_146); +lean_ctor_set(x_149, 1, x_147); +return x_149; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBeta___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; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_box(0); +x_16 = lean_array_size(x_1); +x_17 = 0; +x_18 = lean_box(0); +x_19 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5(x_2, x_1, x_3, x_4, x_15, x_1, x_16, x_17, x_18, x_6, x_7, x_8, x_9, 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) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_19, 0); +lean_dec(x_21); +lean_ctor_set(x_19, 0, x_18); +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_18); +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; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("beta", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__2() { +_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_Meta_Grind_propagateBeta___lambda__2___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("fns: ", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(", lams: ", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBeta___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; uint8_t x_16; +x_13 = l_Lean_instInhabitedExpr; +x_14 = l_Array_back_x21___rarg(x_13, x_1); +x_15 = lean_st_ref_get(x_4, x_12); +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_ctor_get(x_15, 1); +x_19 = l_Lean_Meta_Grind_Goal_getRoot(x_17, x_14, x_10, x_11, 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; uint8_t x_25; +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_propagateBeta___lambda__2___closed__2; +x_23 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_21); +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) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_free_object(x_15); +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = lean_box(0); +x_28 = l_Lean_Meta_Grind_propagateBeta___lambda__1(x_2, x_1, x_20, x_22, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_26); +lean_dec(x_20); +lean_dec(x_1); +lean_dec(x_2); +return x_28; +} +else +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_23); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_30 = lean_ctor_get(x_23, 1); +x_31 = lean_ctor_get(x_23, 0); +lean_dec(x_31); +lean_inc(x_2); +x_32 = lean_array_to_list(x_2); +x_33 = lean_box(0); +x_34 = l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(x_32, x_33); +x_35 = l_Lean_MessageData_ofList(x_34); +x_36 = l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__4; +lean_ctor_set_tag(x_23, 7); +lean_ctor_set(x_23, 1, x_35); +lean_ctor_set(x_23, 0, x_36); +x_37 = l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__6; +lean_ctor_set_tag(x_15, 7); +lean_ctor_set(x_15, 1, x_37); +lean_ctor_set(x_15, 0, x_23); +lean_inc(x_1); +x_38 = lean_array_to_list(x_1); +x_39 = l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(x_38, x_33); +x_40 = l_Lean_MessageData_ofList(x_39); +x_41 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_41, 0, x_15); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_43 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_22, x_43, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_30); +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_Meta_Grind_propagateBeta___lambda__1(x_2, x_1, x_20, x_22, x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_46); +lean_dec(x_45); +lean_dec(x_20); +lean_dec(x_1); +lean_dec(x_2); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 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_48 = lean_ctor_get(x_23, 1); +lean_inc(x_48); +lean_dec(x_23); +lean_inc(x_2); +x_49 = lean_array_to_list(x_2); +x_50 = lean_box(0); +x_51 = l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(x_49, x_50); +x_52 = l_Lean_MessageData_ofList(x_51); +x_53 = l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__4; +x_54 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_55 = l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__6; +lean_ctor_set_tag(x_15, 7); +lean_ctor_set(x_15, 1, x_55); +lean_ctor_set(x_15, 0, x_54); +lean_inc(x_1); +x_56 = lean_array_to_list(x_1); +x_57 = l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(x_56, x_50); +x_58 = l_Lean_MessageData_ofList(x_57); +x_59 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_59, 0, x_15); +lean_ctor_set(x_59, 1, x_58); +x_60 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_61 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +x_62 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_22, x_61, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_48); +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_propagateBeta___lambda__1(x_2, x_1, x_20, x_22, x_63, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_64); +lean_dec(x_63); +lean_dec(x_20); +lean_dec(x_1); +lean_dec(x_2); +return x_65; +} +} +} +else +{ +uint8_t x_66; +lean_free_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); +lean_dec(x_2); +lean_dec(x_1); +x_66 = !lean_is_exclusive(x_19); +if (x_66 == 0) +{ +return x_19; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_19, 0); +x_68 = lean_ctor_get(x_19, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_19); +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; +} +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_15, 0); +x_71 = lean_ctor_get(x_15, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_15); +x_72 = l_Lean_Meta_Grind_Goal_getRoot(x_70, x_14, x_10, x_11, x_71); +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; uint8_t x_78; +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 = l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__2; +x_76 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_75, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_74); +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_unbox(x_77); +lean_dec(x_77); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); +lean_dec(x_76); +x_80 = lean_box(0); +x_81 = l_Lean_Meta_Grind_propagateBeta___lambda__1(x_2, x_1, x_73, x_75, x_80, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_79); +lean_dec(x_73); +lean_dec(x_1); +lean_dec(x_2); +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; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_82 = lean_ctor_get(x_76, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_83 = x_76; +} else { + lean_dec_ref(x_76); + x_83 = lean_box(0); +} +lean_inc(x_2); +x_84 = lean_array_to_list(x_2); +x_85 = lean_box(0); +x_86 = l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(x_84, x_85); +x_87 = l_Lean_MessageData_ofList(x_86); +x_88 = l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__4; +if (lean_is_scalar(x_83)) { + x_89 = lean_alloc_ctor(7, 2, 0); +} else { + x_89 = x_83; + lean_ctor_set_tag(x_89, 7); +} +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_87); +x_90 = l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__6; +x_91 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +lean_inc(x_1); +x_92 = lean_array_to_list(x_1); +x_93 = l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(x_92, x_85); +x_94 = l_Lean_MessageData_ofList(x_93); +x_95 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_95, 0, x_91); +lean_ctor_set(x_95, 1, x_94); +x_96 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_97 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_75, x_97, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_82); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); +x_101 = l_Lean_Meta_Grind_propagateBeta___lambda__1(x_2, x_1, x_73, x_75, x_99, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_100); +lean_dec(x_99); +lean_dec(x_73); +lean_dec(x_1); +lean_dec(x_2); +return x_101; +} +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +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_102 = lean_ctor_get(x_72, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_72, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_104 = x_72; +} else { + lean_dec_ref(x_72); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBeta(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_Array_isEmpty___rarg(x_1); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_box(0); +x_14 = l_Lean_Meta_Grind_propagateBeta___lambda__2(x_1, x_2, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_14; +} +else +{ +lean_object* x_15; lean_object* 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); +lean_dec(x_1); +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_11); +return x_16; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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: +{ +lean_object* x_14; +x_14 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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); +lean_dec(x_4); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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, lean_object* x_8, 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_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___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_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___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_4); +lean_dec(x_2); +lean_dec(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___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, 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_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___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, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___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_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___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_2); +lean_dec(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___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, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___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, x_14); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___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: +{ +size_t x_19; size_t x_20; lean_object* x_21; +x_19 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_20 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_21 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_19, x_20, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_21; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBeta___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_Meta_Grind_propagateBeta___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_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBeta___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_propagateBeta___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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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; lean_object* x_17; +x_14 = lean_ctor_get(x_1, 1); +lean_inc(x_14); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_2); +lean_ctor_set(x_15, 1, x_14); +x_16 = lean_alloc_ctor(1, 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_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_13 = lean_ctor_get(x_3, 1); +lean_inc(x_13); +if (lean_is_exclusive(x_3)) { + lean_ctor_release(x_3, 0); + lean_ctor_release(x_3, 1); + x_14 = x_3; +} else { + lean_dec_ref(x_3); + x_14 = lean_box(0); +} +x_15 = lean_st_ref_get(x_4, 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); +lean_inc(x_13); +x_18 = l_Lean_Meta_Grind_Goal_getENode(x_16, x_13, x_10, x_11, x_17); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_21 = x_18; +} else { + lean_dec_ref(x_18); + x_21 = lean_box(0); +} +x_35 = l_Lean_Meta_Grind_isInconsistent(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_unbox(x_36); +lean_dec(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_ctor_get(x_19, 0); +lean_inc(x_39); +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_40 = l_Lean_Meta_Grind_propagateDown(x_39, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_38); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_22 = x_41; +goto block_34; +} +else +{ +uint8_t x_42; +lean_dec(x_21); +lean_dec(x_19); +lean_dec(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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_42 = !lean_is_exclusive(x_40); +if (x_42 == 0) +{ +return x_40; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_40, 0); +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_40); +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; +x_46 = lean_ctor_get(x_35, 1); +lean_inc(x_46); +lean_dec(x_35); +x_22 = x_46; +goto block_34; +} +block_34: +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +x_24 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_23, x_1); +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_dec(x_21); +lean_dec(x_14); +x_25 = lean_box(0); +lean_inc(x_2); +x_26 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___lambda__1(x_19, x_2, x_13, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +lean_dec(x_13); +lean_dec(x_19); +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); +lean_dec(x_27); +x_3 = x_29; +x_12 = x_28; +goto _start; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +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_2); +x_31 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1; +if (lean_is_scalar(x_14)) { + x_32 = lean_alloc_ctor(0, 2, 0); +} else { + x_32 = x_14; +} +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_13); +if (lean_is_scalar(x_21)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_21; +} +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_22); +return x_33; +} +} +} +else +{ +uint8_t x_47; +lean_dec(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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_47 = !lean_is_exclusive(x_18); +if (x_47 == 0) +{ +return x_18; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_18, 0); +x_49 = lean_ctor_get(x_18, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_18); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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); +lean_inc(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_1); +x_13 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1(x_1, x_11, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +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 = !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 +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_13); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_13, 0); +lean_dec(x_23); +x_24 = lean_ctor_get(x_15, 0); +lean_inc(x_24); +lean_dec(x_15); +lean_ctor_set(x_13, 0, x_24); +return x_13; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_13, 1); +lean_inc(x_25); +lean_dec(x_13); +x_26 = lean_ctor_get(x_15, 0); +lean_inc(x_26); +lean_dec(x_15); +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_13); +if (x_28 == 0) +{ +return x_13; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_13, 0); +x_30 = lean_ctor_get(x_13, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_13); +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_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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: +{ +lean_object* x_14; +x_14 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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); +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_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_1); +lean_ctor_set(x_14, 1, x_2); +x_15 = lean_alloc_ctor(1, 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_13); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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) { +_start: +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_4); +if (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; +x_15 = lean_ctor_get(x_4, 1); +x_16 = lean_ctor_get(x_4, 0); +lean_dec(x_16); +x_17 = lean_st_ref_get(x_5, 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); +lean_inc(x_15); +x_20 = l_Lean_Meta_Grind_Goal_getENode(x_18, x_15, x_11, x_12, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_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; uint8_t x_28; +x_24 = lean_ctor_get(x_21, 0); +x_25 = lean_ctor_get(x_21, 1); +x_26 = lean_ctor_get(x_21, 2); +lean_dec(x_26); +lean_inc(x_2); +lean_inc(x_25); +lean_inc(x_24); +lean_ctor_set(x_21, 2, x_2); +x_27 = l_Lean_Meta_Grind_setENode(x_24, x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_27, 1); +x_30 = lean_ctor_get(x_27, 0); +lean_dec(x_30); +x_31 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_25, x_1); +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_free_object(x_27); +lean_free_object(x_4); +x_32 = lean_box(0); +lean_inc(x_3); +x_33 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___spec__1___lambda__1(x_3, x_25, x_15, x_32, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_29); +lean_dec(x_15); +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 = lean_ctor_get(x_34, 0); +lean_inc(x_36); +lean_dec(x_34); +x_4 = x_36; +x_13 = x_35; +goto _start; +} +else +{ +lean_object* x_38; +lean_dec(x_25); +lean_dec(x_3); +lean_dec(x_2); +x_38 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1; +lean_ctor_set(x_4, 0, x_38); +lean_ctor_set(x_27, 0, x_4); +return x_27; +} +} +else +{ +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_27, 1); +lean_inc(x_39); +lean_dec(x_27); +x_40 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_25, x_1); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_free_object(x_4); +x_41 = lean_box(0); +lean_inc(x_3); +x_42 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___spec__1___lambda__1(x_3, x_25, x_15, x_41, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_39); +lean_dec(x_15); +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_ctor_get(x_43, 0); +lean_inc(x_45); +lean_dec(x_43); +x_4 = x_45; +x_13 = x_44; +goto _start; +} +else +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_25); +lean_dec(x_3); +lean_dec(x_2); +x_47 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1; +lean_ctor_set(x_4, 0, x_47); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_4); +lean_ctor_set(x_48, 1, x_39); +return x_48; +} +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; uint8_t 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; lean_object* x_67; uint8_t x_68; +x_49 = lean_ctor_get(x_21, 0); +x_50 = lean_ctor_get(x_21, 1); +x_51 = lean_ctor_get(x_21, 3); +x_52 = lean_ctor_get(x_21, 4); +x_53 = lean_ctor_get(x_21, 5); +x_54 = lean_ctor_get_uint8(x_21, sizeof(void*)*11); +x_55 = lean_ctor_get(x_21, 6); +x_56 = lean_ctor_get_uint8(x_21, sizeof(void*)*11 + 1); +x_57 = lean_ctor_get_uint8(x_21, sizeof(void*)*11 + 2); +x_58 = lean_ctor_get_uint8(x_21, sizeof(void*)*11 + 3); +x_59 = lean_ctor_get_uint8(x_21, sizeof(void*)*11 + 4); +x_60 = lean_ctor_get(x_21, 7); +x_61 = lean_ctor_get(x_21, 8); +x_62 = lean_ctor_get(x_21, 9); +x_63 = lean_ctor_get(x_21, 10); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_55); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_21); +lean_inc(x_2); +lean_inc(x_50); +lean_inc(x_49); +x_64 = lean_alloc_ctor(0, 11, 5); +lean_ctor_set(x_64, 0, x_49); +lean_ctor_set(x_64, 1, x_50); +lean_ctor_set(x_64, 2, x_2); +lean_ctor_set(x_64, 3, x_51); +lean_ctor_set(x_64, 4, x_52); +lean_ctor_set(x_64, 5, x_53); +lean_ctor_set(x_64, 6, x_55); +lean_ctor_set(x_64, 7, x_60); +lean_ctor_set(x_64, 8, x_61); +lean_ctor_set(x_64, 9, x_62); +lean_ctor_set(x_64, 10, x_63); +lean_ctor_set_uint8(x_64, sizeof(void*)*11, x_54); +lean_ctor_set_uint8(x_64, sizeof(void*)*11 + 1, x_56); +lean_ctor_set_uint8(x_64, sizeof(void*)*11 + 2, x_57); +lean_ctor_set_uint8(x_64, sizeof(void*)*11 + 3, x_58); +lean_ctor_set_uint8(x_64, sizeof(void*)*11 + 4, x_59); +x_65 = l_Lean_Meta_Grind_setENode(x_49, x_64, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); +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 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_50, x_1); +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_dec(x_67); +lean_free_object(x_4); +x_69 = lean_box(0); +lean_inc(x_3); +x_70 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___spec__1___lambda__1(x_3, x_50, x_15, x_69, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_66); +lean_dec(x_15); +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_71, 0); +lean_inc(x_73); +lean_dec(x_71); +x_4 = x_73; +x_13 = x_72; +goto _start; +} +else +{ +lean_object* x_75; lean_object* x_76; +lean_dec(x_50); +lean_dec(x_3); +lean_dec(x_2); +x_75 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1; +lean_ctor_set(x_4, 0, x_75); +if (lean_is_scalar(x_67)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_67; +} +lean_ctor_set(x_76, 0, x_4); +lean_ctor_set(x_76, 1, x_66); +return x_76; +} +} +} +else +{ +uint8_t x_77; +lean_free_object(x_4); +lean_dec(x_15); +lean_dec(x_3); +lean_dec(x_2); +x_77 = !lean_is_exclusive(x_20); +if (x_77 == 0) +{ +return x_20; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_20, 0); +x_79 = lean_ctor_get(x_20, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_20); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_81 = lean_ctor_get(x_4, 1); +lean_inc(x_81); +lean_dec(x_4); +x_82 = lean_st_ref_get(x_5, x_13); +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); +lean_inc(x_81); +x_85 = l_Lean_Meta_Grind_Goal_getENode(x_83, x_81, x_11, x_12, x_84); +if (lean_obj_tag(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; uint8_t x_93; lean_object* x_94; uint8_t x_95; uint8_t x_96; uint8_t x_97; uint8_t 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; uint8_t x_108; +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 = lean_ctor_get(x_86, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_86, 1); +lean_inc(x_89); +x_90 = lean_ctor_get(x_86, 3); +lean_inc(x_90); +x_91 = lean_ctor_get(x_86, 4); +lean_inc(x_91); +x_92 = lean_ctor_get(x_86, 5); +lean_inc(x_92); +x_93 = lean_ctor_get_uint8(x_86, sizeof(void*)*11); +x_94 = lean_ctor_get(x_86, 6); +lean_inc(x_94); +x_95 = lean_ctor_get_uint8(x_86, sizeof(void*)*11 + 1); +x_96 = lean_ctor_get_uint8(x_86, sizeof(void*)*11 + 2); +x_97 = lean_ctor_get_uint8(x_86, sizeof(void*)*11 + 3); +x_98 = lean_ctor_get_uint8(x_86, sizeof(void*)*11 + 4); +x_99 = lean_ctor_get(x_86, 7); +lean_inc(x_99); +x_100 = lean_ctor_get(x_86, 8); +lean_inc(x_100); +x_101 = lean_ctor_get(x_86, 9); +lean_inc(x_101); +x_102 = lean_ctor_get(x_86, 10); +lean_inc(x_102); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + lean_ctor_release(x_86, 2); + lean_ctor_release(x_86, 3); + lean_ctor_release(x_86, 4); + lean_ctor_release(x_86, 5); + lean_ctor_release(x_86, 6); + lean_ctor_release(x_86, 7); + lean_ctor_release(x_86, 8); + lean_ctor_release(x_86, 9); + lean_ctor_release(x_86, 10); + x_103 = x_86; +} else { + lean_dec_ref(x_86); + x_103 = lean_box(0); +} +lean_inc(x_2); +lean_inc(x_89); +lean_inc(x_88); +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(0, 11, 5); +} else { + x_104 = x_103; +} +lean_ctor_set(x_104, 0, x_88); +lean_ctor_set(x_104, 1, x_89); +lean_ctor_set(x_104, 2, x_2); +lean_ctor_set(x_104, 3, x_90); +lean_ctor_set(x_104, 4, x_91); +lean_ctor_set(x_104, 5, x_92); +lean_ctor_set(x_104, 6, x_94); +lean_ctor_set(x_104, 7, x_99); +lean_ctor_set(x_104, 8, x_100); +lean_ctor_set(x_104, 9, x_101); +lean_ctor_set(x_104, 10, x_102); +lean_ctor_set_uint8(x_104, sizeof(void*)*11, x_93); +lean_ctor_set_uint8(x_104, sizeof(void*)*11 + 1, x_95); +lean_ctor_set_uint8(x_104, sizeof(void*)*11 + 2, x_96); +lean_ctor_set_uint8(x_104, sizeof(void*)*11 + 3, x_97); +lean_ctor_set_uint8(x_104, sizeof(void*)*11 + 4, x_98); +x_105 = l_Lean_Meta_Grind_setENode(x_88, x_104, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_87); +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_107 = x_105; +} else { + lean_dec_ref(x_105); + x_107 = lean_box(0); +} +x_108 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_89, x_1); +if (x_108 == 0) { -lean_object* x_23; lean_object* x_24; -lean_dec(x_18); -x_23 = lean_ctor_get(x_17, 1); -lean_inc(x_23); -lean_dec(x_17); -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_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_107); +x_109 = lean_box(0); lean_inc(x_3); -x_24 = l_Lean_Meta_Grind_propagateUp(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) -{ -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; +x_110 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___spec__1___lambda__1(x_3, x_89, x_81, x_109, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_106); +lean_dec(x_81); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = lean_ctor_get(x_111, 0); +lean_inc(x_113); +lean_dec(x_111); +x_4 = x_113; +x_13 = x_112; goto _start; } else { -uint8_t x_28; -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_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_89); lean_dec(x_3); -x_28 = !lean_is_exclusive(x_24); -if (x_28 == 0) -{ -return x_24; -} -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_dec(x_2); +x_115 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___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_81); +if (lean_is_scalar(x_107)) { + x_117 = lean_alloc_ctor(0, 2, 0); +} else { + x_117 = x_107; } +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_106); +return x_117; } } else { -uint8_t x_32; -lean_dec(x_16); -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_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_81); lean_dec(x_3); -x_32 = !lean_is_exclusive(x_17); -if (x_32 == 0) -{ -return x_17; +lean_dec(x_2); +x_118 = lean_ctor_get(x_85, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_85, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_120 = x_85; +} else { + lean_dec_ref(x_85); + x_120 = lean_box(0); } -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_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; +if (lean_is_scalar(x_120)) { + x_121 = lean_alloc_ctor(1, 2, 0); +} else { + x_121 = x_120; } +lean_ctor_set(x_121, 0, x_118); +lean_ctor_set(x_121, 1, x_119); +return x_121; } } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_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, lean_object* x_13) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_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_14 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_propagateOffsetEq(x_1, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_box(0); +lean_inc(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_1); +x_14 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___spec__1(x_1, x_2, x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_1); 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, 1); +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_14); -x_16 = l_Lean_Meta_Grind_isInconsistent(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_15); -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) +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +lean_dec(x_15); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_box(0); -x_21 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___spec__1(x_3, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); -if (lean_obj_tag(x_21) == 0) +uint8_t x_17; +x_17 = !lean_is_exclusive(x_14); +if (x_17 == 0) { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); -if (x_22 == 0) +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_14, 0); +lean_dec(x_18); +x_19 = lean_box(0); +lean_ctor_set(x_14, 0, x_19); +return x_14; +} +else { -lean_object* x_23; -x_23 = lean_ctor_get(x_21, 0); -lean_dec(x_23); -lean_ctor_set(x_21, 0, x_20); -return x_21; +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_14, 1); +lean_inc(x_20); +lean_dec(x_14); +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 { +uint8_t x_23; +x_23 = !lean_is_exclusive(x_14); +if (x_23 == 0) +{ 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_20); -lean_ctor_set(x_25, 1, x_24); -return x_25; +x_24 = lean_ctor_get(x_14, 0); +lean_dec(x_24); +x_25 = lean_ctor_get(x_16, 0); +lean_inc(x_25); +lean_dec(x_16); +lean_ctor_set(x_14, 0, x_25); +return x_14; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_14, 1); +lean_inc(x_26); +lean_dec(x_14); +x_27 = lean_ctor_get(x_16, 0); +lean_inc(x_27); +lean_dec(x_16); +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_26; -x_26 = !lean_is_exclusive(x_21); -if (x_26 == 0) +uint8_t x_29; +x_29 = !lean_is_exclusive(x_14); +if (x_29 == 0) { -return x_21; +return x_14; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_21, 0); -x_28 = lean_ctor_get(x_21, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_21); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_14, 0); +x_31 = lean_ctor_get(x_14, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_14); +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_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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: { -uint8_t x_30; +lean_object* x_14; +x_14 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -5116,34 +7373,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); -x_30 = !lean_is_exclusive(x_16); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_16, 0); -lean_dec(x_31); -x_32 = lean_box(0); -lean_ctor_set(x_16, 0, x_32); -return x_16; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_16, 1); -lean_inc(x_33); -lean_dec(x_16); -x_34 = lean_box(0); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -return x_35; -} +return x_14; } } -else +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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: { -uint8_t x_36; +lean_object* x_14; +x_14 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___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); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -5152,1327 +7391,1357 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); -x_36 = !lean_is_exclusive(x_14); -if (x_36 == 0) -{ +lean_dec(x_1); return x_14; } -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -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_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_Core_0__Lean_Meta_Grind_addEqStep_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, uint8_t 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, lean_object* x_21, lean_object* x_22) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_inc(x_21); -lean_inc(x_20); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_1); -x_23 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents(x_1, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -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); -x_25 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown(x_2, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_24); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); -x_27 = lean_st_ref_get(x_14, 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 = l_Lean_Meta_Grind_Goal_getENode(x_28, x_3, x_20, x_21, x_29); -if (lean_obj_tag(x_30) == 0) -{ -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(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; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t 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; uint8_t x_54; -x_34 = lean_ctor_get(x_31, 1); -lean_dec(x_34); -x_35 = lean_ctor_get(x_4, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_4, 1); -lean_inc(x_36); -x_37 = lean_ctor_get(x_4, 2); -lean_inc(x_37); -x_38 = lean_ctor_get(x_4, 3); -lean_inc(x_38); -x_39 = lean_ctor_get(x_4, 4); -lean_inc(x_39); -x_40 = lean_ctor_get(x_4, 5); -lean_inc(x_40); -x_41 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); -x_42 = lean_ctor_get(x_4, 6); -lean_inc(x_42); -x_43 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); -x_44 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); -x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 3); -x_46 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 4); -x_47 = lean_ctor_get(x_4, 7); -lean_inc(x_47); -x_48 = lean_ctor_get(x_4, 8); -lean_inc(x_48); -x_49 = lean_ctor_get(x_4, 9); -lean_inc(x_49); -x_50 = lean_ctor_get(x_4, 10); -lean_inc(x_50); -lean_ctor_set(x_31, 1, x_36); -x_51 = l_Lean_Meta_Grind_setENode(x_5, x_31, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_32); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -x_53 = lean_nat_add(x_42, x_6); -lean_dec(x_42); -if (x_45 == 0) -{ -x_54 = x_12; -goto block_79; -} -else -{ -uint8_t x_80; -x_80 = 1; -x_54 = x_80; -goto block_79; -} -block_79: -{ -uint8_t x_55; -if (x_10 == 0) -{ -if (x_46 == 0) -{ -x_55 = x_11; -goto block_76; -} -else -{ -uint8_t x_77; -x_77 = 1; -x_55 = x_77; -goto block_76; -} -} -else -{ -uint8_t x_78; -x_78 = 1; -x_55 = x_78; -goto block_76; -} -block_76: -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -lean_inc(x_35); -x_56 = lean_alloc_ctor(0, 11, 5); -lean_ctor_set(x_56, 0, x_35); -lean_ctor_set(x_56, 1, x_7); -lean_ctor_set(x_56, 2, x_37); -lean_ctor_set(x_56, 3, x_38); -lean_ctor_set(x_56, 4, x_39); -lean_ctor_set(x_56, 5, x_40); -lean_ctor_set(x_56, 6, x_53); -lean_ctor_set(x_56, 7, x_47); -lean_ctor_set(x_56, 8, x_48); -lean_ctor_set(x_56, 9, x_49); -lean_ctor_set(x_56, 10, x_50); -lean_ctor_set_uint8(x_56, sizeof(void*)*11, x_41); -lean_ctor_set_uint8(x_56, sizeof(void*)*11 + 1, x_43); -lean_ctor_set_uint8(x_56, sizeof(void*)*11 + 2, x_44); -lean_ctor_set_uint8(x_56, sizeof(void*)*11 + 3, x_54); -lean_ctor_set_uint8(x_56, sizeof(void*)*11 + 4, x_55); -lean_inc(x_8); -x_57 = l_Lean_Meta_Grind_setENode(x_8, x_56, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_52); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -lean_dec(x_57); -lean_inc(x_1); -x_59 = l_Lean_Meta_Grind_copyParentsTo(x_1, x_8, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_58); -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -lean_dec(x_59); -x_61 = l_Lean_Meta_Grind_isInconsistent(x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_60); -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; -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_dec(x_61); -x_65 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_updateMT(x_35, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_64); -lean_dec(x_35); -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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_4, x_9, x_1, x_66, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_67); -lean_dec(x_66); -return x_68; -} -else -{ -uint8_t x_69; -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_object* x_12; +x_12 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots(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_1); -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; -lean_dec(x_35); -x_73 = lean_ctor_get(x_61, 1); -lean_inc(x_73); -lean_dec(x_61); -x_74 = lean_box(0); -x_75 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_4, x_9, x_1, x_74, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_73); -return x_75; -} -} +lean_dec(x_3); +return x_12; } } -else +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* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, 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_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t 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; uint8_t x_102; lean_object* x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; -x_81 = lean_ctor_get(x_31, 0); -x_82 = lean_ctor_get(x_31, 2); -x_83 = lean_ctor_get(x_31, 3); -x_84 = lean_ctor_get(x_31, 4); -x_85 = lean_ctor_get(x_31, 5); -x_86 = lean_ctor_get_uint8(x_31, sizeof(void*)*11); -x_87 = lean_ctor_get(x_31, 6); -x_88 = lean_ctor_get_uint8(x_31, sizeof(void*)*11 + 1); -x_89 = lean_ctor_get_uint8(x_31, sizeof(void*)*11 + 2); -x_90 = lean_ctor_get_uint8(x_31, sizeof(void*)*11 + 3); -x_91 = lean_ctor_get_uint8(x_31, sizeof(void*)*11 + 4); -x_92 = lean_ctor_get(x_31, 7); -x_93 = lean_ctor_get(x_31, 8); -x_94 = lean_ctor_get(x_31, 9); -x_95 = lean_ctor_get(x_31, 10); -lean_inc(x_95); -lean_inc(x_94); -lean_inc(x_93); -lean_inc(x_92); -lean_inc(x_87); -lean_inc(x_85); -lean_inc(x_84); -lean_inc(x_83); -lean_inc(x_82); -lean_inc(x_81); -lean_dec(x_31); -x_96 = lean_ctor_get(x_4, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_4, 1); -lean_inc(x_97); -x_98 = lean_ctor_get(x_4, 2); -lean_inc(x_98); -x_99 = lean_ctor_get(x_4, 3); -lean_inc(x_99); -x_100 = lean_ctor_get(x_4, 4); -lean_inc(x_100); -x_101 = lean_ctor_get(x_4, 5); -lean_inc(x_101); -x_102 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); -x_103 = lean_ctor_get(x_4, 6); -lean_inc(x_103); -x_104 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); -x_105 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); -x_106 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 3); -x_107 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 4); -x_108 = lean_ctor_get(x_4, 7); -lean_inc(x_108); -x_109 = lean_ctor_get(x_4, 8); -lean_inc(x_109); -x_110 = lean_ctor_get(x_4, 9); -lean_inc(x_110); -x_111 = lean_ctor_get(x_4, 10); -lean_inc(x_111); -x_112 = lean_alloc_ctor(0, 11, 5); -lean_ctor_set(x_112, 0, x_81); -lean_ctor_set(x_112, 1, x_97); -lean_ctor_set(x_112, 2, x_82); -lean_ctor_set(x_112, 3, x_83); -lean_ctor_set(x_112, 4, x_84); -lean_ctor_set(x_112, 5, x_85); -lean_ctor_set(x_112, 6, x_87); -lean_ctor_set(x_112, 7, x_92); -lean_ctor_set(x_112, 8, x_93); -lean_ctor_set(x_112, 9, x_94); -lean_ctor_set(x_112, 10, x_95); -lean_ctor_set_uint8(x_112, sizeof(void*)*11, x_86); -lean_ctor_set_uint8(x_112, sizeof(void*)*11 + 1, x_88); -lean_ctor_set_uint8(x_112, sizeof(void*)*11 + 2, x_89); -lean_ctor_set_uint8(x_112, sizeof(void*)*11 + 3, x_90); -lean_ctor_set_uint8(x_112, sizeof(void*)*11 + 4, x_91); -x_113 = l_Lean_Meta_Grind_setENode(x_5, x_112, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_32); -x_114 = lean_ctor_get(x_113, 1); -lean_inc(x_114); -lean_dec(x_113); -x_115 = lean_nat_add(x_103, x_6); -lean_dec(x_103); -if (x_106 == 0) +if (lean_obj_tag(x_1) == 0) { -x_116 = x_12; -goto block_141; +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_3); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_2); +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 { -uint8_t x_142; -x_142 = 1; -x_116 = x_142; -goto block_141; -} -block_141: +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_1, 1); +lean_inc(x_15); +x_16 = lean_ctor_get(x_1, 3); +lean_inc(x_16); +lean_dec(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_3); +x_17 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___spec__1(x_14, 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_17) == 0) { -uint8_t x_117; -if (x_10 == 0) +lean_object* x_18; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 0) { -if (x_107 == 0) +uint8_t x_19; +lean_dec(x_16); +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_3); +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) { -x_117 = x_11; -goto block_138; +lean_object* x_20; +x_20 = lean_ctor_get(x_17, 0); +lean_dec(x_20); +return x_17; } else { -uint8_t x_139; -x_139 = 1; -x_117 = x_139; -goto block_138; +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_17, 1); +lean_inc(x_21); +lean_dec(x_17); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_18); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } else { -uint8_t x_140; -x_140 = 1; -x_117 = x_140; -goto block_138; -} -block_138: -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; -lean_inc(x_96); -x_118 = lean_alloc_ctor(0, 11, 5); -lean_ctor_set(x_118, 0, x_96); -lean_ctor_set(x_118, 1, x_7); -lean_ctor_set(x_118, 2, x_98); -lean_ctor_set(x_118, 3, x_99); -lean_ctor_set(x_118, 4, x_100); -lean_ctor_set(x_118, 5, x_101); -lean_ctor_set(x_118, 6, x_115); -lean_ctor_set(x_118, 7, x_108); -lean_ctor_set(x_118, 8, x_109); -lean_ctor_set(x_118, 9, x_110); -lean_ctor_set(x_118, 10, x_111); -lean_ctor_set_uint8(x_118, sizeof(void*)*11, x_102); -lean_ctor_set_uint8(x_118, sizeof(void*)*11 + 1, x_104); -lean_ctor_set_uint8(x_118, sizeof(void*)*11 + 2, x_105); -lean_ctor_set_uint8(x_118, sizeof(void*)*11 + 3, x_116); -lean_ctor_set_uint8(x_118, sizeof(void*)*11 + 4, x_117); +lean_object* x_23; lean_object* x_24; +lean_dec(x_18); +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_dec(x_17); +lean_inc(x_10); +lean_inc(x_9); lean_inc(x_8); -x_119 = l_Lean_Meta_Grind_setENode(x_8, x_118, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_114); -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -lean_dec(x_119); -lean_inc(x_1); -x_121 = l_Lean_Meta_Grind_copyParentsTo(x_1, x_8, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_120); -x_122 = lean_ctor_get(x_121, 1); -lean_inc(x_122); -lean_dec(x_121); -x_123 = l_Lean_Meta_Grind_isInconsistent(x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_122); -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -x_125 = lean_unbox(x_124); -lean_dec(x_124); -if (x_125 == 0) -{ -lean_object* x_126; lean_object* x_127; -x_126 = lean_ctor_get(x_123, 1); -lean_inc(x_126); -lean_dec(x_123); -x_127 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_updateMT(x_96, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_126); -lean_dec(x_96); -if (lean_obj_tag(x_127) == 0) +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_24 = l_Lean_Meta_Grind_propagateUp(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) { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_127, 1); -lean_inc(x_129); -lean_dec(x_127); -x_130 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_4, x_9, x_1, x_128, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_129); -lean_dec(x_128); -return x_130; +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_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); +uint8_t x_28; lean_dec(x_16); -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_1); -x_131 = lean_ctor_get(x_127, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_127, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_127)) { - lean_ctor_release(x_127, 0); - lean_ctor_release(x_127, 1); - x_133 = x_127; -} else { - lean_dec_ref(x_127); - x_133 = lean_box(0); -} -if (lean_is_scalar(x_133)) { - x_134 = lean_alloc_ctor(1, 2, 0); -} else { - x_134 = x_133; -} -lean_ctor_set(x_134, 0, x_131); -lean_ctor_set(x_134, 1, x_132); -return x_134; -} +lean_dec(x_3); +x_28 = !lean_is_exclusive(x_24); +if (x_28 == 0) +{ +return x_24; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; -lean_dec(x_96); -x_135 = lean_ctor_get(x_123, 1); -lean_inc(x_135); -lean_dec(x_123); -x_136 = lean_box(0); -x_137 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_4, x_9, x_1, x_136, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_135); -return x_137; -} +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; } } } } else { -uint8_t x_143; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); +uint8_t x_32; lean_dec(x_16); 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_1); -x_143 = !lean_is_exclusive(x_30); -if (x_143 == 0) +lean_dec(x_3); +x_32 = !lean_is_exclusive(x_17); +if (x_32 == 0) { -return x_30; +return x_17; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_30, 0); -x_145 = lean_ctor_get(x_30, 1); -lean_inc(x_145); -lean_inc(x_144); -lean_dec(x_30); -x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_144); -lean_ctor_set(x_146, 1, x_145); -return x_146; +lean_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_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; } } } -else +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_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, lean_object* x_13) { +_start: { -uint8_t x_147; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_18); +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); +x_14 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_propagateOffsetEq(x_1, 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_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, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = l_Lean_Meta_Grind_isInconsistent(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_15); +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) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); +x_20 = lean_box(0); +x_21 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___spec__1(x_3, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +lean_ctor_set(x_21, 0, x_20); +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_20); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_21); +if (x_26 == 0) +{ +return x_21; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_21, 0); +x_28 = lean_ctor_get(x_21, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_21); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +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_7); +lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_147 = !lean_is_exclusive(x_25); -if (x_147 == 0) +x_30 = !lean_is_exclusive(x_16); +if (x_30 == 0) { -return x_25; +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_16, 0); +lean_dec(x_31); +x_32 = lean_box(0); +lean_ctor_set(x_16, 0, x_32); +return x_16; } else { -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_25, 0); -x_149 = lean_ctor_get(x_25, 1); -lean_inc(x_149); -lean_inc(x_148); -lean_dec(x_25); -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; +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_16, 1); +lean_inc(x_33); +lean_dec(x_16); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; } } } else { -uint8_t x_151; -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); +uint8_t x_36; +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_151 = !lean_is_exclusive(x_23); -if (x_151 == 0) +x_36 = !lean_is_exclusive(x_14); +if (x_36 == 0) { -return x_23; +return x_14; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_23, 0); -x_153 = lean_ctor_get(x_23, 1); -lean_inc(x_153); -lean_inc(x_152); -lean_dec(x_23); -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; +lean_object* x_37; lean_object* x_38; lean_object* x_39; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; } } } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__1() { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_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, lean_object* x_13, uint8_t x_14, uint8_t 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) { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked(" new root ", 10, 10); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2() { -_start: +lean_object* x_27; +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_1); +x_27 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_reinsertParents(x_1, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26); +if (lean_obj_tag(x_27) == 0) { -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__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +x_29 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown(x_2, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_28); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = lean_st_ref_get(x_18, x_30); +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_3); +x_34 = l_Lean_Meta_Grind_Goal_getENode(x_32, x_3, x_24, x_25, x_33); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; uint8_t 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); +x_37 = !lean_is_exclusive(x_35); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_38 = lean_ctor_get(x_35, 1); +lean_dec(x_38); +x_39 = lean_ctor_get(x_4, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_4, 1); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 2); +lean_inc(x_41); +x_42 = lean_ctor_get(x_4, 3); +lean_inc(x_42); +x_43 = lean_ctor_get(x_4, 4); +lean_inc(x_43); +x_44 = lean_ctor_get(x_4, 5); +lean_inc(x_44); +x_45 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_46 = lean_ctor_get(x_4, 6); +lean_inc(x_46); +x_47 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_48 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_49 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 3); +x_50 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 4); +x_51 = lean_ctor_get(x_4, 7); +lean_inc(x_51); +x_52 = lean_ctor_get(x_4, 8); +lean_inc(x_52); +x_53 = lean_ctor_get(x_4, 9); +lean_inc(x_53); +x_54 = lean_ctor_get(x_4, 10); +lean_inc(x_54); +lean_ctor_set(x_35, 1, x_40); +x_55 = l_Lean_Meta_Grind_setENode(x_5, x_35, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_36); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = lean_nat_add(x_46, x_6); +lean_dec(x_46); +if (x_49 == 0) +{ +x_58 = x_16; +goto block_97; } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__3() { -_start: +else { -lean_object* x_1; -x_1 = lean_mk_string_unchecked(", ", 2, 2); -return x_1; +uint8_t x_98; +x_98 = 1; +x_58 = x_98; +goto block_97; } +block_97: +{ +uint8_t x_59; +if (x_14 == 0) +{ +if (x_50 == 0) +{ +x_59 = x_15; +goto block_94; } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4() { -_start: +else { -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__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; +uint8_t x_95; +x_95 = 1; +x_59 = x_95; +goto block_94; } } -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: +else { -lean_object* x_21; -lean_inc(x_1); -x_21 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans(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) +uint8_t x_96; +x_96 = 1; +x_59 = x_96; +goto block_94; +} +block_94: { -lean_object* x_22; uint8_t x_23; -x_22 = lean_ctor_get(x_21, 1); +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_inc(x_39); +x_60 = lean_alloc_ctor(0, 11, 5); +lean_ctor_set(x_60, 0, x_39); +lean_ctor_set(x_60, 1, x_7); +lean_ctor_set(x_60, 2, x_41); +lean_ctor_set(x_60, 3, x_42); +lean_ctor_set(x_60, 4, x_43); +lean_ctor_set(x_60, 5, x_44); +lean_ctor_set(x_60, 6, x_57); +lean_ctor_set(x_60, 7, x_51); +lean_ctor_set(x_60, 8, x_52); +lean_ctor_set(x_60, 9, x_53); +lean_ctor_set(x_60, 10, x_54); +lean_ctor_set_uint8(x_60, sizeof(void*)*11, x_45); +lean_ctor_set_uint8(x_60, sizeof(void*)*11 + 1, x_47); +lean_ctor_set_uint8(x_60, sizeof(void*)*11 + 2, x_48); +lean_ctor_set_uint8(x_60, sizeof(void*)*11 + 3, x_58); +lean_ctor_set_uint8(x_60, sizeof(void*)*11 + 4, x_59); +lean_inc(x_8); +x_61 = l_Lean_Meta_Grind_setENode(x_8, x_60, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_56); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); lean_inc(x_22); -lean_dec(x_21); -x_23 = !lean_is_exclusive(x_2); -if (x_23 == 0) +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +x_63 = l_Lean_Meta_Grind_propagateBeta(x_9, x_10, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_62); +if (lean_obj_tag(x_63) == 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; -x_24 = lean_ctor_get(x_2, 2); -x_25 = lean_ctor_get(x_2, 5); -lean_dec(x_25); -x_26 = lean_ctor_get(x_2, 4); -lean_dec(x_26); -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_3); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_4); +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +lean_inc(x_25); 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*)*11, 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) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; -x_31 = lean_ctor_get(x_29, 1); -x_32 = lean_ctor_get(x_29, 0); -lean_dec(x_32); -x_33 = lean_ctor_get(x_6, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_6, 1); -lean_inc(x_34); -x_35 = lean_ctor_get(x_6, 6); -lean_inc(x_35); -x_36 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 3); -x_37 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 4); -x_38 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents(x_33, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_31); -if (lean_obj_tag(x_38) == 0) +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +x_65 = l_Lean_Meta_Grind_propagateBeta(x_11, x_12, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_64); +if (lean_obj_tag(x_65) == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -x_41 = lean_ctor_get(x_7, 2); -lean_inc(x_41); -lean_dec(x_7); -lean_inc(x_41); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +x_67 = l_Lean_Meta_Grind_resetParentsOf(x_3, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_66); +lean_dec(x_3); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); lean_inc(x_1); -x_42 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots(x_1, x_41, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_40); -if (lean_obj_tag(x_42) == 0) +x_69 = l_Lean_Meta_Grind_copyParentsTo(x_1, x_8, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_68); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +lean_dec(x_69); +x_71 = l_Lean_Meta_Grind_isInconsistent(x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_unbox(x_72); +lean_dec(x_72); +if (x_73 == 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); -lean_inc(x_8); -x_44 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, 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_74; lean_object* x_75; +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); +lean_dec(x_71); +x_75 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_updateMT(x_39, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_74); +lean_dec(x_39); +if (lean_obj_tag(x_75) == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_free_object(x_29); -lean_dec(x_8); -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_dec(x_44); -x_48 = lean_box(0); -x_49 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_39, x_1, x_33, x_9, x_24, x_35, x_34, x_41, x_6, x_10, x_37, x_36, x_48, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_47); -lean_dec(x_35); -return x_49; +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); +x_78 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_4, x_13, x_1, x_76, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_77); +lean_dec(x_76); +return x_78; } else { -uint8_t x_50; -x_50 = !lean_is_exclusive(x_44); -if (x_50 == 0) +uint8_t x_79; +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_13); +lean_dec(x_4); +lean_dec(x_1); +x_79 = !lean_is_exclusive(x_75); +if (x_79 == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_44, 1); -x_52 = lean_ctor_get(x_44, 0); -lean_dec(x_52); -x_53 = l_Lean_Meta_Grind_updateLastTag(x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_51); -if (lean_obj_tag(x_53) == 0) +return x_75; +} +else { -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_1); -x_55 = l_Lean_Meta_Grind_ppENodeRef(x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_54); -if (lean_obj_tag(x_55) == 0) +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_75, 0); +x_81 = lean_ctor_get(x_75, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_75); +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_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_41); -x_58 = l_Lean_Meta_Grind_ppENodeRef(x_41, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_57); -if (lean_obj_tag(x_58) == 0) +lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_39); +x_83 = lean_ctor_get(x_71, 1); +lean_inc(x_83); +lean_dec(x_71); +x_84 = lean_box(0); +x_85 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_4, x_13, x_1, x_84, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_83); +return x_85; +} +} +else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -lean_dec(x_58); -x_61 = lean_st_ref_get(x_12, x_60); -x_62 = !lean_is_exclusive(x_61); -if (x_62 == 0) +uint8_t x_86; +lean_dec(x_39); +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_13); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_86 = !lean_is_exclusive(x_65); +if (x_86 == 0) { -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_1); -x_65 = l_Lean_Meta_Grind_Goal_getRoot(x_63, x_1, x_18, x_19, x_64); -if (lean_obj_tag(x_65) == 0) +return x_65; +} +else { -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_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_65, 0); +x_88 = lean_ctor_get(x_65, 1); +lean_inc(x_88); +lean_inc(x_87); lean_dec(x_65); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_68 = l_Lean_Meta_Grind_ppENodeRef(x_66, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_67); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; 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_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_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; -lean_ctor_set_tag(x_61, 7); -lean_ctor_set(x_61, 1, x_56); -lean_ctor_set(x_61, 0, x_71); -x_72 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -lean_ctor_set_tag(x_44, 7); -lean_ctor_set(x_44, 1, x_72); -lean_ctor_set(x_44, 0, x_61); -lean_ctor_set_tag(x_29, 7); -lean_ctor_set(x_29, 1, x_59); -lean_ctor_set(x_29, 0, x_44); -x_73 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; -x_74 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_74, 0, x_29); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_69); -x_76 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_71); -x_77 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_8, x_76, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, 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); -x_80 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_39, x_1, x_33, x_9, x_24, x_35, x_34, x_41, x_6, x_10, x_37, x_36, x_78, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_79); -lean_dec(x_78); -lean_dec(x_35); -return x_80; +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_81; -lean_free_object(x_61); -lean_dec(x_59); -lean_dec(x_56); -lean_free_object(x_44); -lean_dec(x_41); +uint8_t x_90; lean_dec(x_39); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); +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_17); -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_11); lean_dec(x_8); -lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_1); -x_81 = !lean_is_exclusive(x_68); -if (x_81 == 0) +x_90 = !lean_is_exclusive(x_63); +if (x_90 == 0) { -return x_68; +return x_63; } else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -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 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_63, 0); +x_92 = lean_ctor_get(x_63, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_63); +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 { -uint8_t x_85; -lean_free_object(x_61); -lean_dec(x_59); -lean_dec(x_56); -lean_free_object(x_44); -lean_dec(x_41); -lean_dec(x_39); +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; uint8_t x_122; uint8_t x_123; uint8_t x_124; uint8_t 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_99 = lean_ctor_get(x_35, 0); +x_100 = lean_ctor_get(x_35, 2); +x_101 = lean_ctor_get(x_35, 3); +x_102 = lean_ctor_get(x_35, 4); +x_103 = lean_ctor_get(x_35, 5); +x_104 = lean_ctor_get_uint8(x_35, sizeof(void*)*11); +x_105 = lean_ctor_get(x_35, 6); +x_106 = lean_ctor_get_uint8(x_35, sizeof(void*)*11 + 1); +x_107 = lean_ctor_get_uint8(x_35, sizeof(void*)*11 + 2); +x_108 = lean_ctor_get_uint8(x_35, sizeof(void*)*11 + 3); +x_109 = lean_ctor_get_uint8(x_35, sizeof(void*)*11 + 4); +x_110 = lean_ctor_get(x_35, 7); +x_111 = lean_ctor_get(x_35, 8); +x_112 = lean_ctor_get(x_35, 9); +x_113 = lean_ctor_get(x_35, 10); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_inc(x_110); +lean_inc(x_105); +lean_inc(x_103); +lean_inc(x_102); +lean_inc(x_101); +lean_inc(x_100); +lean_inc(x_99); lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); +x_114 = lean_ctor_get(x_4, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_4, 1); +lean_inc(x_115); +x_116 = lean_ctor_get(x_4, 2); +lean_inc(x_116); +x_117 = lean_ctor_get(x_4, 3); +lean_inc(x_117); +x_118 = lean_ctor_get(x_4, 4); +lean_inc(x_118); +x_119 = lean_ctor_get(x_4, 5); +lean_inc(x_119); +x_120 = lean_ctor_get_uint8(x_4, sizeof(void*)*11); +x_121 = lean_ctor_get(x_4, 6); +lean_inc(x_121); +x_122 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 1); +x_123 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 2); +x_124 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 3); +x_125 = lean_ctor_get_uint8(x_4, sizeof(void*)*11 + 4); +x_126 = lean_ctor_get(x_4, 7); +lean_inc(x_126); +x_127 = lean_ctor_get(x_4, 8); +lean_inc(x_127); +x_128 = lean_ctor_get(x_4, 9); +lean_inc(x_128); +x_129 = lean_ctor_get(x_4, 10); +lean_inc(x_129); +x_130 = lean_alloc_ctor(0, 11, 5); +lean_ctor_set(x_130, 0, x_99); +lean_ctor_set(x_130, 1, x_115); +lean_ctor_set(x_130, 2, x_100); +lean_ctor_set(x_130, 3, x_101); +lean_ctor_set(x_130, 4, x_102); +lean_ctor_set(x_130, 5, x_103); +lean_ctor_set(x_130, 6, x_105); +lean_ctor_set(x_130, 7, x_110); +lean_ctor_set(x_130, 8, x_111); +lean_ctor_set(x_130, 9, x_112); +lean_ctor_set(x_130, 10, x_113); +lean_ctor_set_uint8(x_130, sizeof(void*)*11, x_104); +lean_ctor_set_uint8(x_130, sizeof(void*)*11 + 1, x_106); +lean_ctor_set_uint8(x_130, sizeof(void*)*11 + 2, x_107); +lean_ctor_set_uint8(x_130, sizeof(void*)*11 + 3, x_108); +lean_ctor_set_uint8(x_130, sizeof(void*)*11 + 4, x_109); +x_131 = l_Lean_Meta_Grind_setENode(x_5, x_130, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_36); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +lean_dec(x_131); +x_133 = lean_nat_add(x_121, x_6); +lean_dec(x_121); +if (x_124 == 0) +{ +x_134 = x_16; +goto block_173; +} +else +{ +uint8_t x_174; +x_174 = 1; +x_134 = x_174; +goto block_173; +} +block_173: +{ +uint8_t x_135; +if (x_14 == 0) +{ +if (x_125 == 0) +{ +x_135 = x_15; +goto block_170; +} +else +{ +uint8_t x_171; +x_171 = 1; +x_135 = x_171; +goto block_170; +} +} +else +{ +uint8_t x_172; +x_172 = 1; +x_135 = x_172; +goto block_170; +} +block_170: +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_inc(x_114); +x_136 = lean_alloc_ctor(0, 11, 5); +lean_ctor_set(x_136, 0, x_114); +lean_ctor_set(x_136, 1, x_7); +lean_ctor_set(x_136, 2, x_116); +lean_ctor_set(x_136, 3, x_117); +lean_ctor_set(x_136, 4, x_118); +lean_ctor_set(x_136, 5, x_119); +lean_ctor_set(x_136, 6, x_133); +lean_ctor_set(x_136, 7, x_126); +lean_ctor_set(x_136, 8, x_127); +lean_ctor_set(x_136, 9, x_128); +lean_ctor_set(x_136, 10, x_129); +lean_ctor_set_uint8(x_136, sizeof(void*)*11, x_120); +lean_ctor_set_uint8(x_136, sizeof(void*)*11 + 1, x_122); +lean_ctor_set_uint8(x_136, sizeof(void*)*11 + 2, x_123); +lean_ctor_set_uint8(x_136, sizeof(void*)*11 + 3, x_134); +lean_ctor_set_uint8(x_136, sizeof(void*)*11 + 4, x_135); +lean_inc(x_8); +x_137 = l_Lean_Meta_Grind_setENode(x_8, x_136, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_132); +x_138 = lean_ctor_get(x_137, 1); +lean_inc(x_138); +lean_dec(x_137); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +x_139 = l_Lean_Meta_Grind_propagateBeta(x_9, x_10, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_138); +if (lean_obj_tag(x_139) == 0) +{ +lean_object* x_140; lean_object* x_141; +x_140 = lean_ctor_get(x_139, 1); +lean_inc(x_140); +lean_dec(x_139); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +x_141 = l_Lean_Meta_Grind_propagateBeta(x_11, x_12, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_140); +if (lean_obj_tag(x_141) == 0) +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; +x_142 = lean_ctor_get(x_141, 1); +lean_inc(x_142); +lean_dec(x_141); +x_143 = l_Lean_Meta_Grind_resetParentsOf(x_3, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_142); +lean_dec(x_3); +x_144 = lean_ctor_get(x_143, 1); +lean_inc(x_144); +lean_dec(x_143); +lean_inc(x_1); +x_145 = l_Lean_Meta_Grind_copyParentsTo(x_1, x_8, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_144); +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +lean_dec(x_145); +x_147 = l_Lean_Meta_Grind_isInconsistent(x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_146); +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +x_149 = lean_unbox(x_148); +lean_dec(x_148); +if (x_149 == 0) +{ +lean_object* x_150; lean_object* x_151; +x_150 = lean_ctor_get(x_147, 1); +lean_inc(x_150); +lean_dec(x_147); +x_151 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_updateMT(x_114, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_150); +lean_dec(x_114); +if (lean_obj_tag(x_151) == 0) +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; +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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_4, x_13, x_1, x_152, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_153); +lean_dec(x_152); +return x_154; +} +else +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +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_17); -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_6); +lean_dec(x_4); lean_dec(x_1); -x_85 = !lean_is_exclusive(x_65); -if (x_85 == 0) -{ -return x_65; +x_155 = lean_ctor_get(x_151, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_151, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + x_157 = x_151; +} else { + lean_dec_ref(x_151); + x_157 = lean_box(0); } -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_65, 0); -x_87 = lean_ctor_get(x_65, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_65); -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; +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(1, 2, 0); +} else { + x_158 = x_157; } +lean_ctor_set(x_158, 0, x_155); +lean_ctor_set(x_158, 1, x_156); +return x_158; } } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_61, 0); -x_90 = lean_ctor_get(x_61, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_61); -lean_inc(x_1); -x_91 = l_Lean_Meta_Grind_Goal_getRoot(x_89, x_1, x_18, x_19, x_90); -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); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_17); -lean_inc(x_16); -x_94 = l_Lean_Meta_Grind_ppENodeRef(x_92, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_93); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; 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_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 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; -x_98 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_56); -x_99 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -lean_ctor_set_tag(x_44, 7); -lean_ctor_set(x_44, 1, x_99); -lean_ctor_set(x_44, 0, x_98); -lean_ctor_set_tag(x_29, 7); -lean_ctor_set(x_29, 1, x_59); -lean_ctor_set(x_29, 0, x_44); -x_100 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_29); -lean_ctor_set(x_101, 1, x_100); -x_102 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_95); -x_103 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_97); -x_104 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_8, x_103, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_96); -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 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_39, x_1, x_33, x_9, x_24, x_35, x_34, x_41, x_6, x_10, x_37, x_36, x_105, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_106); -lean_dec(x_105); -lean_dec(x_35); -return x_107; +lean_object* x_159; lean_object* x_160; lean_object* x_161; +lean_dec(x_114); +x_159 = lean_ctor_get(x_147, 1); +lean_inc(x_159); +lean_dec(x_147); +x_160 = lean_box(0); +x_161 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__1(x_4, x_13, x_1, x_160, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_159); +return x_161; +} } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -lean_dec(x_59); -lean_dec(x_56); -lean_free_object(x_44); -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_114); +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_17); -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_6); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_1); -x_108 = lean_ctor_get(x_94, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_94, 1); -lean_inc(x_109); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_110 = x_94; +x_162 = lean_ctor_get(x_141, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_141, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_164 = x_141; } else { - lean_dec_ref(x_94); - x_110 = lean_box(0); + lean_dec_ref(x_141); + x_164 = lean_box(0); } -if (lean_is_scalar(x_110)) { - x_111 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_164)) { + x_165 = lean_alloc_ctor(1, 2, 0); } else { - x_111 = x_110; + x_165 = x_164; } -lean_ctor_set(x_111, 0, x_108); -lean_ctor_set(x_111, 1, x_109); -return x_111; +lean_ctor_set(x_165, 0, x_162); +lean_ctor_set(x_165, 1, x_163); +return x_165; } } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -lean_dec(x_59); -lean_dec(x_56); -lean_free_object(x_44); -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_114); +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_17); -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_11); lean_dec(x_8); -lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_1); -x_112 = lean_ctor_get(x_91, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_91, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_114 = x_91; +x_166 = lean_ctor_get(x_139, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_139, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_139)) { + lean_ctor_release(x_139, 0); + lean_ctor_release(x_139, 1); + x_168 = x_139; } else { - lean_dec_ref(x_91); - x_114 = lean_box(0); + lean_dec_ref(x_139); + x_168 = lean_box(0); } -if (lean_is_scalar(x_114)) { - x_115 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); } else { - x_115 = x_114; + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} } -lean_ctor_set(x_115, 0, x_112); -lean_ctor_set(x_115, 1, x_113); -return x_115; } } } else { -uint8_t x_116; -lean_dec(x_56); -lean_free_object(x_44); -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); +uint8_t x_175; +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_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_8); -lean_dec(x_6); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_1); -x_116 = !lean_is_exclusive(x_58); -if (x_116 == 0) +x_175 = !lean_is_exclusive(x_34); +if (x_175 == 0) { -return x_58; +return x_34; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_58, 0); -x_118 = lean_ctor_get(x_58, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_58); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -return x_119; +lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_176 = lean_ctor_get(x_34, 0); +x_177 = lean_ctor_get(x_34, 1); +lean_inc(x_177); +lean_inc(x_176); +lean_dec(x_34); +x_178 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_178, 0, x_176); +lean_ctor_set(x_178, 1, x_177); +return x_178; } } } else { -uint8_t x_120; -lean_free_object(x_44); -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); +uint8_t x_179; +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_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_8); -lean_dec(x_6); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_1); -x_120 = !lean_is_exclusive(x_55); -if (x_120 == 0) +x_179 = !lean_is_exclusive(x_29); +if (x_179 == 0) { -return x_55; +return x_29; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_55, 0); -x_122 = lean_ctor_get(x_55, 1); -lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_55); -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_180; lean_object* x_181; lean_object* x_182; +x_180 = lean_ctor_get(x_29, 0); +x_181 = lean_ctor_get(x_29, 1); +lean_inc(x_181); +lean_inc(x_180); +lean_dec(x_29); +x_182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_182, 0, x_180); +lean_ctor_set(x_182, 1, x_181); +return x_182; } } } else { -uint8_t x_124; -lean_free_object(x_44); -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); +uint8_t x_183; +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_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_8); -lean_dec(x_6); +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_124 = !lean_is_exclusive(x_53); -if (x_124 == 0) +x_183 = !lean_is_exclusive(x_27); +if (x_183 == 0) { -return x_53; +return x_27; +} +else +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_27, 0); +x_185 = lean_ctor_get(x_27, 1); +lean_inc(x_185); +lean_inc(x_184); +lean_dec(x_27); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set(x_186, 1, x_185); +return x_186; +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(" new root ", 10, 10); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2() { +_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__1; +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__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(", ", 2, 2); +return x_1; +} } -else +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4() { +_start: { -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_53, 0); -x_126 = lean_ctor_get(x_53, 1); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_53); -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; +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__3; +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, lean_object* 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: +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; +x_21 = lean_ctor_get(x_1, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_1, 1); +lean_inc(x_22); +x_23 = lean_ctor_get(x_1, 6); +lean_inc(x_23); +x_24 = lean_ctor_get_uint8(x_1, sizeof(void*)*11 + 3); +x_25 = lean_ctor_get_uint8(x_1, sizeof(void*)*11 + 4); +x_26 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents(x_21, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +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 = lean_ctor_get(x_2, 2); +lean_inc(x_29); +lean_dec(x_2); +lean_inc(x_29); +lean_inc(x_3); +x_30 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots(x_3, x_29, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_28); +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, 1); +lean_inc(x_31); +lean_dec(x_30); +lean_inc(x_4); +x_32 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_4, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_31); +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_dec(x_4); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_36 = lean_box(0); +x_37 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_27, x_3, x_21, x_5, x_6, x_23, x_22, x_29, x_7, x_8, x_9, x_11, x_1, x_10, x_25, x_24, x_36, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_35); +lean_dec(x_23); +return x_37; } else { -lean_object* x_128; lean_object* x_129; -x_128 = lean_ctor_get(x_44, 1); -lean_inc(x_128); -lean_dec(x_44); -x_129 = l_Lean_Meta_Grind_updateLastTag(x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_128); -if (lean_obj_tag(x_129) == 0) +uint8_t x_38; +x_38 = !lean_is_exclusive(x_32); +if (x_38 == 0) { -lean_object* x_130; lean_object* x_131; -x_130 = lean_ctor_get(x_129, 1); -lean_inc(x_130); -lean_dec(x_129); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_32, 1); +x_40 = lean_ctor_get(x_32, 0); +lean_dec(x_40); +x_41 = l_Lean_Meta_Grind_updateLastTag(x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_39); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +lean_dec(x_41); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -lean_inc(x_1); -x_131 = l_Lean_Meta_Grind_ppENodeRef(x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_130); -if (lean_obj_tag(x_131) == 0) +lean_inc(x_3); +x_43 = l_Lean_Meta_Grind_ppENodeRef(x_3, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_42); +if (lean_obj_tag(x_43) == 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_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_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -lean_inc(x_41); -x_134 = l_Lean_Meta_Grind_ppENodeRef(x_41, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_133); -if (lean_obj_tag(x_134) == 0) +lean_inc(x_29); +x_46 = l_Lean_Meta_Grind_ppENodeRef(x_29, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_45); +if (lean_obj_tag(x_46) == 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 = 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); -x_137 = lean_st_ref_get(x_12, x_136); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); -lean_inc(x_139); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_140 = x_137; -} else { - lean_dec_ref(x_137); - x_140 = lean_box(0); -} -lean_inc(x_1); -x_141 = l_Lean_Meta_Grind_Goal_getRoot(x_138, x_1, x_18, x_19, x_139); -if (lean_obj_tag(x_141) == 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_12, x_48); +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) { -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_141, 1); -lean_inc(x_143); -lean_dec(x_141); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_49, 0); +x_52 = lean_ctor_get(x_49, 1); +lean_inc(x_3); +x_53 = l_Lean_Meta_Grind_Goal_getRoot(x_51, x_3, x_18, x_19, x_52); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -x_144 = l_Lean_Meta_Grind_ppENodeRef(x_142, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_143); -if (lean_obj_tag(x_144) == 0) +x_56 = l_Lean_Meta_Grind_ppENodeRef(x_54, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_55); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -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_147 = 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_140)) { - x_148 = lean_alloc_ctor(7, 2, 0); -} else { - x_148 = x_140; - lean_ctor_set_tag(x_148, 7); -} -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_132); -x_149 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -x_150 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_149); -lean_ctor_set_tag(x_29, 7); -lean_ctor_set(x_29, 1, x_135); -lean_ctor_set(x_29, 0, x_150); -x_151 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; -x_152 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_152, 0, x_29); -lean_ctor_set(x_152, 1, x_151); -x_153 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_145); -x_154 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_147); -x_155 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_8, x_154, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_146); -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_155, 1); -lean_inc(x_157); -lean_dec(x_155); -x_158 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_39, x_1, x_33, x_9, x_24, x_35, x_34, x_41, x_6, x_10, x_37, x_36, x_156, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_157); -lean_dec(x_156); -lean_dec(x_35); -return x_158; +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_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_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +lean_ctor_set_tag(x_49, 7); +lean_ctor_set(x_49, 1, x_44); +lean_ctor_set(x_49, 0, x_59); +x_60 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +lean_ctor_set_tag(x_32, 7); +lean_ctor_set(x_32, 1, x_60); +lean_ctor_set(x_32, 0, x_49); +x_61 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_61, 0, x_32); +lean_ctor_set(x_61, 1, x_47); +x_62 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; +x_63 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +x_64 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_57); +x_65 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_59); +x_66 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_4, x_65, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_58); +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_go___lambda__2(x_27, x_3, x_21, x_5, x_6, x_23, x_22, x_29, x_7, x_8, x_9, x_11, x_1, x_10, x_25, x_24, x_67, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_68); +lean_dec(x_67); +lean_dec(x_23); +return x_69; } else { -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -lean_dec(x_140); -lean_dec(x_135); -lean_dec(x_132); -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); -lean_dec(x_24); +uint8_t x_70; +lean_free_object(x_49); +lean_dec(x_47); +lean_dec(x_44); +lean_free_object(x_32); +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -6481,45 +8750,47 @@ 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_1); -x_159 = lean_ctor_get(x_144, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_144, 1); -lean_inc(x_160); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_161 = x_144; -} else { - lean_dec_ref(x_144); - x_161 = lean_box(0); +x_70 = !lean_is_exclusive(x_56); +if (x_70 == 0) +{ +return x_56; } -if (lean_is_scalar(x_161)) { - x_162 = lean_alloc_ctor(1, 2, 0); -} else { - x_162 = x_161; +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_56, 0); +x_72 = lean_ctor_get(x_56, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_56); +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; } -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_dec(x_140); -lean_dec(x_135); -lean_dec(x_132); -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); -lean_dec(x_24); +uint8_t x_74; +lean_free_object(x_49); +lean_dec(x_47); +lean_dec(x_44); +lean_free_object(x_32); +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -6528,87 +8799,109 @@ 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_1); -x_163 = lean_ctor_get(x_141, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_141, 1); -lean_inc(x_164); -if (lean_is_exclusive(x_141)) { - lean_ctor_release(x_141, 0); - lean_ctor_release(x_141, 1); - x_165 = x_141; -} else { - lean_dec_ref(x_141); - x_165 = lean_box(0); -} -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(1, 2, 0); -} else { - x_166 = x_165; -} -lean_ctor_set(x_166, 0, x_163); -lean_ctor_set(x_166, 1, x_164); -return x_166; -} +x_74 = !lean_is_exclusive(x_53); +if (x_74 == 0) +{ +return x_53; } else { -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; -lean_dec(x_132); -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); -lean_dec(x_24); -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_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_1); -x_167 = lean_ctor_get(x_134, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_134, 1); -lean_inc(x_168); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_169 = x_134; -} else { - lean_dec_ref(x_134); - x_169 = lean_box(0); +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_53, 0); +x_76 = lean_ctor_get(x_53, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_53); +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; } -if (lean_is_scalar(x_169)) { - x_170 = lean_alloc_ctor(1, 2, 0); -} else { - x_170 = x_169; } -lean_ctor_set(x_170, 0, x_167); -lean_ctor_set(x_170, 1, x_168); -return x_170; } +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_49, 0); +x_79 = lean_ctor_get(x_49, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_49); +lean_inc(x_3); +x_80 = l_Lean_Meta_Grind_Goal_getRoot(x_78, x_3, x_18, x_19, x_79); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +x_83 = l_Lean_Meta_Grind_ppENodeRef(x_81, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_82); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_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_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 = l_Lean_RBNode_forIn_visit___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents___spec__4___closed__8; +x_87 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_44); +x_88 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +lean_ctor_set_tag(x_32, 7); +lean_ctor_set(x_32, 1, x_88); +lean_ctor_set(x_32, 0, x_87); +x_89 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_89, 0, x_32); +lean_ctor_set(x_89, 1, x_47); +x_90 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; +x_91 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +x_92 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_84); +x_93 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_86); +x_94 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_4, x_93, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_85); +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 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_27, x_3, x_21, x_5, x_6, x_23, x_22, x_29, x_7, x_8, x_9, x_11, x_1, x_10, x_25, x_24, x_95, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_96); +lean_dec(x_95); +lean_dec(x_23); +return x_97; } else { -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); -lean_dec(x_24); +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_dec(x_47); +lean_dec(x_44); +lean_free_object(x_32); +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -6617,42 +8910,48 @@ 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_1); -x_171 = lean_ctor_get(x_131, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_131, 1); -lean_inc(x_172); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_173 = x_131; +x_98 = lean_ctor_get(x_83, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_83, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_100 = x_83; } else { - lean_dec_ref(x_131); - x_173 = lean_box(0); + lean_dec_ref(x_83); + x_100 = lean_box(0); } -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_100)) { + x_101 = lean_alloc_ctor(1, 2, 0); } else { - x_174 = x_173; + x_101 = x_100; } -lean_ctor_set(x_174, 0, x_171); -lean_ctor_set(x_174, 1, x_172); -return x_174; +lean_ctor_set(x_101, 0, x_98); +lean_ctor_set(x_101, 1, x_99); +return x_101; } } else { -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); -lean_dec(x_24); +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_47); +lean_dec(x_44); +lean_free_object(x_32); +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -6661,44 +8960,48 @@ 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_1); -x_175 = lean_ctor_get(x_129, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_129, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_129)) { - lean_ctor_release(x_129, 0); - lean_ctor_release(x_129, 1); - x_177 = x_129; +x_102 = lean_ctor_get(x_80, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_80, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_104 = x_80; } else { - lean_dec_ref(x_129); - x_177 = lean_box(0); + lean_dec_ref(x_80); + x_104 = lean_box(0); } -if (lean_is_scalar(x_177)) { - x_178 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); } else { - x_178 = x_177; -} -lean_ctor_set(x_178, 0, x_175); -lean_ctor_set(x_178, 1, x_176); -return x_178; + x_105 = x_104; } +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; } } } else { -uint8_t x_179; -lean_dec(x_41); -lean_dec(x_39); -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); -lean_dec(x_24); +uint8_t x_106; +lean_dec(x_44); +lean_free_object(x_32); +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -6707,38 +9010,44 @@ 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_1); -x_179 = !lean_is_exclusive(x_42); -if (x_179 == 0) +x_106 = !lean_is_exclusive(x_46); +if (x_106 == 0) { -return x_42; +return x_46; } else { -lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_180 = lean_ctor_get(x_42, 0); -x_181 = lean_ctor_get(x_42, 1); -lean_inc(x_181); -lean_inc(x_180); -lean_dec(x_42); -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_180); -lean_ctor_set(x_182, 1, x_181); -return x_182; +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_46, 0); +x_108 = lean_ctor_get(x_46, 1); +lean_inc(x_108); +lean_inc(x_107); +lean_dec(x_46); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +return x_109; } } } else { -uint8_t x_183; -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_33); -lean_free_object(x_29); -lean_dec(x_24); +uint8_t x_110; +lean_free_object(x_32); +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -6747,223 +9056,256 @@ 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_1); -x_183 = !lean_is_exclusive(x_38); -if (x_183 == 0) +x_110 = !lean_is_exclusive(x_43); +if (x_110 == 0) { -return x_38; +return x_43; } else { -lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_184 = lean_ctor_get(x_38, 0); -x_185 = lean_ctor_get(x_38, 1); -lean_inc(x_185); -lean_inc(x_184); -lean_dec(x_38); -x_186 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_186, 0, x_184); -lean_ctor_set(x_186, 1, x_185); -return x_186; +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_43, 0); +x_112 = lean_ctor_get(x_43, 1); +lean_inc(x_112); +lean_inc(x_111); +lean_dec(x_43); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_111); +lean_ctor_set(x_113, 1, x_112); +return x_113; } } } else { -lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; uint8_t x_191; uint8_t x_192; lean_object* x_193; -x_187 = lean_ctor_get(x_29, 1); -lean_inc(x_187); +uint8_t x_114; +lean_free_object(x_32); lean_dec(x_29); -x_188 = lean_ctor_get(x_6, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_6, 1); -lean_inc(x_189); -x_190 = lean_ctor_get(x_6, 6); -lean_inc(x_190); -x_191 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 3); -x_192 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 4); -x_193 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents(x_188, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_187); -if (lean_obj_tag(x_193) == 0) -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_194 = lean_ctor_get(x_193, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_193, 1); -lean_inc(x_195); -lean_dec(x_193); -x_196 = lean_ctor_get(x_7, 2); -lean_inc(x_196); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +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_9); +lean_dec(x_8); lean_dec(x_7); -lean_inc(x_196); -lean_inc(x_1); -x_197 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots(x_1, x_196, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_195); -if (lean_obj_tag(x_197) == 0) -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; uint8_t x_201; -x_198 = lean_ctor_get(x_197, 1); -lean_inc(x_198); -lean_dec(x_197); -lean_inc(x_8); -x_199 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_198); -x_200 = lean_ctor_get(x_199, 0); -lean_inc(x_200); -x_201 = lean_unbox(x_200); -lean_dec(x_200); -if (x_201 == 0) +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_114 = !lean_is_exclusive(x_41); +if (x_114 == 0) { -lean_object* x_202; lean_object* x_203; lean_object* x_204; -lean_dec(x_8); -x_202 = lean_ctor_get(x_199, 1); -lean_inc(x_202); -lean_dec(x_199); -x_203 = lean_box(0); -x_204 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_194, x_1, x_188, x_9, x_24, x_190, x_189, x_196, x_6, x_10, x_192, x_191, x_203, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_202); -lean_dec(x_190); -return x_204; +return x_41; } else { -lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_199, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - lean_ctor_release(x_199, 1); - x_206 = x_199; -} else { - lean_dec_ref(x_199); - x_206 = lean_box(0); +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_41, 0); +x_116 = lean_ctor_get(x_41, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_41); +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; +} +} } -x_207 = l_Lean_Meta_Grind_updateLastTag(x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_205); -if (lean_obj_tag(x_207) == 0) +else { -lean_object* x_208; lean_object* x_209; -x_208 = lean_ctor_get(x_207, 1); -lean_inc(x_208); -lean_dec(x_207); +lean_object* x_118; lean_object* x_119; +x_118 = lean_ctor_get(x_32, 1); +lean_inc(x_118); +lean_dec(x_32); +x_119 = l_Lean_Meta_Grind_updateLastTag(x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_118); +if (lean_obj_tag(x_119) == 0) +{ +lean_object* x_120; lean_object* x_121; +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +lean_dec(x_119); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -lean_inc(x_1); -x_209 = l_Lean_Meta_Grind_ppENodeRef(x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_208); -if (lean_obj_tag(x_209) == 0) +lean_inc(x_3); +x_121 = l_Lean_Meta_Grind_ppENodeRef(x_3, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_120); +if (lean_obj_tag(x_121) == 0) { -lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_210 = lean_ctor_get(x_209, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_209, 1); -lean_inc(x_211); -lean_dec(x_209); +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +lean_dec(x_121); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -lean_inc(x_196); -x_212 = l_Lean_Meta_Grind_ppENodeRef(x_196, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_211); -if (lean_obj_tag(x_212) == 0) -{ -lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_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 = lean_st_ref_get(x_12, x_214); -x_216 = lean_ctor_get(x_215, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_215, 1); -lean_inc(x_217); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - x_218 = x_215; +lean_inc(x_29); +x_124 = l_Lean_Meta_Grind_ppENodeRef(x_29, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, 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; lean_object* x_129; lean_object* x_130; lean_object* x_131; +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_12, x_126); +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_215); - x_218 = lean_box(0); + lean_dec_ref(x_127); + x_130 = lean_box(0); } -lean_inc(x_1); -x_219 = l_Lean_Meta_Grind_Goal_getRoot(x_216, x_1, x_18, x_19, x_217); -if (lean_obj_tag(x_219) == 0) +lean_inc(x_3); +x_131 = l_Lean_Meta_Grind_Goal_getRoot(x_128, x_3, x_18, x_19, x_129); +if (lean_obj_tag(x_131) == 0) { -lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_219, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_219, 1); -lean_inc(x_221); -lean_dec(x_219); +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_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -x_222 = l_Lean_Meta_Grind_ppENodeRef(x_220, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_221); -if (lean_obj_tag(x_222) == 0) +x_134 = l_Lean_Meta_Grind_ppENodeRef(x_132, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_133); +if (lean_obj_tag(x_134) == 0) { -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; -x_223 = lean_ctor_get(x_222, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_222, 1); -lean_inc(x_224); -lean_dec(x_222); -x_225 = 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_218)) { - x_226 = lean_alloc_ctor(7, 2, 0); -} else { - x_226 = x_218; - lean_ctor_set_tag(x_226, 7); -} -lean_ctor_set(x_226, 0, x_225); -lean_ctor_set(x_226, 1, x_210); -x_227 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -if (lean_is_scalar(x_206)) { - x_228 = lean_alloc_ctor(7, 2, 0); -} else { - x_228 = x_206; - lean_ctor_set_tag(x_228, 7); -} -lean_ctor_set(x_228, 0, x_226); -lean_ctor_set(x_228, 1, x_227); -x_229 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_229, 0, x_228); -lean_ctor_set(x_229, 1, x_213); -x_230 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; -x_231 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_231, 0, x_229); -lean_ctor_set(x_231, 1, x_230); -x_232 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_232, 0, x_231); -lean_ctor_set(x_232, 1, x_223); -x_233 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_225); -x_234 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_8, x_233, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_224); -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); -x_237 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_194, x_1, x_188, x_9, x_24, x_190, x_189, x_196, x_6, x_10, x_192, x_191, x_235, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_236); -lean_dec(x_235); -lean_dec(x_190); -return x_237; -} -else -{ -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -lean_dec(x_218); -lean_dec(x_213); -lean_dec(x_210); -lean_dec(x_206); -lean_dec(x_196); -lean_dec(x_194); -lean_dec(x_190); -lean_dec(x_189); -lean_dec(x_188); -lean_dec(x_24); +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; +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); +x_137 = 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_130)) { + x_138 = lean_alloc_ctor(7, 2, 0); +} else { + x_138 = x_130; + lean_ctor_set_tag(x_138, 7); +} +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_122); +x_139 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; +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 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_125); +x_142 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; +x_143 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_143, 0, x_141); +lean_ctor_set(x_143, 1, x_142); +x_144 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_135); +x_145 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_137); +x_146 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_4, x_145, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_136); +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +lean_dec(x_146); +x_149 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_27, x_3, x_21, x_5, x_6, x_23, x_22, x_29, x_7, x_8, x_9, x_11, x_1, x_10, x_25, x_24, x_147, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_148); +lean_dec(x_147); +lean_dec(x_23); +return x_149; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_130); +lean_dec(x_125); +lean_dec(x_122); +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +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_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_150 = lean_ctor_get(x_134, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_134, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_152 = x_134; +} else { + lean_dec_ref(x_134); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +lean_dec(x_130); +lean_dec(x_125); +lean_dec(x_122); +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -6972,45 +9314,46 @@ 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_1); -x_238 = lean_ctor_get(x_222, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_222, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_222)) { - lean_ctor_release(x_222, 0); - lean_ctor_release(x_222, 1); - x_240 = x_222; +x_154 = lean_ctor_get(x_131, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_131, 1); +lean_inc(x_155); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_156 = x_131; } else { - lean_dec_ref(x_222); - x_240 = lean_box(0); + lean_dec_ref(x_131); + x_156 = lean_box(0); } -if (lean_is_scalar(x_240)) { - x_241 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_156)) { + x_157 = lean_alloc_ctor(1, 2, 0); } else { - x_241 = x_240; + x_157 = x_156; } -lean_ctor_set(x_241, 0, x_238); -lean_ctor_set(x_241, 1, x_239); -return x_241; +lean_ctor_set(x_157, 0, x_154); +lean_ctor_set(x_157, 1, x_155); +return x_157; } } else { -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; -lean_dec(x_218); -lean_dec(x_213); -lean_dec(x_210); -lean_dec(x_206); -lean_dec(x_196); -lean_dec(x_194); -lean_dec(x_190); -lean_dec(x_189); -lean_dec(x_188); -lean_dec(x_24); +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +lean_dec(x_122); +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -7019,43 +9362,45 @@ 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_1); -x_242 = lean_ctor_get(x_219, 0); -lean_inc(x_242); -x_243 = lean_ctor_get(x_219, 1); -lean_inc(x_243); -if (lean_is_exclusive(x_219)) { - lean_ctor_release(x_219, 0); - lean_ctor_release(x_219, 1); - x_244 = x_219; +x_158 = lean_ctor_get(x_124, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_124, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_160 = x_124; } else { - lean_dec_ref(x_219); - x_244 = lean_box(0); + lean_dec_ref(x_124); + x_160 = lean_box(0); } -if (lean_is_scalar(x_244)) { - x_245 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 2, 0); } else { - x_245 = x_244; + x_161 = x_160; } -lean_ctor_set(x_245, 0, x_242); -lean_ctor_set(x_245, 1, x_243); -return x_245; +lean_ctor_set(x_161, 0, x_158); +lean_ctor_set(x_161, 1, x_159); +return x_161; } } else { -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; -lean_dec(x_210); -lean_dec(x_206); -lean_dec(x_196); -lean_dec(x_194); -lean_dec(x_190); -lean_dec(x_189); -lean_dec(x_188); -lean_dec(x_24); +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -7064,42 +9409,45 @@ 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_1); -x_246 = lean_ctor_get(x_212, 0); -lean_inc(x_246); -x_247 = lean_ctor_get(x_212, 1); -lean_inc(x_247); -if (lean_is_exclusive(x_212)) { - lean_ctor_release(x_212, 0); - lean_ctor_release(x_212, 1); - x_248 = x_212; +x_162 = lean_ctor_get(x_121, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_121, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_164 = x_121; } else { - lean_dec_ref(x_212); - x_248 = lean_box(0); + lean_dec_ref(x_121); + x_164 = lean_box(0); } -if (lean_is_scalar(x_248)) { - x_249 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_164)) { + x_165 = lean_alloc_ctor(1, 2, 0); } else { - x_249 = x_248; + x_165 = x_164; } -lean_ctor_set(x_249, 0, x_246); -lean_ctor_set(x_249, 1, x_247); -return x_249; +lean_ctor_set(x_165, 0, x_162); +lean_ctor_set(x_165, 1, x_163); +return x_165; } } else { -lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; -lean_dec(x_206); -lean_dec(x_196); -lean_dec(x_194); -lean_dec(x_190); -lean_dec(x_189); -lean_dec(x_188); -lean_dec(x_24); +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -7108,42 +9456,47 @@ 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_1); -x_250 = lean_ctor_get(x_209, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_209, 1); -lean_inc(x_251); -if (lean_is_exclusive(x_209)) { - lean_ctor_release(x_209, 0); - lean_ctor_release(x_209, 1); - x_252 = x_209; +x_166 = lean_ctor_get(x_119, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_119, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_168 = x_119; } else { - lean_dec_ref(x_209); - x_252 = lean_box(0); + lean_dec_ref(x_119); + x_168 = lean_box(0); } -if (lean_is_scalar(x_252)) { - x_253 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); } else { - x_253 = x_252; + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} } -lean_ctor_set(x_253, 0, x_250); -lean_ctor_set(x_253, 1, x_251); -return x_253; } } else { -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; -lean_dec(x_206); -lean_dec(x_196); -lean_dec(x_194); -lean_dec(x_190); -lean_dec(x_189); -lean_dec(x_188); -lean_dec(x_24); +uint8_t x_170; +lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -7152,42 +9505,41 @@ 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_1); -x_254 = lean_ctor_get(x_207, 0); -lean_inc(x_254); -x_255 = lean_ctor_get(x_207, 1); -lean_inc(x_255); -if (lean_is_exclusive(x_207)) { - lean_ctor_release(x_207, 0); - lean_ctor_release(x_207, 1); - x_256 = x_207; -} else { - lean_dec_ref(x_207); - x_256 = lean_box(0); -} -if (lean_is_scalar(x_256)) { - x_257 = lean_alloc_ctor(1, 2, 0); -} else { - x_257 = x_256; +x_170 = !lean_is_exclusive(x_30); +if (x_170 == 0) +{ +return x_30; } -lean_ctor_set(x_257, 0, x_254); -lean_ctor_set(x_257, 1, x_255); -return x_257; +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = lean_ctor_get(x_30, 0); +x_172 = lean_ctor_get(x_30, 1); +lean_inc(x_172); +lean_inc(x_171); +lean_dec(x_30); +x_173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_173, 0, x_171); +lean_ctor_set(x_173, 1, x_172); +return x_173; } } } else { -lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; -lean_dec(x_196); -lean_dec(x_194); -lean_dec(x_190); -lean_dec(x_189); -lean_dec(x_188); -lean_dec(x_24); +uint8_t x_174; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_21); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -7196,40 +9548,70 @@ 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); lean_dec(x_1); -x_258 = lean_ctor_get(x_197, 0); -lean_inc(x_258); -x_259 = lean_ctor_get(x_197, 1); -lean_inc(x_259); -if (lean_is_exclusive(x_197)) { - lean_ctor_release(x_197, 0); - lean_ctor_release(x_197, 1); - x_260 = x_197; -} else { - lean_dec_ref(x_197); - x_260 = lean_box(0); +x_174 = !lean_is_exclusive(x_26); +if (x_174 == 0) +{ +return x_26; +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = lean_ctor_get(x_26, 0); +x_176 = lean_ctor_get(x_26, 1); +lean_inc(x_176); +lean_inc(x_175); +lean_dec(x_26); +x_177 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set(x_177, 1, x_176); +return x_177; } -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; } } +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_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, lean_object* x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +_start: +{ +uint8_t x_20; +x_20 = l_Array_isEmpty___rarg(x_8); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_1, 0); +lean_inc(x_21); +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_22 = l_Lean_Meta_Grind_getFnRoots(x_21, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_10, x_8, x_9, x_23, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_24); +return x_25; +} else { -lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; -lean_dec(x_190); -lean_dec(x_189); -lean_dec(x_188); -lean_dec(x_24); -lean_dec(x_19); +uint8_t x_26; lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); @@ -7237,287 +9619,147 @@ lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -lean_dec(x_9); +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_262 = lean_ctor_get(x_193, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_193, 1); -lean_inc(x_263); -if (lean_is_exclusive(x_193)) { - lean_ctor_release(x_193, 0); - lean_ctor_release(x_193, 1); - x_264 = x_193; -} else { - lean_dec_ref(x_193); - x_264 = lean_box(0); -} -if (lean_is_scalar(x_264)) { - x_265 = lean_alloc_ctor(1, 2, 0); -} else { - x_265 = x_264; +x_26 = !lean_is_exclusive(x_22); +if (x_26 == 0) +{ +return x_22; } -lean_ctor_set(x_265, 0, x_262); -lean_ctor_set(x_265, 1, x_263); -return x_265; +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_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; uint8_t x_272; uint8_t x_273; uint8_t 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; uint8_t x_288; uint8_t x_289; lean_object* x_290; -x_266 = lean_ctor_get(x_2, 0); -x_267 = lean_ctor_get(x_2, 1); -x_268 = lean_ctor_get(x_2, 2); -x_269 = lean_ctor_get(x_2, 3); -x_270 = lean_ctor_get(x_2, 6); -x_271 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); -x_272 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); -x_273 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 3); -x_274 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 4); -x_275 = lean_ctor_get(x_2, 7); -x_276 = lean_ctor_get(x_2, 8); -x_277 = lean_ctor_get(x_2, 9); -x_278 = lean_ctor_get(x_2, 10); -lean_inc(x_278); -lean_inc(x_277); -lean_inc(x_276); -lean_inc(x_275); -lean_inc(x_270); -lean_inc(x_269); -lean_inc(x_268); -lean_inc(x_267); -lean_inc(x_266); -lean_dec(x_2); -x_279 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_279, 0, x_3); -x_280 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_280, 0, x_4); -lean_inc(x_268); -x_281 = lean_alloc_ctor(0, 11, 5); -lean_ctor_set(x_281, 0, x_266); -lean_ctor_set(x_281, 1, x_267); -lean_ctor_set(x_281, 2, x_268); -lean_ctor_set(x_281, 3, x_269); -lean_ctor_set(x_281, 4, x_279); -lean_ctor_set(x_281, 5, x_280); -lean_ctor_set(x_281, 6, x_270); -lean_ctor_set(x_281, 7, x_275); -lean_ctor_set(x_281, 8, x_276); -lean_ctor_set(x_281, 9, x_277); -lean_ctor_set(x_281, 10, x_278); -lean_ctor_set_uint8(x_281, sizeof(void*)*11, x_5); -lean_ctor_set_uint8(x_281, sizeof(void*)*11 + 1, x_271); -lean_ctor_set_uint8(x_281, sizeof(void*)*11 + 2, x_272); -lean_ctor_set_uint8(x_281, sizeof(void*)*11 + 3, x_273); -lean_ctor_set_uint8(x_281, sizeof(void*)*11 + 4, x_274); -lean_inc(x_1); -x_282 = l_Lean_Meta_Grind_setENode(x_1, x_281, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_22); -x_283 = lean_ctor_get(x_282, 1); -lean_inc(x_283); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_284 = x_282; -} else { - lean_dec_ref(x_282); - x_284 = lean_box(0); -} -x_285 = lean_ctor_get(x_6, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_6, 1); -lean_inc(x_286); -x_287 = lean_ctor_get(x_6, 6); -lean_inc(x_287); -x_288 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 3); -x_289 = lean_ctor_get_uint8(x_6, sizeof(void*)*11 + 4); -x_290 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_removeParents(x_285, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_283); -if (lean_obj_tag(x_290) == 0) -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; -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 = lean_ctor_get(x_7, 2); -lean_inc(x_293); -lean_dec(x_7); -lean_inc(x_293); +lean_object* x_30; lean_object* x_31; +x_30 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1; +x_31 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_10, x_8, x_9, x_30, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +return x_31; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__5(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: +{ +lean_object* x_21; lean_inc(x_1); -x_294 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_updateRoots(x_1, x_293, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_292); -if (lean_obj_tag(x_294) == 0) +x_21 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_invertTrans(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_295; lean_object* x_296; lean_object* x_297; uint8_t x_298; -x_295 = lean_ctor_get(x_294, 1); -lean_inc(x_295); -lean_dec(x_294); -lean_inc(x_8); -x_296 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_8, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_295); -x_297 = lean_ctor_get(x_296, 0); -lean_inc(x_297); -x_298 = lean_unbox(x_297); -lean_dec(x_297); -if (x_298 == 0) -{ -lean_object* x_299; lean_object* x_300; lean_object* x_301; -lean_dec(x_284); -lean_dec(x_8); -x_299 = lean_ctor_get(x_296, 1); -lean_inc(x_299); -lean_dec(x_296); -x_300 = lean_box(0); -x_301 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_291, x_1, x_285, x_9, x_268, x_287, x_286, x_293, x_6, x_10, x_289, x_288, x_300, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_299); -lean_dec(x_287); -return x_301; -} -else -{ -lean_object* x_302; lean_object* x_303; lean_object* x_304; -x_302 = lean_ctor_get(x_296, 1); -lean_inc(x_302); -if (lean_is_exclusive(x_296)) { - lean_ctor_release(x_296, 0); - lean_ctor_release(x_296, 1); - x_303 = x_296; -} else { - lean_dec_ref(x_296); - x_303 = lean_box(0); -} -x_304 = l_Lean_Meta_Grind_updateLastTag(x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_302); -if (lean_obj_tag(x_304) == 0) -{ -lean_object* x_305; lean_object* x_306; -x_305 = lean_ctor_get(x_304, 1); -lean_inc(x_305); -lean_dec(x_304); +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = !lean_is_exclusive(x_2); +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; +x_24 = lean_ctor_get(x_2, 2); +x_25 = lean_ctor_get(x_2, 5); +lean_dec(x_25); +x_26 = lean_ctor_get(x_2, 4); +lean_dec(x_26); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_3); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_4); +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*)*11, 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_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -lean_inc(x_1); -x_306 = l_Lean_Meta_Grind_ppENodeRef(x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_305); -if (lean_obj_tag(x_306) == 0) -{ -lean_object* x_307; lean_object* x_308; lean_object* x_309; -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); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_6); +x_31 = l_Lean_Meta_Grind_getEqcLambdas(x_6, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_30); +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_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -lean_inc(x_293); -x_309 = l_Lean_Meta_Grind_ppENodeRef(x_293, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_308); -if (lean_obj_tag(x_309) == 0) -{ -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; -x_310 = lean_ctor_get(x_309, 0); -lean_inc(x_310); -x_311 = lean_ctor_get(x_309, 1); -lean_inc(x_311); -lean_dec(x_309); -x_312 = lean_st_ref_get(x_12, x_311); -x_313 = lean_ctor_get(x_312, 0); -lean_inc(x_313); -x_314 = lean_ctor_get(x_312, 1); -lean_inc(x_314); -if (lean_is_exclusive(x_312)) { - lean_ctor_release(x_312, 0); - lean_ctor_release(x_312, 1); - x_315 = x_312; -} else { - lean_dec_ref(x_312); - x_315 = lean_box(0); -} -lean_inc(x_1); -x_316 = l_Lean_Meta_Grind_Goal_getRoot(x_313, x_1, x_18, x_19, x_314); -if (lean_obj_tag(x_316) == 0) -{ -lean_object* x_317; lean_object* x_318; lean_object* x_319; -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); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_7); +x_34 = l_Lean_Meta_Grind_getEqcLambdas(x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_33); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; uint8_t 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); +x_37 = l_Array_isEmpty___rarg(x_32); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_7, 0); +lean_inc(x_38); lean_inc(x_19); lean_inc(x_18); lean_inc(x_17); lean_inc(x_16); -x_319 = l_Lean_Meta_Grind_ppENodeRef(x_317, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_318); -if (lean_obj_tag(x_319) == 0) -{ -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; -x_320 = lean_ctor_get(x_319, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_319, 1); -lean_inc(x_321); -lean_dec(x_319); -x_322 = 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_315)) { - x_323 = lean_alloc_ctor(7, 2, 0); -} else { - x_323 = x_315; - lean_ctor_set_tag(x_323, 7); -} -lean_ctor_set(x_323, 0, x_322); -lean_ctor_set(x_323, 1, x_307); -x_324 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__2; -if (lean_is_scalar(x_303)) { - x_325 = lean_alloc_ctor(7, 2, 0); -} else { - x_325 = x_303; - lean_ctor_set_tag(x_325, 7); -} -lean_ctor_set(x_325, 0, x_323); -lean_ctor_set(x_325, 1, x_324); -if (lean_is_scalar(x_284)) { - x_326 = lean_alloc_ctor(7, 2, 0); -} else { - x_326 = x_284; - lean_ctor_set_tag(x_326, 7); -} -lean_ctor_set(x_326, 0, x_325); -lean_ctor_set(x_326, 1, x_310); -x_327 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__4; -x_328 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_328, 0, x_326); -lean_ctor_set(x_328, 1, x_327); -x_329 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_329, 0, x_328); -lean_ctor_set(x_329, 1, x_320); -x_330 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_330, 0, x_329); -lean_ctor_set(x_330, 1, x_322); -x_331 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_8, x_330, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_321); -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); -x_334 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__2(x_291, x_1, x_285, x_9, x_268, x_287, x_286, x_293, x_6, x_10, x_289, x_288, x_332, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_333); -lean_dec(x_332); -lean_dec(x_287); -return x_334; -} -else -{ -lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; -lean_dec(x_315); -lean_dec(x_310); -lean_dec(x_307); -lean_dec(x_303); -lean_dec(x_293); -lean_dec(x_291); -lean_dec(x_287); -lean_dec(x_286); -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_268); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_39 = l_Lean_Meta_Grind_getFnRoots(x_38, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_36); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__4(x_6, x_8, x_1, x_9, x_7, x_24, x_32, x_35, x_10, x_40, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_41); +return x_42; +} +else +{ +uint8_t x_43; +lean_dec(x_35); +lean_dec(x_32); +lean_dec(x_24); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -7528,90 +9770,42 @@ 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_1); -x_335 = lean_ctor_get(x_319, 0); -lean_inc(x_335); -x_336 = lean_ctor_get(x_319, 1); -lean_inc(x_336); -if (lean_is_exclusive(x_319)) { - lean_ctor_release(x_319, 0); - lean_ctor_release(x_319, 1); - x_337 = x_319; -} else { - lean_dec_ref(x_319); - x_337 = lean_box(0); +x_43 = !lean_is_exclusive(x_39); +if (x_43 == 0) +{ +return x_39; } -if (lean_is_scalar(x_337)) { - x_338 = lean_alloc_ctor(1, 2, 0); -} else { - x_338 = x_337; +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +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(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; } -lean_ctor_set(x_338, 0, x_335); -lean_ctor_set(x_338, 1, x_336); -return x_338; } } else { -lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; -lean_dec(x_315); -lean_dec(x_310); -lean_dec(x_307); -lean_dec(x_303); -lean_dec(x_293); -lean_dec(x_291); -lean_dec(x_287); -lean_dec(x_286); -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_268); -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_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_1); -x_339 = lean_ctor_get(x_316, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_316, 1); -lean_inc(x_340); -if (lean_is_exclusive(x_316)) { - lean_ctor_release(x_316, 0); - lean_ctor_release(x_316, 1); - x_341 = x_316; -} else { - lean_dec_ref(x_316); - x_341 = lean_box(0); -} -if (lean_is_scalar(x_341)) { - x_342 = lean_alloc_ctor(1, 2, 0); -} else { - x_342 = x_341; -} -lean_ctor_set(x_342, 0, x_339); -lean_ctor_set(x_342, 1, x_340); -return x_342; +lean_object* x_47; lean_object* x_48; +x_47 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1; +x_48 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__4(x_6, x_8, x_1, x_9, x_7, x_24, x_32, x_35, x_10, x_47, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_36); +return x_48; } } else { -lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; -lean_dec(x_307); -lean_dec(x_303); -lean_dec(x_293); -lean_dec(x_291); -lean_dec(x_287); -lean_dec(x_286); -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_268); +uint8_t x_49; +lean_dec(x_32); +lean_dec(x_24); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -7622,41 +9816,33 @@ 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_1); -x_343 = lean_ctor_get(x_309, 0); -lean_inc(x_343); -x_344 = lean_ctor_get(x_309, 1); -lean_inc(x_344); -if (lean_is_exclusive(x_309)) { - lean_ctor_release(x_309, 0); - lean_ctor_release(x_309, 1); - x_345 = x_309; -} else { - lean_dec_ref(x_309); - x_345 = lean_box(0); +x_49 = !lean_is_exclusive(x_34); +if (x_49 == 0) +{ +return x_34; } -if (lean_is_scalar(x_345)) { - x_346 = lean_alloc_ctor(1, 2, 0); -} else { - x_346 = x_345; +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; } -lean_ctor_set(x_346, 0, x_343); -lean_ctor_set(x_346, 1, x_344); -return x_346; } } else { -lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; -lean_dec(x_303); -lean_dec(x_293); -lean_dec(x_291); -lean_dec(x_287); -lean_dec(x_286); -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_268); +uint8_t x_53; +lean_dec(x_24); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -7667,41 +9853,150 @@ 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_1); -x_347 = lean_ctor_get(x_306, 0); -lean_inc(x_347); -x_348 = lean_ctor_get(x_306, 1); -lean_inc(x_348); -if (lean_is_exclusive(x_306)) { - lean_ctor_release(x_306, 0); - lean_ctor_release(x_306, 1); - x_349 = x_306; -} else { - lean_dec_ref(x_306); - x_349 = lean_box(0); +x_53 = !lean_is_exclusive(x_31); +if (x_53 == 0) +{ +return x_31; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_31, 0); +x_55 = lean_ctor_get(x_31, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_31); +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_349)) { - x_350 = lean_alloc_ctor(1, 2, 0); -} else { - x_350 = x_349; } -lean_ctor_set(x_350, 0, x_347); -lean_ctor_set(x_350, 1, x_348); -return x_350; } +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; uint8_t x_63; uint8_t 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; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_57 = lean_ctor_get(x_2, 0); +x_58 = lean_ctor_get(x_2, 1); +x_59 = lean_ctor_get(x_2, 2); +x_60 = lean_ctor_get(x_2, 3); +x_61 = lean_ctor_get(x_2, 6); +x_62 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 1); +x_63 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 2); +x_64 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 3); +x_65 = lean_ctor_get_uint8(x_2, sizeof(void*)*11 + 4); +x_66 = lean_ctor_get(x_2, 7); +x_67 = lean_ctor_get(x_2, 8); +x_68 = lean_ctor_get(x_2, 9); +x_69 = lean_ctor_get(x_2, 10); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_2); +x_70 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_70, 0, x_3); +x_71 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_71, 0, x_4); +lean_inc(x_59); +x_72 = lean_alloc_ctor(0, 11, 5); +lean_ctor_set(x_72, 0, x_57); +lean_ctor_set(x_72, 1, x_58); +lean_ctor_set(x_72, 2, x_59); +lean_ctor_set(x_72, 3, x_60); +lean_ctor_set(x_72, 4, x_70); +lean_ctor_set(x_72, 5, x_71); +lean_ctor_set(x_72, 6, x_61); +lean_ctor_set(x_72, 7, x_66); +lean_ctor_set(x_72, 8, x_67); +lean_ctor_set(x_72, 9, x_68); +lean_ctor_set(x_72, 10, x_69); +lean_ctor_set_uint8(x_72, sizeof(void*)*11, x_5); +lean_ctor_set_uint8(x_72, sizeof(void*)*11 + 1, x_62); +lean_ctor_set_uint8(x_72, sizeof(void*)*11 + 2, x_63); +lean_ctor_set_uint8(x_72, sizeof(void*)*11 + 3, x_64); +lean_ctor_set_uint8(x_72, sizeof(void*)*11 + 4, x_65); +lean_inc(x_1); +x_73 = l_Lean_Meta_Grind_setENode(x_1, x_72, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_22); +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +lean_dec(x_73); +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_6); +x_75 = l_Lean_Meta_Grind_getEqcLambdas(x_6, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, 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_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_7); +x_78 = l_Lean_Meta_Grind_getEqcLambdas(x_7, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_77); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; lean_object* x_80; uint8_t 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_Array_isEmpty___rarg(x_76); +if (x_81 == 0) +{ +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_7, 0); +lean_inc(x_82); +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); +x_83 = l_Lean_Meta_Grind_getFnRoots(x_82, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_80); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__4(x_6, x_8, x_1, x_9, x_7, x_59, x_76, x_79, x_10, x_84, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_85); +return x_86; } else { -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; -lean_dec(x_303); -lean_dec(x_293); -lean_dec(x_291); -lean_dec(x_287); -lean_dec(x_286); -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_268); +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_79); +lean_dec(x_76); +lean_dec(x_59); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -7712,41 +10007,44 @@ 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_1); -x_351 = lean_ctor_get(x_304, 0); -lean_inc(x_351); -x_352 = lean_ctor_get(x_304, 1); -lean_inc(x_352); -if (lean_is_exclusive(x_304)) { - lean_ctor_release(x_304, 0); - lean_ctor_release(x_304, 1); - x_353 = x_304; +x_87 = lean_ctor_get(x_83, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_83, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_89 = x_83; } else { - lean_dec_ref(x_304); - x_353 = lean_box(0); + lean_dec_ref(x_83); + x_89 = lean_box(0); } -if (lean_is_scalar(x_353)) { - x_354 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_89)) { + x_90 = lean_alloc_ctor(1, 2, 0); } else { - x_354 = x_353; + x_90 = x_89; +} +lean_ctor_set(x_90, 0, x_87); +lean_ctor_set(x_90, 1, x_88); +return x_90; } -lean_ctor_set(x_354, 0, x_351); -lean_ctor_set(x_354, 1, x_352); -return x_354; } +else +{ +lean_object* x_91; lean_object* x_92; +x_91 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1; +x_92 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__4(x_6, x_8, x_1, x_9, x_7, x_59, x_76, x_79, x_10, x_91, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_80); +return x_92; } } else { -lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; -lean_dec(x_293); -lean_dec(x_291); -lean_dec(x_287); -lean_dec(x_286); -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_268); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_76); +lean_dec(x_59); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -7757,38 +10055,35 @@ 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_1); -x_355 = lean_ctor_get(x_294, 0); -lean_inc(x_355); -x_356 = lean_ctor_get(x_294, 1); -lean_inc(x_356); -if (lean_is_exclusive(x_294)) { - lean_ctor_release(x_294, 0); - lean_ctor_release(x_294, 1); - x_357 = x_294; +x_93 = lean_ctor_get(x_78, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_78, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_95 = x_78; } else { - lean_dec_ref(x_294); - x_357 = lean_box(0); + lean_dec_ref(x_78); + x_95 = lean_box(0); } -if (lean_is_scalar(x_357)) { - x_358 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(1, 2, 0); } else { - x_358 = x_357; + x_96 = x_95; } -lean_ctor_set(x_358, 0, x_355); -lean_ctor_set(x_358, 1, x_356); -return x_358; +lean_ctor_set(x_96, 0, x_93); +lean_ctor_set(x_96, 1, x_94); +return x_96; } } else { -lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; -lean_dec(x_287); -lean_dec(x_286); -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_268); +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +lean_dec(x_59); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -7802,32 +10097,32 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_359 = lean_ctor_get(x_290, 0); -lean_inc(x_359); -x_360 = lean_ctor_get(x_290, 1); -lean_inc(x_360); -if (lean_is_exclusive(x_290)) { - lean_ctor_release(x_290, 0); - lean_ctor_release(x_290, 1); - x_361 = x_290; +x_97 = lean_ctor_get(x_75, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_75, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_99 = x_75; } else { - lean_dec_ref(x_290); - x_361 = lean_box(0); + lean_dec_ref(x_75); + x_99 = lean_box(0); } -if (lean_is_scalar(x_361)) { - x_362 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_99)) { + x_100 = lean_alloc_ctor(1, 2, 0); } else { - x_362 = x_361; + x_100 = x_99; } -lean_ctor_set(x_362, 0, x_359); -lean_ctor_set(x_362, 1, x_360); -return x_362; +lean_ctor_set(x_100, 0, x_97); +lean_ctor_set(x_100, 1, x_98); +return x_100; } } } else { -uint8_t x_363; +uint8_t x_101; lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -7844,23 +10139,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_363 = !lean_is_exclusive(x_21); -if (x_363 == 0) +x_101 = !lean_is_exclusive(x_21); +if (x_101 == 0) { return x_21; } else { -lean_object* x_364; lean_object* x_365; lean_object* x_366; -x_364 = lean_ctor_get(x_21, 0); -x_365 = lean_ctor_get(x_21, 1); -lean_inc(x_365); -lean_inc(x_364); +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_21, 0); +x_103 = lean_ctor_get(x_21, 1); +lean_inc(x_103); +lean_inc(x_102); lean_dec(x_21); -x_366 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_366, 0, x_364); -lean_ctor_set(x_366, 1, x_365); -return x_366; +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; } } } @@ -7926,7 +10221,7 @@ x_23 = lean_ctor_get(x_20, 1); lean_inc(x_23); lean_dec(x_20); x_24 = lean_box(0); -x_25 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3(x_3, x_5, x_4, x_1, x_9, x_7, x_6, x_19, x_8, x_2, x_24, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_23); +x_25 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__5(x_3, x_5, x_4, x_1, x_9, x_7, x_8, x_6, x_19, x_2, x_24, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_23); return x_25; } else @@ -7995,7 +10290,7 @@ 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_go___lambda__3(x_3, x_5, x_4, x_1, x_9, x_7, x_6, x_19, x_8, x_2, x_44, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_45); +x_46 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__5(x_3, x_5, x_4, x_1, x_9, x_7, x_8, x_6, x_19, x_2, x_44, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_45); lean_dec(x_44); return x_46; } @@ -8179,7 +10474,7 @@ lean_inc(x_76); x_77 = lean_ctor_get(x_75, 1); lean_inc(x_77); lean_dec(x_75); -x_78 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3(x_3, x_5, x_4, x_1, x_9, x_7, x_6, x_19, x_8, x_2, x_76, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_77); +x_78 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__5(x_3, x_5, x_4, x_1, x_9, x_7, x_8, x_6, x_19, x_2, x_76, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_77); lean_dec(x_76); return x_78; } @@ -8339,19 +10634,23 @@ 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_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; -x_23 = lean_unbox(x_10); -lean_dec(x_10); -x_24 = lean_unbox(x_11); -lean_dec(x_11); -x_25 = lean_unbox(x_12); -lean_dec(x_12); -x_26 = 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_8, x_9, x_23, x_24, x_25, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21, x_22); -lean_dec(x_13); +uint8_t x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; +x_27 = lean_unbox(x_14); +lean_dec(x_14); +x_28 = lean_unbox(x_15); +lean_dec(x_15); +x_29 = lean_unbox(x_16); +lean_dec(x_16); +x_30 = 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_8, x_9, x_10, x_11, x_12, x_13, x_27, x_28, x_29, x_17, x_18, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26); +lean_dec(x_17); lean_dec(x_6); -return x_26; +return x_30; } } LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___boxed(lean_object** _args) { @@ -8377,12 +10676,71 @@ 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_10); +lean_dec(x_10); +x_22 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_21, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +return x_22; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_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]; +_start: +{ +uint8_t x_20; lean_object* x_21; +x_20 = lean_unbox(x_9); +lean_dec(x_9); +x_21 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_20, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +return x_21; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___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: +{ uint8_t x_21; uint8_t x_22; lean_object* x_23; x_21 = lean_unbox(x_5); lean_dec(x_5); x_22 = lean_unbox(x_10); lean_dec(x_10); -x_23 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3(x_1, x_2, x_3, x_4, x_21, x_6, x_7, x_8, x_9, x_22, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +x_23 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__5(x_1, x_2, x_3, x_4, x_21, x_6, x_7, x_8, x_9, x_22, 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_23; } @@ -11469,15 +13827,6 @@ x_15 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep(x_1, return x_15; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_resetNewEqs___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___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_resetNewEqs(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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: { @@ -11494,7 +13843,7 @@ 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_11, 6); lean_dec(x_14); -x_15 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_resetNewEqs___closed__1; +x_15 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1; lean_ctor_set(x_11, 6, x_15); x_16 = lean_st_ref_set(x_1, x_11, x_12); x_17 = !lean_is_exclusive(x_16); @@ -11573,7 +13922,7 @@ lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); lean_dec(x_11); -x_48 = l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_resetNewEqs___closed__1; +x_48 = l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1; x_49 = lean_alloc_ctor(0, 25, 1); lean_ctor_set(x_49, 0, x_23); lean_ctor_set(x_49, 1, x_24); @@ -13821,6 +16170,7 @@ lean_object* initialize_Lean_Meta_Tactic_Grind_Inv(uint8_t builtin, lean_object* lean_object* initialize_Lean_Meta_Tactic_Grind_PP(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_Util(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Beta(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Internalize(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Core(uint8_t builtin, lean_object* w) { @@ -13848,6 +16198,9 @@ 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_Beta(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); @@ -13915,6 +16268,36 @@ l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__15); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__16 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__16(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_closeGoalWithValuesEq___closed__16); +l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__1 = _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__1(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__1); +l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__2 = _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__2(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_propagateBeta___spec__1___closed__2); +l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1 = _init_l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__1); +l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__2 = _init_l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__2(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__2); +l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__3 = _init_l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__3(); +lean_mark_persistent(l_Lean_RBNode_forIn_visit___at_Lean_Meta_Grind_propagateBeta___spec__2___closed__3); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__1); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__2); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__3(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__3); +l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__4(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_propagateBeta___spec__5___closed__4); +l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__1 = _init_l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__1); +l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__2 = _init_l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__2); +l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__3 = _init_l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__3); +l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__4 = _init_l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__4); +l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__5 = _init_l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__5); +l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__6 = _init_l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateBeta___lambda__2___closed__6); l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1 = _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1(); lean_mark_persistent(l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_propagateEqcDown___spec__1___closed__1); l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Core_0__Lean_Meta_Grind_addEqStep_go___lambda__3___closed__1(); @@ -13957,8 +16340,6 @@ 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_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___closed__1 = _init_l_Lean_Meta_Grind_add_go___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c index d1a7253f80e9..50ffbfaf2cda 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c @@ -23,6 +23,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___bo 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; lean_object* l_Lean_mkNatLit(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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_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*); @@ -96,6 +97,7 @@ lean_object* l_Lean_Meta_evalNat(lean_object*, lean_object*, lean_object*, lean_ 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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_head_x21___rarg(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_matchEqBwdPat___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*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___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; @@ -116,12 +118,15 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert___lambda__1(lean_obje 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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__5(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_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_Meta_Grind_checkMaxEmatchExceeded(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*); lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat(lean_object*, lean_object*, lean_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_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_object* l_Lean_Meta_Grind_getFalseExpr___rarg(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*); @@ -129,6 +134,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_ 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*, 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_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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*, lean_object*); lean_object* l_Array_reverse___rarg(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___closed__6; lean_object* lean_st_ref_take(lean_object*, lean_object*); @@ -192,9 +198,11 @@ lean_object* l_Lean_Expr_toHeadIndex(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArg_x3f___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_annotateMatchEqnType(lean_object*, lean_object*, lean_object*, lean_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_assignmentToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__3___boxed(lean_object**); lean_object* l_Lean_Meta_Grind_isOffsetPattern_x3f(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*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__1; 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*); 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__10; @@ -221,6 +229,7 @@ uint8_t l_Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___closed__3; static uint64_t l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___closed__2; lean_object* l_Lean_Meta_Grind_GrindTactic_iterate(lean_object*, 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_matchEqBwdPat___spec__1___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_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_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*); @@ -246,6 +255,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1(lean 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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___boxed(lean_object**); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__5___closed__5; lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); lean_object* l_OptionT_instMonad___rarg(lean_object*); @@ -255,6 +265,7 @@ static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Grind static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_annotateMatchEqnType___lambda__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_object* l_List_tail_x21___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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_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*); @@ -262,6 +273,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_ 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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___lambda__6___closed__1; +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices___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_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*); @@ -273,14 +285,19 @@ lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_G 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*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatch_M_run_x27(lean_object*); lean_object* l_Lean_Expr_constLevels_x21(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert___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_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_withLocalDecl___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_annotateMatchEqnType___spec__1(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*); +uint8_t l_Lean_Meta_Grind_isEqBwdPattern(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__3; 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**); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__4; 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*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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*); 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_shareCommon(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -309,6 +326,7 @@ lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMe LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_pushChoice(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__2___closed__2; lean_object* lean_panic_fn(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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_EMatch_0__Lean_Meta_Grind_EMatch_processOffset(lean_object*, lean_object*, lean_object*, lean_object*, 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_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; @@ -317,6 +335,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp___at___private_Lean_Meta_Ta 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*); 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*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__5___boxed(lean_object**); uint64_t lean_uint64_shift_left(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_ematchAndAssert___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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_annotateMatchEqnType___lambda__1___closed__2; @@ -326,6 +345,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_ lean_object* l_List_reverse___rarg(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_object* lean_array_mk(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___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_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*); @@ -373,6 +393,7 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_isAssigned___at___private_Lean_Meta_Tacti uint8_t l_Lean_Expr_isConst(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_pushChoice___boxed(lean_object*, lean_object*, lean_object*, 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_processChoices___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_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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*, 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; @@ -389,6 +410,7 @@ lean_object* lean_expr_instantiate1(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_Grind_assertNext(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_matchEqBwdPat___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_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*); @@ -923,7 +945,7 @@ x_21 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unass x_22 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_20, x_21); if (x_22 == 0) { -lean_object* x_23; +lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -936,9 +958,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; +lean_dec(x_3); +lean_dec(x_20); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_unbox(x_24); @@ -1002,30 +1023,6 @@ 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); @@ -1035,41 +1032,41 @@ 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) +x_38 = !lean_is_exclusive(x_1); +if (x_38 == 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); +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_39 = lean_ctor_get(x_1, 2); +lean_dec(x_39); +x_40 = lean_ctor_get(x_1, 1); +lean_dec(x_40); +x_41 = lean_ctor_get(x_1, 0); +lean_dec(x_41); +x_42 = lean_array_fset(x_15, x_2, x_3); +lean_ctor_set(x_1, 2, x_42); +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_1); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_12); +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_array_fset(x_15, x_2, x_3); +x_46 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_46, 0, x_13); +lean_ctor_set(x_46, 1, x_14); +lean_ctor_set(x_46, 2, x_45); x_47 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_47, 0, x_1); +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_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; -} } } } @@ -1608,7 +1605,7 @@ lean_dec(x_2); x_86 = !lean_is_exclusive(x_16); if (x_86 == 0) { -lean_object* x_87; lean_object* x_88; +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; x_87 = lean_ctor_get(x_16, 0); x_88 = l_Lean_Meta_Grind_isEqv(x_87, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); @@ -1619,9 +1616,8 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_obj_tag(x_88) == 0) -{ -lean_object* x_89; uint8_t x_90; +lean_dec(x_3); +lean_dec(x_87); x_89 = lean_ctor_get(x_88, 0); lean_inc(x_89); x_90 = lean_unbox(x_89); @@ -1683,36 +1679,11 @@ return x_100; } else { -uint8_t x_101; -lean_free_object(x_16); -lean_dec(x_1); -x_101 = !lean_is_exclusive(x_88); -if (x_101 == 0) -{ -return x_88; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_88, 0); -x_103 = lean_ctor_get(x_88, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_88); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -return x_104; -} -} -} -else -{ -lean_object* x_105; lean_object* x_106; -x_105 = lean_ctor_get(x_16, 0); -lean_inc(x_105); +lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_101 = lean_ctor_get(x_16, 0); +lean_inc(x_101); lean_dec(x_16); -x_106 = l_Lean_Meta_Grind_isEqv(x_105, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_102 = l_Lean_Meta_Grind_isEqv(x_101, 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); @@ -1721,28 +1692,51 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -if (lean_obj_tag(x_106) == 0) +lean_dec(x_3); +lean_dec(x_101); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_unbox(x_103); +lean_dec(x_103); +if (x_104 == 0) { -lean_object* x_107; uint8_t x_108; -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_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_1); +x_105 = lean_ctor_get(x_102, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_106 = x_102; +} else { + lean_dec_ref(x_102); + x_106 = lean_box(0); +} +x_107 = lean_box(0); +if (lean_is_scalar(x_106)) { + x_108 = lean_alloc_ctor(0, 2, 0); +} else { + x_108 = x_106; +} +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_105); +return x_108; +} +else { lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -lean_dec(x_1); -x_109 = lean_ctor_get(x_106, 1); +x_109 = lean_ctor_get(x_102, 1); lean_inc(x_109); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_110 = x_106; +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_110 = x_102; } else { - lean_dec_ref(x_106); + lean_dec_ref(x_102); x_110 = lean_box(0); } -x_111 = lean_box(0); +x_111 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_111, 0, x_1); if (lean_is_scalar(x_110)) { x_112 = lean_alloc_ctor(0, 2, 0); } else { @@ -1752,72 +1746,22 @@ lean_ctor_set(x_112, 0, x_111); lean_ctor_set(x_112, 1, x_109); return x_112; } -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_113 = lean_ctor_get(x_106, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_114 = x_106; -} else { - lean_dec_ref(x_106); - x_114 = lean_box(0); -} -x_115 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_115, 0, x_1); -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_object* x_119; lean_object* x_120; -lean_dec(x_1); -x_117 = lean_ctor_get(x_106, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_106, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_119 = x_106; -} else { - lean_dec_ref(x_106); - x_119 = lean_box(0); -} -if (lean_is_scalar(x_119)) { - x_120 = lean_alloc_ctor(1, 2, 0); -} else { - x_120 = x_119; -} -lean_ctor_set(x_120, 0, x_117); -lean_ctor_set(x_120, 1, x_118); -return x_120; -} } } } else { -lean_object* x_121; lean_object* x_122; -x_121 = l_Lean_Expr_bvarIdx_x21(x_2); +lean_object* x_113; lean_object* x_114; +x_113 = l_Lean_Expr_bvarIdx_x21(x_2); lean_dec(x_2); -x_122 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f(x_1, x_121, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_121); -return x_122; +x_114 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f(x_1, x_113, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_113); +return x_114; } } else { -lean_object* x_123; lean_object* x_124; +lean_object* x_115; lean_object* x_116; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -1828,12 +1772,12 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_123 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_123, 0, x_1); -x_124 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_12); -return x_124; +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_1); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_12); +return x_116; } } } @@ -15430,94 +15374,2052 @@ 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) { +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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, lean_object* x_15) { _start: { -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; -x_3 = l_List_reverse___rarg(x_2); -return x_3; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_1, 1); +lean_inc(x_16); +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_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, 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_15); +return x_19; } -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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, 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_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(2, 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* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_1, 1); +x_18 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_17, x_3); +if (x_18 == 0) { -lean_object* _tmp_0 = x_6; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; -x_2 = _tmp_1; -} -goto _start; +lean_object* x_19; lean_object* x_20; +x_19 = lean_box(0); +x_20 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__1(x_1, x_2, x_4, x_19, 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); +return x_20; } 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(2, 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_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_2); +x_21 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__9; +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_4); +x_23 = lean_alloc_ctor(0, 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_16); +return x_24; } } } -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) { +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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, lean_object* x_8, 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: { -if (lean_obj_tag(x_1) == 0) +lean_object* x_22; +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +x_22 = l_Lean_Meta_isExprDefEq(x_8, x_1, x_17, x_18, x_19, x_20, x_21); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_14; lean_object* x_15; -lean_dec(x_12); -lean_dec(x_11); +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) +{ +lean_object* x_25; lean_object* x_26; lean_object* 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); -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; +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_box(0); +x_27 = lean_apply_13(x_2, x_3, x_26, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_25); +return x_27; } 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_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_82; +x_28 = lean_ctor_get(x_22, 1); +lean_inc(x_28); +lean_dec(x_22); +x_29 = lean_box(0); +x_30 = lean_ctor_get(x_4, 8); +lean_inc(x_30); +x_31 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_31, 2, x_5); +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_9); +lean_inc(x_6); +lean_inc(x_31); +x_82 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArg_x3f(x_31, x_6, x_9, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_28); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_32 = x_84; +goto block_81; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +lean_dec(x_82); +x_86 = lean_ctor_get(x_83, 0); +lean_inc(x_86); +lean_dec(x_83); +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_10); +lean_inc(x_7); +x_87 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArg_x3f(x_86, x_7, x_10, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_85); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +if (lean_obj_tag(x_88) == 0) +{ +lean_object* x_89; +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_32 = x_89; +goto block_81; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_90 = lean_ctor_get(x_87, 1); +lean_inc(x_90); +lean_dec(x_87); +x_91 = lean_ctor_get(x_88, 0); +lean_inc(x_91); +lean_dec(x_88); +x_92 = lean_st_ref_take(x_12, x_90); +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_94 = lean_ctor_get(x_92, 1); +x_95 = lean_ctor_get(x_92, 0); +lean_dec(x_95); +lean_ctor_set_tag(x_92, 1); +lean_ctor_set(x_92, 1, x_29); +lean_ctor_set(x_92, 0, x_91); +x_96 = lean_st_ref_set(x_12, x_92, x_94); +x_97 = lean_ctor_get(x_96, 1); +lean_inc(x_97); +lean_dec(x_96); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_98 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices(x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_97); +if (lean_obj_tag(x_98) == 0) +{ +lean_object* x_99; +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +lean_dec(x_98); +x_32 = x_99; +goto block_81; +} +else +{ +uint8_t x_100; +lean_dec(x_31); +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); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_100 = !lean_is_exclusive(x_98); +if (x_100 == 0) +{ +return x_98; +} +else +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_98, 0); +x_102 = lean_ctor_get(x_98, 1); +lean_inc(x_102); +lean_inc(x_101); +lean_dec(x_98); +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_object* x_106; lean_object* x_107; lean_object* x_108; +x_104 = lean_ctor_get(x_92, 1); +lean_inc(x_104); +lean_dec(x_92); +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_91); +lean_ctor_set(x_105, 1, x_29); +x_106 = lean_st_ref_set(x_12, x_105, x_104); +x_107 = lean_ctor_get(x_106, 1); +lean_inc(x_107); +lean_dec(x_106); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_108 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices(x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_107); +if (lean_obj_tag(x_108) == 0) +{ +lean_object* x_109; +x_109 = lean_ctor_get(x_108, 1); +lean_inc(x_109); +lean_dec(x_108); +x_32 = x_109; +goto block_81; +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_dec(x_31); +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); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_110 = lean_ctor_get(x_108, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_108, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_112 = x_108; +} else { + lean_dec_ref(x_108); + x_112 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_113 = lean_alloc_ctor(1, 2, 0); +} else { + x_113 = x_112; +} +lean_ctor_set(x_113, 0, x_110); +lean_ctor_set(x_113, 1, x_111); +return x_113; +} +} +} +} +else +{ +uint8_t x_114; +lean_dec(x_31); +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); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_114 = !lean_is_exclusive(x_87); +if (x_114 == 0) +{ +return x_87; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_87, 0); +x_116 = lean_ctor_get(x_87, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_87); +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_31); +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); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +x_118 = !lean_is_exclusive(x_82); +if (x_118 == 0) +{ +return x_82; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_82, 0); +x_120 = lean_ctor_get(x_82, 1); +lean_inc(x_120); +lean_inc(x_119); +lean_dec(x_82); +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; +} +} +block_81: +{ +lean_object* x_33; +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_33 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArg_x3f(x_31, x_6, x_10, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_32); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_9); +lean_dec(x_7); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_box(0); +x_37 = lean_apply_13(x_2, x_3, x_36, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_35); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_33, 1); +lean_inc(x_38); +lean_dec(x_33); +x_39 = lean_ctor_get(x_34, 0); +lean_inc(x_39); +lean_dec(x_34); +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_40 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchArg_x3f(x_39, x_7, x_9, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_38); +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; +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = lean_box(0); +x_44 = lean_apply_13(x_2, x_3, x_43, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_42); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +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_st_ref_take(x_12, x_45); +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; +x_49 = lean_ctor_get(x_47, 1); +x_50 = lean_ctor_get(x_47, 0); +lean_dec(x_50); +lean_ctor_set_tag(x_47, 1); +lean_ctor_set(x_47, 1, x_29); +lean_ctor_set(x_47, 0, x_46); +x_51 = lean_st_ref_set(x_12, x_47, x_49); +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_53 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices(x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_52); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_53, 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_13(x_2, x_3, x_54, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_55); +return x_56; +} +else +{ +uint8_t x_57; +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_3); +lean_dec(x_2); +x_57 = !lean_is_exclusive(x_53); +if (x_57 == 0) +{ +return x_53; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_53, 0); +x_59 = lean_ctor_get(x_53, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_53); +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; lean_object* x_64; lean_object* x_65; +x_61 = lean_ctor_get(x_47, 1); +lean_inc(x_61); +lean_dec(x_47); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_46); +lean_ctor_set(x_62, 1, x_29); +x_63 = lean_st_ref_set(x_12, x_62, x_61); +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_65 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processChoices(x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_64); +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 = lean_apply_13(x_2, x_3, x_66, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_67); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +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_3); +lean_dec(x_2); +x_69 = lean_ctor_get(x_65, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_65, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_71 = x_65; +} else { + lean_dec_ref(x_65); + x_71 = lean_box(0); +} +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(1, 2, 0); +} else { + x_72 = x_71; +} +lean_ctor_set(x_72, 0, x_69); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} +} +} +} +else +{ +uint8_t x_73; +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_3); +lean_dec(x_2); +x_73 = !lean_is_exclusive(x_40); +if (x_73 == 0) +{ +return x_40; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_40, 0); +x_75 = lean_ctor_get(x_40, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_40); +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_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_9); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +x_77 = !lean_is_exclusive(x_33); +if (x_77 == 0) +{ +return x_33; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_33, 0); +x_79 = lean_ctor_get(x_33, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_33); +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_122; +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); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_122 = !lean_is_exclusive(x_22); +if (x_122 == 0) +{ +return x_22; +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_123 = lean_ctor_get(x_22, 0); +x_124 = lean_ctor_get(x_22, 1); +lean_inc(x_124); +lean_inc(x_123); +lean_dec(x_22); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___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: +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = lean_apply_13(x_1, x_2, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___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, 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) { +_start: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_st_ref_get(x_13, x_21); +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_9); +x_25 = l_Lean_Meta_Grind_Goal_getENode(x_23, x_9, x_19, x_20, x_24); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_53; +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_2); +lean_inc(x_1); +lean_inc(x_26); +x_28 = lean_alloc_closure((void*)(l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__2___boxed), 16, 3); +lean_closure_set(x_28, 0, x_26); +lean_closure_set(x_28, 1, x_1); +lean_closure_set(x_28, 2, x_2); +x_53 = lean_ctor_get_uint8(x_26, sizeof(void*)*11 + 4); +if (x_53 == 0) +{ +lean_object* x_54; uint8_t x_55; +x_54 = lean_ctor_get(x_26, 9); +lean_inc(x_54); +x_55 = l_Lean_Meta_Grind_ENode_isCongrRoot(x_26); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; +lean_dec(x_54); +lean_dec(x_28); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_56 = lean_box(0); +x_57 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__2(x_26, x_1, x_2, x_9, x_56, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_27); +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_2); +lean_dec(x_26); +return x_57; +} +else +{ +if (x_7 == 0) +{ +lean_object* x_58; +lean_dec(x_54); +x_58 = lean_box(0); +x_29 = x_58; +goto block_52; +} +else +{ +uint8_t x_59; +x_59 = lean_nat_dec_eq(x_54, x_8); +lean_dec(x_54); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +lean_dec(x_28); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_60 = lean_box(0); +x_61 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__2(x_26, x_1, x_2, x_9, x_60, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_27); +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_2); +lean_dec(x_26); +return x_61; +} +else +{ +lean_object* x_62; +x_62 = lean_box(0); +x_29 = x_62; +goto block_52; +} +} +} +} +else +{ +if (x_7 == 0) +{ +lean_object* x_63; +x_63 = lean_box(0); +x_29 = x_63; +goto block_52; +} +else +{ +lean_object* x_64; uint8_t x_65; +x_64 = lean_ctor_get(x_26, 9); +lean_inc(x_64); +x_65 = lean_nat_dec_eq(x_64, x_8); +lean_dec(x_64); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; +lean_dec(x_28); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_66 = lean_box(0); +x_67 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__2(x_26, x_1, x_2, x_9, x_66, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_27); +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_2); +lean_dec(x_26); +return x_67; +} +else +{ +lean_object* x_68; +x_68 = lean_box(0); +x_29 = x_68; +goto block_52; +} +} +} +block_52: +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +lean_dec(x_29); +x_30 = lean_ctor_get(x_26, 0); +lean_inc(x_30); +x_31 = l_Lean_Expr_cleanupAnnotations(x_30); +x_32 = l_Lean_Expr_isApp(x_31); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_31); +lean_dec(x_28); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_33 = lean_box(0); +x_34 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__2(x_26, x_1, x_2, x_9, x_33, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_27); +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_2); +lean_dec(x_26); +return x_34; +} +else +{ +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = l_Lean_Expr_appArg(x_31, lean_box(0)); +x_36 = l_Lean_Expr_appFnCleanup(x_31, lean_box(0)); +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_35); +lean_dec(x_28); +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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__2(x_26, x_1, x_2, x_9, x_38, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_27); +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_2); +lean_dec(x_26); +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_35); +lean_dec(x_28); +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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__2(x_26, x_1, x_2, x_9, x_43, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_27); +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_2); +lean_dec(x_26); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_annotateMatchEqnType___closed__2; +x_48 = l_Lean_Expr_isConstOf(x_46, x_47); +lean_dec(x_46); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +lean_dec(x_45); +lean_dec(x_40); +lean_dec(x_35); +lean_dec(x_28); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_49 = lean_box(0); +x_50 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__2(x_26, x_1, x_2, x_9, x_49, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_27); +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_2); +lean_dec(x_26); +return x_50; +} +else +{ +lean_object* x_51; +lean_dec(x_2); +lean_dec(x_1); +x_51 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__3(x_3, x_28, x_9, x_26, x_4, x_5, x_6, x_45, x_40, x_35, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_27); +lean_dec(x_26); +return x_51; +} +} +} +} +} +} +else +{ +uint8_t x_69; +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_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_69 = !lean_is_exclusive(x_25); +if (x_69 == 0) +{ +return x_25; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_25, 0); +x_71 = lean_ctor_get(x_25, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_25); +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_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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) { +_start: +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_9); +if (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_9, 1); +x_23 = lean_ctor_get(x_9, 0); +lean_dec(x_23); +x_24 = l_Lean_Meta_Grind_checkMaxInstancesExceeded(x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_unbox(x_25); +lean_dec(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_free_object(x_9); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_box(0); +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_3); +lean_inc(x_2); +lean_inc(x_4); +lean_inc(x_1); +lean_inc(x_7); +lean_inc(x_8); +x_29 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__5(x_8, x_7, x_1, x_4, x_2, x_3, x_5, x_6, x_22, x_28, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_27); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +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_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_29); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 0); +lean_dec(x_32); +x_33 = lean_ctor_get(x_30, 0); +lean_inc(x_33); +lean_dec(x_30); +lean_ctor_set(x_29, 0, x_33); +return x_29; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_29, 1); +lean_inc(x_34); +lean_dec(x_29); +x_35 = lean_ctor_get(x_30, 0); +lean_inc(x_35); +lean_dec(x_30); +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 +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_29, 1); +lean_inc(x_37); +lean_dec(x_29); +x_38 = lean_ctor_get(x_30, 0); +lean_inc(x_38); +lean_dec(x_30); +x_9 = x_38; +x_20 = x_37; +goto _start; +} +} +else +{ +uint8_t x_40; +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_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_29); +if (x_40 == 0) +{ +return x_29; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_29, 0); +x_42 = lean_ctor_get(x_29, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_29); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_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_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_24); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_24, 0); +lean_dec(x_45); +x_46 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__9; +lean_ctor_set(x_9, 0, x_46); +lean_ctor_set(x_24, 0, x_9); +return x_24; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_24, 1); +lean_inc(x_47); +lean_dec(x_24); +x_48 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__9; +lean_ctor_set(x_9, 0, x_48); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_9); +lean_ctor_set(x_49, 1, x_47); +return x_49; +} +} +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_50 = lean_ctor_get(x_9, 1); +lean_inc(x_50); +lean_dec(x_9); +x_51 = l_Lean_Meta_Grind_checkMaxInstancesExceeded(x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +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; +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = lean_box(0); +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_3); +lean_inc(x_2); +lean_inc(x_4); +lean_inc(x_1); +lean_inc(x_7); +lean_inc(x_8); +x_56 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__5(x_8, x_7, x_1, x_4, x_2, x_3, x_5, x_6, x_50, x_55, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_54); +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; lean_object* x_60; lean_object* x_61; +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_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +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); +} +x_60 = lean_ctor_get(x_57, 0); +lean_inc(x_60); +lean_dec(x_57); +if (lean_is_scalar(x_59)) { + x_61 = lean_alloc_ctor(0, 2, 0); +} else { + x_61 = x_59; +} +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_58); +return x_61; +} +else +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_56, 1); +lean_inc(x_62); +lean_dec(x_56); +x_63 = lean_ctor_get(x_57, 0); +lean_inc(x_63); +lean_dec(x_57); +x_9 = x_63; +x_20 = x_62; +goto _start; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +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_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_65 = lean_ctor_get(x_56, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_56, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_67 = x_56; +} else { + lean_dec_ref(x_56); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +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_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_69 = lean_ctor_get(x_51, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_70 = x_51; +} else { + lean_dec_ref(x_51); + x_70 = lean_box(0); +} +x_71 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__3___closed__9; +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_50); +if (lean_is_scalar(x_70)) { + x_73 = lean_alloc_ctor(0, 2, 0); +} else { + x_73 = x_70; +} +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_69); +return x_73; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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; 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; uint8_t x_25; +x_15 = lean_ctor_get(x_4, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_15, 2); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_unassigned; +x_18 = lean_mk_array(x_16, x_17); +x_19 = lean_ctor_get_uint8(x_4, sizeof(void*)*2); +x_20 = lean_st_ref_get(x_6, x_14); +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_21, 7); +lean_inc(x_23); +lean_dec(x_21); +x_24 = l_Lean_Meta_Grind_getFalseExpr___rarg(x_9, x_10, x_11, x_12, x_13, x_22); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_24, 1); +x_28 = lean_box(0); +lean_inc(x_26); +lean_ctor_set(x_24, 1, x_26); +lean_ctor_set(x_24, 0, x_28); +x_29 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1(x_1, x_2, x_3, x_18, x_19, x_23, x_26, x_28, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_27); +lean_dec(x_23); +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); +lean_dec(x_30); +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_box(0); +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_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_35); +return x_37; +} +} +else +{ +uint8_t x_38; +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 +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_24, 0); +x_49 = lean_ctor_get(x_24, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_24); +x_50 = lean_box(0); +lean_inc(x_48); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +x_52 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1(x_1, x_2, x_3, x_18, x_19, x_23, x_48, x_50, x_51, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_49); +lean_dec(x_23); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +lean_dec(x_53); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_56 = x_52; +} else { + lean_dec_ref(x_52); + x_56 = lean_box(0); +} +x_57 = lean_box(0); +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; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_ctor_get(x_52, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_60 = x_52; +} else { + lean_dec_ref(x_52); + x_60 = lean_box(0); +} +x_61 = lean_ctor_get(x_54, 0); +lean_inc(x_61); +lean_dec(x_54); +if (lean_is_scalar(x_60)) { + x_62 = lean_alloc_ctor(0, 2, 0); +} else { + x_62 = x_60; +} +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_59); +return x_62; +} +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_52, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_52, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_65 = x_52; +} else { + lean_dec_ref(x_52); + 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; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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; +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_matchEqBwdPat___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_matchEqBwdPat___lambda__1), 14, 0); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___lambda__2___boxed), 12, 0); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("eqBwdPattern", 12, 12); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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_annotateMatchEqnType___lambda__1___closed__1; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_annotateMatchEqnType___lambda__1___closed__2; +x_3 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__1; +x_14 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__2; +x_15 = l_Lean_Expr_cleanupAnnotations(x_1); +x_16 = l_Lean_Expr_isApp(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_dec(x_15); +x_17 = lean_box(0); +x_18 = lean_apply_12(x_14, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = l_Lean_Expr_appArg(x_15, lean_box(0)); +x_20 = l_Lean_Expr_appFnCleanup(x_15, lean_box(0)); +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_19); +x_22 = lean_box(0); +x_23 = lean_apply_12(x_14, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +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_19); +x_27 = lean_box(0); +x_28 = lean_apply_12(x_14, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +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___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__4; +x_32 = l_Lean_Expr_isConstOf(x_30, x_31); +lean_dec(x_30); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; +lean_dec(x_29); +lean_dec(x_24); +lean_dec(x_19); +x_33 = lean_box(0); +x_34 = lean_apply_12(x_14, x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_34; +} +else +{ +lean_object* x_35; +x_35 = lean_apply_14(x_13, x_29, x_24, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_35; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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, 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); +lean_dec(x_3); +lean_dec(x_1); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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, lean_object* x_8, 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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___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, 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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___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: +{ +lean_object* x_22; +x_22 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___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, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +lean_dec(x_4); +return x_22; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___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_3); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___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]; +_start: +{ +uint8_t x_22; lean_object* x_23; +x_22 = lean_unbox(x_7); +lean_dec(x_7); +x_23 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1___lambda__5(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_16, x_17, x_18, x_19, x_20, x_21); +lean_dec(x_10); +lean_dec(x_8); +return x_23; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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: +{ +uint8_t x_21; lean_object* x_22; +x_21 = lean_unbox(x_5); +lean_dec(x_5); +x_22 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___spec__1(x_1, x_2, x_3, x_4, x_21, 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_6); +return x_22; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___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_matchEqBwdPat___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_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_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(2, 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(2, 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); @@ -15684,7 +17586,7 @@ static lean_object* _init_l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___c 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(321u); +x_3 = lean_unsigned_to_nat(353u); 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); @@ -15719,91 +17621,113 @@ 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; +lean_object* x_21; uint8_t x_22; 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; +x_22 = l_Lean_Meta_Grind_isEqBwdPattern(x_21); +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_EMatch_0__Lean_Meta_Grind_EMatch_main(x_21, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_24; +} +else +{ +lean_object* x_25; +x_25 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_25; +} } 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_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_14, 0); +lean_inc(x_26); 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; +x_27 = lean_box(0); +x_28 = l_List_mapTR_loop___at_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll___spec__1(x_20, x_27); +x_29 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(x_26, 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 { -lean_object* x_28; lean_object* x_29; +lean_object* x_30; lean_object* x_31; 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; +x_30 = lean_box(0); +x_31 = l_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll(x_14, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_31; } } } } else { -uint8_t x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get_uint8(x_3, sizeof(void*)*2); -x_31 = lean_ctor_get(x_3, 1); -lean_inc(x_31); +uint8_t x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get_uint8(x_3, sizeof(void*)*2); +x_33 = lean_ctor_get(x_3, 1); +lean_inc(x_33); lean_dec(x_3); -x_32 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_32, 0, x_1); -lean_ctor_set(x_32, 1, x_31); -lean_ctor_set_uint8(x_32, sizeof(void*)*2, x_30); +x_34 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_34, 0, x_1); +lean_ctor_set(x_34, 1, x_33); +lean_ctor_set_uint8(x_34, sizeof(void*)*2, x_32); if (lean_obj_tag(x_14) == 0) { -lean_object* x_33; lean_object* x_34; -x_33 = l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__2; -x_34 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2(x_33, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_34; +lean_object* x_35; lean_object* x_36; +x_35 = l_Lean_Meta_Grind_EMatch_ematchTheorem___lambda__1___closed__2; +x_36 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_instantiateTheorem___spec__2(x_35, x_34, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_36; } else { -lean_object* x_35; -x_35 = lean_ctor_get(x_14, 1); -lean_inc(x_35); -if (lean_obj_tag(x_35) == 0) +lean_object* x_37; +x_37 = lean_ctor_get(x_14, 1); +lean_inc(x_37); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_14, 0); -lean_inc(x_36); +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_14, 0); +lean_inc(x_38); lean_dec(x_14); -x_37 = lean_box(0); -x_38 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(x_36, x_37, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_38; +x_39 = l_Lean_Meta_Grind_isEqBwdPattern(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_box(0); +x_41 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(x_38, x_40, x_34, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_41; } else { -if (x_30 == 0) +lean_object* x_42; +x_42 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat(x_38, x_34, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_42; +} +} +else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_39 = lean_ctor_get(x_14, 0); -lean_inc(x_39); +if (x_32 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_14, 0); +lean_inc(x_43); lean_dec(x_14); -x_40 = lean_box(0); -x_41 = l_List_mapTR_loop___at_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll___spec__1(x_35, x_40); -x_42 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(x_39, x_41, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_42; +x_44 = lean_box(0); +x_45 = l_List_mapTR_loop___at_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll___spec__1(x_37, x_44); +x_46 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_main(x_43, x_45, x_34, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_46; } else { -lean_object* x_43; lean_object* x_44; -lean_dec(x_35); -x_43 = lean_box(0); -x_44 = l_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll(x_14, x_43, x_32, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -return x_44; +lean_object* x_47; lean_object* x_48; +lean_dec(x_37); +x_47 = lean_box(0); +x_48 = l_Lean_Meta_Grind_EMatch_ematchTheorem_tryAll(x_14, x_47, x_34, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_48; } } } @@ -17390,6 +19314,14 @@ lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grin 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_matchEqBwdPat___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_matchEqBwdPat___closed__4); 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(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c index 8f98399276fa..b89d61ad5d1d 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c @@ -14,7 +14,6 @@ extern "C" { #endif static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__8; -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__15; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___boxed(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*); @@ -22,48 +21,46 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lea static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__1; 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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__35; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__10(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Meta_Grind_ppPattern___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__1; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__2; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___closed__1; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__12; 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_1666____closed__15; static lean_object* l_Lean_Meta_Grind_preprocessPattern___lambda__1___closed__1; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__3(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashableOrigin___boxed(lean_object*); 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*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__11; 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*); static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__7; 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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__3; 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; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792_(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__4; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__4; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__25; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___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_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__20; size_t lean_usize_shift_right(size_t, size_t); static lean_object* l_Lean_Meta_Grind_mkGroundPattern___closed__3; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__28; 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_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp___at_Lean_Meta_Grind_mkEMatchTheoremCore___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_EMatchTheorem___hyg_1844____closed__20; 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_collect___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__6; 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_mkEMatchTheoremWithKind_x3f(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, 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; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lambda__4___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__3___boxed(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_detectOffsets___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_contains___boxed(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*); @@ -71,7 +68,6 @@ LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_E 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*); 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_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__5; 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*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_getPatternSupportMask(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -84,22 +80,20 @@ 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*); uint8_t l_Array_contains___at_Lean_Meta_arrowDomainsN___spec__2(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_614____closed__5; 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; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__29; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__17; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isPatternDontCare(lean_object*); uint8_t l_Lean_Exception_isInterrupt(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__3; 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*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__2; uint64_t lean_uint64_of_nat(lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__17; lean_object* l_Lean_Meta_isOffset_x3f(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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__13; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___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_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___closed__1; lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -108,22 +102,24 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedOrigin; size_t lean_uint64_to_usize(uint64_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___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_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___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_11457____closed__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*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__2; static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__3; +uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; 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_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets___lambda__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_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__20; 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*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__18; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__12; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__6; 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*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__13; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__9; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lambda__3___closed__1; +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(uint8_t, uint8_t); static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__8; lean_object* l_Lean_Expr_sort___override(lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); @@ -134,10 +130,8 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Met lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__19; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__12; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseEMatchAttr___lambda__1(lean_object*, lean_object*); size_t lean_usize_mul(size_t, size_t); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___closed__3; lean_object* l_Lean_RBNode_fold___at_Lean_RBMap_size___spec__1___rarg(lean_object*, lean_object*); @@ -149,19 +143,18 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__2___b lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_foldProjs___lambda__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_EMatchTheorem___hyg_1666____closed__17; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__15; 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_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_toCtorIdx___boxed(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; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__9; 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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindAttr(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__35; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqOrigin__1___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__7; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__12(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__14; static lean_object* l_Lean_Meta_Grind_ppPattern___closed__8; static lean_object* l_Lean_Meta_Grind_mkGroundPattern___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -173,18 +166,25 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lea 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_mkEMatchEqTheoremCore___lambda__3___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___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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__17; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__11; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__4; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__9; +static lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___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; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__4; -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__10; LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__2(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__6; 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 lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__37; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__23; lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Meta_registerCoercion___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__7; LEAN_EXPORT lean_object* l_Array_filterMapM___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes___spec__1___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_792____closed__8; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__7; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__2; 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*); @@ -198,67 +198,64 @@ static lean_object* l_Lean_Meta_Grind_instReprTheoremKind___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_pp(lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__5; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mkEMatchEqTheoremsForDef_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666_(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___spec__1(uint8_t, 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__8; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__6; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__10; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___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*); -uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_mkEqBwdPattern___closed__2; LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_EMatchTheorems_contains___spec__1(lean_object*, lean_object*); lean_object* l_Nat_nextPowerOfTwo_go(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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_Expr_cleanupAnnotations(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*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___lambda__1(lean_object*); -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__13; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__39; static lean_object* l_Lean_Meta_Grind_NormalizePattern_main___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instReprOrigin; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__9; 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_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__3; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__12; 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; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__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_instReprOrigin___closed__1; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___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_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*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__3; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__2___closed__4; 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*); 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_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___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_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___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___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__6; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__20; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttr(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_EMatchTheorems_isErased(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__3; static lean_object* l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_getPatternSupportMask___lambda__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_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(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_1666____closed__7; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__5; 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; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isPatternDontCare___boxed(lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2(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*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__15(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_mkOffsetPattern___closed__5; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__34; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___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_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_mkEMatchTheoremCore___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_EMatchTheorem_getProofWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqBwdPattern_x3f(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Origin_key___boxed(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*); @@ -266,17 +263,16 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Met lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__14; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__14___boxed(lean_object*, lean_object*, lean_object*, 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_Lean_Meta_Grind_EMatchTheorems_eraseDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_appendTR___rarg(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*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__20; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lambda__6___closed__3; 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_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__14; 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; static lean_object* l_Lean_Meta_Grind_mkOffsetPattern___closed__2; @@ -284,27 +280,26 @@ size_t lean_usize_of_nat(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__10; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__26; lean_object* l_Lean_PersistentHashMap_isUnaryNode___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessPattern___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_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_object* lean_expr_abstract(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_811_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___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_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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__4; 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*); static lean_object* l_Lean_Meta_Grind_ppPattern___closed__7; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessPattern(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__36; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_noConfusion(lean_object*); 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*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__42; 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*); static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__13; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__11; 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_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_ConstantInfo_isTheorem(lean_object*); @@ -317,18 +312,19 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_retrieve_x3f___boxed(l LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__9; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__32; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817_(uint8_t, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__3(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_1844____closed__3; 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_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__10; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__1; 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); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__22; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__16; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__12; 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*); @@ -337,27 +333,28 @@ 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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go_goArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__2___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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__15; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__11; 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*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__27; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__1; static lean_object* l_Lean_Meta_Grind_preprocessPattern___closed__2; 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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___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_beqOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_811____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isPatternFnCandidate(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_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_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_preprocessPattern___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__2(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__7; lean_object* l_Lean_MessageData_ofFormat(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__19; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__18; static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__12; 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_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__9(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*); @@ -365,7 +362,7 @@ lean_object* l_Lean_Expr_appArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isOffsetPattern_x3f___lambda__2___boxed(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*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_getTheoremKindCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__32; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___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_EMatchTheorem_0__Lean_Meta_Grind_collect___lambda__7___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___closed__1; @@ -373,14 +370,10 @@ LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems(lean_object*); lean_object* l_Lean_Meta_getEqnsFor_x3f(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_addGrindAttr___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_forbiddenDeclNames___closed__8; -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__1; 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_11457____closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___closed__4; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__8; 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; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__5___closed__2; @@ -388,11 +381,11 @@ static lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInha lean_object* l_Lean_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__16; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_mkEMatchTheoremForDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_splitWhileForbidden(lean_object*); static lean_object* l_Lean_Meta_Grind_preprocessPattern___lambda__1___closed__2; LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isForbidden(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore(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___boxed(lean_object*, lean_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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__6; @@ -406,22 +399,22 @@ lean_object* l_Lean_ScopedEnvExtension_modifyState___rarg(lean_object*, lean_obj 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*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqOrigin; +static lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___closed__2; static lean_object* l_Lean_Meta_Grind_ppPattern___closed__2; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__6; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____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*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__13; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__9___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lambda__6___closed__2; -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__7; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__14; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isOffsetPattern_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_EMatchTheorems_retrieve_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__6; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__2; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__3; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__4; lean_object* l_panic___at_String_fromUTF8_x21___spec__1(lean_object*); @@ -435,13 +428,12 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg(uint8_ 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_collect___lambda__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_614____closed__12; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_getPatternFn_x3f(lean_object*); -static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__12; 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*); +static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__2; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__1; lean_object* l_Lean_MessageData_ofConst(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__33; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems___boxed(lean_object*); lean_object* l_Lean_FVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_grind_normalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -449,62 +441,57 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Met 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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__13; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__4; 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*); static lean_object* l_Lean_Meta_Grind_preprocessPattern___closed__3; -static uint64_t l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__2; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__16; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__11; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___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___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_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__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_614____closed__6; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____boxed(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__29; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_toCtorIdx(uint8_t); static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__6; uint8_t lean_name_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___boxed(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_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__3(lean_object*, lean_object*, 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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__1; lean_object* l_Lean_Expr_instantiateLevelParamsArray(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_collect___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_Expr_isArrow(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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__41; 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*); static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__2___closed__3; 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*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqBwdPattern___boxed(lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__4; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__5; LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__4; -lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___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___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_foldProjs___lambda__2(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___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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__36; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__4; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__14; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseEMatchAttr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__6; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqTheoremKind; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instReprTheoremKind; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__2(lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___boxed(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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__1; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__2___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure(uint8_t); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__34; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__3; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheorem(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___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_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186____boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__7; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__9; -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__16; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lambda__7___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -516,16 +503,17 @@ LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_Meta_Grind_EMatchTheorems_ lean_object* l_Array_eraseIdx___rarg(lean_object*, 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*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__8; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__19; 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*, 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_mkEMatchTheoremForDecl___closed__3; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__8; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__7; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__5; 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_EXPORT lean_object* l_Lean_Meta_Grind_mkEqBwdPattern(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*); static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__2; @@ -535,9 +523,12 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Met 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; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__40; lean_object* l_Lean_MessageData_ofExpr(lean_object*); -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseEMatchAttr___lambda__1___boxed(lean_object*, 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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__4; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__38; static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_canBeSynthesized___spec__2___closed__4; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___closed__1; static lean_object* l_Lean_Meta_Grind_mkOffsetPattern___closed__3; @@ -545,76 +536,72 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_mkEMatchEqTheore 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*); double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___lambda__1(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_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__24; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_989____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isOffsetPattern_x3f___lambda__1(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*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__4; 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_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_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*); 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_Origin_pp___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_isErased___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__19; LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__8(lean_object*, 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*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__26; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___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*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__11; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes___spec__2(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_TheoremKind_noConfusion___rarg___lambda__1___boxed(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_panic___at_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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_collect___lambda__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_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___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 uint64_t l_Lean_Meta_Grind_instHashableOrigin(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go_goArg___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_TheoremKind_explainFailure___closed__4; LEAN_EXPORT lean_object* l_Array_filterMapM___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___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_614____closed__1; 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_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__15; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__1; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___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_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__5; static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkCoverage___lambda__3___closed__4; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__3; +lean_object* l_Lean_Expr_constLevels_x21(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__13; LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_isAtomicPattern(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; -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__9; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__3; +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isEqBwdPattern(lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__1(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__21; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lambda__3___closed__2; 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_getTheoremKindCore___closed__11; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_normalizePattern(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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__11; 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*); -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__5; LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_EMatchTheorems_contains___spec__2(lean_object*, size_t, 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_1844____closed__9; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___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_mkEMatchEqTheoremCore___lambda__4(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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204_(uint8_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___lambda__1(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_forbiddenDeclNames___closed__11; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__7; +lean_object* l_Lean_mkApp3(lean_object*, lean_object*, 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 size_t l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__1; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__6; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__3; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___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_isOffsetPattern_x3f___closed__2; -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(uint8_t, uint8_t); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__16; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__14; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(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*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_EMatchTheorems_contains(lean_object*, lean_object*); @@ -623,18 +610,18 @@ lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__2; LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_Grind_NormalizePattern_getPatternSupportMask___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkRawNatLit(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___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_collectPatterns_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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_mkEMatchTheoremCore___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__2(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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__30; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__13___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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__23; lean_object* l_Lean_indentExpr(lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__5; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__25; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheorem___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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__10; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_EMatchTheorems_retrieve_x3f___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__5___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -645,24 +632,23 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Meta_Tact 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*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__31; 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 lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__14; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lambda__5(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__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_Meta_Grind_mkEMatchTheoremForDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTheoremKindCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__14; uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___lambda__2___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__10; 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_EXPORT lean_object* l_Array_mapFinIdxM_map___at_Lean_Meta_Grind_NormalizePattern_getPatternSupportMask___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_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_EMatchTheorems_retrieve_x3f___spec__2(lean_object*, size_t, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__9; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__14; 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_Meta_Grind_mkEMatchTheoremCore(lean_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__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -672,11 +658,11 @@ 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*); -uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___lambda__2___closed__1; lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__13; LEAN_EXPORT uint8_t l_Lean_Meta_Grind_instInhabitedTheoremKind; lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___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*); @@ -684,26 +670,21 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPat lean_object* l_Lean_ScopedEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___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_1666____closed__18; 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_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes___spec__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_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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__21; 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_mkEMatchTheoremWithKind_x3f___lambda__2___closed__2; lean_object* l_Array_indexOfAux___at_Lean_MetavarContext_setMVarUserName___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_addCore___rarg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__13; 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*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__11; lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___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_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVarsIfMVarApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_getTheoremKindCore___spec__1(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*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__7(lean_object*, size_t, lean_object*); @@ -711,68 +692,60 @@ 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_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__10; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_EMatchTheorems_contains___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_EMatchTheorems_insert___closed__3; -lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__21; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__5; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__4; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__17; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__8; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTheoremKindFromOpt(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__9; lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_Meta_getFunInfoNArgs(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_isPatternFnCandidate___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_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_1844____closed__12; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__7; +static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTheoremKindCore(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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__2; uint8_t l_Lean_Syntax_structEq(lean_object*, 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___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_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___spec__1___boxed(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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__24; +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*, 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_collect___lambda__7___closed__4; static lean_object* l_Lean_Meta_Grind_instBEqOrigin___closed__1; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__7; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveBVar___boxed(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*); size_t lean_usize_add(size_t, size_t); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___closed__3; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___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_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedEMatchTheorems___spec__1; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__3; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__7; 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 double l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___spec__2___closed__1; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_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*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__6; LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__30; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___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_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*); 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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__31; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__15; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTheoremKindFromOpt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__7; 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_EMatchTheorems_retrieve_x3f(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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__27; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_EMatchTheorems_retrieve_x3f___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__6___boxed(lean_object*, lean_object*); size_t lean_usize_shift_left(size_t, size_t); @@ -788,18 +761,19 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lea lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__9; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_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_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_getPatternSupportMask___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_preprocessPattern___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_ppPattern___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_getTheoremKindCore___closed__8; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___boxed(lean_object*); static lean_object* l_Lean_Meta_Grind_instBEqTheoremKind___closed__1; 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; +static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__5; 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 uint8_t l_Lean_Meta_Grind_instBEqOrigin__1(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*); @@ -808,9 +782,12 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_Grind_EMatchTheor LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_erase(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__19; LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_EMatchTheorems_contains___spec__3(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_go___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__7___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__6; +static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__4; +static lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___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__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute(uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkOffsetPattern(lean_object*, lean_object*); @@ -825,22 +802,25 @@ static lean_object* l_Lean_Meta_Grind_isOffsetPattern_x3f___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f___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_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*); static lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedEMatchTheorems___spec__1___closed__2; +static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__13; 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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__10; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_ppPattern___closed__5; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__18; +static lean_object* l_Lean_Meta_Grind_mkEqBwdPattern___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_EMatchTheorems_contains___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__8; +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_989_(lean_object*, 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*); uint8_t l_Lean_Exception_isRuntime(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3(uint8_t, lean_object*, 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_EMatchTheorem___hyg_1666____closed__2; 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*); +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__22; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchEqTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mkEMatchEqTheoremsForDef_x3f___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_Lean_HeadIndex_hash(lean_object*); @@ -850,14 +830,15 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems___rarg___boxed(lean static lean_object* l_Lean_Meta_Grind_ppPattern___closed__6; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(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_792____closed__5; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__5; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799____boxed(lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__3___closed__2; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__6; -uint64_t l___private_Lean_Meta_Basic_0__Lean_Meta_Config_toKey(lean_object*); lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__2(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__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_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844_(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*); @@ -867,31 +848,26 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_mkEMatchTheoremF 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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__33; -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457_(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__13(lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_instInhabitedEMatchTheorem___closed__2; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__17; -static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__18; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__16; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__2; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_detectOffsets___lambda__3(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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___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_ReaderT_instMonad___rarg(lean_object*); size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isOffsetPattern_x3f___lambda__2(lean_object*); 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_getTheoremKindCore___closed__2; static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__4; 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; -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__28; 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*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__5; uint8_t l_Array_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_EMatchTheorems_insert___spec__10___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__3; +static lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__3; 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_mkOffsetPattern___closed__1() { _start: @@ -1485,6 +1461,127 @@ lean_dec(x_1); return x_2; } } +static lean_object* _init_l_Lean_Meta_Grind_mkEqBwdPattern___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("eqBwdPattern", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkEqBwdPattern___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_mkOffsetPattern___closed__1; +x_2 = l_Lean_Meta_Grind_mkOffsetPattern___closed__2; +x_3 = l_Lean_Meta_Grind_mkEqBwdPattern___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEqBwdPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = l_Lean_Meta_Grind_mkEqBwdPattern___closed__2; +x_6 = l_Lean_Expr_const___override(x_5, x_1); +x_7 = l_Lean_mkApp3(x_6, x_2, x_3, x_4); +return x_7; +} +} +LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isEqBwdPattern(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l_Lean_Meta_Grind_mkEqBwdPattern___closed__2; +x_3 = lean_unsigned_to_nat(3u); +x_4 = l_Lean_Expr_isAppOfArity(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqBwdPattern___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Grind_isEqBwdPattern(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqBwdPattern_x3f(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = l_Lean_Expr_cleanupAnnotations(x_1); +x_3 = l_Lean_Expr_isApp(x_2); +if (x_3 == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_box(0); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = l_Lean_Expr_appArg(x_2, lean_box(0)); +x_6 = l_Lean_Expr_appFnCleanup(x_2, lean_box(0)); +x_7 = l_Lean_Expr_isApp(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_6); +lean_dec(x_5); +x_8 = lean_box(0); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = l_Lean_Expr_appArg(x_6, lean_box(0)); +x_10 = l_Lean_Expr_appFnCleanup(x_6, lean_box(0)); +x_11 = l_Lean_Expr_isApp(x_10); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +x_12 = lean_box(0); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = l_Lean_Expr_appFnCleanup(x_10, lean_box(0)); +x_14 = l_Lean_Meta_Grind_mkEqBwdPattern___closed__2; +x_15 = l_Lean_Expr_isConstOf(x_13, x_14); +lean_dec(x_13); +if (x_15 == 0) +{ +lean_object* x_16; +lean_dec(x_9); +lean_dec(x_5); +x_16 = lean_box(0); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_9); +lean_ctor_set(x_17, 1, x_5); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +return x_18; +} +} +} +} +} +} static lean_object* _init_l_Lean_Meta_Grind_preprocessPattern___lambda__1___closed__1() { _start: { @@ -1754,7 +1851,7 @@ 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_614____closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__1() { _start: { lean_object* x_1; @@ -1762,21 +1859,21 @@ 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_614____closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__1; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__2; x_2 = lean_box(1); x_3 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -1784,7 +1881,7 @@ 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_614____closed__4() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -1793,7 +1890,7 @@ 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_614____closed__5() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__5() { _start: { lean_object* x_1; lean_object* x_2; @@ -1802,7 +1899,7 @@ 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_614____closed__6() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__6() { _start: { lean_object* x_1; @@ -1810,21 +1907,21 @@ 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_614____closed__7() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__6; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__8() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__7; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__7; x_2 = lean_box(1); x_3 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -1832,7 +1929,7 @@ 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_614____closed__9() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__9() { _start: { lean_object* x_1; @@ -1840,21 +1937,21 @@ 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_614____closed__10() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__9; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__11() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__10; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__10; x_2 = lean_box(1); x_3 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -1862,7 +1959,7 @@ 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_614____closed__12() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__12() { _start: { lean_object* x_1; @@ -1870,21 +1967,21 @@ x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.Origin.local", 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_614____closed__13() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__12; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__14() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__13; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__13; x_2 = lean_box(1); x_3 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -1892,7 +1989,7 @@ lean_ctor_set(x_3, 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_614_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792_(lean_object* x_1, lean_object* x_2) { _start: { switch (lean_obj_tag(x_1)) { @@ -1905,14 +2002,14 @@ 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_614____closed__3; +x_7 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__4; +x_9 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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); @@ -1926,7 +2023,7 @@ 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_614____closed__5; +x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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); @@ -1947,14 +2044,14 @@ 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_614____closed__8; +x_23 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614____closed__4; +x_25 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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); @@ -1968,7 +2065,7 @@ 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_614____closed__5; +x_30 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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); @@ -1992,7 +2089,7 @@ 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_614____closed__11; +x_41 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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); @@ -2007,7 +2104,7 @@ 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_614____closed__4; +x_46 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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); @@ -2021,7 +2118,7 @@ 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_614____closed__5; +x_51 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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); @@ -2044,7 +2141,7 @@ 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_614____closed__11; +x_61 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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); @@ -2059,7 +2156,7 @@ 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_614____closed__4; +x_67 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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); @@ -2073,7 +2170,7 @@ 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_614____closed__5; +x_72 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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); @@ -2095,14 +2192,14 @@ lean_dec(x_1); x_78 = lean_unsigned_to_nat(1024u); x_79 = lean_nat_dec_le(x_78, x_2); x_80 = l_Lean_Name_reprPrec(x_77, x_78); -x_81 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__14; +x_81 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__14; x_82 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); if (x_79 == 0) { lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; -x_83 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__4; +x_83 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__4; x_84 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_84, 0, x_83); lean_ctor_set(x_84, 1, x_82); @@ -2116,7 +2213,7 @@ return x_87; else { lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; -x_88 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__5; +x_88 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__5; x_89 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_89, 0, x_88); lean_ctor_set(x_89, 1, x_82); @@ -2131,11 +2228,11 @@ return x_92; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____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_614_(x_1, x_2); +x_3 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792_(x_1, x_2); lean_dec(x_2); return x_3; } @@ -2144,7 +2241,7 @@ 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_614____boxed), 2, 0); +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_792____boxed), 2, 0); return x_1; } } @@ -2156,7 +2253,7 @@ x_1 = l_Lean_Meta_Grind_instReprOrigin___closed__1; return x_1; } } -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_811_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_989_(lean_object* x_1, lean_object* x_2) { _start: { switch (lean_obj_tag(x_1)) { @@ -2280,11 +2377,11 @@ return x_22; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_811____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_989____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_EMatchTheorem_0__Lean_Meta_Grind_beqOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_811_(x_1, x_2); +x_3 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_989_(x_1, x_2); x_4 = lean_box(x_3); return x_4; } @@ -2293,7 +2390,7 @@ static lean_object* _init_l_Lean_Meta_Grind_instBEqOrigin___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_811____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_989____boxed), 2, 0); return x_1; } } @@ -4207,7 +4304,7 @@ static lean_object* _init_l_Lean_Meta_Grind_EMatchTheorems_insert___closed__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; 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(120u); +x_3 = lean_unsigned_to_nat(131u); 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); @@ -5534,7 +5631,7 @@ lean_dec(x_2); return x_7; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__1() { _start: { lean_object* x_1; @@ -5542,27 +5639,27 @@ 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_1666____closed__2() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____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_1666____closed__1; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____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_1666____closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__3() { _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_1666____closed__2; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__2; x_2 = l_Lean_Meta_Grind_mkOffsetPattern___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_1666____closed__4() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__4() { _start: { lean_object* x_1; @@ -5570,17 +5667,17 @@ 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_1666____closed__5() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__5() { _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_1666____closed__3; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__4; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__3; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__4; 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_1666____closed__6() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__6() { _start: { lean_object* x_1; @@ -5588,27 +5685,27 @@ 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_1666____closed__7() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__7() { _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_1666____closed__5; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__6; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__5; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__6; 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_1666____closed__8() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____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_1666____closed__7; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__7; x_2 = l_Lean_Meta_Grind_mkOffsetPattern___closed__2; 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_1666____closed__9() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__9() { _start: { lean_object* x_1; @@ -5616,57 +5713,57 @@ 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_1666____closed__10() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____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_1666____closed__8; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__9; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__8; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____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_1666____closed__11() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__11() { _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_1666____closed__10; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__10; 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_1666____closed__12() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____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_1666____closed__11; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__11; x_2 = l_Lean_Meta_Grind_mkOffsetPattern___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_1666____closed__13() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____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_1666____closed__12; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__4; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__12; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__4; 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_1666____closed__14() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____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_1666____closed__13; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__13; x_2 = l_Lean_Meta_Grind_mkOffsetPattern___closed__2; 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_1666____closed__15() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__15() { _start: { lean_object* x_1; @@ -5674,17 +5771,17 @@ 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_1666____closed__16() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____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_1666____closed__14; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__15; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__14; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__15; 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_1666____closed__17() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5697,7 +5794,7 @@ lean_ctor_set(x_3, 2, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__18() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__18() { _start: { lean_object* x_1; @@ -5705,7 +5802,7 @@ 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_1666____closed__19() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__19() { _start: { lean_object* x_1; @@ -5713,14 +5810,14 @@ x_1 = lean_alloc_closure((void*)(l_id___rarg___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__20() { +static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__16; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__18; -x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__17; -x_4 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__19; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__16; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__18; +x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__17; +x_4 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__19; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -5729,11 +5826,11 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__20; +x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__20; x_3 = l_Lean_registerSimpleScopedEnvExtension___rarg(x_2, x_1); return x_3; } @@ -10490,7 +10587,133 @@ return x_16; } } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__1() { +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, 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; +x_10 = lean_unsigned_to_nat(0u); +x_11 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, 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_1); +x_16 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_13, x_15); +x_17 = lean_array_get_size(x_16); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_17); +lean_inc(x_2); +x_18 = l_Lean_Meta_Grind_NormalizePattern_getPatternSupportMask(x_2, x_17, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +lean_inc(x_17); +x_21 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_21, 0, x_10); +lean_ctor_set(x_21, 1, x_17); +lean_ctor_set(x_21, 2, x_14); +x_22 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2(x_1, x_17, x_19, x_21, x_21, x_16, x_10, lean_box(0), lean_box(0), x_4, x_5, x_6, x_7, x_8, x_20); +lean_dec(x_21); +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_1); +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; +} +} +} +else +{ +uint8_t x_34; +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_2); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_18); +if (x_34 == 0) +{ +return x_18; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_18, 0); +x_36 = lean_ctor_get(x_18, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_18); +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_NormalizePattern_go___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -10498,16 +10721,16 @@ x_1 = lean_mk_string_unchecked("invalid pattern, (non-forbidden) application exp return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___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_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___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() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__3() { _start: { lean_object* x_1; @@ -10515,7 +10738,7 @@ 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() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__4() { _start: { lean_object* x_1; @@ -10523,17 +10746,17 @@ 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() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___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_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__3; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___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() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__6() { _start: { lean_object* x_1; @@ -10541,20 +10764,20 @@ x_1 = lean_mk_string_unchecked("_private.Lean.Meta.Tactic.Grind.EMatchTheorem.0. return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___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(316u); +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__6; +x_3 = lean_unsigned_to_nat(327u); 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_5 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___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) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_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) { _start: { lean_object* x_9; @@ -10563,7 +10786,7 @@ if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_10 = l_Lean_indentExpr(x_1); -x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__2; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___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); @@ -10581,174 +10804,72 @@ return x_15; } else { -lean_object* x_16; lean_object* x_17; uint8_t x_50; +lean_object* x_16; lean_object* x_17; uint8_t x_28; x_16 = lean_ctor_get(x_9, 0); lean_inc(x_16); lean_dec(x_9); -x_50 = l_Lean_Expr_isConst(x_16); -if (x_50 == 0) +x_28 = l_Lean_Expr_isConst(x_16); +if (x_28 == 0) { -uint8_t x_51; -x_51 = l_Lean_Expr_isFVar(x_16); -if (x_51 == 0) +uint8_t x_29; +x_29 = l_Lean_Expr_isFVar(x_16); +if (x_29 == 0) { -lean_object* x_52; lean_object* x_53; +lean_object* x_30; lean_object* x_31; lean_dec(x_16); lean_dec(x_1); -x_52 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1___closed__7; -x_53 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3(x_52, x_3, x_4, x_5, x_6, x_7, x_8); -return x_53; +x_30 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__7; +x_31 = l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__3(x_30, x_3, x_4, x_5, x_6, x_7, x_8); +return x_31; } else { -lean_object* x_54; -x_54 = lean_box(0); -x_17 = x_54; -goto block_49; +lean_object* x_32; +x_32 = lean_box(0); +x_17 = x_32; +goto block_27; } } else { -lean_object* x_55; -x_55 = lean_box(0); -x_17 = x_55; -goto block_49; +lean_object* x_33; +x_33 = lean_box(0); +x_17 = x_33; +goto block_27; } -block_49: +block_27: { -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_18; uint8_t x_19; lean_dec(x_17); +x_18 = l_Lean_Meta_Grind_mkEqBwdPattern___closed__2; +x_19 = l_Lean_Expr_isConstOf(x_16, 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; lean_inc(x_16); -x_18 = l_Lean_Expr_toHeadIndex(x_16); -x_19 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol(x_18, x_3, x_4, x_5, x_6, x_7, x_8); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_unsigned_to_nat(0u); -x_22 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_1, x_21); -x_23 = l_Lean_Meta_Grind_ppPattern___closed__5; +x_20 = l_Lean_Expr_toHeadIndex(x_16); +x_21 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_saveSymbol(x_20, x_3, x_4, x_5, x_6, x_7, x_8); +x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); -x_24 = lean_mk_array(x_22, x_23); -x_25 = lean_unsigned_to_nat(1u); -x_26 = lean_nat_sub(x_22, x_25); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(x_1, x_16, x_22, x_3, x_4, x_5, x_6, x_7, x_23); lean_dec(x_22); -lean_inc(x_1); -x_27 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_24, x_26); -x_28 = lean_array_get_size(x_27); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_28); -lean_inc(x_16); -x_29 = l_Lean_Meta_Grind_NormalizePattern_getPatternSupportMask(x_16, x_28, x_4, x_5, x_6, x_7, x_20); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -lean_inc(x_28); -x_32 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_32, 0, x_21); -lean_ctor_set(x_32, 1, x_28); -lean_ctor_set(x_32, 2, x_25); -x_33 = l_Std_Range_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___spec__2(x_1, x_28, x_30, x_32, x_32, x_27, x_21, lean_box(0), lean_box(0), x_3, x_4, x_5, x_6, x_7, x_31); -lean_dec(x_32); -lean_dec(x_30); -lean_dec(x_28); -lean_dec(x_1); -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; -x_35 = lean_ctor_get(x_33, 0); -x_36 = l_Lean_mkAppN(x_16, x_35); -lean_dec(x_35); -lean_ctor_set(x_33, 0, x_36); -return x_33; +return x_24; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_33, 0); -x_38 = lean_ctor_get(x_33, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_33); -x_39 = l_Lean_mkAppN(x_16, x_37); -lean_dec(x_37); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; -} -} -else -{ -uint8_t x_41; -lean_dec(x_16); -x_41 = !lean_is_exclusive(x_33); -if (x_41 == 0) -{ -return x_33; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_33, 0); -x_43 = lean_ctor_get(x_33, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_33); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -uint8_t x_45; -lean_dec(x_28); -lean_dec(x_27); -lean_dec(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_1); -x_45 = !lean_is_exclusive(x_29); -if (x_45 == 0) -{ -return x_29; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_29, 0); -x_47 = lean_ctor_get(x_29, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_29); -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_object* x_25; lean_object* x_26; +x_25 = lean_box(0); +x_26 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(x_1, x_16, x_25, x_3, x_4, x_5, x_6, x_7, x_8); +return x_26; } } } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_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) { _start: { lean_object* x_9; @@ -10758,7 +10879,7 @@ if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_object* x_11; x_10 = lean_box(0); -x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__1(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8); +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8); return x_11; } else @@ -10881,7 +11002,7 @@ 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__2(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__3(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); return x_10; } else @@ -10922,7 +11043,7 @@ 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__2(x_1, x_18, x_3, x_4, x_5, x_6, x_7, x_8); +x_19 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__3(x_1, x_18, x_3, x_4, x_5, x_6, x_7, x_8); return x_19; } } @@ -10977,20 +11098,29 @@ 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) { +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, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = 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, x_9); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_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) { _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); +x_9 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2(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___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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_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) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_2); return x_9; } @@ -19031,7 +19161,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Le _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_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___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; @@ -19051,7 +19181,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Le 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(407u); +x_3 = lean_unsigned_to_nat(419u); 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); @@ -20920,7 +21050,7 @@ return x_61; } } } -static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -20928,7 +21058,7 @@ x_1 = lean_mk_string_unchecked("ematch", 6, 6); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__2() { +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__2() { _start: { lean_object* x_1; @@ -20936,18 +21066,18 @@ x_1 = lean_mk_string_unchecked("pattern", 7, 7); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__3() { _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_mkEMatchTheoremCore___closed__1; -x_3 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__2; +x_2 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__1; +x_3 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__2; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__4() { +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__4() { _start: { lean_object* x_1; @@ -20955,11 +21085,146 @@ x_1 = lean_mk_string_unchecked(": ", 2, 2); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5() { +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___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; lean_object* x_16; uint8_t x_17; +x_14 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__3; +x_15 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_14, 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_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_mkEMatchTheoremCore___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_19, x_9, x_10, x_11, x_12, x_18); +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; 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_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_ofConst(x_1); +x_25 = l_Lean_Meta_Grind_ppPattern___closed__4; +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_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__5; +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 = lean_box(0); +lean_inc(x_5); +x_29 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__1(x_5, x_28); +x_30 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__2(x_29, x_28); +x_31 = l_Lean_MessageData_ofList(x_30); +x_32 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_32, 0, x_27); +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_25); +x_34 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_14, x_33, 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_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_35, x_9, x_10, x_11, x_12, x_36); +lean_dec(x_35); +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_15, 1); +lean_inc(x_38); +lean_dec(x_15); +lean_inc(x_1); +x_39 = l_Lean_MessageData_ofConst(x_1); +x_40 = l_Lean_Meta_Grind_ppPattern___closed__4; +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 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__5; +x_43 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = lean_box(0); +lean_inc(x_5); +x_45 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__1(x_5, x_44); +x_46 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__2(x_45, x_44); +x_47 = l_Lean_MessageData_ofList(x_46); +x_48 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_48, 0, x_43); +lean_ctor_set(x_48, 1, x_47); +x_49 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_40); +x_50 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_14, x_49, x_9, x_10, x_11, x_12, x_38); +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_Meta_Grind_mkEMatchTheoremCore___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_51, x_9, x_10, x_11, x_12, x_52); +lean_dec(x_51); +return x_53; +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid pattern for `", 21, 21); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("\nthe pattern does not contain constant symbols for indexing", 59, 59); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__4; +x_1 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -20993,277 +21258,352 @@ lean_dec(x_17); x_18 = !lean_is_exclusive(x_13); if (x_18 == 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; +lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_13, 0); x_20 = lean_ctor_get(x_13, 1); -x_21 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__3; -x_22 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_21, x_6, x_7, x_8, x_9, x_14); -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) +x_21 = l_List_isEmpty___rarg(x_19); +if (x_21 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_object* x_22; lean_object* x_23; lean_free_object(x_13); lean_free_object(x_12); -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_Meta_Grind_mkEMatchTheoremCore___lambda__2(x_4, x_3, x_20, x_2, x_16, x_19, x_1, x_26, x_6, x_7, x_8, x_9, x_25); -return x_27; +x_22 = lean_box(0); +x_23 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3(x_4, x_3, x_20, x_2, x_16, x_19, x_1, x_22, x_6, x_7, x_8, x_9, x_14); +return x_23; } else { -uint8_t x_28; -x_28 = !lean_is_exclusive(x_22); -if (x_28 == 0) +lean_object* x_24; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_24 = l_Lean_Meta_Grind_Origin_pp___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__3(x_1, x_6, x_7, x_8, x_9, x_14); +if (lean_obj_tag(x_24) == 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; -x_29 = lean_ctor_get(x_22, 1); -x_30 = lean_ctor_get(x_22, 0); -lean_dec(x_30); -lean_inc(x_4); -x_31 = l_Lean_MessageData_ofConst(x_4); -x_32 = l_Lean_Meta_Grind_ppPattern___closed__4; -lean_ctor_set_tag(x_22, 7); -lean_ctor_set(x_22, 1, x_31); -lean_ctor_set(x_22, 0, x_32); -x_33 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5; +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; uint8_t x_37; +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_Meta_Grind_mkEMatchTheoremCore___closed__2; lean_ctor_set_tag(x_13, 7); -lean_ctor_set(x_13, 1, x_33); -lean_ctor_set(x_13, 0, x_22); -x_34 = lean_box(0); -lean_inc(x_16); -x_35 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__1(x_16, x_34); -x_36 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__2(x_35, x_34); -x_37 = l_Lean_MessageData_ofList(x_36); +lean_ctor_set(x_13, 1, x_25); +lean_ctor_set(x_13, 0, x_27); +x_28 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; lean_ctor_set_tag(x_12, 7); -lean_ctor_set(x_12, 1, x_37); +lean_ctor_set(x_12, 1, x_28); lean_ctor_set(x_12, 0, x_13); -x_38 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_38, 0, x_12); -lean_ctor_set(x_38, 1, x_32); -x_39 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_21, x_38, x_6, x_7, x_8, x_9, x_29); -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_mkEMatchTheoremCore___lambda__2(x_4, x_3, x_20, x_2, x_16, x_19, x_1, x_40, x_6, x_7, x_8, x_9, x_41); -lean_dec(x_40); -return x_42; -} -else +x_29 = lean_box(0); +x_30 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__1(x_16, x_29); +x_31 = l_Lean_MessageData_ofList(x_30); +x_32 = l_Lean_indentD(x_31); +x_33 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_33, 0, x_12); +lean_ctor_set(x_33, 1, x_32); +x_34 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__4; +x_35 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_35, x_6, x_7, x_8, x_9, x_26); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 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; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_43 = lean_ctor_get(x_22, 1); -lean_inc(x_43); -lean_dec(x_22); -lean_inc(x_4); -x_44 = l_Lean_MessageData_ofConst(x_4); -x_45 = l_Lean_Meta_Grind_ppPattern___closed__4; -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_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5; -lean_ctor_set_tag(x_13, 7); -lean_ctor_set(x_13, 1, x_47); -lean_ctor_set(x_13, 0, x_46); -x_48 = lean_box(0); -lean_inc(x_16); -x_49 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__1(x_16, x_48); -x_50 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__2(x_49, x_48); -x_51 = l_Lean_MessageData_ofList(x_50); -lean_ctor_set_tag(x_12, 7); -lean_ctor_set(x_12, 1, x_51); -lean_ctor_set(x_12, 0, x_13); -x_52 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_52, 0, x_12); -lean_ctor_set(x_52, 1, x_45); -x_53 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_21, x_52, x_6, x_7, x_8, x_9, x_43); -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_mkEMatchTheoremCore___lambda__2(x_4, x_3, x_20, x_2, x_16, x_19, x_1, x_54, x_6, x_7, x_8, x_9, x_55); -lean_dec(x_54); -return x_56; -} -} +return x_36; } else { -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_57 = lean_ctor_get(x_13, 0); -x_58 = lean_ctor_get(x_13, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_13); -x_59 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__3; -x_60 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_59, x_6, x_7, x_8, x_9, x_14); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_unbox(x_61); -lean_dec(x_61); -if (x_62 == 0) +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_39); +lean_inc(x_38); +lean_dec(x_36); +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_63; lean_object* x_64; lean_object* x_65; +uint8_t x_41; +lean_free_object(x_13); lean_free_object(x_12); -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -lean_dec(x_60); -x_64 = lean_box(0); -x_65 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2(x_4, x_3, x_58, x_2, x_16, x_57, x_1, x_64, x_6, x_7, x_8, x_9, x_63); -return x_65; +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_41 = !lean_is_exclusive(x_24); +if (x_41 == 0) +{ +return x_24; } 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; -x_66 = lean_ctor_get(x_60, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_67 = x_60; +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_24, 0); +x_43 = lean_ctor_get(x_24, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_24); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +} +else +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_13, 0); +x_46 = lean_ctor_get(x_13, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_13); +x_47 = l_List_isEmpty___rarg(x_45); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +lean_free_object(x_12); +x_48 = lean_box(0); +x_49 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3(x_4, x_3, x_46, x_2, x_16, x_45, x_1, x_48, x_6, x_7, x_8, x_9, x_14); +return x_49; +} +else +{ +lean_object* x_50; +lean_dec(x_46); +lean_dec(x_45); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_50 = l_Lean_Meta_Grind_Origin_pp___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__3(x_1, x_6, x_7, x_8, x_9, x_14); +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_Lean_Meta_Grind_mkEMatchTheoremCore___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_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; +lean_ctor_set_tag(x_12, 7); +lean_ctor_set(x_12, 1, x_55); +lean_ctor_set(x_12, 0, x_54); +x_56 = lean_box(0); +x_57 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__1(x_16, x_56); +x_58 = l_Lean_MessageData_ofList(x_57); +x_59 = l_Lean_indentD(x_58); +x_60 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_60, 0, x_12); +lean_ctor_set(x_60, 1, x_59); +x_61 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__4; +x_62 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +x_63 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_62, x_6, x_7, x_8, x_9, x_52); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_66 = x_63; } else { - lean_dec_ref(x_60); - x_67 = lean_box(0); + lean_dec_ref(x_63); + x_66 = lean_box(0); } -lean_inc(x_4); -x_68 = l_Lean_MessageData_ofConst(x_4); -x_69 = l_Lean_Meta_Grind_ppPattern___closed__4; -if (lean_is_scalar(x_67)) { - x_70 = lean_alloc_ctor(7, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(1, 2, 0); } else { - x_70 = x_67; - lean_ctor_set_tag(x_70, 7); + x_67 = x_66; +} +lean_ctor_set(x_67, 0, x_64); +lean_ctor_set(x_67, 1, x_65); +return x_67; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_free_object(x_12); +lean_dec(x_16); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +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_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_68); -x_71 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5; -x_72 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -x_73 = lean_box(0); -lean_inc(x_16); -x_74 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__1(x_16, x_73); -x_75 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__2(x_74, x_73); -x_76 = l_Lean_MessageData_ofList(x_75); -lean_ctor_set_tag(x_12, 7); -lean_ctor_set(x_12, 1, x_76); -lean_ctor_set(x_12, 0, x_72); -x_77 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_77, 0, x_12); -lean_ctor_set(x_77, 1, x_69); -x_78 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_59, x_77, x_6, x_7, x_8, x_9, x_66); -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_Meta_Grind_mkEMatchTheoremCore___lambda__2(x_4, x_3, x_58, x_2, x_16, x_57, x_1, x_79, x_6, x_7, x_8, x_9, x_80); -lean_dec(x_79); -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; uint8_t x_89; -x_82 = lean_ctor_get(x_12, 0); -lean_inc(x_82); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; +x_72 = lean_ctor_get(x_12, 0); +lean_inc(x_72); lean_dec(x_12); -x_83 = lean_ctor_get(x_13, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_13, 1); -lean_inc(x_84); +x_73 = lean_ctor_get(x_13, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_13, 1); +lean_inc(x_74); if (lean_is_exclusive(x_13)) { lean_ctor_release(x_13, 0); lean_ctor_release(x_13, 1); - x_85 = x_13; + x_75 = x_13; } else { lean_dec_ref(x_13); - x_85 = lean_box(0); + x_75 = lean_box(0); } -x_86 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__3; -x_87 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_86, x_6, x_7, x_8, x_9, x_14); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_unbox(x_88); -lean_dec(x_88); -if (x_89 == 0) +x_76 = l_List_isEmpty___rarg(x_73); +if (x_76 == 0) { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -lean_dec(x_85); -x_90 = lean_ctor_get(x_87, 1); -lean_inc(x_90); -lean_dec(x_87); -x_91 = lean_box(0); -x_92 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2(x_4, x_3, x_84, x_2, x_82, x_83, x_1, x_91, x_6, x_7, x_8, x_9, x_90); -return x_92; +lean_object* x_77; lean_object* x_78; +lean_dec(x_75); +x_77 = lean_box(0); +x_78 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3(x_4, x_3, x_74, x_2, x_72, x_73, x_1, x_77, x_6, x_7, x_8, x_9, x_14); +return x_78; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_93 = lean_ctor_get(x_87, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_94 = x_87; +lean_object* x_79; +lean_dec(x_74); +lean_dec(x_73); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_79 = l_Lean_Meta_Grind_Origin_pp___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__3(x_1, x_6, x_7, x_8, x_9, x_14); +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; 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_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_mkEMatchTheoremCore___closed__2; +if (lean_is_scalar(x_75)) { + x_83 = lean_alloc_ctor(7, 2, 0); } else { - lean_dec_ref(x_87); - x_94 = lean_box(0); + x_83 = x_75; + lean_ctor_set_tag(x_83, 7); } -lean_inc(x_4); -x_95 = l_Lean_MessageData_ofConst(x_4); -x_96 = l_Lean_Meta_Grind_ppPattern___closed__4; -if (lean_is_scalar(x_94)) { - x_97 = 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_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; +x_85 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +x_86 = lean_box(0); +x_87 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__1(x_72, x_86); +x_88 = l_Lean_MessageData_ofList(x_87); +x_89 = l_Lean_indentD(x_88); +x_90 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_90, 0, x_85); +lean_ctor_set(x_90, 1, x_89); +x_91 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__4; +x_92 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +x_93 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_92, x_6, x_7, x_8, x_9, x_81); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +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); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(1, 2, 0); } else { - x_97 = x_94; - lean_ctor_set_tag(x_97, 7); + x_97 = x_96; } -lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 0, x_94); lean_ctor_set(x_97, 1, x_95); -x_98 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5; -if (lean_is_scalar(x_85)) { - x_99 = lean_alloc_ctor(7, 2, 0); +return x_97; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_dec(x_75); +lean_dec(x_72); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_98 = lean_ctor_get(x_79, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_79, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_100 = x_79; } else { - x_99 = x_85; - lean_ctor_set_tag(x_99, 7); + lean_dec_ref(x_79); + x_100 = lean_box(0); +} +if (lean_is_scalar(x_100)) { + x_101 = lean_alloc_ctor(1, 2, 0); +} else { + x_101 = x_100; +} +lean_ctor_set(x_101, 0, x_98); +lean_ctor_set(x_101, 1, x_99); +return x_101; } -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -x_100 = lean_box(0); -lean_inc(x_82); -x_101 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__1(x_82, x_100); -x_102 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__2(x_101, x_100); -x_103 = l_Lean_MessageData_ofList(x_102); -x_104 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_104, 0, x_99); -lean_ctor_set(x_104, 1, x_103); -x_105 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_96); -x_106 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_86, x_105, x_6, x_7, x_8, x_9, x_93); -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 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2(x_4, x_3, x_84, x_2, x_82, x_83, x_1, x_107, x_6, x_7, x_8, x_9, x_108); -lean_dec(x_107); -return x_109; } } } else { -uint8_t x_110; +uint8_t x_102; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -21272,23 +21612,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_110 = !lean_is_exclusive(x_11); -if (x_110 == 0) +x_102 = !lean_is_exclusive(x_11); +if (x_102 == 0) { return x_11; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_11, 0); -x_112 = lean_ctor_get(x_11, 1); -lean_inc(x_112); -lean_inc(x_111); +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_11, 0); +x_104 = lean_ctor_get(x_11, 1); +lean_inc(x_104); +lean_inc(x_103); lean_dec(x_11); -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; +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; } } } @@ -21327,6 +21667,15 @@ lean_dec(x_8); return x_14; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremCore___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_mkEMatchTheoremCore___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_throwError___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -21900,8 +22249,8 @@ static lean_object* _init_l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Meta_Grind_mkGroundPattern___closed__1; x_2 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__3___closed__1; -x_3 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__1; -x_4 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__2; +x_3 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__1; +x_4 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__2; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } @@ -22708,301 +23057,257 @@ x_13 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore(x_1, x_2, x_3, x_11, x_12, x_6, x return x_13; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheorem(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___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_9; -lean_inc(x_1); -x_9 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor(x_1, 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; lean_object* x_14; -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(0, 1, 0); -lean_ctor_set(x_12, 0, x_1); -x_13 = l_Lean_Meta_Grind_NormalizePattern_main___closed__1; -x_14 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore(x_12, x_13, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -return x_14; -} -else +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) { -uint8_t x_15; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_15 = !lean_is_exclusive(x_9); +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_Meta_Grind_mkEMatchEqBwdTheoremCore___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; uint8_t x_13; lean_object* x_14; +x_11 = l_Lean_Expr_constLevels_x21(x_2); +x_12 = l_Lean_Meta_Grind_mkEqBwdPattern(x_11, x_3, x_4, x_5); +x_13 = 1; +x_14 = l_Lean_Meta_Grind_preprocessPattern(x_12, x_13, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { -return x_9; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_array_get_size(x_1); +x_18 = lean_expr_abstract(x_16, x_1); +lean_dec(x_16); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_17); +lean_ctor_set(x_21, 1, x_20); +lean_ctor_set(x_14, 0, x_21); +return x_14; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_9, 0); -x_17 = lean_ctor_get(x_9, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_9); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; +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_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_array_get_size(x_1); +x_25 = lean_expr_abstract(x_22, x_1); +lean_dec(x_22); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, 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_23); +return x_29; +} +} +else +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_14); +if (x_30 == 0) +{ +return x_14; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_14, 0); +x_32 = lean_ctor_get(x_14, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_14); +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_mkEMatchEqTheorem___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___closed__1() { _start: { -uint8_t x_9; uint8_t x_10; lean_object* x_11; -x_9 = lean_unbox(x_2); -lean_dec(x_2); -x_10 = lean_unbox(x_3); -lean_dec(x_3); -x_11 = l_Lean_Meta_Grind_mkEMatchEqTheorem(x_1, x_9, x_10, x_4, x_5, x_6, x_7, x_8); -return x_11; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid E-matching `≠` theorem, conclusion must be an equality", 64, 62); +return x_1; } } -static lean_object* _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedEMatchTheorems___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); +x_1 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__2() { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___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_1; lean_object* x_2; -x_1 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedEMatchTheorems___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_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 = l_Lean_indentExpr(x_1); +x_9 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___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); +x_13 = l_Lean_throwError___at_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___spec__1(x_12, x_3, x_4, x_5, x_6, x_7); +return x_13; } } -LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___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_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_object* x_8; uint8_t x_9; +lean_inc(x_2); +x_8 = l_Lean_Expr_cleanupAnnotations(x_2); +x_9 = l_Lean_Expr_isApp(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_8); +x_10 = lean_box(0); +x_11 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2(x_2, x_10, x_3, x_4, x_5, x_6, x_7); 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_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_11; +} +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; 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__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_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = l_Lean_Expr_appArg(x_8, lean_box(0)); +x_13 = l_Lean_Expr_appFnCleanup(x_8, lean_box(0)); +x_14 = l_Lean_Expr_isApp(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_13); +lean_dec(x_12); +x_15 = lean_box(0); +x_16 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2(x_2, x_15, 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_16; +} +else +{ +lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_17 = l_Lean_Expr_appArg(x_13, lean_box(0)); +x_18 = l_Lean_Expr_appFnCleanup(x_13, lean_box(0)); +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_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_dec(x_17); +lean_dec(x_12); +x_20 = lean_box(0); +x_21 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2(x_2, x_20, 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_21; +} +else { -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__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_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_forbiddenDeclNames___closed__2; +x_25 = l_Lean_Expr_isConstOf(x_23, x_24); +if (x_25 == 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; +lean_object* x_26; lean_object* x_27; +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_17); +lean_dec(x_12); +x_26 = lean_box(0); +x_27 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2(x_2, x_26, 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_27; } 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; +lean_object* x_28; +lean_dec(x_2); +x_28 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__1(x_1, x_23, x_22, x_17, x_12, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_23); +return x_28; } } -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__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_addEMatchTheorem___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_addEMatchTheorem___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; -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__1() { -_start: +} +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___closed__1() { +_start: { lean_object* x_1; -x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_ematchTheoremsExt; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__3___boxed), 7, 0); return x_1; } } -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) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore(lean_object* x_1, lean_object* x_2, 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; @@ -23010,7 +23315,8 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_9 = l_Lean_Meta_Grind_mkEMatchTheorem(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_inc(x_3); +x_9 = lean_infer_type(x_3, 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; uint8_t x_13; lean_object* x_14; @@ -23019,364 +23325,809 @@ 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_Grind_addEMatchTheorem___closed__1; +x_12 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___closed__1; x_13 = 0; -x_14 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_12, x_10, x_13, x_4, x_5, x_6, x_7, x_11); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_14 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_10, x_12, x_13, x_4, x_5, x_6, x_7, x_11); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = l_Lean_Meta_Grind_mkEMatchTheoremCore(x_1, x_2, x_17, x_3, x_18, x_4, x_5, x_6, x_7, x_16); +return x_19; +} +else +{ +uint8_t x_20; 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_20 = !lean_is_exclusive(x_14); +if (x_20 == 0) +{ return x_14; } else { -uint8_t x_15; +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_14, 0); +x_22 = lean_ctor_get(x_14, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_14); +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; +} +} +} +else +{ +uint8_t x_24; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_15 = !lean_is_exclusive(x_9); -if (x_15 == 0) +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_24 = !lean_is_exclusive(x_9); +if (x_24 == 0) { return x_9; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_9, 0); -x_17 = lean_ctor_get(x_9, 1); -lean_inc(x_17); -lean_inc(x_16); +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_9, 0); +x_26 = lean_ctor_get(x_9, 1); +lean_inc(x_26); +lean_inc(x_25); lean_dec(x_9); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; +x_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_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___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_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -uint8_t x_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__1(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); +lean_object* x_7; +x_7 = l_Lean_throwError___at_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); -return x_10; +lean_dec(x_3); +lean_dec(x_2); +return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchEqTheorem(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___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_7; lean_object* x_8; -x_7 = 1; -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_8 = l_Lean_Meta_Grind_mkEMatchEqTheorem(x_1, x_7, x_7, x_2, x_3, x_4, x_5, x_6); -if (lean_obj_tag(x_8) == 0) -{ -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_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Lean_Meta_Grind_addEMatchTheorem___closed__1; -x_12 = 0; -x_13 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_11, x_9, x_12, x_2, x_3, x_4, x_5, x_10); -lean_dec(x_5); -lean_dec(x_3); +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___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); -return x_13; +lean_dec(x_1); +return x_11; } -else +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___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: { -uint8_t x_14; +lean_object* x_8; +x_8 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___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); -x_14 = !lean_is_exclusive(x_8); -if (x_14 == 0) +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___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_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_1); return x_8; } -else +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheorem(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_8, 0); -x_16 = lean_ctor_get(x_8, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_8); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems___rarg(lean_object* x_1, lean_object* x_2) { -_start: +lean_object* x_9; +lean_inc(x_1); +x_9 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor(x_1, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) { -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_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +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(0, 1, 0); +lean_ctor_set(x_12, 0, x_1); +x_13 = l_Lean_Meta_Grind_NormalizePattern_main___closed__1; +x_14 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore(x_12, x_13, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +return x_14; +} +else { -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); +uint8_t x_15; +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); -x_7 = l_Lean_Meta_Grind_instInhabitedEMatchTheorems; -x_8 = l_Lean_Meta_Grind_addEMatchTheorem___closed__1; -x_9 = l_Lean_ScopedEnvExtension_getState___rarg(x_7, x_8, x_6); -lean_ctor_set(x_3, 0, x_9); -return x_3; +lean_dec(x_4); +lean_dec(x_1); +x_15 = !lean_is_exclusive(x_9); +if (x_15 == 0) +{ +return x_9; } 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_Lean_Meta_Grind_instInhabitedEMatchTheorems; -x_14 = l_Lean_Meta_Grind_addEMatchTheorem___closed__1; -x_15 = l_Lean_ScopedEnvExtension_getState___rarg(x_13, x_14, 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_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_9, 0); +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_9); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; } } -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) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqTheorem___boxed(lean_object* x_1, lean_object* x_2, 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_3; -x_3 = l_Lean_Meta_Grind_getEMatchTheorems___rarg(x_1, x_2); -lean_dec(x_1); -return x_3; +uint8_t x_9; uint8_t x_10; lean_object* x_11; +x_9 = lean_unbox(x_2); +lean_dec(x_2); +x_10 = lean_unbox(x_3); +lean_dec(x_3); +x_11 = l_Lean_Meta_Grind_mkEMatchEqTheorem(x_1, x_9, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems___boxed(lean_object* x_1) { +static lean_object* _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__1() { _start: { -lean_object* x_2; -x_2 = l_Lean_Meta_Grind_getEMatchTheorems(x_1); -lean_dec(x_1); +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedEMatchTheorems___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; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_toCtorIdx(uint8_t x_1) { +static lean_object* _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__2() { _start: { -switch (x_1) { -case 0: -{ -lean_object* x_2; -x_2 = lean_unsigned_to_nat(0u); +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedEMatchTheorems___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; } -case 1: -{ -lean_object* x_3; -x_3 = lean_unsigned_to_nat(1u); -return x_3; } -case 2: +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___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_4; -x_4 = lean_unsigned_to_nat(2u); -return x_4; -} -case 3: +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_5; -x_5 = lean_unsigned_to_nat(3u); -return x_5; -} -case 4: +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__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_6; -x_6 = lean_unsigned_to_nat(4u); -return x_6; -} -default: +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__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_7; -x_7 = lean_unsigned_to_nat(5u); -return x_7; -} +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; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_toCtorIdx___boxed(lean_object* x_1) { -_start: +else { -uint8_t x_2; lean_object* x_3; -x_2 = lean_unbox(x_1); -lean_dec(x_1); -x_3 = l_Lean_Meta_Grind_TheoremKind_toCtorIdx(x_2); -return x_3; +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__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_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___lambda__1(lean_object* x_1) { -_start: -{ -lean_inc(x_1); -return x_1; +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; } } -static lean_object* _init_l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___closed__1() { -_start: +else { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___lambda__1___boxed), 1, 0); -return x_1; +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 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__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_addEMatchTheorem___spec__1___closed__2; +if (lean_is_scalar(x_63)) { + x_65 = lean_alloc_ctor(0, 5, 0); +} else { + x_65 = x_63; } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg(uint8_t x_1, uint8_t x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___closed__1; -return x_4; +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_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_noConfusion(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___boxed), 3, 0); -return x_2; +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_Grind_TheoremKind_noConfusion___rarg___lambda__1___boxed(lean_object* x_1) { +} +static lean_object* _init_l_Lean_Meta_Grind_addEMatchTheorem___closed__1() { _start: { -lean_object* x_2; -x_2 = l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___lambda__1(x_1); -lean_dec(x_1); -return x_2; +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_TheoremKind_noConfusion___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +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: { -uint8_t x_4; uint8_t x_5; lean_object* x_6; -x_4 = lean_unbox(x_1); -lean_dec(x_1); -x_5 = lean_unbox(x_2); -lean_dec(x_2); -x_6 = l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg(x_4, x_5, x_3); -return x_6; +lean_object* x_9; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_9 = l_Lean_Meta_Grind_mkEMatchTheorem(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; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; +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_Grind_addEMatchTheorem___closed__1; +x_13 = 0; +x_14 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_12, x_10, x_13, x_4, x_5, x_6, x_7, x_11); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +return x_14; } +else +{ +uint8_t x_15; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_15 = !lean_is_exclusive(x_9); +if (x_15 == 0) +{ +return x_9; } -static uint8_t _init_l_Lean_Meta_Grind_instInhabitedTheoremKind() { -_start: +else { -uint8_t x_1; -x_1 = 0; -return x_1; +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_9, 0); +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_9); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} } } -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(uint8_t x_1, uint8_t x_2) { +} +LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___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_3; lean_object* x_4; uint8_t x_5; -x_3 = l_Lean_Meta_Grind_TheoremKind_toCtorIdx(x_1); -x_4 = l_Lean_Meta_Grind_TheoremKind_toCtorIdx(x_2); -x_5 = lean_nat_dec_eq(x_3, x_4); -lean_dec(x_4); +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_3); lean_dec(x_3); -return x_5; +x_10 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchEqTheorem(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_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_7; lean_object* x_8; +x_7 = 1; +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_8 = l_Lean_Meta_Grind_mkEMatchEqTheorem(x_1, x_7, x_7, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_8) == 0) +{ +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_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Lean_Meta_Grind_addEMatchTheorem___closed__1; +x_12 = 0; +x_13 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_11, x_9, x_12, x_2, x_3, x_4, x_5, x_10); +lean_dec(x_5); +lean_dec(x_3); lean_dec(x_2); -x_5 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(x_3, x_4); -x_6 = lean_box(x_5); -return x_6; -} +return x_13; } -static lean_object* _init_l_Lean_Meta_Grind_instBEqTheoremKind___closed__1() { -_start: +else { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186____boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_instBEqTheoremKind() { -_start: +uint8_t x_14; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_14 = !lean_is_exclusive(x_8); +if (x_14 == 0) { -lean_object* x_1; -x_1 = l_Lean_Meta_Grind_instBEqTheoremKind___closed__1; -return x_1; -} +return x_8; } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__1() { -_start: +else { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.TheoremKind.eqLhs", 33, 33); -return x_1; +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_8, 0); +x_16 = lean_ctor_get(x_8, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_8); +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; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__3() { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getEMatchTheorems___rarg(lean_object* x_1, lean_object* x_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_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__4; -x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__2; -x_3 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_3, 0, x_1); +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_Lean_Meta_Grind_instInhabitedEMatchTheorems; +x_8 = l_Lean_Meta_Grind_addEMatchTheorem___closed__1; +x_9 = l_Lean_ScopedEnvExtension_getState___rarg(x_7, x_8, 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_Lean_Meta_Grind_instInhabitedEMatchTheorems; +x_14 = l_Lean_Meta_Grind_addEMatchTheorem___closed__1; +x_15 = l_Lean_ScopedEnvExtension_getState___rarg(x_13, x_14, 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_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_toCtorIdx(uint8_t x_1) { +_start: +{ +switch (x_1) { +case 0: +{ +lean_object* x_2; +x_2 = lean_unsigned_to_nat(0u); +return x_2; +} +case 1: +{ +lean_object* x_3; +x_3 = lean_unsigned_to_nat(1u); +return x_3; +} +case 2: +{ +lean_object* x_4; +x_4 = lean_unsigned_to_nat(2u); +return x_4; +} +case 3: +{ +lean_object* x_5; +x_5 = lean_unsigned_to_nat(3u); +return x_5; +} +case 4: +{ +lean_object* x_6; +x_6 = lean_unsigned_to_nat(4u); +return x_6; +} +case 5: +{ +lean_object* x_7; +x_7 = lean_unsigned_to_nat(5u); +return x_7; +} +default: +{ +lean_object* x_8; +x_8 = lean_unsigned_to_nat(6u); +return x_8; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_toCtorIdx___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Meta_Grind_TheoremKind_toCtorIdx(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___lambda__1(lean_object* x_1) { +_start: +{ +lean_inc(x_1); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___lambda__1___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg(uint8_t x_1, uint8_t x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___closed__1; +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_noConfusion(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___boxed), 3, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___lambda__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___lambda__1(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; uint8_t x_5; lean_object* x_6; +x_4 = lean_unbox(x_1); +lean_dec(x_1); +x_5 = lean_unbox(x_2); +lean_dec(x_2); +x_6 = l_Lean_Meta_Grind_TheoremKind_noConfusion___rarg(x_4, x_5, x_3); +return x_6; +} +} +static uint8_t _init_l_Lean_Meta_Grind_instInhabitedTheoremKind() { +_start: +{ +uint8_t x_1; +x_1 = 0; +return x_1; +} +} +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(uint8_t x_1, uint8_t x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = l_Lean_Meta_Grind_TheoremKind_toCtorIdx(x_1); +x_4 = l_Lean_Meta_Grind_TheoremKind_toCtorIdx(x_2); +x_5 = lean_nat_dec_eq(x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799____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); +lean_dec(x_2); +x_5 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(x_3, x_4); +x_6 = lean_box(x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instBEqTheoremKind___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799____boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_instBEqTheoremKind() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Grind_instBEqTheoremKind___closed__1; +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.TheoremKind.eqLhs", 33, 33); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____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_792____closed__4; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__2; +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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__4() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__4() { _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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__3; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__3; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -23384,23 +24135,23 @@ 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__5() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____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_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__5; -x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__5; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__2; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__6() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__6() { _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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__5; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__5; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -23408,7 +24159,7 @@ 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__7() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__7() { _start: { lean_object* x_1; @@ -23416,33 +24167,33 @@ x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.TheoremKind.eqRhs", 33, 33); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__8() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__7; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__7; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__9() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__9() { _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_614____closed__4; -x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__8; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__4; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__8; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__10() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__10() { _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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__9; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__9; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -23450,23 +24201,23 @@ 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__11() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____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_614____closed__5; -x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__8; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__5; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__8; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__12() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__12() { _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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__11; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__11; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -23474,7 +24225,7 @@ 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__13() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__13() { _start: { lean_object* x_1; @@ -23482,33 +24233,33 @@ x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.TheoremKind.eqBoth", 34, 34); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__14() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__14() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__13; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____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___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__15() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____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_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__4; -x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__14; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__4; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__14; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__16() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__16() { _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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__15; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__15; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -23516,23 +24267,23 @@ 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__17() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____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_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__5; -x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__14; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__5; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__14; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__18() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__18() { _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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__17; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__17; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -23540,41 +24291,41 @@ 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__19() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__19() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.TheoremKind.fwd", 31, 31); +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.TheoremKind.eqBwd", 33, 33); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__20() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__20() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__19; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__19; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__21() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__21() { _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_614____closed__4; -x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__20; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__4; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__20; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__22() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__22() { _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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__21; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__21; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -23582,23 +24333,23 @@ 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__23() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__23() { _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_614____closed__5; -x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__20; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__5; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__20; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__24() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__24() { _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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__23; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__23; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -23606,41 +24357,41 @@ 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__25() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__25() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.TheoremKind.bwd", 31, 31); +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.TheoremKind.fwd", 31, 31); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__26() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__26() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__25; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__25; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__27() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__27() { _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_614____closed__4; -x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__26; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__4; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__26; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__28() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__28() { _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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__27; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__27; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -23648,23 +24399,23 @@ 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__29() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__29() { _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_614____closed__5; -x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__26; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__5; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__26; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__30() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__30() { _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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__29; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__29; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -23672,41 +24423,41 @@ 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__31() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__31() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.TheoremKind.default", 35, 35); +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.TheoremKind.bwd", 31, 31); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__32() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__32() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__31; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____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_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__33() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__33() { _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_614____closed__4; -x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__32; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__4; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__32; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__34() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__34() { _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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__33; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__33; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -23714,23 +24465,23 @@ 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__35() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__35() { _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_614____closed__5; -x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__32; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__5; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__32; 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__36() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__36() { _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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__35; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__35; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -23738,26 +24489,92 @@ 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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204_(uint8_t x_1, lean_object* x_2) { +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__37() { _start: { -switch (x_1) { -case 0: -{ -lean_object* x_3; uint8_t x_4; -x_3 = lean_unsigned_to_nat(1024u); -x_4 = lean_nat_dec_le(x_3, x_2); -if (x_4 == 0) +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.TheoremKind.default", 35, 35); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__38() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____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_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__39() { +_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_792____closed__4; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__38; +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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__40() { +_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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__39; +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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__41() { +_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_792____closed__5; +x_2 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__38; +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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__42() { +_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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__41; +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_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817_(uint8_t x_1, lean_object* x_2) { +_start: +{ +switch (x_1) { +case 0: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_unsigned_to_nat(1024u); +x_4 = lean_nat_dec_le(x_3, x_2); +if (x_4 == 0) { lean_object* x_5; lean_object* x_6; -x_5 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__4; +x_5 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__4; x_6 = l_Repr_addAppParen(x_5, x_2); return x_6; } else { lean_object* x_7; lean_object* x_8; -x_7 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__6; +x_7 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__6; x_8 = l_Repr_addAppParen(x_7, x_2); return x_8; } @@ -23770,14 +24587,14 @@ x_10 = lean_nat_dec_le(x_9, x_2); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; -x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__10; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__10; x_12 = l_Repr_addAppParen(x_11, x_2); return x_12; } else { lean_object* x_13; lean_object* x_14; -x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__12; +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__12; x_14 = l_Repr_addAppParen(x_13, x_2); return x_14; } @@ -23790,14 +24607,14 @@ x_16 = lean_nat_dec_le(x_15, x_2); if (x_16 == 0) { lean_object* x_17; lean_object* x_18; -x_17 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__16; +x_17 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__16; x_18 = l_Repr_addAppParen(x_17, x_2); return x_18; } else { lean_object* x_19; lean_object* x_20; -x_19 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__18; +x_19 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__18; x_20 = l_Repr_addAppParen(x_19, x_2); return x_20; } @@ -23810,14 +24627,14 @@ x_22 = lean_nat_dec_le(x_21, x_2); if (x_22 == 0) { lean_object* x_23; lean_object* x_24; -x_23 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__22; +x_23 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__22; x_24 = l_Repr_addAppParen(x_23, x_2); return x_24; } else { lean_object* x_25; lean_object* x_26; -x_25 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__24; +x_25 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__24; x_26 = l_Repr_addAppParen(x_25, x_2); return x_26; } @@ -23830,19 +24647,19 @@ x_28 = lean_nat_dec_le(x_27, x_2); if (x_28 == 0) { lean_object* x_29; lean_object* x_30; -x_29 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__28; +x_29 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__28; x_30 = l_Repr_addAppParen(x_29, x_2); return x_30; } else { lean_object* x_31; lean_object* x_32; -x_31 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__30; +x_31 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__30; x_32 = l_Repr_addAppParen(x_31, x_2); return x_32; } } -default: +case 5: { lean_object* x_33; uint8_t x_34; x_33 = lean_unsigned_to_nat(1024u); @@ -23850,28 +24667,48 @@ x_34 = lean_nat_dec_le(x_33, x_2); if (x_34 == 0) { lean_object* x_35; lean_object* x_36; -x_35 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__34; +x_35 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__34; x_36 = l_Repr_addAppParen(x_35, x_2); return x_36; } else { lean_object* x_37; lean_object* x_38; -x_37 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__36; +x_37 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__36; x_38 = l_Repr_addAppParen(x_37, x_2); return x_38; } } +default: +{ +lean_object* x_39; uint8_t x_40; +x_39 = lean_unsigned_to_nat(1024u); +x_40 = lean_nat_dec_le(x_39, x_2); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__40; +x_42 = l_Repr_addAppParen(x_41, x_2); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; +x_43 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__42; +x_44 = l_Repr_addAppParen(x_43, x_2); +return x_44; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____boxed(lean_object* x_1, lean_object* x_2) { +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204_(x_3, x_2); +x_4 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817_(x_3, x_2); lean_dec(x_2); return x_4; } @@ -23880,7 +24717,7 @@ static lean_object* _init_l_Lean_Meta_Grind_instReprTheoremKind___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____boxed), 2, 0); return x_1; } } @@ -23920,7 +24757,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Le _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind →]", 11, 9); +x_1 = lean_mk_string_unchecked("[grind ←=]", 12, 10); return x_1; } } @@ -23928,7 +24765,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Le _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("[grind ←]", 11, 9); +x_1 = lean_mk_string_unchecked("[grind →]", 11, 9); return x_1; } } @@ -23936,6 +24773,14 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Le _start: { lean_object* x_1; +x_1 = lean_mk_string_unchecked("[grind ←]", 11, 9); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__7() { +_start: +{ +lean_object* x_1; x_1 = lean_mk_string_unchecked("[grind]", 7, 7); return x_1; } @@ -23974,12 +24819,18 @@ lean_object* x_6; x_6 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__5; return x_6; } -default: +case 5: { lean_object* x_7; x_7 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__6; return x_7; } +default: +{ +lean_object* x_8; +x_8 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__7; +return x_8; +} } } } @@ -24023,7 +24874,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Le 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_TheoremKind_explainFailure___closed__3; -x_3 = lean_unsigned_to_nat(569u); +x_3 = lean_unsigned_to_nat(592u); x_4 = lean_unsigned_to_nat(16u); 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); @@ -24034,7 +24885,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Le _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("failed to find patterns in the antecedents of the theorem", 57, 57); +x_1 = lean_mk_string_unchecked("failed to use theorem's conclusion as a pattern", 47, 47); return x_1; } } @@ -24042,7 +24893,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Le _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("failed to find patterns in the theorem's conclusion", 51, 51); +x_1 = lean_mk_string_unchecked("failed to find patterns in the antecedents of the theorem", 57, 57); return x_1; } } @@ -24050,6 +24901,14 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Le _start: { lean_object* x_1; +x_1 = lean_mk_string_unchecked("failed to find patterns in the theorem's conclusion", 51, 51); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__8() { +_start: +{ +lean_object* x_1; x_1 = lean_mk_string_unchecked("failed to find patterns", 23, 23); return x_1; } @@ -24089,12 +24948,18 @@ lean_object* x_7; x_7 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__6; return x_7; } -default: +case 5: { lean_object* x_8; x_8 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__7; return x_8; } +default: +{ +lean_object* x_9; +x_9 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__8; +return x_9; +} } } } @@ -24990,8 +25855,8 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Le { 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_mkGroundPattern___closed__1; -x_2 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__1; -x_3 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__2; +x_2 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__1; +x_3 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__2; x_4 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; @@ -27274,7 +28139,7 @@ x_22 = lean_ctor_get(x_19, 0); x_23 = lean_ctor_get(x_19, 1); x_24 = lean_array_get_size(x_4); lean_dec(x_4); -x_25 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__3; +x_25 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__3; x_26 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_25, x_6, x_7, x_8, x_9, x_20); x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); @@ -27319,7 +28184,7 @@ x_38 = l_Lean_Meta_Grind_ppPattern___closed__4; lean_ctor_set_tag(x_26, 7); lean_ctor_set(x_26, 1, x_36); lean_ctor_set(x_26, 0, x_38); -x_39 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5; +x_39 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__5; lean_ctor_set_tag(x_19, 7); lean_ctor_set(x_19, 1, x_39); lean_ctor_set(x_19, 0, x_26); @@ -27403,7 +28268,7 @@ x_58 = l_Lean_Meta_Grind_ppPattern___closed__4; x_59 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_59, 0, x_58); lean_ctor_set(x_59, 1, x_56); -x_60 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5; +x_60 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__5; lean_ctor_set_tag(x_19, 7); lean_ctor_set(x_19, 1, x_60); lean_ctor_set(x_19, 0, x_59); @@ -27480,1138 +28345,815 @@ lean_inc(x_75); lean_dec(x_19); x_77 = lean_array_get_size(x_4); lean_dec(x_4); -x_78 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__3; +x_78 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__3; x_79 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_78, x_6, x_7, x_8, x_9, x_20); x_80 = lean_ctor_get(x_79, 0); lean_inc(x_80); x_81 = lean_unbox(x_80); lean_dec(x_80); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_79, 1); -lean_inc(x_82); -lean_dec(x_79); -x_83 = lean_box(0); -x_84 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go___lambda__1(x_2, x_3, x_77, x_75, x_76, x_1, x_83, x_6, x_7, x_8, x_9, x_82); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -return x_84; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_79, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - x_86 = x_79; -} else { - lean_dec_ref(x_79); - x_86 = lean_box(0); -} -lean_inc(x_1); -x_87 = l_Lean_Meta_Grind_Origin_pp___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__3(x_1, x_6, x_7, x_8, x_9, x_85); -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; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_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_Meta_Grind_ppPattern___closed__4; -if (lean_is_scalar(x_86)) { - x_91 = lean_alloc_ctor(7, 2, 0); -} else { - x_91 = x_86; - lean_ctor_set_tag(x_91, 7); -} -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_88); -x_92 = l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5; -x_93 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -x_94 = lean_box(0); -lean_inc(x_75); -x_95 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__1(x_75, x_94); -x_96 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__2(x_95, x_94); -x_97 = l_Lean_MessageData_ofList(x_96); -x_98 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_98, 0, x_93); -lean_ctor_set(x_98, 1, x_97); -x_99 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_90); -x_100 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_78, x_99, x_6, x_7, x_8, x_9, x_89); -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_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go___lambda__1(x_2, x_3, x_77, x_75, x_76, x_1, x_101, x_6, x_7, x_8, x_9, x_102); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_101); -return x_103; -} -else -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -lean_dec(x_86); -lean_dec(x_77); -lean_dec(x_76); -lean_dec(x_75); -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_104 = lean_ctor_get(x_87, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_87, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_106 = x_87; -} else { - lean_dec_ref(x_87); - x_106 = lean_box(0); -} -if (lean_is_scalar(x_106)) { - x_107 = lean_alloc_ctor(1, 2, 0); -} else { - x_107 = x_106; -} -lean_ctor_set(x_107, 0, x_104); -lean_ctor_set(x_107, 1, x_105); -return x_107; -} -} -} -} -} -else -{ -uint8_t x_108; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_108 = !lean_is_exclusive(x_11); -if (x_108 == 0) -{ -return x_11; -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_11, 0); -x_110 = lean_ctor_get(x_11, 1); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_11); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -return x_111; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_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_mkEMatchTheoremWithKind_x3f_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_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(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_panic___at_Lean_Meta_Grind_mkEMatchTheoremWithKind_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) { -_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_Lean_Meta_Grind_mkEMatchTheoremWithKind_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) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_1, x_2, x_3, x_4, x_5, x_7, x_8, x_9, x_10, x_11); -return x_12; -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.mkEMatchTheoremWithKind\?", 40, 40); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_Meta_Grind_EMatchTheorems_insert___closed__1; -x_2 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__1; -x_3 = lean_unsigned_to_nat(669u); -x_4 = lean_unsigned_to_nat(13u); -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; -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("invalid `grind` forward theorem, theorem `", 42, 42); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("` does not have propositional hypotheses", 40, 40); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__5; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = lean_box(x_1); -switch (lean_obj_tag(x_12)) { -case 3: -{ -lean_object* x_13; -lean_dec(x_6); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_5, 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; uint8_t x_16; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Array_isEmpty___rarg(x_14); -if (x_16 == 0) -{ -lean_object* x_17; -x_17 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_5, x_14, x_7, x_8, x_9, x_10, x_15); -lean_dec(x_14); -return x_17; -} -else -{ -lean_object* x_18; -lean_dec(x_14); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_18 = l_Lean_Meta_Grind_Origin_pp___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__3(x_2, x_7, x_8, 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; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t 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 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__4; -x_22 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_19); -x_23 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__6; -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_InferType_0__Lean_Meta_inferProjType___spec__1(x_24, x_7, x_8, x_9, x_10, x_20); -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 +if (x_81 == 0) { -uint8_t x_30; -lean_dec(x_10); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_79, 1); +lean_inc(x_82); +lean_dec(x_79); +x_83 = lean_box(0); +x_84 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go___lambda__1(x_2, x_3, x_77, x_75, x_76, x_1, x_83, x_6, x_7, x_8, x_9, x_82); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_30 = !lean_is_exclusive(x_18); -if (x_30 == 0) -{ -return x_18; +lean_dec(x_6); +return x_84; } 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; -} +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_79, 1); +lean_inc(x_85); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_86 = x_79; +} else { + lean_dec_ref(x_79); + x_86 = lean_box(0); } +lean_inc(x_1); +x_87 = l_Lean_Meta_Grind_Origin_pp___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__3(x_1, x_6, x_7, x_8, x_9, x_85); +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; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_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_Meta_Grind_ppPattern___closed__4; +if (lean_is_scalar(x_86)) { + x_91 = lean_alloc_ctor(7, 2, 0); +} else { + x_91 = x_86; + lean_ctor_set_tag(x_91, 7); } +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_88); +x_92 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__5; +x_93 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +x_94 = lean_box(0); +lean_inc(x_75); +x_95 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__1(x_75, x_94); +x_96 = l_List_mapTR_loop___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__2(x_95, x_94); +x_97 = l_Lean_MessageData_ofList(x_96); +x_98 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_98, 0, x_93); +lean_ctor_set(x_98, 1, x_97); +x_99 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_90); +x_100 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_78, x_99, x_6, x_7, x_8, x_9, x_89); +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_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go___lambda__1(x_2, x_3, x_77, x_75, x_76, x_1, x_101, x_6, x_7, x_8, x_9, x_102); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_101); +return x_103; } else { -uint8_t x_34; -lean_dec(x_10); +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_86); +lean_dec(x_77); +lean_dec(x_76); +lean_dec(x_75); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); +lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_34 = !lean_is_exclusive(x_13); -if (x_34 == 0) -{ -return x_13; +lean_dec(x_1); +x_104 = lean_ctor_get(x_87, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_87, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_106 = x_87; +} else { + lean_dec_ref(x_87); + x_106 = lean_box(0); } -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_inc(x_35); -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; +if (lean_is_scalar(x_106)) { + x_107 = lean_alloc_ctor(1, 2, 0); +} else { + x_107 = x_106; +} +lean_ctor_set(x_107, 0, x_104); +lean_ctor_set(x_107, 1, x_105); +return x_107; } } } -case 4: -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_6); -lean_ctor_set(x_39, 1, x_38); -x_40 = lean_array_mk(x_39); -x_41 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_5, x_40, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_40); -return x_41; } -case 5: -{ -lean_object* x_42; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_42 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_5, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -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_box(0); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_6); -lean_ctor_set(x_46, 1, x_45); -x_47 = lean_array_mk(x_46); -x_48 = l_Array_append___rarg(x_47, x_43); -lean_dec(x_43); -x_49 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_5, x_48, x_7, x_8, x_9, x_10, x_44); -lean_dec(x_48); -return x_49; } else { -uint8_t x_50; -lean_dec(x_10); +uint8_t x_108; 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_50 = !lean_is_exclusive(x_42); -if (x_50 == 0) +lean_dec(x_1); +x_108 = !lean_is_exclusive(x_11); +if (x_108 == 0) { -return x_42; +return x_11; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_42, 0); -x_52 = lean_ctor_get(x_42, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_42); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_11, 0); +x_110 = lean_ctor_get(x_11, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_11); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +return x_111; } } } -default: -{ -lean_object* x_54; lean_object* x_55; -lean_dec(x_12); -lean_dec(x_6); -x_54 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__2; -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_55 = l_panic___at_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___spec__1(x_54, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_55) == 0) -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_58 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_5, x_56, x_7, x_8, x_9, x_10, x_57); -lean_dec(x_56); -return x_58; } -else +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_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: { -uint8_t x_59; +lean_object* x_13; +x_13 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_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_11); 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_59 = !lean_is_exclusive(x_55); -if (x_59 == 0) +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: { -return x_55; +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(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; } -else +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_mkEMatchTheoremWithKind_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) { +_start: { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_55, 0); -x_61 = lean_ctor_get(x_55, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_55); -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_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_Lean_Meta_Grind_mkEMatchTheoremWithKind_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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_1, x_2, x_3, x_4, x_5, x_7, x_8, x_9, x_10, x_11); +return x_12; } } +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.mkEMatchTheoremWithKind\?", 40, 40); +return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__3(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) { +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__2() { _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 = lean_infer_type(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; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_box(x_2); -x_15 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___boxed), 11, 4); -lean_closure_set(x_15, 0, x_14); -lean_closure_set(x_15, 1, x_3); -lean_closure_set(x_15, 2, x_4); -lean_closure_set(x_15, 3, x_1); -x_16 = 0; -x_17 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_12, x_15, x_16, x_6, x_7, x_8, x_9, x_13); -return x_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; +x_1 = l_Lean_Meta_Grind_EMatchTheorems_insert___closed__1; +x_2 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__1; +x_3 = lean_unsigned_to_nat(695u); +x_4 = lean_unsigned_to_nat(13u); +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; } -else +} +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__3() { +_start: { -uint8_t x_18; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_18 = !lean_is_exclusive(x_11); -if (x_18 == 0) +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid `grind` forward theorem, theorem `", 42, 42); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__4() { +_start: { -return x_11; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; } -else +} +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__5() { +_start: { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_11, 0); -x_20 = lean_ctor_get(x_11, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_11); -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_object* x_1; +x_1 = lean_mk_string_unchecked("` does not have propositional hypotheses", 40, 40); +return x_1; } } +static lean_object* _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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, lean_object* x_11) { _start: { -uint8_t x_10; uint8_t x_11; -x_10 = 0; -x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(x_4, x_10); -if (x_11 == 0) +lean_object* x_12; +x_12 = lean_box(x_1); +switch (lean_obj_tag(x_12)) { +case 4: { -uint8_t x_12; uint8_t x_13; -x_12 = 1; -x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(x_4, x_12); -if (x_13 == 0) +lean_object* x_13; +lean_dec(x_6); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_5, 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; -x_14 = lean_box(0); -x_15 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__3(x_3, x_4, x_1, x_2, x_14, x_5, x_6, x_7, x_8, x_9); -return x_15; +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Array_isEmpty___rarg(x_14); +if (x_16 == 0) +{ +lean_object* x_17; +x_17 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_5, x_14, x_7, x_8, x_9, x_10, x_15); +lean_dec(x_14); +return x_17; } else { -uint8_t x_16; uint8_t x_17; lean_object* x_18; -x_16 = 1; -x_17 = 0; -x_18 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore(x_1, x_2, x_3, x_16, x_17, x_5, x_6, x_7, x_8, x_9); +lean_object* x_18; +lean_dec(x_14); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_18 = l_Lean_Meta_Grind_Origin_pp___at_Lean_Meta_Grind_mkEMatchTheoremCore___spec__3(x_2, x_7, x_8, x_9, x_10, x_15); 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); -x_21 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_18, 0, x_21); -return x_18; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_18, 0); -x_23 = lean_ctor_get(x_18, 1); -lean_inc(x_23); -lean_inc(x_22); +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_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_24 = lean_alloc_ctor(1, 1, 0); +x_21 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__4; +x_22 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +x_23 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__6; +x_24 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_24, 0, x_22); -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 -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_18); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Lean_throwError___at___private_Lean_Meta_InferType_0__Lean_Meta_inferProjType___spec__1(x_24, x_7, x_8, x_9, x_10, x_20); +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_18; +return x_25; } else { lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_18, 0); -x_28 = lean_ctor_get(x_18, 1); +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_18); +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 -{ -uint8_t x_30; lean_object* x_31; -x_30 = 1; -x_31 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore(x_1, x_2, x_3, x_30, x_30, x_5, x_6, x_7, x_8, x_9); -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 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_31, 0, x_34); -return x_31; -} -else -{ -lean_object* x_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 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_37, 0, x_35); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -return x_38; -} -} else { -uint8_t x_39; -x_39 = !lean_is_exclusive(x_31); -if (x_39 == 0) +uint8_t x_30; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_30 = !lean_is_exclusive(x_18); +if (x_30 == 0) { -return x_31; +return x_18; } 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; -} +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; } } } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_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) { -_start: +else { -lean_object* x_12; -x_12 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_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); -lean_dec(x_6); +uint8_t x_34; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_5); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_34 = !lean_is_exclusive(x_13); +if (x_34 == 0) { -uint8_t x_12; lean_object* x_13; -x_12 = lean_unbox(x_1); -lean_dec(x_1); -x_13 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_13; } -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_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, lean_object* x_10) { -_start: +else { -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_2); -lean_dec(x_2); -x_12 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__3(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_5); -return x_12; +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_inc(x_35); +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; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_4); -lean_dec(x_4); -x_11 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(x_1, x_2, x_3, x_10, x_5, x_6, x_7, x_8, x_9); -return x_11; } +case 5: +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_box(0); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_6); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_array_mk(x_39); +x_41 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_5, x_40, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_40); +return x_41; } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_getTheoremKindCore___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: +case 6: { -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_2, 5); -x_6 = l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContextCoreM___spec__1(x_1, x_2, x_3, x_4); -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) +lean_object* x_42; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_42 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getPropTypes(x_5, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_6, 0); -lean_inc(x_5); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_5); -lean_ctor_set(x_9, 1, x_8); -lean_ctor_set_tag(x_6, 1); -lean_ctor_set(x_6, 0, x_9); -return x_6; +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_43 = lean_ctor_get(x_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_box(0); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_6); +lean_ctor_set(x_46, 1, x_45); +x_47 = lean_array_mk(x_46); +x_48 = l_Array_append___rarg(x_47, x_43); +lean_dec(x_43); +x_49 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_5, x_48, x_7, x_8, x_9, x_10, x_44); +lean_dec(x_48); +return x_49; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_6, 0); -x_11 = lean_ctor_get(x_6, 1); -lean_inc(x_11); -lean_inc(x_10); +uint8_t x_50; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_6); -lean_inc(x_5); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_5); -lean_ctor_set(x_12, 1, x_10); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -} -} -static lean_object* _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__1() { -_start: +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_50 = !lean_is_exclusive(x_42); +if (x_50 == 0) { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Parser", 6, 6); -return x_1; -} +return x_42; } -static lean_object* _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__2() { -_start: +else { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Attr", 4, 4); -return x_1; +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_42, 0); +x_52 = lean_ctor_get(x_42, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_42); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; } } -static lean_object* _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__3() { -_start: +} +default: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("grindThmMod", 11, 11); -return x_1; +lean_object* x_54; lean_object* x_55; +lean_dec(x_12); +lean_dec(x_6); +x_54 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__2; +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_55 = l_panic___at_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___spec__1(x_54, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f_go(x_2, x_3, x_4, x_5, 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); +x_59 = !lean_is_exclusive(x_55); +if (x_59 == 0) +{ +return x_55; } -static lean_object* _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__4() { -_start: +else { -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_mkOffsetPattern___closed__1; -x_2 = l_Lean_Meta_Grind_getTheoremKindCore___closed__1; -x_3 = l_Lean_Meta_Grind_getTheoremKindCore___closed__2; -x_4 = l_Lean_Meta_Grind_getTheoremKindCore___closed__3; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_55, 0); +x_61 = lean_ctor_get(x_55, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_55); +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_Grind_getTheoremKindCore___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("unexpected `grind` theorem kind: `", 34, 34); -return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_getTheoremKindCore___closed__5; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; } } -static lean_object* _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__7() { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__3(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_1; -x_1 = lean_mk_string_unchecked("grindEq", 7, 7); -return x_1; -} +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 = lean_infer_type(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; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_box(x_2); +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___boxed), 11, 4); +lean_closure_set(x_15, 0, x_14); +lean_closure_set(x_15, 1, x_3); +lean_closure_set(x_15, 2, x_4); +lean_closure_set(x_15, 3, x_1); +x_16 = 0; +x_17 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_12, x_15, x_16, x_6, x_7, x_8, x_9, x_13); +return x_17; } -static lean_object* _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__8() { -_start: +else +{ +uint8_t x_18; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_11); +if (x_18 == 0) { -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_mkOffsetPattern___closed__1; -x_2 = l_Lean_Meta_Grind_getTheoremKindCore___closed__1; -x_3 = l_Lean_Meta_Grind_getTheoremKindCore___closed__2; -x_4 = l_Lean_Meta_Grind_getTheoremKindCore___closed__7; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; -} +return x_11; } -static lean_object* _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__9() { -_start: +else { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("grindFwd", 8, 8); -return x_1; +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_11, 0); +x_20 = lean_ctor_get(x_11, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_11); +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_getTheoremKindCore___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_Grind_mkOffsetPattern___closed__1; -x_2 = l_Lean_Meta_Grind_getTheoremKindCore___closed__1; -x_3 = l_Lean_Meta_Grind_getTheoremKindCore___closed__2; -x_4 = l_Lean_Meta_Grind_getTheoremKindCore___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_Meta_Grind_getTheoremKindCore___closed__11() { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(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_1; -x_1 = lean_mk_string_unchecked("grindBwd", 8, 8); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__12() { -_start: +uint8_t x_10; uint8_t x_11; +x_10 = 0; +x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(x_4, x_10); +if (x_11 == 0) { -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_mkOffsetPattern___closed__1; -x_2 = l_Lean_Meta_Grind_getTheoremKindCore___closed__1; -x_3 = l_Lean_Meta_Grind_getTheoremKindCore___closed__2; -x_4 = l_Lean_Meta_Grind_getTheoremKindCore___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_Meta_Grind_getTheoremKindCore___closed__13() { -_start: +uint8_t x_12; uint8_t x_13; +x_12 = 1; +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(x_4, x_12); +if (x_13 == 0) { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("grindEqRhs", 10, 10); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__14() { -_start: +uint8_t x_14; uint8_t x_15; +x_14 = 3; +x_15 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(x_4, x_14); +if (x_15 == 0) { -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_mkOffsetPattern___closed__1; -x_2 = l_Lean_Meta_Grind_getTheoremKindCore___closed__1; -x_3 = l_Lean_Meta_Grind_getTheoremKindCore___closed__2; -x_4 = l_Lean_Meta_Grind_getTheoremKindCore___closed__13; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; -} +lean_object* x_16; lean_object* x_17; +x_16 = lean_box(0); +x_17 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__3(x_3, x_4, x_1, x_2, x_16, x_5, x_6, x_7, x_8, x_9); +return x_17; } -static lean_object* _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__15() { -_start: +else { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("grindEqBoth", 11, 11); -return x_1; -} +lean_object* x_18; +x_18 = l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9); +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); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_18, 0, x_21); +return x_18; } -static lean_object* _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__16() { -_start: +else { -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_mkOffsetPattern___closed__1; -x_2 = l_Lean_Meta_Grind_getTheoremKindCore___closed__1; -x_3 = l_Lean_Meta_Grind_getTheoremKindCore___closed__2; -x_4 = l_Lean_Meta_Grind_getTheoremKindCore___closed__15; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_18, 0); +x_23 = lean_ctor_get(x_18, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_18); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_22); +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_EXPORT lean_object* l_Lean_Meta_Grind_getTheoremKindCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: +else { -lean_object* x_5; uint8_t x_6; -x_5 = l_Lean_Meta_Grind_getTheoremKindCore___closed__4; -lean_inc(x_1); -x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); -if (x_6 == 0) +uint8_t x_26; +x_26 = !lean_is_exclusive(x_18); +if (x_26 == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_7 = l_Lean_MessageData_ofSyntax(x_1); -x_8 = l_Lean_Meta_Grind_getTheoremKindCore___closed__6; -x_9 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; -x_11 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -x_12 = l_Lean_throwError___at_Lean_Meta_Grind_getTheoremKindCore___spec__1(x_11, x_2, x_3, x_4); -return x_12; +return x_18; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -x_13 = lean_unsigned_to_nat(0u); -x_14 = l_Lean_Syntax_getArg(x_1, x_13); -x_15 = l_Lean_Meta_Grind_getTheoremKindCore___closed__8; -lean_inc(x_14); -x_16 = l_Lean_Syntax_isOfKind(x_14, x_15); -if (x_16 == 0) -{ -lean_object* x_17; uint8_t x_18; -x_17 = l_Lean_Meta_Grind_getTheoremKindCore___closed__10; -lean_inc(x_14); -x_18 = l_Lean_Syntax_isOfKind(x_14, x_17); -if (x_18 == 0) -{ -lean_object* x_19; uint8_t x_20; -x_19 = l_Lean_Meta_Grind_getTheoremKindCore___closed__12; -lean_inc(x_14); -x_20 = l_Lean_Syntax_isOfKind(x_14, x_19); -if (x_20 == 0) -{ -lean_object* x_21; uint8_t x_22; -x_21 = l_Lean_Meta_Grind_getTheoremKindCore___closed__14; -lean_inc(x_14); -x_22 = l_Lean_Syntax_isOfKind(x_14, x_21); -if (x_22 == 0) -{ -lean_object* x_23; uint8_t x_24; -x_23 = l_Lean_Meta_Grind_getTheoremKindCore___closed__16; -x_24 = l_Lean_Syntax_isOfKind(x_14, 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; -x_25 = l_Lean_MessageData_ofSyntax(x_1); -x_26 = l_Lean_Meta_Grind_getTheoremKindCore___closed__6; -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_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__4; -x_29 = lean_alloc_ctor(7, 2, 0); +lean_object* x_27; lean_object* x_28; lean_object* 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 = lean_alloc_ctor(1, 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_Meta_Grind_getTheoremKindCore___spec__1(x_29, x_2, x_3, x_4); -return x_30; +return x_29; +} } -else -{ -uint8_t x_31; lean_object* x_32; lean_object* x_33; -lean_dec(x_1); -x_31 = 2; -x_32 = lean_box(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_4); -return x_33; } } else { -uint8_t x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_14); -lean_dec(x_1); -x_34 = 1; -x_35 = lean_box(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_4); -return x_36; -} +uint8_t x_30; uint8_t x_31; lean_object* x_32; +x_30 = 1; +x_31 = 0; +x_32 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore(x_1, x_2, x_3, x_30, x_31, x_5, x_6, x_7, x_8, x_9); +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 { -uint8_t x_37; lean_object* x_38; lean_object* x_39; -lean_dec(x_14); -lean_dec(x_1); -x_37 = 4; -x_38 = lean_box(x_37); +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_4); +lean_ctor_set(x_39, 1, x_37); return x_39; } } else { -uint8_t x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_14); -lean_dec(x_1); -x_40 = 3; -x_41 = lean_box(x_40); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_4); -return x_42; +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; +} +} } } else { -uint8_t x_43; lean_object* x_44; lean_object* x_45; -lean_dec(x_14); -lean_dec(x_1); -x_43 = 0; -x_44 = lean_box(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_4); +uint8_t x_44; lean_object* x_45; +x_44 = 1; +x_45 = l_Lean_Meta_Grind_mkEMatchEqTheoremCore(x_1, x_2, x_3, x_44, x_44, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_45) == 0) +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_45, 0); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_45, 0, x_48); return x_45; } +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_45, 0); +x_50 = lean_ctor_get(x_45, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_45); +x_51 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_51, 0, x_49); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +return x_52; } } +else +{ +uint8_t x_53; +x_53 = !lean_is_exclusive(x_45); +if (x_53 == 0) +{ +return x_45; } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_getTheoremKindCore___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: +else { -lean_object* x_5; -x_5 = l_Lean_throwError___at_Lean_Meta_Grind_getTheoremKindCore___spec__1(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_5; +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; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTheoremKindCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Meta_Grind_getTheoremKindCore(x_1, x_2, x_3, x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTheoremKindFromOpt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_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) { _start: -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = l_Lean_Syntax_isNone(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Lean_Syntax_getArg(x_6, x_8); +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_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); lean_dec(x_6); -x_10 = l_Lean_Meta_Grind_getTheoremKindCore(x_9, x_2, x_3, x_4); -return x_10; +lean_dec(x_5); +return x_12; } -else +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___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: { -uint8_t x_11; lean_object* x_12; lean_object* x_13; -lean_dec(x_6); -x_11 = 5; -x_12 = lean_box(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_4); +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_1); +lean_dec(x_1); +x_13 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_13; } } -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTheoremKindFromOpt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_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, lean_object* x_10) { _start: { -lean_object* x_5; -x_5 = l_Lean_Meta_Grind_getTheoremKindFromOpt(x_1, x_2, x_3, x_4); -lean_dec(x_3); +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_2); lean_dec(x_2); -lean_dec(x_1); -return x_5; +x_12 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__3(x_1, x_11, x_3, 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_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_4); +lean_dec(x_4); +x_11 = l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(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_throwError___at_Lean_Meta_Grind_mkEMatchTheoremForDecl___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) { @@ -29509,259 +30051,64 @@ return x_10; else { lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_10, 0); -x_56 = lean_ctor_get(x_10, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_10); -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; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___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: -{ -uint8_t x_11; size_t x_12; size_t x_13; lean_object* x_14; -x_11 = lean_unbox(x_1); -lean_dec(x_1); -x_12 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_13 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_14 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___spec__1(x_11, x_2, x_12, x_13, 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_2); -return x_14; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___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: -{ -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_addGrindEqAttr___lambda__1(x_1, x_9, 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_1); -return x_10; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; -x_10 = lean_unbox(x_2); -lean_dec(x_2); -x_11 = lean_unbox(x_3); -lean_dec(x_3); -x_12 = lean_unbox(x_4); -lean_dec(x_4); -x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_10, x_11, x_12, x_5, x_6, x_7, x_8, x_9); -return x_13; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindAttr(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -uint8_t x_9; uint8_t x_10; -x_9 = 0; -x_10 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(x_3, x_9); -if (x_10 == 0) -{ -uint8_t x_11; uint8_t x_12; -x_11 = 1; -x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(x_3, x_11); -if (x_12 == 0) -{ -uint8_t x_13; uint8_t x_14; -x_13 = 2; -x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7186_(x_3, x_13); -if (x_14 == 0) -{ -lean_object* x_15; -lean_inc(x_1); -x_15 = 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_15) == 0) -{ -lean_object* x_16; lean_object* x_17; uint8_t 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_Lean_ConstantInfo_isTheorem(x_16); -lean_dec(x_16); -if (x_18 == 0) -{ -uint8_t x_19; lean_object* x_20; -x_19 = 1; -x_20 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_19, x_4, x_5, x_6, x_7, x_17); -return x_20; -} -else -{ -lean_object* x_21; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_21 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_3, x_4, x_5, x_6, x_7, x_17); -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_Lean_Meta_Grind_addEMatchTheorem___closed__1; -x_25 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_24, x_22, x_2, x_4, x_5, x_6, x_7, x_23); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -return x_25; -} -else -{ -uint8_t x_26; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_26 = !lean_is_exclusive(x_21); -if (x_26 == 0) -{ -return x_21; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_21, 0); -x_28 = lean_ctor_get(x_21, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_21); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -} -} -else -{ -uint8_t x_30; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_30 = !lean_is_exclusive(x_15); -if (x_30 == 0) -{ -return x_15; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_15, 0); -x_32 = lean_ctor_get(x_15, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_15); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -else -{ -uint8_t x_34; lean_object* x_35; -x_34 = 1; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_35 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_34, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; uint8_t x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = 0; -x_38 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_37, x_4, x_5, x_6, x_7, x_36); -return x_38; -} -else -{ -uint8_t x_39; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -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; +x_55 = lean_ctor_get(x_10, 0); +x_56 = lean_ctor_get(x_10, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_10); +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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___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: { -uint8_t x_43; lean_object* x_44; -x_43 = 0; -x_44 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_43, x_4, x_5, x_6, x_7, x_8); -return x_44; +uint8_t x_11; size_t x_12; size_t x_13; lean_object* x_14; +x_11 = lean_unbox(x_1); +lean_dec(x_1); +x_12 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_13 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_14 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___spec__1(x_11, x_2, x_12, x_13, 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_2); +return x_14; } } -else +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___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: { -uint8_t x_45; lean_object* x_46; -x_45 = 1; -x_46 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_45, x_4, x_5, x_6, x_7, x_8); -return x_46; -} +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_addGrindEqAttr___lambda__1(x_1, x_9, 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_1); +return x_10; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindAttr___boxed(lean_object* x_1, lean_object* x_2, lean_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_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_10; lean_object* x_11; -x_9 = lean_unbox(x_2); +uint8_t x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; +x_10 = lean_unbox(x_2); lean_dec(x_2); -x_10 = lean_unbox(x_3); +x_11 = lean_unbox(x_3); lean_dec(x_3); -x_11 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindAttr(x_1, x_9, x_10, x_4, x_5, x_6, x_7, x_8); -return x_11; +x_12 = lean_unbox(x_4); +lean_dec(x_4); +x_13 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_10, x_11, x_12, x_5, x_6, x_7, x_8, x_9); +return x_13; } } LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___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) { @@ -30427,820 +30774,496 @@ lean_dec(x_4); x_7 = l_Array_anyMUnsafe_any___at_Lean_Meta_Grind_EMatchTheorems_eraseDecl___spec__3(x_1, x_2, x_5, x_6); lean_dec(x_2); x_8 = lean_box(x_7); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___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_EMatchTheorems_eraseDecl___lambda__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_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___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) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__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; -} -} -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__2() { -_start: -{ -lean_object* x_1; uint64_t x_2; -x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__4; -x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedEMatchTheorems___spec__1___closed__2; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__1; -x_4 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__2; -x_5 = 0; -x_6 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__6; -x_7 = l_Lean_Meta_Grind_NormalizePattern_main___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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___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_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedEMatchTheorems___spec__1___closed__2; -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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedEMatchTheorems___spec__1___closed__2; -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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____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; lean_object* x_6; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__8; -x_3 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__2; -x_4 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__5; -x_5 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___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; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_Meta_Grind_getTheoremKindFromOpt(x_2, x_4, x_5, x_6); -if (lean_obj_tag(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; uint8_t x_15; lean_object* x_16; -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 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__10; -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); -x_14 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__7; -x_15 = lean_unbox(x_8); -lean_dec(x_8); -lean_inc(x_12); -x_16 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindAttr(x_1, x_3, x_15, x_14, x_12, x_4, x_5, x_13); -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_12, x_18); -lean_dec(x_12); -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_12); -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 -{ -uint8_t x_28; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_28 = !lean_is_exclusive(x_7); -if (x_28 == 0) -{ -return x_7; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_7, 0); -x_30 = lean_ctor_get(x_7, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_7); -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; +return x_8; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___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_EMatchTheorems_eraseDecl___lambda__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_1); +return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___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) { _start: { -lean_inc(x_1); -return x_1; +lean_object* x_9; +x_9 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___lambda__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_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttr(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_5 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__10; -x_6 = lean_st_mk_ref(x_5, x_4); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = lean_st_ref_get(x_3, x_8); -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_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -x_13 = l_Lean_Meta_Grind_instInhabitedEMatchTheorems; -x_14 = l_Lean_Meta_Grind_addEMatchTheorem___closed__1; -x_15 = l_Lean_ScopedEnvExtension_getState___rarg(x_13, x_14, x_12); -x_16 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__7; -lean_inc(x_3); -lean_inc(x_7); -x_17 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl(x_15, x_1, x_16, x_7, x_2, x_3, x_11); -if (lean_obj_tag(x_17) == 0) +uint8_t x_9; uint8_t x_10; +x_9 = 0; +x_10 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(x_3, x_9); +if (x_10 == 0) { -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_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_st_ref_take(x_3, 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) +uint8_t x_11; uint8_t x_12; +x_11 = 1; +x_12 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(x_3, x_11); +if (x_12 == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_24 = lean_ctor_get(x_21, 0); -x_25 = lean_ctor_get(x_21, 4); -lean_dec(x_25); -x_26 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__2___boxed), 2, 1); -lean_closure_set(x_26, 0, x_18); -x_27 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_14, x_24, x_26); -x_28 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__1; -lean_ctor_set(x_21, 4, x_28); -lean_ctor_set(x_21, 0, x_27); -x_29 = lean_st_ref_set(x_3, x_21, x_22); -lean_dec(x_3); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_st_ref_take(x_7, x_30); -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_is_exclusive(x_32); -if (x_34 == 0) +uint8_t x_13; uint8_t x_14; +x_13 = 2; +x_14 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_beqTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7799_(x_3, x_13); +if (x_14 == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_35 = lean_ctor_get(x_32, 1); -lean_dec(x_35); -x_36 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__2; -lean_ctor_set(x_32, 1, x_36); -x_37 = lean_st_ref_set(x_7, x_32, x_33); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -x_39 = lean_st_ref_get(x_7, x_38); -lean_dec(x_7); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) +lean_object* x_15; +lean_inc(x_1); +x_15 = 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_15) == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_39, 0); -lean_dec(x_41); -x_42 = lean_box(0); -lean_ctor_set(x_39, 0, x_42); -return x_39; +lean_object* x_16; lean_object* x_17; uint8_t 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_Lean_ConstantInfo_isTheorem(x_16); +lean_dec(x_16); +if (x_18 == 0) +{ +uint8_t x_19; lean_object* x_20; +x_19 = 1; +x_20 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_19, x_4, x_5, x_6, x_7, x_17); +return x_20; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_39, 1); -lean_inc(x_43); -lean_dec(x_39); -x_44 = lean_box(0); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -return x_45; -} +lean_object* x_21; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_21 = l_Lean_Meta_Grind_mkEMatchTheoremForDecl(x_1, x_3, x_4, x_5, x_6, x_7, x_17); +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_Lean_Meta_Grind_addEMatchTheorem___closed__1; +x_25 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1(x_24, x_22, x_2, x_4, x_5, x_6, x_7, x_23); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +return x_25; } 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; -x_46 = lean_ctor_get(x_32, 0); -x_47 = lean_ctor_get(x_32, 2); -x_48 = lean_ctor_get(x_32, 3); -x_49 = lean_ctor_get(x_32, 4); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_32); -x_50 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__2; -x_51 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_51, 0, x_46); -lean_ctor_set(x_51, 1, x_50); -lean_ctor_set(x_51, 2, x_47); -lean_ctor_set(x_51, 3, x_48); -lean_ctor_set(x_51, 4, x_49); -x_52 = lean_st_ref_set(x_7, x_51, x_33); -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec(x_52); -x_54 = lean_st_ref_get(x_7, x_53); +uint8_t x_26; lean_dec(x_7); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_56 = x_54; -} else { - lean_dec_ref(x_54); - x_56 = lean_box(0); -} -x_57 = lean_box(0); -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; -} +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_26 = !lean_is_exclusive(x_21); +if (x_26 == 0) +{ +return x_21; } 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; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_59 = lean_ctor_get(x_21, 0); -x_60 = lean_ctor_get(x_21, 1); -x_61 = lean_ctor_get(x_21, 2); -x_62 = lean_ctor_get(x_21, 3); -x_63 = lean_ctor_get(x_21, 5); -x_64 = lean_ctor_get(x_21, 6); -x_65 = lean_ctor_get(x_21, 7); -lean_inc(x_65); -lean_inc(x_64); -lean_inc(x_63); -lean_inc(x_62); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_59); +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_21, 0); +x_28 = lean_ctor_get(x_21, 1); +lean_inc(x_28); +lean_inc(x_27); lean_dec(x_21); -x_66 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__2___boxed), 2, 1); -lean_closure_set(x_66, 0, x_18); -x_67 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_14, x_59, x_66); -x_68 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__1; -x_69 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_60); -lean_ctor_set(x_69, 2, x_61); -lean_ctor_set(x_69, 3, x_62); -lean_ctor_set(x_69, 4, x_68); -lean_ctor_set(x_69, 5, x_63); -lean_ctor_set(x_69, 6, x_64); -lean_ctor_set(x_69, 7, x_65); -x_70 = lean_st_ref_set(x_3, x_69, x_22); -lean_dec(x_3); -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -lean_dec(x_70); -x_72 = lean_st_ref_take(x_7, x_71); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -x_75 = lean_ctor_get(x_73, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_73, 2); -lean_inc(x_76); -x_77 = lean_ctor_get(x_73, 3); -lean_inc(x_77); -x_78 = lean_ctor_get(x_73, 4); -lean_inc(x_78); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - lean_ctor_release(x_73, 2); - lean_ctor_release(x_73, 3); - lean_ctor_release(x_73, 4); - x_79 = x_73; -} else { - lean_dec_ref(x_73); - x_79 = lean_box(0); -} -x_80 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__2; -if (lean_is_scalar(x_79)) { - x_81 = lean_alloc_ctor(0, 5, 0); -} else { - x_81 = x_79; -} -lean_ctor_set(x_81, 0, x_75); -lean_ctor_set(x_81, 1, x_80); -lean_ctor_set(x_81, 2, x_76); -lean_ctor_set(x_81, 3, x_77); -lean_ctor_set(x_81, 4, x_78); -x_82 = lean_st_ref_set(x_7, x_81, x_74); -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -lean_dec(x_82); -x_84 = lean_st_ref_get(x_7, x_83); -lean_dec(x_7); -x_85 = lean_ctor_get(x_84, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); - x_86 = x_84; -} else { - lean_dec_ref(x_84); - x_86 = lean_box(0); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } -x_87 = lean_box(0); -if (lean_is_scalar(x_86)) { - x_88 = lean_alloc_ctor(0, 2, 0); -} else { - x_88 = x_86; } -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_85); -return x_88; } } else { -uint8_t x_89; +uint8_t x_30; lean_dec(x_7); -lean_dec(x_3); -x_89 = !lean_is_exclusive(x_17); -if (x_89 == 0) +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_15); +if (x_30 == 0) { -return x_17; +return x_15; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_17, 0); -x_91 = lean_ctor_get(x_17, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_17); -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_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_15, 0); +x_32 = lean_ctor_get(x_15, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_15); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } } +else +{ +uint8_t x_34; lean_object* x_35; +x_34 = 1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_35 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_34, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; uint8_t x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_35, 1); +lean_inc(x_36); +lean_dec(x_35); +x_37 = 0; +x_38 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_37, x_4, x_5, x_6, x_7, x_36); +return x_38; } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__1() { -_start: +else +{ +uint8_t x_39; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_35); +if (x_39 == 0) { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_mkOffsetPattern___closed__1; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} +return x_35; } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__2() { -_start: +else { -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_11457____closed__1; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__4; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; +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; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__3() { -_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_11457____closed__2; -x_2 = l_Lean_Meta_Grind_mkOffsetPattern___closed__2; -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_11457____closed__4() { -_start: +else { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("initFn", 6, 6); -return x_1; +uint8_t x_43; lean_object* x_44; +x_43 = 0; +x_44 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_43, x_4, x_5, x_6, x_7, x_8); +return x_44; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__5() { -_start: +else { -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_11457____closed__3; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__4; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} +uint8_t x_45; lean_object* x_46; +x_45 = 1; +x_46 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addGrindEqAttr(x_1, x_2, x_3, x_45, x_4, x_5, x_6, x_7, x_8); +return x_46; } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__7() { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchAttr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _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_11457____closed__5; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__6; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; +uint8_t x_9; uint8_t x_10; lean_object* x_11; +x_9 = lean_unbox(x_2); +lean_dec(x_2); +x_10 = lean_unbox(x_3); +lean_dec(x_3); +x_11 = l_Lean_Meta_Grind_addEMatchAttr(x_1, x_9, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__8() { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseEMatchAttr___lambda__1(lean_object* x_1, lean_object* x_2) { _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_11457____closed__7; -x_2 = l_Lean_Meta_Grind_mkOffsetPattern___closed__1; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; +lean_inc(x_1); +return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__9() { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseEMatchAttr(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_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__8; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__4; -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_11457____closed__10() { -_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_Lean_Meta_Grind_instInhabitedEMatchTheorems; +x_12 = l_Lean_Meta_Grind_addEMatchTheorem___closed__1; +x_13 = l_Lean_ScopedEnvExtension_getState___rarg(x_11, x_12, x_10); +lean_inc(x_5); +lean_inc(x_3); +x_14 = l_Lean_Meta_Grind_EMatchTheorems_eraseDecl(x_13, x_1, x_2, x_3, x_4, x_5, x_9); +if (lean_obj_tag(x_14) == 0) { -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_11457____closed__9; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__6; -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_11457____closed__11() { -_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 = 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_take(x_5, 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_is_exclusive(x_18); +if (x_20 == 0) { -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_11457____closed__10; -x_2 = l_Lean_Meta_Grind_mkOffsetPattern___closed__2; -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_11457____closed__12() { -_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; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_21 = lean_ctor_get(x_18, 0); +x_22 = lean_ctor_get(x_18, 4); +lean_dec(x_22); +x_23 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_eraseEMatchAttr___lambda__1___boxed), 2, 1); +lean_closure_set(x_23, 0, x_15); +x_24 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_12, x_21, x_23); +x_25 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__1; +lean_ctor_set(x_18, 4, x_25); +lean_ctor_set(x_18, 0, x_24); +x_26 = lean_st_ref_set(x_5, x_18, x_19); +lean_dec(x_5); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = lean_st_ref_take(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_is_exclusive(x_29); +if (x_31 == 0) { -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_11457____closed__11; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____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_11457____closed__13() { -_start: +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_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__2; +lean_ctor_set(x_29, 1, x_33); +x_34 = lean_st_ref_set(x_3, x_29, x_30); +lean_dec(x_3); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("_hyg", 4, 4); -return x_1; -} +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; } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__14() { -_start: +else { -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_11457____closed__12; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__13; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; +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; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__15() { -_start: +else { -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_11457____closed__14; -x_2 = lean_unsigned_to_nat(11457u); -x_3 = l_Lean_Name_num___override(x_1, x_2); -return x_3; +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_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__2; +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_3, x_46, x_30); +lean_dec(x_3); +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; } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__16() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_mkGroundPattern___closed__1; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_48); +return x_51; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__17() { -_start: +else { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("The `[grind]` attribute is used to annotate declarations.When applied to an equational theorem, `[grind =]`, `[grind =_]`, or `[grind _=_]`will mark the theorem for use in heuristic instantiations by the `grind` tactic,\n using respectively the left-hand side, the right-hand side, or both sides of the theorem.When applied to a function, `[grind =]` automatically annotates the equational theorems associated with that function.When applied to a theorem `[grind ←]` will instantiate the theorem whenever it encounters the conclusion of the theorem\n (that is, it will use the theorem for backwards reasoning).When applied to a theorem `[grind →]` will instantiate the theorem whenever it encounters sufficiently many of the propositional hypotheses\n (that is, it will use the theorem for forwards reasoning).The attribute `[grind]` by itself will effectively try `[grind ←]` (if the conclusion is sufficient for instantiation) and then `[grind →]`.The `grind` tactic utilizes annotated theorems to add instances of matching patterns into the local context during proof search.For example, if a theorem `@[grind =] theorem foo_idempotent : foo (foo x) = foo x` is annotated,`grind` will add an instance of this theorem to the local context whenever it encounters the pattern `foo (foo x)`.", 1310, 1302); -return x_1; +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; +x_52 = lean_ctor_get(x_18, 0); +x_53 = lean_ctor_get(x_18, 1); +x_54 = lean_ctor_get(x_18, 2); +x_55 = lean_ctor_get(x_18, 3); +x_56 = lean_ctor_get(x_18, 5); +x_57 = lean_ctor_get(x_18, 6); +x_58 = lean_ctor_get(x_18, 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_18); +x_59 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_eraseEMatchAttr___lambda__1___boxed), 2, 1); +lean_closure_set(x_59, 0, x_15); +x_60 = l_Lean_ScopedEnvExtension_modifyState___rarg(x_12, x_52, x_59); +x_61 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__1; +x_62 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_53); +lean_ctor_set(x_62, 2, x_54); +lean_ctor_set(x_62, 3, x_55); +lean_ctor_set(x_62, 4, x_61); +lean_ctor_set(x_62, 5, x_56); +lean_ctor_set(x_62, 6, x_57); +lean_ctor_set(x_62, 7, x_58); +x_63 = lean_st_ref_set(x_5, x_62, x_19); +lean_dec(x_5); +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_65 = lean_st_ref_take(x_3, x_64); +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_ctor_get(x_66, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_66, 2); +lean_inc(x_69); +x_70 = lean_ctor_get(x_66, 3); +lean_inc(x_70); +x_71 = lean_ctor_get(x_66, 4); +lean_inc(x_71); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + lean_ctor_release(x_66, 2); + lean_ctor_release(x_66, 3); + lean_ctor_release(x_66, 4); + x_72 = x_66; +} else { + lean_dec_ref(x_66); + x_72 = lean_box(0); } +x_73 = l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__2; +if (lean_is_scalar(x_72)) { + x_74 = lean_alloc_ctor(0, 5, 0); +} else { + x_74 = x_72; } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__18() { -_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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__15; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__16; -x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__17; -x_4 = 1; -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; +lean_ctor_set(x_74, 0, x_68); +lean_ctor_set(x_74, 1, x_73); +lean_ctor_set(x_74, 2, x_69); +lean_ctor_set(x_74, 3, x_70); +lean_ctor_set(x_74, 4, x_71); +x_75 = lean_st_ref_set(x_3, x_74, x_67); +lean_dec(x_3); +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_box(0); +if (lean_is_scalar(x_77)) { + x_79 = lean_alloc_ctor(0, 2, 0); +} else { + x_79 = x_77; } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__19() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___boxed), 6, 0); -return x_1; +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_76); +return x_79; } } -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__20() { -_start: +else { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__3), 4, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__21() { -_start: +uint8_t x_80; +lean_dec(x_5); +lean_dec(x_3); +x_80 = !lean_is_exclusive(x_14); +if (x_80 == 0) { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__18; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__19; -x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__20; -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; -} +return x_14; } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457_(lean_object* x_1) { -_start: +else { -lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__21; -x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1); -return x_3; +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_14, 0); +x_82 = lean_ctor_get(x_14, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_14); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____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: -{ -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_3); -lean_dec(x_3); -x_8 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1(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_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__2___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseEMatchAttr___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__2(x_1, x_2); +x_3 = l_Lean_Meta_Grind_eraseEMatchAttr___lambda__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -31309,6 +31332,10 @@ l_Lean_Meta_Grind_isOffsetPattern_x3f___closed__2 = _init_l_Lean_Meta_Grind_isOf lean_mark_persistent(l_Lean_Meta_Grind_isOffsetPattern_x3f___closed__2); l_Lean_Meta_Grind_isOffsetPattern_x3f___closed__3 = _init_l_Lean_Meta_Grind_isOffsetPattern_x3f___closed__3(); lean_mark_persistent(l_Lean_Meta_Grind_isOffsetPattern_x3f___closed__3); +l_Lean_Meta_Grind_mkEqBwdPattern___closed__1 = _init_l_Lean_Meta_Grind_mkEqBwdPattern___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_mkEqBwdPattern___closed__1); +l_Lean_Meta_Grind_mkEqBwdPattern___closed__2 = _init_l_Lean_Meta_Grind_mkEqBwdPattern___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_mkEqBwdPattern___closed__2); l_Lean_Meta_Grind_preprocessPattern___lambda__1___closed__1 = _init_l_Lean_Meta_Grind_preprocessPattern___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_preprocessPattern___lambda__1___closed__1); l_Lean_Meta_Grind_preprocessPattern___lambda__1___closed__2 = _init_l_Lean_Meta_Grind_preprocessPattern___lambda__1___closed__2(); @@ -31323,34 +31350,34 @@ l_Lean_Meta_Grind_instInhabitedOrigin___closed__1 = _init_l_Lean_Meta_Grind_inst 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_614____closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__1); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__2); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__3); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__4); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__5); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__6); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__7); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__8(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__8); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__9 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__9(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__9); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__10 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__10(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__10); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__11 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__11(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__11); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__12 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__12(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__12); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__13 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__13(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__13); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__14 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__14(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_614____closed__14); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__4); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__5); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__6); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__7); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__8); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__9 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__9(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__9); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__10 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__10(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__10); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__11 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__11(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__11); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__12 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__12(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__12); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__13 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__13(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__13); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__14 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__14(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprOrigin____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_792____closed__14); 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(); @@ -31389,47 +31416,47 @@ l_Lean_Meta_Grind_EMatchTheorems_insert___closed__3 = _init_l_Lean_Meta_Grind_EM 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_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__1); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__2); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__3); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__4); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__5 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__5); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__6 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__6); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__7 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__7); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__8 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__8); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__9 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__9); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__10 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__10); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__11 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__11(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__11); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__12 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__12(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__12); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__13 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__13(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__13); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__14 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__14(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__14); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__15 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__15(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__15); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__16 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__16(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__16); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__17 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__17(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__17); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__18 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__18(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__18); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__19 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__19(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__19); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__20 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__20(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666____closed__20); -if (builtin) {res = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1666_(lean_io_mk_world()); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__1); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__2); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__3); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__4); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__5 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__5); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__6 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__6); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__7 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__7); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__8 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__8); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__9 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__9(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__9); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__10 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__10(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__10); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__11 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__11(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__11); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__12 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__12(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__12); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__13 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__13(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__13); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__14 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__14(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__14); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__15 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__15(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__15); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__16 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__16(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__16); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__17 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__17(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__17); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__18 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__18(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__18); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__19 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__19(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__19); +l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__20 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__20(); +lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844____closed__20); +if (builtin) {res = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1844_(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); @@ -31526,20 +31553,20 @@ l_panic___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_N 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___lambda__2___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__4); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__5); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__6); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_NormalizePattern_go___lambda__2___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(); @@ -31608,6 +31635,16 @@ l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__5 = _init_l_Lean_Met lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__5); l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__6 = _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__6(); lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__2___closed__6); +l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__1 = _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__1); +l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__2 = _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__2); +l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__3 = _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__3); +l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__4 = _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__4); +l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__5 = _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremCore___lambda__3___closed__5); l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__1 = _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__1); l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__2 = _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__2(); @@ -31616,8 +31653,6 @@ l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__3 = _init_l_Lean_Meta_Grind_mkEM lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__3); l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__4 = _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__4(); lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__4); -l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5 = _init_l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremCore___closed__5); l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__1); l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_getProofFor___closed__2(); @@ -31662,6 +31697,12 @@ l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__5___closed__1 = _init_l_Lean_M lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__5___closed__1); l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__5___closed__2 = _init_l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__5___closed__2(); lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchEqTheoremCore___lambda__5___closed__2); +l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___closed__1 = _init_l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___closed__1); +l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___closed__2 = _init_l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___lambda__2___closed__2); +l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___closed__1 = _init_l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore___closed__1); l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__1 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__1(); lean_mark_persistent(l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__1); l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__2 = _init_l_Lean_ScopedEnvExtension_add___at_Lean_Meta_Grind_addEMatchTheorem___spec__1___closed__2(); @@ -31675,78 +31716,90 @@ l_Lean_Meta_Grind_instBEqTheoremKind___closed__1 = _init_l_Lean_Meta_Grind_instB lean_mark_persistent(l_Lean_Meta_Grind_instBEqTheoremKind___closed__1); l_Lean_Meta_Grind_instBEqTheoremKind = _init_l_Lean_Meta_Grind_instBEqTheoremKind(); lean_mark_persistent(l_Lean_Meta_Grind_instBEqTheoremKind); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__1); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__2); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__3); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__4); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__5); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__6); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__7); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__8(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__8); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__9 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__9(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__9); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__10 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__10(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__10); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__11 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__11(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__11); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__12 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__12(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__12); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__13 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__13(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__13); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__14 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__14(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__14); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__15 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__15(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__15); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__16 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__16(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__16); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__17 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__17(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__17); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__18 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__18(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__18); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__19 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__19(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__19); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__20 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__20(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__20); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__21 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__21(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__21); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__22 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__22(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__22); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__23 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__23(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__23); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__24 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__24(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__24); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__25 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__25(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__25); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__26 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__26(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__26); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__27 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__27(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__27); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__28 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__28(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__28); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__29 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__29(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__29); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__30 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__30(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__30); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__31 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__31(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__31); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__32 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__32(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__32); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__33 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__33(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__33); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__34 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__34(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__34); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__35 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__35(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__35); -l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__36 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__36(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7204____closed__36); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__1); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__2); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__3); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__4); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__5 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__5); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__6); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__7); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__8); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__9 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__9(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__9); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__10 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__10(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__10); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__11 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__11(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__11); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__12 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__12(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__12); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__13 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__13(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__13); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__14 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__14(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__14); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__15 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__15(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__15); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__16 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__16(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__16); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__17 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__17(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__17); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__18 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__18(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__18); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__19 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__19(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__19); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__20 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__20(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__20); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__21 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__21(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__21); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__22 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__22(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__22); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__23 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__23(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__23); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__24 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__24(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__24); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__25 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__25(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__25); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__26 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__26(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__26); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__27 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__27(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__27); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__28 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__28(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__28); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__29 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__29(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__29); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__30 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__30(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__30); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__31 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__31(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__31); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__32 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__32(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__32); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__33 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__33(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__33); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__34 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__34(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__34); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__35 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__35(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__35); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__36 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__36(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__36); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__37 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__37(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__37); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__38 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__38(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__38); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__39 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__39(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__39); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__40 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__40(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__40); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__41 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__41(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__41); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__42 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__42(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_reprTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_7817____closed__42); l_Lean_Meta_Grind_instReprTheoremKind___closed__1 = _init_l_Lean_Meta_Grind_instReprTheoremKind___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_instReprTheoremKind___closed__1); l_Lean_Meta_Grind_instReprTheoremKind = _init_l_Lean_Meta_Grind_instReprTheoremKind(); @@ -31763,6 +31816,8 @@ l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_ lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__5); l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__6 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__6(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__6); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_toAttribute___closed__7); l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__1); l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__2(); @@ -31777,6 +31832,8 @@ l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_ lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__6); l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__7 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__7(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__7); +l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__8 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_TheoremKind_explainFailure___closed__8); l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___spec__2___closed__1 = _init_l_Lean_addTrace___at___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___spec__2___closed__1(); l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___lambda__2___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___lambda__2___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern___lambda__2___closed__1); @@ -31824,38 +31881,6 @@ l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__5 = _init_l_ lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__5); l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__6 = _init_l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__6(); lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f___lambda__2___closed__6); -l_Lean_Meta_Grind_getTheoremKindCore___closed__1 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__1); -l_Lean_Meta_Grind_getTheoremKindCore___closed__2 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__2); -l_Lean_Meta_Grind_getTheoremKindCore___closed__3 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__3); -l_Lean_Meta_Grind_getTheoremKindCore___closed__4 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__4); -l_Lean_Meta_Grind_getTheoremKindCore___closed__5 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__5); -l_Lean_Meta_Grind_getTheoremKindCore___closed__6 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__6); -l_Lean_Meta_Grind_getTheoremKindCore___closed__7 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__7); -l_Lean_Meta_Grind_getTheoremKindCore___closed__8 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__8); -l_Lean_Meta_Grind_getTheoremKindCore___closed__9 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__9); -l_Lean_Meta_Grind_getTheoremKindCore___closed__10 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__10); -l_Lean_Meta_Grind_getTheoremKindCore___closed__11 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__11(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__11); -l_Lean_Meta_Grind_getTheoremKindCore___closed__12 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__12(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__12); -l_Lean_Meta_Grind_getTheoremKindCore___closed__13 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__13(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__13); -l_Lean_Meta_Grind_getTheoremKindCore___closed__14 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__14(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__14); -l_Lean_Meta_Grind_getTheoremKindCore___closed__15 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__15(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__15); -l_Lean_Meta_Grind_getTheoremKindCore___closed__16 = _init_l_Lean_Meta_Grind_getTheoremKindCore___closed__16(); -lean_mark_persistent(l_Lean_Meta_Grind_getTheoremKindCore___closed__16); l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__1 = _init_l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__1); l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__2 = _init_l_Lean_Meta_Grind_mkEMatchTheoremForDecl___closed__2(); @@ -31882,71 +31907,7 @@ l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__1 = _init_l_Lean_Meta_Grind lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__1); l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2 = _init_l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2(); lean_mark_persistent(l_Lean_Meta_Grind_EMatchTheorems_eraseDecl___closed__2); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__1); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__2(); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__3); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__4); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__5 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__5); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__6 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__6); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__7 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__7); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__8 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__8); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__9 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__9); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__10 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____lambda__1___closed__10); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__1 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__1); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__2 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__2); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__3 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__3); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__4 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__4); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__5 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__5); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__6 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__6); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__7 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__7); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__8 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__8); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__9 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__9); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__10 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__10); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__11 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__11(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__11); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__12 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__12(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__12); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__13 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__13(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__13); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__14 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__14(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__14); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__15 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__15(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__15); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__16 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__16(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__16); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__17 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__17(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__17); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__18 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__18(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__18); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__19 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__19(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__19); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__20 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__20(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__20); -l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__21 = _init_l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__21(); -lean_mark_persistent(l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457____closed__21); -if (builtin) {res = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_11457_(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)); +return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Ext.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Ext.c index 626553a431c9..102c2d56ebed 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Ext.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Ext.c @@ -1438,11 +1438,8 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instantiateExtTheorem___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_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_14 = l_Lean_Meta_Grind_getGeneration(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_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); @@ -1454,31 +1451,6 @@ lean_dec(x_15); x_19 = l_Lean_Meta_Grind_addNewFact(x_2, x_3, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); return x_19; } -else -{ -uint8_t x_20; -lean_dec(x_3); -lean_dec(x_2); -x_20 = !lean_is_exclusive(x_14); -if (x_20 == 0) -{ -return x_14; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_14, 0); -x_22 = lean_ctor_get(x_14, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_14); -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_instantiateExtTheorem___lambda__2___closed__1() { _start: @@ -1672,6 +1644,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_3); return x_48; } else @@ -1872,6 +1845,7 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_3); return x_91; } else @@ -3376,6 +3350,7 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +lean_dec(x_1); return x_14; } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c index 692fead2525c..b4f96b208cb2 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c @@ -894,7 +894,7 @@ lean_inc(x_8); x_22 = l_Lean_Meta_Grind_simp(x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_19); if (lean_obj_tag(x_22) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); @@ -904,17 +904,14 @@ 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_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_24); -if (lean_obj_tag(x_27) == 0) +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* 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_box(0); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_27, 0); +x_30 = lean_ctor_get(x_27, 1); +x_31 = lean_box(0); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -924,71 +921,72 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_26); -x_31 = l_Lean_Meta_Grind_internalize(x_26, x_28, 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) +x_32 = l_Lean_Meta_Grind_internalize(x_26, x_29, x_31, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_30); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); lean_inc(x_6); -x_33 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_32); -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) +x_34 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_33); +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_36; lean_object* x_37; lean_object* x_38; +lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_free_object(x_27); lean_dec(x_6); -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_propagateForallPropUp___lambda__1(x_23, x_1, x_25, x_26, x_18, x_5, x_37, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_36); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_box(0); +x_39 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__1(x_23, x_1, x_25, x_26, x_18, x_5, x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_37); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -return x_38; +return x_39; } 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; -x_40 = lean_ctor_get(x_33, 1); -x_41 = lean_ctor_get(x_33, 0); -lean_dec(x_41); -x_42 = l_Lean_Meta_Grind_updateLastTag(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_40); -if (lean_obj_tag(x_42) == 0) +uint8_t x_40; +x_40 = !lean_is_exclusive(x_34); +if (x_40 == 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; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_34, 1); +x_42 = lean_ctor_get(x_34, 0); lean_dec(x_42); +x_43 = l_Lean_Meta_Grind_updateLastTag(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, 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; 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_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); lean_inc(x_26); -x_44 = l_Lean_MessageData_ofExpr(x_26); -x_45 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__2; -lean_ctor_set_tag(x_33, 7); -lean_ctor_set(x_33, 1, x_44); -lean_ctor_set(x_33, 0, x_45); -x_46 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__4; -x_47 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_47, 0, x_33); -lean_ctor_set(x_47, 1, x_46); +x_45 = l_Lean_MessageData_ofExpr(x_26); +x_46 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__2; +lean_ctor_set_tag(x_34, 7); +lean_ctor_set(x_34, 1, x_45); +lean_ctor_set(x_34, 0, x_46); +x_47 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__4; +lean_ctor_set_tag(x_27, 7); +lean_ctor_set(x_27, 1, x_47); +lean_ctor_set(x_27, 0, x_34); lean_inc(x_5); x_48 = l_Lean_indentExpr(x_5); x_49 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 0, x_27); lean_ctor_set(x_49, 1, x_48); x_50 = l_Lean_Meta_Grind_propagateForallPropUp___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); -x_52 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_6, x_51, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_43); +x_52 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_6, x_51, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_44); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); x_54 = lean_ctor_get(x_52, 1); @@ -1005,7 +1003,8 @@ return x_55; else { uint8_t x_56; -lean_free_object(x_33); +lean_free_object(x_34); +lean_free_object(x_27); lean_dec(x_26); lean_dec(x_25); lean_dec(x_23); @@ -1021,19 +1020,19 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_56 = !lean_is_exclusive(x_42); +x_56 = !lean_is_exclusive(x_43); if (x_56 == 0) { -return x_42; +return x_43; } else { lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_42, 0); -x_58 = lean_ctor_get(x_42, 1); +x_57 = lean_ctor_get(x_43, 0); +x_58 = lean_ctor_get(x_43, 1); lean_inc(x_58); lean_inc(x_57); -lean_dec(x_42); +lean_dec(x_43); x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_57); lean_ctor_set(x_59, 1, x_58); @@ -1044,13 +1043,13 @@ return x_59; else { lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_33, 1); +x_60 = lean_ctor_get(x_34, 1); lean_inc(x_60); -lean_dec(x_33); +lean_dec(x_34); x_61 = l_Lean_Meta_Grind_updateLastTag(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_60); if (lean_obj_tag(x_61) == 0) { -lean_object* x_62; 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_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; x_62 = lean_ctor_get(x_61, 1); lean_inc(x_62); lean_dec(x_61); @@ -1061,35 +1060,36 @@ 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 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__4; -x_67 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); +lean_ctor_set_tag(x_27, 7); +lean_ctor_set(x_27, 1, x_66); +lean_ctor_set(x_27, 0, x_65); lean_inc(x_5); -x_68 = l_Lean_indentExpr(x_5); -x_69 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -x_70 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__6; -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_updateLastTag___spec__2(x_6, x_71, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_62); -x_73 = lean_ctor_get(x_72, 0); +x_67 = l_Lean_indentExpr(x_5); +x_68 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_68, 0, x_27); +lean_ctor_set(x_68, 1, x_67); +x_69 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__6; +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 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_6, x_70, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_62); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -x_75 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__1(x_23, x_1, x_25, x_26, x_18, x_5, x_73, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_74); +lean_dec(x_71); +x_74 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__1(x_23, x_1, x_25, x_26, x_18, x_5, x_72, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_73); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_73); -return x_75; +lean_dec(x_72); +return x_74; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_free_object(x_27); lean_dec(x_26); lean_dec(x_25); lean_dec(x_23); @@ -1105,33 +1105,34 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_76 = lean_ctor_get(x_61, 0); +x_75 = lean_ctor_get(x_61, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_61, 1); lean_inc(x_76); -x_77 = lean_ctor_get(x_61, 1); -lean_inc(x_77); if (lean_is_exclusive(x_61)) { lean_ctor_release(x_61, 0); lean_ctor_release(x_61, 1); - x_78 = x_61; + x_77 = x_61; } else { lean_dec_ref(x_61); - x_78 = lean_box(0); + x_77 = lean_box(0); } -if (lean_is_scalar(x_78)) { - x_79 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(1, 2, 0); } else { - x_79 = x_78; + x_78 = x_77; } -lean_ctor_set(x_79, 0, x_76); -lean_ctor_set(x_79, 1, x_77); -return x_79; +lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 1, x_76); +return x_78; } } } } else { -uint8_t x_80; +uint8_t x_79; +lean_free_object(x_27); lean_dec(x_26); lean_dec(x_25); lean_dec(x_23); @@ -1147,29 +1148,134 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_80 = !lean_is_exclusive(x_31); -if (x_80 == 0) +x_79 = !lean_is_exclusive(x_32); +if (x_79 == 0) { -return x_31; +return x_32; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_31, 0); -x_82 = lean_ctor_get(x_31, 1); -lean_inc(x_82); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_32, 0); +x_81 = lean_ctor_get(x_32, 1); lean_inc(x_81); -lean_dec(x_31); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -return x_83; +lean_inc(x_80); +lean_dec(x_32); +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_object* x_86; +x_83 = lean_ctor_get(x_27, 0); +x_84 = lean_ctor_get(x_27, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_27); +x_85 = lean_box(0); +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_26); +x_86 = l_Lean_Meta_Grind_internalize(x_26, x_83, x_85, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_84); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +lean_dec(x_86); +lean_inc(x_6); +x_88 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_6, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_87); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_unbox(x_89); +lean_dec(x_89); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_6); +x_91 = lean_ctor_get(x_88, 1); +lean_inc(x_91); +lean_dec(x_88); +x_92 = lean_box(0); +x_93 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__1(x_23, x_1, x_25, x_26, x_18, x_5, x_92, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_91); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +return x_93; } +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_88, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_95 = x_88; +} else { + lean_dec_ref(x_88); + x_95 = lean_box(0); } +x_96 = l_Lean_Meta_Grind_updateLastTag(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, 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, 1); +lean_inc(x_97); +lean_dec(x_96); +lean_inc(x_26); +x_98 = l_Lean_MessageData_ofExpr(x_26); +x_99 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__2; +if (lean_is_scalar(x_95)) { + x_100 = lean_alloc_ctor(7, 2, 0); +} else { + x_100 = x_95; + 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_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__4; +x_102 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +lean_inc(x_5); +x_103 = l_Lean_indentExpr(x_5); +x_104 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +x_105 = l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__6; +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_updateLastTag___spec__2(x_6, x_106, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_97); +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_propagateForallPropUp___lambda__1(x_23, x_1, x_25, x_26, x_18, x_5, x_108, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_109); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_108); +return x_110; } else { -uint8_t x_84; +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_95); lean_dec(x_26); lean_dec(x_25); lean_dec(x_23); @@ -1185,29 +1291,73 @@ lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_84 = !lean_is_exclusive(x_27); -if (x_84 == 0) -{ -return x_27; +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_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; +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_23); +lean_dec(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_1); +x_115 = lean_ctor_get(x_86, 0); +lean_inc(x_115); +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_86); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; } } } else { -uint8_t x_88; +uint8_t x_119; lean_dec(x_18); lean_dec(x_15); lean_dec(x_14); @@ -1222,29 +1372,29 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_88 = !lean_is_exclusive(x_22); -if (x_88 == 0) +x_119 = !lean_is_exclusive(x_22); +if (x_119 == 0) { return x_22; } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_22, 0); -x_90 = lean_ctor_get(x_22, 1); -lean_inc(x_90); -lean_inc(x_89); +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_22, 0); +x_121 = lean_ctor_get(x_22, 1); +lean_inc(x_121); +lean_inc(x_120); lean_dec(x_22); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; +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 { -uint8_t x_92; +uint8_t x_123; lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -1258,23 +1408,23 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_92 = !lean_is_exclusive(x_17); -if (x_92 == 0) +x_123 = !lean_is_exclusive(x_17); +if (x_123 == 0) { return x_17; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_17, 0); -x_94 = lean_ctor_get(x_17, 1); -lean_inc(x_94); -lean_inc(x_93); +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_17, 0); +x_125 = lean_ctor_get(x_17, 1); +lean_inc(x_125); +lean_inc(x_124); lean_dec(x_17); -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; +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; } } } @@ -2261,7 +2411,7 @@ return x_23; else { uint8_t x_24; lean_object* x_25; -x_24 = 5; +x_24 = 6; lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -2401,7 +2551,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_M _start: { uint8_t x_16; lean_object* x_17; -x_16 = 4; +x_16 = 5; lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -2530,7 +2680,7 @@ return x_35; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_addLocalEMatchTheorems___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; lean_object* x_18; lean_object* x_19; +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_inc(x_1); x_13 = l_Lean_Meta_mkOfEqTrueCore(x_1, x_2); x_14 = lean_st_ref_get(x_4, x_12); @@ -2545,17 +2695,13 @@ lean_dec(x_15); x_18 = lean_ctor_get(x_17, 2); lean_inc(x_18); lean_dec(x_17); -lean_inc(x_1); x_19 = l_Lean_Meta_Grind_getGeneration(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_16); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; 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 = 3; +x_22 = 4; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -2684,41 +2830,6 @@ return x_41; } } } -else -{ -uint8_t x_42; -lean_dec(x_18); -lean_dec(x_13); -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_42 = !lean_is_exclusive(x_19); -if (x_42 == 0) -{ -return x_19; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_19, 0); -x_44 = lean_ctor_get(x_19, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_19); -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; -} -} -} } static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_addLocalEMatchTheorems___closed__1() { _start: @@ -2996,7 +3107,7 @@ lean_inc(x_1); x_14 = l_Lean_Meta_Grind_mkEqTrueProof(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_18; lean_object* x_19; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); @@ -3006,9 +3117,7 @@ lean_inc(x_1); x_17 = l_Lean_Meta_mkOfEqTrueCore(x_1, x_15); x_18 = l_Lean_Expr_app___override(x_2, x_17); x_19 = l_Lean_Meta_Grind_getGeneration(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_19) == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_1); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); @@ -3028,7 +3137,6 @@ return x_22; else { uint8_t x_23; -lean_dec(x_18); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -3038,19 +3146,21 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_23 = !lean_is_exclusive(x_19); +lean_dec(x_2); +lean_dec(x_1); +x_23 = !lean_is_exclusive(x_14); if (x_23 == 0) { -return x_19; +return x_14; } else { lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_19, 0); -x_25 = lean_ctor_get(x_19, 1); +x_24 = lean_ctor_get(x_14, 0); +x_25 = lean_ctor_get(x_14, 1); lean_inc(x_25); lean_inc(x_24); -lean_dec(x_19); +lean_dec(x_14); x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_24); lean_ctor_set(x_26, 1, x_25); @@ -3058,40 +3168,6 @@ return x_26; } } } -else -{ -uint8_t x_27; -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_27 = !lean_is_exclusive(x_14); -if (x_27 == 0) -{ -return x_14; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_14, 0); -x_29 = lean_ctor_get(x_14, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_14); -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_propagateForallPropDown___closed__1() { _start: @@ -3760,7 +3836,7 @@ lean_inc(x_1); x_136 = l_Lean_Meta_Grind_mkEqFalseProof(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_128); if (lean_obj_tag(x_136) == 0) { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +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_137 = lean_ctor_get(x_136, 0); lean_inc(x_137); x_138 = lean_ctor_get(x_136, 1); @@ -3772,9 +3848,7 @@ lean_inc(x_12); x_141 = l_Lean_Expr_lam___override(x_11, x_12, x_13, x_14); x_142 = l_Lean_mkApp3(x_140, x_12, x_141, x_137); x_143 = l_Lean_Meta_Grind_getGeneration(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_138); -if (lean_obj_tag(x_143) == 0) -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_1); x_144 = lean_ctor_get(x_143, 0); lean_inc(x_144); x_145 = lean_ctor_get(x_143, 1); @@ -3794,8 +3868,11 @@ return x_146; else { uint8_t x_147; -lean_dec(x_142); lean_dec(x_135); +lean_dec(x_130); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -3804,19 +3881,20 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_147 = !lean_is_exclusive(x_143); +lean_dec(x_1); +x_147 = !lean_is_exclusive(x_136); if (x_147 == 0) { -return x_143; +return x_136; } 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); +x_148 = lean_ctor_get(x_136, 0); +x_149 = lean_ctor_get(x_136, 1); lean_inc(x_149); lean_inc(x_148); -lean_dec(x_143); +lean_dec(x_136); x_150 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_150, 0, x_148); lean_ctor_set(x_150, 1, x_149); @@ -3827,8 +3905,6 @@ return x_150; else { uint8_t x_151; -lean_dec(x_135); -lean_dec(x_130); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -3841,19 +3917,19 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_151 = !lean_is_exclusive(x_136); +x_151 = !lean_is_exclusive(x_126); if (x_151 == 0) { -return x_136; +return x_126; } else { lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_136, 0); -x_153 = lean_ctor_get(x_136, 1); +x_152 = lean_ctor_get(x_126, 0); +x_153 = lean_ctor_get(x_126, 1); lean_inc(x_153); lean_inc(x_152); -lean_dec(x_136); +lean_dec(x_126); x_154 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_154, 0, x_152); lean_ctor_set(x_154, 1, x_153); @@ -3861,6 +3937,8 @@ return x_154; } } } +} +} else { uint8_t x_155; @@ -3876,19 +3954,19 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_155 = !lean_is_exclusive(x_126); +x_155 = !lean_is_exclusive(x_15); if (x_155 == 0) { -return x_126; +return x_15; } else { lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_156 = lean_ctor_get(x_126, 0); -x_157 = lean_ctor_get(x_126, 1); +x_156 = lean_ctor_get(x_15, 0); +x_157 = lean_ctor_get(x_15, 1); lean_inc(x_157); lean_inc(x_156); -lean_dec(x_126); +lean_dec(x_15); x_158 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_158, 0, x_156); lean_ctor_set(x_158, 1, x_157); @@ -3896,46 +3974,9 @@ return x_158; } } } -} -} -else -{ -uint8_t x_159; -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_159 = !lean_is_exclusive(x_15); -if (x_159 == 0) -{ -return x_15; -} -else -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_15, 0); -x_161 = lean_ctor_get(x_15, 1); -lean_inc(x_161); -lean_inc(x_160); -lean_dec(x_15); -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_163; lean_object* x_164; +lean_object* x_159; lean_object* x_160; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -3945,11 +3986,11 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_163 = lean_box(0); -x_164 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_10); -return x_164; +x_159 = lean_box(0); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_10); +return x_160; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Internalize.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Internalize.c index 660cbf88965f..1874008775f4 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 Init.Grind.Lemmas Lean.Meta.LitValues Lean.Meta.Match.MatcherInfo Lean.Meta.Match.MatchEqsExt Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Canon Lean.Meta.Tactic.Grind.Arith.Internalize +// Imports: Init.Grind.Util Init.Grind.Lemmas Lean.Meta.LitValues Lean.Meta.Match.MatcherInfo Lean.Meta.Match.MatchEqsExt Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Canon Lean.Meta.Tactic.Grind.Beta Lean.Meta.Tactic.Grind.Arith.Internalize #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -56,6 +56,7 @@ 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_Lean_Meta_Grind_activateTheorem___closed__1; uint8_t l_Lean_Expr_isApp(lean_object*); +lean_object* l_Lean_Meta_Grind_propagateBetaForNewApp(lean_object*, 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_findEntry_x3f___at_Lean_Meta_Grind_addCongrTable___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate___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*); uint8_t l_Lean_Meta_Grind_isCongruent(lean_object*, lean_object*, lean_object*); @@ -210,7 +211,7 @@ static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_ LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__5___boxed(lean_object**); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_preprocessGroundPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___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_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___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_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate___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_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_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___spec__1(lean_object*, lean_object*); @@ -316,7 +317,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_internalize(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*, lean_object*); size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_isMatcherApp___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate___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_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___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_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___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_Internalize_0__Lean_Meta_Grind_forbiddenSplitTypes___closed__5; 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: @@ -6409,7 +6410,6 @@ lean_inc(x_25); lean_dec(x_24); lean_inc(x_1); x_26 = l_Lean_Meta_Grind_registerParent(x_1, x_22, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_25); -lean_dec(x_22); x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); lean_dec(x_26); @@ -6510,12 +6510,60 @@ lean_object* x_21; lean_object* x_22; x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); +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_22 = l_Lean_Meta_Grind_propagateUp(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = l_Lean_Meta_Grind_propagateBetaForNewApp(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_23); +return x_24; +} +else +{ +uint8_t x_25; +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_25 = !lean_is_exclusive(x_22); +if (x_25 == 0) +{ return x_22; } else { -uint8_t x_23; +lean_object* x_26; lean_object* x_27; lean_object* x_28; +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, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +else +{ +uint8_t x_29; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6525,29 +6573,29 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_23 = !lean_is_exclusive(x_20); -if (x_23 == 0) +x_29 = !lean_is_exclusive(x_20); +if (x_29 == 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); -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_inc(x_24); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_20, 0); +x_31 = lean_ctor_get(x_20, 1); +lean_inc(x_31); +lean_inc(x_30); lean_dec(x_20); -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; +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_27; +uint8_t x_33; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6558,29 +6606,29 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_27 = !lean_is_exclusive(x_16); -if (x_27 == 0) +x_33 = !lean_is_exclusive(x_16); +if (x_33 == 0) { return x_16; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_16, 0); -x_29 = lean_ctor_get(x_16, 1); -lean_inc(x_29); -lean_inc(x_28); +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_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; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } } else { -uint8_t x_31; +uint8_t x_37; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6591,39 +6639,45 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_31 = !lean_is_exclusive(x_14); -if (x_31 == 0) +x_37 = !lean_is_exclusive(x_14); +if (x_37 == 0) { return x_14; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_14, 0); -x_33 = lean_ctor_get(x_14, 1); -lean_inc(x_33); -lean_inc(x_32); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_14, 0); +x_39 = lean_ctor_get(x_14, 1); +lean_inc(x_39); +lean_inc(x_38); lean_dec(x_14); -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_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } } -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___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_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___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_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_15 = lean_array_get_size(x_1); -x_16 = lean_unsigned_to_nat(0u); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_15); -lean_ctor_set(x_18, 2, x_17); -x_19 = lean_box(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_inc(x_1); +x_16 = l_Lean_Meta_Grind_registerParent(x_1, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_array_get_size(x_3); +x_19 = lean_unsigned_to_nat(0u); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_18); +lean_ctor_set(x_21, 2, x_20); +x_22 = lean_box(0); +lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); @@ -6631,21 +6685,21 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -lean_inc(x_6); -x_20 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_internalize___spec__1(x_2, x_3, x_1, x_18, x_18, x_19, x_16, lean_box(0), lean_box(0), x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_18); -if (lean_obj_tag(x_20) == 0) +x_23 = l_Std_Range_forIn_x27_loop___at_Lean_Meta_Grind_internalize___spec__1(x_1, x_4, x_3, x_21, x_21, x_22, x_19, lean_box(0), lean_box(0), x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_17); +lean_dec(x_21); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_apply_10(x_4, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_21); -return x_22; +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_apply_10(x_5, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_24); +return x_25; } else { -uint8_t x_23; +uint8_t x_26; +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -6653,25 +6707,24 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -x_23 = !lean_is_exclusive(x_20); -if (x_23 == 0) +lean_dec(x_5); +x_26 = !lean_is_exclusive(x_23); +if (x_26 == 0) { -return x_20; +return x_23; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -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_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_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_23, 0); +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_23); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } @@ -6744,7 +6797,7 @@ lean_inc(x_4); x_20 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_19); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_36; uint8_t x_37; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_34; uint8_t x_35; x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); @@ -6755,48 +6808,48 @@ x_22 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_in lean_closure_set(x_22, 0, x_1); lean_closure_set(x_22, 1, x_2); lean_closure_set(x_22, 2, x_3); -x_36 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; -x_37 = l_Lean_Expr_isConstOf(x_4, x_36); -if (x_37 == 0) +x_34 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; +x_35 = l_Lean_Expr_isConstOf(x_4, x_34); +if (x_35 == 0) { -lean_object* x_38; +lean_object* x_36; lean_dec(x_3); -x_38 = lean_box(0); -x_23 = x_38; -goto block_35; +x_36 = lean_box(0); +x_23 = x_36; +goto block_33; } else { -lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_39 = lean_array_get_size(x_5); -x_40 = lean_unsigned_to_nat(2u); -x_41 = lean_nat_dec_eq(x_39, x_40); -if (x_41 == 0) +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_array_get_size(x_5); +x_38 = lean_unsigned_to_nat(2u); +x_39 = lean_nat_dec_eq(x_37, x_38); +if (x_39 == 0) { -lean_object* x_42; -lean_dec(x_39); +lean_object* x_40; +lean_dec(x_37); lean_dec(x_3); -x_42 = lean_box(0); -x_23 = x_42; -goto block_35; +x_40 = lean_box(0); +x_23 = x_40; +goto block_33; } else { -lean_object* x_43; uint8_t x_44; lean_object* x_45; +lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_dec(x_22); lean_dec(x_4); -x_43 = lean_unsigned_to_nat(0u); -x_44 = lean_nat_dec_lt(x_43, x_39); -lean_dec(x_39); +x_41 = lean_unsigned_to_nat(0u); +x_42 = lean_nat_dec_lt(x_41, x_37); +lean_dec(x_37); lean_inc(x_1); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_1); -if (x_44 == 0) +x_43 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_43, 0, x_1); +if (x_42 == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_dec(x_5); -x_46 = l_Lean_instInhabitedExpr; -x_47 = l_outOfBounds___rarg(x_46); +x_44 = l_Lean_instInhabitedExpr; +x_45 = l_outOfBounds___rarg(x_44); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -6806,30 +6859,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_47); -x_48 = l_Lean_Meta_Grind_internalize(x_47, x_2, x_45, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_21); -if (lean_obj_tag(x_48) == 0) +lean_inc(x_45); +x_46 = l_Lean_Meta_Grind_internalize(x_45, x_2, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_21); +if (lean_obj_tag(x_46) == 0) { -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_48, 1); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +lean_inc(x_1); +x_48 = l_Lean_Meta_Grind_registerParent(x_1, x_45, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_47); +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); -lean_inc(x_1); -x_50 = l_Lean_Meta_Grind_registerParent(x_1, x_47, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_49); -lean_dec(x_47); -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_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_51, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_52); -lean_dec(x_51); -return x_53; +x_51 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_49, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_50); +lean_dec(x_49); +return x_51; } else { -uint8_t x_54; -lean_dec(x_47); +uint8_t x_52; +lean_dec(x_45); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -6841,30 +6893,30 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_54 = !lean_is_exclusive(x_48); -if (x_54 == 0) +x_52 = !lean_is_exclusive(x_46); +if (x_52 == 0) { -return x_48; +return x_46; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_48, 0); -x_56 = lean_ctor_get(x_48, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_48); -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; +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_46, 0); +x_54 = lean_ctor_get(x_46, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_46); +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_58; lean_object* x_59; -x_58 = lean_array_fget(x_5, x_43); +lean_object* x_56; lean_object* x_57; +x_56 = lean_array_fget(x_5, x_41); lean_dec(x_5); lean_inc(x_14); lean_inc(x_13); @@ -6875,30 +6927,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_58); -x_59 = l_Lean_Meta_Grind_internalize(x_58, x_2, x_45, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_21); -if (lean_obj_tag(x_59) == 0) +lean_inc(x_56); +x_57 = l_Lean_Meta_Grind_internalize(x_56, x_2, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_21); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_60 = lean_ctor_get(x_59, 1); +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(x_57); +lean_inc(x_1); +x_59 = l_Lean_Meta_Grind_registerParent(x_1, x_56, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_58); +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); -lean_inc(x_1); -x_61 = l_Lean_Meta_Grind_registerParent(x_1, x_58, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_60); -lean_dec(x_58); -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 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_62, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_63); -lean_dec(x_62); -return x_64; +x_62 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_60, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_61); +lean_dec(x_60); +return x_62; } else { -uint8_t x_65; -lean_dec(x_58); +uint8_t x_63; +lean_dec(x_56); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -6910,29 +6961,29 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_65 = !lean_is_exclusive(x_59); -if (x_65 == 0) +x_63 = !lean_is_exclusive(x_57); +if (x_63 == 0) { -return x_59; +return x_57; } else { -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_59, 0); -x_67 = lean_ctor_get(x_59, 1); -lean_inc(x_67); -lean_inc(x_66); -lean_dec(x_59); -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; +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_57, 0); +x_65 = lean_ctor_get(x_57, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_57); +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; } } } } } -block_35: +block_33: { lean_object* x_24; lean_object* x_25; lean_dec(x_23); @@ -6952,26 +7003,20 @@ lean_inc(x_4); x_25 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_24, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_21); 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; -x_26 = lean_ctor_get(x_25, 1); +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_1); -x_27 = l_Lean_Meta_Grind_registerParent(x_1, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26); -lean_dec(x_4); -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_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_5, x_1, x_2, x_22, x_28, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_29); -lean_dec(x_28); +x_28 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_1, x_4, x_5, x_2, x_22, x_26, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_27); +lean_dec(x_26); lean_dec(x_5); -return x_30; +return x_28; } else { -uint8_t x_31; +uint8_t x_29; lean_dec(x_22); lean_dec(x_14); lean_dec(x_13); @@ -6985,30 +7030,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_31 = !lean_is_exclusive(x_25); -if (x_31 == 0) +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) { return x_25; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_25, 0); -x_33 = lean_ctor_get(x_25, 1); -lean_inc(x_33); -lean_inc(x_32); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_25, 0); +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_inc(x_30); lean_dec(x_25); -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_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_69; +uint8_t x_67; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7022,29 +7067,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_69 = !lean_is_exclusive(x_20); -if (x_69 == 0) +x_67 = !lean_is_exclusive(x_20); +if (x_67 == 0) { return x_20; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_20, 0); -x_71 = lean_ctor_get(x_20, 1); -lean_inc(x_71); -lean_inc(x_70); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_20, 0); +x_69 = lean_ctor_get(x_20, 1); +lean_inc(x_69); +lean_inc(x_68); lean_dec(x_20); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -return x_72; +x_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 { -uint8_t x_73; +uint8_t x_71; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7058,29 +7103,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_73 = !lean_is_exclusive(x_18); -if (x_73 == 0) +x_71 = !lean_is_exclusive(x_18); +if (x_71 == 0) { return x_18; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_18, 0); -x_75 = lean_ctor_get(x_18, 1); -lean_inc(x_75); -lean_inc(x_74); +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_18, 0); +x_73 = lean_ctor_get(x_18, 1); +lean_inc(x_73); +lean_inc(x_72); lean_dec(x_18); -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; +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; } } } else { -uint8_t x_77; +uint8_t x_75; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7094,42 +7139,42 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_77 = !lean_is_exclusive(x_16); -if (x_77 == 0) +x_75 = !lean_is_exclusive(x_16); +if (x_75 == 0) { return x_16; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_16, 0); -x_79 = lean_ctor_get(x_16, 1); -lean_inc(x_79); -lean_inc(x_78); +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_16, 0); +x_77 = lean_ctor_get(x_16, 1); +lean_inc(x_77); +lean_inc(x_76); lean_dec(x_16); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; } } } case 1: { -lean_object* x_81; +lean_object* x_79; lean_dec(x_6); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); -x_81 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_81) == 0) +x_79 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_79) == 0) { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -lean_dec(x_81); +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_79, 1); +lean_inc(x_80); +lean_dec(x_79); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -7139,13 +7184,13 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_83 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_82); -if (lean_obj_tag(x_83) == 0) +x_81 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_80); +if (lean_obj_tag(x_81) == 0) { -lean_object* x_84; lean_object* x_85; -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -lean_dec(x_83); +lean_object* x_82; lean_object* x_83; +x_82 = lean_ctor_get(x_81, 1); +lean_inc(x_82); +lean_dec(x_81); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -7156,62 +7201,62 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_85 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_84); -if (lean_obj_tag(x_85) == 0) +x_83 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_82); +if (lean_obj_tag(x_83) == 0) { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_101; uint8_t x_102; -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -lean_dec(x_85); +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_97; uint8_t x_98; +x_84 = lean_ctor_get(x_83, 1); +lean_inc(x_84); +lean_dec(x_83); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_87 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); -lean_closure_set(x_87, 0, x_1); -lean_closure_set(x_87, 1, x_2); -lean_closure_set(x_87, 2, x_3); -x_101 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; -x_102 = l_Lean_Expr_isConstOf(x_4, x_101); -if (x_102 == 0) +x_85 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); +lean_closure_set(x_85, 0, x_1); +lean_closure_set(x_85, 1, x_2); +lean_closure_set(x_85, 2, x_3); +x_97 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; +x_98 = l_Lean_Expr_isConstOf(x_4, x_97); +if (x_98 == 0) { -lean_object* x_103; +lean_object* x_99; lean_dec(x_3); -x_103 = lean_box(0); -x_88 = x_103; -goto block_100; +x_99 = lean_box(0); +x_86 = x_99; +goto block_96; } else { -lean_object* x_104; lean_object* x_105; uint8_t x_106; -x_104 = lean_array_get_size(x_5); -x_105 = lean_unsigned_to_nat(2u); -x_106 = lean_nat_dec_eq(x_104, x_105); -if (x_106 == 0) +lean_object* x_100; lean_object* x_101; uint8_t x_102; +x_100 = lean_array_get_size(x_5); +x_101 = lean_unsigned_to_nat(2u); +x_102 = lean_nat_dec_eq(x_100, x_101); +if (x_102 == 0) { -lean_object* x_107; -lean_dec(x_104); +lean_object* x_103; +lean_dec(x_100); lean_dec(x_3); -x_107 = lean_box(0); -x_88 = x_107; -goto block_100; +x_103 = lean_box(0); +x_86 = x_103; +goto block_96; } else { -lean_object* x_108; uint8_t x_109; lean_object* x_110; -lean_dec(x_87); +lean_object* x_104; uint8_t x_105; lean_object* x_106; +lean_dec(x_85); lean_dec(x_4); -x_108 = lean_unsigned_to_nat(0u); -x_109 = lean_nat_dec_lt(x_108, x_104); -lean_dec(x_104); +x_104 = lean_unsigned_to_nat(0u); +x_105 = lean_nat_dec_lt(x_104, x_100); +lean_dec(x_100); lean_inc(x_1); -x_110 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_110, 0, x_1); -if (x_109 == 0) +x_106 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_106, 0, x_1); +if (x_105 == 0) { -lean_object* x_111; lean_object* x_112; lean_object* x_113; +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_dec(x_5); -x_111 = l_Lean_instInhabitedExpr; -x_112 = l_outOfBounds___rarg(x_111); +x_107 = l_Lean_instInhabitedExpr; +x_108 = l_outOfBounds___rarg(x_107); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -7221,30 +7266,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_112); -x_113 = l_Lean_Meta_Grind_internalize(x_112, x_2, x_110, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_86); -if (lean_obj_tag(x_113) == 0) +lean_inc(x_108); +x_109 = l_Lean_Meta_Grind_internalize(x_108, x_2, x_106, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_84); +if (lean_obj_tag(x_109) == 0) { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_114 = lean_ctor_get(x_113, 1); -lean_inc(x_114); -lean_dec(x_113); +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_109, 1); +lean_inc(x_110); +lean_dec(x_109); lean_inc(x_1); -x_115 = l_Lean_Meta_Grind_registerParent(x_1, x_112, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_114); +x_111 = l_Lean_Meta_Grind_registerParent(x_1, x_108, x_7, x_8, x_9, x_10, 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_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_114 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_112, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_113); lean_dec(x_112); -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 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_116, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_117); -lean_dec(x_116); -return x_118; +return x_114; } else { -uint8_t x_119; -lean_dec(x_112); +uint8_t x_115; +lean_dec(x_108); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7256,30 +7300,30 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_119 = !lean_is_exclusive(x_113); -if (x_119 == 0) +x_115 = !lean_is_exclusive(x_109); +if (x_115 == 0) { -return x_113; +return x_109; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_113, 0); -x_121 = lean_ctor_get(x_113, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_113); -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_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_109, 0); +x_117 = lean_ctor_get(x_109, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_109); +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; } } } else { -lean_object* x_123; lean_object* x_124; -x_123 = lean_array_fget(x_5, x_108); +lean_object* x_119; lean_object* x_120; +x_119 = lean_array_fget(x_5, x_104); lean_dec(x_5); lean_inc(x_14); lean_inc(x_13); @@ -7290,30 +7334,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_123); -x_124 = l_Lean_Meta_Grind_internalize(x_123, x_2, x_110, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_86); -if (lean_obj_tag(x_124) == 0) +lean_inc(x_119); +x_120 = l_Lean_Meta_Grind_internalize(x_119, x_2, x_106, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_84); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_125 = lean_ctor_get(x_124, 1); -lean_inc(x_125); -lean_dec(x_124); +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_121 = lean_ctor_get(x_120, 1); +lean_inc(x_121); +lean_dec(x_120); lean_inc(x_1); -x_126 = l_Lean_Meta_Grind_registerParent(x_1, x_123, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_125); +x_122 = l_Lean_Meta_Grind_registerParent(x_1, x_119, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_121); +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); +x_125 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_123, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_124); lean_dec(x_123); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -x_129 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_127, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_128); -lean_dec(x_127); -return x_129; +return x_125; } else { -uint8_t x_130; -lean_dec(x_123); +uint8_t x_126; +lean_dec(x_119); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7325,35 +7368,35 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_130 = !lean_is_exclusive(x_124); -if (x_130 == 0) +x_126 = !lean_is_exclusive(x_120); +if (x_126 == 0) { -return x_124; +return x_120; } else { -lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_131 = lean_ctor_get(x_124, 0); -x_132 = lean_ctor_get(x_124, 1); -lean_inc(x_132); -lean_inc(x_131); -lean_dec(x_124); -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_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_120, 0); +x_128 = lean_ctor_get(x_120, 1); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_120); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +return x_129; } } } } } -block_100: +block_96: { -lean_object* x_89; lean_object* x_90; -lean_dec(x_88); +lean_object* x_87; lean_object* x_88; +lean_dec(x_86); lean_inc(x_1); -x_89 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_89, 0, x_1); +x_87 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_87, 0, x_1); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -7364,30 +7407,60 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_90 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_89, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_86); -if (lean_obj_tag(x_90) == 0) +x_88 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_87, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_84); +if (lean_obj_tag(x_88) == 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_inc(x_1); -x_92 = l_Lean_Meta_Grind_registerParent(x_1, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_91); +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); +x_91 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_1, x_4, x_5, x_2, x_85, x_89, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_90); +lean_dec(x_89); +lean_dec(x_5); +return x_91; +} +else +{ +uint8_t x_92; +lean_dec(x_85); +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_4); -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_92, 1); +lean_dec(x_2); +lean_dec(x_1); +x_92 = !lean_is_exclusive(x_88); +if (x_92 == 0) +{ +return x_88; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_88, 0); +x_94 = lean_ctor_get(x_88, 1); lean_inc(x_94); -lean_dec(x_92); -x_95 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_5, x_1, x_2, x_87, x_93, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_94); -lean_dec(x_93); -lean_dec(x_5); +lean_inc(x_93); +lean_dec(x_88); +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_87); +uint8_t x_130; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7398,26 +7471,26 @@ 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_96 = !lean_is_exclusive(x_90); -if (x_96 == 0) +x_130 = !lean_is_exclusive(x_83); +if (x_130 == 0) { -return x_90; +return x_83; } 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; -} +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_ctor_get(x_83, 0); +x_132 = lean_ctor_get(x_83, 1); +lean_inc(x_132); +lean_inc(x_131); +lean_dec(x_83); +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; } } } @@ -7437,19 +7510,19 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_134 = !lean_is_exclusive(x_85); +x_134 = !lean_is_exclusive(x_81); if (x_134 == 0) { -return x_85; +return x_81; } else { lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_135 = lean_ctor_get(x_85, 0); -x_136 = lean_ctor_get(x_85, 1); +x_135 = lean_ctor_get(x_81, 0); +x_136 = lean_ctor_get(x_81, 1); lean_inc(x_136); lean_inc(x_135); -lean_dec(x_85); +lean_dec(x_81); x_137 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_137, 0, x_135); lean_ctor_set(x_137, 1, x_136); @@ -7473,19 +7546,19 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_138 = !lean_is_exclusive(x_83); +x_138 = !lean_is_exclusive(x_79); if (x_138 == 0) { -return x_83; +return x_79; } else { lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_139 = lean_ctor_get(x_83, 0); -x_140 = lean_ctor_get(x_83, 1); +x_139 = lean_ctor_get(x_79, 0); +x_140 = lean_ctor_get(x_79, 1); lean_inc(x_140); lean_inc(x_139); -lean_dec(x_83); +lean_dec(x_79); x_141 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_141, 0, x_139); lean_ctor_set(x_141, 1, x_140); @@ -7493,58 +7566,22 @@ return x_141; } } } -else -{ -uint8_t x_142; -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_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_142 = !lean_is_exclusive(x_81); -if (x_142 == 0) -{ -return x_81; -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; -x_143 = lean_ctor_get(x_81, 0); -x_144 = lean_ctor_get(x_81, 1); -lean_inc(x_144); -lean_inc(x_143); -lean_dec(x_81); -x_145 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_145, 0, x_143); -lean_ctor_set(x_145, 1, x_144); -return x_145; -} -} -} case 2: { -lean_object* x_146; +lean_object* x_142; lean_dec(x_6); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); -x_146 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_146) == 0) +x_142 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_142) == 0) { -lean_object* x_147; lean_object* x_148; -x_147 = lean_ctor_get(x_146, 1); -lean_inc(x_147); -lean_dec(x_146); +lean_object* x_143; lean_object* x_144; +x_143 = lean_ctor_get(x_142, 1); +lean_inc(x_143); +lean_dec(x_142); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -7554,13 +7591,13 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_148 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_147); -if (lean_obj_tag(x_148) == 0) +x_144 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_143); +if (lean_obj_tag(x_144) == 0) { -lean_object* x_149; lean_object* x_150; -x_149 = lean_ctor_get(x_148, 1); -lean_inc(x_149); -lean_dec(x_148); +lean_object* x_145; lean_object* x_146; +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +lean_dec(x_144); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -7571,62 +7608,62 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_150 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_149); -if (lean_obj_tag(x_150) == 0) +x_146 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_145); +if (lean_obj_tag(x_146) == 0) { -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_166; uint8_t x_167; -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -lean_dec(x_150); +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_160; uint8_t x_161; +x_147 = lean_ctor_get(x_146, 1); +lean_inc(x_147); +lean_dec(x_146); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_152 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); -lean_closure_set(x_152, 0, x_1); -lean_closure_set(x_152, 1, x_2); -lean_closure_set(x_152, 2, x_3); -x_166 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; -x_167 = l_Lean_Expr_isConstOf(x_4, x_166); -if (x_167 == 0) +x_148 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); +lean_closure_set(x_148, 0, x_1); +lean_closure_set(x_148, 1, x_2); +lean_closure_set(x_148, 2, x_3); +x_160 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; +x_161 = l_Lean_Expr_isConstOf(x_4, x_160); +if (x_161 == 0) { -lean_object* x_168; +lean_object* x_162; lean_dec(x_3); -x_168 = lean_box(0); -x_153 = x_168; -goto block_165; +x_162 = lean_box(0); +x_149 = x_162; +goto block_159; } else { -lean_object* x_169; lean_object* x_170; uint8_t x_171; -x_169 = lean_array_get_size(x_5); -x_170 = lean_unsigned_to_nat(2u); -x_171 = lean_nat_dec_eq(x_169, x_170); -if (x_171 == 0) +lean_object* x_163; lean_object* x_164; uint8_t x_165; +x_163 = lean_array_get_size(x_5); +x_164 = lean_unsigned_to_nat(2u); +x_165 = lean_nat_dec_eq(x_163, x_164); +if (x_165 == 0) { -lean_object* x_172; -lean_dec(x_169); +lean_object* x_166; +lean_dec(x_163); lean_dec(x_3); -x_172 = lean_box(0); -x_153 = x_172; -goto block_165; +x_166 = lean_box(0); +x_149 = x_166; +goto block_159; } else { -lean_object* x_173; uint8_t x_174; lean_object* x_175; -lean_dec(x_152); +lean_object* x_167; uint8_t x_168; lean_object* x_169; +lean_dec(x_148); lean_dec(x_4); -x_173 = lean_unsigned_to_nat(0u); -x_174 = lean_nat_dec_lt(x_173, x_169); -lean_dec(x_169); +x_167 = lean_unsigned_to_nat(0u); +x_168 = lean_nat_dec_lt(x_167, x_163); +lean_dec(x_163); lean_inc(x_1); -x_175 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_175, 0, x_1); -if (x_174 == 0) +x_169 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_169, 0, x_1); +if (x_168 == 0) { -lean_object* x_176; lean_object* x_177; lean_object* x_178; +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_dec(x_5); -x_176 = l_Lean_instInhabitedExpr; -x_177 = l_outOfBounds___rarg(x_176); +x_170 = l_Lean_instInhabitedExpr; +x_171 = l_outOfBounds___rarg(x_170); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -7636,30 +7673,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_177); -x_178 = l_Lean_Meta_Grind_internalize(x_177, x_2, x_175, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_151); -if (lean_obj_tag(x_178) == 0) +lean_inc(x_171); +x_172 = l_Lean_Meta_Grind_internalize(x_171, x_2, x_169, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_147); +if (lean_obj_tag(x_172) == 0) { -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_179 = lean_ctor_get(x_178, 1); -lean_inc(x_179); -lean_dec(x_178); +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_173 = lean_ctor_get(x_172, 1); +lean_inc(x_173); +lean_dec(x_172); lean_inc(x_1); -x_180 = l_Lean_Meta_Grind_registerParent(x_1, x_177, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_179); -lean_dec(x_177); -x_181 = lean_ctor_get(x_180, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_180, 1); -lean_inc(x_182); -lean_dec(x_180); -x_183 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_181, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_182); -lean_dec(x_181); -return x_183; +x_174 = l_Lean_Meta_Grind_registerParent(x_1, x_171, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, 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); +lean_dec(x_174); +x_177 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_175, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_176); +lean_dec(x_175); +return x_177; } else { -uint8_t x_184; -lean_dec(x_177); +uint8_t x_178; +lean_dec(x_171); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7671,30 +7707,30 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_184 = !lean_is_exclusive(x_178); -if (x_184 == 0) +x_178 = !lean_is_exclusive(x_172); +if (x_178 == 0) { -return x_178; +return x_172; } else { -lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_185 = lean_ctor_get(x_178, 0); -x_186 = lean_ctor_get(x_178, 1); -lean_inc(x_186); -lean_inc(x_185); -lean_dec(x_178); -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_185); -lean_ctor_set(x_187, 1, x_186); -return x_187; +lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_179 = lean_ctor_get(x_172, 0); +x_180 = lean_ctor_get(x_172, 1); +lean_inc(x_180); +lean_inc(x_179); +lean_dec(x_172); +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; } } } else { -lean_object* x_188; lean_object* x_189; -x_188 = lean_array_fget(x_5, x_173); +lean_object* x_182; lean_object* x_183; +x_182 = lean_array_fget(x_5, x_167); lean_dec(x_5); lean_inc(x_14); lean_inc(x_13); @@ -7705,30 +7741,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_188); -x_189 = l_Lean_Meta_Grind_internalize(x_188, x_2, x_175, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_151); -if (lean_obj_tag(x_189) == 0) +lean_inc(x_182); +x_183 = l_Lean_Meta_Grind_internalize(x_182, x_2, x_169, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_147); +if (lean_obj_tag(x_183) == 0) { -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_190 = lean_ctor_get(x_189, 1); -lean_inc(x_190); -lean_dec(x_189); +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_184 = lean_ctor_get(x_183, 1); +lean_inc(x_184); +lean_dec(x_183); lean_inc(x_1); -x_191 = l_Lean_Meta_Grind_registerParent(x_1, x_188, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_190); -lean_dec(x_188); -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_192, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_193); -lean_dec(x_192); -return x_194; +x_185 = l_Lean_Meta_Grind_registerParent(x_1, x_182, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_184); +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_188 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_186, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_187); +lean_dec(x_186); +return x_188; } else { -uint8_t x_195; -lean_dec(x_188); +uint8_t x_189; +lean_dec(x_182); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7740,35 +7775,35 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_195 = !lean_is_exclusive(x_189); -if (x_195 == 0) +x_189 = !lean_is_exclusive(x_183); +if (x_189 == 0) { -return x_189; +return x_183; } else { -lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_196 = lean_ctor_get(x_189, 0); -x_197 = lean_ctor_get(x_189, 1); -lean_inc(x_197); -lean_inc(x_196); -lean_dec(x_189); -x_198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_198, 0, x_196); -lean_ctor_set(x_198, 1, x_197); -return x_198; +lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_190 = lean_ctor_get(x_183, 0); +x_191 = lean_ctor_get(x_183, 1); +lean_inc(x_191); +lean_inc(x_190); +lean_dec(x_183); +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_190); +lean_ctor_set(x_192, 1, x_191); +return x_192; } } } } } -block_165: +block_159: { -lean_object* x_154; lean_object* x_155; -lean_dec(x_153); +lean_object* x_150; lean_object* x_151; +lean_dec(x_149); lean_inc(x_1); -x_154 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_154, 0, x_1); +x_150 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_150, 0, x_1); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -7779,30 +7814,24 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_155 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_154, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_151); -if (lean_obj_tag(x_155) == 0) +x_151 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_150, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_147); +if (lean_obj_tag(x_151) == 0) { -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_156 = lean_ctor_get(x_155, 1); -lean_inc(x_156); -lean_dec(x_155); -lean_inc(x_1); -x_157 = l_Lean_Meta_Grind_registerParent(x_1, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_156); -lean_dec(x_4); -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_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_5, x_1, x_2, x_152, x_158, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_159); -lean_dec(x_158); +lean_object* x_152; lean_object* x_153; lean_object* x_154; +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__2___lambda__2(x_1, x_4, x_5, x_2, x_148, x_152, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_153); +lean_dec(x_152); lean_dec(x_5); -return x_160; +return x_154; } else { -uint8_t x_161; -lean_dec(x_152); +uint8_t x_155; +lean_dec(x_148); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7815,30 +7844,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_161 = !lean_is_exclusive(x_155); -if (x_161 == 0) +x_155 = !lean_is_exclusive(x_151); +if (x_155 == 0) { -return x_155; +return x_151; } else { -lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_162 = lean_ctor_get(x_155, 0); -x_163 = lean_ctor_get(x_155, 1); -lean_inc(x_163); -lean_inc(x_162); -lean_dec(x_155); -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_162); -lean_ctor_set(x_164, 1, x_163); -return x_164; +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_151, 0); +x_157 = lean_ctor_get(x_151, 1); +lean_inc(x_157); +lean_inc(x_156); +lean_dec(x_151); +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_199; +uint8_t x_193; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7852,29 +7881,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_199 = !lean_is_exclusive(x_150); -if (x_199 == 0) +x_193 = !lean_is_exclusive(x_146); +if (x_193 == 0) { -return x_150; +return x_146; } else { -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_150, 0); -x_201 = lean_ctor_get(x_150, 1); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_150); -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -return x_202; +lean_object* x_194; lean_object* x_195; lean_object* x_196; +x_194 = lean_ctor_get(x_146, 0); +x_195 = lean_ctor_get(x_146, 1); +lean_inc(x_195); +lean_inc(x_194); +lean_dec(x_146); +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; } } } else { -uint8_t x_203; +uint8_t x_197; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7888,29 +7917,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_203 = !lean_is_exclusive(x_148); -if (x_203 == 0) +x_197 = !lean_is_exclusive(x_144); +if (x_197 == 0) { -return x_148; +return x_144; } else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_204 = lean_ctor_get(x_148, 0); -x_205 = lean_ctor_get(x_148, 1); -lean_inc(x_205); -lean_inc(x_204); -lean_dec(x_148); -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; +lean_object* x_198; lean_object* x_199; lean_object* x_200; +x_198 = lean_ctor_get(x_144, 0); +x_199 = lean_ctor_get(x_144, 1); +lean_inc(x_199); +lean_inc(x_198); +lean_dec(x_144); +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; } } } else { -uint8_t x_207; +uint8_t x_201; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -7924,42 +7953,42 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_207 = !lean_is_exclusive(x_146); -if (x_207 == 0) +x_201 = !lean_is_exclusive(x_142); +if (x_201 == 0) { -return x_146; +return x_142; } else { -lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_208 = lean_ctor_get(x_146, 0); -x_209 = lean_ctor_get(x_146, 1); -lean_inc(x_209); -lean_inc(x_208); -lean_dec(x_146); -x_210 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_210, 0, x_208); -lean_ctor_set(x_210, 1, x_209); -return x_210; +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = lean_ctor_get(x_142, 0); +x_203 = lean_ctor_get(x_142, 1); +lean_inc(x_203); +lean_inc(x_202); +lean_dec(x_142); +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; } } } case 3: { -lean_object* x_211; +lean_object* x_205; lean_dec(x_6); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); -x_211 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_211) == 0) +x_205 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_205) == 0) { -lean_object* x_212; lean_object* x_213; -x_212 = lean_ctor_get(x_211, 1); -lean_inc(x_212); -lean_dec(x_211); +lean_object* x_206; lean_object* x_207; +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +lean_dec(x_205); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -7969,13 +7998,13 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_213 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_212); -if (lean_obj_tag(x_213) == 0) +x_207 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_206); +if (lean_obj_tag(x_207) == 0) { -lean_object* x_214; lean_object* x_215; -x_214 = lean_ctor_get(x_213, 1); -lean_inc(x_214); -lean_dec(x_213); +lean_object* x_208; lean_object* x_209; +x_208 = lean_ctor_get(x_207, 1); +lean_inc(x_208); +lean_dec(x_207); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -7986,62 +8015,62 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_215 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_214); -if (lean_obj_tag(x_215) == 0) +x_209 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_208); +if (lean_obj_tag(x_209) == 0) { -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_231; uint8_t x_232; -x_216 = lean_ctor_get(x_215, 1); -lean_inc(x_216); -lean_dec(x_215); +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_223; uint8_t x_224; +x_210 = lean_ctor_get(x_209, 1); +lean_inc(x_210); +lean_dec(x_209); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_217 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); -lean_closure_set(x_217, 0, x_1); -lean_closure_set(x_217, 1, x_2); -lean_closure_set(x_217, 2, x_3); -x_231 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; -x_232 = l_Lean_Expr_isConstOf(x_4, x_231); -if (x_232 == 0) +x_211 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); +lean_closure_set(x_211, 0, x_1); +lean_closure_set(x_211, 1, x_2); +lean_closure_set(x_211, 2, x_3); +x_223 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; +x_224 = l_Lean_Expr_isConstOf(x_4, x_223); +if (x_224 == 0) { -lean_object* x_233; +lean_object* x_225; lean_dec(x_3); -x_233 = lean_box(0); -x_218 = x_233; -goto block_230; +x_225 = lean_box(0); +x_212 = x_225; +goto block_222; } else { -lean_object* x_234; lean_object* x_235; uint8_t x_236; -x_234 = lean_array_get_size(x_5); -x_235 = lean_unsigned_to_nat(2u); -x_236 = lean_nat_dec_eq(x_234, x_235); -if (x_236 == 0) +lean_object* x_226; lean_object* x_227; uint8_t x_228; +x_226 = lean_array_get_size(x_5); +x_227 = lean_unsigned_to_nat(2u); +x_228 = lean_nat_dec_eq(x_226, x_227); +if (x_228 == 0) { -lean_object* x_237; -lean_dec(x_234); +lean_object* x_229; +lean_dec(x_226); lean_dec(x_3); -x_237 = lean_box(0); -x_218 = x_237; -goto block_230; +x_229 = lean_box(0); +x_212 = x_229; +goto block_222; } else { -lean_object* x_238; uint8_t x_239; lean_object* x_240; -lean_dec(x_217); +lean_object* x_230; uint8_t x_231; lean_object* x_232; +lean_dec(x_211); lean_dec(x_4); -x_238 = lean_unsigned_to_nat(0u); -x_239 = lean_nat_dec_lt(x_238, x_234); -lean_dec(x_234); +x_230 = lean_unsigned_to_nat(0u); +x_231 = lean_nat_dec_lt(x_230, x_226); +lean_dec(x_226); lean_inc(x_1); -x_240 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_240, 0, x_1); -if (x_239 == 0) +x_232 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_232, 0, x_1); +if (x_231 == 0) { -lean_object* x_241; lean_object* x_242; lean_object* x_243; +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_dec(x_5); -x_241 = l_Lean_instInhabitedExpr; -x_242 = l_outOfBounds___rarg(x_241); +x_233 = l_Lean_instInhabitedExpr; +x_234 = l_outOfBounds___rarg(x_233); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -8051,30 +8080,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_242); -x_243 = l_Lean_Meta_Grind_internalize(x_242, x_2, x_240, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_216); -if (lean_obj_tag(x_243) == 0) +lean_inc(x_234); +x_235 = l_Lean_Meta_Grind_internalize(x_234, x_2, x_232, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_210); +if (lean_obj_tag(x_235) == 0) { -lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; -x_244 = lean_ctor_get(x_243, 1); -lean_inc(x_244); -lean_dec(x_243); +lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_236 = lean_ctor_get(x_235, 1); +lean_inc(x_236); +lean_dec(x_235); lean_inc(x_1); -x_245 = l_Lean_Meta_Grind_registerParent(x_1, x_242, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_244); -lean_dec(x_242); -x_246 = lean_ctor_get(x_245, 0); -lean_inc(x_246); -x_247 = lean_ctor_get(x_245, 1); -lean_inc(x_247); -lean_dec(x_245); -x_248 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_246, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_247); -lean_dec(x_246); -return x_248; +x_237 = l_Lean_Meta_Grind_registerParent(x_1, x_234, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_236); +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 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_238, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_239); +lean_dec(x_238); +return x_240; } else { -uint8_t x_249; -lean_dec(x_242); +uint8_t x_241; +lean_dec(x_234); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8086,30 +8114,30 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_249 = !lean_is_exclusive(x_243); -if (x_249 == 0) +x_241 = !lean_is_exclusive(x_235); +if (x_241 == 0) { -return x_243; +return x_235; } else { -lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_250 = lean_ctor_get(x_243, 0); -x_251 = lean_ctor_get(x_243, 1); -lean_inc(x_251); -lean_inc(x_250); -lean_dec(x_243); -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; +lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_242 = lean_ctor_get(x_235, 0); +x_243 = lean_ctor_get(x_235, 1); +lean_inc(x_243); +lean_inc(x_242); +lean_dec(x_235); +x_244 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_244, 0, x_242); +lean_ctor_set(x_244, 1, x_243); +return x_244; } } } else { -lean_object* x_253; lean_object* x_254; -x_253 = lean_array_fget(x_5, x_238); +lean_object* x_245; lean_object* x_246; +x_245 = lean_array_fget(x_5, x_230); lean_dec(x_5); lean_inc(x_14); lean_inc(x_13); @@ -8120,30 +8148,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_253); -x_254 = l_Lean_Meta_Grind_internalize(x_253, x_2, x_240, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_216); -if (lean_obj_tag(x_254) == 0) +lean_inc(x_245); +x_246 = l_Lean_Meta_Grind_internalize(x_245, x_2, x_232, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_210); +if (lean_obj_tag(x_246) == 0) { -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_254, 1); -lean_inc(x_255); -lean_dec(x_254); +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_247 = lean_ctor_get(x_246, 1); +lean_inc(x_247); +lean_dec(x_246); lean_inc(x_1); -x_256 = l_Lean_Meta_Grind_registerParent(x_1, x_253, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_255); -lean_dec(x_253); -x_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_256, 1); -lean_inc(x_258); -lean_dec(x_256); -x_259 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_257, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_258); -lean_dec(x_257); -return x_259; +x_248 = l_Lean_Meta_Grind_registerParent(x_1, x_245, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_247); +x_249 = lean_ctor_get(x_248, 0); +lean_inc(x_249); +x_250 = lean_ctor_get(x_248, 1); +lean_inc(x_250); +lean_dec(x_248); +x_251 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_249, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_250); +lean_dec(x_249); +return x_251; } else { -uint8_t x_260; -lean_dec(x_253); +uint8_t x_252; +lean_dec(x_245); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8155,35 +8182,35 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_260 = !lean_is_exclusive(x_254); -if (x_260 == 0) +x_252 = !lean_is_exclusive(x_246); +if (x_252 == 0) { -return x_254; +return x_246; } else { -lean_object* x_261; lean_object* x_262; lean_object* x_263; -x_261 = lean_ctor_get(x_254, 0); -x_262 = lean_ctor_get(x_254, 1); -lean_inc(x_262); -lean_inc(x_261); -lean_dec(x_254); -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; +lean_object* x_253; lean_object* x_254; lean_object* x_255; +x_253 = lean_ctor_get(x_246, 0); +x_254 = lean_ctor_get(x_246, 1); +lean_inc(x_254); +lean_inc(x_253); +lean_dec(x_246); +x_255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_255, 0, x_253); +lean_ctor_set(x_255, 1, x_254); +return x_255; } } } } } -block_230: +block_222: { -lean_object* x_219; lean_object* x_220; -lean_dec(x_218); +lean_object* x_213; lean_object* x_214; +lean_dec(x_212); lean_inc(x_1); -x_219 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_219, 0, x_1); +x_213 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_213, 0, x_1); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -8194,30 +8221,24 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_220 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_219, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_216); -if (lean_obj_tag(x_220) == 0) +x_214 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_213, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_210); +if (lean_obj_tag(x_214) == 0) { -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_221 = lean_ctor_get(x_220, 1); -lean_inc(x_221); -lean_dec(x_220); -lean_inc(x_1); -x_222 = l_Lean_Meta_Grind_registerParent(x_1, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_221); -lean_dec(x_4); -x_223 = lean_ctor_get(x_222, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_222, 1); -lean_inc(x_224); -lean_dec(x_222); -x_225 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_5, x_1, x_2, x_217, x_223, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_224); -lean_dec(x_223); +lean_object* x_215; lean_object* x_216; lean_object* x_217; +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 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_1, x_4, x_5, x_2, x_211, x_215, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_216); +lean_dec(x_215); lean_dec(x_5); -return x_225; +return x_217; } else { -uint8_t x_226; -lean_dec(x_217); +uint8_t x_218; +lean_dec(x_211); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8230,30 +8251,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_226 = !lean_is_exclusive(x_220); -if (x_226 == 0) +x_218 = !lean_is_exclusive(x_214); +if (x_218 == 0) { -return x_220; +return x_214; } else { -lean_object* x_227; lean_object* x_228; lean_object* x_229; -x_227 = lean_ctor_get(x_220, 0); -x_228 = lean_ctor_get(x_220, 1); -lean_inc(x_228); -lean_inc(x_227); -lean_dec(x_220); -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; +lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_219 = lean_ctor_get(x_214, 0); +x_220 = lean_ctor_get(x_214, 1); +lean_inc(x_220); +lean_inc(x_219); +lean_dec(x_214); +x_221 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_221, 0, x_219); +lean_ctor_set(x_221, 1, x_220); +return x_221; } } } } else { -uint8_t x_264; +uint8_t x_256; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8267,29 +8288,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_264 = !lean_is_exclusive(x_215); -if (x_264 == 0) +x_256 = !lean_is_exclusive(x_209); +if (x_256 == 0) { -return x_215; +return x_209; } else { -lean_object* x_265; lean_object* x_266; lean_object* x_267; -x_265 = lean_ctor_get(x_215, 0); -x_266 = lean_ctor_get(x_215, 1); -lean_inc(x_266); -lean_inc(x_265); -lean_dec(x_215); -x_267 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_267, 0, x_265); -lean_ctor_set(x_267, 1, x_266); -return x_267; +lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_257 = lean_ctor_get(x_209, 0); +x_258 = lean_ctor_get(x_209, 1); +lean_inc(x_258); +lean_inc(x_257); +lean_dec(x_209); +x_259 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_259, 0, x_257); +lean_ctor_set(x_259, 1, x_258); +return x_259; } } } else { -uint8_t x_268; +uint8_t x_260; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8303,29 +8324,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_268 = !lean_is_exclusive(x_213); -if (x_268 == 0) +x_260 = !lean_is_exclusive(x_207); +if (x_260 == 0) { -return x_213; +return x_207; } else { -lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_269 = lean_ctor_get(x_213, 0); -x_270 = lean_ctor_get(x_213, 1); -lean_inc(x_270); -lean_inc(x_269); -lean_dec(x_213); -x_271 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_271, 0, x_269); -lean_ctor_set(x_271, 1, x_270); -return x_271; +lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_261 = lean_ctor_get(x_207, 0); +x_262 = lean_ctor_get(x_207, 1); +lean_inc(x_262); +lean_inc(x_261); +lean_dec(x_207); +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 { -uint8_t x_272; +uint8_t x_264; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8339,44 +8360,44 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_272 = !lean_is_exclusive(x_211); -if (x_272 == 0) +x_264 = !lean_is_exclusive(x_205); +if (x_264 == 0) { -return x_211; +return x_205; } else { -lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_273 = lean_ctor_get(x_211, 0); -x_274 = lean_ctor_get(x_211, 1); -lean_inc(x_274); -lean_inc(x_273); -lean_dec(x_211); -x_275 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_275, 0, x_273); -lean_ctor_set(x_275, 1, x_274); -return x_275; +lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_265 = lean_ctor_get(x_205, 0); +x_266 = lean_ctor_get(x_205, 1); +lean_inc(x_266); +lean_inc(x_265); +lean_dec(x_205); +x_267 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_267, 0, x_265); +lean_ctor_set(x_267, 1, x_266); +return x_267; } } } case 4: { -lean_object* x_276; lean_object* x_277; +lean_object* x_268; lean_object* x_269; lean_dec(x_6); -x_276 = lean_ctor_get(x_4, 0); -lean_inc(x_276); +x_268 = lean_ctor_get(x_4, 0); +lean_inc(x_268); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); -x_277 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_277) == 0) +x_269 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_269) == 0) { -lean_object* x_278; lean_object* x_279; -x_278 = lean_ctor_get(x_277, 1); -lean_inc(x_278); -lean_dec(x_277); +lean_object* x_270; lean_object* x_271; +x_270 = lean_ctor_get(x_269, 1); +lean_inc(x_270); +lean_dec(x_269); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -8386,13 +8407,13 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_279 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_278); -if (lean_obj_tag(x_279) == 0) +x_271 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_270); +if (lean_obj_tag(x_271) == 0) { -lean_object* x_280; lean_object* x_281; -x_280 = lean_ctor_get(x_279, 1); -lean_inc(x_280); -lean_dec(x_279); +lean_object* x_272; lean_object* x_273; +x_272 = lean_ctor_get(x_271, 1); +lean_inc(x_272); +lean_dec(x_271); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -8403,63 +8424,63 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_281 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_280); -if (lean_obj_tag(x_281) == 0) +x_273 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_272); +if (lean_obj_tag(x_273) == 0) { -lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_294; uint8_t x_295; -x_282 = lean_ctor_get(x_281, 1); -lean_inc(x_282); -lean_dec(x_281); +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_286; uint8_t x_287; +x_274 = lean_ctor_get(x_273, 1); +lean_inc(x_274); +lean_dec(x_273); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_283 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); -lean_closure_set(x_283, 0, x_1); -lean_closure_set(x_283, 1, x_2); -lean_closure_set(x_283, 2, x_3); -x_294 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; -x_295 = l_Lean_Expr_isConstOf(x_4, x_294); -lean_dec(x_4); -if (x_295 == 0) +x_275 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); +lean_closure_set(x_275, 0, x_1); +lean_closure_set(x_275, 1, x_2); +lean_closure_set(x_275, 2, x_3); +x_286 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; +x_287 = l_Lean_Expr_isConstOf(x_4, x_286); +if (x_287 == 0) { -lean_object* x_296; +lean_object* x_288; lean_dec(x_3); -x_296 = lean_box(0); -x_284 = x_296; -goto block_293; +x_288 = lean_box(0); +x_276 = x_288; +goto block_285; } else { -lean_object* x_297; lean_object* x_298; uint8_t x_299; -x_297 = lean_array_get_size(x_5); -x_298 = lean_unsigned_to_nat(2u); -x_299 = lean_nat_dec_eq(x_297, x_298); -if (x_299 == 0) +lean_object* x_289; lean_object* x_290; uint8_t x_291; +x_289 = lean_array_get_size(x_5); +x_290 = lean_unsigned_to_nat(2u); +x_291 = lean_nat_dec_eq(x_289, x_290); +if (x_291 == 0) { -lean_object* x_300; -lean_dec(x_297); +lean_object* x_292; +lean_dec(x_289); lean_dec(x_3); -x_300 = lean_box(0); -x_284 = x_300; -goto block_293; +x_292 = lean_box(0); +x_276 = x_292; +goto block_285; } else { -lean_object* x_301; uint8_t x_302; lean_object* x_303; -lean_dec(x_283); -lean_dec(x_276); -x_301 = lean_unsigned_to_nat(0u); -x_302 = lean_nat_dec_lt(x_301, x_297); -lean_dec(x_297); +lean_object* x_293; uint8_t x_294; lean_object* x_295; +lean_dec(x_275); +lean_dec(x_268); +lean_dec(x_4); +x_293 = lean_unsigned_to_nat(0u); +x_294 = lean_nat_dec_lt(x_293, x_289); +lean_dec(x_289); lean_inc(x_1); -x_303 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_303, 0, x_1); -if (x_302 == 0) +x_295 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_295, 0, x_1); +if (x_294 == 0) { -lean_object* x_304; lean_object* x_305; lean_object* x_306; +lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_dec(x_5); -x_304 = l_Lean_instInhabitedExpr; -x_305 = l_outOfBounds___rarg(x_304); +x_296 = l_Lean_instInhabitedExpr; +x_297 = l_outOfBounds___rarg(x_296); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -8469,30 +8490,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_305); -x_306 = l_Lean_Meta_Grind_internalize(x_305, x_2, x_303, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_282); -if (lean_obj_tag(x_306) == 0) +lean_inc(x_297); +x_298 = l_Lean_Meta_Grind_internalize(x_297, x_2, x_295, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_274); +if (lean_obj_tag(x_298) == 0) { -lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; -x_307 = lean_ctor_get(x_306, 1); -lean_inc(x_307); -lean_dec(x_306); +lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; +x_299 = lean_ctor_get(x_298, 1); +lean_inc(x_299); +lean_dec(x_298); lean_inc(x_1); -x_308 = l_Lean_Meta_Grind_registerParent(x_1, x_305, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_307); -lean_dec(x_305); -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_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_309, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_310); -lean_dec(x_309); -return x_311; +x_300 = l_Lean_Meta_Grind_registerParent(x_1, x_297, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_299); +x_301 = lean_ctor_get(x_300, 0); +lean_inc(x_301); +x_302 = lean_ctor_get(x_300, 1); +lean_inc(x_302); +lean_dec(x_300); +x_303 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_301, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_302); +lean_dec(x_301); +return x_303; } else { -uint8_t x_312; -lean_dec(x_305); +uint8_t x_304; +lean_dec(x_297); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8504,30 +8524,30 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_312 = !lean_is_exclusive(x_306); -if (x_312 == 0) +x_304 = !lean_is_exclusive(x_298); +if (x_304 == 0) { -return x_306; +return x_298; } else { -lean_object* x_313; lean_object* x_314; lean_object* x_315; -x_313 = lean_ctor_get(x_306, 0); -x_314 = lean_ctor_get(x_306, 1); -lean_inc(x_314); -lean_inc(x_313); -lean_dec(x_306); -x_315 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_315, 0, x_313); -lean_ctor_set(x_315, 1, x_314); -return x_315; +lean_object* x_305; lean_object* x_306; lean_object* x_307; +x_305 = lean_ctor_get(x_298, 0); +x_306 = lean_ctor_get(x_298, 1); +lean_inc(x_306); +lean_inc(x_305); +lean_dec(x_298); +x_307 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_307, 0, x_305); +lean_ctor_set(x_307, 1, x_306); +return x_307; } } } else { -lean_object* x_316; lean_object* x_317; -x_316 = lean_array_fget(x_5, x_301); +lean_object* x_308; lean_object* x_309; +x_308 = lean_array_fget(x_5, x_293); lean_dec(x_5); lean_inc(x_14); lean_inc(x_13); @@ -8538,30 +8558,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_316); -x_317 = l_Lean_Meta_Grind_internalize(x_316, x_2, x_303, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_282); -if (lean_obj_tag(x_317) == 0) +lean_inc(x_308); +x_309 = l_Lean_Meta_Grind_internalize(x_308, x_2, x_295, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_274); +if (lean_obj_tag(x_309) == 0) { -lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_318 = lean_ctor_get(x_317, 1); -lean_inc(x_318); -lean_dec(x_317); +lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; +x_310 = lean_ctor_get(x_309, 1); +lean_inc(x_310); +lean_dec(x_309); lean_inc(x_1); -x_319 = l_Lean_Meta_Grind_registerParent(x_1, x_316, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_318); -lean_dec(x_316); -x_320 = lean_ctor_get(x_319, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_319, 1); -lean_inc(x_321); -lean_dec(x_319); -x_322 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_320, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_321); -lean_dec(x_320); -return x_322; +x_311 = l_Lean_Meta_Grind_registerParent(x_1, x_308, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_310); +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_314 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_312, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_313); +lean_dec(x_312); +return x_314; } else { -uint8_t x_323; -lean_dec(x_316); +uint8_t x_315; +lean_dec(x_308); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8573,32 +8592,32 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_323 = !lean_is_exclusive(x_317); -if (x_323 == 0) +x_315 = !lean_is_exclusive(x_309); +if (x_315 == 0) { -return x_317; +return x_309; } else { -lean_object* x_324; lean_object* x_325; lean_object* x_326; -x_324 = lean_ctor_get(x_317, 0); -x_325 = lean_ctor_get(x_317, 1); -lean_inc(x_325); -lean_inc(x_324); -lean_dec(x_317); -x_326 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_326, 0, x_324); -lean_ctor_set(x_326, 1, x_325); -return x_326; +lean_object* x_316; lean_object* x_317; lean_object* x_318; +x_316 = lean_ctor_get(x_309, 0); +x_317 = lean_ctor_get(x_309, 1); +lean_inc(x_317); +lean_inc(x_316); +lean_dec(x_309); +x_318 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_318, 0, x_316); +lean_ctor_set(x_318, 1, x_317); +return x_318; } } } } } -block_293: +block_285: { -lean_object* x_285; -lean_dec(x_284); +lean_object* x_277; +lean_dec(x_276); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -8608,25 +8627,25 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -x_285 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns(x_276, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_282); -lean_dec(x_276); -if (lean_obj_tag(x_285) == 0) +x_277 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns(x_268, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_274); +lean_dec(x_268); +if (lean_obj_tag(x_277) == 0) { -lean_object* x_286; lean_object* x_287; lean_object* x_288; -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_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_5, x_1, x_2, x_283, x_286, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_287); -lean_dec(x_286); +lean_object* x_278; lean_object* x_279; lean_object* x_280; +x_278 = lean_ctor_get(x_277, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_277, 1); +lean_inc(x_279); +lean_dec(x_277); +x_280 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_1, x_4, x_5, x_2, x_275, x_278, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_279); +lean_dec(x_278); lean_dec(x_5); -return x_288; +return x_280; } else { -uint8_t x_289; -lean_dec(x_283); +uint8_t x_281; +lean_dec(x_275); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8636,33 +8655,34 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_289 = !lean_is_exclusive(x_285); -if (x_289 == 0) +x_281 = !lean_is_exclusive(x_277); +if (x_281 == 0) { -return x_285; +return x_277; } else { -lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_290 = lean_ctor_get(x_285, 0); -x_291 = lean_ctor_get(x_285, 1); -lean_inc(x_291); -lean_inc(x_290); -lean_dec(x_285); -x_292 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_292, 0, x_290); -lean_ctor_set(x_292, 1, x_291); -return x_292; +lean_object* x_282; lean_object* x_283; lean_object* x_284; +x_282 = lean_ctor_get(x_277, 0); +x_283 = lean_ctor_get(x_277, 1); +lean_inc(x_283); +lean_inc(x_282); +lean_dec(x_277); +x_284 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_284, 0, x_282); +lean_ctor_set(x_284, 1, x_283); +return x_284; } } } } else { -uint8_t x_327; -lean_dec(x_276); +uint8_t x_319; +lean_dec(x_268); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8676,30 +8696,30 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_327 = !lean_is_exclusive(x_281); -if (x_327 == 0) +x_319 = !lean_is_exclusive(x_273); +if (x_319 == 0) { -return x_281; +return x_273; } else { -lean_object* x_328; lean_object* x_329; lean_object* x_330; -x_328 = lean_ctor_get(x_281, 0); -x_329 = lean_ctor_get(x_281, 1); -lean_inc(x_329); -lean_inc(x_328); -lean_dec(x_281); -x_330 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_330, 0, x_328); -lean_ctor_set(x_330, 1, x_329); -return x_330; +lean_object* x_320; lean_object* x_321; lean_object* x_322; +x_320 = lean_ctor_get(x_273, 0); +x_321 = lean_ctor_get(x_273, 1); +lean_inc(x_321); +lean_inc(x_320); +lean_dec(x_273); +x_322 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_322, 0, x_320); +lean_ctor_set(x_322, 1, x_321); +return x_322; } } } else { -uint8_t x_331; -lean_dec(x_276); +uint8_t x_323; +lean_dec(x_268); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8713,30 +8733,30 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_331 = !lean_is_exclusive(x_279); -if (x_331 == 0) +x_323 = !lean_is_exclusive(x_271); +if (x_323 == 0) { -return x_279; +return x_271; } else { -lean_object* x_332; lean_object* x_333; lean_object* x_334; -x_332 = lean_ctor_get(x_279, 0); -x_333 = lean_ctor_get(x_279, 1); -lean_inc(x_333); -lean_inc(x_332); -lean_dec(x_279); -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; +lean_object* x_324; lean_object* x_325; lean_object* x_326; +x_324 = lean_ctor_get(x_271, 0); +x_325 = lean_ctor_get(x_271, 1); +lean_inc(x_325); +lean_inc(x_324); +lean_dec(x_271); +x_326 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_326, 0, x_324); +lean_ctor_set(x_326, 1, x_325); +return x_326; } } } else { -uint8_t x_335; -lean_dec(x_276); +uint8_t x_327; +lean_dec(x_268); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8750,59 +8770,59 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_335 = !lean_is_exclusive(x_277); -if (x_335 == 0) +x_327 = !lean_is_exclusive(x_269); +if (x_327 == 0) { -return x_277; +return x_269; } else { -lean_object* x_336; lean_object* x_337; lean_object* x_338; -x_336 = lean_ctor_get(x_277, 0); -x_337 = lean_ctor_get(x_277, 1); -lean_inc(x_337); -lean_inc(x_336); -lean_dec(x_277); -x_338 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_338, 0, x_336); -lean_ctor_set(x_338, 1, x_337); -return x_338; +lean_object* x_328; lean_object* x_329; lean_object* x_330; +x_328 = lean_ctor_get(x_269, 0); +x_329 = lean_ctor_get(x_269, 1); +lean_inc(x_329); +lean_inc(x_328); +lean_dec(x_269); +x_330 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_330, 0, x_328); +lean_ctor_set(x_330, 1, x_329); +return x_330; } } } case 5: { -lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; -x_339 = lean_ctor_get(x_4, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_4, 1); -lean_inc(x_340); +lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_331 = lean_ctor_get(x_4, 0); +lean_inc(x_331); +x_332 = lean_ctor_get(x_4, 1); +lean_inc(x_332); lean_dec(x_4); -x_341 = lean_array_set(x_5, x_6, x_340); -x_342 = lean_unsigned_to_nat(1u); -x_343 = lean_nat_sub(x_6, x_342); +x_333 = lean_array_set(x_5, x_6, x_332); +x_334 = lean_unsigned_to_nat(1u); +x_335 = lean_nat_sub(x_6, x_334); lean_dec(x_6); -x_4 = x_339; -x_5 = x_341; -x_6 = x_343; +x_4 = x_331; +x_5 = x_333; +x_6 = x_335; goto _start; } case 6: { -lean_object* x_345; +lean_object* x_337; lean_dec(x_6); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); -x_345 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_345) == 0) +x_337 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_337) == 0) { -lean_object* x_346; lean_object* x_347; -x_346 = lean_ctor_get(x_345, 1); -lean_inc(x_346); -lean_dec(x_345); +lean_object* x_338; lean_object* x_339; +x_338 = lean_ctor_get(x_337, 1); +lean_inc(x_338); +lean_dec(x_337); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -8812,13 +8832,13 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_347 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_346); -if (lean_obj_tag(x_347) == 0) +x_339 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_338); +if (lean_obj_tag(x_339) == 0) { -lean_object* x_348; lean_object* x_349; -x_348 = lean_ctor_get(x_347, 1); -lean_inc(x_348); -lean_dec(x_347); +lean_object* x_340; lean_object* x_341; +x_340 = lean_ctor_get(x_339, 1); +lean_inc(x_340); +lean_dec(x_339); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -8829,62 +8849,62 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_349 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_348); -if (lean_obj_tag(x_349) == 0) +x_341 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_340); +if (lean_obj_tag(x_341) == 0) { -lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_365; uint8_t x_366; -x_350 = lean_ctor_get(x_349, 1); -lean_inc(x_350); -lean_dec(x_349); +lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_355; uint8_t x_356; +x_342 = lean_ctor_get(x_341, 1); +lean_inc(x_342); +lean_dec(x_341); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_351 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); -lean_closure_set(x_351, 0, x_1); -lean_closure_set(x_351, 1, x_2); -lean_closure_set(x_351, 2, x_3); -x_365 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; -x_366 = l_Lean_Expr_isConstOf(x_4, x_365); -if (x_366 == 0) +x_343 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); +lean_closure_set(x_343, 0, x_1); +lean_closure_set(x_343, 1, x_2); +lean_closure_set(x_343, 2, x_3); +x_355 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; +x_356 = l_Lean_Expr_isConstOf(x_4, x_355); +if (x_356 == 0) { -lean_object* x_367; +lean_object* x_357; lean_dec(x_3); -x_367 = lean_box(0); -x_352 = x_367; -goto block_364; +x_357 = lean_box(0); +x_344 = x_357; +goto block_354; } else { -lean_object* x_368; lean_object* x_369; uint8_t x_370; -x_368 = lean_array_get_size(x_5); -x_369 = lean_unsigned_to_nat(2u); -x_370 = lean_nat_dec_eq(x_368, x_369); -if (x_370 == 0) +lean_object* x_358; lean_object* x_359; uint8_t x_360; +x_358 = lean_array_get_size(x_5); +x_359 = lean_unsigned_to_nat(2u); +x_360 = lean_nat_dec_eq(x_358, x_359); +if (x_360 == 0) { -lean_object* x_371; -lean_dec(x_368); +lean_object* x_361; +lean_dec(x_358); lean_dec(x_3); -x_371 = lean_box(0); -x_352 = x_371; -goto block_364; +x_361 = lean_box(0); +x_344 = x_361; +goto block_354; } else { -lean_object* x_372; uint8_t x_373; lean_object* x_374; -lean_dec(x_351); +lean_object* x_362; uint8_t x_363; lean_object* x_364; +lean_dec(x_343); lean_dec(x_4); -x_372 = lean_unsigned_to_nat(0u); -x_373 = lean_nat_dec_lt(x_372, x_368); -lean_dec(x_368); +x_362 = lean_unsigned_to_nat(0u); +x_363 = lean_nat_dec_lt(x_362, x_358); +lean_dec(x_358); lean_inc(x_1); -x_374 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_374, 0, x_1); -if (x_373 == 0) +x_364 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_364, 0, x_1); +if (x_363 == 0) { -lean_object* x_375; lean_object* x_376; lean_object* x_377; +lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_dec(x_5); -x_375 = l_Lean_instInhabitedExpr; -x_376 = l_outOfBounds___rarg(x_375); +x_365 = l_Lean_instInhabitedExpr; +x_366 = l_outOfBounds___rarg(x_365); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -8894,30 +8914,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_376); -x_377 = l_Lean_Meta_Grind_internalize(x_376, x_2, x_374, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_350); -if (lean_obj_tag(x_377) == 0) +lean_inc(x_366); +x_367 = l_Lean_Meta_Grind_internalize(x_366, x_2, x_364, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_342); +if (lean_obj_tag(x_367) == 0) { -lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; -x_378 = lean_ctor_get(x_377, 1); -lean_inc(x_378); -lean_dec(x_377); +lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; +x_368 = lean_ctor_get(x_367, 1); +lean_inc(x_368); +lean_dec(x_367); lean_inc(x_1); -x_379 = l_Lean_Meta_Grind_registerParent(x_1, x_376, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_378); -lean_dec(x_376); -x_380 = lean_ctor_get(x_379, 0); -lean_inc(x_380); -x_381 = lean_ctor_get(x_379, 1); -lean_inc(x_381); -lean_dec(x_379); -x_382 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_380, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_381); -lean_dec(x_380); -return x_382; +x_369 = l_Lean_Meta_Grind_registerParent(x_1, x_366, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_368); +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 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_370, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_371); +lean_dec(x_370); +return x_372; } else { -uint8_t x_383; -lean_dec(x_376); +uint8_t x_373; +lean_dec(x_366); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8929,30 +8948,30 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_383 = !lean_is_exclusive(x_377); -if (x_383 == 0) +x_373 = !lean_is_exclusive(x_367); +if (x_373 == 0) { -return x_377; +return x_367; } else { -lean_object* x_384; lean_object* x_385; lean_object* x_386; -x_384 = lean_ctor_get(x_377, 0); -x_385 = lean_ctor_get(x_377, 1); -lean_inc(x_385); -lean_inc(x_384); -lean_dec(x_377); -x_386 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_386, 0, x_384); -lean_ctor_set(x_386, 1, x_385); -return x_386; +lean_object* x_374; lean_object* x_375; lean_object* x_376; +x_374 = lean_ctor_get(x_367, 0); +x_375 = lean_ctor_get(x_367, 1); +lean_inc(x_375); +lean_inc(x_374); +lean_dec(x_367); +x_376 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_376, 0, x_374); +lean_ctor_set(x_376, 1, x_375); +return x_376; } } } else { -lean_object* x_387; lean_object* x_388; -x_387 = lean_array_fget(x_5, x_372); +lean_object* x_377; lean_object* x_378; +x_377 = lean_array_fget(x_5, x_362); lean_dec(x_5); lean_inc(x_14); lean_inc(x_13); @@ -8963,30 +8982,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_387); -x_388 = l_Lean_Meta_Grind_internalize(x_387, x_2, x_374, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_350); -if (lean_obj_tag(x_388) == 0) +lean_inc(x_377); +x_378 = l_Lean_Meta_Grind_internalize(x_377, x_2, x_364, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_342); +if (lean_obj_tag(x_378) == 0) { -lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; -x_389 = lean_ctor_get(x_388, 1); -lean_inc(x_389); -lean_dec(x_388); +lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; +x_379 = lean_ctor_get(x_378, 1); +lean_inc(x_379); +lean_dec(x_378); lean_inc(x_1); -x_390 = l_Lean_Meta_Grind_registerParent(x_1, x_387, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_389); -lean_dec(x_387); -x_391 = lean_ctor_get(x_390, 0); -lean_inc(x_391); -x_392 = lean_ctor_get(x_390, 1); -lean_inc(x_392); -lean_dec(x_390); -x_393 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_391, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_392); -lean_dec(x_391); -return x_393; +x_380 = l_Lean_Meta_Grind_registerParent(x_1, x_377, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_379); +x_381 = lean_ctor_get(x_380, 0); +lean_inc(x_381); +x_382 = lean_ctor_get(x_380, 1); +lean_inc(x_382); +lean_dec(x_380); +x_383 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_381, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_382); +lean_dec(x_381); +return x_383; } else { -uint8_t x_394; -lean_dec(x_387); +uint8_t x_384; +lean_dec(x_377); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8998,35 +9016,35 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_394 = !lean_is_exclusive(x_388); -if (x_394 == 0) +x_384 = !lean_is_exclusive(x_378); +if (x_384 == 0) { -return x_388; +return x_378; } else { -lean_object* x_395; lean_object* x_396; lean_object* x_397; -x_395 = lean_ctor_get(x_388, 0); -x_396 = lean_ctor_get(x_388, 1); -lean_inc(x_396); -lean_inc(x_395); -lean_dec(x_388); -x_397 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_397, 0, x_395); -lean_ctor_set(x_397, 1, x_396); -return x_397; +lean_object* x_385; lean_object* x_386; lean_object* x_387; +x_385 = lean_ctor_get(x_378, 0); +x_386 = lean_ctor_get(x_378, 1); +lean_inc(x_386); +lean_inc(x_385); +lean_dec(x_378); +x_387 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_387, 0, x_385); +lean_ctor_set(x_387, 1, x_386); +return x_387; } } } } } -block_364: +block_354: { -lean_object* x_353; lean_object* x_354; -lean_dec(x_352); +lean_object* x_345; lean_object* x_346; +lean_dec(x_344); lean_inc(x_1); -x_353 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_353, 0, x_1); +x_345 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_345, 0, x_1); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -9037,30 +9055,24 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_354 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_353, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_350); -if (lean_obj_tag(x_354) == 0) +x_346 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_345, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_342); +if (lean_obj_tag(x_346) == 0) { -lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; -x_355 = lean_ctor_get(x_354, 1); -lean_inc(x_355); -lean_dec(x_354); -lean_inc(x_1); -x_356 = l_Lean_Meta_Grind_registerParent(x_1, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_355); -lean_dec(x_4); -x_357 = lean_ctor_get(x_356, 0); -lean_inc(x_357); -x_358 = lean_ctor_get(x_356, 1); -lean_inc(x_358); -lean_dec(x_356); -x_359 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_5, x_1, x_2, x_351, x_357, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_358); -lean_dec(x_357); +lean_object* x_347; lean_object* x_348; lean_object* x_349; +x_347 = lean_ctor_get(x_346, 0); +lean_inc(x_347); +x_348 = lean_ctor_get(x_346, 1); +lean_inc(x_348); +lean_dec(x_346); +x_349 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_1, x_4, x_5, x_2, x_343, x_347, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_348); +lean_dec(x_347); lean_dec(x_5); -return x_359; +return x_349; } else { -uint8_t x_360; -lean_dec(x_351); +uint8_t x_350; +lean_dec(x_343); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9073,30 +9085,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_360 = !lean_is_exclusive(x_354); -if (x_360 == 0) +x_350 = !lean_is_exclusive(x_346); +if (x_350 == 0) { -return x_354; +return x_346; } else { -lean_object* x_361; lean_object* x_362; lean_object* x_363; -x_361 = lean_ctor_get(x_354, 0); -x_362 = lean_ctor_get(x_354, 1); -lean_inc(x_362); -lean_inc(x_361); -lean_dec(x_354); -x_363 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_363, 0, x_361); -lean_ctor_set(x_363, 1, x_362); -return x_363; +lean_object* x_351; lean_object* x_352; lean_object* x_353; +x_351 = lean_ctor_get(x_346, 0); +x_352 = lean_ctor_get(x_346, 1); +lean_inc(x_352); +lean_inc(x_351); +lean_dec(x_346); +x_353 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_353, 0, x_351); +lean_ctor_set(x_353, 1, x_352); +return x_353; } } } } else { -uint8_t x_398; +uint8_t x_388; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9110,29 +9122,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_398 = !lean_is_exclusive(x_349); -if (x_398 == 0) +x_388 = !lean_is_exclusive(x_341); +if (x_388 == 0) { -return x_349; +return x_341; } else { -lean_object* x_399; lean_object* x_400; lean_object* x_401; -x_399 = lean_ctor_get(x_349, 0); -x_400 = lean_ctor_get(x_349, 1); -lean_inc(x_400); -lean_inc(x_399); -lean_dec(x_349); -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; +lean_object* x_389; lean_object* x_390; lean_object* x_391; +x_389 = lean_ctor_get(x_341, 0); +x_390 = lean_ctor_get(x_341, 1); +lean_inc(x_390); +lean_inc(x_389); +lean_dec(x_341); +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 { -uint8_t x_402; +uint8_t x_392; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9146,29 +9158,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_402 = !lean_is_exclusive(x_347); -if (x_402 == 0) +x_392 = !lean_is_exclusive(x_339); +if (x_392 == 0) { -return x_347; +return x_339; } else { -lean_object* x_403; lean_object* x_404; lean_object* x_405; -x_403 = lean_ctor_get(x_347, 0); -x_404 = lean_ctor_get(x_347, 1); -lean_inc(x_404); -lean_inc(x_403); -lean_dec(x_347); -x_405 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_405, 0, x_403); -lean_ctor_set(x_405, 1, x_404); -return x_405; +lean_object* x_393; lean_object* x_394; lean_object* x_395; +x_393 = lean_ctor_get(x_339, 0); +x_394 = lean_ctor_get(x_339, 1); +lean_inc(x_394); +lean_inc(x_393); +lean_dec(x_339); +x_395 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_395, 0, x_393); +lean_ctor_set(x_395, 1, x_394); +return x_395; } } } else { -uint8_t x_406; +uint8_t x_396; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9182,42 +9194,42 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_406 = !lean_is_exclusive(x_345); -if (x_406 == 0) +x_396 = !lean_is_exclusive(x_337); +if (x_396 == 0) { -return x_345; +return x_337; } else { -lean_object* x_407; lean_object* x_408; lean_object* x_409; -x_407 = lean_ctor_get(x_345, 0); -x_408 = lean_ctor_get(x_345, 1); -lean_inc(x_408); -lean_inc(x_407); -lean_dec(x_345); -x_409 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_409, 0, x_407); -lean_ctor_set(x_409, 1, x_408); -return x_409; +lean_object* x_397; lean_object* x_398; lean_object* x_399; +x_397 = lean_ctor_get(x_337, 0); +x_398 = lean_ctor_get(x_337, 1); +lean_inc(x_398); +lean_inc(x_397); +lean_dec(x_337); +x_399 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_399, 0, x_397); +lean_ctor_set(x_399, 1, x_398); +return x_399; } } } case 7: { -lean_object* x_410; +lean_object* x_400; lean_dec(x_6); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); -x_410 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_410) == 0) +x_400 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_400) == 0) { -lean_object* x_411; lean_object* x_412; -x_411 = lean_ctor_get(x_410, 1); -lean_inc(x_411); -lean_dec(x_410); +lean_object* x_401; lean_object* x_402; +x_401 = lean_ctor_get(x_400, 1); +lean_inc(x_401); +lean_dec(x_400); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -9227,13 +9239,13 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_412 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_411); -if (lean_obj_tag(x_412) == 0) +x_402 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_401); +if (lean_obj_tag(x_402) == 0) { -lean_object* x_413; lean_object* x_414; -x_413 = lean_ctor_get(x_412, 1); -lean_inc(x_413); -lean_dec(x_412); +lean_object* x_403; lean_object* x_404; +x_403 = lean_ctor_get(x_402, 1); +lean_inc(x_403); +lean_dec(x_402); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -9244,62 +9256,62 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_414 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_413); -if (lean_obj_tag(x_414) == 0) +x_404 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_403); +if (lean_obj_tag(x_404) == 0) { -lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_430; uint8_t x_431; -x_415 = lean_ctor_get(x_414, 1); -lean_inc(x_415); -lean_dec(x_414); +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_418; uint8_t x_419; +x_405 = lean_ctor_get(x_404, 1); +lean_inc(x_405); +lean_dec(x_404); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_416 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); -lean_closure_set(x_416, 0, x_1); -lean_closure_set(x_416, 1, x_2); -lean_closure_set(x_416, 2, x_3); -x_430 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; -x_431 = l_Lean_Expr_isConstOf(x_4, x_430); -if (x_431 == 0) +x_406 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); +lean_closure_set(x_406, 0, x_1); +lean_closure_set(x_406, 1, x_2); +lean_closure_set(x_406, 2, x_3); +x_418 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; +x_419 = l_Lean_Expr_isConstOf(x_4, x_418); +if (x_419 == 0) { -lean_object* x_432; +lean_object* x_420; lean_dec(x_3); -x_432 = lean_box(0); -x_417 = x_432; -goto block_429; +x_420 = lean_box(0); +x_407 = x_420; +goto block_417; } else { -lean_object* x_433; lean_object* x_434; uint8_t x_435; -x_433 = lean_array_get_size(x_5); -x_434 = lean_unsigned_to_nat(2u); -x_435 = lean_nat_dec_eq(x_433, x_434); -if (x_435 == 0) +lean_object* x_421; lean_object* x_422; uint8_t x_423; +x_421 = lean_array_get_size(x_5); +x_422 = lean_unsigned_to_nat(2u); +x_423 = lean_nat_dec_eq(x_421, x_422); +if (x_423 == 0) { -lean_object* x_436; -lean_dec(x_433); +lean_object* x_424; +lean_dec(x_421); lean_dec(x_3); -x_436 = lean_box(0); -x_417 = x_436; -goto block_429; +x_424 = lean_box(0); +x_407 = x_424; +goto block_417; } else { -lean_object* x_437; uint8_t x_438; lean_object* x_439; -lean_dec(x_416); +lean_object* x_425; uint8_t x_426; lean_object* x_427; +lean_dec(x_406); lean_dec(x_4); -x_437 = lean_unsigned_to_nat(0u); -x_438 = lean_nat_dec_lt(x_437, x_433); -lean_dec(x_433); +x_425 = lean_unsigned_to_nat(0u); +x_426 = lean_nat_dec_lt(x_425, x_421); +lean_dec(x_421); lean_inc(x_1); -x_439 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_439, 0, x_1); -if (x_438 == 0) +x_427 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_427, 0, x_1); +if (x_426 == 0) { -lean_object* x_440; lean_object* x_441; lean_object* x_442; +lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_dec(x_5); -x_440 = l_Lean_instInhabitedExpr; -x_441 = l_outOfBounds___rarg(x_440); +x_428 = l_Lean_instInhabitedExpr; +x_429 = l_outOfBounds___rarg(x_428); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -9309,30 +9321,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_441); -x_442 = l_Lean_Meta_Grind_internalize(x_441, x_2, x_439, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_415); -if (lean_obj_tag(x_442) == 0) -{ -lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; -x_443 = lean_ctor_get(x_442, 1); -lean_inc(x_443); -lean_dec(x_442); -lean_inc(x_1); -x_444 = l_Lean_Meta_Grind_registerParent(x_1, x_441, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_443); -lean_dec(x_441); -x_445 = lean_ctor_get(x_444, 0); -lean_inc(x_445); -x_446 = lean_ctor_get(x_444, 1); -lean_inc(x_446); -lean_dec(x_444); -x_447 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_445, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_446); -lean_dec(x_445); -return x_447; +lean_inc(x_429); +x_430 = l_Lean_Meta_Grind_internalize(x_429, x_2, x_427, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_405); +if (lean_obj_tag(x_430) == 0) +{ +lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; +x_431 = lean_ctor_get(x_430, 1); +lean_inc(x_431); +lean_dec(x_430); +lean_inc(x_1); +x_432 = l_Lean_Meta_Grind_registerParent(x_1, x_429, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_431); +x_433 = lean_ctor_get(x_432, 0); +lean_inc(x_433); +x_434 = lean_ctor_get(x_432, 1); +lean_inc(x_434); +lean_dec(x_432); +x_435 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_433, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_434); +lean_dec(x_433); +return x_435; } else { -uint8_t x_448; -lean_dec(x_441); +uint8_t x_436; +lean_dec(x_429); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9344,30 +9355,30 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_448 = !lean_is_exclusive(x_442); -if (x_448 == 0) +x_436 = !lean_is_exclusive(x_430); +if (x_436 == 0) { -return x_442; +return x_430; } else { -lean_object* x_449; lean_object* x_450; lean_object* x_451; -x_449 = lean_ctor_get(x_442, 0); -x_450 = lean_ctor_get(x_442, 1); -lean_inc(x_450); -lean_inc(x_449); -lean_dec(x_442); -x_451 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_451, 0, x_449); -lean_ctor_set(x_451, 1, x_450); -return x_451; +lean_object* x_437; lean_object* x_438; lean_object* x_439; +x_437 = lean_ctor_get(x_430, 0); +x_438 = lean_ctor_get(x_430, 1); +lean_inc(x_438); +lean_inc(x_437); +lean_dec(x_430); +x_439 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_439, 0, x_437); +lean_ctor_set(x_439, 1, x_438); +return x_439; } } } else { -lean_object* x_452; lean_object* x_453; -x_452 = lean_array_fget(x_5, x_437); +lean_object* x_440; lean_object* x_441; +x_440 = lean_array_fget(x_5, x_425); lean_dec(x_5); lean_inc(x_14); lean_inc(x_13); @@ -9378,30 +9389,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_452); -x_453 = l_Lean_Meta_Grind_internalize(x_452, x_2, x_439, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_415); -if (lean_obj_tag(x_453) == 0) +lean_inc(x_440); +x_441 = l_Lean_Meta_Grind_internalize(x_440, x_2, x_427, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_405); +if (lean_obj_tag(x_441) == 0) { -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_453, 1); -lean_inc(x_454); -lean_dec(x_453); +lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; +x_442 = lean_ctor_get(x_441, 1); +lean_inc(x_442); +lean_dec(x_441); lean_inc(x_1); -x_455 = l_Lean_Meta_Grind_registerParent(x_1, x_452, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_454); -lean_dec(x_452); -x_456 = lean_ctor_get(x_455, 0); -lean_inc(x_456); -x_457 = lean_ctor_get(x_455, 1); -lean_inc(x_457); -lean_dec(x_455); -x_458 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_456, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_457); -lean_dec(x_456); -return x_458; +x_443 = l_Lean_Meta_Grind_registerParent(x_1, x_440, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_442); +x_444 = lean_ctor_get(x_443, 0); +lean_inc(x_444); +x_445 = lean_ctor_get(x_443, 1); +lean_inc(x_445); +lean_dec(x_443); +x_446 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_444, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_445); +lean_dec(x_444); +return x_446; } else { -uint8_t x_459; -lean_dec(x_452); +uint8_t x_447; +lean_dec(x_440); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9413,35 +9423,35 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_459 = !lean_is_exclusive(x_453); -if (x_459 == 0) +x_447 = !lean_is_exclusive(x_441); +if (x_447 == 0) { -return x_453; +return x_441; } else { -lean_object* x_460; lean_object* x_461; lean_object* x_462; -x_460 = lean_ctor_get(x_453, 0); -x_461 = lean_ctor_get(x_453, 1); -lean_inc(x_461); -lean_inc(x_460); -lean_dec(x_453); -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; +lean_object* x_448; lean_object* x_449; lean_object* x_450; +x_448 = lean_ctor_get(x_441, 0); +x_449 = lean_ctor_get(x_441, 1); +lean_inc(x_449); +lean_inc(x_448); +lean_dec(x_441); +x_450 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_450, 0, x_448); +lean_ctor_set(x_450, 1, x_449); +return x_450; } } } } } -block_429: +block_417: { -lean_object* x_418; lean_object* x_419; -lean_dec(x_417); +lean_object* x_408; lean_object* x_409; +lean_dec(x_407); lean_inc(x_1); -x_418 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_418, 0, x_1); +x_408 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_408, 0, x_1); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -9452,30 +9462,24 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_419 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_418, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_415); -if (lean_obj_tag(x_419) == 0) +x_409 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_408, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_405); +if (lean_obj_tag(x_409) == 0) { -lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; -x_420 = lean_ctor_get(x_419, 1); -lean_inc(x_420); -lean_dec(x_419); -lean_inc(x_1); -x_421 = l_Lean_Meta_Grind_registerParent(x_1, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_420); -lean_dec(x_4); -x_422 = lean_ctor_get(x_421, 0); -lean_inc(x_422); -x_423 = lean_ctor_get(x_421, 1); -lean_inc(x_423); -lean_dec(x_421); -x_424 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_5, x_1, x_2, x_416, x_422, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_423); -lean_dec(x_422); +lean_object* x_410; lean_object* x_411; lean_object* x_412; +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 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_1, x_4, x_5, x_2, x_406, x_410, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_411); +lean_dec(x_410); lean_dec(x_5); -return x_424; +return x_412; } else { -uint8_t x_425; -lean_dec(x_416); +uint8_t x_413; +lean_dec(x_406); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9488,30 +9492,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_425 = !lean_is_exclusive(x_419); -if (x_425 == 0) +x_413 = !lean_is_exclusive(x_409); +if (x_413 == 0) { -return x_419; +return x_409; } else { -lean_object* x_426; lean_object* x_427; lean_object* x_428; -x_426 = lean_ctor_get(x_419, 0); -x_427 = lean_ctor_get(x_419, 1); -lean_inc(x_427); -lean_inc(x_426); -lean_dec(x_419); -x_428 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_428, 0, x_426); -lean_ctor_set(x_428, 1, x_427); -return x_428; +lean_object* x_414; lean_object* x_415; lean_object* x_416; +x_414 = lean_ctor_get(x_409, 0); +x_415 = lean_ctor_get(x_409, 1); +lean_inc(x_415); +lean_inc(x_414); +lean_dec(x_409); +x_416 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_416, 0, x_414); +lean_ctor_set(x_416, 1, x_415); +return x_416; } } } } else { -uint8_t x_463; +uint8_t x_451; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9525,29 +9529,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_463 = !lean_is_exclusive(x_414); -if (x_463 == 0) +x_451 = !lean_is_exclusive(x_404); +if (x_451 == 0) { -return x_414; +return x_404; } else { -lean_object* x_464; lean_object* x_465; lean_object* x_466; -x_464 = lean_ctor_get(x_414, 0); -x_465 = lean_ctor_get(x_414, 1); -lean_inc(x_465); -lean_inc(x_464); -lean_dec(x_414); -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; +lean_object* x_452; lean_object* x_453; lean_object* x_454; +x_452 = lean_ctor_get(x_404, 0); +x_453 = lean_ctor_get(x_404, 1); +lean_inc(x_453); +lean_inc(x_452); +lean_dec(x_404); +x_454 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_454, 0, x_452); +lean_ctor_set(x_454, 1, x_453); +return x_454; } } } else { -uint8_t x_467; +uint8_t x_455; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9561,29 +9565,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_467 = !lean_is_exclusive(x_412); -if (x_467 == 0) +x_455 = !lean_is_exclusive(x_402); +if (x_455 == 0) { -return x_412; +return x_402; } else { -lean_object* x_468; lean_object* x_469; lean_object* x_470; -x_468 = lean_ctor_get(x_412, 0); -x_469 = lean_ctor_get(x_412, 1); -lean_inc(x_469); -lean_inc(x_468); -lean_dec(x_412); -x_470 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_470, 0, x_468); -lean_ctor_set(x_470, 1, x_469); -return x_470; +lean_object* x_456; lean_object* x_457; lean_object* x_458; +x_456 = lean_ctor_get(x_402, 0); +x_457 = lean_ctor_get(x_402, 1); +lean_inc(x_457); +lean_inc(x_456); +lean_dec(x_402); +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 { -uint8_t x_471; +uint8_t x_459; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9597,42 +9601,42 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_471 = !lean_is_exclusive(x_410); -if (x_471 == 0) +x_459 = !lean_is_exclusive(x_400); +if (x_459 == 0) { -return x_410; +return x_400; } else { -lean_object* x_472; lean_object* x_473; lean_object* x_474; -x_472 = lean_ctor_get(x_410, 0); -x_473 = lean_ctor_get(x_410, 1); -lean_inc(x_473); -lean_inc(x_472); -lean_dec(x_410); -x_474 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_474, 0, x_472); -lean_ctor_set(x_474, 1, x_473); -return x_474; +lean_object* x_460; lean_object* x_461; lean_object* x_462; +x_460 = lean_ctor_get(x_400, 0); +x_461 = lean_ctor_get(x_400, 1); +lean_inc(x_461); +lean_inc(x_460); +lean_dec(x_400); +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; } } } case 8: { -lean_object* x_475; +lean_object* x_463; lean_dec(x_6); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); -x_475 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_475) == 0) +x_463 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_463) == 0) { -lean_object* x_476; lean_object* x_477; -x_476 = lean_ctor_get(x_475, 1); -lean_inc(x_476); -lean_dec(x_475); +lean_object* x_464; lean_object* x_465; +x_464 = lean_ctor_get(x_463, 1); +lean_inc(x_464); +lean_dec(x_463); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -9642,13 +9646,13 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_477 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_476); -if (lean_obj_tag(x_477) == 0) +x_465 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_464); +if (lean_obj_tag(x_465) == 0) { -lean_object* x_478; lean_object* x_479; -x_478 = lean_ctor_get(x_477, 1); -lean_inc(x_478); -lean_dec(x_477); +lean_object* x_466; lean_object* x_467; +x_466 = lean_ctor_get(x_465, 1); +lean_inc(x_466); +lean_dec(x_465); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -9659,62 +9663,62 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_479 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_478); -if (lean_obj_tag(x_479) == 0) +x_467 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_466); +if (lean_obj_tag(x_467) == 0) { -lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_495; uint8_t x_496; -x_480 = lean_ctor_get(x_479, 1); -lean_inc(x_480); -lean_dec(x_479); +lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_481; uint8_t x_482; +x_468 = lean_ctor_get(x_467, 1); +lean_inc(x_468); +lean_dec(x_467); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_481 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); -lean_closure_set(x_481, 0, x_1); -lean_closure_set(x_481, 1, x_2); -lean_closure_set(x_481, 2, x_3); -x_495 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; -x_496 = l_Lean_Expr_isConstOf(x_4, x_495); -if (x_496 == 0) +x_469 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); +lean_closure_set(x_469, 0, x_1); +lean_closure_set(x_469, 1, x_2); +lean_closure_set(x_469, 2, x_3); +x_481 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; +x_482 = l_Lean_Expr_isConstOf(x_4, x_481); +if (x_482 == 0) { -lean_object* x_497; +lean_object* x_483; lean_dec(x_3); -x_497 = lean_box(0); -x_482 = x_497; -goto block_494; +x_483 = lean_box(0); +x_470 = x_483; +goto block_480; } else { -lean_object* x_498; lean_object* x_499; uint8_t x_500; -x_498 = lean_array_get_size(x_5); -x_499 = lean_unsigned_to_nat(2u); -x_500 = lean_nat_dec_eq(x_498, x_499); -if (x_500 == 0) +lean_object* x_484; lean_object* x_485; uint8_t x_486; +x_484 = lean_array_get_size(x_5); +x_485 = lean_unsigned_to_nat(2u); +x_486 = lean_nat_dec_eq(x_484, x_485); +if (x_486 == 0) { -lean_object* x_501; -lean_dec(x_498); +lean_object* x_487; +lean_dec(x_484); lean_dec(x_3); -x_501 = lean_box(0); -x_482 = x_501; -goto block_494; +x_487 = lean_box(0); +x_470 = x_487; +goto block_480; } else { -lean_object* x_502; uint8_t x_503; lean_object* x_504; -lean_dec(x_481); +lean_object* x_488; uint8_t x_489; lean_object* x_490; +lean_dec(x_469); lean_dec(x_4); -x_502 = lean_unsigned_to_nat(0u); -x_503 = lean_nat_dec_lt(x_502, x_498); -lean_dec(x_498); +x_488 = lean_unsigned_to_nat(0u); +x_489 = lean_nat_dec_lt(x_488, x_484); +lean_dec(x_484); lean_inc(x_1); -x_504 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_504, 0, x_1); -if (x_503 == 0) +x_490 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_490, 0, x_1); +if (x_489 == 0) { -lean_object* x_505; lean_object* x_506; lean_object* x_507; +lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_dec(x_5); -x_505 = l_Lean_instInhabitedExpr; -x_506 = l_outOfBounds___rarg(x_505); +x_491 = l_Lean_instInhabitedExpr; +x_492 = l_outOfBounds___rarg(x_491); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -9724,30 +9728,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_506); -x_507 = l_Lean_Meta_Grind_internalize(x_506, x_2, x_504, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_480); -if (lean_obj_tag(x_507) == 0) +lean_inc(x_492); +x_493 = l_Lean_Meta_Grind_internalize(x_492, x_2, x_490, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_468); +if (lean_obj_tag(x_493) == 0) { -lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; -x_508 = lean_ctor_get(x_507, 1); -lean_inc(x_508); -lean_dec(x_507); +lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; +x_494 = lean_ctor_get(x_493, 1); +lean_inc(x_494); +lean_dec(x_493); lean_inc(x_1); -x_509 = l_Lean_Meta_Grind_registerParent(x_1, x_506, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_508); -lean_dec(x_506); -x_510 = lean_ctor_get(x_509, 0); -lean_inc(x_510); -x_511 = lean_ctor_get(x_509, 1); -lean_inc(x_511); -lean_dec(x_509); -x_512 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_510, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_511); -lean_dec(x_510); -return x_512; +x_495 = l_Lean_Meta_Grind_registerParent(x_1, x_492, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_494); +x_496 = lean_ctor_get(x_495, 0); +lean_inc(x_496); +x_497 = lean_ctor_get(x_495, 1); +lean_inc(x_497); +lean_dec(x_495); +x_498 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_496, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_497); +lean_dec(x_496); +return x_498; } else { -uint8_t x_513; -lean_dec(x_506); +uint8_t x_499; +lean_dec(x_492); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9759,30 +9762,30 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_513 = !lean_is_exclusive(x_507); -if (x_513 == 0) +x_499 = !lean_is_exclusive(x_493); +if (x_499 == 0) { -return x_507; +return x_493; } else { -lean_object* x_514; lean_object* x_515; lean_object* x_516; -x_514 = lean_ctor_get(x_507, 0); -x_515 = lean_ctor_get(x_507, 1); -lean_inc(x_515); -lean_inc(x_514); -lean_dec(x_507); -x_516 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_516, 0, x_514); -lean_ctor_set(x_516, 1, x_515); -return x_516; +lean_object* x_500; lean_object* x_501; lean_object* x_502; +x_500 = lean_ctor_get(x_493, 0); +x_501 = lean_ctor_get(x_493, 1); +lean_inc(x_501); +lean_inc(x_500); +lean_dec(x_493); +x_502 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_502, 0, x_500); +lean_ctor_set(x_502, 1, x_501); +return x_502; } } } else { -lean_object* x_517; lean_object* x_518; -x_517 = lean_array_fget(x_5, x_502); +lean_object* x_503; lean_object* x_504; +x_503 = lean_array_fget(x_5, x_488); lean_dec(x_5); lean_inc(x_14); lean_inc(x_13); @@ -9793,30 +9796,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_517); -x_518 = l_Lean_Meta_Grind_internalize(x_517, x_2, x_504, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_480); -if (lean_obj_tag(x_518) == 0) -{ -lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; -x_519 = lean_ctor_get(x_518, 1); -lean_inc(x_519); -lean_dec(x_518); -lean_inc(x_1); -x_520 = l_Lean_Meta_Grind_registerParent(x_1, x_517, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_519); -lean_dec(x_517); -x_521 = lean_ctor_get(x_520, 0); -lean_inc(x_521); -x_522 = lean_ctor_get(x_520, 1); -lean_inc(x_522); -lean_dec(x_520); -x_523 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_521, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_522); -lean_dec(x_521); -return x_523; +lean_inc(x_503); +x_504 = l_Lean_Meta_Grind_internalize(x_503, x_2, x_490, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_468); +if (lean_obj_tag(x_504) == 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_inc(x_1); +x_506 = l_Lean_Meta_Grind_registerParent(x_1, x_503, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_505); +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__2___lambda__1(x_1, x_2, x_3, x_507, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_508); +lean_dec(x_507); +return x_509; } else { -uint8_t x_524; -lean_dec(x_517); +uint8_t x_510; +lean_dec(x_503); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9828,35 +9830,35 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_524 = !lean_is_exclusive(x_518); -if (x_524 == 0) +x_510 = !lean_is_exclusive(x_504); +if (x_510 == 0) { -return x_518; +return x_504; } else { -lean_object* x_525; lean_object* x_526; lean_object* x_527; -x_525 = lean_ctor_get(x_518, 0); -x_526 = lean_ctor_get(x_518, 1); -lean_inc(x_526); -lean_inc(x_525); -lean_dec(x_518); -x_527 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_527, 0, x_525); -lean_ctor_set(x_527, 1, x_526); -return x_527; +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; } } } } } -block_494: +block_480: { -lean_object* x_483; lean_object* x_484; -lean_dec(x_482); +lean_object* x_471; lean_object* x_472; +lean_dec(x_470); lean_inc(x_1); -x_483 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_483, 0, x_1); +x_471 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_471, 0, x_1); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -9867,30 +9869,24 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_484 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_483, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_480); -if (lean_obj_tag(x_484) == 0) +x_472 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_471, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_468); +if (lean_obj_tag(x_472) == 0) { -lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; -x_485 = lean_ctor_get(x_484, 1); -lean_inc(x_485); -lean_dec(x_484); -lean_inc(x_1); -x_486 = l_Lean_Meta_Grind_registerParent(x_1, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_485); -lean_dec(x_4); -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 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_5, x_1, x_2, x_481, x_487, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_488); -lean_dec(x_487); +lean_object* x_473; lean_object* x_474; lean_object* x_475; +x_473 = lean_ctor_get(x_472, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_472, 1); +lean_inc(x_474); +lean_dec(x_472); +x_475 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_1, x_4, x_5, x_2, x_469, x_473, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_474); +lean_dec(x_473); lean_dec(x_5); -return x_489; +return x_475; } else { -uint8_t x_490; -lean_dec(x_481); +uint8_t x_476; +lean_dec(x_469); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9903,30 +9899,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_490 = !lean_is_exclusive(x_484); -if (x_490 == 0) +x_476 = !lean_is_exclusive(x_472); +if (x_476 == 0) { -return x_484; +return x_472; } else { -lean_object* x_491; lean_object* x_492; lean_object* x_493; -x_491 = lean_ctor_get(x_484, 0); -x_492 = lean_ctor_get(x_484, 1); -lean_inc(x_492); -lean_inc(x_491); -lean_dec(x_484); -x_493 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_493, 0, x_491); -lean_ctor_set(x_493, 1, x_492); -return x_493; +lean_object* x_477; lean_object* x_478; lean_object* x_479; +x_477 = lean_ctor_get(x_472, 0); +x_478 = lean_ctor_get(x_472, 1); +lean_inc(x_478); +lean_inc(x_477); +lean_dec(x_472); +x_479 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_479, 0, x_477); +lean_ctor_set(x_479, 1, x_478); +return x_479; } } } } else { -uint8_t x_528; +uint8_t x_514; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9940,29 +9936,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_528 = !lean_is_exclusive(x_479); -if (x_528 == 0) +x_514 = !lean_is_exclusive(x_467); +if (x_514 == 0) { -return x_479; +return x_467; } else { -lean_object* x_529; lean_object* x_530; lean_object* x_531; -x_529 = lean_ctor_get(x_479, 0); -x_530 = lean_ctor_get(x_479, 1); -lean_inc(x_530); -lean_inc(x_529); -lean_dec(x_479); -x_531 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_531, 0, x_529); -lean_ctor_set(x_531, 1, x_530); -return x_531; +lean_object* x_515; lean_object* x_516; lean_object* x_517; +x_515 = lean_ctor_get(x_467, 0); +x_516 = lean_ctor_get(x_467, 1); +lean_inc(x_516); +lean_inc(x_515); +lean_dec(x_467); +x_517 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_517, 0, x_515); +lean_ctor_set(x_517, 1, x_516); +return x_517; } } } else { -uint8_t x_532; +uint8_t x_518; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9976,29 +9972,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_532 = !lean_is_exclusive(x_477); -if (x_532 == 0) +x_518 = !lean_is_exclusive(x_465); +if (x_518 == 0) { -return x_477; +return x_465; } else { -lean_object* x_533; lean_object* x_534; lean_object* x_535; -x_533 = lean_ctor_get(x_477, 0); -x_534 = lean_ctor_get(x_477, 1); -lean_inc(x_534); -lean_inc(x_533); -lean_dec(x_477); -x_535 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_535, 0, x_533); -lean_ctor_set(x_535, 1, x_534); -return x_535; +lean_object* x_519; lean_object* x_520; lean_object* x_521; +x_519 = lean_ctor_get(x_465, 0); +x_520 = lean_ctor_get(x_465, 1); +lean_inc(x_520); +lean_inc(x_519); +lean_dec(x_465); +x_521 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_521, 0, x_519); +lean_ctor_set(x_521, 1, x_520); +return x_521; } } } else { -uint8_t x_536; +uint8_t x_522; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10012,42 +10008,42 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_536 = !lean_is_exclusive(x_475); -if (x_536 == 0) +x_522 = !lean_is_exclusive(x_463); +if (x_522 == 0) { -return x_475; +return x_463; } else { -lean_object* x_537; lean_object* x_538; lean_object* x_539; -x_537 = lean_ctor_get(x_475, 0); -x_538 = lean_ctor_get(x_475, 1); -lean_inc(x_538); -lean_inc(x_537); -lean_dec(x_475); -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; +lean_object* x_523; lean_object* x_524; lean_object* x_525; +x_523 = lean_ctor_get(x_463, 0); +x_524 = lean_ctor_get(x_463, 1); +lean_inc(x_524); +lean_inc(x_523); +lean_dec(x_463); +x_525 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_525, 0, x_523); +lean_ctor_set(x_525, 1, x_524); +return x_525; } } } case 9: { -lean_object* x_540; +lean_object* x_526; lean_dec(x_6); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); -x_540 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_540) == 0) +x_526 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_526) == 0) { -lean_object* x_541; lean_object* x_542; -x_541 = lean_ctor_get(x_540, 1); -lean_inc(x_541); -lean_dec(x_540); +lean_object* x_527; lean_object* x_528; +x_527 = lean_ctor_get(x_526, 1); +lean_inc(x_527); +lean_dec(x_526); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -10057,13 +10053,13 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_542 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_541); -if (lean_obj_tag(x_542) == 0) +x_528 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_527); +if (lean_obj_tag(x_528) == 0) { -lean_object* x_543; lean_object* x_544; -x_543 = lean_ctor_get(x_542, 1); -lean_inc(x_543); -lean_dec(x_542); +lean_object* x_529; lean_object* x_530; +x_529 = lean_ctor_get(x_528, 1); +lean_inc(x_529); +lean_dec(x_528); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -10074,62 +10070,62 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_544 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_543); -if (lean_obj_tag(x_544) == 0) +x_530 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_529); +if (lean_obj_tag(x_530) == 0) { -lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_560; uint8_t x_561; -x_545 = lean_ctor_get(x_544, 1); -lean_inc(x_545); -lean_dec(x_544); +lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_544; uint8_t x_545; +x_531 = lean_ctor_get(x_530, 1); +lean_inc(x_531); +lean_dec(x_530); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_546 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); -lean_closure_set(x_546, 0, x_1); -lean_closure_set(x_546, 1, x_2); -lean_closure_set(x_546, 2, x_3); -x_560 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; -x_561 = l_Lean_Expr_isConstOf(x_4, x_560); -if (x_561 == 0) +x_532 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); +lean_closure_set(x_532, 0, x_1); +lean_closure_set(x_532, 1, x_2); +lean_closure_set(x_532, 2, x_3); +x_544 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; +x_545 = l_Lean_Expr_isConstOf(x_4, x_544); +if (x_545 == 0) { -lean_object* x_562; +lean_object* x_546; lean_dec(x_3); -x_562 = lean_box(0); -x_547 = x_562; -goto block_559; +x_546 = lean_box(0); +x_533 = x_546; +goto block_543; } else { -lean_object* x_563; lean_object* x_564; uint8_t x_565; -x_563 = lean_array_get_size(x_5); -x_564 = lean_unsigned_to_nat(2u); -x_565 = lean_nat_dec_eq(x_563, x_564); -if (x_565 == 0) +lean_object* x_547; lean_object* x_548; uint8_t x_549; +x_547 = lean_array_get_size(x_5); +x_548 = lean_unsigned_to_nat(2u); +x_549 = lean_nat_dec_eq(x_547, x_548); +if (x_549 == 0) { -lean_object* x_566; -lean_dec(x_563); +lean_object* x_550; +lean_dec(x_547); lean_dec(x_3); -x_566 = lean_box(0); -x_547 = x_566; -goto block_559; +x_550 = lean_box(0); +x_533 = x_550; +goto block_543; } else { -lean_object* x_567; uint8_t x_568; lean_object* x_569; -lean_dec(x_546); +lean_object* x_551; uint8_t x_552; lean_object* x_553; +lean_dec(x_532); lean_dec(x_4); -x_567 = lean_unsigned_to_nat(0u); -x_568 = lean_nat_dec_lt(x_567, x_563); -lean_dec(x_563); +x_551 = lean_unsigned_to_nat(0u); +x_552 = lean_nat_dec_lt(x_551, x_547); +lean_dec(x_547); lean_inc(x_1); -x_569 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_569, 0, x_1); -if (x_568 == 0) +x_553 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_553, 0, x_1); +if (x_552 == 0) { -lean_object* x_570; lean_object* x_571; lean_object* x_572; +lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_dec(x_5); -x_570 = l_Lean_instInhabitedExpr; -x_571 = l_outOfBounds___rarg(x_570); +x_554 = l_Lean_instInhabitedExpr; +x_555 = l_outOfBounds___rarg(x_554); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -10139,30 +10135,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_571); -x_572 = l_Lean_Meta_Grind_internalize(x_571, x_2, x_569, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_545); -if (lean_obj_tag(x_572) == 0) +lean_inc(x_555); +x_556 = l_Lean_Meta_Grind_internalize(x_555, x_2, x_553, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_531); +if (lean_obj_tag(x_556) == 0) { -lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; -x_573 = lean_ctor_get(x_572, 1); -lean_inc(x_573); -lean_dec(x_572); +lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; +x_557 = lean_ctor_get(x_556, 1); +lean_inc(x_557); +lean_dec(x_556); lean_inc(x_1); -x_574 = l_Lean_Meta_Grind_registerParent(x_1, x_571, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_573); -lean_dec(x_571); -x_575 = lean_ctor_get(x_574, 0); -lean_inc(x_575); -x_576 = lean_ctor_get(x_574, 1); -lean_inc(x_576); -lean_dec(x_574); -x_577 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_575, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_576); -lean_dec(x_575); -return x_577; +x_558 = l_Lean_Meta_Grind_registerParent(x_1, x_555, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_557); +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 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_559, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_560); +lean_dec(x_559); +return x_561; } else { -uint8_t x_578; -lean_dec(x_571); +uint8_t x_562; +lean_dec(x_555); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10174,30 +10169,30 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_578 = !lean_is_exclusive(x_572); -if (x_578 == 0) +x_562 = !lean_is_exclusive(x_556); +if (x_562 == 0) { -return x_572; +return x_556; } else { -lean_object* x_579; lean_object* x_580; lean_object* x_581; -x_579 = lean_ctor_get(x_572, 0); -x_580 = lean_ctor_get(x_572, 1); -lean_inc(x_580); -lean_inc(x_579); -lean_dec(x_572); -x_581 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_581, 0, x_579); -lean_ctor_set(x_581, 1, x_580); -return x_581; +lean_object* x_563; lean_object* x_564; lean_object* x_565; +x_563 = lean_ctor_get(x_556, 0); +x_564 = lean_ctor_get(x_556, 1); +lean_inc(x_564); +lean_inc(x_563); +lean_dec(x_556); +x_565 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_565, 0, x_563); +lean_ctor_set(x_565, 1, x_564); +return x_565; } } } else { -lean_object* x_582; lean_object* x_583; -x_582 = lean_array_fget(x_5, x_567); +lean_object* x_566; lean_object* x_567; +x_566 = lean_array_fget(x_5, x_551); lean_dec(x_5); lean_inc(x_14); lean_inc(x_13); @@ -10208,30 +10203,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_582); -x_583 = l_Lean_Meta_Grind_internalize(x_582, x_2, x_569, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_545); -if (lean_obj_tag(x_583) == 0) -{ -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_583, 1); -lean_inc(x_584); -lean_dec(x_583); -lean_inc(x_1); -x_585 = l_Lean_Meta_Grind_registerParent(x_1, x_582, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_584); -lean_dec(x_582); -x_586 = lean_ctor_get(x_585, 0); -lean_inc(x_586); -x_587 = lean_ctor_get(x_585, 1); -lean_inc(x_587); -lean_dec(x_585); -x_588 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_586, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_587); -lean_dec(x_586); -return x_588; +lean_inc(x_566); +x_567 = l_Lean_Meta_Grind_internalize(x_566, x_2, x_553, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_531); +if (lean_obj_tag(x_567) == 0) +{ +lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; +x_568 = lean_ctor_get(x_567, 1); +lean_inc(x_568); +lean_dec(x_567); +lean_inc(x_1); +x_569 = l_Lean_Meta_Grind_registerParent(x_1, x_566, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_568); +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); +x_572 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_570, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_571); +lean_dec(x_570); +return x_572; } else { -uint8_t x_589; -lean_dec(x_582); +uint8_t x_573; +lean_dec(x_566); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10243,35 +10237,35 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_589 = !lean_is_exclusive(x_583); -if (x_589 == 0) +x_573 = !lean_is_exclusive(x_567); +if (x_573 == 0) { -return x_583; +return x_567; } else { -lean_object* x_590; lean_object* x_591; lean_object* x_592; -x_590 = lean_ctor_get(x_583, 0); -x_591 = lean_ctor_get(x_583, 1); -lean_inc(x_591); -lean_inc(x_590); -lean_dec(x_583); -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_574; lean_object* x_575; lean_object* x_576; +x_574 = lean_ctor_get(x_567, 0); +x_575 = lean_ctor_get(x_567, 1); +lean_inc(x_575); +lean_inc(x_574); +lean_dec(x_567); +x_576 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_576, 0, x_574); +lean_ctor_set(x_576, 1, x_575); +return x_576; } } } } } -block_559: +block_543: { -lean_object* x_548; lean_object* x_549; -lean_dec(x_547); +lean_object* x_534; lean_object* x_535; +lean_dec(x_533); lean_inc(x_1); -x_548 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_548, 0, x_1); +x_534 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_534, 0, x_1); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -10282,30 +10276,24 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_549 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_548, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_545); -if (lean_obj_tag(x_549) == 0) +x_535 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_534, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_531); +if (lean_obj_tag(x_535) == 0) { -lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; -x_550 = lean_ctor_get(x_549, 1); -lean_inc(x_550); -lean_dec(x_549); -lean_inc(x_1); -x_551 = l_Lean_Meta_Grind_registerParent(x_1, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_550); -lean_dec(x_4); -x_552 = lean_ctor_get(x_551, 0); -lean_inc(x_552); -x_553 = lean_ctor_get(x_551, 1); -lean_inc(x_553); -lean_dec(x_551); -x_554 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_5, x_1, x_2, x_546, x_552, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_553); -lean_dec(x_552); +lean_object* x_536; lean_object* x_537; lean_object* x_538; +x_536 = lean_ctor_get(x_535, 0); +lean_inc(x_536); +x_537 = lean_ctor_get(x_535, 1); +lean_inc(x_537); +lean_dec(x_535); +x_538 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_1, x_4, x_5, x_2, x_532, x_536, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_537); +lean_dec(x_536); lean_dec(x_5); -return x_554; +return x_538; } else { -uint8_t x_555; -lean_dec(x_546); +uint8_t x_539; +lean_dec(x_532); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10318,30 +10306,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_555 = !lean_is_exclusive(x_549); -if (x_555 == 0) +x_539 = !lean_is_exclusive(x_535); +if (x_539 == 0) { -return x_549; +return x_535; } else { -lean_object* x_556; lean_object* x_557; lean_object* x_558; -x_556 = lean_ctor_get(x_549, 0); -x_557 = lean_ctor_get(x_549, 1); -lean_inc(x_557); -lean_inc(x_556); -lean_dec(x_549); -x_558 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_558, 0, x_556); -lean_ctor_set(x_558, 1, x_557); -return x_558; +lean_object* x_540; lean_object* x_541; lean_object* x_542; +x_540 = lean_ctor_get(x_535, 0); +x_541 = lean_ctor_get(x_535, 1); +lean_inc(x_541); +lean_inc(x_540); +lean_dec(x_535); +x_542 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_542, 0, x_540); +lean_ctor_set(x_542, 1, x_541); +return x_542; } } } } else { -uint8_t x_593; +uint8_t x_577; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10355,29 +10343,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_593 = !lean_is_exclusive(x_544); -if (x_593 == 0) +x_577 = !lean_is_exclusive(x_530); +if (x_577 == 0) { -return x_544; +return x_530; } else { -lean_object* x_594; lean_object* x_595; lean_object* x_596; -x_594 = lean_ctor_get(x_544, 0); -x_595 = lean_ctor_get(x_544, 1); -lean_inc(x_595); -lean_inc(x_594); -lean_dec(x_544); -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_578; lean_object* x_579; lean_object* x_580; +x_578 = lean_ctor_get(x_530, 0); +x_579 = lean_ctor_get(x_530, 1); +lean_inc(x_579); +lean_inc(x_578); +lean_dec(x_530); +x_580 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_580, 0, x_578); +lean_ctor_set(x_580, 1, x_579); +return x_580; } } } else { -uint8_t x_597; +uint8_t x_581; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10391,29 +10379,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_597 = !lean_is_exclusive(x_542); -if (x_597 == 0) +x_581 = !lean_is_exclusive(x_528); +if (x_581 == 0) { -return x_542; +return x_528; } else { -lean_object* x_598; lean_object* x_599; lean_object* x_600; -x_598 = lean_ctor_get(x_542, 0); -x_599 = lean_ctor_get(x_542, 1); -lean_inc(x_599); -lean_inc(x_598); -lean_dec(x_542); -x_600 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_600, 0, x_598); -lean_ctor_set(x_600, 1, x_599); -return x_600; +lean_object* x_582; lean_object* x_583; lean_object* x_584; +x_582 = lean_ctor_get(x_528, 0); +x_583 = lean_ctor_get(x_528, 1); +lean_inc(x_583); +lean_inc(x_582); +lean_dec(x_528); +x_584 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_584, 0, x_582); +lean_ctor_set(x_584, 1, x_583); +return x_584; } } } else { -uint8_t x_601; +uint8_t x_585; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10427,42 +10415,42 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_601 = !lean_is_exclusive(x_540); -if (x_601 == 0) +x_585 = !lean_is_exclusive(x_526); +if (x_585 == 0) { -return x_540; +return x_526; } else { -lean_object* x_602; lean_object* x_603; lean_object* x_604; -x_602 = lean_ctor_get(x_540, 0); -x_603 = lean_ctor_get(x_540, 1); -lean_inc(x_603); -lean_inc(x_602); -lean_dec(x_540); -x_604 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_604, 0, x_602); -lean_ctor_set(x_604, 1, x_603); -return x_604; +lean_object* x_586; lean_object* x_587; lean_object* x_588; +x_586 = lean_ctor_get(x_526, 0); +x_587 = lean_ctor_get(x_526, 1); +lean_inc(x_587); +lean_inc(x_586); +lean_dec(x_526); +x_588 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_588, 0, x_586); +lean_ctor_set(x_588, 1, x_587); +return x_588; } } } case 10: { -lean_object* x_605; +lean_object* x_589; lean_dec(x_6); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); -x_605 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_605) == 0) +x_589 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_589) == 0) { -lean_object* x_606; lean_object* x_607; -x_606 = lean_ctor_get(x_605, 1); -lean_inc(x_606); -lean_dec(x_605); +lean_object* x_590; lean_object* x_591; +x_590 = lean_ctor_get(x_589, 1); +lean_inc(x_590); +lean_dec(x_589); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -10472,13 +10460,13 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_607 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_606); -if (lean_obj_tag(x_607) == 0) +x_591 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_590); +if (lean_obj_tag(x_591) == 0) { -lean_object* x_608; lean_object* x_609; -x_608 = lean_ctor_get(x_607, 1); -lean_inc(x_608); -lean_dec(x_607); +lean_object* x_592; lean_object* x_593; +x_592 = lean_ctor_get(x_591, 1); +lean_inc(x_592); +lean_dec(x_591); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -10489,62 +10477,62 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_609 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_608); -if (lean_obj_tag(x_609) == 0) +x_593 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_592); +if (lean_obj_tag(x_593) == 0) { -lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_625; uint8_t x_626; -x_610 = lean_ctor_get(x_609, 1); -lean_inc(x_610); -lean_dec(x_609); +lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_607; uint8_t x_608; +x_594 = lean_ctor_get(x_593, 1); +lean_inc(x_594); +lean_dec(x_593); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_611 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); -lean_closure_set(x_611, 0, x_1); -lean_closure_set(x_611, 1, x_2); -lean_closure_set(x_611, 2, x_3); -x_625 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; -x_626 = l_Lean_Expr_isConstOf(x_4, x_625); -if (x_626 == 0) +x_595 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); +lean_closure_set(x_595, 0, x_1); +lean_closure_set(x_595, 1, x_2); +lean_closure_set(x_595, 2, x_3); +x_607 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; +x_608 = l_Lean_Expr_isConstOf(x_4, x_607); +if (x_608 == 0) { -lean_object* x_627; +lean_object* x_609; lean_dec(x_3); -x_627 = lean_box(0); -x_612 = x_627; -goto block_624; +x_609 = lean_box(0); +x_596 = x_609; +goto block_606; } else { -lean_object* x_628; lean_object* x_629; uint8_t x_630; -x_628 = lean_array_get_size(x_5); -x_629 = lean_unsigned_to_nat(2u); -x_630 = lean_nat_dec_eq(x_628, x_629); -if (x_630 == 0) +lean_object* x_610; lean_object* x_611; uint8_t x_612; +x_610 = lean_array_get_size(x_5); +x_611 = lean_unsigned_to_nat(2u); +x_612 = lean_nat_dec_eq(x_610, x_611); +if (x_612 == 0) { -lean_object* x_631; -lean_dec(x_628); +lean_object* x_613; +lean_dec(x_610); lean_dec(x_3); -x_631 = lean_box(0); -x_612 = x_631; -goto block_624; +x_613 = lean_box(0); +x_596 = x_613; +goto block_606; } else { -lean_object* x_632; uint8_t x_633; lean_object* x_634; -lean_dec(x_611); +lean_object* x_614; uint8_t x_615; lean_object* x_616; +lean_dec(x_595); lean_dec(x_4); -x_632 = lean_unsigned_to_nat(0u); -x_633 = lean_nat_dec_lt(x_632, x_628); -lean_dec(x_628); +x_614 = lean_unsigned_to_nat(0u); +x_615 = lean_nat_dec_lt(x_614, x_610); +lean_dec(x_610); lean_inc(x_1); -x_634 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_634, 0, x_1); -if (x_633 == 0) +x_616 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_616, 0, x_1); +if (x_615 == 0) { -lean_object* x_635; lean_object* x_636; lean_object* x_637; +lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_dec(x_5); -x_635 = l_Lean_instInhabitedExpr; -x_636 = l_outOfBounds___rarg(x_635); +x_617 = l_Lean_instInhabitedExpr; +x_618 = l_outOfBounds___rarg(x_617); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -10554,30 +10542,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_636); -x_637 = l_Lean_Meta_Grind_internalize(x_636, x_2, x_634, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_610); -if (lean_obj_tag(x_637) == 0) +lean_inc(x_618); +x_619 = l_Lean_Meta_Grind_internalize(x_618, x_2, x_616, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_594); +if (lean_obj_tag(x_619) == 0) { -lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; -x_638 = lean_ctor_get(x_637, 1); -lean_inc(x_638); -lean_dec(x_637); +lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; +x_620 = lean_ctor_get(x_619, 1); +lean_inc(x_620); +lean_dec(x_619); lean_inc(x_1); -x_639 = l_Lean_Meta_Grind_registerParent(x_1, x_636, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_638); -lean_dec(x_636); -x_640 = lean_ctor_get(x_639, 0); -lean_inc(x_640); -x_641 = lean_ctor_get(x_639, 1); -lean_inc(x_641); -lean_dec(x_639); -x_642 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_640, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_641); -lean_dec(x_640); -return x_642; +x_621 = l_Lean_Meta_Grind_registerParent(x_1, x_618, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_620); +x_622 = lean_ctor_get(x_621, 0); +lean_inc(x_622); +x_623 = lean_ctor_get(x_621, 1); +lean_inc(x_623); +lean_dec(x_621); +x_624 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_622, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_623); +lean_dec(x_622); +return x_624; } else { -uint8_t x_643; -lean_dec(x_636); +uint8_t x_625; +lean_dec(x_618); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10589,30 +10576,30 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_643 = !lean_is_exclusive(x_637); -if (x_643 == 0) +x_625 = !lean_is_exclusive(x_619); +if (x_625 == 0) { -return x_637; +return x_619; } else { -lean_object* x_644; lean_object* x_645; lean_object* x_646; -x_644 = lean_ctor_get(x_637, 0); -x_645 = lean_ctor_get(x_637, 1); -lean_inc(x_645); -lean_inc(x_644); -lean_dec(x_637); -x_646 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_646, 0, x_644); -lean_ctor_set(x_646, 1, x_645); -return x_646; +lean_object* x_626; lean_object* x_627; lean_object* x_628; +x_626 = lean_ctor_get(x_619, 0); +x_627 = lean_ctor_get(x_619, 1); +lean_inc(x_627); +lean_inc(x_626); +lean_dec(x_619); +x_628 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_628, 0, x_626); +lean_ctor_set(x_628, 1, x_627); +return x_628; } } } else { -lean_object* x_647; lean_object* x_648; -x_647 = lean_array_fget(x_5, x_632); +lean_object* x_629; lean_object* x_630; +x_629 = lean_array_fget(x_5, x_614); lean_dec(x_5); lean_inc(x_14); lean_inc(x_13); @@ -10623,30 +10610,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_647); -x_648 = l_Lean_Meta_Grind_internalize(x_647, x_2, x_634, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_610); -if (lean_obj_tag(x_648) == 0) +lean_inc(x_629); +x_630 = l_Lean_Meta_Grind_internalize(x_629, x_2, x_616, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_594); +if (lean_obj_tag(x_630) == 0) { -lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; -x_649 = lean_ctor_get(x_648, 1); -lean_inc(x_649); -lean_dec(x_648); +lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; +x_631 = lean_ctor_get(x_630, 1); +lean_inc(x_631); +lean_dec(x_630); lean_inc(x_1); -x_650 = l_Lean_Meta_Grind_registerParent(x_1, x_647, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_649); -lean_dec(x_647); -x_651 = lean_ctor_get(x_650, 0); -lean_inc(x_651); -x_652 = lean_ctor_get(x_650, 1); -lean_inc(x_652); -lean_dec(x_650); -x_653 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_651, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_652); -lean_dec(x_651); -return x_653; +x_632 = l_Lean_Meta_Grind_registerParent(x_1, x_629, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_631); +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_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_633, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_634); +lean_dec(x_633); +return x_635; } else { -uint8_t x_654; -lean_dec(x_647); +uint8_t x_636; +lean_dec(x_629); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10658,35 +10644,35 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_654 = !lean_is_exclusive(x_648); -if (x_654 == 0) +x_636 = !lean_is_exclusive(x_630); +if (x_636 == 0) { -return x_648; +return x_630; } else { -lean_object* x_655; lean_object* x_656; lean_object* x_657; -x_655 = lean_ctor_get(x_648, 0); -x_656 = lean_ctor_get(x_648, 1); -lean_inc(x_656); -lean_inc(x_655); -lean_dec(x_648); -x_657 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_657, 0, x_655); -lean_ctor_set(x_657, 1, x_656); -return x_657; +lean_object* x_637; lean_object* x_638; lean_object* x_639; +x_637 = lean_ctor_get(x_630, 0); +x_638 = lean_ctor_get(x_630, 1); +lean_inc(x_638); +lean_inc(x_637); +lean_dec(x_630); +x_639 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_639, 0, x_637); +lean_ctor_set(x_639, 1, x_638); +return x_639; } } } } } -block_624: +block_606: { -lean_object* x_613; lean_object* x_614; -lean_dec(x_612); +lean_object* x_597; lean_object* x_598; +lean_dec(x_596); lean_inc(x_1); -x_613 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_613, 0, x_1); +x_597 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_597, 0, x_1); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -10697,30 +10683,24 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_614 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_613, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_610); -if (lean_obj_tag(x_614) == 0) +x_598 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_597, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_594); +if (lean_obj_tag(x_598) == 0) { -lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; -x_615 = lean_ctor_get(x_614, 1); -lean_inc(x_615); -lean_dec(x_614); -lean_inc(x_1); -x_616 = l_Lean_Meta_Grind_registerParent(x_1, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_615); -lean_dec(x_4); -x_617 = lean_ctor_get(x_616, 0); -lean_inc(x_617); -x_618 = lean_ctor_get(x_616, 1); -lean_inc(x_618); -lean_dec(x_616); -x_619 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_5, x_1, x_2, x_611, x_617, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_618); -lean_dec(x_617); +lean_object* x_599; lean_object* x_600; lean_object* x_601; +x_599 = lean_ctor_get(x_598, 0); +lean_inc(x_599); +x_600 = lean_ctor_get(x_598, 1); +lean_inc(x_600); +lean_dec(x_598); +x_601 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_1, x_4, x_5, x_2, x_595, x_599, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_600); +lean_dec(x_599); lean_dec(x_5); -return x_619; +return x_601; } else { -uint8_t x_620; -lean_dec(x_611); +uint8_t x_602; +lean_dec(x_595); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10733,30 +10713,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_620 = !lean_is_exclusive(x_614); -if (x_620 == 0) +x_602 = !lean_is_exclusive(x_598); +if (x_602 == 0) { -return x_614; +return x_598; } else { -lean_object* x_621; lean_object* x_622; lean_object* x_623; -x_621 = lean_ctor_get(x_614, 0); -x_622 = lean_ctor_get(x_614, 1); -lean_inc(x_622); -lean_inc(x_621); -lean_dec(x_614); -x_623 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_623, 0, x_621); -lean_ctor_set(x_623, 1, x_622); -return x_623; +lean_object* x_603; lean_object* x_604; lean_object* x_605; +x_603 = lean_ctor_get(x_598, 0); +x_604 = lean_ctor_get(x_598, 1); +lean_inc(x_604); +lean_inc(x_603); +lean_dec(x_598); +x_605 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_605, 0, x_603); +lean_ctor_set(x_605, 1, x_604); +return x_605; } } } } else { -uint8_t x_658; +uint8_t x_640; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10770,29 +10750,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_658 = !lean_is_exclusive(x_609); -if (x_658 == 0) +x_640 = !lean_is_exclusive(x_593); +if (x_640 == 0) { -return x_609; +return x_593; } else { -lean_object* x_659; lean_object* x_660; lean_object* x_661; -x_659 = lean_ctor_get(x_609, 0); -x_660 = lean_ctor_get(x_609, 1); -lean_inc(x_660); -lean_inc(x_659); -lean_dec(x_609); -x_661 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_661, 0, x_659); -lean_ctor_set(x_661, 1, x_660); -return x_661; +lean_object* x_641; lean_object* x_642; lean_object* x_643; +x_641 = lean_ctor_get(x_593, 0); +x_642 = lean_ctor_get(x_593, 1); +lean_inc(x_642); +lean_inc(x_641); +lean_dec(x_593); +x_643 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_643, 0, x_641); +lean_ctor_set(x_643, 1, x_642); +return x_643; } } } else { -uint8_t x_662; +uint8_t x_644; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10806,29 +10786,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_662 = !lean_is_exclusive(x_607); -if (x_662 == 0) +x_644 = !lean_is_exclusive(x_591); +if (x_644 == 0) { -return x_607; +return x_591; } else { -lean_object* x_663; lean_object* x_664; lean_object* x_665; -x_663 = lean_ctor_get(x_607, 0); -x_664 = lean_ctor_get(x_607, 1); -lean_inc(x_664); -lean_inc(x_663); -lean_dec(x_607); -x_665 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_665, 0, x_663); -lean_ctor_set(x_665, 1, x_664); -return x_665; +lean_object* x_645; lean_object* x_646; lean_object* x_647; +x_645 = lean_ctor_get(x_591, 0); +x_646 = lean_ctor_get(x_591, 1); +lean_inc(x_646); +lean_inc(x_645); +lean_dec(x_591); +x_647 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_647, 0, x_645); +lean_ctor_set(x_647, 1, x_646); +return x_647; } } } else { -uint8_t x_666; +uint8_t x_648; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -10842,42 +10822,42 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_666 = !lean_is_exclusive(x_605); -if (x_666 == 0) +x_648 = !lean_is_exclusive(x_589); +if (x_648 == 0) { -return x_605; +return x_589; } else { -lean_object* x_667; lean_object* x_668; lean_object* x_669; -x_667 = lean_ctor_get(x_605, 0); -x_668 = lean_ctor_get(x_605, 1); -lean_inc(x_668); -lean_inc(x_667); -lean_dec(x_605); -x_669 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_669, 0, x_667); -lean_ctor_set(x_669, 1, x_668); -return x_669; +lean_object* x_649; lean_object* x_650; lean_object* x_651; +x_649 = lean_ctor_get(x_589, 0); +x_650 = lean_ctor_get(x_589, 1); +lean_inc(x_650); +lean_inc(x_649); +lean_dec(x_589); +x_651 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_651, 0, x_649); +lean_ctor_set(x_651, 1, x_650); +return x_651; } } } default: { -lean_object* x_670; +lean_object* x_652; lean_dec(x_6); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_1); -x_670 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_670) == 0) +x_652 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate(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_652) == 0) { -lean_object* x_671; lean_object* x_672; -x_671 = lean_ctor_get(x_670, 1); -lean_inc(x_671); -lean_dec(x_670); +lean_object* x_653; lean_object* x_654; +x_653 = lean_ctor_get(x_652, 1); +lean_inc(x_653); +lean_dec(x_652); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -10887,13 +10867,13 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_1); -x_672 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_671); -if (lean_obj_tag(x_672) == 0) +x_654 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_653); +if (lean_obj_tag(x_654) == 0) { -lean_object* x_673; lean_object* x_674; -x_673 = lean_ctor_get(x_672, 1); -lean_inc(x_673); -lean_dec(x_672); +lean_object* x_655; lean_object* x_656; +x_655 = lean_ctor_get(x_654, 1); +lean_inc(x_655); +lean_dec(x_654); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -10904,62 +10884,62 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_674 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_673); -if (lean_obj_tag(x_674) == 0) +x_656 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns(x_4, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_655); +if (lean_obj_tag(x_656) == 0) { -lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_690; uint8_t x_691; -x_675 = lean_ctor_get(x_674, 1); -lean_inc(x_675); -lean_dec(x_674); +lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_670; uint8_t x_671; +x_657 = lean_ctor_get(x_656, 1); +lean_inc(x_657); +lean_dec(x_656); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_676 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); -lean_closure_set(x_676, 0, x_1); -lean_closure_set(x_676, 1, x_2); -lean_closure_set(x_676, 2, x_3); -x_690 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; -x_691 = l_Lean_Expr_isConstOf(x_4, x_690); -if (x_691 == 0) +x_658 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1___boxed), 13, 3); +lean_closure_set(x_658, 0, x_1); +lean_closure_set(x_658, 1, x_2); +lean_closure_set(x_658, 2, x_3); +x_670 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___closed__2; +x_671 = l_Lean_Expr_isConstOf(x_4, x_670); +if (x_671 == 0) { -lean_object* x_692; +lean_object* x_672; lean_dec(x_3); -x_692 = lean_box(0); -x_677 = x_692; -goto block_689; +x_672 = lean_box(0); +x_659 = x_672; +goto block_669; } else { -lean_object* x_693; lean_object* x_694; uint8_t x_695; -x_693 = lean_array_get_size(x_5); -x_694 = lean_unsigned_to_nat(2u); -x_695 = lean_nat_dec_eq(x_693, x_694); -if (x_695 == 0) +lean_object* x_673; lean_object* x_674; uint8_t x_675; +x_673 = lean_array_get_size(x_5); +x_674 = lean_unsigned_to_nat(2u); +x_675 = lean_nat_dec_eq(x_673, x_674); +if (x_675 == 0) { -lean_object* x_696; -lean_dec(x_693); +lean_object* x_676; +lean_dec(x_673); lean_dec(x_3); -x_696 = lean_box(0); -x_677 = x_696; -goto block_689; +x_676 = lean_box(0); +x_659 = x_676; +goto block_669; } else { -lean_object* x_697; uint8_t x_698; lean_object* x_699; -lean_dec(x_676); +lean_object* x_677; uint8_t x_678; lean_object* x_679; +lean_dec(x_658); lean_dec(x_4); -x_697 = lean_unsigned_to_nat(0u); -x_698 = lean_nat_dec_lt(x_697, x_693); -lean_dec(x_693); +x_677 = lean_unsigned_to_nat(0u); +x_678 = lean_nat_dec_lt(x_677, x_673); +lean_dec(x_673); lean_inc(x_1); -x_699 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_699, 0, x_1); -if (x_698 == 0) +x_679 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_679, 0, x_1); +if (x_678 == 0) { -lean_object* x_700; lean_object* x_701; lean_object* x_702; +lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_dec(x_5); -x_700 = l_Lean_instInhabitedExpr; -x_701 = l_outOfBounds___rarg(x_700); +x_680 = l_Lean_instInhabitedExpr; +x_681 = l_outOfBounds___rarg(x_680); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -10969,30 +10949,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_701); -x_702 = l_Lean_Meta_Grind_internalize(x_701, x_2, x_699, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_675); -if (lean_obj_tag(x_702) == 0) +lean_inc(x_681); +x_682 = l_Lean_Meta_Grind_internalize(x_681, x_2, x_679, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_657); +if (lean_obj_tag(x_682) == 0) { -lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; -x_703 = lean_ctor_get(x_702, 1); -lean_inc(x_703); -lean_dec(x_702); +lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; +x_683 = lean_ctor_get(x_682, 1); +lean_inc(x_683); +lean_dec(x_682); lean_inc(x_1); -x_704 = l_Lean_Meta_Grind_registerParent(x_1, x_701, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_703); -lean_dec(x_701); -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 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_705, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_706); -lean_dec(x_705); -return x_707; +x_684 = l_Lean_Meta_Grind_registerParent(x_1, x_681, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_683); +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); +x_687 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_685, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_686); +lean_dec(x_685); +return x_687; } else { -uint8_t x_708; -lean_dec(x_701); +uint8_t x_688; +lean_dec(x_681); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -11004,30 +10983,30 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_708 = !lean_is_exclusive(x_702); -if (x_708 == 0) +x_688 = !lean_is_exclusive(x_682); +if (x_688 == 0) { -return x_702; +return x_682; } else { -lean_object* x_709; lean_object* x_710; lean_object* x_711; -x_709 = lean_ctor_get(x_702, 0); -x_710 = lean_ctor_get(x_702, 1); -lean_inc(x_710); -lean_inc(x_709); -lean_dec(x_702); -x_711 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_711, 0, x_709); -lean_ctor_set(x_711, 1, x_710); -return x_711; +lean_object* x_689; lean_object* x_690; lean_object* x_691; +x_689 = lean_ctor_get(x_682, 0); +x_690 = lean_ctor_get(x_682, 1); +lean_inc(x_690); +lean_inc(x_689); +lean_dec(x_682); +x_691 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_691, 0, x_689); +lean_ctor_set(x_691, 1, x_690); +return x_691; } } } else { -lean_object* x_712; lean_object* x_713; -x_712 = lean_array_fget(x_5, x_697); +lean_object* x_692; lean_object* x_693; +x_692 = lean_array_fget(x_5, x_677); lean_dec(x_5); lean_inc(x_14); lean_inc(x_13); @@ -11038,30 +11017,29 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); -lean_inc(x_712); -x_713 = l_Lean_Meta_Grind_internalize(x_712, x_2, x_699, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_675); -if (lean_obj_tag(x_713) == 0) +lean_inc(x_692); +x_693 = l_Lean_Meta_Grind_internalize(x_692, x_2, x_679, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_657); +if (lean_obj_tag(x_693) == 0) { -lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; -x_714 = lean_ctor_get(x_713, 1); -lean_inc(x_714); -lean_dec(x_713); +lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; +x_694 = lean_ctor_get(x_693, 1); +lean_inc(x_694); +lean_dec(x_693); lean_inc(x_1); -x_715 = l_Lean_Meta_Grind_registerParent(x_1, x_712, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_714); -lean_dec(x_712); -x_716 = lean_ctor_get(x_715, 0); -lean_inc(x_716); -x_717 = lean_ctor_get(x_715, 1); -lean_inc(x_717); -lean_dec(x_715); -x_718 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_716, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_717); -lean_dec(x_716); -return x_718; +x_695 = l_Lean_Meta_Grind_registerParent(x_1, x_692, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_694); +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 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__1(x_1, x_2, x_3, x_696, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_697); +lean_dec(x_696); +return x_698; } else { -uint8_t x_719; -lean_dec(x_712); +uint8_t x_699; +lean_dec(x_692); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -11073,35 +11051,35 @@ lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_719 = !lean_is_exclusive(x_713); -if (x_719 == 0) +x_699 = !lean_is_exclusive(x_693); +if (x_699 == 0) { -return x_713; +return x_693; } else { -lean_object* x_720; lean_object* x_721; lean_object* x_722; -x_720 = lean_ctor_get(x_713, 0); -x_721 = lean_ctor_get(x_713, 1); -lean_inc(x_721); -lean_inc(x_720); -lean_dec(x_713); -x_722 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_722, 0, x_720); -lean_ctor_set(x_722, 1, x_721); -return x_722; +lean_object* x_700; lean_object* x_701; lean_object* x_702; +x_700 = lean_ctor_get(x_693, 0); +x_701 = lean_ctor_get(x_693, 1); +lean_inc(x_701); +lean_inc(x_700); +lean_dec(x_693); +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; } } } } } -block_689: +block_669: { -lean_object* x_678; lean_object* x_679; -lean_dec(x_677); +lean_object* x_660; lean_object* x_661; +lean_dec(x_659); lean_inc(x_1); -x_678 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_678, 0, x_1); +x_660 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_660, 0, x_1); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -11112,30 +11090,24 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_2); lean_inc(x_4); -x_679 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_678, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_675); -if (lean_obj_tag(x_679) == 0) +x_661 = l_Lean_Meta_Grind_internalize(x_4, x_2, x_660, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_657); +if (lean_obj_tag(x_661) == 0) { -lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; -x_680 = lean_ctor_get(x_679, 1); -lean_inc(x_680); -lean_dec(x_679); -lean_inc(x_1); -x_681 = l_Lean_Meta_Grind_registerParent(x_1, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_680); -lean_dec(x_4); -x_682 = lean_ctor_get(x_681, 0); -lean_inc(x_682); -x_683 = lean_ctor_get(x_681, 1); -lean_inc(x_683); -lean_dec(x_681); -x_684 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_5, x_1, x_2, x_676, x_682, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_683); -lean_dec(x_682); +lean_object* x_662; lean_object* x_663; lean_object* x_664; +x_662 = lean_ctor_get(x_661, 0); +lean_inc(x_662); +x_663 = lean_ctor_get(x_661, 1); +lean_inc(x_663); +lean_dec(x_661); +x_664 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___lambda__2(x_1, x_4, x_5, x_2, x_658, x_662, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_663); +lean_dec(x_662); lean_dec(x_5); -return x_684; +return x_664; } else { -uint8_t x_685; -lean_dec(x_676); +uint8_t x_665; +lean_dec(x_658); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -11148,30 +11120,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_685 = !lean_is_exclusive(x_679); -if (x_685 == 0) +x_665 = !lean_is_exclusive(x_661); +if (x_665 == 0) { -return x_679; +return x_661; } else { -lean_object* x_686; lean_object* x_687; lean_object* x_688; -x_686 = lean_ctor_get(x_679, 0); -x_687 = lean_ctor_get(x_679, 1); -lean_inc(x_687); -lean_inc(x_686); -lean_dec(x_679); -x_688 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_688, 0, x_686); -lean_ctor_set(x_688, 1, x_687); -return x_688; +lean_object* x_666; lean_object* x_667; lean_object* x_668; +x_666 = lean_ctor_get(x_661, 0); +x_667 = lean_ctor_get(x_661, 1); +lean_inc(x_667); +lean_inc(x_666); +lean_dec(x_661); +x_668 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_668, 0, x_666); +lean_ctor_set(x_668, 1, x_667); +return x_668; } } } } else { -uint8_t x_723; +uint8_t x_703; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -11185,29 +11157,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_723 = !lean_is_exclusive(x_674); -if (x_723 == 0) +x_703 = !lean_is_exclusive(x_656); +if (x_703 == 0) { -return x_674; +return x_656; } else { -lean_object* x_724; lean_object* x_725; lean_object* x_726; -x_724 = lean_ctor_get(x_674, 0); -x_725 = lean_ctor_get(x_674, 1); -lean_inc(x_725); -lean_inc(x_724); -lean_dec(x_674); -x_726 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_726, 0, x_724); -lean_ctor_set(x_726, 1, x_725); -return x_726; +lean_object* x_704; lean_object* x_705; lean_object* x_706; +x_704 = lean_ctor_get(x_656, 0); +x_705 = lean_ctor_get(x_656, 1); +lean_inc(x_705); +lean_inc(x_704); +lean_dec(x_656); +x_706 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_706, 0, x_704); +lean_ctor_set(x_706, 1, x_705); +return x_706; } } } else { -uint8_t x_727; +uint8_t x_707; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -11221,29 +11193,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_727 = !lean_is_exclusive(x_672); -if (x_727 == 0) +x_707 = !lean_is_exclusive(x_654); +if (x_707 == 0) { -return x_672; +return x_654; } else { -lean_object* x_728; lean_object* x_729; lean_object* x_730; -x_728 = lean_ctor_get(x_672, 0); -x_729 = lean_ctor_get(x_672, 1); -lean_inc(x_729); -lean_inc(x_728); -lean_dec(x_672); -x_730 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_730, 0, x_728); -lean_ctor_set(x_730, 1, x_729); -return x_730; +lean_object* x_708; lean_object* x_709; lean_object* x_710; +x_708 = lean_ctor_get(x_654, 0); +x_709 = lean_ctor_get(x_654, 1); +lean_inc(x_709); +lean_inc(x_708); +lean_dec(x_654); +x_710 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_710, 0, x_708); +lean_ctor_set(x_710, 1, x_709); +return x_710; } } } else { -uint8_t x_731; +uint8_t x_711; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -11257,23 +11229,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_731 = !lean_is_exclusive(x_670); -if (x_731 == 0) +x_711 = !lean_is_exclusive(x_652); +if (x_711 == 0) { -return x_670; +return x_652; } else { -lean_object* x_732; lean_object* x_733; lean_object* x_734; -x_732 = lean_ctor_get(x_670, 0); -x_733 = lean_ctor_get(x_670, 1); -lean_inc(x_733); -lean_inc(x_732); -lean_dec(x_670); -x_734 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_734, 0, x_732); -lean_ctor_set(x_734, 1, x_733); -return x_734; +lean_object* x_712; lean_object* x_713; lean_object* x_714; +x_712 = lean_ctor_get(x_652, 0); +x_713 = lean_ctor_get(x_652, 1); +lean_inc(x_713); +lean_inc(x_712); +lean_dec(x_652); +x_714 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_714, 0, x_712); +lean_ctor_set(x_714, 1, x_713); +return x_714; } } } @@ -11318,7 +11290,7 @@ static lean_object* _init_l_Lean_Meta_Grind_internalize___lambda__2___closed__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; 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(157u); +x_3 = lean_unsigned_to_nat(158u); 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); @@ -11756,7 +11728,6 @@ lean_inc(x_63); lean_dec(x_62); lean_inc(x_1); x_64 = l_Lean_Meta_Grind_registerParent(x_1, x_51, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_63); -lean_dec(x_51); x_65 = lean_ctor_get(x_64, 1); lean_inc(x_65); lean_dec(x_64); @@ -11782,7 +11753,6 @@ lean_inc(x_68); lean_dec(x_67); lean_inc(x_1); x_69 = l_Lean_Meta_Grind_registerParent(x_1, x_52, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_68); -lean_dec(x_52); x_70 = lean_ctor_get(x_69, 1); lean_inc(x_70); lean_dec(x_69); @@ -15768,14 +15738,14 @@ lean_dec(x_4); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___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_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___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_15; -x_15 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___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_dec(x_5); -lean_dec(x_1); -return x_15; +lean_object* x_16; +x_16 = l_Lean_Expr_withAppAux___at_Lean_Meta_Grind_internalize___spec__2___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_6); +lean_dec(x_3); +return x_16; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_internalize___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) { @@ -15976,6 +15946,7 @@ lean_object* initialize_Lean_Meta_Match_MatchEqsExt(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_Canon(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Beta(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_Internalize(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) { @@ -16006,6 +15977,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Canon(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Grind_Beta(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_Arith_Internalize(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c index 30e4efbcbe86..d317374aeb05 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c @@ -1,6 +1,6 @@ // 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 Lean.Meta.Tactic.Grind.Split Lean.Meta.Tactic.Grind.Solve Lean.Meta.Tactic.Grind.SimpUtil +// 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 Lean.Meta.Tactic.Grind.Split Lean.Meta.Tactic.Grind.Solve Lean.Meta.Tactic.Grind.SimpUtil Lean.Meta.Tactic.Grind.Cases #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -252,63 +252,67 @@ uint8_t x_11; 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_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_12 = lean_ctor_get(x_10, 0); x_13 = l_Lean_Meta_Grind_mkParams___closed__3; -x_14 = l_Lean_Meta_Grind_mkParams___closed__6; -x_15 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_15, 0, x_1); -lean_ctor_set(x_15, 1, x_13); -lean_ctor_set(x_15, 2, x_14); -lean_ctor_set(x_15, 3, x_8); -lean_ctor_set(x_15, 4, x_12); -lean_ctor_set(x_10, 0, x_15); +x_14 = l_Lean_Meta_Grind_mkParams___closed__2; +x_15 = l_Lean_Meta_Grind_mkParams___closed__6; +x_16 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_16, 0, x_1); +lean_ctor_set(x_16, 1, x_13); +lean_ctor_set(x_16, 2, x_14); +lean_ctor_set(x_16, 3, x_15); +lean_ctor_set(x_16, 4, x_8); +lean_ctor_set(x_16, 5, x_12); +lean_ctor_set(x_10, 0, x_16); return x_10; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_16 = lean_ctor_get(x_10, 0); -x_17 = lean_ctor_get(x_10, 1); +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_10, 0); +x_18 = lean_ctor_get(x_10, 1); +lean_inc(x_18); lean_inc(x_17); -lean_inc(x_16); lean_dec(x_10); -x_18 = l_Lean_Meta_Grind_mkParams___closed__3; -x_19 = l_Lean_Meta_Grind_mkParams___closed__6; -x_20 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_20, 0, x_1); -lean_ctor_set(x_20, 1, x_18); -lean_ctor_set(x_20, 2, x_19); -lean_ctor_set(x_20, 3, x_8); -lean_ctor_set(x_20, 4, x_16); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_17); -return x_21; +x_19 = l_Lean_Meta_Grind_mkParams___closed__3; +x_20 = l_Lean_Meta_Grind_mkParams___closed__2; +x_21 = l_Lean_Meta_Grind_mkParams___closed__6; +x_22 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_22, 0, x_1); +lean_ctor_set(x_22, 1, x_19); +lean_ctor_set(x_22, 2, x_20); +lean_ctor_set(x_22, 3, x_21); +lean_ctor_set(x_22, 4, x_8); +lean_ctor_set(x_22, 5, x_17); +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 { -uint8_t x_22; +uint8_t x_24; lean_dec(x_8); lean_dec(x_1); -x_22 = !lean_is_exclusive(x_10); -if (x_22 == 0) +x_24 = !lean_is_exclusive(x_10); +if (x_24 == 0) { return x_10; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_10, 0); -x_24 = lean_ctor_get(x_10, 1); -lean_inc(x_24); -lean_inc(x_23); +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_dec(x_10); -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; +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; } } } @@ -1191,8 +1195,8 @@ 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_3, 4); -x_23 = lean_ctor_get(x_3, 3); +x_22 = lean_ctor_get(x_3, 5); +x_23 = lean_ctor_get(x_3, 4); x_24 = lean_ctor_get(x_3, 0); x_25 = l_Lean_Meta_Grind_mkMethods(x_4, x_7, x_8, x_9); x_26 = lean_ctor_get(x_25, 0); @@ -2259,7 +2263,7 @@ x_21 = l_Lean_Meta_Grind_mkENodeCore(x_3, x_14, x_15, x_16, x_5, x_6, x_7, x_8, x_22 = lean_ctor_get(x_21, 1); lean_inc(x_22); lean_dec(x_21); -x_23 = lean_ctor_get(x_4, 2); +x_23 = lean_ctor_get(x_4, 3); x_24 = lean_box(0); lean_inc(x_5); x_25 = l_Lean_PersistentArray_forIn___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___spec__2(x_23, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); @@ -4616,6 +4620,7 @@ lean_object* initialize_Lean_Meta_Tactic_Grind_EMatch(uint8_t builtin, lean_obje lean_object* initialize_Lean_Meta_Tactic_Grind_Split(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Solve(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_SimpUtil(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Grind_Cases(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; @@ -4660,6 +4665,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Grind_SimpUtil(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); l_Lean_Meta_Grind_mkParams___closed__1 = _init_l_Lean_Meta_Grind_mkParams___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_mkParams___closed__1); l_Lean_Meta_Grind_mkParams___closed__2 = _init_l_Lean_Meta_Grind_mkParams___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Proj.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Proj.c index 473678e22fe3..4730ebb0c42e 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Proj.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Proj.c @@ -421,7 +421,7 @@ uint8_t x_15; 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; +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 = l_Lean_Expr_appFn_x21(x_4); lean_inc(x_2); x_17 = l_Lean_Expr_app___override(x_16, x_2); @@ -432,9 +432,7 @@ x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); 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; lean_object* x_25; +lean_dec(x_4); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); @@ -500,47 +498,14 @@ return x_31; } else { -uint8_t x_32; -lean_dec(x_19); -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); -x_32 = !lean_is_exclusive(x_21); -if (x_32 == 0) -{ -return x_21; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_21, 0); -x_34 = lean_ctor_get(x_21, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_21); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; -} -} -} -else -{ -lean_object* x_36; -x_36 = 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_object* x_32; +x_32 = 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_2); -return x_36; +return x_32; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Proof.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Proof.c index 84d0d31b49d0..0b5fd1860280 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Proof.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Proof.c @@ -18,12 +18,11 @@ 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_mkEqCongrProof___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_Proof_0__Lean_Meta_Grind_mkEqProofCore___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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkNestedProofCongr___closed__3; -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; 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*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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_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___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_mkHCongrProof___closed__5; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); @@ -35,6 +34,8 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_ lean_object* l_Lean_mkApp7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__2; +lean_object* l_panic___at_Lean_Meta_Grind_foldEqc___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__1___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof___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___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__6; @@ -45,11 +46,10 @@ uint8_t l_Lean_RBNode_isRed___rarg(lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__3(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*); 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*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___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_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_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__2___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*); @@ -57,21 +57,18 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_ 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_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__2; uint8_t l_Lean_Meta_Grind_hasSameRoot(lean_object*, lean_object*, lean_object*); 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_Expr_cleanupAnnotations(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; +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof___closed__1; lean_object* l_Lean_Expr_appArg_x21(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___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_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_object* l_Lean_Meta_Grind_Goal_getENode(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_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___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*); @@ -79,6 +76,7 @@ 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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__3___closed__1; 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_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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_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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkTrans_x27(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -107,17 +105,18 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_G 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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__1___closed__1; +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__3; +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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* l_Lean_Expr_appArg(lean_object*, lean_object*); lean_object* l_outOfBounds___rarg(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); 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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__1___closed__8; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__4(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_mkHEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFnCleanup(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkCongrArg(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_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__2; +static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__4; extern lean_object* l_Lean_levelZero; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof___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_realizeEqProof(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*); @@ -134,18 +133,19 @@ 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_mkProofFrom___lambda__1___closed__3; uint8_t l_Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkNestedProofCongr___closed__1; -LEAN_EXPORT lean_object* l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isCongrDefaultProofTarget___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_mkCongrProof(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___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mkEqProofImpl___closed__1; +static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof_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_Expr_appFn_x21(lean_object*); extern lean_object* l_Lean_Meta_instMonadMetaM; -LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5(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__2; 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___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrDefaultProof_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_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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*); +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__5; 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_mkEqCongrProof___boxed(lean_object*, lean_object*, lean_object*, 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*); @@ -156,10 +156,8 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tact static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__1___closed__5; 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_object* l_Lean_Expr_constLevels_x21(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__1___closed__6; 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*); @@ -167,12 +165,14 @@ extern uint8_t l_Lean_Meta_instInhabitedCongrArgKind; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_realizeEqProof___boxed(lean_object*, lean_object*, 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_mkApp3(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_findCommon___spec__8(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*); 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; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof___closed__2; lean_object* l_Lean_Meta_mkEqRefl(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__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___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*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); @@ -185,13 +185,13 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_G 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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___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; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof___closed__3; +static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__4; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__1___closed__7; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__1___closed__3; -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__4; -LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___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_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*); @@ -204,19 +204,18 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_ LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof___spec__1(lean_object*); lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof(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_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___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__1___closed__2; -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*); +LEAN_EXPORT lean_object* l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrDefaultProof___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof___closed__4; lean_object* lean_string_append(lean_object*, lean_object*); 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*); +static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; 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*); 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*); -static lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___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_Proof_0__Lean_Meta_Grind_isCongrDefaultProofTarget_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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___closed__1; @@ -224,11 +223,10 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_G 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; 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*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof___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*); -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_mkHCongrProof___closed__7; +static lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__3; 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*); @@ -3498,63 +3496,7 @@ return x_61; } } } -static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___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_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___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_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___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_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___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_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__4; -x_2 = l_instInhabitedPUnit; -x_3 = l_instInhabitedOfMonad___rarg(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__5; -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; -} -} -LEAN_EXPORT lean_object* l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3597,7 +3539,7 @@ goto _start; } } } -static lean_object* _init_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* _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -3605,7 +3547,7 @@ x_1 = lean_mk_string_unchecked("Lean.Meta.Tactic.Grind.Proof", 28, 28); return x_1; } } -static lean_object* _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__2() { +static lean_object* _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__2() { _start: { lean_object* x_1; @@ -3613,7 +3555,7 @@ x_1 = lean_mk_string_unchecked("_private.Lean.Meta.Tactic.Grind.Proof.0.Lean.Met return x_1; } } -static lean_object* _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__3() { +static lean_object* _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__3() { _start: { lean_object* x_1; @@ -3621,20 +3563,20 @@ x_1 = lean_mk_string_unchecked("unreachable code has been reached", 33, 33); return x_1; } } -static lean_object* _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__4() { +static lean_object* _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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_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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__2; +x_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; +x_2 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__2; x_3 = lean_unsigned_to_nat(66u); x_4 = lean_unsigned_to_nat(35u); -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_5 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___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, lean_object* x_7, lean_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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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; @@ -3644,8 +3586,8 @@ lean_dec(x_1); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; -x_15 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__4; -x_16 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__4; +x_16 = l_panic___at_Lean_Meta_Grind_foldEqc___spec__2(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_16) == 0) { uint8_t x_17; @@ -3750,7 +3692,7 @@ return x_36; } } } -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* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -3780,7 +3722,7 @@ x_22 = lean_ctor_get(x_20, 0); x_23 = lean_ctor_get(x_20, 1); x_24 = lean_ctor_get(x_22, 7); lean_inc(x_24); -x_25 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6(x_2, x_24); +x_25 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5(x_2, x_24); lean_dec(x_24); if (lean_obj_tag(x_25) == 0) { @@ -3797,7 +3739,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_27 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1(x_22, x_3, x_15, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_23); +x_27 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1(x_22, x_3, x_15, x_26, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_23); if (lean_obj_tag(x_27) == 0) { lean_object* x_28; @@ -3932,7 +3874,7 @@ lean_inc(x_45); lean_dec(x_20); x_47 = lean_ctor_get(x_45, 7); lean_inc(x_47); -x_48 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6(x_2, x_47); +x_48 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5(x_2, x_47); lean_dec(x_47); if (lean_obj_tag(x_48) == 0) { @@ -3948,7 +3890,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_50 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1(x_45, x_3, x_15, x_49, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_46); +x_50 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1(x_45, x_3, x_15, x_49, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_46); if (lean_obj_tag(x_50) == 0) { lean_object* x_51; @@ -4137,7 +4079,7 @@ if (lean_is_exclusive(x_75)) { } x_79 = lean_ctor_get(x_76, 7); lean_inc(x_79); -x_80 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6(x_2, x_79); +x_80 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5(x_2, x_79); lean_dec(x_79); if (lean_obj_tag(x_80) == 0) { @@ -4153,7 +4095,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_3); -x_82 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1(x_76, x_3, x_71, x_81, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_77); +x_82 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1(x_76, x_3, x_71, x_81, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_77); if (lean_obj_tag(x_82) == 0) { lean_object* x_83; @@ -4319,7 +4261,7 @@ return x_103; } } } -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* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___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: { uint8_t x_13; @@ -4349,7 +4291,7 @@ x_21 = lean_ctor_get(x_19, 0); x_22 = lean_ctor_get(x_19, 1); x_23 = lean_ctor_get(x_21, 7); lean_inc(x_23); -x_24 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6(x_1, x_23); +x_24 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5(x_1, x_23); lean_dec(x_23); if (lean_obj_tag(x_24) == 0) { @@ -4366,7 +4308,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_26 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1(x_21, x_2, x_14, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); +x_26 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1(x_21, x_2, x_14, x_25, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); if (lean_obj_tag(x_26) == 0) { lean_object* x_27; @@ -4501,7 +4443,7 @@ lean_inc(x_44); lean_dec(x_19); x_46 = lean_ctor_get(x_44, 7); lean_inc(x_46); -x_47 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6(x_1, x_46); +x_47 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5(x_1, x_46); lean_dec(x_46); if (lean_obj_tag(x_47) == 0) { @@ -4517,7 +4459,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_49 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1(x_44, x_2, x_14, x_48, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_45); +x_49 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1(x_44, x_2, x_14, x_48, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_45); if (lean_obj_tag(x_49) == 0) { lean_object* x_50; @@ -4706,7 +4648,7 @@ if (lean_is_exclusive(x_74)) { } x_78 = lean_ctor_get(x_75, 7); lean_inc(x_78); -x_79 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6(x_1, x_78); +x_79 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5(x_1, x_78); lean_dec(x_78); if (lean_obj_tag(x_79) == 0) { @@ -4722,7 +4664,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_81 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1(x_75, x_2, x_70, x_80, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_76); +x_81 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1(x_75, x_2, x_70, x_80, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_76); if (lean_obj_tag(x_81) == 0) { lean_object* x_82; @@ -4888,21 +4830,57 @@ return x_102; } } } -static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9___closed__1() { +static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___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_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___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_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___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_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___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_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__4; +x_1 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__4; 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_Proof_0__Lean_Meta_Grind_findCommon___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_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9___closed__1; +x_11 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__5; 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; @@ -4912,11 +4890,11 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__2; +x_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; +x_2 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__2; x_3 = lean_unsigned_to_nat(68u); x_4 = lean_unsigned_to_nat(2u); -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_5 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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; } @@ -4926,7 +4904,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_G { lean_object* x_11; lean_object* x_12; x_11 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___lambda__1___closed__1; -x_12 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_12; } } @@ -4973,7 +4951,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_21 = 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(x_18, x_20, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); +x_21 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7(x_18, x_20, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); lean_dec(x_18); if (lean_obj_tag(x_21) == 0) { @@ -5082,7 +5060,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_41 = 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(x_38, x_39, x_40, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); +x_41 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7(x_38, x_39, x_40, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16); lean_dec(x_38); if (lean_obj_tag(x_41) == 0) { @@ -5237,40 +5215,40 @@ lean_dec(x_2); return x_11; } } -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* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6(x_1, x_2); +x_3 = l_Lean_RBNode_find___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -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* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___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 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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); return x_14; } } -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* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___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); +x_14 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_2); lean_dec(x_1); return x_14; } } -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* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_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_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___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) { _start: { lean_object* x_13; -x_13 = 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(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___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); lean_dec(x_1); return x_13; } @@ -5772,7 +5750,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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(234u); x_4 = lean_unsigned_to_nat(4u); @@ -5785,11 +5763,11 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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(237u); 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_5 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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; } @@ -5857,7 +5835,7 @@ lean_object* x_33; lean_object* x_34; lean_dec(x_2); lean_dec(x_1); x_33 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__5; -x_34 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_29); +x_34 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8(x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_29); return x_34; } else @@ -5922,7 +5900,7 @@ x_44 = lean_ctor_get(x_42, 1); lean_inc(x_44); lean_dec(x_42); x_45 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqProofCore___lambda__1___closed__6; -x_46 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_45, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_44); +x_46 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8(x_45, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_44); return x_46; } else @@ -6288,7 +6266,7 @@ static lean_object* _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0_ { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__4; +x_2 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__4; x_3 = l_instInhabitedOfMonad___rarg(x_2, x_1); return x_3; } @@ -6315,11 +6293,11 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofFrom___lambda__1___closed__1; x_3 = lean_unsigned_to_nat(215u); x_4 = lean_unsigned_to_nat(35u); -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_5 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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; } @@ -6328,11 +6306,11 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofFrom___lambda__1___closed__1; x_3 = lean_unsigned_to_nat(216u); x_4 = lean_unsigned_to_nat(29u); -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_5 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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; } @@ -7152,7 +7130,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___closed__3; x_3 = lean_unsigned_to_nat(182u); x_4 = lean_unsigned_to_nat(4u); @@ -7216,7 +7194,7 @@ lean_dec(x_13); lean_dec(x_2); lean_dec(x_1); x_60 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkCongrProof___closed__4; -x_61 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_60, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_61 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8(x_60, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_61; } else @@ -7676,7 +7654,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof___closed__1; x_3 = lean_unsigned_to_nat(135u); x_4 = lean_unsigned_to_nat(4u); @@ -7707,7 +7685,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof___closed__1; x_3 = lean_unsigned_to_nat(137u); x_4 = lean_unsigned_to_nat(4u); @@ -7754,7 +7732,7 @@ lean_dec(x_13); lean_dec(x_2); lean_dec(x_1); x_19 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof___closed__2; -x_20 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_20 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_20; } else @@ -7792,7 +7770,7 @@ lean_dec(x_13); lean_dec(x_2); lean_dec(x_1); x_27 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof___closed__5; -x_28 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +x_28 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8(x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); return x_28; } else @@ -9009,7 +8987,7 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__1___closed__3; x_3 = lean_unsigned_to_nat(174u); x_4 = lean_unsigned_to_nat(6u); @@ -9254,7 +9232,7 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); x_27 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__1___closed__4; -x_28 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_27, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_22); +x_28 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8(x_27, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_22); return x_28; } else @@ -9271,7 +9249,7 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); x_30 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__1___closed__4; -x_31 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_30, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_22); +x_31 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8(x_30, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_22); return x_31; } else @@ -9406,11 +9384,11 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__1___closed__3; x_3 = lean_unsigned_to_nat(166u); x_4 = lean_unsigned_to_nat(34u); -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_5 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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; } @@ -9420,7 +9398,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_G { lean_object* x_11; lean_object* x_12; x_11 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__2___closed__1; -x_12 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_12; } } @@ -9533,11 +9511,11 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__1___closed__3; x_3 = lean_unsigned_to_nat(165u); x_4 = lean_unsigned_to_nat(36u); -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_5 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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; } @@ -9547,7 +9525,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_G { lean_object* x_11; lean_object* x_12; x_11 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkEqCongrProof___lambda__4___closed__1; -x_12 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_12; } } @@ -9750,11 +9728,11 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__1___closed__1; x_3 = lean_unsigned_to_nat(203u); x_4 = lean_unsigned_to_nat(35u); -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_5 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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; } @@ -9763,11 +9741,11 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_ _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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkProofTo___lambda__1___closed__1; x_3 = lean_unsigned_to_nat(204u); x_4 = lean_unsigned_to_nat(29u); -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_5 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___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; } @@ -10391,7 +10369,7 @@ 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_1 = l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1; x_2 = l_Lean_Meta_Grind_mkEqProofImpl___closed__3; x_3 = lean_unsigned_to_nat(253u); x_4 = lean_unsigned_to_nat(2u); @@ -10427,7 +10405,7 @@ x_15 = lean_ctor_get(x_12, 1); lean_inc(x_15); lean_dec(x_12); 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); +x_17 = l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); return x_17; } else @@ -10501,26 +10479,24 @@ l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isEqProof___closed__ lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isEqProof___closed__1); l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isEqProof___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isEqProof___closed__2(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_isEqProof___closed__2); -l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__1 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__1(); -lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__1); -l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__2 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__2(); -lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__2); -l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__3 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__3(); -lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__3); -l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__4 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__4(); -lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__4); -l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__5 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__5(); -lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__5___closed__5); -l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__1 = _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__1); -l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__2 = _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__2); -l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__3 = _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__3); -l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__4 = _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__7___lambda__1___closed__4); -l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9___closed__1 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9___closed__1(); -lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__9___closed__1); +l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1 = _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__1); +l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__2 = _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__2); +l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__3 = _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__3); +l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__4 = _init_l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__6___lambda__1___closed__4); +l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__1 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__1(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__1); +l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__2 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__2(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__2); +l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__3 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__3(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__3); +l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__4 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__4(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__4); +l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__5 = _init_l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__5(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___spec__8___closed__5); l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___lambda__1___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___lambda__1___closed__1); l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_findCommon___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Propagate.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Propagate.c index 2860ba8855af..018e8ca09fb4 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Propagate.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Propagate.c @@ -2719,16 +2719,11 @@ x_18 = lean_unbox(x_17); lean_dec(x_17); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; x_19 = lean_ctor_get(x_16, 1); lean_inc(x_19); lean_dec(x_16); -lean_inc(x_2); -lean_inc(x_1); x_20 = l_Lean_Meta_Grind_isEqv(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; uint8_t x_22; x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_unbox(x_21); @@ -2833,42 +2828,9 @@ return x_39; } else { -uint8_t x_40; -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_40 = !lean_is_exclusive(x_20); -if (x_40 == 0) -{ -return x_20; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_20, 0); -x_42 = lean_ctor_get(x_20, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_20); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -} -} -else -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_16, 1); -lean_inc(x_44); +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_16, 1); +lean_inc(x_40); lean_dec(x_16); lean_inc(x_10); lean_inc(x_9); @@ -2879,18 +2841,18 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_45 = l_Lean_Meta_Grind_mkEqTrueProof(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_44); -if (lean_obj_tag(x_45) == 0) +x_41 = l_Lean_Meta_Grind_mkEqTrueProof(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = l_Lean_Meta_Grind_propagateNotUp___lambda__1___closed__6; -x_49 = l_Lean_mkAppB(x_48, x_2, x_46); -x_50 = l_Lean_Meta_Grind_pushEqFalse(x_1, x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_47); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_42 = lean_ctor_get(x_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_Meta_Grind_propagateNotUp___lambda__1___closed__6; +x_45 = l_Lean_mkAppB(x_44, x_2, x_42); +x_46 = l_Lean_Meta_Grind_pushEqFalse(x_1, x_45, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_43); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -2899,11 +2861,11 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_50; +return x_46; } else { -uint8_t x_51; +uint8_t x_47; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -2914,30 +2876,30 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_51 = !lean_is_exclusive(x_45); -if (x_51 == 0) +x_47 = !lean_is_exclusive(x_41); +if (x_47 == 0) { -return x_45; +return x_41; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_45, 0); -x_53 = lean_ctor_get(x_45, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_45); -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_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_41, 0); +x_49 = lean_ctor_get(x_41, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_41); +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_55; +uint8_t x_51; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -2948,31 +2910,31 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_55 = !lean_is_exclusive(x_16); -if (x_55 == 0) +x_51 = !lean_is_exclusive(x_16); +if (x_51 == 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_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_16, 0); +x_53 = lean_ctor_get(x_16, 1); +lean_inc(x_53); +lean_inc(x_52); 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; +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 { -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_12, 1); -lean_inc(x_59); +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_12, 1); +lean_inc(x_55); lean_dec(x_12); lean_inc(x_10); lean_inc(x_9); @@ -2983,18 +2945,18 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_60 = l_Lean_Meta_Grind_mkEqFalseProof(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_59); -if (lean_obj_tag(x_60) == 0) +x_56 = l_Lean_Meta_Grind_mkEqFalseProof(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_55); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -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_Meta_Grind_propagateNotUp___lambda__1___closed__9; -x_64 = l_Lean_mkAppB(x_63, x_2, x_61); -x_65 = l_Lean_Meta_Grind_pushEqTrue(x_1, x_64, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_62); +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +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_propagateNotUp___lambda__1___closed__9; +x_60 = l_Lean_mkAppB(x_59, x_2, x_57); +x_61 = l_Lean_Meta_Grind_pushEqTrue(x_1, x_60, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_58); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3003,11 +2965,11 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_65; +return x_61; } else { -uint8_t x_66; +uint8_t x_62; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3018,30 +2980,30 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_66 = !lean_is_exclusive(x_60); -if (x_66 == 0) +x_62 = !lean_is_exclusive(x_56); +if (x_62 == 0) { -return x_60; +return x_56; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_60, 0); -x_68 = lean_ctor_get(x_60, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_60); -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; +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_56, 0); +x_64 = lean_ctor_get(x_56, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_56); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } } } else { -uint8_t x_70; +uint8_t x_66; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3052,23 +3014,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_70 = !lean_is_exclusive(x_12); -if (x_70 == 0) +x_66 = !lean_is_exclusive(x_12); +if (x_66 == 0) { return x_12; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_12, 0); -x_72 = lean_ctor_get(x_12, 1); -lean_inc(x_72); -lean_inc(x_71); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_12, 0); +x_68 = lean_ctor_get(x_12, 1); +lean_inc(x_68); +lean_inc(x_67); lean_dec(x_12); -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; +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; } } } @@ -3260,16 +3222,11 @@ x_18 = lean_unbox(x_17); lean_dec(x_17); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; x_19 = lean_ctor_get(x_16, 1); lean_inc(x_19); lean_dec(x_16); -lean_inc(x_2); -lean_inc(x_1); x_20 = l_Lean_Meta_Grind_isEqv(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; uint8_t x_22; x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_unbox(x_21); @@ -3374,42 +3331,9 @@ return x_39; } else { -uint8_t x_40; -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_40 = !lean_is_exclusive(x_20); -if (x_40 == 0) -{ -return x_20; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_20, 0); -x_42 = lean_ctor_get(x_20, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_20); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -} -} -else -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_16, 1); -lean_inc(x_44); +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_16, 1); +lean_inc(x_40); lean_dec(x_16); lean_inc(x_10); lean_inc(x_9); @@ -3419,19 +3343,19 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_45 = l_Lean_Meta_Grind_mkEqTrueProof(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_44); -if (lean_obj_tag(x_45) == 0) +x_41 = l_Lean_Meta_Grind_mkEqTrueProof(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = l_Lean_Meta_Grind_propagateNotDown___lambda__1___closed__3; +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_42 = lean_ctor_get(x_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_Meta_Grind_propagateNotDown___lambda__1___closed__3; lean_inc(x_2); -x_49 = l_Lean_mkAppB(x_48, x_2, x_46); -x_50 = l_Lean_Meta_Grind_pushEqFalse(x_2, x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_47); +x_45 = l_Lean_mkAppB(x_44, x_2, x_42); +x_46 = l_Lean_Meta_Grind_pushEqFalse(x_2, x_45, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_43); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3440,11 +3364,11 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_50; +return x_46; } else { -uint8_t x_51; +uint8_t x_47; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3454,30 +3378,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_51 = !lean_is_exclusive(x_45); -if (x_51 == 0) +x_47 = !lean_is_exclusive(x_41); +if (x_47 == 0) { -return x_45; +return x_41; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_45, 0); -x_53 = lean_ctor_get(x_45, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_45); -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_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_41, 0); +x_49 = lean_ctor_get(x_41, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_41); +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_55; +uint8_t x_51; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3488,31 +3412,31 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_55 = !lean_is_exclusive(x_16); -if (x_55 == 0) +x_51 = !lean_is_exclusive(x_16); +if (x_51 == 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_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_16, 0); +x_53 = lean_ctor_get(x_16, 1); +lean_inc(x_53); +lean_inc(x_52); 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; +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 { -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_12, 1); -lean_inc(x_59); +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_12, 1); +lean_inc(x_55); lean_dec(x_12); lean_inc(x_10); lean_inc(x_9); @@ -3522,19 +3446,19 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_60 = l_Lean_Meta_Grind_mkEqFalseProof(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_59); -if (lean_obj_tag(x_60) == 0) +x_56 = l_Lean_Meta_Grind_mkEqFalseProof(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_55); +if (lean_obj_tag(x_56) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -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_Meta_Grind_propagateNotDown___lambda__1___closed__6; +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +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_propagateNotDown___lambda__1___closed__6; lean_inc(x_2); -x_64 = l_Lean_mkAppB(x_63, x_2, x_61); -x_65 = l_Lean_Meta_Grind_pushEqTrue(x_2, x_64, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_62); +x_60 = l_Lean_mkAppB(x_59, x_2, x_57); +x_61 = l_Lean_Meta_Grind_pushEqTrue(x_2, x_60, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_58); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3543,11 +3467,11 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_65; +return x_61; } else { -uint8_t x_66; +uint8_t x_62; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3557,30 +3481,30 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_66 = !lean_is_exclusive(x_60); -if (x_66 == 0) +x_62 = !lean_is_exclusive(x_56); +if (x_62 == 0) { -return x_60; +return x_56; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_60, 0); -x_68 = lean_ctor_get(x_60, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_60); -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; +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_56, 0); +x_64 = lean_ctor_get(x_56, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_56); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } } } else { -uint8_t x_70; +uint8_t x_66; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3591,23 +3515,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_70 = !lean_is_exclusive(x_12); -if (x_70 == 0) +x_66 = !lean_is_exclusive(x_12); +if (x_66 == 0) { return x_12; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_12, 0); -x_72 = lean_ctor_get(x_12, 1); -lean_inc(x_72); -lean_inc(x_71); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_12, 0); +x_68 = lean_ctor_get(x_12, 1); +lean_inc(x_68); +lean_inc(x_67); lean_dec(x_12); -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; +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; } } } @@ -3781,16 +3705,11 @@ 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_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); lean_dec(x_17); -lean_inc(x_3); -lean_inc(x_2); x_21 = l_Lean_Meta_Grind_isEqv(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_21) == 0) -{ -lean_object* x_22; uint8_t x_23; x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_unbox(x_22); @@ -3903,43 +3822,9 @@ return x_39; } else { -uint8_t x_40; -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_40 = !lean_is_exclusive(x_21); -if (x_40 == 0) -{ -return x_21; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_21, 0); -x_42 = lean_ctor_get(x_21, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_21); -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_17, 1); -lean_inc(x_44); +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_17, 1); +lean_inc(x_40); lean_dec(x_17); lean_inc(x_11); lean_inc(x_10); @@ -3950,20 +3835,20 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_45 = l_Lean_Meta_Grind_mkEqTrueProof(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_44); -if (lean_obj_tag(x_45) == 0) +x_41 = l_Lean_Meta_Grind_mkEqTrueProof(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_40); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; -x_46 = lean_ctor_get(x_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_propagateEqUp___lambda__1___closed__3; +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; +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_Meta_Grind_propagateEqUp___lambda__1___closed__3; lean_inc(x_2); -x_49 = l_Lean_mkApp3(x_48, x_2, x_3, x_46); -x_50 = 0; -x_51 = l_Lean_Meta_Grind_pushEqCore(x_1, x_2, x_49, x_50, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_47); +x_45 = l_Lean_mkApp3(x_44, x_2, x_3, x_42); +x_46 = 0; +x_47 = l_Lean_Meta_Grind_pushEqCore(x_1, x_2, x_45, x_46, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_43); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3972,11 +3857,11 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_51; +return x_47; } else { -uint8_t x_52; +uint8_t x_48; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3988,30 +3873,30 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_52 = !lean_is_exclusive(x_45); -if (x_52 == 0) +x_48 = !lean_is_exclusive(x_41); +if (x_48 == 0) { -return x_45; +return x_41; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_45, 0); -x_54 = lean_ctor_get(x_45, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_45); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_41, 0); +x_50 = lean_ctor_get(x_41, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_41); +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_56; +uint8_t x_52; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4023,31 +3908,31 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_56 = !lean_is_exclusive(x_17); -if (x_56 == 0) +x_52 = !lean_is_exclusive(x_17); +if (x_52 == 0) { return x_17; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_17, 0); -x_58 = lean_ctor_get(x_17, 1); -lean_inc(x_58); -lean_inc(x_57); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_17, 0); +x_54 = lean_ctor_get(x_17, 1); +lean_inc(x_54); +lean_inc(x_53); lean_dec(x_17); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; +x_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_60; lean_object* x_61; -x_60 = lean_ctor_get(x_13, 1); -lean_inc(x_60); +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_13, 1); +lean_inc(x_56); lean_dec(x_13); lean_inc(x_11); lean_inc(x_10); @@ -4058,20 +3943,20 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); -x_61 = l_Lean_Meta_Grind_mkEqTrueProof(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_60); -if (lean_obj_tag(x_61) == 0) +x_57 = l_Lean_Meta_Grind_mkEqTrueProof(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_56); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; -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 = l_Lean_Meta_Grind_propagateEqUp___lambda__1___closed__6; +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; +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_Meta_Grind_propagateEqUp___lambda__1___closed__6; lean_inc(x_3); -x_65 = l_Lean_mkApp3(x_64, x_2, x_3, x_62); -x_66 = 0; -x_67 = l_Lean_Meta_Grind_pushEqCore(x_1, x_3, x_65, x_66, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_63); +x_61 = l_Lean_mkApp3(x_60, x_2, x_3, x_58); +x_62 = 0; +x_63 = l_Lean_Meta_Grind_pushEqCore(x_1, x_3, x_61, x_62, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_59); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4080,11 +3965,11 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_67; +return x_63; } else { -uint8_t x_68; +uint8_t x_64; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4096,30 +3981,30 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_68 = !lean_is_exclusive(x_61); -if (x_68 == 0) +x_64 = !lean_is_exclusive(x_57); +if (x_64 == 0) { -return x_61; +return x_57; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_61, 0); -x_70 = lean_ctor_get(x_61, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_61); -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_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_57, 0); +x_66 = lean_ctor_get(x_57, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_57); +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_72; +uint8_t x_68; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4131,23 +4016,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_13); -if (x_72 == 0) +x_68 = !lean_is_exclusive(x_13); +if (x_68 == 0) { return x_13; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_13, 0); -x_74 = lean_ctor_get(x_13, 1); -lean_inc(x_74); -lean_inc(x_73); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_13, 0); +x_70 = lean_ctor_get(x_13, 1); +lean_inc(x_70); +lean_inc(x_69); lean_dec(x_13); -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; +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; } } } @@ -6754,13 +6639,8 @@ return x_5; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateHEqUp___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_inc(x_3); -lean_inc(x_2); +lean_object* x_13; lean_object* x_14; uint8_t x_15; x_13 = l_Lean_Meta_Grind_isEqv(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) -{ -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); @@ -6871,40 +6751,6 @@ 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); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_32 = !lean_is_exclusive(x_13); -if (x_32 == 0) -{ -return x_13; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_13, 0); -x_34 = lean_ctor_get(x_13, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_13); -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_Meta_Grind_propagateHEqUp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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: @@ -7822,17 +7668,13 @@ lean_inc(x_12); x_41 = l_Lean_Meta_Simp_Result_getProof(x_38, x_12, x_13, x_14, x_15, x_39); if (lean_obj_tag(x_41) == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; +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_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); -lean_inc(x_1); x_44 = l_Lean_Meta_Grind_getGeneration(x_1, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_43); -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_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); @@ -7915,7 +7757,6 @@ return x_59; else { uint8_t x_60; -lean_dec(x_42); lean_dec(x_40); lean_dec(x_32); lean_dec(x_15); @@ -7932,19 +7773,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_60 = !lean_is_exclusive(x_44); +x_60 = !lean_is_exclusive(x_41); if (x_60 == 0) { -return x_44; +return x_41; } else { lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_44, 0); -x_62 = lean_ctor_get(x_44, 1); +x_61 = lean_ctor_get(x_41, 0); +x_62 = lean_ctor_get(x_41, 1); lean_inc(x_62); lean_inc(x_61); -lean_dec(x_44); +lean_dec(x_41); x_63 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_63, 0, x_61); lean_ctor_set(x_63, 1, x_62); @@ -7955,7 +7796,6 @@ return x_63; else { uint8_t x_64; -lean_dec(x_40); lean_dec(x_32); lean_dec(x_15); lean_dec(x_14); @@ -7971,19 +7811,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_64 = !lean_is_exclusive(x_41); +x_64 = !lean_is_exclusive(x_37); if (x_64 == 0) { -return x_41; +return x_37; } else { lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_41, 0); -x_66 = lean_ctor_get(x_41, 1); +x_65 = lean_ctor_get(x_37, 0); +x_66 = lean_ctor_get(x_37, 1); lean_inc(x_66); lean_inc(x_65); -lean_dec(x_41); +lean_dec(x_37); x_67 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_67, 0, x_65); lean_ctor_set(x_67, 1, x_66); @@ -7994,7 +7834,6 @@ return x_67; else { uint8_t x_68; -lean_dec(x_32); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -8009,19 +7848,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_68 = !lean_is_exclusive(x_37); +x_68 = !lean_is_exclusive(x_31); if (x_68 == 0) { -return x_37; +return x_31; } else { lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_37, 0); -x_70 = lean_ctor_get(x_37, 1); +x_69 = lean_ctor_get(x_31, 0); +x_70 = lean_ctor_get(x_31, 1); lean_inc(x_70); lean_inc(x_69); -lean_dec(x_37); +lean_dec(x_31); x_71 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_71, 0, x_69); lean_ctor_set(x_71, 1, x_70); @@ -8029,6 +7868,7 @@ return x_71; } } } +} else { uint8_t x_72; @@ -8046,19 +7886,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_31); +x_72 = !lean_is_exclusive(x_21); if (x_72 == 0) { -return x_31; +return x_21; } else { lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_31, 0); -x_74 = lean_ctor_get(x_31, 1); +x_73 = lean_ctor_get(x_21, 0); +x_74 = lean_ctor_get(x_21, 1); lean_inc(x_74); lean_inc(x_73); -lean_dec(x_31); +lean_dec(x_21); x_75 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_75, 0, x_73); lean_ctor_set(x_75, 1, x_74); @@ -8066,49 +7906,11 @@ return x_75; } } } -} -else -{ -uint8_t x_76; -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_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_76 = !lean_is_exclusive(x_21); -if (x_76 == 0) -{ -return x_21; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_21, 0); -x_78 = lean_ctor_get(x_21, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_21); -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_object* x_81; -x_80 = lean_ctor_get(x_17, 1); -lean_inc(x_80); +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_17, 1); +lean_inc(x_76); lean_dec(x_17); lean_inc(x_15); lean_inc(x_14); @@ -8119,20 +7921,20 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_4); -x_81 = l_Lean_Meta_Grind_mkEqTrueProof(x_4, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_80); -if (lean_obj_tag(x_81) == 0) +x_77 = l_Lean_Meta_Grind_mkEqTrueProof(x_4, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_76); +if (lean_obj_tag(x_77) == 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_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); -lean_inc(x_83); -lean_dec(x_81); -lean_inc(x_82); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +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); lean_inc(x_4); -x_84 = l_Lean_Meta_mkOfEqTrueCore(x_4, x_82); +x_80 = l_Lean_Meta_mkOfEqTrueCore(x_4, x_78); lean_inc(x_6); -x_85 = l_Lean_Expr_app___override(x_6, x_84); +x_81 = l_Lean_Expr_app___override(x_6, x_80); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -8141,41 +7943,37 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_86 = l_Lean_Meta_Grind_simp(x_85, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_83); +x_82 = l_Lean_Meta_Grind_simp(x_81, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_79); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_85 = lean_ctor_get(x_83, 0); +lean_inc(x_85); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +x_86 = l_Lean_Meta_Simp_Result_getProof(x_83, x_12, x_13, x_14, x_15, x_84); if (lean_obj_tag(x_86) == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +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_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); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_90 = l_Lean_Meta_Simp_Result_getProof(x_87, x_12, x_13, x_14, x_15, x_88); -if (lean_obj_tag(x_90) == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_90, 0); +x_89 = l_Lean_Meta_Grind_getGeneration(x_1, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_88); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_89, 1); lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -lean_dec(x_90); -lean_inc(x_1); -x_93 = l_Lean_Meta_Grind_getGeneration(x_1, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, 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; -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_box(0); +lean_dec(x_89); +x_92 = lean_box(0); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -8184,21 +7982,37 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_89); -x_97 = l_Lean_Meta_Grind_internalize(x_89, x_94, x_96, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_95); -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; uint8_t x_103; lean_object* x_104; -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec(x_97); -x_99 = l_Lean_Expr_constLevels_x21(x_2); -x_100 = l_Lean_Meta_Grind_propagateDIte___lambda__1___closed__7; -x_101 = l_Lean_Expr_const___override(x_100, x_99); -lean_inc(x_89); -x_102 = l_Lean_mkApp8(x_101, x_3, x_4, x_5, x_6, x_7, x_89, x_82, x_91); -x_103 = 0; -x_104 = l_Lean_Meta_Grind_pushEqCore(x_1, x_89, x_102, x_103, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_98); +lean_inc(x_85); +x_93 = l_Lean_Meta_Grind_internalize(x_85, x_90, x_92, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_91); +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; lean_object* x_100; +x_94 = lean_ctor_get(x_93, 1); +lean_inc(x_94); +lean_dec(x_93); +x_95 = l_Lean_Expr_constLevels_x21(x_2); +x_96 = l_Lean_Meta_Grind_propagateDIte___lambda__1___closed__7; +x_97 = l_Lean_Expr_const___override(x_96, x_95); +lean_inc(x_85); +x_98 = l_Lean_mkApp8(x_97, x_3, x_4, x_5, x_6, x_7, x_85, x_78, x_87); +x_99 = 0; +x_100 = l_Lean_Meta_Grind_pushEqCore(x_1, x_85, x_98, x_99, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_94); +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); +return x_100; +} +else +{ +uint8_t x_101; +lean_dec(x_87); +lean_dec(x_85); +lean_dec(x_78); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -8207,14 +8021,37 @@ 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_101 = !lean_is_exclusive(x_93); +if (x_101 == 0) +{ +return x_93; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_93, 0); +x_103 = lean_ctor_get(x_93, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_93); +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_91); -lean_dec(x_89); -lean_dec(x_82); +lean_dec(x_85); +lean_dec(x_78); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -8229,19 +8066,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_105 = !lean_is_exclusive(x_97); +x_105 = !lean_is_exclusive(x_86); if (x_105 == 0) { -return x_97; +return x_86; } else { lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_97, 0); -x_107 = lean_ctor_get(x_97, 1); +x_106 = lean_ctor_get(x_86, 0); +x_107 = lean_ctor_get(x_86, 1); lean_inc(x_107); lean_inc(x_106); -lean_dec(x_97); +lean_dec(x_86); x_108 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_108, 0, x_106); lean_ctor_set(x_108, 1, x_107); @@ -8252,9 +8089,7 @@ return x_108; else { uint8_t x_109; -lean_dec(x_91); -lean_dec(x_89); -lean_dec(x_82); +lean_dec(x_78); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -8269,19 +8104,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_109 = !lean_is_exclusive(x_93); +x_109 = !lean_is_exclusive(x_82); if (x_109 == 0) { -return x_93; +return x_82; } else { lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_93, 0); -x_111 = lean_ctor_get(x_93, 1); +x_110 = lean_ctor_get(x_82, 0); +x_111 = lean_ctor_get(x_82, 1); lean_inc(x_111); lean_inc(x_110); -lean_dec(x_93); +lean_dec(x_82); x_112 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_112, 0, x_110); lean_ctor_set(x_112, 1, x_111); @@ -8292,8 +8127,6 @@ return x_112; else { uint8_t x_113; -lean_dec(x_89); -lean_dec(x_82); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -8308,19 +8141,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_113 = !lean_is_exclusive(x_90); +x_113 = !lean_is_exclusive(x_77); if (x_113 == 0) { -return x_90; +return x_77; } else { lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_90, 0); -x_115 = lean_ctor_get(x_90, 1); +x_114 = lean_ctor_get(x_77, 0); +x_115 = lean_ctor_get(x_77, 1); lean_inc(x_115); lean_inc(x_114); -lean_dec(x_90); +lean_dec(x_77); x_116 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_116, 0, x_114); lean_ctor_set(x_116, 1, x_115); @@ -8328,10 +8161,10 @@ return x_116; } } } +} else { uint8_t x_117; -lean_dec(x_82); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -8346,19 +8179,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_117 = !lean_is_exclusive(x_86); +x_117 = !lean_is_exclusive(x_17); if (x_117 == 0) { -return x_86; +return x_17; } else { lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_86, 0); -x_119 = lean_ctor_get(x_86, 1); +x_118 = lean_ctor_get(x_17, 0); +x_119 = lean_ctor_get(x_17, 1); lean_inc(x_119); lean_inc(x_118); -lean_dec(x_86); +lean_dec(x_17); x_120 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_120, 0, x_118); lean_ctor_set(x_120, 1, x_119); @@ -8366,81 +8199,6 @@ return x_120; } } } -else -{ -uint8_t x_121; -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_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_121 = !lean_is_exclusive(x_81); -if (x_121 == 0) -{ -return x_81; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_81, 0); -x_123 = lean_ctor_get(x_81, 1); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_81); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -return x_124; -} -} -} -} -else -{ -uint8_t x_125; -lean_dec(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); -lean_dec(x_3); -lean_dec(x_1); -x_125 = !lean_is_exclusive(x_17); -if (x_125 == 0) -{ -return x_17; -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_17, 0); -x_127 = lean_ctor_get(x_17, 1); -lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_17); -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; -} -} -} } static lean_object* _init_l_Lean_Meta_Grind_propagateDIte___closed__1() { _start: diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/PropagatorAttr.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/PropagatorAttr.c index 848af7f89890..55354dd42f3d 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/PropagatorAttr.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/PropagatorAttr.c @@ -129,7 +129,6 @@ static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Propa static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_PropagatorAttr___hyg_655____closed__3; static lean_object* l___private_Lean_Meta_Tactic_Grind_PropagatorAttr_0__Lean_Meta_Grind_addBuiltin___closed__21; static lean_object* l_Lean_preprocessSyntaxAndResolve___at___private_Lean_Meta_Tactic_Grind_PropagatorAttr_0__Lean_Meta_Grind_addBuiltin___spec__7___closed__4; -lean_object* l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_PropagatorAttr_0__Lean_Meta_Grind_registerBuiltinPropagatorCore___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ensureNonAmbiguous___at___private_Lean_Meta_Tactic_Grind_PropagatorAttr_0__Lean_Meta_Grind_addBuiltin___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_ensureNonAmbiguous___at___private_Lean_Meta_Tactic_Grind_PropagatorAttr_0__Lean_Meta_Grind_addBuiltin___spec__10___closed__5; @@ -172,6 +171,7 @@ static lean_object* l_Lean_ensureNonAmbiguous___at___private_Lean_Meta_Tactic_Gr lean_object* l_List_mapTR_loop___at_Lean_ensureNonAmbiguous___spec__2(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedName; lean_object* lean_array_uget(lean_object*, size_t); +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_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_PropagatorAttr_0__Lean_Meta_Grind_addBuiltin___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); @@ -1938,7 +1938,7 @@ x_11 = l_Lean_throwUnknownConstant___at___private_Lean_Meta_Tactic_Grind_Propaga 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_mkSimpCongrTheorem___spec__4(x_12, x_2, x_3, x_4, x_5, x_6); +x_13 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__3(x_12, x_2, x_3, x_4, x_5, x_6); return x_13; } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/SimpUtil.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/SimpUtil.c index d60bfb315e3c..8d34b45311ea 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/SimpUtil.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/SimpUtil.c @@ -47,7 +47,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getSimprocs(lean_object*, lean_object static lean_object* l_Lean_Meta_Grind_getSimprocs___rarg___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_registerNormTheorems___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_EXPORT lean_object* l_Lean_Meta_Grind_getSimprocs___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SimpExtension_getTheorems(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_Simprocs_erase(lean_object*, lean_object*); lean_object* l_Lean_Meta_addSimpTheorem(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -69,6 +68,7 @@ extern lean_object* l_Lean_Meta_Simp_defaultMaxSteps; static lean_object* l_Lean_Meta_Grind_normalizeImp___closed__1; lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); +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_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_normalizeImp___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_registerNormTheorems___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -425,7 +425,7 @@ if (x_13 == 0) { lean_object* x_14; lean_object* x_15; uint8_t x_16; x_14 = l_Lean_Meta_Grind_registerNormTheorems___closed__2; -x_15 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_14, x_3, x_4, x_5, x_6, x_11); +x_15 = l_Lean_throwError___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMajorPosDepElim___spec__3(x_14, x_3, x_4, x_5, x_6, x_11); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Split.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Split.c index a7b15eab680a..223156473336 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Split.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Split.c @@ -3480,20 +3480,14 @@ return x_15; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_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, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_15; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; x_15 = l_Lean_Meta_Grind_getGeneration(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); x_18 = l_Lean_Meta_Grind_getGeneration(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) -{ -uint8_t x_19; x_19 = !lean_is_exclusive(x_18); if (x_19 == 0) { @@ -3550,54 +3544,6 @@ return x_34; } } } -else -{ -uint8_t x_35; -lean_dec(x_16); -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; -} -} -} -else -{ -uint8_t x_39; -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_15); -if (x_39 == 0) -{ -return x_15; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_15, 0); -x_41 = lean_ctor_get(x_15, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_15); -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_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: @@ -4264,15 +4210,10 @@ x_188 = lean_unsigned_to_nat(1u); x_189 = lean_nat_dec_eq(x_184, x_188); if (x_189 == 0) { -lean_object* x_190; lean_object* x_191; +lean_object* x_190; lean_object* x_191; lean_object* x_192; uint8_t x_193; x_190 = lean_box(0); -lean_inc(x_186); -lean_inc(x_170); x_191 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_170, x_186, x_184, x_187, x_190, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_183); lean_dec(x_187); -if (lean_obj_tag(x_191) == 0) -{ -lean_object* x_192; uint8_t x_193; x_192 = lean_ctor_get(x_191, 0); lean_inc(x_192); x_193 = lean_unbox(x_192); @@ -4354,76 +4295,33 @@ goto _start; } else { -uint8_t x_204; -lean_dec(x_186); -lean_dec(x_184); -lean_free_object(x_1); -lean_dec(x_171); -lean_dec(x_170); -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_204 = !lean_is_exclusive(x_191); -if (x_204 == 0) -{ -return x_191; -} -else -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_191, 0); -x_206 = lean_ctor_get(x_191, 1); -lean_inc(x_206); -lean_inc(x_205); -lean_dec(x_191); -x_207 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_207, 0, x_205); -lean_ctor_set(x_207, 1, x_206); -return x_207; -} -} -} -else -{ if (x_185 == 0) { -uint8_t x_208; -x_208 = lean_nat_dec_lt(x_188, x_187); -if (x_208 == 0) +uint8_t x_204; +x_204 = lean_nat_dec_lt(x_188, x_187); +if (x_204 == 0) { -lean_object* x_209; lean_object* x_210; -x_209 = lean_box(0); -lean_inc(x_186); -lean_inc(x_170); -x_210 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_170, x_186, x_184, x_187, x_209, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_183); +lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; +x_205 = lean_box(0); +x_206 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_170, x_186, x_184, x_187, x_205, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_183); lean_dec(x_187); -if (lean_obj_tag(x_210) == 0) -{ -lean_object* x_211; uint8_t x_212; -x_211 = lean_ctor_get(x_210, 0); -lean_inc(x_211); -x_212 = lean_unbox(x_211); -lean_dec(x_211); -if (x_212 == 0) +x_207 = lean_ctor_get(x_206, 0); +lean_inc(x_207); +x_208 = lean_unbox(x_207); +lean_dec(x_207); +if (x_208 == 0) { -lean_object* x_213; +lean_object* x_209; lean_dec(x_186); lean_dec(x_184); -x_213 = lean_ctor_get(x_210, 1); -lean_inc(x_213); -lean_dec(x_210); +x_209 = lean_ctor_get(x_206, 1); +lean_inc(x_209); +lean_dec(x_206); lean_ctor_set(x_1, 1, x_3); { lean_object* _tmp_0 = x_171; lean_object* _tmp_2 = x_1; -lean_object* _tmp_11 = x_213; +lean_object* _tmp_11 = x_209; x_1 = _tmp_0; x_3 = _tmp_2; x_12 = _tmp_11; @@ -4432,18 +4330,18 @@ goto _start; } else { -uint8_t x_215; -x_215 = !lean_is_exclusive(x_2); -if (x_215 == 0) +uint8_t x_211; +x_211 = !lean_is_exclusive(x_2); +if (x_211 == 0) { -lean_object* x_216; lean_object* x_217; lean_object* x_218; -x_216 = lean_ctor_get(x_2, 1); -lean_dec(x_216); -x_217 = lean_ctor_get(x_2, 0); -lean_dec(x_217); -x_218 = lean_ctor_get(x_210, 1); -lean_inc(x_218); -lean_dec(x_210); +lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_212 = lean_ctor_get(x_2, 1); +lean_dec(x_212); +x_213 = lean_ctor_get(x_2, 0); +lean_dec(x_213); +x_214 = lean_ctor_get(x_206, 1); +lean_inc(x_214); +lean_dec(x_206); lean_ctor_set(x_2, 1, x_184); lean_ctor_set(x_2, 0, x_170); lean_ctor_set_uint8(x_2, sizeof(void*)*2, x_185); @@ -4452,7 +4350,7 @@ lean_ctor_set(x_1, 0, x_186); { lean_object* _tmp_0 = x_171; lean_object* _tmp_2 = x_1; -lean_object* _tmp_11 = x_218; +lean_object* _tmp_11 = x_214; x_1 = _tmp_0; x_3 = _tmp_2; x_12 = _tmp_11; @@ -4461,22 +4359,22 @@ goto _start; } else { -lean_object* x_220; lean_object* x_221; +lean_object* x_216; lean_object* x_217; lean_dec(x_2); -x_220 = lean_ctor_get(x_210, 1); -lean_inc(x_220); -lean_dec(x_210); -x_221 = lean_alloc_ctor(1, 2, 1); -lean_ctor_set(x_221, 0, x_170); -lean_ctor_set(x_221, 1, x_184); -lean_ctor_set_uint8(x_221, sizeof(void*)*2, x_185); +x_216 = lean_ctor_get(x_206, 1); +lean_inc(x_216); +lean_dec(x_206); +x_217 = lean_alloc_ctor(1, 2, 1); +lean_ctor_set(x_217, 0, x_170); +lean_ctor_set(x_217, 1, x_184); +lean_ctor_set_uint8(x_217, sizeof(void*)*2, x_185); lean_ctor_set(x_1, 1, x_3); lean_ctor_set(x_1, 0, x_186); { lean_object* _tmp_0 = x_171; -lean_object* _tmp_1 = x_221; +lean_object* _tmp_1 = x_217; lean_object* _tmp_2 = x_1; -lean_object* _tmp_11 = x_220; +lean_object* _tmp_11 = x_216; x_1 = _tmp_0; x_2 = _tmp_1; x_3 = _tmp_2; @@ -4488,54 +4386,16 @@ goto _start; } else { -uint8_t x_223; -lean_dec(x_186); -lean_dec(x_184); -lean_free_object(x_1); -lean_dec(x_171); -lean_dec(x_170); -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_223 = !lean_is_exclusive(x_210); -if (x_223 == 0) -{ -return x_210; -} -else -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_224 = lean_ctor_get(x_210, 0); -x_225 = lean_ctor_get(x_210, 1); -lean_inc(x_225); -lean_inc(x_224); -lean_dec(x_210); -x_226 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_226, 0, x_224); -lean_ctor_set(x_226, 1, x_225); -return x_226; -} -} -} -else -{ -uint8_t x_227; +uint8_t x_219; lean_dec(x_187); -x_227 = !lean_is_exclusive(x_2); -if (x_227 == 0) -{ -lean_object* x_228; lean_object* x_229; -x_228 = lean_ctor_get(x_2, 1); -lean_dec(x_228); -x_229 = lean_ctor_get(x_2, 0); -lean_dec(x_229); +x_219 = !lean_is_exclusive(x_2); +if (x_219 == 0) +{ +lean_object* x_220; lean_object* x_221; +x_220 = lean_ctor_get(x_2, 1); +lean_dec(x_220); +x_221 = lean_ctor_get(x_2, 0); +lean_dec(x_221); lean_ctor_set(x_2, 1, x_184); lean_ctor_set(x_2, 0, x_170); lean_ctor_set_uint8(x_2, sizeof(void*)*2, x_185); @@ -4553,17 +4413,17 @@ goto _start; } else { -lean_object* x_231; +lean_object* x_223; lean_dec(x_2); -x_231 = lean_alloc_ctor(1, 2, 1); -lean_ctor_set(x_231, 0, x_170); -lean_ctor_set(x_231, 1, x_184); -lean_ctor_set_uint8(x_231, sizeof(void*)*2, x_185); +x_223 = lean_alloc_ctor(1, 2, 1); +lean_ctor_set(x_223, 0, x_170); +lean_ctor_set(x_223, 1, x_184); +lean_ctor_set_uint8(x_223, sizeof(void*)*2, x_185); lean_ctor_set(x_1, 1, x_3); lean_ctor_set(x_1, 0, x_186); { lean_object* _tmp_0 = x_171; -lean_object* _tmp_1 = x_231; +lean_object* _tmp_1 = x_223; lean_object* _tmp_2 = x_1; lean_object* _tmp_11 = x_183; x_1 = _tmp_0; @@ -4577,32 +4437,27 @@ goto _start; } else { -lean_object* x_233; lean_object* x_234; -x_233 = lean_box(0); -lean_inc(x_186); -lean_inc(x_170); -x_234 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_170, x_186, x_184, x_187, x_233, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_183); +lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; +x_225 = lean_box(0); +x_226 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_170, x_186, x_184, x_187, x_225, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_183); lean_dec(x_187); -if (lean_obj_tag(x_234) == 0) +x_227 = lean_ctor_get(x_226, 0); +lean_inc(x_227); +x_228 = lean_unbox(x_227); +lean_dec(x_227); +if (x_228 == 0) { -lean_object* x_235; uint8_t x_236; -x_235 = lean_ctor_get(x_234, 0); -lean_inc(x_235); -x_236 = lean_unbox(x_235); -lean_dec(x_235); -if (x_236 == 0) -{ -lean_object* x_237; +lean_object* x_229; lean_dec(x_186); lean_dec(x_184); -x_237 = lean_ctor_get(x_234, 1); -lean_inc(x_237); -lean_dec(x_234); +x_229 = lean_ctor_get(x_226, 1); +lean_inc(x_229); +lean_dec(x_226); lean_ctor_set(x_1, 1, x_3); { lean_object* _tmp_0 = x_171; lean_object* _tmp_2 = x_1; -lean_object* _tmp_11 = x_237; +lean_object* _tmp_11 = x_229; x_1 = _tmp_0; x_3 = _tmp_2; x_12 = _tmp_11; @@ -4611,18 +4466,18 @@ goto _start; } else { -uint8_t x_239; -x_239 = !lean_is_exclusive(x_2); -if (x_239 == 0) +uint8_t x_231; +x_231 = !lean_is_exclusive(x_2); +if (x_231 == 0) { -lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_240 = lean_ctor_get(x_2, 1); -lean_dec(x_240); -x_241 = lean_ctor_get(x_2, 0); -lean_dec(x_241); -x_242 = lean_ctor_get(x_234, 1); -lean_inc(x_242); -lean_dec(x_234); +lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_232 = lean_ctor_get(x_2, 1); +lean_dec(x_232); +x_233 = lean_ctor_get(x_2, 0); +lean_dec(x_233); +x_234 = lean_ctor_get(x_226, 1); +lean_inc(x_234); +lean_dec(x_226); lean_ctor_set(x_2, 1, x_184); lean_ctor_set(x_2, 0, x_170); lean_ctor_set_uint8(x_2, sizeof(void*)*2, x_185); @@ -4631,7 +4486,7 @@ lean_ctor_set(x_1, 0, x_186); { lean_object* _tmp_0 = x_171; lean_object* _tmp_2 = x_1; -lean_object* _tmp_11 = x_242; +lean_object* _tmp_11 = x_234; x_1 = _tmp_0; x_3 = _tmp_2; x_12 = _tmp_11; @@ -4640,22 +4495,22 @@ goto _start; } else { -lean_object* x_244; lean_object* x_245; +lean_object* x_236; lean_object* x_237; lean_dec(x_2); -x_244 = lean_ctor_get(x_234, 1); -lean_inc(x_244); -lean_dec(x_234); -x_245 = lean_alloc_ctor(1, 2, 1); -lean_ctor_set(x_245, 0, x_170); -lean_ctor_set(x_245, 1, x_184); -lean_ctor_set_uint8(x_245, sizeof(void*)*2, x_185); +x_236 = lean_ctor_get(x_226, 1); +lean_inc(x_236); +lean_dec(x_226); +x_237 = lean_alloc_ctor(1, 2, 1); +lean_ctor_set(x_237, 0, x_170); +lean_ctor_set(x_237, 1, x_184); +lean_ctor_set_uint8(x_237, sizeof(void*)*2, x_185); lean_ctor_set(x_1, 1, x_3); lean_ctor_set(x_1, 0, x_186); { lean_object* _tmp_0 = x_171; -lean_object* _tmp_1 = x_245; +lean_object* _tmp_1 = x_237; lean_object* _tmp_2 = x_1; -lean_object* _tmp_11 = x_244; +lean_object* _tmp_11 = x_236; x_1 = _tmp_0; x_2 = _tmp_1; x_3 = _tmp_2; @@ -4665,44 +4520,6 @@ goto _start; } } } -else -{ -uint8_t x_247; -lean_dec(x_186); -lean_dec(x_184); -lean_free_object(x_1); -lean_dec(x_171); -lean_dec(x_170); -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_247 = !lean_is_exclusive(x_234); -if (x_247 == 0) -{ -return x_234; -} -else -{ -lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_248 = lean_ctor_get(x_234, 0); -x_249 = lean_ctor_get(x_234, 1); -lean_inc(x_249); -lean_inc(x_248); -lean_dec(x_234); -x_250 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_250, 0, x_248); -lean_ctor_set(x_250, 1, x_249); -return x_250; -} -} -} } } } @@ -4710,7 +4527,7 @@ return x_250; } else { -uint8_t x_251; +uint8_t x_239; lean_free_object(x_1); lean_dec(x_171); lean_dec(x_170); @@ -4724,33 +4541,33 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_251 = !lean_is_exclusive(x_172); -if (x_251 == 0) +x_239 = !lean_is_exclusive(x_172); +if (x_239 == 0) { return x_172; } else { -lean_object* x_252; lean_object* x_253; lean_object* x_254; -x_252 = lean_ctor_get(x_172, 0); -x_253 = lean_ctor_get(x_172, 1); -lean_inc(x_253); -lean_inc(x_252); +lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_240 = lean_ctor_get(x_172, 0); +x_241 = lean_ctor_get(x_172, 1); +lean_inc(x_241); +lean_inc(x_240); lean_dec(x_172); -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; +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_255; lean_object* x_256; lean_object* x_257; -x_255 = lean_ctor_get(x_1, 0); -x_256 = lean_ctor_get(x_1, 1); -lean_inc(x_256); -lean_inc(x_255); +lean_object* x_243; lean_object* x_244; lean_object* x_245; +x_243 = lean_ctor_get(x_1, 0); +x_244 = lean_ctor_get(x_1, 1); +lean_inc(x_244); +lean_inc(x_243); lean_dec(x_1); lean_inc(x_11); lean_inc(x_10); @@ -4760,195 +4577,234 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_255); -x_257 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus(x_255, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_257) == 0) -{ -lean_object* x_258; -x_258 = lean_ctor_get(x_257, 0); -lean_inc(x_258); -switch (lean_obj_tag(x_258)) { +lean_inc(x_243); +x_245 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus(x_243, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_246; +x_246 = lean_ctor_get(x_245, 0); +lean_inc(x_246); +switch (lean_obj_tag(x_246)) { case 0: { -lean_object* x_259; -lean_dec(x_255); -x_259 = lean_ctor_get(x_257, 1); -lean_inc(x_259); -lean_dec(x_257); -x_1 = x_256; -x_12 = x_259; +lean_object* x_247; +lean_dec(x_243); +x_247 = lean_ctor_get(x_245, 1); +lean_inc(x_247); +lean_dec(x_245); +x_1 = x_244; +x_12 = x_247; goto _start; } case 1: { -lean_object* x_261; lean_object* x_262; -x_261 = lean_ctor_get(x_257, 1); -lean_inc(x_261); -lean_dec(x_257); -x_262 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_262, 0, x_255); -lean_ctor_set(x_262, 1, x_3); -x_1 = x_256; -x_3 = x_262; -x_12 = x_261; +lean_object* x_249; lean_object* x_250; +x_249 = lean_ctor_get(x_245, 1); +lean_inc(x_249); +lean_dec(x_245); +x_250 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_250, 0, x_243); +lean_ctor_set(x_250, 1, x_3); +x_1 = x_244; +x_3 = x_250; +x_12 = x_249; goto _start; } default: { if (lean_obj_tag(x_2) == 0) { -lean_object* x_264; lean_object* x_265; uint8_t x_266; lean_object* x_267; -x_264 = lean_ctor_get(x_257, 1); -lean_inc(x_264); -lean_dec(x_257); -x_265 = lean_ctor_get(x_258, 0); -lean_inc(x_265); -x_266 = lean_ctor_get_uint8(x_258, sizeof(void*)*1); -lean_dec(x_258); -x_267 = lean_alloc_ctor(1, 2, 1); -lean_ctor_set(x_267, 0, x_255); -lean_ctor_set(x_267, 1, x_265); -lean_ctor_set_uint8(x_267, sizeof(void*)*2, x_266); -x_1 = x_256; -x_2 = x_267; -x_12 = x_264; +lean_object* x_252; lean_object* x_253; uint8_t x_254; lean_object* x_255; +x_252 = lean_ctor_get(x_245, 1); +lean_inc(x_252); +lean_dec(x_245); +x_253 = lean_ctor_get(x_246, 0); +lean_inc(x_253); +x_254 = lean_ctor_get_uint8(x_246, sizeof(void*)*1); +lean_dec(x_246); +x_255 = lean_alloc_ctor(1, 2, 1); +lean_ctor_set(x_255, 0, x_243); +lean_ctor_set(x_255, 1, x_253); +lean_ctor_set_uint8(x_255, sizeof(void*)*2, x_254); +x_1 = x_244; +x_2 = x_255; +x_12 = x_252; goto _start; } else { -lean_object* x_269; lean_object* x_270; uint8_t x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t x_275; -x_269 = lean_ctor_get(x_257, 1); -lean_inc(x_269); -lean_dec(x_257); -x_270 = lean_ctor_get(x_258, 0); -lean_inc(x_270); -x_271 = lean_ctor_get_uint8(x_258, sizeof(void*)*1); +lean_object* x_257; lean_object* x_258; uint8_t x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; +x_257 = lean_ctor_get(x_245, 1); +lean_inc(x_257); +lean_dec(x_245); +x_258 = lean_ctor_get(x_246, 0); +lean_inc(x_258); +x_259 = lean_ctor_get_uint8(x_246, sizeof(void*)*1); +lean_dec(x_246); +x_260 = lean_ctor_get(x_2, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_2, 1); +lean_inc(x_261); +x_262 = lean_unsigned_to_nat(1u); +x_263 = lean_nat_dec_eq(x_258, x_262); +if (x_263 == 0) +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; uint8_t x_267; +x_264 = lean_box(0); +x_265 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_243, x_260, x_258, x_261, x_264, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_257); +lean_dec(x_261); +x_266 = lean_ctor_get(x_265, 0); +lean_inc(x_266); +x_267 = lean_unbox(x_266); +lean_dec(x_266); +if (x_267 == 0) +{ +lean_object* x_268; lean_object* x_269; +lean_dec(x_260); lean_dec(x_258); -x_272 = lean_ctor_get(x_2, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_2, 1); -lean_inc(x_273); -x_274 = lean_unsigned_to_nat(1u); -x_275 = lean_nat_dec_eq(x_270, x_274); -if (x_275 == 0) -{ -lean_object* x_276; lean_object* x_277; -x_276 = lean_box(0); +x_268 = lean_ctor_get(x_265, 1); +lean_inc(x_268); +lean_dec(x_265); +x_269 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_269, 0, x_243); +lean_ctor_set(x_269, 1, x_3); +x_1 = x_244; +x_3 = x_269; +x_12 = x_268; +goto _start; +} +else +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + x_271 = x_2; +} else { + lean_dec_ref(x_2); + x_271 = lean_box(0); +} +x_272 = lean_ctor_get(x_265, 1); lean_inc(x_272); -lean_inc(x_255); -x_277 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_255, x_272, x_270, x_273, x_276, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_269); -lean_dec(x_273); -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_265); +if (lean_is_scalar(x_271)) { + x_273 = lean_alloc_ctor(1, 2, 1); +} else { + x_273 = x_271; +} +lean_ctor_set(x_273, 0, x_243); +lean_ctor_set(x_273, 1, x_258); +lean_ctor_set_uint8(x_273, sizeof(void*)*2, x_259); +x_274 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_274, 0, x_260); +lean_ctor_set(x_274, 1, x_3); +x_1 = x_244; +x_2 = x_273; +x_3 = x_274; +x_12 = x_272; +goto _start; +} +} +else +{ +if (x_259 == 0) +{ +uint8_t x_276; +x_276 = lean_nat_dec_lt(x_262, x_261); +if (x_276 == 0) +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; +x_277 = lean_box(0); +x_278 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_243, x_260, x_258, x_261, x_277, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_257); +lean_dec(x_261); +x_279 = lean_ctor_get(x_278, 0); +lean_inc(x_279); +x_280 = lean_unbox(x_279); +lean_dec(x_279); +if (x_280 == 0) +{ +lean_object* x_281; lean_object* x_282; +lean_dec(x_260); +lean_dec(x_258); +x_281 = lean_ctor_get(x_278, 1); +lean_inc(x_281); lean_dec(x_278); -if (x_279 == 0) -{ -lean_object* x_280; lean_object* x_281; -lean_dec(x_272); -lean_dec(x_270); -x_280 = lean_ctor_get(x_277, 1); -lean_inc(x_280); -lean_dec(x_277); -x_281 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_281, 0, x_255); -lean_ctor_set(x_281, 1, x_3); -x_1 = x_256; -x_3 = x_281; -x_12 = x_280; +x_282 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_282, 0, x_243); +lean_ctor_set(x_282, 1, x_3); +x_1 = x_244; +x_3 = x_282; +x_12 = x_281; goto _start; } else { -lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; +lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); - x_283 = x_2; + x_284 = x_2; } else { lean_dec_ref(x_2); - x_283 = lean_box(0); + x_284 = lean_box(0); } -x_284 = lean_ctor_get(x_277, 1); -lean_inc(x_284); -lean_dec(x_277); -if (lean_is_scalar(x_283)) { - x_285 = lean_alloc_ctor(1, 2, 1); +x_285 = lean_ctor_get(x_278, 1); +lean_inc(x_285); +lean_dec(x_278); +if (lean_is_scalar(x_284)) { + x_286 = lean_alloc_ctor(1, 2, 1); } else { - x_285 = x_283; -} -lean_ctor_set(x_285, 0, x_255); -lean_ctor_set(x_285, 1, x_270); -lean_ctor_set_uint8(x_285, sizeof(void*)*2, x_271); -x_286 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_286, 0, x_272); -lean_ctor_set(x_286, 1, x_3); -x_1 = x_256; -x_2 = x_285; -x_3 = x_286; -x_12 = x_284; + x_286 = x_284; +} +lean_ctor_set(x_286, 0, x_243); +lean_ctor_set(x_286, 1, x_258); +lean_ctor_set_uint8(x_286, sizeof(void*)*2, x_259); +x_287 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_287, 0, x_260); +lean_ctor_set(x_287, 1, x_3); +x_1 = x_244; +x_2 = x_286; +x_3 = x_287; +x_12 = x_285; goto _start; } } else { -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; -lean_dec(x_272); -lean_dec(x_270); -lean_dec(x_256); -lean_dec(x_255); -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_288 = lean_ctor_get(x_277, 0); -lean_inc(x_288); -x_289 = lean_ctor_get(x_277, 1); -lean_inc(x_289); -if (lean_is_exclusive(x_277)) { - lean_ctor_release(x_277, 0); - lean_ctor_release(x_277, 1); - x_290 = x_277; +lean_object* x_289; lean_object* x_290; lean_object* x_291; +lean_dec(x_261); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + x_289 = x_2; } else { - lean_dec_ref(x_277); - x_290 = lean_box(0); + lean_dec_ref(x_2); + x_289 = lean_box(0); } -if (lean_is_scalar(x_290)) { - x_291 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_289)) { + x_290 = lean_alloc_ctor(1, 2, 1); } else { - x_291 = x_290; -} -lean_ctor_set(x_291, 0, x_288); -lean_ctor_set(x_291, 1, x_289); -return x_291; + x_290 = x_289; +} +lean_ctor_set(x_290, 0, x_243); +lean_ctor_set(x_290, 1, x_258); +lean_ctor_set_uint8(x_290, sizeof(void*)*2, x_259); +x_291 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_291, 0, x_260); +lean_ctor_set(x_291, 1, x_3); +x_1 = x_244; +x_2 = x_290; +x_3 = x_291; +x_12 = x_257; +goto _start; } } else { -if (x_271 == 0) -{ -uint8_t x_292; -x_292 = lean_nat_dec_lt(x_274, x_273); -if (x_292 == 0) -{ -lean_object* x_293; lean_object* x_294; +lean_object* x_293; lean_object* x_294; lean_object* x_295; uint8_t x_296; x_293 = lean_box(0); -lean_inc(x_272); -lean_inc(x_255); -x_294 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_255, x_272, x_270, x_273, x_293, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_269); -lean_dec(x_273); -if (lean_obj_tag(x_294) == 0) -{ -lean_object* x_295; uint8_t x_296; +x_294 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_243, x_260, x_258, x_261, x_293, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_257); +lean_dec(x_261); x_295 = lean_ctor_get(x_294, 0); lean_inc(x_295); x_296 = lean_unbox(x_295); @@ -4956,15 +4812,15 @@ lean_dec(x_295); if (x_296 == 0) { lean_object* x_297; lean_object* x_298; -lean_dec(x_272); -lean_dec(x_270); +lean_dec(x_260); +lean_dec(x_258); x_297 = lean_ctor_get(x_294, 1); lean_inc(x_297); lean_dec(x_294); x_298 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_298, 0, x_255); +lean_ctor_set(x_298, 0, x_243); lean_ctor_set(x_298, 1, x_3); -x_1 = x_256; +x_1 = x_244; x_3 = x_298; x_12 = x_297; goto _start; @@ -4988,26 +4844,29 @@ if (lean_is_scalar(x_300)) { } else { x_302 = x_300; } -lean_ctor_set(x_302, 0, x_255); -lean_ctor_set(x_302, 1, x_270); -lean_ctor_set_uint8(x_302, sizeof(void*)*2, x_271); +lean_ctor_set(x_302, 0, x_243); +lean_ctor_set(x_302, 1, x_258); +lean_ctor_set_uint8(x_302, sizeof(void*)*2, x_259); x_303 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_303, 0, x_272); +lean_ctor_set(x_303, 0, x_260); lean_ctor_set(x_303, 1, x_3); -x_1 = x_256; +x_1 = x_244; x_2 = x_302; x_3 = x_303; x_12 = x_301; goto _start; } } +} +} +} +} +} else { lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; -lean_dec(x_272); -lean_dec(x_270); -lean_dec(x_256); -lean_dec(x_255); +lean_dec(x_244); +lean_dec(x_243); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -5018,16 +4877,16 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_305 = lean_ctor_get(x_294, 0); +x_305 = lean_ctor_get(x_245, 0); lean_inc(x_305); -x_306 = lean_ctor_get(x_294, 1); +x_306 = lean_ctor_get(x_245, 1); lean_inc(x_306); -if (lean_is_exclusive(x_294)) { - lean_ctor_release(x_294, 0); - lean_ctor_release(x_294, 1); - x_307 = x_294; +if (lean_is_exclusive(x_245)) { + lean_ctor_release(x_245, 0); + lean_ctor_release(x_245, 1); + x_307 = x_245; } else { - lean_dec_ref(x_294); + lean_dec_ref(x_245); x_307 = lean_box(0); } if (lean_is_scalar(x_307)) { @@ -5040,180 +4899,6 @@ lean_ctor_set(x_308, 1, x_306); return x_308; } } -else -{ -lean_object* x_309; lean_object* x_310; lean_object* x_311; -lean_dec(x_273); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - x_309 = x_2; -} else { - lean_dec_ref(x_2); - x_309 = lean_box(0); -} -if (lean_is_scalar(x_309)) { - x_310 = lean_alloc_ctor(1, 2, 1); -} else { - x_310 = x_309; -} -lean_ctor_set(x_310, 0, x_255); -lean_ctor_set(x_310, 1, x_270); -lean_ctor_set_uint8(x_310, sizeof(void*)*2, x_271); -x_311 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_311, 0, x_272); -lean_ctor_set(x_311, 1, x_3); -x_1 = x_256; -x_2 = x_310; -x_3 = x_311; -x_12 = x_269; -goto _start; -} -} -else -{ -lean_object* x_313; lean_object* x_314; -x_313 = lean_box(0); -lean_inc(x_272); -lean_inc(x_255); -x_314 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_255, x_272, x_270, x_273, x_313, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_269); -lean_dec(x_273); -if (lean_obj_tag(x_314) == 0) -{ -lean_object* x_315; uint8_t x_316; -x_315 = lean_ctor_get(x_314, 0); -lean_inc(x_315); -x_316 = lean_unbox(x_315); -lean_dec(x_315); -if (x_316 == 0) -{ -lean_object* x_317; lean_object* x_318; -lean_dec(x_272); -lean_dec(x_270); -x_317 = lean_ctor_get(x_314, 1); -lean_inc(x_317); -lean_dec(x_314); -x_318 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_318, 0, x_255); -lean_ctor_set(x_318, 1, x_3); -x_1 = x_256; -x_3 = x_318; -x_12 = x_317; -goto _start; -} -else -{ -lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - x_320 = x_2; -} else { - lean_dec_ref(x_2); - x_320 = lean_box(0); -} -x_321 = lean_ctor_get(x_314, 1); -lean_inc(x_321); -lean_dec(x_314); -if (lean_is_scalar(x_320)) { - x_322 = lean_alloc_ctor(1, 2, 1); -} else { - x_322 = x_320; -} -lean_ctor_set(x_322, 0, x_255); -lean_ctor_set(x_322, 1, x_270); -lean_ctor_set_uint8(x_322, sizeof(void*)*2, x_271); -x_323 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_323, 0, x_272); -lean_ctor_set(x_323, 1, x_3); -x_1 = x_256; -x_2 = x_322; -x_3 = x_323; -x_12 = x_321; -goto _start; -} -} -else -{ -lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; -lean_dec(x_272); -lean_dec(x_270); -lean_dec(x_256); -lean_dec(x_255); -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_325 = lean_ctor_get(x_314, 0); -lean_inc(x_325); -x_326 = lean_ctor_get(x_314, 1); -lean_inc(x_326); -if (lean_is_exclusive(x_314)) { - lean_ctor_release(x_314, 0); - lean_ctor_release(x_314, 1); - x_327 = x_314; -} else { - lean_dec_ref(x_314); - 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_object* x_332; -lean_dec(x_256); -lean_dec(x_255); -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_329 = lean_ctor_get(x_257, 0); -lean_inc(x_329); -x_330 = lean_ctor_get(x_257, 1); -lean_inc(x_330); -if (lean_is_exclusive(x_257)) { - lean_ctor_release(x_257, 0); - lean_ctor_release(x_257, 1); - x_331 = x_257; -} else { - lean_dec_ref(x_257); - 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; -} -} } } } @@ -5269,6 +4954,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); return x_15; } } @@ -6654,7 +6341,7 @@ goto block_20; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; +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_104; uint8_t x_105; lean_object* x_106; x_25 = lean_ctor_get(x_21, 1); lean_inc(x_25); lean_dec(x_21); @@ -6664,39 +6351,43 @@ x_27 = lean_ctor_get(x_22, 1); lean_inc(x_27); x_28 = lean_ctor_get_uint8(x_22, sizeof(void*)*2); lean_dec(x_22); -lean_inc(x_26); x_29 = l_Lean_Meta_Grind_getGeneration(x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_25); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_103; uint8_t x_104; lean_object* x_105; 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_103 = lean_unsigned_to_nat(1u); -x_104 = lean_nat_dec_lt(x_103, x_27); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_32 = x_29; +} else { + lean_dec_ref(x_29); + x_32 = lean_box(0); +} +x_104 = lean_unsigned_to_nat(1u); +x_105 = lean_nat_dec_lt(x_104, x_27); lean_dec(x_27); lean_inc(x_26); -x_105 = l_Lean_Meta_Grind_markCaseSplitAsResolved(x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31); -if (x_104 == 0) +x_106 = l_Lean_Meta_Grind_markCaseSplitAsResolved(x_26, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31); +if (x_105 == 0) { if (x_28 == 0) { -if (lean_obj_tag(x_105) == 0) +if (lean_obj_tag(x_106) == 0) { -lean_object* x_106; -x_106 = lean_ctor_get(x_105, 1); -lean_inc(x_106); -lean_dec(x_105); +lean_object* x_107; +x_107 = lean_ctor_get(x_106, 1); +lean_inc(x_107); +lean_dec(x_106); lean_inc(x_30); -x_32 = x_30; -x_33 = x_106; -goto block_102; +x_33 = x_30; +x_34 = x_107; +goto block_103; } else { -uint8_t x_107; +uint8_t x_108; +lean_dec(x_32); lean_dec(x_30); lean_dec(x_26); lean_dec(x_8); @@ -6707,42 +6398,43 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_107 = !lean_is_exclusive(x_105); -if (x_107 == 0) +x_108 = !lean_is_exclusive(x_106); +if (x_108 == 0) { -return x_105; +return x_106; } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_105, 0); -x_109 = lean_ctor_get(x_105, 1); +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_106, 0); +x_110 = lean_ctor_get(x_106, 1); +lean_inc(x_110); lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_105); -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_dec(x_106); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +return x_111; } } } else { -if (lean_obj_tag(x_105) == 0) +if (lean_obj_tag(x_106) == 0) { -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_nat_add(x_30, x_103); -x_32 = x_112; -x_33 = x_111; -goto block_102; +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_106, 1); +lean_inc(x_112); +lean_dec(x_106); +x_113 = lean_nat_add(x_30, x_104); +x_33 = x_113; +x_34 = x_112; +goto block_103; } else { -uint8_t x_113; +uint8_t x_114; +lean_dec(x_32); lean_dec(x_30); lean_dec(x_26); lean_dec(x_8); @@ -6753,43 +6445,44 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_113 = !lean_is_exclusive(x_105); -if (x_113 == 0) +x_114 = !lean_is_exclusive(x_106); +if (x_114 == 0) { -return x_105; +return x_106; } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_114 = lean_ctor_get(x_105, 0); -x_115 = lean_ctor_get(x_105, 1); +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_106, 0); +x_116 = lean_ctor_get(x_106, 1); +lean_inc(x_116); lean_inc(x_115); -lean_inc(x_114); -lean_dec(x_105); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -return x_116; +lean_dec(x_106); +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 { -if (lean_obj_tag(x_105) == 0) +if (lean_obj_tag(x_106) == 0) { -lean_object* x_117; lean_object* x_118; -x_117 = lean_ctor_get(x_105, 1); -lean_inc(x_117); -lean_dec(x_105); -x_118 = lean_nat_add(x_30, x_103); -x_32 = x_118; -x_33 = x_117; -goto block_102; +lean_object* x_118; lean_object* x_119; +x_118 = lean_ctor_get(x_106, 1); +lean_inc(x_118); +lean_dec(x_106); +x_119 = lean_nat_add(x_30, x_104); +x_33 = x_119; +x_34 = x_118; +goto block_103; } else { -uint8_t x_119; +uint8_t x_120; +lean_dec(x_32); lean_dec(x_30); lean_dec(x_26); lean_dec(x_8); @@ -6800,167 +6493,174 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_119 = !lean_is_exclusive(x_105); -if (x_119 == 0) +x_120 = !lean_is_exclusive(x_106); +if (x_120 == 0) { -return x_105; +return x_106; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_105, 0); -x_121 = lean_ctor_get(x_105, 1); +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_106, 0); +x_122 = lean_ctor_get(x_106, 1); +lean_inc(x_122); lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_105); -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_dec(x_106); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +return x_123; } } } -block_102: +block_103: { -lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_34 = l_Lean_Meta_Grind_splitNext___lambda__4___closed__1; -x_35 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_34, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_33); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_unbox(x_36); -lean_dec(x_36); -if (x_37 == 0) +lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_35 = l_Lean_Meta_Grind_splitNext___lambda__4___closed__1; +x_36 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_35, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_34); +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_38; lean_object* x_39; lean_object* x_40; +lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_32); lean_dec(x_30); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -x_39 = lean_box(0); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +x_40 = lean_box(0); lean_inc(x_1); -x_40 = l_Lean_Meta_Grind_splitNext___lambda__3(x_26, x_32, x_39, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_38); -if (lean_obj_tag(x_40) == 0) +x_41 = l_Lean_Meta_Grind_splitNext___lambda__3(x_26, x_33, x_40, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_39); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -lean_dec(x_40); -x_10 = x_41; -x_11 = x_42; +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_10 = x_42; +x_11 = x_43; goto block_20; } else { -uint8_t x_43; +uint8_t x_44; lean_dec(x_1); -x_43 = !lean_is_exclusive(x_40); -if (x_43 == 0) +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) { -return x_40; +return x_41; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_40, 0); -x_45 = lean_ctor_get(x_40, 1); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_41, 0); +x_46 = lean_ctor_get(x_41, 1); +lean_inc(x_46); lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_40); -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_dec(x_41); +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_47; -x_47 = !lean_is_exclusive(x_35); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_35, 1); -x_49 = lean_ctor_get(x_35, 0); -lean_dec(x_49); -x_50 = l_Lean_Meta_Grind_updateLastTag(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_48); -if (lean_obj_tag(x_50) == 0) +uint8_t x_48; +x_48 = !lean_is_exclusive(x_36); +if (x_48 == 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; -x_51 = lean_ctor_get(x_50, 1); -lean_inc(x_51); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_36, 1); +x_50 = lean_ctor_get(x_36, 0); lean_dec(x_50); +x_51 = l_Lean_Meta_Grind_updateLastTag(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_49); +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; 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_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); lean_inc(x_26); -x_52 = l_Lean_MessageData_ofExpr(x_26); -x_53 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__6___closed__9; -lean_ctor_set_tag(x_35, 7); -lean_ctor_set(x_35, 1, x_52); -lean_ctor_set(x_35, 0, x_53); -x_54 = l_Lean_Meta_Grind_splitNext___lambda__4___closed__3; -x_55 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_55, 0, x_35); -lean_ctor_set(x_55, 1, x_54); -x_56 = l___private_Init_Data_Repr_0__Nat_reprFast(x_30); -x_57 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_57, 0, x_56); -x_58 = l_Lean_MessageData_ofFormat(x_57); -x_59 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_59, 0, x_55); -lean_ctor_set(x_59, 1, x_58); +x_53 = l_Lean_MessageData_ofExpr(x_26); +x_54 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__6___closed__9; +lean_ctor_set_tag(x_36, 7); +lean_ctor_set(x_36, 1, x_53); +lean_ctor_set(x_36, 0, x_54); +x_55 = l_Lean_Meta_Grind_splitNext___lambda__4___closed__3; +if (lean_is_scalar(x_32)) { + x_56 = lean_alloc_ctor(7, 2, 0); +} else { + x_56 = x_32; + lean_ctor_set_tag(x_56, 7); +} +lean_ctor_set(x_56, 0, x_36); +lean_ctor_set(x_56, 1, x_55); +x_57 = l___private_Init_Data_Repr_0__Nat_reprFast(x_30); +x_58 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = l_Lean_MessageData_ofFormat(x_58); x_60 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_53); -x_61 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_34, x_60, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_51); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); +lean_ctor_set(x_60, 0, x_56); +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_54); +x_62 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_35, x_61, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_52); +x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); -lean_dec(x_61); -lean_inc(x_1); -x_64 = l_Lean_Meta_Grind_splitNext___lambda__3(x_26, x_32, x_62, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); lean_dec(x_62); -if (lean_obj_tag(x_64) == 0) +lean_inc(x_1); +x_65 = l_Lean_Meta_Grind_splitNext___lambda__3(x_26, x_33, x_63, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_64); +lean_dec(x_63); +if (lean_obj_tag(x_65) == 0) { -lean_object* x_65; lean_object* x_66; -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); -lean_dec(x_64); -x_10 = x_65; -x_11 = x_66; +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_10 = x_66; +x_11 = x_67; goto block_20; } else { -uint8_t x_67; +uint8_t x_68; lean_dec(x_1); -x_67 = !lean_is_exclusive(x_64); -if (x_67 == 0) +x_68 = !lean_is_exclusive(x_65); +if (x_68 == 0) { -return x_64; +return x_65; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_64, 0); -x_69 = lean_ctor_get(x_64, 1); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_65, 0); +x_70 = lean_ctor_get(x_65, 1); +lean_inc(x_70); lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_64); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -return x_70; +lean_dec(x_65); +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_71; -lean_free_object(x_35); +uint8_t x_72; +lean_free_object(x_36); +lean_dec(x_33); lean_dec(x_32); lean_dec(x_30); lean_dec(x_26); @@ -6972,109 +6672,115 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_71 = !lean_is_exclusive(x_50); -if (x_71 == 0) +x_72 = !lean_is_exclusive(x_51); +if (x_72 == 0) { -return x_50; +return x_51; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_50, 0); -x_73 = lean_ctor_get(x_50, 1); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_51, 0); +x_74 = lean_ctor_get(x_51, 1); +lean_inc(x_74); lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_50); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; +lean_dec(x_51); +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_75; lean_object* x_76; -x_75 = lean_ctor_get(x_35, 1); -lean_inc(x_75); -lean_dec(x_35); -x_76 = l_Lean_Meta_Grind_updateLastTag(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_75); -if (lean_obj_tag(x_76) == 0) +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_36, 1); +lean_inc(x_76); +lean_dec(x_36); +x_77 = l_Lean_Meta_Grind_updateLastTag(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_76); +if (lean_obj_tag(x_77) == 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, 1); -lean_inc(x_77); -lean_dec(x_76); +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; +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +lean_dec(x_77); lean_inc(x_26); -x_78 = l_Lean_MessageData_ofExpr(x_26); -x_79 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__6___closed__9; -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 = l_Lean_Meta_Grind_splitNext___lambda__4___closed__3; -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___private_Init_Data_Repr_0__Nat_reprFast(x_30); -x_84 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_84, 0, x_83); -x_85 = l_Lean_MessageData_ofFormat(x_84); -x_86 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_86, 0, x_82); -lean_ctor_set(x_86, 1, x_85); +x_79 = l_Lean_MessageData_ofExpr(x_26); +x_80 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__6___closed__9; +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_Meta_Grind_splitNext___lambda__4___closed__3; +if (lean_is_scalar(x_32)) { + x_83 = lean_alloc_ctor(7, 2, 0); +} else { + x_83 = x_32; + lean_ctor_set_tag(x_83, 7); +} +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +x_84 = l___private_Init_Data_Repr_0__Nat_reprFast(x_30); +x_85 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_85, 0, x_84); +x_86 = l_Lean_MessageData_ofFormat(x_85); x_87 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_79); -x_88 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_34, x_87, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_77); -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); +lean_ctor_set(x_87, 0, x_83); +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_80); +x_89 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_35, x_88, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_78); +x_90 = lean_ctor_get(x_89, 0); lean_inc(x_90); -lean_dec(x_88); -lean_inc(x_1); -x_91 = l_Lean_Meta_Grind_splitNext___lambda__3(x_26, x_32, x_89, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_90); +x_91 = lean_ctor_get(x_89, 1); +lean_inc(x_91); lean_dec(x_89); -if (lean_obj_tag(x_91) == 0) +lean_inc(x_1); +x_92 = l_Lean_Meta_Grind_splitNext___lambda__3(x_26, x_33, x_90, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_91); +lean_dec(x_90); +if (lean_obj_tag(x_92) == 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_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_92, 0); lean_inc(x_93); -lean_dec(x_91); -x_10 = x_92; -x_11 = x_93; +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec(x_92); +x_10 = x_93; +x_11 = x_94; goto block_20; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_dec(x_1); -x_94 = lean_ctor_get(x_91, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_91, 1); +x_95 = lean_ctor_get(x_92, 0); 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; +x_96 = lean_ctor_get(x_92, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_97 = x_92; } else { - lean_dec_ref(x_91); - x_96 = lean_box(0); + lean_dec_ref(x_92); + x_97 = lean_box(0); } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_97)) { + x_98 = lean_alloc_ctor(1, 2, 0); } else { - x_97 = x_96; + x_98 = x_97; } -lean_ctor_set(x_97, 0, x_94); -lean_ctor_set(x_97, 1, x_95); -return x_97; +lean_ctor_set(x_98, 0, x_95); +lean_ctor_set(x_98, 1, x_96); +return x_98; } } else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_33); lean_dec(x_32); lean_dec(x_30); lean_dec(x_26); @@ -7086,68 +6792,35 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_98 = lean_ctor_get(x_76, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_76, 1); +x_99 = lean_ctor_get(x_77, 0); lean_inc(x_99); -if (lean_is_exclusive(x_76)) { - lean_ctor_release(x_76, 0); - lean_ctor_release(x_76, 1); - x_100 = x_76; +x_100 = lean_ctor_get(x_77, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_101 = x_77; } else { - lean_dec_ref(x_76); - x_100 = lean_box(0); + lean_dec_ref(x_77); + x_101 = lean_box(0); } -if (lean_is_scalar(x_100)) { - x_101 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(1, 2, 0); } else { - x_101 = x_100; -} -lean_ctor_set(x_101, 0, x_98); -lean_ctor_set(x_101, 1, x_99); -return x_101; -} -} + x_102 = x_101; } +lean_ctor_set(x_102, 0, x_99); +lean_ctor_set(x_102, 1, x_100); +return x_102; } } -else -{ -uint8_t x_123; -lean_dec(x_27); -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); -lean_dec(x_1); -x_123 = !lean_is_exclusive(x_29); -if (x_123 == 0) -{ -return x_29; -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_29, 0); -x_125 = lean_ctor_get(x_29, 1); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_29); -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 { -uint8_t x_127; +uint8_t x_124; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -7156,23 +6829,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_127 = !lean_is_exclusive(x_21); -if (x_127 == 0) +x_124 = !lean_is_exclusive(x_21); +if (x_124 == 0) { return x_21; } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_21, 0); -x_129 = lean_ctor_get(x_21, 1); -lean_inc(x_129); -lean_inc(x_128); +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_dec(x_21); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -return x_130; +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +return x_127; } } block_20: diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c index 604700b5037e..cbdad2e4fb7d 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c @@ -64,6 +64,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTrueExpr___rarg___boxed(lean_objec static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___closed__1; static size_t l_Lean_Meta_Grind_instInhabitedGoal___closed__3; LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Meta_Grind_instInhabitedMethods___spec__1___rarg___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_indexOfAux___at_Lean_Meta_Grind_resetParentsOf___spec__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_Goal_getEqcs___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_Goal_getEqc_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_congrHash_goEq___boxed(lean_object*, lean_object*, lean_object*); @@ -73,35 +74,40 @@ static lean_object* l_Lean_Meta_Grind_abstractNestedProofs___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getConfig(lean_object*); static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__27; static lean_object* l_Lean_Meta_Grind_doElemTrace__goal_x5b___x5d_______closed__3; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_resetParentsOf___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_markCaseSplitAsResolved___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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*); static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__45; 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*, 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_panic___at_Lean_Meta_Grind_foldEqc___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run(lean_object*); static lean_object* l_Lean_Meta_Grind_Goal_reportIssue___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_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_resetParentsOf___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1___rarg(lean_object*); size_t lean_uint64_to_usize(uint64_t); uint64_t lean_uint64_lor(uint64_t, uint64_t); +static lean_object* l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__1; extern lean_object* l_Lean_Meta_Ext_extExtension; 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___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__22; 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*); static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_69____closed__2; +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___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*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMainDeclName___boxed(lean_object*); 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___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__53; static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__24; uint8_t l_Lean_Expr_isApp(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___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*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__13; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markAsInconsistent___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 uint8_t l_Lean_Meta_Grind_isCongruent(lean_object*, lean_object*, lean_object*); @@ -114,6 +120,7 @@ lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_objec lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_markAsInconsistent___closed__1; +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1___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* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__20; static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__7; @@ -223,8 +230,8 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqCongrTheoremCacheKey___boxed(l LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_Goal_reportIssue___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Methods_toMethodsRef___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRootENode_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_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__54; -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_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___closed__11; 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*); @@ -234,6 +241,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isCongrRoot(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_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__4; static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__4; static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1445____closed__25; lean_object* l_Lean_Expr_appArg_x21(lean_object*); @@ -250,6 +258,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Gri LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashablePreInstance___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_getTarget_x3f___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_getExtTheorems___spec__5(lean_object*, lean_object*); +extern lean_object* l_instInhabitedPUnit; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_getENode(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(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMaxGeneration___boxed(lean_object*); @@ -296,7 +305,6 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_ lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_hasSameRoot___boxed(lean_object*, 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*); -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*); 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*); static lean_object* l_Lean_Meta_Grind_Canon_instInhabitedState___closed__1; 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*); @@ -344,7 +352,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_checkMaxInstancesExceeded___boxed(lea static lean_object* l_Lean_Meta_Grind_isNatNum___closed__1; lean_object* l_Lean_Meta_mkHCongrWithArityForConst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_doElemTrace__goal_x5b___x5d_______closed__2; -extern lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Ext_instInhabitedExtTheorems___spec__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_foldEqc(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*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_getExtTheorems___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -358,6 +366,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_checkMaxCaseSplit(lean_object*, lean_ LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_markTheoremInstance___spec__11___lambda__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_69____closed__1; 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*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1(lean_object*); lean_object* l_Lean_Expr_appArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markCaseSplitAsResolved___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_markTheoremInstance___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t, uint64_t); @@ -369,6 +378,7 @@ LEAN_EXPORT uint64_t l_Lean_Meta_Grind_congrHash_goEq(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_1445____closed__42; static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__49; 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*); +static lean_object* l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__58; lean_object* lean_st_ref_get(lean_object*, lean_object*); @@ -378,6 +388,7 @@ static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types___ LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__3(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__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__28; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRootENode_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___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___closed__14; 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*); @@ -396,6 +407,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_G static lean_object* l_Lean_Meta_Grind_getExtTheorems___lambda__1___closed__2; LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashablePreInstance(lean_object*); static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___closed__16; +static lean_object* l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__2; static lean_object* l_Lean_Meta_Grind_isNatNum___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_Goal_getENodes___spec__4___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isCongruent_goEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -418,6 +430,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_G LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markAsOffsetTerm(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 uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_markTheoremInstance___spec__9(lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_getExtTheorems___spec__5___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__11; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode_unsafe__1___rarg___boxed(lean_object*); @@ -429,6 +442,7 @@ lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__50; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_forEachEqcRoot___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_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*); +static lean_object* l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__5; 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_congrHash___closed__1; static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_69____closed__4; @@ -444,9 +458,11 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_alreadyInternalized(lean_object*, lea LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_getExtTheorems___spec__3(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_node2(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, lean_object*); +LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_Meta_Grind_resetParentsOf___spec__3(lean_object*, lean_object*, lean_object*); 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_Goal_getENode___boxed(lean_object*, lean_object*, 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*); +static lean_object* l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__3; 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*); static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_69____closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqPreInstance___lambda__2___boxed(lean_object*, lean_object*, lean_object*); @@ -458,6 +474,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_G static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__8; 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_object* l___private_Init_Util_0__mkPanicMessageWithDecl(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_1445____closed__17; static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___closed__5; 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*); @@ -476,6 +493,7 @@ static lean_object* l_Lean_Meta_Grind_doElemTrace__goal_x5b___x5d_______closed__ static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__3; 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*); +extern lean_object* l_Lean_Meta_instMonadMetaM; lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_69_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_hasSameType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -581,6 +599,7 @@ static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types___ 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_1445____closed__9; LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__2(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_resetParentsOf___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__32; static lean_object* l_Lean_Meta_Grind_throwNonInternalizedExpr___rarg___closed__1; static lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_109____closed__1; @@ -591,6 +610,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_M LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_throwNonInternalizedExpr___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_1445____closed__45; lean_object* l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1___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_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*); @@ -637,13 +657,15 @@ uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_instBEqCongrKey(lean_object*, lean_object*, 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_foldEqc___rarg___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_markTheoremInstance___spec__9___boxed(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_Meta_Grind_resetParentsOf___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_getExtTheorems___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_Loop_forIn_loop___at_Lean_Meta_Grind_traverseEqc___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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1445____closed__32; static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___closed__2; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_getParentsAndReset___spec__2(lean_object*, size_t, lean_object*); +lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_markCaseSplitAsResolved___closed__2; static lean_object* l_Lean_Meta_Grind_instInhabitedGoal___closed__6; 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*); @@ -654,11 +676,10 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markT 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_EXPORT lean_object* l_Lean_Meta_Grind_Goal_getRoot_x3f(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_foldEqc___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* l_Lean_ScopedEnvExtension_getState___rarg(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*, 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*); 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*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1445____closed__28; @@ -704,7 +725,7 @@ lean_object* l_String_intercalate(lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); static lean_object* l_Lean_Meta_Grind_doElemTrace__goal_x5b___x5d_______closed__20; 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*); +static lean_object* l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__3; 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*); uint8_t l_Lean_Expr_isTrue(lean_object*); uint8_t l_Lean_Expr_quickComp(lean_object*, lean_object*); @@ -720,7 +741,6 @@ uint64_t l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(lean_object*); size_t lean_usize_add(size_t, size_t); extern lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedEMatchTheorems___spec__1; static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___closed__8; -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_Goal_reportIssue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__55; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instHashableCongrTheoremCacheKey___boxed(lean_object*); @@ -737,6 +757,7 @@ static lean_object* l_Lean_Meta_Grind_doElemTrace__goal_x5b___x5d_______closed__ 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*); static double l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1445____closed__31; +lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Grind_throwNonInternalizedExpr___spec__1___rarg___boxed(lean_object*, lean_object*, 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*); @@ -747,6 +768,7 @@ size_t lean_usize_shift_left(size_t, size_t); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_MethodsRef_toMethods_unsafe__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_1445____closed__47; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_foldEqc___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_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_getExtTheorems___spec__2___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_1445____closed__12; LEAN_EXPORT uint64_t l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot_unsafe__1(lean_object*); @@ -781,6 +803,7 @@ uint8_t lean_usize_dec_lt(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_1445____closed__50; static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_1445____closed__2; 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*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_resetParentsOf(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_1445____closed__29; uint64_t l_Lean_Meta_TransparencyMode_toUInt64(uint8_t); lean_object* lean_nat_add(lean_object*, lean_object*); @@ -799,6 +822,7 @@ static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types___ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_toArray___at_Lean_Meta_Grind_Goal_getENodes___spec__1___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_MethodsRefPointed; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_doElemTrace__goal_x5b___x5d____; +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_resetParentsOf___spec__2(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_Goal_getENodes___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_doElemTrace__goal_x5b___x5d_______closed__10; 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*); @@ -809,6 +833,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markCaseSplitAsResolved___lambda__1(l 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_EXPORT lean_object* l_Lean_Meta_Grind_foldEqc___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_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_MessageData_ofName(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*); @@ -837,6 +862,8 @@ 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, lean_object*, lean_object*); +lean_object* l_ReaderT_instMonad___rarg(lean_object*); +extern lean_object* l_Lean_PersistentHashMap_empty___at_Lean_Meta_Match_instInhabitedMatchEqnsExtState___spec__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_updateLastTag___boxed(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_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*); @@ -6134,7 +6161,7 @@ x_10 = l_Lean_Meta_Grind_instInhabitedGoal___closed__4; x_11 = l_Lean_Meta_Grind_instInhabitedGoal___closed__6; x_12 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__2; x_13 = l_Lean_Meta_Grind_instInhabitedGoal___closed__7; -x_14 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Ext_instInhabitedExtTheorems___spec__1; +x_14 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Match_instInhabitedMatchEqnsExtState___spec__1; x_15 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedGoal___spec__3; x_16 = lean_alloc_ctor(0, 25, 1); lean_ctor_set(x_16, 0, x_2); @@ -12749,64 +12776,64 @@ return x_11; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getGeneration(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_11; uint8_t x_12; 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 = l_Lean_Meta_Grind_Goal_getENode(x_12, x_1, x_8, x_9, x_13); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_11, 0); +x_14 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_13, x_1); 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_15; +x_15 = lean_unsigned_to_nat(0u); +lean_ctor_set(x_11, 0, x_15); +return x_11; +} +else { lean_object* x_16; lean_object* x_17; x_16 = lean_ctor_get(x_14, 0); +lean_inc(x_16); +lean_dec(x_14); x_17 = lean_ctor_get(x_16, 8); lean_inc(x_17); lean_dec(x_16); -lean_ctor_set(x_14, 0, x_17); -return x_14; +lean_ctor_set(x_11, 0, x_17); +return x_11; +} } 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_object* x_18; lean_object* x_19; lean_object* x_20; +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_14); -x_20 = lean_ctor_get(x_18, 8); -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 -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_14); -if (x_22 == 0) +lean_dec(x_11); +x_20 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_18, x_1); +if (lean_obj_tag(x_20) == 0) { -return x_14; +lean_object* x_21; lean_object* x_22; +x_21 = lean_unsigned_to_nat(0u); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +return x_22; } 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); +x_23 = lean_ctor_get(x_20, 0); 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); +lean_dec(x_20); +x_24 = lean_ctor_get(x_23, 8); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_19); return x_25; } } @@ -12825,6 +12852,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); return x_11; } } @@ -13027,133 +13055,201 @@ uint8_t x_12; x_12 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_1, x_2); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_13; uint8_t x_14; x_13 = lean_st_ref_get(x_3, 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 = l_Lean_Meta_Grind_Goal_getENode(x_14, x_1, x_9, x_10, x_15); -if (lean_obj_tag(x_16) == 0) +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 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 = lean_st_ref_get(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 = l_Lean_Meta_Grind_Goal_getENode(x_20, x_2, x_9, x_10, x_21); -if (lean_obj_tag(x_22) == 0) +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); +x_17 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_15, x_1); +if (lean_obj_tag(x_17) == 0) { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +uint8_t x_18; lean_object* x_19; +x_18 = 0; +x_19 = lean_box(x_18); +lean_ctor_set(x_13, 0, x_19); +return x_13; +} +else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; -x_24 = lean_ctor_get(x_22, 0); -x_25 = lean_ctor_get(x_17, 2); -lean_inc(x_25); +lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_free_object(x_13); +x_20 = lean_ctor_get(x_17, 0); +lean_inc(x_20); lean_dec(x_17); -x_26 = lean_ctor_get(x_24, 2); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_25, x_26); -lean_dec(x_26); -lean_dec(x_25); -x_28 = lean_box(x_27); -lean_ctor_set(x_22, 0, x_28); -return x_22; +x_21 = lean_st_ref_get(x_3, x_16); +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 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_23, x_2); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; lean_object* x_26; +lean_dec(x_20); +x_25 = 0; +x_26 = lean_box(x_25); +lean_ctor_set(x_21, 0, x_26); +return x_21; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; -x_29 = lean_ctor_get(x_22, 0); -x_30 = lean_ctor_get(x_22, 1); -lean_inc(x_30); +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_24, 0); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_ctor_get(x_20, 2); +lean_inc(x_28); +lean_dec(x_20); +x_29 = lean_ctor_get(x_27, 2); lean_inc(x_29); -lean_dec(x_22); -x_31 = lean_ctor_get(x_17, 2); -lean_inc(x_31); -lean_dec(x_17); -x_32 = lean_ctor_get(x_29, 2); -lean_inc(x_32); +lean_dec(x_27); +x_30 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_28, x_29); lean_dec(x_29); -x_33 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_31, x_32); -lean_dec(x_32); -lean_dec(x_31); -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_30); -return x_35; +lean_dec(x_28); +x_31 = lean_box(x_30); +lean_ctor_set(x_21, 0, x_31); +return x_21; } } else { -uint8_t x_36; -lean_dec(x_17); -x_36 = !lean_is_exclusive(x_22); -if (x_36 == 0) +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 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_32, x_2); +if (lean_obj_tag(x_34) == 0) { -return x_22; +uint8_t x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_20); +x_35 = 0; +x_36 = lean_box(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_33); +return x_37; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_22, 0); -x_38 = lean_ctor_get(x_22, 1); +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; +x_38 = lean_ctor_get(x_34, 0); lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_22); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; +lean_dec(x_34); +x_39 = lean_ctor_get(x_20, 2); +lean_inc(x_39); +lean_dec(x_20); +x_40 = lean_ctor_get(x_38, 2); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_39, x_40); +lean_dec(x_40); +lean_dec(x_39); +x_42 = lean_box(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_33); +return x_43; +} } } } else { -uint8_t x_40; -lean_dec(x_2); -x_40 = !lean_is_exclusive(x_16); -if (x_40 == 0) +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_13, 0); +x_45 = lean_ctor_get(x_13, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_13); +x_46 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_44, x_1); +if (lean_obj_tag(x_46) == 0) { -return x_16; +uint8_t x_47; lean_object* x_48; lean_object* x_49; +x_47 = 0; +x_48 = lean_box(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_45); +return x_49; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_16, 0); -x_42 = lean_ctor_get(x_16, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_16); -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_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_50 = lean_ctor_get(x_46, 0); +lean_inc(x_50); +lean_dec(x_46); +x_51 = lean_st_ref_get(x_3, x_45); +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 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_52, x_2); +if (lean_obj_tag(x_55) == 0) +{ +uint8_t x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_50); +x_56 = 0; +x_57 = lean_box(x_56); +if (lean_is_scalar(x_54)) { + x_58 = lean_alloc_ctor(0, 2, 0); +} else { + x_58 = x_54; +} +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_53); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; +x_59 = lean_ctor_get(x_55, 0); +lean_inc(x_59); +lean_dec(x_55); +x_60 = lean_ctor_get(x_50, 2); +lean_inc(x_60); +lean_dec(x_50); +x_61 = lean_ctor_get(x_59, 2); +lean_inc(x_61); +lean_dec(x_59); +x_62 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_60, x_61); +lean_dec(x_61); +lean_dec(x_60); +x_63 = lean_box(x_62); +if (lean_is_scalar(x_54)) { + x_64 = lean_alloc_ctor(0, 2, 0); +} else { + x_64 = x_54; +} +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_53); +return x_64; +} } } } else { -uint8_t x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_2); -lean_dec(x_1); -x_44 = 1; -x_45 = lean_box(x_44); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_11); -return x_46; +uint8_t x_65; lean_object* x_66; lean_object* x_67; +x_65 = 1; +x_66 = lean_box(x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_11); +return x_67; } } } @@ -13170,6 +13266,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); return x_12; } } @@ -13529,41 +13627,169 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_getNext_x3f(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRootENode_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_3; -x_3 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_1, x_2); -if (lean_obj_tag(x_3) == 0) -{ -lean_object* x_4; -x_4 = lean_box(0); -return x_4; -} -else +lean_object* x_11; uint8_t x_12; +x_11 = lean_st_ref_get(x_2, x_10); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) { -uint8_t x_5; -x_5 = !lean_is_exclusive(x_3); -if (x_5 == 0) +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); +x_15 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_13, x_1); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_6; lean_object* x_7; -x_6 = lean_ctor_get(x_3, 0); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -lean_ctor_set(x_3, 0, x_7); -return x_3; +lean_object* x_16; +x_16 = lean_box(0); +lean_ctor_set(x_11, 0, x_16); +return x_11; } else { -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_3, 0); -lean_inc(x_8); -lean_dec(x_3); -x_9 = lean_ctor_get(x_8, 1); -lean_inc(x_9); -lean_dec(x_8); -x_10 = lean_alloc_ctor(1, 1, 0); +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_free_object(x_11); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_ctor_get(x_17, 2); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_st_ref_get(x_2, x_14); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_19, 0); +x_22 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_21, x_18); +lean_dec(x_18); +lean_ctor_set(x_19, 0, x_22); +return x_19; +} +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); +x_24 = lean_ctor_get(x_19, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_19); +x_25 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_23, x_18); +lean_dec(x_18); +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; +x_27 = lean_ctor_get(x_11, 0); +x_28 = lean_ctor_get(x_11, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_11); +x_29 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_27, x_1); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; +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_28); +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; +x_32 = lean_ctor_get(x_29, 0); +lean_inc(x_32); +lean_dec(x_29); +x_33 = lean_ctor_get(x_32, 2); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_st_ref_get(x_2, x_28); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_37 = x_34; +} else { + lean_dec_ref(x_34); + x_37 = lean_box(0); +} +x_38 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_35, x_33); +lean_dec(x_33); +if (lean_is_scalar(x_37)) { + x_39 = lean_alloc_ctor(0, 2, 0); +} else { + x_39 = x_37; +} +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_36); +return x_39; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRootENode_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_getRootENode_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(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_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Goal_getNext_x3f(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_Grind_Goal_getENode_x3f(x_1, x_2); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +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; +x_6 = lean_ctor_get(x_3, 0); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_dec(x_6); +lean_ctor_set(x_3, 0, x_7); +return x_3; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +lean_dec(x_3); +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_10, 0, x_9); return x_10; } @@ -18000,136 +18226,136 @@ 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: { -lean_object* x_12; uint8_t x_13; +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_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; -x_14 = lean_ctor_get(x_12, 0); -x_15 = lean_ctor_get(x_12, 1); -x_16 = l_Lean_Meta_Grind_Goal_getRoot_x3f(x_14, x_2); -if (lean_obj_tag(x_16) == 0) +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_Goal_getRoot_x3f(x_13, x_2); +x_16 = lean_st_ref_get(x_3, x_14); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_17; -lean_dec(x_1); -x_17 = lean_box(0); -lean_ctor_set(x_12, 0, x_17); -return x_12; +x_17 = x_2; +goto block_77; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_71; lean_object* x_72; -lean_free_object(x_12); +lean_object* x_78; +lean_dec(x_2); +x_78 = lean_ctor_get(x_15, 0); +lean_inc(x_78); +lean_dec(x_15); +x_17 = x_78; +goto block_77; +} +block_77: +{ +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_69; lean_object* x_70; x_18 = lean_ctor_get(x_16, 0); lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); lean_dec(x_16); -x_19 = lean_st_ref_get(x_3, x_15); -x_20 = lean_ctor_get(x_19, 0); +x_20 = lean_ctor_get(x_18, 3); 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, 3); -lean_inc(x_22); -lean_dec(x_20); -x_71 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__7(x_22, x_18); -x_72 = lean_st_ref_take(x_3, x_21); -if (lean_obj_tag(x_71) == 0) +lean_dec(x_18); +x_69 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__7(x_20, x_17); +x_70 = lean_st_ref_take(x_3, x_19); +if (lean_obj_tag(x_69) == 0) { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -x_75 = lean_box(0); -x_23 = x_75; -x_24 = x_73; -x_25 = x_74; -goto block_70; +lean_object* x_71; lean_object* x_72; lean_object* x_73; +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_box(0); +x_21 = x_73; +x_22 = x_71; +x_23 = x_72; +goto block_68; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_71, 0); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_69, 0); +lean_inc(x_74); +lean_dec(x_69); +x_75 = lean_ctor_get(x_70, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_70, 1); lean_inc(x_76); -lean_dec(x_71); -x_77 = lean_ctor_get(x_72, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_72, 1); -lean_inc(x_78); -lean_dec(x_72); +lean_dec(x_70); +x_21 = x_74; +x_22 = x_75; x_23 = x_76; -x_24 = x_77; -x_25 = x_78; -goto block_70; +goto block_68; } -block_70: +block_68: { -uint8_t x_26; -x_26 = !lean_is_exclusive(x_24); -if (x_26 == 0) +uint8_t x_24; +x_24 = !lean_is_exclusive(x_22); +if (x_24 == 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_24, 3); -x_28 = lean_box(0); -x_29 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__1(x_23, x_1, x_28); -x_30 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__3(x_27, x_18, x_29); -lean_ctor_set(x_24, 3, x_30); -x_31 = lean_st_ref_set(x_3, x_24, x_25); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_25 = lean_ctor_get(x_22, 3); +x_26 = lean_box(0); +x_27 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__1(x_21, x_1, x_26); +x_28 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__3(x_25, x_17, x_27); +lean_ctor_set(x_22, 3, x_28); +x_29 = lean_st_ref_set(x_3, x_22, x_23); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) { -lean_object* x_33; -x_33 = lean_ctor_get(x_31, 0); -lean_dec(x_33); -lean_ctor_set(x_31, 0, x_28); -return x_31; +lean_object* x_31; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +lean_ctor_set(x_29, 0, x_26); +return x_29; } else { -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_31, 1); -lean_inc(x_34); -lean_dec(x_31); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_28); -lean_ctor_set(x_35, 1, x_34); -return x_35; +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_26); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } 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; 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; 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_36 = lean_ctor_get(x_24, 0); -x_37 = lean_ctor_get(x_24, 1); -x_38 = lean_ctor_get(x_24, 2); -x_39 = lean_ctor_get(x_24, 3); -x_40 = lean_ctor_get(x_24, 4); -x_41 = lean_ctor_get(x_24, 5); -x_42 = lean_ctor_get(x_24, 6); -x_43 = lean_ctor_get_uint8(x_24, sizeof(void*)*25); -x_44 = lean_ctor_get(x_24, 7); -x_45 = lean_ctor_get(x_24, 8); -x_46 = lean_ctor_get(x_24, 9); -x_47 = lean_ctor_get(x_24, 10); -x_48 = lean_ctor_get(x_24, 11); -x_49 = lean_ctor_get(x_24, 12); -x_50 = lean_ctor_get(x_24, 13); -x_51 = lean_ctor_get(x_24, 14); -x_52 = lean_ctor_get(x_24, 15); -x_53 = lean_ctor_get(x_24, 16); -x_54 = lean_ctor_get(x_24, 17); -x_55 = lean_ctor_get(x_24, 18); -x_56 = lean_ctor_get(x_24, 19); -x_57 = lean_ctor_get(x_24, 20); -x_58 = lean_ctor_get(x_24, 21); -x_59 = lean_ctor_get(x_24, 22); -x_60 = lean_ctor_get(x_24, 23); -x_61 = lean_ctor_get(x_24, 24); -lean_inc(x_61); -lean_inc(x_60); +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; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_34 = lean_ctor_get(x_22, 0); +x_35 = lean_ctor_get(x_22, 1); +x_36 = lean_ctor_get(x_22, 2); +x_37 = lean_ctor_get(x_22, 3); +x_38 = lean_ctor_get(x_22, 4); +x_39 = lean_ctor_get(x_22, 5); +x_40 = lean_ctor_get(x_22, 6); +x_41 = lean_ctor_get_uint8(x_22, sizeof(void*)*25); +x_42 = lean_ctor_get(x_22, 7); +x_43 = lean_ctor_get(x_22, 8); +x_44 = lean_ctor_get(x_22, 9); +x_45 = lean_ctor_get(x_22, 10); +x_46 = lean_ctor_get(x_22, 11); +x_47 = lean_ctor_get(x_22, 12); +x_48 = lean_ctor_get(x_22, 13); +x_49 = lean_ctor_get(x_22, 14); +x_50 = lean_ctor_get(x_22, 15); +x_51 = lean_ctor_get(x_22, 16); +x_52 = lean_ctor_get(x_22, 17); +x_53 = lean_ctor_get(x_22, 18); +x_54 = lean_ctor_get(x_22, 19); +x_55 = lean_ctor_get(x_22, 20); +x_56 = lean_ctor_get(x_22, 21); +x_57 = lean_ctor_get(x_22, 22); +x_58 = lean_ctor_get(x_22, 23); +x_59 = lean_ctor_get(x_22, 24); lean_inc(x_59); lean_inc(x_58); lean_inc(x_57); @@ -18146,286 +18372,80 @@ lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); lean_inc(x_44); +lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); lean_inc(x_36); -lean_dec(x_24); -x_62 = lean_box(0); -x_63 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__1(x_23, x_1, x_62); -x_64 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__3(x_39, x_18, x_63); -x_65 = lean_alloc_ctor(0, 25, 1); -lean_ctor_set(x_65, 0, x_36); -lean_ctor_set(x_65, 1, x_37); -lean_ctor_set(x_65, 2, x_38); -lean_ctor_set(x_65, 3, x_64); -lean_ctor_set(x_65, 4, x_40); -lean_ctor_set(x_65, 5, x_41); -lean_ctor_set(x_65, 6, x_42); -lean_ctor_set(x_65, 7, x_44); -lean_ctor_set(x_65, 8, x_45); -lean_ctor_set(x_65, 9, x_46); -lean_ctor_set(x_65, 10, x_47); -lean_ctor_set(x_65, 11, x_48); -lean_ctor_set(x_65, 12, x_49); -lean_ctor_set(x_65, 13, x_50); -lean_ctor_set(x_65, 14, x_51); -lean_ctor_set(x_65, 15, x_52); -lean_ctor_set(x_65, 16, x_53); -lean_ctor_set(x_65, 17, x_54); -lean_ctor_set(x_65, 18, x_55); -lean_ctor_set(x_65, 19, x_56); -lean_ctor_set(x_65, 20, x_57); -lean_ctor_set(x_65, 21, x_58); -lean_ctor_set(x_65, 22, x_59); -lean_ctor_set(x_65, 23, x_60); -lean_ctor_set(x_65, 24, x_61); -lean_ctor_set_uint8(x_65, sizeof(void*)*25, x_43); -x_66 = lean_st_ref_set(x_3, x_65, x_25); -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; +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_22); +x_60 = lean_box(0); +x_61 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__1(x_21, x_1, x_60); +x_62 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__3(x_37, x_17, x_61); +x_63 = lean_alloc_ctor(0, 25, 1); +lean_ctor_set(x_63, 0, x_34); +lean_ctor_set(x_63, 1, x_35); +lean_ctor_set(x_63, 2, x_36); +lean_ctor_set(x_63, 3, x_62); +lean_ctor_set(x_63, 4, x_38); +lean_ctor_set(x_63, 5, x_39); +lean_ctor_set(x_63, 6, x_40); +lean_ctor_set(x_63, 7, x_42); +lean_ctor_set(x_63, 8, x_43); +lean_ctor_set(x_63, 9, x_44); +lean_ctor_set(x_63, 10, x_45); +lean_ctor_set(x_63, 11, x_46); +lean_ctor_set(x_63, 12, x_47); +lean_ctor_set(x_63, 13, x_48); +lean_ctor_set(x_63, 14, x_49); +lean_ctor_set(x_63, 15, x_50); +lean_ctor_set(x_63, 16, x_51); +lean_ctor_set(x_63, 17, x_52); +lean_ctor_set(x_63, 18, x_53); +lean_ctor_set(x_63, 19, x_54); +lean_ctor_set(x_63, 20, x_55); +lean_ctor_set(x_63, 21, x_56); +lean_ctor_set(x_63, 22, x_57); +lean_ctor_set(x_63, 23, x_58); +lean_ctor_set(x_63, 24, x_59); +lean_ctor_set_uint8(x_63, sizeof(void*)*25, x_41); +x_64 = lean_st_ref_set(x_3, x_63, x_23); +x_65 = lean_ctor_get(x_64, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_66 = x_64; } else { - lean_dec_ref(x_66); - x_68 = lean_box(0); + lean_dec_ref(x_64); + x_66 = lean_box(0); } -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_66)) { + x_67 = lean_alloc_ctor(0, 2, 0); } else { - x_69 = x_68; + x_67 = x_66; } -lean_ctor_set(x_69, 0, x_62); -lean_ctor_set(x_69, 1, x_67); -return x_69; +lean_ctor_set(x_67, 0, x_60); +lean_ctor_set(x_67, 1, x_65); +return x_67; } } } } -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_12, 0); -x_80 = lean_ctor_get(x_12, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_12); -x_81 = l_Lean_Meta_Grind_Goal_getRoot_x3f(x_79, x_2); -if (lean_obj_tag(x_81) == 0) +} +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: { -lean_object* x_82; lean_object* x_83; +size_t x_7; lean_object* x_8; +x_7 = lean_unbox_usize(x_1); lean_dec(x_1); -x_82 = lean_box(0); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_80); -return x_83; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_128; lean_object* x_129; -x_84 = lean_ctor_get(x_81, 0); -lean_inc(x_84); -lean_dec(x_81); -x_85 = lean_st_ref_get(x_3, x_80); -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 = lean_ctor_get(x_86, 3); -lean_inc(x_88); -lean_dec(x_86); -x_128 = l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_registerParent___spec__7(x_88, x_84); -x_129 = lean_st_ref_take(x_3, x_87); -if (lean_obj_tag(x_128) == 0) -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -lean_dec(x_129); -x_132 = lean_box(0); -x_89 = x_132; -x_90 = x_130; -x_91 = x_131; -goto block_127; -} -else -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_128, 0); -lean_inc(x_133); -lean_dec(x_128); -x_134 = lean_ctor_get(x_129, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_129, 1); -lean_inc(x_135); -lean_dec(x_129); -x_89 = x_133; -x_90 = x_134; -x_91 = x_135; -goto block_127; -} -block_127: -{ -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; 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; -x_92 = lean_ctor_get(x_90, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_90, 1); -lean_inc(x_93); -x_94 = lean_ctor_get(x_90, 2); -lean_inc(x_94); -x_95 = lean_ctor_get(x_90, 3); -lean_inc(x_95); -x_96 = lean_ctor_get(x_90, 4); -lean_inc(x_96); -x_97 = lean_ctor_get(x_90, 5); -lean_inc(x_97); -x_98 = lean_ctor_get(x_90, 6); -lean_inc(x_98); -x_99 = lean_ctor_get_uint8(x_90, sizeof(void*)*25); -x_100 = lean_ctor_get(x_90, 7); -lean_inc(x_100); -x_101 = lean_ctor_get(x_90, 8); -lean_inc(x_101); -x_102 = lean_ctor_get(x_90, 9); -lean_inc(x_102); -x_103 = lean_ctor_get(x_90, 10); -lean_inc(x_103); -x_104 = lean_ctor_get(x_90, 11); -lean_inc(x_104); -x_105 = lean_ctor_get(x_90, 12); -lean_inc(x_105); -x_106 = lean_ctor_get(x_90, 13); -lean_inc(x_106); -x_107 = lean_ctor_get(x_90, 14); -lean_inc(x_107); -x_108 = lean_ctor_get(x_90, 15); -lean_inc(x_108); -x_109 = lean_ctor_get(x_90, 16); -lean_inc(x_109); -x_110 = lean_ctor_get(x_90, 17); -lean_inc(x_110); -x_111 = lean_ctor_get(x_90, 18); -lean_inc(x_111); -x_112 = lean_ctor_get(x_90, 19); -lean_inc(x_112); -x_113 = lean_ctor_get(x_90, 20); -lean_inc(x_113); -x_114 = lean_ctor_get(x_90, 21); -lean_inc(x_114); -x_115 = lean_ctor_get(x_90, 22); -lean_inc(x_115); -x_116 = lean_ctor_get(x_90, 23); -lean_inc(x_116); -x_117 = lean_ctor_get(x_90, 24); -lean_inc(x_117); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - lean_ctor_release(x_90, 2); - lean_ctor_release(x_90, 3); - lean_ctor_release(x_90, 4); - lean_ctor_release(x_90, 5); - lean_ctor_release(x_90, 6); - lean_ctor_release(x_90, 7); - lean_ctor_release(x_90, 8); - lean_ctor_release(x_90, 9); - lean_ctor_release(x_90, 10); - lean_ctor_release(x_90, 11); - lean_ctor_release(x_90, 12); - lean_ctor_release(x_90, 13); - lean_ctor_release(x_90, 14); - lean_ctor_release(x_90, 15); - lean_ctor_release(x_90, 16); - lean_ctor_release(x_90, 17); - lean_ctor_release(x_90, 18); - lean_ctor_release(x_90, 19); - lean_ctor_release(x_90, 20); - lean_ctor_release(x_90, 21); - lean_ctor_release(x_90, 22); - lean_ctor_release(x_90, 23); - lean_ctor_release(x_90, 24); - x_118 = x_90; -} else { - lean_dec_ref(x_90); - x_118 = lean_box(0); -} -x_119 = lean_box(0); -x_120 = l_Lean_RBNode_insert___at_Lean_Meta_Grind_registerParent___spec__1(x_89, x_1, x_119); -x_121 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__3(x_95, x_84, x_120); -if (lean_is_scalar(x_118)) { - x_122 = lean_alloc_ctor(0, 25, 1); -} else { - x_122 = x_118; -} -lean_ctor_set(x_122, 0, x_92); -lean_ctor_set(x_122, 1, x_93); -lean_ctor_set(x_122, 2, x_94); -lean_ctor_set(x_122, 3, x_121); -lean_ctor_set(x_122, 4, x_96); -lean_ctor_set(x_122, 5, x_97); -lean_ctor_set(x_122, 6, x_98); -lean_ctor_set(x_122, 7, x_100); -lean_ctor_set(x_122, 8, x_101); -lean_ctor_set(x_122, 9, x_102); -lean_ctor_set(x_122, 10, x_103); -lean_ctor_set(x_122, 11, x_104); -lean_ctor_set(x_122, 12, x_105); -lean_ctor_set(x_122, 13, x_106); -lean_ctor_set(x_122, 14, x_107); -lean_ctor_set(x_122, 15, x_108); -lean_ctor_set(x_122, 16, x_109); -lean_ctor_set(x_122, 17, x_110); -lean_ctor_set(x_122, 18, x_111); -lean_ctor_set(x_122, 19, x_112); -lean_ctor_set(x_122, 20, x_113); -lean_ctor_set(x_122, 21, x_114); -lean_ctor_set(x_122, 22, x_115); -lean_ctor_set(x_122, 23, x_116); -lean_ctor_set(x_122, 24, x_117); -lean_ctor_set_uint8(x_122, sizeof(void*)*25, x_99); -x_123 = lean_st_ref_set(x_3, x_122, x_91); -x_124 = lean_ctor_get(x_123, 1); -lean_inc(x_124); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_125 = x_123; -} else { - lean_dec_ref(x_123); - x_125 = lean_box(0); -} -if (lean_is_scalar(x_125)) { - x_126 = lean_alloc_ctor(0, 2, 0); -} else { - x_126 = x_125; -} -lean_ctor_set(x_126, 0, x_119); -lean_ctor_set(x_126, 1, x_124); -return x_126; -} -} -} -} -} -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__5(x_7, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_3); -lean_dec(x_2); -return x_8; +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_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) { @@ -18484,7 +18504,6 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); return x_12; } } @@ -18571,7 +18590,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, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_Meta_Grind_resetParentsOf___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -18610,7 +18629,7 @@ 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, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_resetParentsOf___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -18681,7 +18700,7 @@ lean_object* x_21; lean_object* x_22; size_t x_23; lean_object* x_24; lean_objec 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); +x_24 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_resetParentsOf___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) @@ -18736,7 +18755,7 @@ 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_Lean_Meta_Grind_getParentsAndReset___spec__2(x_34, x_36, x_3); +x_37 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_resetParentsOf___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) @@ -18797,7 +18816,7 @@ if (lean_is_exclusive(x_10)) { } 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); +x_51 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_resetParentsOf___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) @@ -18866,7 +18885,7 @@ 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_Meta_Grind_getParentsAndReset___spec__3(x_63, x_3, x_65); +x_66 = l_Array_indexOfAux___at_Lean_Meta_Grind_resetParentsOf___spec__3(x_63, x_3, x_65); if (lean_obj_tag(x_66) == 0) { lean_dec(x_64); @@ -18913,91 +18932,86 @@ return x_76; } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_resetParentsOf___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_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); +x_5 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_resetParentsOf___spec__2(x_1, x_4, x_2); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getParentsAndReset(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_resetParentsOf(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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 = l_Lean_Meta_Grind_getParents(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +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 = lean_st_ref_take(x_2, 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_is_exclusive(x_15); -if (x_17 == 0) +x_14 = !lean_is_exclusive(x_12); +if (x_14 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_18 = lean_ctor_get(x_15, 3); -x_19 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(x_18, x_1); -lean_ctor_set(x_15, 3, 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_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_15 = lean_ctor_get(x_12, 3); +x_16 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_resetParentsOf___spec__1(x_15, x_1); +lean_ctor_set(x_12, 3, x_16); +x_17 = lean_st_ref_set(x_2, x_12, x_13); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) { -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; +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_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; +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 { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; 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; -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(x_15, 6); -x_32 = lean_ctor_get_uint8(x_15, sizeof(void*)*25); -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); -x_40 = lean_ctor_get(x_15, 14); -x_41 = lean_ctor_get(x_15, 15); -x_42 = lean_ctor_get(x_15, 16); -x_43 = lean_ctor_get(x_15, 17); -x_44 = lean_ctor_get(x_15, 18); -x_45 = lean_ctor_get(x_15, 19); -x_46 = lean_ctor_get(x_15, 20); -x_47 = lean_ctor_get(x_15, 21); -x_48 = lean_ctor_get(x_15, 22); -x_49 = lean_ctor_get(x_15, 23); -x_50 = lean_ctor_get(x_15, 24); -lean_inc(x_50); +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; 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_24 = lean_ctor_get(x_12, 0); +x_25 = lean_ctor_get(x_12, 1); +x_26 = lean_ctor_get(x_12, 2); +x_27 = lean_ctor_get(x_12, 3); +x_28 = lean_ctor_get(x_12, 4); +x_29 = lean_ctor_get(x_12, 5); +x_30 = lean_ctor_get(x_12, 6); +x_31 = lean_ctor_get_uint8(x_12, sizeof(void*)*25); +x_32 = lean_ctor_get(x_12, 7); +x_33 = lean_ctor_get(x_12, 8); +x_34 = lean_ctor_get(x_12, 9); +x_35 = lean_ctor_get(x_12, 10); +x_36 = lean_ctor_get(x_12, 11); +x_37 = lean_ctor_get(x_12, 12); +x_38 = lean_ctor_get(x_12, 13); +x_39 = lean_ctor_get(x_12, 14); +x_40 = lean_ctor_get(x_12, 15); +x_41 = lean_ctor_get(x_12, 16); +x_42 = lean_ctor_get(x_12, 17); +x_43 = lean_ctor_get(x_12, 18); +x_44 = lean_ctor_get(x_12, 19); +x_45 = lean_ctor_get(x_12, 20); +x_46 = lean_ctor_get(x_12, 21); +x_47 = lean_ctor_get(x_12, 22); +x_48 = lean_ctor_get(x_12, 23); +x_49 = lean_ctor_get(x_12, 24); lean_inc(x_49); lean_inc(x_48); lean_inc(x_47); @@ -19015,99 +19029,101 @@ 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_51 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(x_28, x_1); -x_52 = lean_alloc_ctor(0, 25, 1); -lean_ctor_set(x_52, 0, x_25); -lean_ctor_set(x_52, 1, x_26); -lean_ctor_set(x_52, 2, x_27); -lean_ctor_set(x_52, 3, x_51); -lean_ctor_set(x_52, 4, x_29); -lean_ctor_set(x_52, 5, x_30); -lean_ctor_set(x_52, 6, x_31); -lean_ctor_set(x_52, 7, x_33); -lean_ctor_set(x_52, 8, x_34); -lean_ctor_set(x_52, 9, x_35); -lean_ctor_set(x_52, 10, x_36); -lean_ctor_set(x_52, 11, x_37); -lean_ctor_set(x_52, 12, x_38); -lean_ctor_set(x_52, 13, x_39); -lean_ctor_set(x_52, 14, x_40); -lean_ctor_set(x_52, 15, x_41); -lean_ctor_set(x_52, 16, x_42); -lean_ctor_set(x_52, 17, x_43); -lean_ctor_set(x_52, 18, x_44); -lean_ctor_set(x_52, 19, x_45); -lean_ctor_set(x_52, 20, x_46); -lean_ctor_set(x_52, 21, x_47); -lean_ctor_set(x_52, 22, x_48); -lean_ctor_set(x_52, 23, x_49); -lean_ctor_set(x_52, 24, x_50); -lean_ctor_set_uint8(x_52, sizeof(void*)*25, x_32); -x_53 = lean_st_ref_set(x_2, x_52, x_16); -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; +lean_inc(x_24); +lean_dec(x_12); +x_50 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_resetParentsOf___spec__1(x_27, x_1); +x_51 = lean_alloc_ctor(0, 25, 1); +lean_ctor_set(x_51, 0, x_24); +lean_ctor_set(x_51, 1, x_25); +lean_ctor_set(x_51, 2, x_26); +lean_ctor_set(x_51, 3, x_50); +lean_ctor_set(x_51, 4, x_28); +lean_ctor_set(x_51, 5, x_29); +lean_ctor_set(x_51, 6, x_30); +lean_ctor_set(x_51, 7, x_32); +lean_ctor_set(x_51, 8, x_33); +lean_ctor_set(x_51, 9, x_34); +lean_ctor_set(x_51, 10, x_35); +lean_ctor_set(x_51, 11, x_36); +lean_ctor_set(x_51, 12, x_37); +lean_ctor_set(x_51, 13, x_38); +lean_ctor_set(x_51, 14, x_39); +lean_ctor_set(x_51, 15, x_40); +lean_ctor_set(x_51, 16, x_41); +lean_ctor_set(x_51, 17, x_42); +lean_ctor_set(x_51, 18, x_43); +lean_ctor_set(x_51, 19, x_44); +lean_ctor_set(x_51, 20, x_45); +lean_ctor_set(x_51, 21, x_46); +lean_ctor_set(x_51, 22, x_47); +lean_ctor_set(x_51, 23, x_48); +lean_ctor_set(x_51, 24, x_49); +lean_ctor_set_uint8(x_51, sizeof(void*)*25, x_31); +x_52 = lean_st_ref_set(x_2, x_51, x_13); +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_53); - x_55 = lean_box(0); + lean_dec_ref(x_52); + x_54 = lean_box(0); } -if (lean_is_scalar(x_55)) { +x_55 = lean_box(0); +if (lean_is_scalar(x_54)) { x_56 = lean_alloc_ctor(0, 2, 0); } else { - x_56 = x_55; + x_56 = x_54; } -lean_ctor_set(x_56, 0, x_12); -lean_ctor_set(x_56, 1, x_54); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_53); return x_56; } } } -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) { +LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_Meta_Grind_resetParentsOf___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_indexOfAux___at_Lean_Meta_Grind_getParentsAndReset___spec__3(x_1, x_2, x_3); +x_4 = l_Array_indexOfAux___at_Lean_Meta_Grind_resetParentsOf___spec__3(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); 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) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_resetParentsOf___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_Lean_Meta_Grind_getParentsAndReset___spec__2(x_1, x_4, x_3); +x_5 = l_Lean_PersistentHashMap_eraseAux___at_Lean_Meta_Grind_resetParentsOf___spec__2(x_1, x_4, x_3); lean_dec(x_3); 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) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_resetParentsOf___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_getParentsAndReset___spec__1(x_1, x_2); +x_3 = l_Lean_PersistentHashMap_erase___at_Lean_Meta_Grind_resetParentsOf___spec__1(x_1, x_2); lean_dec(x_2); 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) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_resetParentsOf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, 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_getParentsAndReset(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_Grind_resetParentsOf(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); @@ -23139,6 +23155,956 @@ lean_dec(x_1); return x_14; } } +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1___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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_1, 1); +lean_inc(x_15); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_2); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_3); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, 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_14); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___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, 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); +lean_inc(x_14); +lean_dec(x_4); +x_15 = !lean_is_exclusive(x_14); +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_14, 0); +x_17 = lean_ctor_get(x_14, 1); +x_18 = lean_st_ref_get(x_5, x_13); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +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_16); +x_22 = l_Lean_Meta_Grind_Goal_getENode(x_20, x_16, x_11, x_12, x_21); +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); +lean_inc(x_2); +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_23); +x_25 = lean_apply_11(x_2, x_23, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_24); +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_30; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +x_29 = lean_ctor_get(x_23, 1); +lean_inc(x_29); +x_30 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_29, x_1); +lean_dec(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_free_object(x_25); +lean_free_object(x_18); +lean_free_object(x_14); +x_31 = lean_box(0); +lean_inc(x_3); +x_32 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1___rarg___lambda__1(x_23, x_27, x_3, x_16, x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_28); +lean_dec(x_16); +lean_dec(x_23); +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_ctor_get(x_33, 0); +lean_inc(x_35); +lean_dec(x_33); +x_4 = x_35; +x_13 = x_34; +goto _start; +} +else +{ +lean_object* x_37; +lean_dec(x_23); +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_inc(x_27); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_27); +lean_ctor_set(x_14, 1, x_27); +lean_ctor_set(x_18, 1, x_14); +lean_ctor_set(x_18, 0, x_37); +lean_ctor_set(x_25, 0, x_18); +return x_25; +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = lean_ctor_get(x_25, 0); +x_39 = lean_ctor_get(x_25, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_25); +x_40 = lean_ctor_get(x_23, 1); +lean_inc(x_40); +x_41 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_40, x_1); +lean_dec(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_free_object(x_18); +lean_free_object(x_14); +x_42 = lean_box(0); +lean_inc(x_3); +x_43 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1___rarg___lambda__1(x_23, x_38, x_3, x_16, x_42, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_39); +lean_dec(x_16); +lean_dec(x_23); +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_44, 0); +lean_inc(x_46); +lean_dec(x_44); +x_4 = x_46; +x_13 = x_45; +goto _start; +} +else +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_23); +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_inc(x_38); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_38); +lean_ctor_set(x_14, 1, x_38); +lean_ctor_set(x_18, 1, x_14); +lean_ctor_set(x_18, 0, x_48); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_18); +lean_ctor_set(x_49, 1, x_39); +return x_49; +} +} +} +else +{ +uint8_t x_50; +lean_dec(x_23); +lean_free_object(x_18); +lean_free_object(x_14); +lean_dec(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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_50 = !lean_is_exclusive(x_25); +if (x_50 == 0) +{ +return x_25; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_25, 0); +x_52 = lean_ctor_get(x_25, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_25); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +uint8_t x_54; +lean_free_object(x_18); +lean_free_object(x_14); +lean_dec(x_17); +lean_dec(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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_54 = !lean_is_exclusive(x_22); +if (x_54 == 0) +{ +return x_22; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_22, 0); +x_56 = lean_ctor_get(x_22, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_22); +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; lean_object* x_60; +x_58 = lean_ctor_get(x_18, 0); +x_59 = lean_ctor_get(x_18, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_18); +lean_inc(x_16); +x_60 = l_Lean_Meta_Grind_Goal_getENode(x_58, x_16, x_11, x_12, x_59); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +lean_inc(x_2); +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_61); +x_63 = lean_apply_11(x_2, x_61, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, 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; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_66 = x_63; +} else { + lean_dec_ref(x_63); + x_66 = lean_box(0); +} +x_67 = lean_ctor_get(x_61, 1); +lean_inc(x_67); +x_68 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_67, x_1); +lean_dec(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_dec(x_66); +lean_free_object(x_14); +x_69 = lean_box(0); +lean_inc(x_3); +x_70 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1___rarg___lambda__1(x_61, x_64, x_3, x_16, x_69, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_65); +lean_dec(x_16); +lean_dec(x_61); +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_71, 0); +lean_inc(x_73); +lean_dec(x_71); +x_4 = x_73; +x_13 = x_72; +goto _start; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(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_3); +lean_dec(x_2); +lean_inc(x_64); +x_75 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_75, 0, x_64); +lean_ctor_set(x_14, 1, x_64); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_14); +if (lean_is_scalar(x_66)) { + x_77 = lean_alloc_ctor(0, 2, 0); +} else { + x_77 = x_66; +} +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_65); +return x_77; +} +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_61); +lean_free_object(x_14); +lean_dec(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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_78 = lean_ctor_get(x_63, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_63, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_80 = x_63; +} else { + lean_dec_ref(x_63); + 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_object* x_84; lean_object* x_85; +lean_free_object(x_14); +lean_dec(x_17); +lean_dec(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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_82 = lean_ctor_get(x_60, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_60, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_84 = x_60; +} else { + lean_dec_ref(x_60); + x_84 = lean_box(0); +} +if (lean_is_scalar(x_84)) { + x_85 = lean_alloc_ctor(1, 2, 0); +} else { + x_85 = x_84; +} +lean_ctor_set(x_85, 0, x_82); +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_object* x_90; lean_object* x_91; lean_object* x_92; +x_86 = lean_ctor_get(x_14, 0); +x_87 = lean_ctor_get(x_14, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_14); +x_88 = lean_st_ref_get(x_5, x_13); +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); +} +lean_inc(x_86); +x_92 = l_Lean_Meta_Grind_Goal_getENode(x_89, x_86, x_11, x_12, x_90); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +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); +lean_inc(x_2); +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_93); +x_95 = lean_apply_11(x_2, x_93, x_87, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_94); +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; +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); +} +x_99 = lean_ctor_get(x_93, 1); +lean_inc(x_99); +x_100 = l_Lean_Meta_Grind_isSameExpr_unsafe__1(x_99, x_1); +lean_dec(x_99); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_98); +lean_dec(x_91); +x_101 = lean_box(0); +lean_inc(x_3); +x_102 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1___rarg___lambda__1(x_93, x_96, x_3, x_86, x_101, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_97); +lean_dec(x_86); +lean_dec(x_93); +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); +lean_dec(x_103); +x_4 = x_105; +x_13 = x_104; +goto _start; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_dec(x_93); +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_inc(x_96); +x_107 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_107, 0, x_96); +x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 0, x_86); +lean_ctor_set(x_108, 1, x_96); +if (lean_is_scalar(x_91)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_91; +} +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +if (lean_is_scalar(x_98)) { + x_110 = lean_alloc_ctor(0, 2, 0); +} else { + x_110 = x_98; +} +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_97); +return x_110; +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_93); +lean_dec(x_91); +lean_dec(x_86); +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); +x_111 = lean_ctor_get(x_95, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_95, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_113 = x_95; +} else { + lean_dec_ref(x_95); + 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_dec(x_91); +lean_dec(x_87); +lean_dec(x_86); +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); +x_115 = lean_ctor_get(x_92, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_92, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_117 = x_92; +} else { + lean_dec_ref(x_92); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1___rarg___boxed), 13, 0); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___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_Lean_Meta_Grind_foldEqc___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__1; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__2; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__3; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__4; +x_2 = l_instInhabitedPUnit; +x_3 = l_instInhabitedOfMonad___rarg(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_foldEqc___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) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__5; +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_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Tactic.Grind.Types", 28, 28); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.Grind.foldEqc", 23, 23); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_foldEqc___rarg___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_foldEqc___rarg___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_foldEqc___rarg___lambda__1___closed__1; +x_2 = l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__2; +x_3 = lean_unsigned_to_nat(816u); +x_4 = lean_unsigned_to_nat(2u); +x_5 = l_Lean_Meta_Grind_foldEqc___rarg___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_foldEqc___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_object* x_13; +x_12 = l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__4; +x_13 = l_panic___at_Lean_Meta_Grind_foldEqc___spec__2(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; +x_15 = lean_ctor_get(x_13, 0); +lean_dec(x_15); +lean_ctor_set(x_13, 0, x_1); +return x_13; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +else +{ +uint8_t x_18; +lean_dec(x_1); +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_Meta_Grind_foldEqc___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) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_box(0); +lean_inc(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_1); +lean_ctor_set(x_14, 1, x_2); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +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_16 = l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1___rarg(x_1, x_3, x_13, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_1); +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_17, 1); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_dec(x_16); +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_Grind_foldEqc___rarg___lambda__1(x_21, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20); +return x_23; +} +else +{ +uint8_t x_24; +lean_dec(x_18); +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_24 = !lean_is_exclusive(x_16); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_16, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_19, 0); +lean_inc(x_26); +lean_dec(x_19); +lean_ctor_set(x_16, 0, x_26); +return x_16; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_16, 1); +lean_inc(x_27); +lean_dec(x_16); +x_28 = lean_ctor_get(x_19, 0); +lean_inc(x_28); +lean_dec(x_19); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +} +else +{ +uint8_t x_30; +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_30 = !lean_is_exclusive(x_16); +if (x_30 == 0) +{ +return x_16; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_16, 0); +x_32 = lean_ctor_get(x_16, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_16); +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_foldEqc(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_foldEqc___rarg), 12, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1___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, 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_Lean_Meta_Grind_foldEqc___spec__1___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, 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_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___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, lean_object* x_7, 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_Loop_forIn_loop___at_Lean_Meta_Grind_foldEqc___spec__1___rarg(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_Grind_foldEqc___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_foldEqc___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_2); +return x_12; +} +} LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_forEachENode___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { @@ -27319,6 +28285,24 @@ l_Array_qsort_sort___at_Lean_Meta_Grind_Goal_getENodes___spec__4___closed__1 = _ lean_mark_persistent(l_Array_qsort_sort___at_Lean_Meta_Grind_Goal_getENodes___spec__4___closed__1); l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_traverseEqc___spec__1___closed__1 = _init_l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_traverseEqc___spec__1___closed__1(); lean_mark_persistent(l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_traverseEqc___spec__1___closed__1); +l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__1 = _init_l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__1(); +lean_mark_persistent(l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__1); +l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__2 = _init_l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__2(); +lean_mark_persistent(l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__2); +l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__3 = _init_l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__3(); +lean_mark_persistent(l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__3); +l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__4 = _init_l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__4(); +lean_mark_persistent(l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__4); +l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__5 = _init_l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__5(); +lean_mark_persistent(l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__5); +l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__1 = _init_l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__1); +l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__2 = _init_l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__2); +l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__3 = _init_l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__3); +l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__4 = _init_l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__4); l_Lean_Meta_Grind_instInhabitedMethods___closed__1 = _init_l_Lean_Meta_Grind_instInhabitedMethods___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_instInhabitedMethods___closed__1); l_Lean_Meta_Grind_instInhabitedMethods = _init_l_Lean_Meta_Grind_instInhabitedMethods();