From 0f193326189a35efd1b574d45ede9fd649b74f7d Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Wed, 13 Mar 2024 11:45:44 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/kernel/environment.cpp | 2 + stage0/src/kernel/kernel_exception.h | 33 +- stage0/stdlib/Init/Data/Int.c | 6 +- stage0/stdlib/Init/Data/Int/DivModLemmas.c | 6 +- stage0/stdlib/Init/Data/Int/Gcd.c | 35 +- stage0/stdlib/Init/Data/Int/Order.c | 6 +- stage0/stdlib/Init/Data/Int/Pow.c | 29 + stage0/stdlib/Init/Data/Nat/Bitwise/Lemmas.c | 6 +- stage0/stdlib/Init/Data/Nat/Div.c | 11 + stage0/stdlib/Init/Data/Nat/Dvd.c | 17 +- stage0/stdlib/Init/Data/Nat/Lemmas.c | 6 +- stage0/stdlib/Init/Data/Option/Basic.c | 60 +- stage0/stdlib/Init/Data/Option/Instances.c | 4 +- stage0/stdlib/Init/Data/Random.c | 6 +- stage0/stdlib/Init/Data/Sum.c | 69 +- stage0/stdlib/Init/MetaTypes.c | 116 +- stage0/stdlib/Init/Omega/Constraint.c | 133 +- stage0/stdlib/Init/Omega/Int.c | 6 +- stage0/stdlib/Init/Omega/IntList.c | 6 +- stage0/stdlib/Init/Omega/LinearCombo.c | 89 +- stage0/stdlib/Lean/Compiler/CSimpAttr.c | 6 +- .../stdlib/Lean/Compiler/LCNF/AuxDeclCache.c | 14 +- stage0/stdlib/Lean/Compiler/LCNF/Basic.c | 38 +- .../stdlib/Lean/Compiler/LCNF/Simp/JpCases.c | 202 +- stage0/stdlib/Lean/Compiler/LCNF/Testing.c | 4 +- stage0/stdlib/Lean/CoreM.c | 4 +- stage0/stdlib/Lean/Data/Json/Parser.c | 457 +-- stage0/stdlib/Lean/Data/Position.c | 4 +- stage0/stdlib/Lean/Elab/Command.c | 4 +- stage0/stdlib/Lean/Elab/GuardMsgs.c | 3115 +++++++++-------- stage0/stdlib/Lean/Elab/MutualDef.c | 879 +++-- stage0/stdlib/Lean/Elab/Tactic/Omega/Core.c | 176 +- .../stdlib/Lean/Elab/Tactic/Omega/MinNatAbs.c | 16 +- stage0/stdlib/Lean/Elab/Tactic/Omega/OmegaM.c | 81 +- stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c | 783 +++-- stage0/stdlib/Lean/Environment.c | 506 +-- stage0/stdlib/Lean/Linter/MissingDocs.c | 4 +- stage0/stdlib/Lean/Message.c | 195 +- stage0/stdlib/Lean/Meta/KAbstract.c | 18 +- stage0/stdlib/Lean/Meta/Match/Match.c | 42 +- stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c | 42 +- .../Lean/Meta/Tactic/LinearArith/Solver.c | 139 +- stage0/stdlib/Lean/Meta/Tactic/Rewrite.c | 8 + stage0/stdlib/Lean/Parser/Command.c | 4 +- stage0/stdlib/Lean/Server/References.c | 42 +- stage0/stdlib/Lean/Server/Requests.c | 4 +- stage0/stdlib/Lean/Server/Watchdog.c | 4 +- 47 files changed, 3905 insertions(+), 3532 deletions(-) create mode 100644 stage0/stdlib/Init/Data/Int/Pow.c diff --git a/stage0/src/kernel/environment.cpp b/stage0/src/kernel/environment.cpp index 56b67af4a7..792f4880df 100644 --- a/stage0/src/kernel/environment.cpp +++ b/stage0/src/kernel/environment.cpp @@ -178,6 +178,8 @@ environment environment::add_theorem(declaration const & d, bool check) const { if (check) { // TODO(Leo): we must add support for handling tasks here type_checker checker(*this); + if (!checker.is_prop(v.get_type())) + throw theorem_type_is_not_prop(*this, v.get_name(), v.get_type()); check_constant_val(*this, v.to_constant_val(), checker); check_no_metavar_no_fvar(*this, v.get_name(), v.get_value()); expr val_type = checker.check(v.get_value(), v.get_lparams()); diff --git a/stage0/src/kernel/kernel_exception.h b/stage0/src/kernel/kernel_exception.h index 930185828f..793cf64032 100644 --- a/stage0/src/kernel/kernel_exception.h +++ b/stage0/src/kernel/kernel_exception.h @@ -66,6 +66,16 @@ public: expr const & get_expr() const { return m_expr; } }; +class theorem_type_is_not_prop : public kernel_exception { + name m_name; + expr m_type; +public: + theorem_type_is_not_prop(environment const & env, name const & n, expr const & type): + kernel_exception(env), m_name(n), m_type(type) {} + name const & get_decl_name() const { return m_name; } + expr const & get_type() const { return m_type; } +}; + class kernel_exception_with_lctx : public kernel_exception { local_ctx m_lctx; public: @@ -185,21 +195,24 @@ object * catch_kernel_exceptions(std::function const & f) { } catch (invalid_proj_exception & ex) { // 10 | invalidProj (env : Environment) (lctx : LocalContext) (proj : Expr) return mk_cnstr(0, mk_cnstr(10, ex.env(), ex.get_local_ctx(), ex.get_proj())).steal(); + } catch (theorem_type_is_not_prop & ex) { + // 11 | thmTypeIsNotProp (env : Environment) (name : Name) (type : Expr) + return mk_cnstr(0, mk_cnstr(11, ex.env(), ex.get_decl_name(), ex.get_type())).steal(); } catch (exception & ex) { - // 11 | other (msg : String) - return mk_cnstr(0, mk_cnstr(11, string_ref(ex.what()))).steal(); + // 12 | other (msg : String) + return mk_cnstr(0, mk_cnstr(12, string_ref(ex.what()))).steal(); } catch (heartbeat_exception & ex) { - // 12 | deterministicTimeout - return mk_cnstr(0, box(12)).steal(); - } catch (memory_exception & ex) { - // 13 | excessiveMemory + // 13 | deterministicTimeout return mk_cnstr(0, box(13)).steal(); - } catch (stack_space_exception & ex) { - // 14 | deepRecursion + } catch (memory_exception & ex) { + // 14 | excessiveMemory return mk_cnstr(0, box(14)).steal(); - } catch (interrupted & ex) { - // 15 | interrupted + } catch (stack_space_exception & ex) { + // 15 | deepRecursion return mk_cnstr(0, box(15)).steal(); + } catch (interrupted & ex) { + // 16 | interrupted + return mk_cnstr(0, box(16)).steal(); } } } diff --git a/stage0/stdlib/Init/Data/Int.c b/stage0/stdlib/Init/Data/Int.c index 0c748e32b6..4b39428c5a 100644 --- a/stage0/stdlib/Init/Data/Int.c +++ b/stage0/stdlib/Init/Data/Int.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.Int -// Imports: Init.Data.Int.Basic Init.Data.Int.Bitwise Init.Data.Int.DivMod Init.Data.Int.DivModLemmas Init.Data.Int.Gcd Init.Data.Int.Lemmas Init.Data.Int.Order +// Imports: Init.Data.Int.Basic Init.Data.Int.Bitwise Init.Data.Int.DivMod Init.Data.Int.DivModLemmas Init.Data.Int.Gcd Init.Data.Int.Lemmas Init.Data.Int.Order Init.Data.Int.Pow #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -20,6 +20,7 @@ lean_object* initialize_Init_Data_Int_DivModLemmas(uint8_t builtin, lean_object* lean_object* initialize_Init_Data_Int_Gcd(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Int_Lemmas(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Int_Order(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_Int_Pow(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Data_Int(uint8_t builtin, lean_object* w) { lean_object * res; @@ -46,6 +47,9 @@ lean_dec_ref(res); res = initialize_Init_Data_Int_Order(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Data_Int_Pow(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Data/Int/DivModLemmas.c b/stage0/stdlib/Init/Data/Int/DivModLemmas.c index 05479ca826..5acc777a01 100644 --- a/stage0/stdlib/Init/Data/Int/DivModLemmas.c +++ b/stage0/stdlib/Init/Data/Int/DivModLemmas.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.Int.DivModLemmas -// Imports: Init.Data.Int.DivMod Init.Data.Int.Order Init.Data.Nat.Dvd Init.RCases +// Imports: Init.Data.Int.DivMod Init.Data.Int.Order Init.Data.Nat.Dvd #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -53,7 +53,6 @@ return x_4; lean_object* initialize_Init_Data_Int_DivMod(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Int_Order(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Nat_Dvd(uint8_t builtin, lean_object*); -lean_object* initialize_Init_RCases(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Data_Int_DivModLemmas(uint8_t builtin, lean_object* w) { lean_object * res; @@ -68,9 +67,6 @@ lean_dec_ref(res); res = initialize_Init_Data_Nat_Dvd(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Init_RCases(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); l_Int_decidableDvd___closed__1 = _init_l_Int_decidableDvd___closed__1(); lean_mark_persistent(l_Int_decidableDvd___closed__1); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Init/Data/Int/Gcd.c b/stage0/stdlib/Init/Data/Int/Gcd.c index 5597bcc291..ca0e084360 100644 --- a/stage0/stdlib/Init/Data/Int/Gcd.c +++ b/stage0/stdlib/Init/Data/Int/Gcd.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.Int.Gcd -// Imports: Init.Data.Int.Basic Init.Data.Nat.Gcd +// Imports: Init.Data.Int.Basic Init.Data.Nat.Gcd Init.Data.Nat.Lcm Init.Data.Int.DivModLemmas #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -14,8 +14,11 @@ extern "C" { #endif lean_object* lean_nat_gcd(lean_object*, lean_object*); +lean_object* l_Nat_lcm(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Int_gcd(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Int_lcm(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Int_gcd___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Int_lcm___boxed(lean_object*, lean_object*); lean_object* lean_nat_abs(lean_object*); LEAN_EXPORT lean_object* l_Int_gcd(lean_object* x_1, lean_object* x_2) { _start: @@ -39,8 +42,32 @@ lean_dec(x_1); return x_3; } } +LEAN_EXPORT lean_object* l_Int_lcm(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_nat_abs(x_1); +x_4 = lean_nat_abs(x_2); +x_5 = l_Nat_lcm(x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Int_lcm___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Int_lcm(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} lean_object* initialize_Init_Data_Int_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Nat_Gcd(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_Nat_Lcm(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_Int_DivModLemmas(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Data_Int_Gcd(uint8_t builtin, lean_object* w) { lean_object * res; @@ -52,6 +79,12 @@ lean_dec_ref(res); res = initialize_Init_Data_Nat_Gcd(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Data_Nat_Lcm(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Data_Int_DivModLemmas(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Data/Int/Order.c b/stage0/stdlib/Init/Data/Int/Order.c index b25c38265e..647f8c18f0 100644 --- a/stage0/stdlib/Init/Data/Int/Order.c +++ b/stage0/stdlib/Init/Data/Int/Order.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.Int.Order -// Imports: Init.Data.Int.Lemmas Init.ByCases +// Imports: Init.Data.Int.Lemmas Init.ByCases Init.RCases #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -43,6 +43,7 @@ return lean_box(0); } lean_object* initialize_Init_Data_Int_Lemmas(uint8_t builtin, lean_object*); lean_object* initialize_Init_ByCases(uint8_t builtin, lean_object*); +lean_object* initialize_Init_RCases(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Data_Int_Order(uint8_t builtin, lean_object* w) { lean_object * res; @@ -54,6 +55,9 @@ lean_dec_ref(res); res = initialize_Init_ByCases(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_RCases(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Int_instTransIntLeInstLEInt = _init_l_Int_instTransIntLeInstLEInt(); l_Int_instTransIntLtInstLTIntLeInstLEInt = _init_l_Int_instTransIntLtInstLTIntLeInstLEInt(); l_Int_instTransIntLeInstLEIntLtInstLTInt = _init_l_Int_instTransIntLeInstLEIntLtInstLTInt(); diff --git a/stage0/stdlib/Init/Data/Int/Pow.c b/stage0/stdlib/Init/Data/Int/Pow.c new file mode 100644 index 0000000000..99ef7152f8 --- /dev/null +++ b/stage0/stdlib/Init/Data/Int/Pow.c @@ -0,0 +1,29 @@ +// Lean compiler output +// Module: Init.Data.Int.Pow +// Imports: Init.Data.Int.Lemmas +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* initialize_Init_Data_Int_Lemmas(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Init_Data_Int_Pow(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init_Data_Int_Lemmas(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Init/Data/Nat/Bitwise/Lemmas.c b/stage0/stdlib/Init/Data/Nat/Bitwise/Lemmas.c index b360844dd0..d5efde9aa8 100644 --- a/stage0/stdlib/Init/Data/Nat/Bitwise/Lemmas.c +++ b/stage0/stdlib/Init/Data/Nat/Bitwise/Lemmas.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.Nat.Bitwise.Lemmas -// Imports: Init.Data.Bool Init.Data.Nat.Bitwise.Basic Init.Data.Nat.Lemmas Init.TacticsExtra Init.Omega +// Imports: Init.Data.Bool Init.Data.Int.Pow Init.Data.Nat.Bitwise.Basic Init.Data.Nat.Lemmas Init.TacticsExtra Init.Omega #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -14,6 +14,7 @@ extern "C" { #endif lean_object* initialize_Init_Data_Bool(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_Int_Pow(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Nat_Bitwise_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Nat_Lemmas(uint8_t builtin, lean_object*); lean_object* initialize_Init_TacticsExtra(uint8_t builtin, lean_object*); @@ -26,6 +27,9 @@ _G_initialized = true; res = initialize_Init_Data_Bool(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Data_Int_Pow(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Init_Data_Nat_Bitwise_Basic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Init/Data/Nat/Div.c b/stage0/stdlib/Init/Data/Nat/Div.c index 92ae6a59bb..83578432be 100644 --- a/stage0/stdlib/Init/Data/Nat/Div.c +++ b/stage0/stdlib/Init/Data/Nat/Div.c @@ -18,11 +18,20 @@ LEAN_EXPORT lean_object* l_Nat_modCore___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_instModNat; LEAN_EXPORT lean_object* l_Nat_div___boxed(lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Nat_instDvdNat; lean_object* lean_nat_mod(lean_object*, lean_object*); lean_object* lean_nat_mod(lean_object*, lean_object*); static lean_object* l_Nat_instModNat___closed__1; static lean_object* l_Nat_instDivNat___closed__1; LEAN_EXPORT lean_object* l_Nat_mod___boxed(lean_object*, lean_object*); +static lean_object* _init_l_Nat_instDvdNat() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} LEAN_EXPORT lean_object* l_Nat_div___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -102,6 +111,8 @@ lean_dec_ref(res); res = initialize_Init_Data_Nat_Basic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Nat_instDvdNat = _init_l_Nat_instDvdNat(); +lean_mark_persistent(l_Nat_instDvdNat); l_Nat_instDivNat___closed__1 = _init_l_Nat_instDivNat___closed__1(); lean_mark_persistent(l_Nat_instDivNat___closed__1); l_Nat_instDivNat = _init_l_Nat_instDivNat(); diff --git a/stage0/stdlib/Init/Data/Nat/Dvd.c b/stage0/stdlib/Init/Data/Nat/Dvd.c index 405bfab1e2..034558450e 100644 --- a/stage0/stdlib/Init/Data/Nat/Dvd.c +++ b/stage0/stdlib/Init/Data/Nat/Dvd.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.Nat.Dvd -// Imports: Init.Data.Nat.Div Init.TacticsExtra +// Imports: Init.Data.Nat.Div Init.Meta #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -15,17 +15,8 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_Nat_decidable__dvd___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Nat_decidable__dvd(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Nat_instDvdNat; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* lean_nat_mod(lean_object*, lean_object*); -static lean_object* _init_l_Nat_instDvdNat() { -_start: -{ -lean_object* x_1; -x_1 = lean_box(0); -return x_1; -} -} LEAN_EXPORT uint8_t l_Nat_decidable__dvd(lean_object* x_1, lean_object* x_2) { _start: { @@ -49,7 +40,7 @@ return x_4; } } lean_object* initialize_Init_Data_Nat_Div(uint8_t builtin, lean_object*); -lean_object* initialize_Init_TacticsExtra(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Meta(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Data_Nat_Dvd(uint8_t builtin, lean_object* w) { lean_object * res; @@ -58,11 +49,9 @@ _G_initialized = true; res = initialize_Init_Data_Nat_Div(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Init_TacticsExtra(builtin, lean_io_mk_world()); +res = initialize_Init_Meta(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Nat_instDvdNat = _init_l_Nat_instDvdNat(); -lean_mark_persistent(l_Nat_instDvdNat); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Data/Nat/Lemmas.c b/stage0/stdlib/Init/Data/Nat/Lemmas.c index 5c16deb7f7..b9491928ce 100644 --- a/stage0/stdlib/Init/Data/Nat/Lemmas.c +++ b/stage0/stdlib/Init/Data/Nat/Lemmas.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.Nat.Lemmas -// Imports: Init.Data.Nat.Dvd Init.Data.Nat.MinMax Init.Data.Nat.Log2 Init.Data.Nat.Power2 Init.Omega +// Imports: Init.Data.Nat.MinMax Init.Data.Nat.Log2 Init.Data.Nat.Power2 Init.Omega #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -269,7 +269,6 @@ lean_dec(x_2); return x_3; } } -lean_object* initialize_Init_Data_Nat_Dvd(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Nat_MinMax(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Nat_Log2(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Nat_Power2(uint8_t builtin, lean_object*); @@ -279,9 +278,6 @@ LEAN_EXPORT lean_object* initialize_Init_Data_Nat_Lemmas(uint8_t builtin, lean_o lean_object * res; if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); _G_initialized = true; -res = initialize_Init_Data_Nat_Dvd(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); res = initialize_Init_Data_Nat_MinMax(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Init/Data/Option/Basic.c b/stage0/stdlib/Init/Data/Option/Basic.c index 74ad875ba9..e6d03c88e1 100644 --- a/stage0/stdlib/Init/Data/Option/Basic.c +++ b/stage0/stdlib/Init/Data/Option/Basic.c @@ -117,7 +117,6 @@ LEAN_EXPORT lean_object* l_instMonadOption___lambda__5(lean_object*, lean_object static lean_object* l_instMonadExceptOfUnitOption___closed__2; LEAN_EXPORT lean_object* l_Option_mapA___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_isSome(lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1(lean_object*); static lean_object* l_instFunctorOption___closed__2; LEAN_EXPORT lean_object* l_Option_min(lean_object*); LEAN_EXPORT lean_object* l_instMonadExceptOfUnitOption; @@ -134,7 +133,6 @@ LEAN_EXPORT lean_object* l_Option_isSome___rarg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Option_liftOrGet(lean_object*); static lean_object* l_Option_toArray___rarg___closed__1; LEAN_EXPORT lean_object* l_Option_merge___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_liftOption___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_instMonadExceptOfUnitOption___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_toMonad___rarg(lean_object*, lean_object*); @@ -197,67 +195,11 @@ x_2 = lean_alloc_closure((void*)(l___private_Init_Data_Option_Basic_0__Option_de return x_2; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_dec(x_1); -if (lean_obj_tag(x_3) == 0) -{ -uint8_t x_4; lean_object* x_5; -x_4 = 1; -x_5 = lean_box(x_4); -return x_5; -} -else -{ -uint8_t x_6; lean_object* x_7; -lean_dec(x_3); -x_6 = 0; -x_7 = lean_box(x_6); -return x_7; -} -} -else -{ -if (lean_obj_tag(x_3) == 0) -{ -uint8_t x_8; lean_object* x_9; -lean_dec(x_2); -lean_dec(x_1); -x_8 = 0; -x_9 = lean_box(x_8); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_2, 0); -lean_inc(x_10); -lean_dec(x_2); -x_11 = lean_ctor_get(x_3, 0); -lean_inc(x_11); -lean_dec(x_3); -x_12 = lean_apply_2(x_1, x_10, x_11); -return x_12; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg), 3, 0); -return x_2; -} -} LEAN_EXPORT lean_object* l_Option_instDecidableEqOption___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg(x_1, x_2, x_3); +x_4 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____rarg(x_1, x_2, x_3); return x_4; } } diff --git a/stage0/stdlib/Init/Data/Option/Instances.c b/stage0/stdlib/Init/Data/Option/Instances.c index e5dcbc6081..ac8ca25712 100644 --- a/stage0/stdlib/Init/Data/Option/Instances.c +++ b/stage0/stdlib/Init/Data/Option/Instances.c @@ -28,11 +28,11 @@ LEAN_EXPORT lean_object* l_Option_instForIn_x27OptionInferInstanceMembershipInst LEAN_EXPORT lean_object* l_Option_pbind(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_forM___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_decidable__eq__none___rarg___boxed(lean_object*); +lean_object* l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_instForIn_x27OptionInferInstanceMembershipInstMembershipOption(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_instForIn_x27OptionInferInstanceMembershipInstMembershipOption___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_pmap(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_instForMOption___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_pmap___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_pbind___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_instMembershipOption(lean_object* x_1) { @@ -49,7 +49,7 @@ _start: lean_object* x_4; lean_object* x_5; x_4 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_4, 0, x_2); -x_5 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg(x_1, x_3, x_4); +x_5 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____rarg(x_1, x_3, x_4); return x_5; } } diff --git a/stage0/stdlib/Init/Data/Random.c b/stage0/stdlib/Init/Data/Random.c index fb725bc7ad..f61cf4ad2f 100644 --- a/stage0/stdlib/Init/Data/Random.c +++ b/stage0/stdlib/Init/Data/Random.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.Random -// Imports: Init.System.IO Init.Data.Int +// Imports: Init.System.IO #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -1801,7 +1801,6 @@ return x_4; } } lean_object* initialize_Init_System_IO(uint8_t builtin, lean_object*); -lean_object* initialize_Init_Data_Int(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Data_Random(uint8_t builtin, lean_object* w) { lean_object * res; @@ -1810,9 +1809,6 @@ _G_initialized = true; res = initialize_Init_System_IO(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Init_Data_Int(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); l_instInhabitedStdGen___closed__1 = _init_l_instInhabitedStdGen___closed__1(); lean_mark_persistent(l_instInhabitedStdGen___closed__1); l_instInhabitedStdGen = _init_l_instInhabitedStdGen(); diff --git a/stage0/stdlib/Init/Data/Sum.c b/stage0/stdlib/Init/Data/Sum.c index ed3e337d62..2418399b28 100644 --- a/stage0/stdlib/Init/Data/Sum.c +++ b/stage0/stdlib/Init/Data/Sum.c @@ -17,14 +17,12 @@ LEAN_EXPORT lean_object* l_Sum_getRight_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_beqSum____x40_Init_Data_Sum___hyg_241____rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Sum_getRight_x3f___rarg___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____at_Sum_instDecidableEqSum___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Sum_getLeft_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Sum_getRight_x3f___rarg(lean_object*); LEAN_EXPORT lean_object* l_Sum_getLeft_x3f___rarg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Sum_instDecidableEqSum(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Sum_instBEqSum___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____at_Sum_instDecidableEqSum___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Sum_getLeft_x3f___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_beqSum____x40_Init_Data_Sum___hyg_241_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Sum_instDecidableEqSum___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,76 +92,11 @@ x_3 = lean_alloc_closure((void*)(l___private_Init_Data_Sum_0__Sum_decEqSum____x4 return x_3; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____at_Sum_instDecidableEqSum___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_3) == 0) -{ -lean_dec(x_2); -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_dec(x_3); -x_6 = lean_ctor_get(x_4, 0); -lean_inc(x_6); -lean_dec(x_4); -x_7 = lean_apply_2(x_1, x_5, x_6); -return x_7; -} -else -{ -uint8_t x_8; lean_object* x_9; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_8 = 0; -x_9 = lean_box(x_8); -return x_9; -} -} -else -{ -lean_dec(x_1); -if (lean_obj_tag(x_4) == 0) -{ -uint8_t x_10; lean_object* x_11; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_10 = 0; -x_11 = lean_box(x_10); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_3, 0); -lean_inc(x_12); -lean_dec(x_3); -x_13 = lean_ctor_get(x_4, 0); -lean_inc(x_13); -lean_dec(x_4); -x_14 = lean_apply_2(x_2, x_12, x_13); -return x_14; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____at_Sum_instDecidableEqSum___spec__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____at_Sum_instDecidableEqSum___spec__1___rarg), 4, 0); -return x_3; -} -} LEAN_EXPORT lean_object* l_Sum_instDecidableEqSum___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____at_Sum_instDecidableEqSum___spec__1___rarg(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Data_Sum_0__Sum_decEqSum____x40_Init_Data_Sum___hyg_4____rarg(x_1, x_2, x_3, x_4); return x_5; } } diff --git a/stage0/stdlib/Init/MetaTypes.c b/stage0/stdlib/Init/MetaTypes.c index 3163a1ffda..0e1b584836 100644 --- a/stage0/stdlib/Init/MetaTypes.c +++ b/stage0/stdlib/Init/MetaTypes.c @@ -24,7 +24,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_TransparencyMode_toCtorIdx___boxed(lean_obj LEAN_EXPORT uint8_t l_Lean_Meta_DSimp_Config_zeta___default; LEAN_EXPORT lean_object* l_Lean_NameGenerator_idx___default; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Config_maxDischargeDepth___default; -uint8_t l_List_hasDecEq___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_MetaTypes_0__Lean_Meta_Simp_beqConfig____x40_Init_MetaTypes___hyg_660____boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Init_MetaTypes_0__Lean_Meta_Simp_beqConfig____x40_Init_MetaTypes___hyg_660_(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_autoUnfold___default; @@ -42,6 +41,7 @@ LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_contextual___default; static lean_object* l_Lean_Meta_Simp_instInhabitedConfig___closed__1; LEAN_EXPORT uint8_t l_Lean_Meta_DSimp_Config_etaStruct___default; LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_memoize___default; +LEAN_EXPORT uint8_t l_List_hasDecEq___at___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____spec__1(lean_object*, lean_object*); static lean_object* l_Lean_NameGenerator_namePrefix___default___closed__1; LEAN_EXPORT uint8_t l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_TransparencyMode_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -67,6 +67,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_instBEqOccurrences; LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_decide___default; LEAN_EXPORT lean_object* l___private_Init_MetaTypes_0__Lean_Meta_beqTransparencyMode____x40_Init_MetaTypes___hyg_67____boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_dsimp___default; +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_zetaDelta___default; LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_etaStruct___default; LEAN_EXPORT lean_object* l_Lean_Meta_instBEqEtaStructMode; @@ -77,11 +78,10 @@ LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_singlePass___default; LEAN_EXPORT uint8_t l___private_Init_MetaTypes_0__Lean_Meta_DSimp_beqConfig____x40_Init_MetaTypes___hyg_233_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instInhabitedOccurrences; LEAN_EXPORT lean_object* l_Lean_NameGenerator_namePrefix___default; +LEAN_EXPORT lean_object* l_List_hasDecEq___at___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Init_MetaTypes_0__Lean_Meta_beqTransparencyMode____x40_Init_MetaTypes___hyg_67_(uint8_t, uint8_t); -static lean_object* l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____closed__1; LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_ground___default; LEAN_EXPORT uint8_t l_Lean_Meta_DSimp_Config_decide___default; -lean_object* l_Nat_decEq___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instBEqTransparencyMode; LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_eta___default; LEAN_EXPORT uint8_t l_Lean_Meta_DSimp_Config_beta___default; @@ -1858,12 +1858,54 @@ x_1 = lean_box(0); return x_1; } } -static lean_object* _init_l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____closed__1() { +LEAN_EXPORT uint8_t l_List_hasDecEq___at___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____spec__1(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Nat_decEq___boxed), 2, 0); -return x_1; +if (lean_obj_tag(x_1) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +x_10 = lean_nat_dec_eq(x_6, x_8); +if (x_10 == 0) +{ +uint8_t x_11; +x_11 = 0; +return x_11; +} +else +{ +x_1 = x_7; +x_2 = x_9; +goto _start; +} +} +} } } LEAN_EXPORT uint8_t l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066_(lean_object* x_1, lean_object* x_2) { @@ -1881,7 +1923,6 @@ return x_3; else { uint8_t x_4; -lean_dec(x_2); x_4 = 0; return x_4; } @@ -1890,51 +1931,48 @@ case 1: { if (lean_obj_tag(x_2) == 1) { -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +lean_object* x_5; lean_object* x_6; uint8_t x_7; x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -lean_dec(x_1); x_6 = lean_ctor_get(x_2, 0); -lean_inc(x_6); -lean_dec(x_2); -x_7 = l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____closed__1; -x_8 = l_List_hasDecEq___rarg(x_7, x_5, x_6); -return x_8; +x_7 = l_List_hasDecEq___at___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____spec__1(x_5, x_6); +return x_7; } else { -uint8_t x_9; -lean_dec(x_2); -lean_dec(x_1); -x_9 = 0; -return x_9; +uint8_t x_8; +x_8 = 0; +return x_8; } } default: { if (lean_obj_tag(x_2) == 2) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = lean_ctor_get(x_1, 0); -lean_inc(x_10); -lean_dec(x_1); -x_11 = lean_ctor_get(x_2, 0); -lean_inc(x_11); -lean_dec(x_2); -x_12 = l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____closed__1; -x_13 = l_List_hasDecEq___rarg(x_12, x_10, x_11); -return x_13; +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_2, 0); +x_11 = l_List_hasDecEq___at___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____spec__1(x_9, x_10); +return x_11; } else { -uint8_t x_14; +uint8_t x_12; +x_12 = 0; +return x_12; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_hasDecEq___at___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_List_hasDecEq___at___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); -x_14 = 0; -return x_14; -} -} -} +x_4 = lean_box(x_3); +return x_4; } } LEAN_EXPORT lean_object* l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____boxed(lean_object* x_1, lean_object* x_2) { @@ -1942,6 +1980,8 @@ _start: { uint8_t x_3; lean_object* x_4; x_3 = l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066_(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } @@ -2052,8 +2092,6 @@ l_Lean_Meta_Simp_neutralConfig = _init_l_Lean_Meta_Simp_neutralConfig(); lean_mark_persistent(l_Lean_Meta_Simp_neutralConfig); l_Lean_Meta_instInhabitedOccurrences = _init_l_Lean_Meta_instInhabitedOccurrences(); lean_mark_persistent(l_Lean_Meta_instInhabitedOccurrences); -l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____closed__1 = _init_l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____closed__1(); -lean_mark_persistent(l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066____closed__1); l_Lean_Meta_instBEqOccurrences___closed__1 = _init_l_Lean_Meta_instBEqOccurrences___closed__1(); lean_mark_persistent(l_Lean_Meta_instBEqOccurrences___closed__1); l_Lean_Meta_instBEqOccurrences = _init_l_Lean_Meta_instBEqOccurrences(); diff --git a/stage0/stdlib/Init/Omega/Constraint.c b/stage0/stdlib/Init/Omega/Constraint.c index 89638fbe50..a0f7dcc56f 100644 --- a/stage0/stdlib/Init/Omega/Constraint.c +++ b/stage0/stdlib/Init/Omega/Constraint.c @@ -16,7 +16,7 @@ extern "C" { LEAN_EXPORT lean_object* l_Option_repr___at___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Omega_Constraint_add___boxed(lean_object*, lean_object*); static lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____closed__15; -LEAN_EXPORT lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(lean_object*, lean_object*); lean_object* l_List_foldr___at_Lean_Omega_IntList_gcd___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Omega_Constraint_combo(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Omega_Constraint_isImpossible___boxed(lean_object*); @@ -52,9 +52,9 @@ static lean_object* l_Option_repr___at___private_Init_Omega_Constraint_0__Lean_O LEAN_EXPORT uint8_t l_Lean_Omega_Constraint_sat(lean_object*, lean_object*); static lean_object* l_Lean_Omega_Constraint_neg___closed__1; static lean_object* l_Lean_Omega_Constraint_instToStringConstraint___closed__4; +LEAN_EXPORT lean_object* l_Lean_Omega_instDecidableEqConstraint___boxed(lean_object*, lean_object*); lean_object* l_Lean_Omega_IntList_sdiv(lean_object*, lean_object*); static lean_object* l_Lean_Omega_instBEqConstraint___closed__1; -static lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____closed__1; LEAN_EXPORT uint8_t l___private_Init_Omega_Constraint_0__Lean_Omega_beqConstraint____x40_Init_Omega_Constraint___hyg_65_(lean_object*, lean_object*); static lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____closed__10; lean_object* lean_nat_to_int(lean_object*); @@ -83,12 +83,14 @@ LEAN_EXPORT lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_tidy_x3 lean_object* l_Int_bmod(lean_object*, lean_object*); static lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____closed__9; static lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____closed__2; -LEAN_EXPORT lean_object* l_Lean_Omega_instDecidableEqConstraint(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Omega_instDecidableEqConstraint(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____spec__1(lean_object*, lean_object*); lean_object* lean_int_sub(lean_object*, lean_object*); static lean_object* l_Lean_Omega_instReprConstraint___closed__1; LEAN_EXPORT lean_object* l_Lean_Omega_bmod__coeffs___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Omega_Constraint_sat___boxed(lean_object*, lean_object*); lean_object* lean_nat_abs(lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____boxed(lean_object*, lean_object*); static lean_object* l_Lean_Omega_Constraint_instToStringConstraint___closed__7; lean_object* lean_string_length(lean_object*); static lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____closed__1; @@ -107,6 +109,7 @@ uint8_t lean_int_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_tidy_x3f_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Omega_bmod__div__term(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Omega_IntList_smul(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_repr___at___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Omega_Constraint_map(lean_object*, lean_object*); @@ -132,11 +135,9 @@ static lean_object* l_Lean_Omega_Constraint_impossible___closed__4; LEAN_EXPORT lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_tidy_x3f_match__1_splitter(lean_object*); LEAN_EXPORT lean_object* l_Lean_Omega_normalize_x3f(lean_object*); lean_object* lean_int_neg(lean_object*); -lean_object* l_Int_decEq___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Init_Omega_Constraint_0__Lean_Omega_beqConstraint____x40_Init_Omega_Constraint___hyg_65____spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Omega_Constraint_instToStringConstraint___closed__2; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____closed__13; static lean_object* l_Lean_Omega_Constraint_impossible___closed__2; static lean_object* l_Lean_Omega_Constraint_map___closed__1; @@ -301,57 +302,107 @@ x_1 = l_Lean_Omega_instBEqConstraint___closed__1; return x_1; } } -static lean_object* _init_l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____closed__1() { +LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____spec__1(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Int_decEq___boxed), 2, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(lean_object* x_1, lean_object* x_2) { -_start: +if (lean_obj_tag(x_1) == 0) { -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; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_2, 1); -lean_inc(x_6); -lean_dec(x_2); -x_7 = l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____closed__1; -x_8 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg(x_7, x_3, x_5); -x_9 = lean_unbox(x_8); -lean_dec(x_8); -if (x_9 == 0) +if (lean_obj_tag(x_2) == 0) { -uint8_t x_10; lean_object* x_11; -lean_dec(x_6); -lean_dec(x_4); -x_10 = 0; -x_11 = lean_box(x_10); -return x_11; +uint8_t x_3; +x_3 = 1; +return x_3; } else { -lean_object* x_12; -x_12 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg(x_7, x_4, x_6); -return x_12; +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_int_dec_eq(x_6, x_7); +return x_8; } } } -LEAN_EXPORT lean_object* l_Lean_Omega_instDecidableEqConstraint(lean_object* x_1, lean_object* x_2) { +} +LEAN_EXPORT uint8_t l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_2, 0); +x_6 = lean_ctor_get(x_2, 1); +x_7 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____spec__1(x_3, x_5); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = 0; +return x_8; +} +else +{ +uint8_t x_9; +x_9 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____spec__1(x_4, x_6); +return x_9; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT uint8_t l_Lean_Omega_instDecidableEqConstraint(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; x_3 = l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(x_1, x_2); return x_3; } } +LEAN_EXPORT lean_object* l_Lean_Omega_instDecidableEqConstraint___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Omega_instDecidableEqConstraint(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} static lean_object* _init_l_Option_repr___at___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____spec__1___closed__1() { _start: { @@ -3027,8 +3078,6 @@ l_Lean_Omega_instBEqConstraint___closed__1 = _init_l_Lean_Omega_instBEqConstrain lean_mark_persistent(l_Lean_Omega_instBEqConstraint___closed__1); l_Lean_Omega_instBEqConstraint = _init_l_Lean_Omega_instBEqConstraint(); lean_mark_persistent(l_Lean_Omega_instBEqConstraint); -l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____closed__1 = _init_l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____closed__1(); -lean_mark_persistent(l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142____closed__1); l_Option_repr___at___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____spec__1___closed__1 = _init_l_Option_repr___at___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____spec__1___closed__1(); lean_mark_persistent(l_Option_repr___at___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____spec__1___closed__1); l_Option_repr___at___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____spec__1___closed__2 = _init_l_Option_repr___at___private_Init_Omega_Constraint_0__Lean_Omega_reprConstraint____x40_Init_Omega_Constraint___hyg_286____spec__1___closed__2(); diff --git a/stage0/stdlib/Init/Omega/Int.c b/stage0/stdlib/Init/Omega/Int.c index c0900b6e9f..a019bb31f5 100644 --- a/stage0/stdlib/Init/Omega/Int.c +++ b/stage0/stdlib/Init/Omega/Int.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Omega.Int -// Imports: Init.Data.Int.DivMod Init.Data.Int.Order Init.Data.Nat.Basic +// Imports: Init.Data.Int.DivMod Init.Data.Int.Order #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -76,7 +76,6 @@ return x_4; } lean_object* initialize_Init_Data_Int_DivMod(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Int_Order(uint8_t builtin, lean_object*); -lean_object* initialize_Init_Data_Nat_Basic(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Omega_Int(uint8_t builtin, lean_object* w) { lean_object * res; @@ -88,9 +87,6 @@ lean_dec_ref(res); res = initialize_Init_Data_Int_Order(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Init_Data_Nat_Basic(builtin, lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); l___private_Init_Omega_Int_0__Int_neg_match__1_splitter___rarg___closed__1 = _init_l___private_Init_Omega_Int_0__Int_neg_match__1_splitter___rarg___closed__1(); lean_mark_persistent(l___private_Init_Omega_Int_0__Int_neg_match__1_splitter___rarg___closed__1); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Init/Omega/IntList.c b/stage0/stdlib/Init/Omega/IntList.c index ff26f59593..e256f01ad4 100644 --- a/stage0/stdlib/Init/Omega/IntList.c +++ b/stage0/stdlib/Init/Omega/IntList.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Omega.IntList -// Imports: Init.Data.List.Lemmas Init.Data.Int.DivModLemmas Init.Data.Int.Gcd +// Imports: Init.Data.List.Lemmas Init.Data.Int.DivModLemmas Init.Data.Nat.Gcd #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -1209,7 +1209,7 @@ return x_9; } lean_object* initialize_Init_Data_List_Lemmas(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Int_DivModLemmas(uint8_t builtin, lean_object*); -lean_object* initialize_Init_Data_Int_Gcd(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_Nat_Gcd(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Omega_IntList(uint8_t builtin, lean_object* w) { lean_object * res; @@ -1221,7 +1221,7 @@ lean_dec_ref(res); res = initialize_Init_Data_Int_DivModLemmas(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Init_Data_Int_Gcd(builtin, lean_io_mk_world()); +res = initialize_Init_Data_Nat_Gcd(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Omega_IntList_get___closed__1 = _init_l_Lean_Omega_IntList_get___closed__1(); diff --git a/stage0/stdlib/Init/Omega/LinearCombo.c b/stage0/stdlib/Init/Omega/LinearCombo.c index b0516fc9da..661cdb6c30 100644 --- a/stage0/stdlib/Init/Omega/LinearCombo.c +++ b/stage0/stdlib/Init/Omega/LinearCombo.c @@ -15,7 +15,6 @@ extern "C" { #endif static lean_object* l_List_repr_x27___at___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____spec__1___closed__2; LEAN_EXPORT lean_object* l___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171_(lean_object*, lean_object*); -static lean_object* l___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____closed__1; static lean_object* l___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____closed__5; LEAN_EXPORT lean_object* l_Lean_Omega_LinearCombo_eval___boxed(lean_object*, lean_object*); static lean_object* l_List_mapTR_loop___at_Lean_Omega_LinearCombo_instToStringLinearCombo___spec__1___closed__1; @@ -25,7 +24,6 @@ static lean_object* l_List_repr_x27___at___private_Init_Omega_LinearCombo_0__Lea LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Omega_LinearCombo_instToStringLinearCombo___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Omega_instDecidableEqLinearCombo___boxed(lean_object*, lean_object*); static lean_object* l_List_repr_x27___at___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____spec__1___closed__1; -uint8_t l_List_hasDecEq___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Omega_LinearCombo_instNegLinearCombo; LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____spec__3(lean_object*, lean_object*); lean_object* l_List_zipWithAll___rarg(lean_object*, lean_object*, lean_object*); @@ -61,6 +59,7 @@ LEAN_EXPORT lean_object* l___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqL static lean_object* l___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____closed__11; lean_object* lean_int_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_repr_x27___at___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____spec__1(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_List_hasDecEq___at___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Omega_LinearCombo_neg(lean_object*); static lean_object* l___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____closed__10; LEAN_EXPORT lean_object* l_Lean_Omega_LinearCombo_instSubLinearCombo; @@ -97,10 +96,10 @@ static lean_object* l_Lean_Omega_LinearCombo_add___closed__1; uint8_t lean_int_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Omega_LinearCombo_coordinate___boxed(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_hasDecEq___at___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____spec__1___boxed(lean_object*, lean_object*); static lean_object* l_List_repr_x27___at___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____spec__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Omega_LinearCombo_mul(lean_object*, lean_object*); lean_object* lean_int_neg(lean_object*); -lean_object* l_Int_decEq___boxed(lean_object*, lean_object*); static lean_object* l___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____closed__2; lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Omega_LinearCombo_instInhabitedLinearCombo___closed__1; @@ -137,12 +136,54 @@ x_1 = lean_box(0); return x_1; } } -static lean_object* _init_l___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____closed__1() { +LEAN_EXPORT uint8_t l_List_hasDecEq___at___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____spec__1(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Int_decEq___boxed), 2, 0); -return x_1; +if (lean_obj_tag(x_1) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +x_10 = lean_int_dec_eq(x_6, x_8); +if (x_10 == 0) +{ +uint8_t x_11; +x_11 = 0; +return x_11; +} +else +{ +x_1 = x_7; +x_2 = x_9; +goto _start; +} +} +} } } LEAN_EXPORT uint8_t l___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27_(lean_object* x_1, lean_object* x_2) { @@ -150,40 +191,42 @@ _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -lean_dec(x_1); x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); x_6 = lean_ctor_get(x_2, 1); -lean_inc(x_6); -lean_dec(x_2); x_7 = lean_int_dec_eq(x_3, x_5); -lean_dec(x_5); -lean_dec(x_3); if (x_7 == 0) { uint8_t x_8; -lean_dec(x_6); -lean_dec(x_4); x_8 = 0; return x_8; } else { -lean_object* x_9; uint8_t x_10; -x_9 = l___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____closed__1; -x_10 = l_List_hasDecEq___rarg(x_9, x_4, x_6); -return x_10; +uint8_t x_9; +x_9 = l_List_hasDecEq___at___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____spec__1(x_4, x_6); +return x_9; } } } +LEAN_EXPORT lean_object* l_List_hasDecEq___at___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_List_hasDecEq___at___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} LEAN_EXPORT lean_object* l___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; x_3 = l___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27_(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } @@ -201,6 +244,8 @@ _start: { uint8_t x_3; lean_object* x_4; x_3 = l_Lean_Omega_instDecidableEqLinearCombo(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } @@ -1213,8 +1258,6 @@ l_Lean_Omega_LinearCombo_const___default = _init_l_Lean_Omega_LinearCombo_const_ lean_mark_persistent(l_Lean_Omega_LinearCombo_const___default); l_Lean_Omega_LinearCombo_coeffs___default = _init_l_Lean_Omega_LinearCombo_coeffs___default(); lean_mark_persistent(l_Lean_Omega_LinearCombo_coeffs___default); -l___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____closed__1 = _init_l___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____closed__1(); -lean_mark_persistent(l___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____closed__1); l_List_repr_x27___at___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____spec__1___closed__1 = _init_l_List_repr_x27___at___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____spec__1___closed__1(); lean_mark_persistent(l_List_repr_x27___at___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____spec__1___closed__1); l_List_repr_x27___at___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____spec__1___closed__2 = _init_l_List_repr_x27___at___private_Init_Omega_LinearCombo_0__Lean_Omega_reprLinearCombo____x40_Init_Omega_LinearCombo___hyg_171____spec__1___closed__2(); diff --git a/stage0/stdlib/Lean/Compiler/CSimpAttr.c b/stage0/stdlib/Lean/Compiler/CSimpAttr.c index 3862c903f8..6b8c39ffec 100644 --- a/stage0/stdlib/Lean/Compiler/CSimpAttr.c +++ b/stage0/stdlib/Lean/Compiler/CSimpAttr.c @@ -89,6 +89,7 @@ lean_object* l_Lean_addMessageContextPartial___at_Lean_Core_instAddMessageContex static lean_object* l_Lean_Compiler_CSimp_State_thmNames___default___closed__1; lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_CSimp_initFn____x40_Lean_Compiler_CSimpAttr___hyg_464____closed__15; +lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__4(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Compiler_CSimp_replaceConstants___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Compiler_CSimp_add___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_Compiler_CSimp_replaceConstants___spec__7(lean_object*, lean_object*, lean_object*); @@ -135,7 +136,6 @@ static lean_object* l_Lean_Compiler_CSimp_initFn____x40_Lean_Compiler_CSimpAttr_ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Compiler_CSimp_initFn____x40_Lean_Compiler_CSimpAttr___hyg_132____spec__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_CSimp_initFn____x40_Lean_Compiler_CSimpAttr___hyg_132_(lean_object*); uint64_t l_Lean_Name_hash___override(lean_object*); -lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__4(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Compiler_CSimp_initFn____x40_Lean_Compiler_CSimpAttr___hyg_132____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_CSimp_initFn____x40_Lean_Compiler_CSimpAttr___hyg_464____closed__3; static lean_object* l_Lean_Compiler_CSimp_State_map___default___closed__3; @@ -372,7 +372,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_6189____spec__4(x_4); +x_6 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__4(x_4); lean_ctor_set(x_1, 1, x_6); lean_ctor_set(x_1, 0, x_5); return x_1; @@ -386,7 +386,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_6189____spec__4(x_8); +x_10 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6214____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/Compiler/LCNF/AuxDeclCache.c b/stage0/stdlib/Lean/Compiler/LCNF/AuxDeclCache.c index c046278be2..e893be766f 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/AuxDeclCache.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/AuxDeclCache.c @@ -26,7 +26,6 @@ lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(lean_object*, lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345_(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_AuxDeclCache___hyg_9____closed__3; lean_object* l_Lean_EnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); @@ -42,6 +41,7 @@ static lean_object* l_Lean_Compiler_LCNF_cacheAuxDecl___closed__4; static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_AuxDeclCache___hyg_9____closed__4; lean_object* l_Lean_Compiler_LCNF_cacheAuxDecl___lambda__1(lean_object*, lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_findAux___at_Lean_Compiler_LCNF_cacheAuxDecl___spec__2___closed__2; +uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344_(lean_object*, lean_object*); extern lean_object* l_Lean_Compiler_LCNF_instBEqDecl; static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_AuxDeclCache___hyg_9____closed__1; uint64_t l___private_Lean_Compiler_LCNF_DeclHash_0__Lean_Compiler_LCNF_hashDecl____x40_Lean_Compiler_LCNF_DeclHash___hyg_266_(lean_object*); @@ -142,7 +142,7 @@ else lean_object* x_9; uint8_t x_10; x_9 = lean_array_fget(x_1, x_4); lean_inc(x_5); -x_10 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345_(x_5, x_9); +x_10 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344_(x_5, x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; @@ -212,7 +212,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345_(x_3, x_11); +x_13 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344_(x_3, x_11); if (x_13 == 0) { lean_object* x_14; @@ -360,7 +360,7 @@ else lean_object* x_17; uint8_t x_18; x_17 = lean_array_fget(x_5, x_2); lean_inc(x_3); -x_18 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345_(x_3, x_17); +x_18 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344_(x_3, x_17); if (x_18 == 0) { lean_object* x_19; lean_object* x_20; @@ -458,7 +458,7 @@ x_19 = lean_ctor_get(x_15, 0); x_20 = lean_ctor_get(x_15, 1); lean_inc(x_19); lean_inc(x_4); -x_21 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345_(x_4, x_19); +x_21 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344_(x_4, x_19); if (x_21 == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; @@ -494,7 +494,7 @@ lean_inc(x_26); lean_dec(x_15); lean_inc(x_26); lean_inc(x_4); -x_28 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345_(x_4, x_26); +x_28 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344_(x_4, x_26); if (x_28 == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; @@ -617,7 +617,7 @@ if (lean_is_exclusive(x_57)) { } lean_inc(x_60); lean_inc(x_4); -x_63 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345_(x_4, x_60); +x_63 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344_(x_4, x_60); if (x_63 == 0) { lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; diff --git a/stage0/stdlib/Lean/Compiler/LCNF/Basic.c b/stage0/stdlib/Lean/Compiler/LCNF/Basic.c index e73ddc2098..e74aa1a6b6 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/Basic.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/Basic.c @@ -53,6 +53,7 @@ LEAN_EXPORT lean_object* l_panic___at___private_Lean_Compiler_LCNF_Basic_0__Lean lean_object* l_Lean_Compiler_LCNF_attachCodeDecls_go(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_instInhabitedFunDeclCore___rarg(lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateFunImp___closed__2; +LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_collectUsedAtExpr(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltsImp___spec__1(lean_object*); lean_object* l_Lean_Expr_lit___override(lean_object*); @@ -81,8 +82,6 @@ lean_object* l_Lean_Compiler_LCNF_Arg_toLetValue(lean_object*); lean_object* l_Lean_Compiler_LCNF_instInhabitedAltCore___rarg(lean_object*); static lean_object* l_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateCasesImp(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345_(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____boxed(lean_object*, 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___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_collectArgs___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_instInhabitedAltCore___rarg___closed__1; @@ -182,6 +181,7 @@ static lean_object* l_Lean_Compiler_LCNF_instInhabitedParam___closed__1; static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateUnreachImp___closed__1; lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams_instExpr(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instHashableLetValue; +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344_(lean_object*, lean_object*); lean_object* l_Array_mapMono(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_collectArg(lean_object*, lean_object*); uint64_t l_Lean_Expr_hash(lean_object*); @@ -189,6 +189,7 @@ uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instHashableArg; lean_object* l_Lean_Compiler_LCNF_LitValue_toExpr(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_collectParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_markRecDecls(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instBEqParam; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instInhabitedLitValue; @@ -197,7 +198,6 @@ LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instBEqCode; uint8_t lean_name_eq(lean_object*, lean_object*); uint8_t l___private_Lean_Compiler_InlineAttrs_0__Lean_Compiler_beqInlineAttributeKind____x40_Lean_Compiler_InlineAttrs___hyg_15_(uint8_t, uint8_t); uint8_t l_Lean_Compiler_LCNF_Decl_inlineIfReduceAttr(lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instBEqDecl; static lean_object* l_Lean_Compiler_LCNF_instBEqParam___closed__1; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instInhabitedArg; @@ -214,7 +214,6 @@ lean_object* l_Lean_Compiler_LCNF_CasesCore_getCtorNames(lean_object*); lean_object* l_Lean_Compiler_LCNF_Code_isReturnOf___boxed(lean_object*, lean_object*); lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_Arg_updateTypeImp___closed__3; -LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____spec__1(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Compiler_LCNF_Decl_safe___default; LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instHashableLitValue; lean_object* l_Lean_Compiler_LCNF_markRecDecls_visit(lean_object*, lean_object*, lean_object*); @@ -234,11 +233,11 @@ LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_L static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltsImp___closed__2; lean_object* l_Lean_Compiler_LCNF_Decl_isCasesOnParam_x3f_go___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_instInhabitedCodeDecl; -LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_beq___at___private_Lean_Data_OpenDecl_0__Lean_beqOpenDecl____x40_Lean_Data_OpenDecl___hyg_39____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_collectLetValue(lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_Arg_updateFVarImp___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_LCNF_instantiateRangeArgs___spec__1(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams_instFunDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Decl_instantiateValueLevelParams_instLetValue(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_instHashableArg___closed__1; @@ -345,6 +344,7 @@ uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAltImp___closed__2; static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_collectType___closed__2; lean_object* l_Lean_Compiler_LCNF_Code_sizeLe_go(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_instInhabitedLitValue___closed__1; static lean_object* l_Lean_Compiler_LCNF_instBEqArg___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); @@ -370,8 +370,8 @@ lean_object* l_Lean_Compiler_LCNF_Decl_isTemplateLike___boxed(lean_object*, lean lean_object* l_Lean_Compiler_LCNF_hasLocalInst___boxed(lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Compiler_LCNF_CasesCore_extractAlt_x21___spec__1(lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateCasesImp___closed__1; +LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__1(lean_object*, lean_object*); uint8_t l_Lean_Compiler_LCNF_Decl_isCasesOnParam_x3f_go___lambda__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_Compiler_LCNF_instInhabitedParam___closed__1() { _start: { @@ -6675,7 +6675,7 @@ x_1 = l_Lean_Compiler_LCNF_instInhabitedDecl___closed__1; return x_1; } } -LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -6722,7 +6722,7 @@ return x_10; } } } -LEAN_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____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_EXPORT uint8_t l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; uint8_t x_8; @@ -6764,7 +6764,7 @@ goto _start; } } } -LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 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; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; uint8_t x_25; @@ -6879,7 +6879,7 @@ else { lean_object* x_35; uint8_t x_36; x_35 = lean_unsigned_to_nat(0u); -x_36 = l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____spec__2(x_6, x_14, lean_box(0), x_6, x_14, x_35); +x_36 = l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__2(x_6, x_14, lean_box(0), x_6, x_14, x_35); lean_dec(x_14); lean_dec(x_6); if (x_36 == 0) @@ -6957,7 +6957,7 @@ if (x_9 == 0) if (x_17 == 0) { uint8_t x_20; -x_20 = l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____spec__1(x_10, x_18); +x_20 = l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__1(x_10, x_18); return x_20; } else @@ -6982,27 +6982,27 @@ return x_22; else { uint8_t x_23; -x_23 = l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____spec__1(x_10, x_18); +x_23 = l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__1(x_10, x_18); return x_23; } } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____spec__1(x_1, x_2); +x_3 = l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_158____at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__1(x_1, x_2); x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____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_EXPORT lean_object* l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; lean_object* x_8; -x_7 = l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_isEqvAux___at___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); @@ -7011,11 +7011,11 @@ x_8 = lean_box(x_7); return x_8; } } -LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345_(x_1, x_2); +x_3 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344_(x_1, x_2); x_4 = lean_box(x_3); return x_4; } @@ -7024,7 +7024,7 @@ static lean_object* _init_l_Lean_Compiler_LCNF_instBEqDecl___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344____boxed), 2, 0); return x_1; } } diff --git a/stage0/stdlib/Lean/Compiler/LCNF/Simp/JpCases.c b/stage0/stdlib/Lean/Compiler/LCNF/Simp/JpCases.c index fad9e71a5c..e98f5391ec 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/Simp/JpCases.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/Simp/JpCases.c @@ -36,7 +36,6 @@ lean_object* l_Lean_indentD(lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__7___closed__1; lean_object* l_Lean_Compiler_LCNF_Simp_isJpCases_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJpAlt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__8; static lean_object* l_Lean_Compiler_LCNF_Simp_instInhabitedJpCasesInfo___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_collectJpCasesInfo_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*); static lean_object* l_panic___at___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_extractJpCases_go___spec__1___closed__2; @@ -53,10 +52,8 @@ uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT uint8_t l_Lean_RBNode_any___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visitJp_x3f___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJpAlt_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*); static lean_object* l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___lambda__1___closed__1; -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__2; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__15; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visitJmp_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Simp_findCtorName_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -75,16 +72,13 @@ LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Com lean_object* l_Lean_Compiler_LCNF_LCtx_toLocalContext(lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJpAlt_go___closed__2; LEAN_EXPORT lean_object* l_Lean_RBNode_revFold___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__4(lean_object*, lean_object*); -lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480_(lean_object*); lean_object* l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__7___closed__3; -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__5; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visitJp_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_ptr_addr(lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_extractJpCases_go___closed__1; size_t lean_usize_of_nat(lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__1; lean_object* lean_st_ref_take(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Simp_isJpCases_x3f_go___lambda__1___boxed(lean_object*, lean_object*); @@ -93,17 +87,16 @@ static lean_object* l_Lean_Compiler_LCNF_Simp_collectJpCasesInfo___closed__3; static lean_object* l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visitJmp_x3f___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Compiler_LCNF_Internalize_internalizeFunDecl___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJpAlt_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__13; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__17; lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__10; LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_RBNode_any___at_Lean_Compiler_LCNF_Simp_JpCasesInfoMap_isCandidate___spec__1(lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__10; LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJmpArgsAtJp___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJmpArgsAtJp(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_RBNode_revFold___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__4___boxed(lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Simp_withDiscrCtorImp_updateCtx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__7; static lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__8___closed__1; lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visitJp_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -113,22 +106,24 @@ lean_object* l_Lean_Compiler_LCNF_eraseCode(lean_object*, lean_object*, lean_obj lean_object* l_Lean_Name_num___override(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visitJp_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_object* l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__18; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJpAlt_go___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_LCNF_Simp_JpCasesInfo_ctorNames___default; -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__11; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__16; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJpAlt_go___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__6; lean_object* l_Lean_RBNode_insert___at_Lean_FVarIdMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Simp_collectJpCasesInfo(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___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_extractJpCases(lean_object*); lean_object* l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visit___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__3; lean_object* l_Lean_Compiler_LCNF_Internalize_internalizeParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_collectJpCasesInfo___closed__1; extern lean_object* l_Lean_Compiler_LCNF_instInhabitedArg; lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__19; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__7; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__19; LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJpAlt_go(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* l_Lean_Compiler_LCNF_CasesCore_getCtorNames(lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJpAlt_go___closed__1; @@ -138,19 +133,19 @@ extern lean_object* l_Lean_inheritedTraceOptions; lean_object* l_Lean_MessageData_ofExpr(lean_object*); lean_object* l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visitJp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_instInhabitedCasesCore(lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__17; lean_object* l_Lean_Compiler_LCNF_attachCodeDecls(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBTree_toList___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__3(lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_extractJpCases_go(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visitJp_x3f___lambda__1___closed__2; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__4; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__1; static lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_extractJpCases_go___closed__2; -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__14; -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__3; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Compiler_LCNF_Simp_collectJpCasesInfo_go___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJpAlt___closed__1; -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__4; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__13; extern lean_object* l_Lean_NameSet_empty; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__2; LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visit___spec__1(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*); static lean_object* l_Lean_isTracingEnabledFor___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__6___closed__1; @@ -162,23 +157,27 @@ LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Compiler_LCNF_Simp_simpJpCa LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJpAlt_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__14; LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visitJp_x3f___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_panic_fn(lean_object*, lean_object*); uint8_t l___private_Lean_Compiler_LCNF_DependsOn_0__Lean_Compiler_LCNF_depOn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__12; static lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__8___closed__4; static lean_object* l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___lambda__1___closed__7; lean_object* lean_nat_sub(lean_object*, lean_object*); extern lean_object* l_Lean_Compiler_LCNF_instInhabitedParam; static lean_object* l_panic___at___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_extractJpCases_go___spec__1___closed__1; -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__9; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJpAlt_go___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478_(lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__8; lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* l_Array_ofSubarray___rarg(lean_object*); lean_object* l_Lean_RBNode_insert___at_Lean_FVarIdSet_insert___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Simp_JpCasesInfoMap_isCandidate___boxed(lean_object*); static lean_object* l_panic___at___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_extractJpCases_go___spec__1___closed__3; lean_object* l_List_reverse___rarg(lean_object*); +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__6; lean_object* l_Lean_mkHashMapImp___rarg(lean_object*); uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_BasicAux_0__mapMonoMImp_go___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f_visit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -186,7 +185,6 @@ lean_object* l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_updateAl size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__8___closed__3; -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__12; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_mkJpAlt_go___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*); uint8_t l_Lean_Compiler_LCNF_CodeDecl_dependsOn(lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); @@ -200,19 +198,21 @@ static lean_object* l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___lambda__1___clos lean_object* lean_array_get_size(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__16; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__5; lean_object* l_Lean_Compiler_LCNF_Simp_isJpCases_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Simp_collectJpCasesInfo___closed__4; lean_object* l_Lean_Compiler_LCNF_mkAuxFunDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__18; lean_object* l_Lean_Compiler_LCNF_Simp_collectJpCasesInfo_go___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_Compiler_LCNF_Simp_instInhabitedJpCasesInfo; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__15; static lean_object* l_Lean_Compiler_LCNF_Simp_collectJpCasesInfo___closed__2; static lean_object* l_Lean_addTrace___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__8___closed__2; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__9; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_MessageData_ofName(lean_object*); static lean_object* l___private_Lean_Compiler_LCNF_Simp_JpCases_0__Lean_Compiler_LCNF_Simp_extractJpCases_go___closed__4; +static lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__11; static lean_object* l_List_forIn_loop___at_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___spec__7___closed__4; lean_object* l_Lean_Compiler_LCNF_Simp_isJpCases_x3f_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Compiler_LCNF_Simp_collectJpCasesInfo_go___spec__1___boxed(lean_object*, lean_object*); @@ -7969,7 +7969,7 @@ lean_dec(x_3); return x_9; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__1() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__1() { _start: { lean_object* x_1; @@ -7977,27 +7977,27 @@ x_1 = lean_mk_string_from_bytes("Lean", 4); return x_1; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__2() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__1; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__3() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__2; +x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__2; x_2 = l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___lambda__1___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__4() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__4() { _start: { lean_object* x_1; @@ -8005,17 +8005,17 @@ x_1 = lean_mk_string_from_bytes("LCNF", 4); return x_1; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__5() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__3; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__4; +x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__3; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__6() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__6() { _start: { lean_object* x_1; @@ -8023,17 +8023,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6); return x_1; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__7() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__5; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__6; +x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__5; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__6; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__8() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__8() { _start: { lean_object* x_1; @@ -8041,47 +8041,47 @@ x_1 = lean_mk_string_from_bytes("_@", 2); return x_1; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__9() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__7; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__8; +x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__7; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__10() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__9; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__1; +x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__9; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__11() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__10; +x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__10; x_2 = l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___lambda__1___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__12() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__11; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__4; +x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__11; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__4; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__13() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__13() { _start: { lean_object* x_1; @@ -8089,17 +8089,17 @@ x_1 = lean_mk_string_from_bytes("Simp", 4); return x_1; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__14() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__12; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__13; +x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__12; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__13; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__15() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__15() { _start: { lean_object* x_1; @@ -8107,17 +8107,17 @@ x_1 = lean_mk_string_from_bytes("JpCases", 7); return x_1; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__16() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__14; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__15; +x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__14; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__15; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__17() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__17() { _start: { lean_object* x_1; @@ -8125,33 +8125,33 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4); return x_1; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__18() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__16; -x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__17; +x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__16; +x_2 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__17; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__19() { +static lean_object* _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__18; -x_2 = lean_unsigned_to_nat(3480u); +x_1 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__18; +x_2 = lean_unsigned_to_nat(3478u); x_3 = l_Lean_Name_num___override(x_1, x_2); return x_3; } } -lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480_(lean_object* x_1) { +lean_object* l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478_(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_Compiler_LCNF_Simp_simpJpCases_x3f___lambda__1___closed__4; x_3 = 0; -x_4 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__19; +x_4 = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__19; x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1); return x_5; } @@ -8257,45 +8257,45 @@ l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___lambda__1___closed__6 = _init_l_Lean lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___lambda__1___closed__6); l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___lambda__1___closed__7 = _init_l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___lambda__1___closed__7(); lean_mark_persistent(l_Lean_Compiler_LCNF_Simp_simpJpCases_x3f___lambda__1___closed__7); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__1 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__1(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__1); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__2 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__2(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__2); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__3 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__3(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__3); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__4 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__4(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__4); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__5 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__5(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__5); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__6 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__6(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__6); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__7 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__7(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__7); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__8 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__8(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__8); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__9 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__9(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__9); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__10 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__10(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__10); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__11 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__11(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__11); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__12 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__12(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__12); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__13 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__13(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__13); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__14 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__14(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__14); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__15 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__15(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__15); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__16 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__16(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__16); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__17 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__17(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__17); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__18 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__18(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__18); -l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__19 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__19(); -lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480____closed__19); -if (builtin) {res = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3480_(lean_io_mk_world()); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__1 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__1(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__1); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__2 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__2(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__2); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__3 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__3(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__3); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__4 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__4(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__4); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__5 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__5(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__5); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__6 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__6(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__6); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__7 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__7(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__7); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__8 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__8(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__8); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__9 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__9(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__9); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__10 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__10(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__10); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__11 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__11(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__11); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__12 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__12(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__12); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__13 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__13(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__13); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__14 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__14(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__14); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__15 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__15(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__15); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__16 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__16(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__16); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__17 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__17(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__17); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__18 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__18(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__18); +l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__19 = _init_l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__19(); +lean_mark_persistent(l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478____closed__19); +if (builtin) {res = l_Lean_Compiler_LCNF_initFn____x40_Lean_Compiler_LCNF_Simp_JpCases___hyg_3478_(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/Compiler/LCNF/Testing.c b/stage0/stdlib/Lean/Compiler/LCNF/Testing.c index 164040e8eb..225ca523a2 100644 --- a/stage0/stdlib/Lean/Compiler/LCNF/Testing.c +++ b/stage0/stdlib/Lean/Compiler/LCNF/Testing.c @@ -53,7 +53,6 @@ lean_object* lean_array_fget(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Testing_assertSize___lambda__1___closed__3; lean_object* l_Lean_Compiler_LCNF_Testing_assert___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Testing_assertIsAtFixPoint___lambda__1___closed__3; -uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345_(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Code_containsConst_goLetValue___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Testing_assertIsAtFixPoint___lambda__1___closed__2; static lean_object* l___private_Lean_Compiler_LCNF_Testing_0__Lean_Compiler_LCNF_Testing_assertAfterTest___elambda__1___closed__6; @@ -112,6 +111,7 @@ lean_object* l_Lean_Compiler_LCNF_AltCore_getCode(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_Testing_0__Lean_Compiler_LCNF_Testing_throwFixPointError(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Testing_getDecls___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Testing_assert(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344_(lean_object*, lean_object*); lean_object* l_Lean_Compiler_LCNF_Testing_TestM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_LCNF_Testing_assertIsAtFixPoint___lambda__1___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); @@ -2894,7 +2894,7 @@ else lean_object* x_10; lean_object* x_11; uint8_t x_12; x_10 = lean_array_fget(x_4, x_6); x_11 = lean_array_fget(x_5, x_6); -x_12 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5345_(x_10, x_11); +x_12 = l___private_Lean_Compiler_LCNF_Basic_0__Lean_Compiler_LCNF_beqDecl____x40_Lean_Compiler_LCNF_Basic___hyg_5344_(x_10, x_11); if (x_12 == 0) { uint8_t x_13; diff --git a/stage0/stdlib/Lean/CoreM.c b/stage0/stdlib/Lean/CoreM.c index 4c227fb185..586df1d2b2 100644 --- a/stage0/stdlib/Lean/CoreM.c +++ b/stage0/stdlib/Lean/CoreM.c @@ -13880,7 +13880,7 @@ lean_object* x_12; x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); lean_dec(x_11); -if (lean_obj_tag(x_12) == 11) +if (lean_obj_tag(x_12) == 12) { lean_object* x_13; lean_object* x_14; x_13 = lean_ctor_get(x_12, 0); @@ -14097,7 +14097,7 @@ lean_object* x_12; x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); lean_dec(x_11); -if (lean_obj_tag(x_12) == 11) +if (lean_obj_tag(x_12) == 12) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_ctor_get(x_12, 0); diff --git a/stage0/stdlib/Lean/Data/Json/Parser.c b/stage0/stdlib/Lean/Data/Json/Parser.c index 61fba5db3d..27562bc511 100644 --- a/stage0/stdlib/Lean/Data/Json/Parser.c +++ b/stage0/stdlib/Lean/Data/Json/Parser.c @@ -48,8 +48,8 @@ lean_object* lean_string_push(lean_object*, uint32_t); lean_object* l_Lean_Parsec_pstring(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_natMaybeZero(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_escapedChar___boxed__const__7; -static lean_object* l_Lean_Json_Parser_num___lambda__3___closed__3; uint32_t l_String_Iterator_curr(lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Lean_Json_Parser_num___spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Json_Parser_num___lambda__5___closed__2; LEAN_EXPORT lean_object* l_Lean_Json_Parser_escapedChar___boxed__const__3; static lean_object* l_Lean_Json_Parser_anyCore___closed__6; @@ -69,12 +69,12 @@ static lean_object* l_Lean_Json_Parser_objectCore___closed__2; static lean_object* l_Lean_Json_Parser_anyCore___closed__3; static lean_object* l_Lean_Json_Parser_num___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_Parser_escapedChar___boxed__const__5; -LEAN_EXPORT lean_object* l_Lean_Json_Parser_num___lambda__3___closed__3___boxed__const__1; static lean_object* l_Lean_Json_parse___closed__2; static lean_object* l_Lean_Json_Parser_lookahead___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_Parser_natNonZero(lean_object*); static lean_object* l_Lean_Json_Parser_num___closed__3; extern lean_object* l_System_Platform_numBits; +LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Lean_Json_Parser_num___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parsec_expectedEndOfInput; static lean_object* l_Lean_Json_Parser_num___lambda__2___closed__3; extern lean_object* l_Std_Format_defWidth; @@ -87,13 +87,13 @@ static lean_object* l_Lean_Json_Parser_objectCore___closed__1; LEAN_EXPORT lean_object* l_Lean_Json_Parser_strCore(lean_object*, lean_object*); lean_object* lean_int_mul(lean_object*, lean_object*); lean_object* lean_nat_pow(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Json_Parser_num___lambda__3___closed__2___boxed__const__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); static lean_object* l_Lean_Json_Parser_escapedChar___closed__1; static lean_object* l_Lean_Json_parse___closed__1; static lean_object* l_Lean_Json_Parser_anyCore___closed__7; LEAN_EXPORT lean_object* l_Lean_Json_Parser_num(lean_object*); -lean_object* l_UInt32_decEq___boxed(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_Json_Parser_natNonZero___closed__2; LEAN_EXPORT lean_object* l_Lean_Json_Parser_num___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -112,7 +112,6 @@ LEAN_EXPORT lean_object* l_Lean_Json_Parser_arrayCore(lean_object*, lean_object* LEAN_EXPORT lean_object* l_Lean_Json_parse(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Json_Parser_num___closed__1; -lean_object* l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RBNode_insert___at_Lean_Json_mkObj___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_Parser_escapedChar___boxed__const__8; static lean_object* l_Lean_Json_Parser_natNonZero___closed__1; @@ -1698,6 +1697,53 @@ return x_22; } } } +LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Lean_Json_Parser_num___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +lean_dec(x_2); +x_4 = 0; +return x_4; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +lean_dec(x_1); +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint32_t x_8; uint32_t x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +lean_dec(x_2); +x_8 = lean_unbox_uint32(x_6); +lean_dec(x_6); +x_9 = lean_unbox_uint32(x_7); +lean_dec(x_7); +x_10 = lean_uint32_dec_eq(x_8, x_9); +return x_10; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Json_Parser_num___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -1887,15 +1933,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Json_Parser_num___lambda__3___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_UInt32_decEq___boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Json_Parser_num___lambda__3___closed__3___boxed__const__1() { +static lean_object* _init_l_Lean_Json_Parser_num___lambda__3___closed__2___boxed__const__1() { _start: { uint32_t x_1; lean_object* x_2; @@ -1904,11 +1942,11 @@ x_2 = lean_box_uint32(x_1); return x_2; } } -static lean_object* _init_l_Lean_Json_Parser_num___lambda__3___closed__3() { +static lean_object* _init_l_Lean_Json_Parser_num___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Json_Parser_num___lambda__3___closed__3___boxed__const__1; +x_1 = l_Lean_Json_Parser_num___lambda__3___closed__2___boxed__const__1; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -1917,26 +1955,26 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Json_Parser_num___lambda__3(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; uint32_t x_4; lean_object* x_39; lean_object* x_40; uint8_t x_60; -x_60 = l_String_Iterator_hasNext(x_2); -if (x_60 == 0) +lean_object* x_3; uint32_t x_4; lean_object* x_39; lean_object* x_40; uint8_t x_57; +x_57 = l_String_Iterator_hasNext(x_2); +if (x_57 == 0) { -lean_object* x_61; -x_61 = lean_box(0); +lean_object* x_58; +x_58 = lean_box(0); x_39 = x_2; -x_40 = x_61; -goto block_59; +x_40 = x_58; +goto block_56; } else { -uint32_t x_62; lean_object* x_63; lean_object* x_64; -x_62 = l_String_Iterator_curr(x_2); -x_63 = lean_box_uint32(x_62); -x_64 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_64, 0, x_63); +uint32_t x_59; lean_object* x_60; lean_object* x_61; +x_59 = l_String_Iterator_curr(x_2); +x_60 = lean_box_uint32(x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); x_39 = x_2; -x_40 = x_64; -goto block_59; +x_40 = x_61; +goto block_56; } block_38: { @@ -2051,77 +2089,72 @@ return x_37; } } } -block_59: +block_56: { -lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_41 = l_Lean_Json_Parser_num___lambda__3___closed__2; -x_42 = l_Lean_Json_Parser_num___lambda__3___closed__1; +lean_object* x_41; uint8_t x_42; +x_41 = l_Lean_Json_Parser_num___lambda__3___closed__1; lean_inc(x_40); -x_43 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg(x_41, x_40, x_42); -x_44 = lean_unbox(x_43); -lean_dec(x_43); +x_42 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Lean_Json_Parser_num___spec__1(x_40, x_41); +if (x_42 == 0) +{ +lean_object* x_43; uint8_t x_44; +x_43 = l_Lean_Json_Parser_num___lambda__3___closed__2; +x_44 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Lean_Json_Parser_num___spec__1(x_40, x_43); if (x_44 == 0) { -lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_45 = l_Lean_Json_Parser_num___lambda__3___closed__3; -x_46 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg(x_41, x_40, x_45); -x_47 = lean_unbox(x_46); -lean_dec(x_46); +lean_object* x_45; +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_39); +lean_ctor_set(x_45, 1, x_1); +return x_45; +} +else +{ +lean_object* x_46; uint8_t x_47; +x_46 = l_String_Iterator_next(x_39); +x_47 = l_String_Iterator_hasNext(x_46); if (x_47 == 0) { -lean_object* x_48; -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_39); -lean_ctor_set(x_48, 1, x_1); -return x_48; -} -else -{ -lean_object* x_49; uint8_t x_50; -x_49 = l_String_Iterator_next(x_39); -x_50 = l_String_Iterator_hasNext(x_49); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; +lean_object* x_48; lean_object* x_49; lean_dec(x_1); -x_51 = l_Lean_Parsec_unexpectedEndOfInput; -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_49); -lean_ctor_set(x_52, 1, x_51); -return x_52; +x_48 = l_Lean_Parsec_unexpectedEndOfInput; +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_48); +return x_49; } else { -uint32_t x_53; -x_53 = l_String_Iterator_curr(x_49); -x_3 = x_49; -x_4 = x_53; +uint32_t x_50; +x_50 = l_String_Iterator_curr(x_46); +x_3 = x_46; +x_4 = x_50; goto block_38; } } } else { -lean_object* x_54; uint8_t x_55; +lean_object* x_51; uint8_t x_52; lean_dec(x_40); -x_54 = l_String_Iterator_next(x_39); -x_55 = l_String_Iterator_hasNext(x_54); -if (x_55 == 0) +x_51 = l_String_Iterator_next(x_39); +x_52 = l_String_Iterator_hasNext(x_51); +if (x_52 == 0) { -lean_object* x_56; lean_object* x_57; +lean_object* x_53; lean_object* x_54; lean_dec(x_1); -x_56 = l_Lean_Parsec_unexpectedEndOfInput; -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_54); -lean_ctor_set(x_57, 1, x_56); -return x_57; +x_53 = l_Lean_Parsec_unexpectedEndOfInput; +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_53); +return x_54; } else { -uint32_t x_58; -x_58 = l_String_Iterator_curr(x_54); -x_3 = x_54; -x_4 = x_58; +uint32_t x_55; +x_55 = l_String_Iterator_curr(x_51); +x_3 = x_51; +x_4 = x_55; goto block_38; } } @@ -2190,174 +2223,171 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Json_Parser_num___lambda__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_52; -x_52 = l_String_Iterator_hasNext(x_3); -if (x_52 == 0) +lean_object* x_4; lean_object* x_5; uint8_t x_50; +x_50 = l_String_Iterator_hasNext(x_3); +if (x_50 == 0) { -lean_object* x_53; -x_53 = lean_box(0); +lean_object* x_51; +x_51 = lean_box(0); x_4 = x_3; -x_5 = x_53; -goto block_51; +x_5 = x_51; +goto block_49; } else { -uint32_t x_54; lean_object* x_55; lean_object* x_56; -x_54 = l_String_Iterator_curr(x_3); -x_55 = lean_box_uint32(x_54); -x_56 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_56, 0, x_55); +uint32_t x_52; lean_object* x_53; lean_object* x_54; +x_52 = l_String_Iterator_curr(x_3); +x_53 = lean_box_uint32(x_52); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_53); x_4 = x_3; -x_5 = x_56; -goto block_51; +x_5 = x_54; +goto block_49; } -block_51: +block_49: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +lean_object* x_6; lean_object* x_7; uint8_t x_8; x_6 = l_Lean_Json_Parser_num___lambda__5___closed__1; -x_7 = l_Lean_Json_Parser_num___lambda__3___closed__2; -x_8 = l_Lean_Json_Parser_num___lambda__5___closed__2; -x_9 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Option_instDecidableEqOption___spec__1___rarg(x_7, x_5, x_8); -x_10 = lean_unbox(x_9); +x_7 = l_Lean_Json_Parser_num___lambda__5___closed__2; +x_8 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Lean_Json_Parser_num___spec__1(x_5, x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_nat_to_int(x_2); +x_10 = lean_int_mul(x_1, x_9); lean_dec(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_nat_to_int(x_2); -x_12 = lean_int_mul(x_1, x_11); -lean_dec(x_11); lean_dec(x_1); -x_13 = lean_unsigned_to_nat(0u); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -x_15 = lean_apply_2(x_6, x_14, x_4); -return x_15; +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_apply_2(x_6, x_12, x_4); +return x_13; } else { -lean_object* x_16; uint8_t x_17; -x_16 = l_String_Iterator_next(x_4); -x_17 = l_String_Iterator_hasNext(x_16); -if (x_17 == 0) +lean_object* x_14; uint8_t x_15; +x_14 = l_String_Iterator_next(x_4); +x_15 = l_String_Iterator_hasNext(x_14); +if (x_15 == 0) { -lean_object* x_18; lean_object* x_19; +lean_object* x_16; lean_object* x_17; lean_dec(x_2); lean_dec(x_1); -x_18 = l_Lean_Parsec_unexpectedEndOfInput; -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_16); -lean_ctor_set(x_19, 1, x_18); -return x_19; +x_16 = l_Lean_Parsec_unexpectedEndOfInput; +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_14); +lean_ctor_set(x_17, 1, x_16); +return x_17; } else { -uint32_t x_20; uint32_t x_21; uint8_t x_22; -x_20 = l_String_Iterator_curr(x_16); -x_21 = 48; -x_22 = lean_uint32_dec_le(x_21, x_20); -if (x_22 == 0) +uint32_t x_18; uint32_t x_19; uint8_t x_20; +x_18 = l_String_Iterator_curr(x_14); +x_19 = 48; +x_20 = lean_uint32_dec_le(x_19, x_18); +if (x_20 == 0) { -lean_object* x_23; lean_object* x_24; +lean_object* x_21; lean_object* x_22; lean_dec(x_2); lean_dec(x_1); -x_23 = l_Lean_Json_Parser_natNumDigits___closed__2; -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_16); -lean_ctor_set(x_24, 1, x_23); -return x_24; +x_21 = l_Lean_Json_Parser_natNumDigits___closed__2; +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_14); +lean_ctor_set(x_22, 1, x_21); +return x_22; } else { -uint32_t x_25; uint8_t x_26; -x_25 = 57; -x_26 = lean_uint32_dec_le(x_20, x_25); -if (x_26 == 0) +uint32_t x_23; uint8_t x_24; +x_23 = 57; +x_24 = lean_uint32_dec_le(x_18, x_23); +if (x_24 == 0) { -lean_object* x_27; lean_object* x_28; +lean_object* x_25; lean_object* x_26; lean_dec(x_2); lean_dec(x_1); -x_27 = l_Lean_Json_Parser_natNumDigits___closed__2; -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_16); -lean_ctor_set(x_28, 1, x_27); +x_25 = l_Lean_Json_Parser_natNumDigits___closed__2; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_14); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_unsigned_to_nat(0u); +x_28 = l_Lean_Json_Parser_natCore(x_27, x_27, x_14); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_30 = lean_ctor_get(x_28, 1); +x_31 = lean_ctor_get(x_28, 0); +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = l_Lean_Json_Parser_num___lambda__2___closed__3; +x_35 = lean_nat_dec_lt(x_34, x_33); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +lean_free_object(x_28); +x_36 = lean_box(0); +x_37 = l_Lean_Json_Parser_num___lambda__4(x_2, x_33, x_32, x_1, x_6, x_36, x_31); +lean_dec(x_1); +return x_37; +} +else +{ +lean_object* x_38; +lean_dec(x_33); +lean_dec(x_32); +lean_dec(x_2); +lean_dec(x_1); +x_38 = l_Lean_Json_Parser_num___lambda__5___closed__3; +lean_ctor_set_tag(x_28, 1); +lean_ctor_set(x_28, 1, x_38); return x_28; } -else -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_unsigned_to_nat(0u); -x_30 = l_Lean_Json_Parser_natCore(x_29, x_29, x_16); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_32 = lean_ctor_get(x_30, 1); -x_33 = lean_ctor_get(x_30, 0); -x_34 = lean_ctor_get(x_32, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = l_Lean_Json_Parser_num___lambda__2___closed__3; -x_37 = lean_nat_dec_lt(x_36, x_35); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -lean_free_object(x_30); -x_38 = lean_box(0); -x_39 = l_Lean_Json_Parser_num___lambda__4(x_2, x_35, x_34, x_1, x_6, x_38, x_33); -lean_dec(x_1); -return x_39; } else { -lean_object* x_40; -lean_dec(x_35); -lean_dec(x_34); -lean_dec(x_2); -lean_dec(x_1); -x_40 = l_Lean_Json_Parser_num___lambda__5___closed__3; -lean_ctor_set_tag(x_30, 1); -lean_ctor_set(x_30, 1, x_40); -return x_30; -} -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_41 = lean_ctor_get(x_30, 1); -x_42 = lean_ctor_get(x_30, 0); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_39 = lean_ctor_get(x_28, 1); +x_40 = lean_ctor_get(x_28, 0); +lean_inc(x_39); +lean_inc(x_40); +lean_dec(x_28); +x_41 = lean_ctor_get(x_39, 0); lean_inc(x_41); +x_42 = lean_ctor_get(x_39, 1); lean_inc(x_42); -lean_dec(x_30); -x_43 = lean_ctor_get(x_41, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -lean_dec(x_41); -x_45 = l_Lean_Json_Parser_num___lambda__2___closed__3; -x_46 = lean_nat_dec_lt(x_45, x_44); -if (x_46 == 0) +lean_dec(x_39); +x_43 = l_Lean_Json_Parser_num___lambda__2___closed__3; +x_44 = lean_nat_dec_lt(x_43, x_42); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_box(0); +x_46 = l_Lean_Json_Parser_num___lambda__4(x_2, x_42, x_41, x_1, x_6, x_45, x_40); +lean_dec(x_1); +return x_46; +} +else { lean_object* x_47; lean_object* x_48; -x_47 = lean_box(0); -x_48 = l_Lean_Json_Parser_num___lambda__4(x_2, x_44, x_43, x_1, x_6, x_47, x_42); -lean_dec(x_1); -return x_48; -} -else -{ -lean_object* x_49; lean_object* x_50; -lean_dec(x_44); -lean_dec(x_43); +lean_dec(x_42); +lean_dec(x_41); lean_dec(x_2); lean_dec(x_1); -x_49 = l_Lean_Json_Parser_num___lambda__5___closed__3; -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_42); -lean_ctor_set(x_50, 1, x_49); -return x_50; +x_47 = l_Lean_Json_Parser_num___lambda__5___closed__3; +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_40); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } @@ -2512,6 +2542,15 @@ return x_13; } } } +LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Lean_Json_Parser_num___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Init_Data_Option_Basic_0__Option_decEqOption____x40_Init_Data_Option_Basic___hyg_4____at_Lean_Json_Parser_num___spec__1(x_1, x_2); +x_4 = lean_box(x_3); +return x_4; +} +} LEAN_EXPORT lean_object* l_Lean_Json_Parser_num___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -4234,12 +4273,10 @@ l_Lean_Json_Parser_num___lambda__3___closed__1___boxed__const__1 = _init_l_Lean_ lean_mark_persistent(l_Lean_Json_Parser_num___lambda__3___closed__1___boxed__const__1); l_Lean_Json_Parser_num___lambda__3___closed__1 = _init_l_Lean_Json_Parser_num___lambda__3___closed__1(); lean_mark_persistent(l_Lean_Json_Parser_num___lambda__3___closed__1); +l_Lean_Json_Parser_num___lambda__3___closed__2___boxed__const__1 = _init_l_Lean_Json_Parser_num___lambda__3___closed__2___boxed__const__1(); +lean_mark_persistent(l_Lean_Json_Parser_num___lambda__3___closed__2___boxed__const__1); l_Lean_Json_Parser_num___lambda__3___closed__2 = _init_l_Lean_Json_Parser_num___lambda__3___closed__2(); lean_mark_persistent(l_Lean_Json_Parser_num___lambda__3___closed__2); -l_Lean_Json_Parser_num___lambda__3___closed__3___boxed__const__1 = _init_l_Lean_Json_Parser_num___lambda__3___closed__3___boxed__const__1(); -lean_mark_persistent(l_Lean_Json_Parser_num___lambda__3___closed__3___boxed__const__1); -l_Lean_Json_Parser_num___lambda__3___closed__3 = _init_l_Lean_Json_Parser_num___lambda__3___closed__3(); -lean_mark_persistent(l_Lean_Json_Parser_num___lambda__3___closed__3); l_Lean_Json_Parser_num___lambda__5___closed__1 = _init_l_Lean_Json_Parser_num___lambda__5___closed__1(); lean_mark_persistent(l_Lean_Json_Parser_num___lambda__5___closed__1); l_Lean_Json_Parser_num___lambda__5___closed__2___boxed__const__1 = _init_l_Lean_Json_Parser_num___lambda__5___closed__2___boxed__const__1(); diff --git a/stage0/stdlib/Lean/Data/Position.c b/stage0/stdlib/Lean/Data/Position.c index fc92b0acb1..55a53b2be1 100644 --- a/stage0/stdlib/Lean/Data/Position.c +++ b/stage0/stdlib/Lean/Data/Position.c @@ -101,12 +101,12 @@ LEAN_EXPORT lean_object* l_Lean_instInhabitedPosition; static lean_object* l_Lean_Position_instToExprPosition___lambda__1___closed__2; lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_FileMap_ofString___closed__3; -lean_object* l_Nat_decEq___boxed(lean_object*, lean_object*); lean_object* l_Array_back___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Position_instToExprPosition___lambda__1___closed__6; static lean_object* l___private_Lean_Data_Position_0__Lean_reprPosition____x40_Lean_Data_Position___hyg_176____closed__1; static lean_object* l_Lean_Position_instToFormatPosition___closed__1; LEAN_EXPORT lean_object* l_Lean_Position_lt(lean_object*, lean_object*); +lean_object* l_instDecidableEqNat___boxed(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_Position_0__Lean_reprPosition____x40_Lean_Data_Position___hyg_176_(lean_object*, lean_object*); @@ -460,7 +460,7 @@ static lean_object* _init_l_Lean_Position_lt___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Nat_decEq___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_instDecidableEqNat___boxed), 2, 0); return x_1; } } diff --git a/stage0/stdlib/Lean/Elab/Command.c b/stage0/stdlib/Lean/Elab/Command.c index 00c6862e61..87baa0ae13 100644 --- a/stage0/stdlib/Lean/Elab/Command.c +++ b/stage0/stdlib/Lean/Elab/Command.c @@ -391,6 +391,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_liftIO(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Command_0__Lean_Elab_Command_mkTermContext___spec__2(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadResolveNameCommandElabM___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessagesCore___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_instDecidableEqPos___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadTraceCommandElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_liftTermElabM___rarg___closed__8; @@ -793,7 +794,6 @@ LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Command_ex lean_object* lean_erase_macro_scopes(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__18(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Command___hyg_548____closed__13; -lean_object* l_Nat_decEq___boxed(lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); static lean_object* l_Lean_Elab_Command_instMonadRecDepthCommandElabM___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_instMonadOptionsCommandElabM(lean_object*); @@ -4896,7 +4896,7 @@ static lean_object* _init_l___private_Lean_Elab_Command_0__Lean_Elab_Command_add _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Nat_decEq___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_instDecidableEqPos___boxed), 2, 0); return x_1; } } diff --git a/stage0/stdlib/Lean/Elab/GuardMsgs.c b/stage0/stdlib/Lean/Elab/GuardMsgs.c index 4b0d9d054c..49858809e5 100644 --- a/stage0/stdlib/Lean/Elab/GuardMsgs.c +++ b/stage0/stdlib/Lean/Elab/GuardMsgs.c @@ -26,6 +26,7 @@ lean_object* l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(lean_obje static lean_object* l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___lambda__3___closed__3; LEAN_EXPORT uint8_t l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___elambda__1(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs(lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285____closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__6___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__6___lambda__4(lean_object*, lean_object*); @@ -49,6 +50,7 @@ lean_object* l_Lean_Syntax_getArgs(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_String_trim(lean_object*); +static lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__5; lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Lsp_WorkspaceEdit_ofTextEdit(lean_object*, lean_object*); @@ -60,6 +62,8 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_GuardMsgs_elabG lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___closed__5; static lean_object* l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___lambda__3___closed__4; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_removeTrailingWhitespaceMarker___boxed(lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -76,6 +80,8 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsg static lean_object* l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__3; static lean_object* l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__3; +LEAN_EXPORT uint8_t l_Lean_Elab_Tactic_GuardMsgs_equalUpToNewlines(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; size_t lean_usize_of_nat(lean_object*); uint8_t l_String_isEmpty(lean_object*); @@ -98,6 +104,7 @@ lean_object* l_Lean_MessageData_ofSyntax(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__6___lambda__8___closed__9; static lean_object* l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__2; static lean_object* l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__10; +static lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__6; lean_object* l_Lean_MessageLog_toList(lean_object*); lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs_declRange___closed__3; @@ -110,9 +117,8 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsg lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; static lean_object* l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__4; -LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251_(lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251____closed__2; +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285_(lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__1; lean_object* l_EStateM_pure___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__8; @@ -126,6 +132,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs_decl LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_getDocStringText___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_equalUpToNewlines___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__18; LEAN_EXPORT uint8_t l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___lambda__2(lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__13; @@ -140,12 +147,14 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsg LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__1___rarg(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___closed__1; +static lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__2; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__6___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_SpecResult_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_instImpl____x40_Lean_Elab_GuardMsgs___hyg_1100____closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_SpecResult_noConfusion___rarg(uint8_t, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_removeTrailingWhitespaceMarker(lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getDocStringText___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__4___closed__3; @@ -172,6 +181,7 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_instImpl____x40_Lean_Elab_GuardMsgs___hyg_1100____closed__1; static lean_object* l_Lean_PersistentArray_findSomeMAux___at_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___spec__2___closed__3; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__4; uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___closed__2; @@ -182,7 +192,6 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_par static lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs_declRange___closed__4; uint8_t l_String_isPrefixOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___lambda__1(lean_object*); -static lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251____closed__1; uint8_t l_Lean_Syntax_isNone(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___elambda__1___boxed(lean_object*); static lean_object* l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__17; @@ -203,6 +212,7 @@ static lean_object* l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___clo LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_expandDeclId___spec__18(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___lambda__1(lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285____closed__2; static lean_object* l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___closed__2; lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_String_intercalate(lean_object*, lean_object*); @@ -249,6 +259,8 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_GuardMsgs_par static lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_instImpl____x40_Lean_Elab_GuardMsgs___hyg_1100_; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___boxed(lean_object*); +static lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_instTypeNameGuardMsgFailure; lean_object* l___private_Init_Dynamic_0__Dynamic_get_x3fImpl___rarg(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs_declRange___closed__5; @@ -1948,6 +1960,125 @@ x_1 = l_Lean_Elab_Tactic_GuardMsgs_instImpl____x40_Lean_Elab_GuardMsgs___hyg_110 return x_1; } } +static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("⏎\n", 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("⏎⏎\n", 7); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("\t\n", 2); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("\t⏎\n", 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(" \n", 2); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes(" ⏎\n", 5); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_2 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__1; +x_3 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__2; +x_4 = l_String_replace(x_1, x_2, x_3); +x_5 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__3; +x_6 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__4; +x_7 = l_String_replace(x_4, x_5, x_6); +lean_dec(x_4); +x_8 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__5; +x_9 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__6; +x_10 = l_String_replace(x_7, x_8, x_9); +lean_dec(x_7); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_removeTrailingWhitespaceMarker(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__1; +x_3 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___lambda__2___closed__2; +x_4 = l_String_replace(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_removeTrailingWhitespaceMarker___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Tactic_GuardMsgs_removeTrailingWhitespaceMarker(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT uint8_t l_Lean_Elab_Tactic_GuardMsgs_equalUpToNewlines(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_3 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___lambda__2___closed__2; +x_4 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___lambda__4___closed__1; +x_5 = l_String_replace(x_1, x_3, x_4); +x_6 = l_String_replace(x_2, x_3, x_4); +x_7 = lean_string_dec_eq(x_5, x_6); +lean_dec(x_6); +lean_dec(x_5); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_equalUpToNewlines___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Elab_Tactic_GuardMsgs_equalUpToNewlines(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__1___rarg___closed__1() { _start: { @@ -2508,162 +2639,162 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_269; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_264; x_7 = lean_unsigned_to_nat(1u); x_8 = l_Lean_Syntax_getArg(x_1, x_7); x_9 = lean_unsigned_to_nat(2u); x_10 = l_Lean_Syntax_getArg(x_1, x_9); x_11 = lean_unsigned_to_nat(4u); x_12 = l_Lean_Syntax_getArg(x_1, x_11); -x_269 = l_Lean_Syntax_getOptional_x3f(x_10); +x_264 = l_Lean_Syntax_getOptional_x3f(x_10); lean_dec(x_10); -if (lean_obj_tag(x_269) == 0) +if (lean_obj_tag(x_264) == 0) { -lean_object* x_270; -x_270 = lean_box(0); -x_13 = x_270; -goto block_268; +lean_object* x_265; +x_265 = lean_box(0); +x_13 = x_265; +goto block_263; } else { -uint8_t x_271; -x_271 = !lean_is_exclusive(x_269); -if (x_271 == 0) +uint8_t x_266; +x_266 = !lean_is_exclusive(x_264); +if (x_266 == 0) { -x_13 = x_269; -goto block_268; +x_13 = x_264; +goto block_263; } else { -lean_object* x_272; lean_object* x_273; -x_272 = lean_ctor_get(x_269, 0); -lean_inc(x_272); -lean_dec(x_269); -x_273 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_273, 0, x_272); -x_13 = x_273; -goto block_268; +lean_object* x_267; lean_object* x_268; +x_267 = lean_ctor_get(x_264, 0); +lean_inc(x_267); +lean_dec(x_264); +x_268 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_268, 0, x_267); +x_13 = x_268; +goto block_263; } } -block_268: +block_263: { lean_object* x_14; lean_object* x_15; if (lean_obj_tag(x_3) == 0) { -lean_object* x_249; -x_249 = lean_box(0); -x_14 = x_249; +lean_object* x_244; +x_244 = lean_box(0); +x_14 = x_244; x_15 = x_6; -goto block_248; +goto block_243; +} +else +{ +uint8_t x_245; +x_245 = !lean_is_exclusive(x_3); +if (x_245 == 0) +{ +lean_object* x_246; lean_object* x_247; +x_246 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +lean_inc(x_4); +x_247 = l_Lean_getDocStringText___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__4(x_246, x_4, x_5, x_6); +if (lean_obj_tag(x_247) == 0) +{ +lean_object* x_248; lean_object* x_249; +x_248 = lean_ctor_get(x_247, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_247, 1); +lean_inc(x_249); +lean_dec(x_247); +lean_ctor_set(x_3, 0, x_248); +x_14 = x_3; +x_15 = x_249; +goto block_243; } else { uint8_t x_250; -x_250 = !lean_is_exclusive(x_3); -if (x_250 == 0) -{ -lean_object* x_251; lean_object* x_252; -x_251 = lean_ctor_get(x_3, 0); -lean_inc(x_5); -lean_inc(x_4); -x_252 = l_Lean_getDocStringText___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__4(x_251, x_4, x_5, x_6); -if (lean_obj_tag(x_252) == 0) -{ -lean_object* x_253; lean_object* x_254; -x_253 = lean_ctor_get(x_252, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 1); -lean_inc(x_254); -lean_dec(x_252); -lean_ctor_set(x_3, 0, x_253); -x_14 = x_3; -x_15 = x_254; -goto block_248; -} -else -{ -uint8_t x_255; lean_free_object(x_3); lean_dec(x_13); lean_dec(x_12); lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); -x_255 = !lean_is_exclusive(x_252); -if (x_255 == 0) +x_250 = !lean_is_exclusive(x_247); +if (x_250 == 0) { -return x_252; +return x_247; } else { -lean_object* x_256; lean_object* x_257; lean_object* x_258; -x_256 = lean_ctor_get(x_252, 0); -x_257 = lean_ctor_get(x_252, 1); -lean_inc(x_257); -lean_inc(x_256); -lean_dec(x_252); -x_258 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_258, 0, x_256); -lean_ctor_set(x_258, 1, x_257); -return x_258; +lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_251 = lean_ctor_get(x_247, 0); +x_252 = lean_ctor_get(x_247, 1); +lean_inc(x_252); +lean_inc(x_251); +lean_dec(x_247); +x_253 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_253, 0, x_251); +lean_ctor_set(x_253, 1, x_252); +return x_253; } } } else { -lean_object* x_259; lean_object* x_260; -x_259 = lean_ctor_get(x_3, 0); -lean_inc(x_259); +lean_object* x_254; lean_object* x_255; +x_254 = lean_ctor_get(x_3, 0); +lean_inc(x_254); lean_dec(x_3); lean_inc(x_5); lean_inc(x_4); -x_260 = l_Lean_getDocStringText___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__4(x_259, x_4, x_5, x_6); -if (lean_obj_tag(x_260) == 0) +x_255 = l_Lean_getDocStringText___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__4(x_254, x_4, x_5, x_6); +if (lean_obj_tag(x_255) == 0) { -lean_object* x_261; lean_object* x_262; lean_object* x_263; -x_261 = lean_ctor_get(x_260, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_260, 1); -lean_inc(x_262); -lean_dec(x_260); -x_263 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_263, 0, x_261); -x_14 = x_263; -x_15 = x_262; -goto block_248; +lean_object* x_256; lean_object* x_257; lean_object* x_258; +x_256 = lean_ctor_get(x_255, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_255, 1); +lean_inc(x_257); +lean_dec(x_255); +x_258 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_258, 0, x_256); +x_14 = x_258; +x_15 = x_257; +goto block_243; } else { -lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_dec(x_13); lean_dec(x_12); lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); -x_264 = lean_ctor_get(x_260, 0); -lean_inc(x_264); -x_265 = lean_ctor_get(x_260, 1); -lean_inc(x_265); -if (lean_is_exclusive(x_260)) { - lean_ctor_release(x_260, 0); - lean_ctor_release(x_260, 1); - x_266 = x_260; +x_259 = lean_ctor_get(x_255, 0); +lean_inc(x_259); +x_260 = lean_ctor_get(x_255, 1); +lean_inc(x_260); +if (lean_is_exclusive(x_255)) { + lean_ctor_release(x_255, 0); + lean_ctor_release(x_255, 1); + x_261 = x_255; } else { - lean_dec_ref(x_260); - x_266 = lean_box(0); + lean_dec_ref(x_255); + x_261 = lean_box(0); } -if (lean_is_scalar(x_266)) { - x_267 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_261)) { + x_262 = lean_alloc_ctor(1, 2, 0); } else { - x_267 = x_266; + x_262 = x_261; } -lean_ctor_set(x_267, 0, x_264); -lean_ctor_set(x_267, 1, x_265); -return x_267; +lean_ctor_set(x_262, 0, x_259); +lean_ctor_set(x_262, 1, x_260); +return x_262; } } } -block_248: +block_243: { lean_object* x_16; lean_object* x_17; lean_inc(x_5); @@ -2671,25 +2802,25 @@ lean_inc(x_4); x_16 = l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec(x_13, x_4, x_5, x_15); if (lean_obj_tag(x_14) == 0) { -lean_object* x_246; -x_246 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___closed__1; -x_17 = x_246; -goto block_245; +lean_object* x_241; +x_241 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___closed__1; +x_17 = x_241; +goto block_240; } else { -lean_object* x_247; -x_247 = lean_ctor_get(x_14, 0); -lean_inc(x_247); +lean_object* x_242; +x_242 = lean_ctor_get(x_14, 0); +lean_inc(x_242); lean_dec(x_14); -x_17 = x_247; -goto block_245; +x_17 = x_242; +goto block_240; } -block_245: +block_240: { if (lean_obj_tag(x_16) == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; x_18 = lean_ctor_get(x_16, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_16, 1); @@ -2697,147 +2828,144 @@ lean_inc(x_19); lean_dec(x_16); x_20 = l_String_trim(x_17); lean_dec(x_17); -x_21 = lean_st_ref_take(x_5, x_19); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = !lean_is_exclusive(x_22); -if (x_24 == 0) +x_21 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__1; +x_22 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___lambda__2___closed__2; +x_23 = l_String_replace(x_20, x_21, x_22); +lean_dec(x_20); +x_24 = lean_st_ref_take(x_5, x_19); +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 = !lean_is_exclusive(x_25); +if (x_27 == 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_22, 1); -x_26 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__3; -lean_ctor_set(x_22, 1, x_26); -x_27 = lean_st_ref_set(x_5, x_22, x_23); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_28 = lean_ctor_get(x_25, 1); +x_29 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__3; +lean_ctor_set(x_25, 1, x_29); +x_30 = lean_st_ref_set(x_5, x_25, x_26); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); lean_inc(x_5); lean_inc(x_4); -x_29 = l_Lean_Elab_Command_elabCommandTopLevel(x_12, x_4, x_5, x_28); -if (lean_obj_tag(x_29) == 0) +x_32 = l_Lean_Elab_Command_elabCommandTopLevel(x_12, x_4, x_5, x_31); +if (lean_obj_tag(x_32) == 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; -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_st_ref_get(x_5, x_30); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); +lean_object* x_33; lean_object* x_34; 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_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); lean_dec(x_32); -lean_inc(x_34); -x_35 = l_Lean_MessageLog_toList(x_34); -x_36 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__4; -x_37 = l_List_forIn_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__2(x_18, x_35, x_36, x_4, x_5, x_33); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = lean_ctor_get(x_38, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_38, 1); +x_34 = lean_st_ref_get(x_5, x_33); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +lean_inc(x_37); +x_38 = l_Lean_MessageLog_toList(x_37); +x_39 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__4; +x_40 = l_List_forIn_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__2(x_18, x_38, x_39, x_4, x_5, x_36); +x_41 = lean_ctor_get(x_40, 0); lean_inc(x_41); -lean_dec(x_38); -x_42 = l_Lean_MessageLog_toList(x_40); -x_43 = lean_box(0); -x_44 = l_List_mapM_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__3(x_42, x_43, x_4, x_5, x_39); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; -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_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__5; -x_48 = l_String_intercalate(x_47, x_45); -x_49 = l_String_trim(x_48); -lean_dec(x_48); -x_50 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___lambda__2___closed__2; -x_51 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___lambda__4___closed__1; -x_52 = l_String_replace(x_20, x_50, x_51); -lean_dec(x_20); -x_53 = l_String_replace(x_49, x_50, x_51); -x_54 = lean_string_dec_eq(x_52, x_53); -lean_dec(x_53); -lean_dec(x_52); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +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); +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); lean_dec(x_41); -x_55 = lean_st_ref_take(x_5, x_46); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_58 = !lean_is_exclusive(x_56); -if (x_58 == 0) +x_45 = l_Lean_MessageLog_toList(x_43); +x_46 = lean_box(0); +x_47 = l_List_mapM_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__3(x_45, x_46, x_4, x_5, x_42); +if (lean_obj_tag(x_47) == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_59 = lean_ctor_get(x_56, 1); -lean_dec(x_59); -x_60 = l_Lean_PersistentArray_append___rarg(x_25, x_34); -lean_ctor_set(x_56, 1, x_60); -x_61 = lean_st_ref_set(x_5, x_56, x_57); -x_62 = lean_ctor_get(x_61, 1); -lean_inc(x_62); -lean_dec(x_61); -x_63 = l_Lean_stringToMessageData(x_49); -x_64 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; -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_getDocStringText___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__4___closed__3; -x_67 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -x_68 = 2; -x_69 = l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(x_8, x_67, x_68, x_4, x_5, x_62); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_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 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__5; +x_51 = l_String_intercalate(x_50, x_48); +x_52 = l_String_trim(x_51); +lean_dec(x_51); +x_53 = l_Lean_Elab_Tactic_GuardMsgs_equalUpToNewlines(x_23, x_52); +lean_dec(x_23); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +lean_dec(x_44); +x_54 = lean_st_ref_take(x_5, x_49); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +x_57 = !lean_is_exclusive(x_55); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_58 = lean_ctor_get(x_55, 1); +lean_dec(x_58); +x_59 = l_Lean_PersistentArray_append___rarg(x_28, x_37); +lean_ctor_set(x_55, 1, x_59); +x_60 = lean_st_ref_set(x_5, x_55, x_56); +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = l_Lean_stringToMessageData(x_52); +x_63 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_64 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +x_65 = l_Lean_getDocStringText___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__4___closed__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); +x_67 = 2; +x_68 = l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(x_8, x_66, x_67, x_4, x_5, x_61); lean_dec(x_8); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec(x_69); -x_71 = l_Lean_Elab_Command_getRef(x_4, x_5, x_70); -x_72 = lean_ctor_get(x_71, 0); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +lean_dec(x_68); +x_70 = l_Lean_Elab_Command_getRef(x_4, x_5, x_69); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec(x_71); -x_74 = l_Lean_Elab_Tactic_GuardMsgs_instTypeNameGuardMsgFailure; +lean_dec(x_70); +x_73 = l_Lean_Elab_Tactic_GuardMsgs_instTypeNameGuardMsgFailure; +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_52); x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_49); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_72); -lean_ctor_set(x_76, 1, x_75); -x_77 = lean_alloc_ctor(8, 1, 0); -lean_ctor_set(x_77, 0, x_76); -x_78 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_expandDeclId___spec__11(x_77, x_4, x_5, x_73); +lean_ctor_set(x_75, 0, x_71); +lean_ctor_set(x_75, 1, x_74); +x_76 = lean_alloc_ctor(8, 1, 0); +lean_ctor_set(x_76, 0, x_75); +x_77 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_expandDeclId___spec__11(x_76, x_4, x_5, x_72); lean_dec(x_5); lean_dec(x_4); -return x_78; +return x_77; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_79 = lean_ctor_get(x_56, 0); -x_80 = lean_ctor_get(x_56, 2); -x_81 = lean_ctor_get(x_56, 3); -x_82 = lean_ctor_get(x_56, 4); -x_83 = lean_ctor_get(x_56, 5); -x_84 = lean_ctor_get(x_56, 6); -x_85 = lean_ctor_get(x_56, 7); -x_86 = lean_ctor_get(x_56, 8); -lean_inc(x_86); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_78 = lean_ctor_get(x_55, 0); +x_79 = lean_ctor_get(x_55, 2); +x_80 = lean_ctor_get(x_55, 3); +x_81 = lean_ctor_get(x_55, 4); +x_82 = lean_ctor_get(x_55, 5); +x_83 = lean_ctor_get(x_55, 6); +x_84 = lean_ctor_get(x_55, 7); +x_85 = lean_ctor_get(x_55, 8); lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); @@ -2845,116 +2973,116 @@ lean_inc(x_82); lean_inc(x_81); lean_inc(x_80); lean_inc(x_79); -lean_dec(x_56); -x_87 = l_Lean_PersistentArray_append___rarg(x_25, x_34); -x_88 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_88, 0, x_79); -lean_ctor_set(x_88, 1, x_87); -lean_ctor_set(x_88, 2, x_80); -lean_ctor_set(x_88, 3, x_81); -lean_ctor_set(x_88, 4, x_82); -lean_ctor_set(x_88, 5, x_83); -lean_ctor_set(x_88, 6, x_84); -lean_ctor_set(x_88, 7, x_85); -lean_ctor_set(x_88, 8, x_86); -x_89 = lean_st_ref_set(x_5, x_88, x_57); -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -lean_dec(x_89); -x_91 = l_Lean_stringToMessageData(x_49); -x_92 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; -x_93 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_91); -x_94 = l_Lean_getDocStringText___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__4___closed__3; -x_95 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -x_96 = 2; -x_97 = l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(x_8, x_95, x_96, x_4, x_5, x_90); +lean_inc(x_78); +lean_dec(x_55); +x_86 = l_Lean_PersistentArray_append___rarg(x_28, x_37); +x_87 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_87, 0, x_78); +lean_ctor_set(x_87, 1, x_86); +lean_ctor_set(x_87, 2, x_79); +lean_ctor_set(x_87, 3, x_80); +lean_ctor_set(x_87, 4, x_81); +lean_ctor_set(x_87, 5, x_82); +lean_ctor_set(x_87, 6, x_83); +lean_ctor_set(x_87, 7, x_84); +lean_ctor_set(x_87, 8, x_85); +x_88 = lean_st_ref_set(x_5, x_87, x_56); +x_89 = lean_ctor_get(x_88, 1); +lean_inc(x_89); +lean_dec(x_88); +x_90 = l_Lean_stringToMessageData(x_52); +x_91 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_92 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_90); +x_93 = l_Lean_getDocStringText___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__4___closed__3; +x_94 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +x_95 = 2; +x_96 = l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(x_8, x_94, x_95, x_4, x_5, x_89); lean_dec(x_8); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec(x_97); -x_99 = l_Lean_Elab_Command_getRef(x_4, x_5, x_98); -x_100 = lean_ctor_get(x_99, 0); +x_97 = lean_ctor_get(x_96, 1); +lean_inc(x_97); +lean_dec(x_96); +x_98 = l_Lean_Elab_Command_getRef(x_4, x_5, x_97); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec(x_99); -x_102 = l_Lean_Elab_Tactic_GuardMsgs_instTypeNameGuardMsgFailure; +lean_dec(x_98); +x_101 = l_Lean_Elab_Tactic_GuardMsgs_instTypeNameGuardMsgFailure; +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_52); x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_49); -x_104 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_104, 0, x_100); -lean_ctor_set(x_104, 1, x_103); -x_105 = lean_alloc_ctor(8, 1, 0); -lean_ctor_set(x_105, 0, x_104); -x_106 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_expandDeclId___spec__11(x_105, x_4, x_5, x_101); +lean_ctor_set(x_103, 0, x_99); +lean_ctor_set(x_103, 1, x_102); +x_104 = lean_alloc_ctor(8, 1, 0); +lean_ctor_set(x_104, 0, x_103); +x_105 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_expandDeclId___spec__11(x_104, x_4, x_5, x_100); lean_dec(x_5); lean_dec(x_4); -return x_106; +return x_105; } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; -lean_dec(x_49); -lean_dec(x_34); +lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; +lean_dec(x_52); +lean_dec(x_37); lean_dec(x_8); lean_dec(x_4); -x_107 = lean_st_ref_take(x_5, x_46); -x_108 = lean_ctor_get(x_107, 0); +x_106 = lean_st_ref_take(x_5, x_49); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_110 = !lean_is_exclusive(x_108); -if (x_110 == 0) +lean_dec(x_106); +x_109 = !lean_is_exclusive(x_107); +if (x_109 == 0) { -lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; -x_111 = lean_ctor_get(x_108, 1); -lean_dec(x_111); -x_112 = l_Lean_PersistentArray_append___rarg(x_25, x_41); -lean_ctor_set(x_108, 1, x_112); -x_113 = lean_st_ref_set(x_5, x_108, x_109); +lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; +x_110 = lean_ctor_get(x_107, 1); +lean_dec(x_110); +x_111 = l_Lean_PersistentArray_append___rarg(x_28, x_44); +lean_ctor_set(x_107, 1, x_111); +x_112 = lean_st_ref_set(x_5, x_107, x_108); lean_dec(x_5); -x_114 = !lean_is_exclusive(x_113); -if (x_114 == 0) +x_113 = !lean_is_exclusive(x_112); +if (x_113 == 0) { -lean_object* x_115; lean_object* x_116; -x_115 = lean_ctor_get(x_113, 0); -lean_dec(x_115); -x_116 = lean_box(0); -lean_ctor_set(x_113, 0, x_116); -return x_113; +lean_object* x_114; lean_object* x_115; +x_114 = lean_ctor_get(x_112, 0); +lean_dec(x_114); +x_115 = lean_box(0); +lean_ctor_set(x_112, 0, x_115); +return x_112; } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_113, 1); -lean_inc(x_117); -lean_dec(x_113); -x_118 = lean_box(0); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_117); -return x_119; +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_112, 1); +lean_inc(x_116); +lean_dec(x_112); +x_117 = lean_box(0); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_116); +return x_118; } } else { -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; -x_120 = lean_ctor_get(x_108, 0); -x_121 = lean_ctor_get(x_108, 2); -x_122 = lean_ctor_get(x_108, 3); -x_123 = lean_ctor_get(x_108, 4); -x_124 = lean_ctor_get(x_108, 5); -x_125 = lean_ctor_get(x_108, 6); -x_126 = lean_ctor_get(x_108, 7); -x_127 = lean_ctor_get(x_108, 8); -lean_inc(x_127); +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; +x_119 = lean_ctor_get(x_107, 0); +x_120 = lean_ctor_get(x_107, 2); +x_121 = lean_ctor_get(x_107, 3); +x_122 = lean_ctor_get(x_107, 4); +x_123 = lean_ctor_get(x_107, 5); +x_124 = lean_ctor_get(x_107, 6); +x_125 = lean_ctor_get(x_107, 7); +x_126 = lean_ctor_get(x_107, 8); lean_inc(x_126); lean_inc(x_125); lean_inc(x_124); @@ -2962,114 +3090,114 @@ lean_inc(x_123); lean_inc(x_122); lean_inc(x_121); lean_inc(x_120); -lean_dec(x_108); -x_128 = l_Lean_PersistentArray_append___rarg(x_25, x_41); -x_129 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_129, 0, x_120); -lean_ctor_set(x_129, 1, x_128); -lean_ctor_set(x_129, 2, x_121); -lean_ctor_set(x_129, 3, x_122); -lean_ctor_set(x_129, 4, x_123); -lean_ctor_set(x_129, 5, x_124); -lean_ctor_set(x_129, 6, x_125); -lean_ctor_set(x_129, 7, x_126); -lean_ctor_set(x_129, 8, x_127); -x_130 = lean_st_ref_set(x_5, x_129, x_109); +lean_inc(x_119); +lean_dec(x_107); +x_127 = l_Lean_PersistentArray_append___rarg(x_28, x_44); +x_128 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_128, 0, x_119); +lean_ctor_set(x_128, 1, x_127); +lean_ctor_set(x_128, 2, x_120); +lean_ctor_set(x_128, 3, x_121); +lean_ctor_set(x_128, 4, x_122); +lean_ctor_set(x_128, 5, x_123); +lean_ctor_set(x_128, 6, x_124); +lean_ctor_set(x_128, 7, x_125); +lean_ctor_set(x_128, 8, x_126); +x_129 = lean_st_ref_set(x_5, x_128, x_108); lean_dec(x_5); -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_132 = x_130; +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_131 = x_129; } else { - lean_dec_ref(x_130); - x_132 = lean_box(0); + lean_dec_ref(x_129); + x_131 = lean_box(0); } -x_133 = lean_box(0); -if (lean_is_scalar(x_132)) { - x_134 = lean_alloc_ctor(0, 2, 0); +x_132 = lean_box(0); +if (lean_is_scalar(x_131)) { + x_133 = lean_alloc_ctor(0, 2, 0); } else { - x_134 = x_132; + x_133 = x_131; } -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_131); -return x_134; +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_130); +return x_133; } } } else { -uint8_t x_135; -lean_dec(x_41); -lean_dec(x_34); -lean_dec(x_25); -lean_dec(x_20); +uint8_t x_134; +lean_dec(x_44); +lean_dec(x_37); +lean_dec(x_28); +lean_dec(x_23); lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); -x_135 = !lean_is_exclusive(x_44); -if (x_135 == 0) +x_134 = !lean_is_exclusive(x_47); +if (x_134 == 0) { -return x_44; +return x_47; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_136 = lean_ctor_get(x_44, 0); -x_137 = lean_ctor_get(x_44, 1); -lean_inc(x_137); +lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_135 = lean_ctor_get(x_47, 0); +x_136 = lean_ctor_get(x_47, 1); lean_inc(x_136); -lean_dec(x_44); -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; +lean_inc(x_135); +lean_dec(x_47); +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; } } } else { -uint8_t x_139; -lean_dec(x_25); -lean_dec(x_20); +uint8_t x_138; +lean_dec(x_28); +lean_dec(x_23); lean_dec(x_18); lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); -x_139 = !lean_is_exclusive(x_29); -if (x_139 == 0) +x_138 = !lean_is_exclusive(x_32); +if (x_138 == 0) { -return x_29; +return x_32; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_29, 0); -x_141 = lean_ctor_get(x_29, 1); -lean_inc(x_141); +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_32, 0); +x_140 = lean_ctor_get(x_32, 1); lean_inc(x_140); -lean_dec(x_29); -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; +lean_inc(x_139); +lean_dec(x_32); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; } } } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_143 = lean_ctor_get(x_22, 0); -x_144 = lean_ctor_get(x_22, 1); -x_145 = lean_ctor_get(x_22, 2); -x_146 = lean_ctor_get(x_22, 3); -x_147 = lean_ctor_get(x_22, 4); -x_148 = lean_ctor_get(x_22, 5); -x_149 = lean_ctor_get(x_22, 6); -x_150 = lean_ctor_get(x_22, 7); -x_151 = lean_ctor_get(x_22, 8); -lean_inc(x_151); +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_142 = lean_ctor_get(x_25, 0); +x_143 = lean_ctor_get(x_25, 1); +x_144 = lean_ctor_get(x_25, 2); +x_145 = lean_ctor_get(x_25, 3); +x_146 = lean_ctor_get(x_25, 4); +x_147 = lean_ctor_get(x_25, 5); +x_148 = lean_ctor_get(x_25, 6); +x_149 = lean_ctor_get(x_25, 7); +x_150 = lean_ctor_get(x_25, 8); lean_inc(x_150); lean_inc(x_149); lean_inc(x_148); @@ -3078,343 +3206,338 @@ lean_inc(x_146); lean_inc(x_145); lean_inc(x_144); lean_inc(x_143); -lean_dec(x_22); -x_152 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__3; -x_153 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_153, 0, x_143); -lean_ctor_set(x_153, 1, x_152); -lean_ctor_set(x_153, 2, x_145); -lean_ctor_set(x_153, 3, x_146); -lean_ctor_set(x_153, 4, x_147); -lean_ctor_set(x_153, 5, x_148); -lean_ctor_set(x_153, 6, x_149); -lean_ctor_set(x_153, 7, x_150); -lean_ctor_set(x_153, 8, x_151); -x_154 = lean_st_ref_set(x_5, x_153, x_23); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -lean_dec(x_154); +lean_inc(x_142); +lean_dec(x_25); +x_151 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__3; +x_152 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_152, 0, x_142); +lean_ctor_set(x_152, 1, x_151); +lean_ctor_set(x_152, 2, x_144); +lean_ctor_set(x_152, 3, x_145); +lean_ctor_set(x_152, 4, x_146); +lean_ctor_set(x_152, 5, x_147); +lean_ctor_set(x_152, 6, x_148); +lean_ctor_set(x_152, 7, x_149); +lean_ctor_set(x_152, 8, x_150); +x_153 = lean_st_ref_set(x_5, x_152, x_26); +x_154 = lean_ctor_get(x_153, 1); +lean_inc(x_154); +lean_dec(x_153); lean_inc(x_5); lean_inc(x_4); -x_156 = l_Lean_Elab_Command_elabCommandTopLevel(x_12, x_4, x_5, x_155); -if (lean_obj_tag(x_156) == 0) +x_155 = l_Lean_Elab_Command_elabCommandTopLevel(x_12, x_4, x_5, x_154); +if (lean_obj_tag(x_155) == 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; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_157 = lean_ctor_get(x_156, 1); -lean_inc(x_157); -lean_dec(x_156); -x_158 = lean_st_ref_get(x_5, x_157); -x_159 = lean_ctor_get(x_158, 0); +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_156 = lean_ctor_get(x_155, 1); +lean_inc(x_156); +lean_dec(x_155); +x_157 = lean_st_ref_get(x_5, x_156); +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 = lean_ctor_get(x_158, 1); lean_inc(x_160); lean_dec(x_158); -x_161 = lean_ctor_get(x_159, 1); -lean_inc(x_161); -lean_dec(x_159); -lean_inc(x_161); -x_162 = l_Lean_MessageLog_toList(x_161); -x_163 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__4; -x_164 = l_List_forIn_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__2(x_18, x_162, x_163, x_4, x_5, x_160); -x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_160); +x_161 = l_Lean_MessageLog_toList(x_160); +x_162 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__4; +x_163 = l_List_forIn_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__2(x_18, x_161, x_162, x_4, x_5, x_159); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); lean_inc(x_165); -x_166 = lean_ctor_get(x_164, 1); +lean_dec(x_163); +x_166 = lean_ctor_get(x_164, 0); lean_inc(x_166); -lean_dec(x_164); -x_167 = lean_ctor_get(x_165, 0); +x_167 = lean_ctor_get(x_164, 1); lean_inc(x_167); -x_168 = lean_ctor_get(x_165, 1); -lean_inc(x_168); -lean_dec(x_165); -x_169 = l_Lean_MessageLog_toList(x_167); -x_170 = lean_box(0); -x_171 = l_List_mapM_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__3(x_169, x_170, x_4, x_5, x_166); -if (lean_obj_tag(x_171) == 0) +lean_dec(x_164); +x_168 = l_Lean_MessageLog_toList(x_166); +x_169 = lean_box(0); +x_170 = l_List_mapM_loop___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__3(x_168, x_169, x_4, x_5, x_165); +if (lean_obj_tag(x_170) == 0) { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; uint8_t x_181; -x_172 = lean_ctor_get(x_171, 0); +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_170, 1); lean_inc(x_172); -x_173 = lean_ctor_get(x_171, 1); -lean_inc(x_173); -lean_dec(x_171); -x_174 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__5; -x_175 = l_String_intercalate(x_174, x_172); -x_176 = l_String_trim(x_175); -lean_dec(x_175); -x_177 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___lambda__2___closed__2; -x_178 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___lambda__4___closed__1; -x_179 = l_String_replace(x_20, x_177, x_178); -lean_dec(x_20); -x_180 = l_String_replace(x_176, x_177, x_178); -x_181 = lean_string_dec_eq(x_179, x_180); -lean_dec(x_180); -lean_dec(x_179); -if (x_181 == 0) +lean_dec(x_170); +x_173 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__5; +x_174 = l_String_intercalate(x_173, x_171); +x_175 = l_String_trim(x_174); +lean_dec(x_174); +x_176 = l_Lean_Elab_Tactic_GuardMsgs_equalUpToNewlines(x_23, x_175); +lean_dec(x_23); +if (x_176 == 0) { -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -lean_dec(x_168); -x_182 = lean_st_ref_take(x_5, x_173); -x_183 = lean_ctor_get(x_182, 0); +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_167); +x_177 = lean_st_ref_take(x_5, x_172); +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_177, 1); +lean_inc(x_179); +lean_dec(x_177); +x_180 = lean_ctor_get(x_178, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_178, 2); +lean_inc(x_181); +x_182 = lean_ctor_get(x_178, 3); +lean_inc(x_182); +x_183 = lean_ctor_get(x_178, 4); lean_inc(x_183); -x_184 = lean_ctor_get(x_182, 1); +x_184 = lean_ctor_get(x_178, 5); lean_inc(x_184); -lean_dec(x_182); -x_185 = lean_ctor_get(x_183, 0); +x_185 = lean_ctor_get(x_178, 6); lean_inc(x_185); -x_186 = lean_ctor_get(x_183, 2); +x_186 = lean_ctor_get(x_178, 7); lean_inc(x_186); -x_187 = lean_ctor_get(x_183, 3); +x_187 = lean_ctor_get(x_178, 8); lean_inc(x_187); -x_188 = lean_ctor_get(x_183, 4); -lean_inc(x_188); -x_189 = lean_ctor_get(x_183, 5); -lean_inc(x_189); -x_190 = lean_ctor_get(x_183, 6); -lean_inc(x_190); -x_191 = lean_ctor_get(x_183, 7); -lean_inc(x_191); -x_192 = lean_ctor_get(x_183, 8); +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + lean_ctor_release(x_178, 2); + lean_ctor_release(x_178, 3); + lean_ctor_release(x_178, 4); + lean_ctor_release(x_178, 5); + lean_ctor_release(x_178, 6); + lean_ctor_release(x_178, 7); + lean_ctor_release(x_178, 8); + x_188 = x_178; +} else { + lean_dec_ref(x_178); + x_188 = lean_box(0); +} +x_189 = l_Lean_PersistentArray_append___rarg(x_143, x_160); +if (lean_is_scalar(x_188)) { + x_190 = lean_alloc_ctor(0, 9, 0); +} else { + x_190 = x_188; +} +lean_ctor_set(x_190, 0, x_180); +lean_ctor_set(x_190, 1, x_189); +lean_ctor_set(x_190, 2, x_181); +lean_ctor_set(x_190, 3, x_182); +lean_ctor_set(x_190, 4, x_183); +lean_ctor_set(x_190, 5, x_184); +lean_ctor_set(x_190, 6, x_185); +lean_ctor_set(x_190, 7, x_186); +lean_ctor_set(x_190, 8, x_187); +x_191 = lean_st_ref_set(x_5, x_190, x_179); +x_192 = lean_ctor_get(x_191, 1); lean_inc(x_192); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - lean_ctor_release(x_183, 1); - lean_ctor_release(x_183, 2); - lean_ctor_release(x_183, 3); - lean_ctor_release(x_183, 4); - lean_ctor_release(x_183, 5); - lean_ctor_release(x_183, 6); - lean_ctor_release(x_183, 7); - lean_ctor_release(x_183, 8); - x_193 = x_183; -} else { - lean_dec_ref(x_183); - x_193 = lean_box(0); -} -x_194 = l_Lean_PersistentArray_append___rarg(x_144, x_161); -if (lean_is_scalar(x_193)) { - x_195 = lean_alloc_ctor(0, 9, 0); -} else { - x_195 = x_193; -} -lean_ctor_set(x_195, 0, x_185); -lean_ctor_set(x_195, 1, x_194); -lean_ctor_set(x_195, 2, x_186); -lean_ctor_set(x_195, 3, x_187); -lean_ctor_set(x_195, 4, x_188); -lean_ctor_set(x_195, 5, x_189); -lean_ctor_set(x_195, 6, x_190); -lean_ctor_set(x_195, 7, x_191); -lean_ctor_set(x_195, 8, x_192); -x_196 = lean_st_ref_set(x_5, x_195, x_184); -x_197 = lean_ctor_get(x_196, 1); -lean_inc(x_197); -lean_dec(x_196); -x_198 = l_Lean_stringToMessageData(x_176); -x_199 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; -x_200 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_198); -x_201 = l_Lean_getDocStringText___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__4___closed__3; -x_202 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -x_203 = 2; -x_204 = l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(x_8, x_202, x_203, x_4, x_5, x_197); +lean_dec(x_191); +x_193 = l_Lean_stringToMessageData(x_175); +x_194 = l_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___lambda__1___closed__7; +x_195 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_193); +x_196 = l_Lean_getDocStringText___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__4___closed__3; +x_197 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_197, 0, x_195); +lean_ctor_set(x_197, 1, x_196); +x_198 = 2; +x_199 = l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(x_8, x_197, x_198, x_4, x_5, x_192); lean_dec(x_8); -x_205 = lean_ctor_get(x_204, 1); -lean_inc(x_205); -lean_dec(x_204); -x_206 = l_Lean_Elab_Command_getRef(x_4, x_5, x_205); -x_207 = lean_ctor_get(x_206, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_206, 1); -lean_inc(x_208); -lean_dec(x_206); -x_209 = l_Lean_Elab_Tactic_GuardMsgs_instTypeNameGuardMsgFailure; -x_210 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_210, 0, x_209); -lean_ctor_set(x_210, 1, x_176); -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_207); -lean_ctor_set(x_211, 1, x_210); -x_212 = lean_alloc_ctor(8, 1, 0); -lean_ctor_set(x_212, 0, x_211); -x_213 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_expandDeclId___spec__11(x_212, x_4, x_5, x_208); +x_200 = lean_ctor_get(x_199, 1); +lean_inc(x_200); +lean_dec(x_199); +x_201 = l_Lean_Elab_Command_getRef(x_4, x_5, x_200); +x_202 = lean_ctor_get(x_201, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_201, 1); +lean_inc(x_203); +lean_dec(x_201); +x_204 = l_Lean_Elab_Tactic_GuardMsgs_instTypeNameGuardMsgFailure; +x_205 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_175); +x_206 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_206, 0, x_202); +lean_ctor_set(x_206, 1, x_205); +x_207 = lean_alloc_ctor(8, 1, 0); +lean_ctor_set(x_207, 0, x_206); +x_208 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_expandDeclId___spec__11(x_207, x_4, x_5, x_203); lean_dec(x_5); lean_dec(x_4); -return x_213; +return x_208; } else { -lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; -lean_dec(x_176); -lean_dec(x_161); +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +lean_dec(x_175); +lean_dec(x_160); lean_dec(x_8); lean_dec(x_4); -x_214 = lean_st_ref_take(x_5, x_173); -x_215 = lean_ctor_get(x_214, 0); +x_209 = lean_st_ref_take(x_5, x_172); +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); +x_212 = lean_ctor_get(x_210, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_210, 2); +lean_inc(x_213); +x_214 = lean_ctor_get(x_210, 3); +lean_inc(x_214); +x_215 = lean_ctor_get(x_210, 4); lean_inc(x_215); -x_216 = lean_ctor_get(x_214, 1); +x_216 = lean_ctor_get(x_210, 5); lean_inc(x_216); -lean_dec(x_214); -x_217 = lean_ctor_get(x_215, 0); +x_217 = lean_ctor_get(x_210, 6); lean_inc(x_217); -x_218 = lean_ctor_get(x_215, 2); +x_218 = lean_ctor_get(x_210, 7); lean_inc(x_218); -x_219 = lean_ctor_get(x_215, 3); +x_219 = lean_ctor_get(x_210, 8); lean_inc(x_219); -x_220 = lean_ctor_get(x_215, 4); -lean_inc(x_220); -x_221 = lean_ctor_get(x_215, 5); -lean_inc(x_221); -x_222 = lean_ctor_get(x_215, 6); -lean_inc(x_222); -x_223 = lean_ctor_get(x_215, 7); -lean_inc(x_223); -x_224 = lean_ctor_get(x_215, 8); -lean_inc(x_224); -if (lean_is_exclusive(x_215)) { - lean_ctor_release(x_215, 0); - lean_ctor_release(x_215, 1); - lean_ctor_release(x_215, 2); - lean_ctor_release(x_215, 3); - lean_ctor_release(x_215, 4); - lean_ctor_release(x_215, 5); - lean_ctor_release(x_215, 6); - lean_ctor_release(x_215, 7); - lean_ctor_release(x_215, 8); - x_225 = x_215; +if (lean_is_exclusive(x_210)) { + lean_ctor_release(x_210, 0); + lean_ctor_release(x_210, 1); + lean_ctor_release(x_210, 2); + lean_ctor_release(x_210, 3); + lean_ctor_release(x_210, 4); + lean_ctor_release(x_210, 5); + lean_ctor_release(x_210, 6); + lean_ctor_release(x_210, 7); + lean_ctor_release(x_210, 8); + x_220 = x_210; } else { - lean_dec_ref(x_215); + lean_dec_ref(x_210); + x_220 = lean_box(0); +} +x_221 = l_Lean_PersistentArray_append___rarg(x_143, x_167); +if (lean_is_scalar(x_220)) { + x_222 = lean_alloc_ctor(0, 9, 0); +} else { + x_222 = x_220; +} +lean_ctor_set(x_222, 0, x_212); +lean_ctor_set(x_222, 1, x_221); +lean_ctor_set(x_222, 2, x_213); +lean_ctor_set(x_222, 3, x_214); +lean_ctor_set(x_222, 4, x_215); +lean_ctor_set(x_222, 5, x_216); +lean_ctor_set(x_222, 6, x_217); +lean_ctor_set(x_222, 7, x_218); +lean_ctor_set(x_222, 8, x_219); +x_223 = lean_st_ref_set(x_5, x_222, x_211); +lean_dec(x_5); +x_224 = lean_ctor_get(x_223, 1); +lean_inc(x_224); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_225 = x_223; +} else { + lean_dec_ref(x_223); x_225 = lean_box(0); } -x_226 = l_Lean_PersistentArray_append___rarg(x_144, x_168); +x_226 = lean_box(0); if (lean_is_scalar(x_225)) { - x_227 = lean_alloc_ctor(0, 9, 0); + x_227 = lean_alloc_ctor(0, 2, 0); } else { x_227 = x_225; } -lean_ctor_set(x_227, 0, x_217); -lean_ctor_set(x_227, 1, x_226); -lean_ctor_set(x_227, 2, x_218); -lean_ctor_set(x_227, 3, x_219); -lean_ctor_set(x_227, 4, x_220); -lean_ctor_set(x_227, 5, x_221); -lean_ctor_set(x_227, 6, x_222); -lean_ctor_set(x_227, 7, x_223); -lean_ctor_set(x_227, 8, x_224); -x_228 = lean_st_ref_set(x_5, x_227, x_216); -lean_dec(x_5); -x_229 = lean_ctor_get(x_228, 1); -lean_inc(x_229); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_230 = x_228; -} else { - lean_dec_ref(x_228); - x_230 = lean_box(0); -} -x_231 = lean_box(0); -if (lean_is_scalar(x_230)) { - x_232 = lean_alloc_ctor(0, 2, 0); -} else { - x_232 = x_230; -} -lean_ctor_set(x_232, 0, x_231); -lean_ctor_set(x_232, 1, x_229); -return x_232; +lean_ctor_set(x_227, 0, x_226); +lean_ctor_set(x_227, 1, x_224); +return x_227; } } else { -lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; -lean_dec(x_168); -lean_dec(x_161); -lean_dec(x_144); -lean_dec(x_20); +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +lean_dec(x_167); +lean_dec(x_160); +lean_dec(x_143); +lean_dec(x_23); lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); -x_233 = lean_ctor_get(x_171, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_171, 1); -lean_inc(x_234); -if (lean_is_exclusive(x_171)) { - lean_ctor_release(x_171, 0); - lean_ctor_release(x_171, 1); - x_235 = x_171; +x_228 = lean_ctor_get(x_170, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_170, 1); +lean_inc(x_229); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_230 = x_170; } else { - lean_dec_ref(x_171); - x_235 = lean_box(0); + lean_dec_ref(x_170); + x_230 = lean_box(0); } -if (lean_is_scalar(x_235)) { - x_236 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_230)) { + x_231 = lean_alloc_ctor(1, 2, 0); } else { - x_236 = x_235; + x_231 = x_230; } -lean_ctor_set(x_236, 0, x_233); -lean_ctor_set(x_236, 1, x_234); -return x_236; +lean_ctor_set(x_231, 0, x_228); +lean_ctor_set(x_231, 1, x_229); +return x_231; } } else { -lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -lean_dec(x_144); -lean_dec(x_20); +lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +lean_dec(x_143); +lean_dec(x_23); lean_dec(x_18); lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); -x_237 = lean_ctor_get(x_156, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_156, 1); -lean_inc(x_238); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_239 = x_156; +x_232 = lean_ctor_get(x_155, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_155, 1); +lean_inc(x_233); +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + x_234 = x_155; } else { - lean_dec_ref(x_156); - x_239 = lean_box(0); + lean_dec_ref(x_155); + x_234 = lean_box(0); } -if (lean_is_scalar(x_239)) { - x_240 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_234)) { + x_235 = lean_alloc_ctor(1, 2, 0); } else { - x_240 = x_239; + x_235 = x_234; } -lean_ctor_set(x_240, 0, x_237); -lean_ctor_set(x_240, 1, x_238); -return x_240; +lean_ctor_set(x_235, 0, x_232); +lean_ctor_set(x_235, 1, x_233); +return x_235; } } } else { -uint8_t x_241; +uint8_t x_236; lean_dec(x_17); lean_dec(x_12); lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); -x_241 = !lean_is_exclusive(x_16); -if (x_241 == 0) +x_236 = !lean_is_exclusive(x_16); +if (x_236 == 0) { return x_16; } else { -lean_object* x_242; lean_object* x_243; lean_object* x_244; -x_242 = lean_ctor_get(x_16, 0); -x_243 = lean_ctor_get(x_16, 1); -lean_inc(x_243); -lean_inc(x_242); +lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_237 = lean_ctor_get(x_16, 0); +x_238 = lean_ctor_get(x_16, 1); +lean_inc(x_238); +lean_inc(x_237); lean_dec(x_16); -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; +x_239 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_239, 0, x_237); +lean_ctor_set(x_239, 1, x_238); +return x_239; } } } @@ -3659,7 +3782,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsg _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(76u); +x_1 = lean_unsigned_to_nat(94u); x_2 = lean_unsigned_to_nat(42u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3671,7 +3794,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsg _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(100u); +x_1 = lean_unsigned_to_nat(118u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3699,7 +3822,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsg _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(76u); +x_1 = lean_unsigned_to_nat(94u); x_2 = lean_unsigned_to_nat(46u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3711,7 +3834,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_elabGuardMsg _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(76u); +x_1 = lean_unsigned_to_nat(94u); x_2 = lean_unsigned_to_nat(59u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4448,397 +4571,401 @@ uint8_t x_25; x_25 = !lean_is_exclusive(x_23); if (x_25 == 0) { -lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_object* x_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; x_26 = lean_ctor_get(x_23, 0); -x_27 = l_String_isEmpty(x_10); -x_28 = l_Lean_Server_FileWorker_EditableDocument_versionedIdentifier(x_13); -x_29 = lean_ctor_get(x_13, 0); -lean_inc(x_29); -lean_dec(x_13); -x_30 = lean_ctor_get(x_29, 2); +x_27 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace(x_10); +lean_dec(x_10); +x_28 = l_String_isEmpty(x_27); +x_29 = l_Lean_Server_FileWorker_EditableDocument_versionedIdentifier(x_13); +x_30 = lean_ctor_get(x_13, 0); lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_19); -lean_ctor_set(x_31, 1, x_26); -x_32 = l_Lean_FileMap_utf8RangeToLspRange(x_30, x_31); -lean_dec(x_31); +lean_dec(x_13); +x_31 = lean_ctor_get(x_30, 2); +lean_inc(x_31); lean_dec(x_30); -if (x_27 == 0) +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_19); +lean_ctor_set(x_32, 1, x_26); +x_33 = l_Lean_FileMap_utf8RangeToLspRange(x_31, x_32); +lean_dec(x_32); +lean_dec(x_31); +if (x_28 == 0) { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_string_length(x_10); -x_34 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__14; -x_35 = lean_nat_dec_le(x_33, x_34); -lean_dec(x_33); -if (x_35 == 0) +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_string_length(x_27); +x_35 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__14; +x_36 = lean_nat_dec_le(x_34, x_35); +lean_dec(x_34); +if (x_36 == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_36 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; -x_37 = lean_string_append(x_36, x_10); -lean_dec(x_10); -x_38 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; -x_39 = lean_string_append(x_37, x_38); -x_40 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_40, 0, x_32); -lean_ctor_set(x_40, 1, x_39); -lean_ctor_set(x_40, 2, x_14); -lean_ctor_set(x_40, 3, x_14); -x_41 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_28, x_40); -lean_ctor_set(x_23, 0, x_41); -x_42 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_43 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_44 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_45 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_45, 0, x_14); -lean_ctor_set(x_45, 1, x_14); -lean_ctor_set(x_45, 2, x_42); -lean_ctor_set(x_45, 3, x_43); -lean_ctor_set(x_45, 4, x_14); -lean_ctor_set(x_45, 5, x_44); -lean_ctor_set(x_45, 6, x_14); -lean_ctor_set(x_45, 7, x_23); -lean_ctor_set(x_45, 8, x_14); -lean_ctor_set(x_45, 9, x_14); -x_46 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_46, 0, x_45); -lean_ctor_set(x_16, 0, x_46); -x_47 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_16); -x_49 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_50 = lean_array_push(x_49, x_48); -lean_ctor_set(x_11, 0, x_50); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_37 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; +x_38 = lean_string_append(x_37, x_27); +lean_dec(x_27); +x_39 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; +x_40 = lean_string_append(x_38, x_39); +x_41 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_41, 0, x_33); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_41, 2, x_14); +lean_ctor_set(x_41, 3, x_14); +x_42 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_29, x_41); +lean_ctor_set(x_23, 0, x_42); +x_43 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_44 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_45 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_46 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_46, 0, x_14); +lean_ctor_set(x_46, 1, x_14); +lean_ctor_set(x_46, 2, x_43); +lean_ctor_set(x_46, 3, x_44); +lean_ctor_set(x_46, 4, x_14); +lean_ctor_set(x_46, 5, x_45); +lean_ctor_set(x_46, 6, x_14); +lean_ctor_set(x_46, 7, x_23); +lean_ctor_set(x_46, 8, x_14); +lean_ctor_set(x_46, 9, x_14); +x_47 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_47, 0, x_46); +lean_ctor_set(x_16, 0, x_47); +x_48 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_16); +x_50 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_51 = lean_array_push(x_50, x_49); +lean_ctor_set(x_11, 0, x_51); return x_11; } else { -uint32_t x_51; uint8_t x_52; -x_51 = 10; -lean_inc(x_10); -x_52 = l_String_contains(x_10, x_51); -if (x_52 == 0) +uint32_t x_52; uint8_t x_53; +x_52 = 10; +lean_inc(x_27); +x_53 = l_String_contains(x_27, x_52); +if (x_53 == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_53 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__17; -x_54 = lean_string_append(x_53, x_10); -lean_dec(x_10); -x_55 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__18; -x_56 = lean_string_append(x_54, x_55); -x_57 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_57, 0, x_32); -lean_ctor_set(x_57, 1, x_56); -lean_ctor_set(x_57, 2, x_14); -lean_ctor_set(x_57, 3, x_14); -x_58 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_28, x_57); -lean_ctor_set(x_23, 0, x_58); -x_59 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_60 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_61 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_62 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_62, 0, x_14); -lean_ctor_set(x_62, 1, x_14); -lean_ctor_set(x_62, 2, x_59); -lean_ctor_set(x_62, 3, x_60); -lean_ctor_set(x_62, 4, x_14); -lean_ctor_set(x_62, 5, x_61); -lean_ctor_set(x_62, 6, x_14); -lean_ctor_set(x_62, 7, x_23); -lean_ctor_set(x_62, 8, x_14); -lean_ctor_set(x_62, 9, x_14); -x_63 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_63, 0, x_62); -lean_ctor_set(x_16, 0, x_63); -x_64 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_16); -x_66 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_67 = lean_array_push(x_66, x_65); -lean_ctor_set(x_11, 0, x_67); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_54 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__17; +x_55 = lean_string_append(x_54, x_27); +lean_dec(x_27); +x_56 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__18; +x_57 = lean_string_append(x_55, x_56); +x_58 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_58, 0, x_33); +lean_ctor_set(x_58, 1, x_57); +lean_ctor_set(x_58, 2, x_14); +lean_ctor_set(x_58, 3, x_14); +x_59 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_29, x_58); +lean_ctor_set(x_23, 0, x_59); +x_60 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_61 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_62 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_63 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_63, 0, x_14); +lean_ctor_set(x_63, 1, x_14); +lean_ctor_set(x_63, 2, x_60); +lean_ctor_set(x_63, 3, x_61); +lean_ctor_set(x_63, 4, x_14); +lean_ctor_set(x_63, 5, x_62); +lean_ctor_set(x_63, 6, x_14); +lean_ctor_set(x_63, 7, x_23); +lean_ctor_set(x_63, 8, x_14); +lean_ctor_set(x_63, 9, x_14); +x_64 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_64, 0, x_63); +lean_ctor_set(x_16, 0, x_64); +x_65 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_16); +x_67 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_68 = lean_array_push(x_67, x_66); +lean_ctor_set(x_11, 0, x_68); return x_11; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_68 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; -x_69 = lean_string_append(x_68, x_10); -lean_dec(x_10); -x_70 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; -x_71 = lean_string_append(x_69, x_70); -x_72 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_72, 0, x_32); -lean_ctor_set(x_72, 1, x_71); -lean_ctor_set(x_72, 2, x_14); -lean_ctor_set(x_72, 3, x_14); -x_73 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_28, x_72); -lean_ctor_set(x_23, 0, x_73); -x_74 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_75 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_76 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_77 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_77, 0, x_14); -lean_ctor_set(x_77, 1, x_14); -lean_ctor_set(x_77, 2, x_74); -lean_ctor_set(x_77, 3, x_75); -lean_ctor_set(x_77, 4, x_14); -lean_ctor_set(x_77, 5, x_76); -lean_ctor_set(x_77, 6, x_14); -lean_ctor_set(x_77, 7, x_23); -lean_ctor_set(x_77, 8, x_14); -lean_ctor_set(x_77, 9, x_14); -x_78 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_78, 0, x_77); -lean_ctor_set(x_16, 0, x_78); -x_79 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_16); -x_81 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_82 = lean_array_push(x_81, x_80); -lean_ctor_set(x_11, 0, x_82); +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_69 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; +x_70 = lean_string_append(x_69, x_27); +lean_dec(x_27); +x_71 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; +x_72 = lean_string_append(x_70, x_71); +x_73 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_73, 0, x_33); +lean_ctor_set(x_73, 1, x_72); +lean_ctor_set(x_73, 2, x_14); +lean_ctor_set(x_73, 3, x_14); +x_74 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_29, x_73); +lean_ctor_set(x_23, 0, x_74); +x_75 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_76 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_77 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_78 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_78, 0, x_14); +lean_ctor_set(x_78, 1, x_14); +lean_ctor_set(x_78, 2, x_75); +lean_ctor_set(x_78, 3, x_76); +lean_ctor_set(x_78, 4, x_14); +lean_ctor_set(x_78, 5, x_77); +lean_ctor_set(x_78, 6, x_14); +lean_ctor_set(x_78, 7, x_23); +lean_ctor_set(x_78, 8, x_14); +lean_ctor_set(x_78, 9, x_14); +x_79 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_79, 0, x_78); +lean_ctor_set(x_16, 0, x_79); +x_80 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_16); +x_82 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_83 = lean_array_push(x_82, x_81); +lean_ctor_set(x_11, 0, x_83); return x_11; } } } 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_dec(x_10); -x_83 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___closed__1; -x_84 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_84, 0, x_32); -lean_ctor_set(x_84, 1, x_83); -lean_ctor_set(x_84, 2, x_14); -lean_ctor_set(x_84, 3, x_14); -x_85 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_28, x_84); -lean_ctor_set(x_23, 0, x_85); -x_86 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_87 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_88 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_89 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_89, 0, x_14); -lean_ctor_set(x_89, 1, x_14); -lean_ctor_set(x_89, 2, x_86); -lean_ctor_set(x_89, 3, x_87); -lean_ctor_set(x_89, 4, x_14); -lean_ctor_set(x_89, 5, x_88); -lean_ctor_set(x_89, 6, x_14); -lean_ctor_set(x_89, 7, x_23); -lean_ctor_set(x_89, 8, x_14); -lean_ctor_set(x_89, 9, x_14); -x_90 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_90, 0, x_89); -lean_ctor_set(x_16, 0, x_90); -x_91 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_16); -x_93 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_94 = lean_array_push(x_93, x_92); -lean_ctor_set(x_11, 0, x_94); +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_dec(x_27); +x_84 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___closed__1; +x_85 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_85, 0, x_33); +lean_ctor_set(x_85, 1, x_84); +lean_ctor_set(x_85, 2, x_14); +lean_ctor_set(x_85, 3, x_14); +x_86 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_29, x_85); +lean_ctor_set(x_23, 0, x_86); +x_87 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_88 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_89 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_90 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_90, 0, x_14); +lean_ctor_set(x_90, 1, x_14); +lean_ctor_set(x_90, 2, x_87); +lean_ctor_set(x_90, 3, x_88); +lean_ctor_set(x_90, 4, x_14); +lean_ctor_set(x_90, 5, x_89); +lean_ctor_set(x_90, 6, x_14); +lean_ctor_set(x_90, 7, x_23); +lean_ctor_set(x_90, 8, x_14); +lean_ctor_set(x_90, 9, x_14); +x_91 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_91, 0, x_90); +lean_ctor_set(x_16, 0, x_91); +x_92 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_16); +x_94 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_95 = lean_array_push(x_94, x_93); +lean_ctor_set(x_11, 0, x_95); return x_11; } } else { -lean_object* x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_95 = lean_ctor_get(x_23, 0); -lean_inc(x_95); +lean_object* x_96; lean_object* 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; +x_96 = lean_ctor_get(x_23, 0); +lean_inc(x_96); lean_dec(x_23); -x_96 = l_String_isEmpty(x_10); -x_97 = l_Lean_Server_FileWorker_EditableDocument_versionedIdentifier(x_13); -x_98 = lean_ctor_get(x_13, 0); -lean_inc(x_98); +x_97 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace(x_10); +lean_dec(x_10); +x_98 = l_String_isEmpty(x_97); +x_99 = l_Lean_Server_FileWorker_EditableDocument_versionedIdentifier(x_13); +x_100 = lean_ctor_get(x_13, 0); +lean_inc(x_100); lean_dec(x_13); -x_99 = lean_ctor_get(x_98, 2); -lean_inc(x_99); -lean_dec(x_98); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_19); -lean_ctor_set(x_100, 1, x_95); -x_101 = l_Lean_FileMap_utf8RangeToLspRange(x_99, x_100); +x_101 = lean_ctor_get(x_100, 2); +lean_inc(x_101); lean_dec(x_100); -lean_dec(x_99); -if (x_96 == 0) -{ -lean_object* x_102; lean_object* x_103; uint8_t x_104; -x_102 = lean_string_length(x_10); -x_103 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__14; -x_104 = lean_nat_dec_le(x_102, x_103); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_19); +lean_ctor_set(x_102, 1, x_96); +x_103 = l_Lean_FileMap_utf8RangeToLspRange(x_101, x_102); lean_dec(x_102); -if (x_104 == 0) +lean_dec(x_101); +if (x_98 == 0) { -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; -x_105 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; -x_106 = lean_string_append(x_105, x_10); -lean_dec(x_10); -x_107 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; -x_108 = lean_string_append(x_106, x_107); -x_109 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_109, 0, x_101); -lean_ctor_set(x_109, 1, x_108); -lean_ctor_set(x_109, 2, x_14); -lean_ctor_set(x_109, 3, x_14); -x_110 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_97, x_109); -x_111 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_111, 0, x_110); -x_112 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_113 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_114 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_115 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_115, 0, x_14); -lean_ctor_set(x_115, 1, x_14); -lean_ctor_set(x_115, 2, x_112); -lean_ctor_set(x_115, 3, x_113); -lean_ctor_set(x_115, 4, x_14); -lean_ctor_set(x_115, 5, x_114); -lean_ctor_set(x_115, 6, x_14); -lean_ctor_set(x_115, 7, x_111); -lean_ctor_set(x_115, 8, x_14); -lean_ctor_set(x_115, 9, x_14); -x_116 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_116, 0, x_115); -lean_ctor_set(x_16, 0, x_116); -x_117 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_16); -x_119 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_120 = lean_array_push(x_119, x_118); -lean_ctor_set(x_11, 0, x_120); +lean_object* x_104; lean_object* x_105; uint8_t x_106; +x_104 = lean_string_length(x_97); +x_105 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__14; +x_106 = lean_nat_dec_le(x_104, x_105); +lean_dec(x_104); +if (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; lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_107 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; +x_108 = lean_string_append(x_107, x_97); +lean_dec(x_97); +x_109 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; +x_110 = lean_string_append(x_108, x_109); +x_111 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_111, 0, x_103); +lean_ctor_set(x_111, 1, x_110); +lean_ctor_set(x_111, 2, x_14); +lean_ctor_set(x_111, 3, x_14); +x_112 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_99, x_111); +x_113 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_113, 0, x_112); +x_114 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_115 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_116 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_117 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_117, 0, x_14); +lean_ctor_set(x_117, 1, x_14); +lean_ctor_set(x_117, 2, x_114); +lean_ctor_set(x_117, 3, x_115); +lean_ctor_set(x_117, 4, x_14); +lean_ctor_set(x_117, 5, x_116); +lean_ctor_set(x_117, 6, x_14); +lean_ctor_set(x_117, 7, x_113); +lean_ctor_set(x_117, 8, x_14); +lean_ctor_set(x_117, 9, x_14); +x_118 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_118, 0, x_117); +lean_ctor_set(x_16, 0, x_118); +x_119 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_16); +x_121 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_122 = lean_array_push(x_121, x_120); +lean_ctor_set(x_11, 0, x_122); return x_11; } else { -uint32_t x_121; uint8_t x_122; -x_121 = 10; -lean_inc(x_10); -x_122 = l_String_contains(x_10, x_121); -if (x_122 == 0) +uint32_t x_123; uint8_t x_124; +x_123 = 10; +lean_inc(x_97); +x_124 = l_String_contains(x_97, x_123); +if (x_124 == 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_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_123 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__17; -x_124 = lean_string_append(x_123, x_10); -lean_dec(x_10); -x_125 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__18; -x_126 = lean_string_append(x_124, x_125); -x_127 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_127, 0, x_101); -lean_ctor_set(x_127, 1, x_126); -lean_ctor_set(x_127, 2, x_14); -lean_ctor_set(x_127, 3, x_14); -x_128 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_97, x_127); -x_129 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_129, 0, x_128); -x_130 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_131 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_132 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_133 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_133, 0, x_14); -lean_ctor_set(x_133, 1, x_14); -lean_ctor_set(x_133, 2, x_130); -lean_ctor_set(x_133, 3, x_131); -lean_ctor_set(x_133, 4, x_14); -lean_ctor_set(x_133, 5, x_132); -lean_ctor_set(x_133, 6, x_14); -lean_ctor_set(x_133, 7, x_129); -lean_ctor_set(x_133, 8, x_14); -lean_ctor_set(x_133, 9, x_14); -x_134 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_134, 0, x_133); -lean_ctor_set(x_16, 0, x_134); -x_135 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_136 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_16); -x_137 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_138 = lean_array_push(x_137, x_136); -lean_ctor_set(x_11, 0, x_138); +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_125 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__17; +x_126 = lean_string_append(x_125, x_97); +lean_dec(x_97); +x_127 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__18; +x_128 = lean_string_append(x_126, x_127); +x_129 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_129, 0, x_103); +lean_ctor_set(x_129, 1, x_128); +lean_ctor_set(x_129, 2, x_14); +lean_ctor_set(x_129, 3, x_14); +x_130 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_99, x_129); +x_131 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_131, 0, x_130); +x_132 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_133 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_134 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_135 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_135, 0, x_14); +lean_ctor_set(x_135, 1, x_14); +lean_ctor_set(x_135, 2, x_132); +lean_ctor_set(x_135, 3, x_133); +lean_ctor_set(x_135, 4, x_14); +lean_ctor_set(x_135, 5, x_134); +lean_ctor_set(x_135, 6, x_14); +lean_ctor_set(x_135, 7, x_131); +lean_ctor_set(x_135, 8, x_14); +lean_ctor_set(x_135, 9, x_14); +x_136 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_136, 0, x_135); +lean_ctor_set(x_16, 0, x_136); +x_137 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_16); +x_139 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_140 = lean_array_push(x_139, x_138); +lean_ctor_set(x_11, 0, x_140); return x_11; } else { -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_139 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; -x_140 = lean_string_append(x_139, x_10); -lean_dec(x_10); -x_141 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; -x_142 = lean_string_append(x_140, x_141); -x_143 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_143, 0, x_101); -lean_ctor_set(x_143, 1, x_142); -lean_ctor_set(x_143, 2, x_14); -lean_ctor_set(x_143, 3, x_14); -x_144 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_97, x_143); -x_145 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_145, 0, x_144); -x_146 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_147 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_148 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_149 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_149, 0, x_14); -lean_ctor_set(x_149, 1, x_14); -lean_ctor_set(x_149, 2, x_146); -lean_ctor_set(x_149, 3, x_147); -lean_ctor_set(x_149, 4, x_14); -lean_ctor_set(x_149, 5, x_148); -lean_ctor_set(x_149, 6, x_14); -lean_ctor_set(x_149, 7, x_145); -lean_ctor_set(x_149, 8, x_14); -lean_ctor_set(x_149, 9, x_14); -x_150 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_150, 0, x_149); -lean_ctor_set(x_16, 0, x_150); -x_151 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_152 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_16); -x_153 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_154 = lean_array_push(x_153, x_152); -lean_ctor_set(x_11, 0, x_154); +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_141 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; +x_142 = lean_string_append(x_141, x_97); +lean_dec(x_97); +x_143 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; +x_144 = lean_string_append(x_142, x_143); +x_145 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_145, 0, x_103); +lean_ctor_set(x_145, 1, x_144); +lean_ctor_set(x_145, 2, x_14); +lean_ctor_set(x_145, 3, x_14); +x_146 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_99, x_145); +x_147 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_147, 0, x_146); +x_148 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_149 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_150 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_151 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_151, 0, x_14); +lean_ctor_set(x_151, 1, x_14); +lean_ctor_set(x_151, 2, x_148); +lean_ctor_set(x_151, 3, x_149); +lean_ctor_set(x_151, 4, x_14); +lean_ctor_set(x_151, 5, x_150); +lean_ctor_set(x_151, 6, x_14); +lean_ctor_set(x_151, 7, x_147); +lean_ctor_set(x_151, 8, x_14); +lean_ctor_set(x_151, 9, x_14); +x_152 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_152, 0, x_151); +lean_ctor_set(x_16, 0, x_152); +x_153 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_154 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_16); +x_155 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_156 = lean_array_push(x_155, x_154); +lean_ctor_set(x_11, 0, x_156); return x_11; } } } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -lean_dec(x_10); -x_155 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___closed__1; -x_156 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_156, 0, x_101); -lean_ctor_set(x_156, 1, x_155); -lean_ctor_set(x_156, 2, x_14); -lean_ctor_set(x_156, 3, x_14); -x_157 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_97, x_156); -x_158 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_158, 0, x_157); -x_159 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_160 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_161 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_162 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_162, 0, x_14); -lean_ctor_set(x_162, 1, x_14); -lean_ctor_set(x_162, 2, x_159); -lean_ctor_set(x_162, 3, x_160); -lean_ctor_set(x_162, 4, x_14); -lean_ctor_set(x_162, 5, x_161); -lean_ctor_set(x_162, 6, x_14); -lean_ctor_set(x_162, 7, x_158); -lean_ctor_set(x_162, 8, x_14); -lean_ctor_set(x_162, 9, x_14); -x_163 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_163, 0, x_162); -lean_ctor_set(x_16, 0, x_163); -x_164 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_165 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_165, 0, x_164); -lean_ctor_set(x_165, 1, x_16); -x_166 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_167 = lean_array_push(x_166, x_165); -lean_ctor_set(x_11, 0, x_167); +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_97); +x_157 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___closed__1; +x_158 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_158, 0, x_103); +lean_ctor_set(x_158, 1, x_157); +lean_ctor_set(x_158, 2, x_14); +lean_ctor_set(x_158, 3, x_14); +x_159 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_99, x_158); +x_160 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_160, 0, x_159); +x_161 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_162 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_163 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_164 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_164, 0, x_14); +lean_ctor_set(x_164, 1, x_14); +lean_ctor_set(x_164, 2, x_161); +lean_ctor_set(x_164, 3, x_162); +lean_ctor_set(x_164, 4, x_14); +lean_ctor_set(x_164, 5, x_163); +lean_ctor_set(x_164, 6, x_14); +lean_ctor_set(x_164, 7, x_160); +lean_ctor_set(x_164, 8, x_14); +lean_ctor_set(x_164, 9, x_14); +x_165 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_165, 0, x_164); +lean_ctor_set(x_16, 0, x_165); +x_166 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_167 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_16); +x_168 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_169 = lean_array_push(x_168, x_167); +lean_ctor_set(x_11, 0, x_169); return x_11; } } @@ -4846,249 +4973,251 @@ return x_11; } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_168 = lean_ctor_get(x_16, 0); -lean_inc(x_168); +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_170 = lean_ctor_get(x_16, 0); +lean_inc(x_170); lean_dec(x_16); -x_169 = lean_unsigned_to_nat(0u); -x_170 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__13; -x_171 = l_Lean_Syntax_setArg(x_9, x_169, x_170); -x_172 = l_Lean_Syntax_getPos_x3f(x_171, x_15); -lean_dec(x_171); -if (lean_obj_tag(x_172) == 0) +x_171 = lean_unsigned_to_nat(0u); +x_172 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__13; +x_173 = l_Lean_Syntax_setArg(x_9, x_171, x_172); +x_174 = l_Lean_Syntax_getPos_x3f(x_173, x_15); +lean_dec(x_173); +if (lean_obj_tag(x_174) == 0) { -lean_object* x_173; -lean_dec(x_168); +lean_object* x_175; +lean_dec(x_170); lean_dec(x_13); lean_dec(x_10); -x_173 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__10; -lean_ctor_set(x_11, 0, x_173); +x_175 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__10; +lean_ctor_set(x_11, 0, x_175); return x_11; } else { -lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_174 = lean_ctor_get(x_172, 0); -lean_inc(x_174); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - x_175 = x_172; +lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_176 = lean_ctor_get(x_174, 0); +lean_inc(x_176); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + x_177 = x_174; } else { - lean_dec_ref(x_172); - x_175 = lean_box(0); + lean_dec_ref(x_174); + x_177 = lean_box(0); } -x_176 = l_String_isEmpty(x_10); -x_177 = l_Lean_Server_FileWorker_EditableDocument_versionedIdentifier(x_13); -x_178 = lean_ctor_get(x_13, 0); -lean_inc(x_178); +x_178 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace(x_10); +lean_dec(x_10); +x_179 = l_String_isEmpty(x_178); +x_180 = l_Lean_Server_FileWorker_EditableDocument_versionedIdentifier(x_13); +x_181 = lean_ctor_get(x_13, 0); +lean_inc(x_181); lean_dec(x_13); -x_179 = lean_ctor_get(x_178, 2); -lean_inc(x_179); -lean_dec(x_178); -x_180 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_180, 0, x_168); -lean_ctor_set(x_180, 1, x_174); -x_181 = l_Lean_FileMap_utf8RangeToLspRange(x_179, x_180); -lean_dec(x_180); -lean_dec(x_179); -if (x_176 == 0) -{ -lean_object* x_182; lean_object* x_183; uint8_t x_184; -x_182 = lean_string_length(x_10); -x_183 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__14; -x_184 = lean_nat_dec_le(x_182, x_183); +x_182 = lean_ctor_get(x_181, 2); +lean_inc(x_182); +lean_dec(x_181); +x_183 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_183, 0, x_170); +lean_ctor_set(x_183, 1, x_176); +x_184 = l_Lean_FileMap_utf8RangeToLspRange(x_182, x_183); +lean_dec(x_183); lean_dec(x_182); -if (x_184 == 0) +if (x_179 == 0) { -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_185 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; -x_186 = lean_string_append(x_185, x_10); -lean_dec(x_10); -x_187 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; -x_188 = lean_string_append(x_186, x_187); -x_189 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_189, 0, x_181); -lean_ctor_set(x_189, 1, x_188); -lean_ctor_set(x_189, 2, x_14); -lean_ctor_set(x_189, 3, x_14); -x_190 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_177, x_189); -if (lean_is_scalar(x_175)) { - x_191 = lean_alloc_ctor(1, 1, 0); +lean_object* x_185; lean_object* x_186; uint8_t x_187; +x_185 = lean_string_length(x_178); +x_186 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__14; +x_187 = lean_nat_dec_le(x_185, x_186); +lean_dec(x_185); +if (x_187 == 0) +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_188 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; +x_189 = lean_string_append(x_188, x_178); +lean_dec(x_178); +x_190 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; +x_191 = lean_string_append(x_189, x_190); +x_192 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_192, 0, x_184); +lean_ctor_set(x_192, 1, x_191); +lean_ctor_set(x_192, 2, x_14); +lean_ctor_set(x_192, 3, x_14); +x_193 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_180, x_192); +if (lean_is_scalar(x_177)) { + x_194 = lean_alloc_ctor(1, 1, 0); } else { - x_191 = x_175; + x_194 = x_177; } -lean_ctor_set(x_191, 0, x_190); -x_192 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_193 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_194 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_195 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_195, 0, x_14); -lean_ctor_set(x_195, 1, x_14); -lean_ctor_set(x_195, 2, x_192); -lean_ctor_set(x_195, 3, x_193); -lean_ctor_set(x_195, 4, x_14); -lean_ctor_set(x_195, 5, x_194); -lean_ctor_set(x_195, 6, x_14); -lean_ctor_set(x_195, 7, x_191); -lean_ctor_set(x_195, 8, x_14); -lean_ctor_set(x_195, 9, x_14); -x_196 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_196, 0, x_195); -x_197 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_197, 0, x_196); -x_198 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_199 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_199, 0, x_198); -lean_ctor_set(x_199, 1, x_197); -x_200 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_201 = lean_array_push(x_200, x_199); -lean_ctor_set(x_11, 0, x_201); +lean_ctor_set(x_194, 0, x_193); +x_195 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_196 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_197 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_198 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_198, 0, x_14); +lean_ctor_set(x_198, 1, x_14); +lean_ctor_set(x_198, 2, x_195); +lean_ctor_set(x_198, 3, x_196); +lean_ctor_set(x_198, 4, x_14); +lean_ctor_set(x_198, 5, x_197); +lean_ctor_set(x_198, 6, x_14); +lean_ctor_set(x_198, 7, x_194); +lean_ctor_set(x_198, 8, x_14); +lean_ctor_set(x_198, 9, x_14); +x_199 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_199, 0, x_198); +x_200 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_200, 0, x_199); +x_201 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_202 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_200); +x_203 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_204 = lean_array_push(x_203, x_202); +lean_ctor_set(x_11, 0, x_204); return x_11; } else { -uint32_t x_202; uint8_t x_203; -x_202 = 10; -lean_inc(x_10); -x_203 = l_String_contains(x_10, x_202); -if (x_203 == 0) +uint32_t x_205; uint8_t x_206; +x_205 = 10; +lean_inc(x_178); +x_206 = l_String_contains(x_178, x_205); +if (x_206 == 0) { -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_204 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__17; -x_205 = lean_string_append(x_204, x_10); -lean_dec(x_10); -x_206 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__18; -x_207 = lean_string_append(x_205, x_206); -x_208 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_208, 0, x_181); -lean_ctor_set(x_208, 1, x_207); -lean_ctor_set(x_208, 2, x_14); -lean_ctor_set(x_208, 3, x_14); -x_209 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_177, x_208); -if (lean_is_scalar(x_175)) { - x_210 = lean_alloc_ctor(1, 1, 0); +lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_207 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__17; +x_208 = lean_string_append(x_207, x_178); +lean_dec(x_178); +x_209 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__18; +x_210 = lean_string_append(x_208, x_209); +x_211 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_211, 0, x_184); +lean_ctor_set(x_211, 1, x_210); +lean_ctor_set(x_211, 2, x_14); +lean_ctor_set(x_211, 3, x_14); +x_212 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_180, x_211); +if (lean_is_scalar(x_177)) { + x_213 = lean_alloc_ctor(1, 1, 0); } else { - x_210 = x_175; + x_213 = x_177; } -lean_ctor_set(x_210, 0, x_209); -x_211 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_212 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_213 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_214 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_214, 0, x_14); -lean_ctor_set(x_214, 1, x_14); -lean_ctor_set(x_214, 2, x_211); -lean_ctor_set(x_214, 3, x_212); -lean_ctor_set(x_214, 4, x_14); -lean_ctor_set(x_214, 5, x_213); -lean_ctor_set(x_214, 6, x_14); -lean_ctor_set(x_214, 7, x_210); -lean_ctor_set(x_214, 8, x_14); -lean_ctor_set(x_214, 9, x_14); -x_215 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_215, 0, x_214); -x_216 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_216, 0, x_215); -x_217 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_218 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_218, 0, x_217); -lean_ctor_set(x_218, 1, x_216); -x_219 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_220 = lean_array_push(x_219, x_218); -lean_ctor_set(x_11, 0, x_220); +lean_ctor_set(x_213, 0, x_212); +x_214 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_215 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_216 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_217 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_217, 0, x_14); +lean_ctor_set(x_217, 1, x_14); +lean_ctor_set(x_217, 2, x_214); +lean_ctor_set(x_217, 3, x_215); +lean_ctor_set(x_217, 4, x_14); +lean_ctor_set(x_217, 5, x_216); +lean_ctor_set(x_217, 6, x_14); +lean_ctor_set(x_217, 7, x_213); +lean_ctor_set(x_217, 8, x_14); +lean_ctor_set(x_217, 9, x_14); +x_218 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_218, 0, x_217); +x_219 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_219, 0, x_218); +x_220 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_221 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_221, 0, x_220); +lean_ctor_set(x_221, 1, x_219); +x_222 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_223 = lean_array_push(x_222, x_221); +lean_ctor_set(x_11, 0, x_223); return x_11; } else { -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; 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_221 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; -x_222 = lean_string_append(x_221, x_10); -lean_dec(x_10); -x_223 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; -x_224 = lean_string_append(x_222, x_223); -x_225 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_225, 0, x_181); -lean_ctor_set(x_225, 1, x_224); -lean_ctor_set(x_225, 2, x_14); -lean_ctor_set(x_225, 3, x_14); -x_226 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_177, x_225); -if (lean_is_scalar(x_175)) { - x_227 = lean_alloc_ctor(1, 1, 0); +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_224 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; +x_225 = lean_string_append(x_224, x_178); +lean_dec(x_178); +x_226 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; +x_227 = lean_string_append(x_225, x_226); +x_228 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_228, 0, x_184); +lean_ctor_set(x_228, 1, x_227); +lean_ctor_set(x_228, 2, x_14); +lean_ctor_set(x_228, 3, x_14); +x_229 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_180, x_228); +if (lean_is_scalar(x_177)) { + x_230 = lean_alloc_ctor(1, 1, 0); } else { - x_227 = x_175; + x_230 = x_177; } -lean_ctor_set(x_227, 0, x_226); -x_228 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_229 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_230 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_231 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_231, 0, x_14); -lean_ctor_set(x_231, 1, x_14); -lean_ctor_set(x_231, 2, x_228); -lean_ctor_set(x_231, 3, x_229); -lean_ctor_set(x_231, 4, x_14); -lean_ctor_set(x_231, 5, x_230); -lean_ctor_set(x_231, 6, x_14); -lean_ctor_set(x_231, 7, x_227); -lean_ctor_set(x_231, 8, x_14); -lean_ctor_set(x_231, 9, x_14); -x_232 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_232, 0, x_231); -x_233 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_233, 0, x_232); -x_234 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_235 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_235, 0, x_234); -lean_ctor_set(x_235, 1, x_233); -x_236 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_237 = lean_array_push(x_236, x_235); -lean_ctor_set(x_11, 0, x_237); +lean_ctor_set(x_230, 0, x_229); +x_231 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_232 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_233 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_234 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_234, 0, x_14); +lean_ctor_set(x_234, 1, x_14); +lean_ctor_set(x_234, 2, x_231); +lean_ctor_set(x_234, 3, x_232); +lean_ctor_set(x_234, 4, x_14); +lean_ctor_set(x_234, 5, x_233); +lean_ctor_set(x_234, 6, x_14); +lean_ctor_set(x_234, 7, x_230); +lean_ctor_set(x_234, 8, x_14); +lean_ctor_set(x_234, 9, x_14); +x_235 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_235, 0, x_234); +x_236 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_236, 0, x_235); +x_237 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_238 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_238, 0, x_237); +lean_ctor_set(x_238, 1, x_236); +x_239 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_240 = lean_array_push(x_239, x_238); +lean_ctor_set(x_11, 0, x_240); return x_11; } } } else { -lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; -lean_dec(x_10); -x_238 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___closed__1; -x_239 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_239, 0, x_181); -lean_ctor_set(x_239, 1, x_238); -lean_ctor_set(x_239, 2, x_14); -lean_ctor_set(x_239, 3, x_14); -x_240 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_177, x_239); -if (lean_is_scalar(x_175)) { - x_241 = lean_alloc_ctor(1, 1, 0); +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +lean_dec(x_178); +x_241 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___closed__1; +x_242 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_242, 0, x_184); +lean_ctor_set(x_242, 1, x_241); +lean_ctor_set(x_242, 2, x_14); +lean_ctor_set(x_242, 3, x_14); +x_243 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_180, x_242); +if (lean_is_scalar(x_177)) { + x_244 = lean_alloc_ctor(1, 1, 0); } else { - x_241 = x_175; + x_244 = x_177; } -lean_ctor_set(x_241, 0, x_240); -x_242 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_243 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_244 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_245 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_245, 0, x_14); -lean_ctor_set(x_245, 1, x_14); -lean_ctor_set(x_245, 2, x_242); -lean_ctor_set(x_245, 3, x_243); -lean_ctor_set(x_245, 4, x_14); -lean_ctor_set(x_245, 5, x_244); -lean_ctor_set(x_245, 6, x_14); -lean_ctor_set(x_245, 7, x_241); -lean_ctor_set(x_245, 8, x_14); -lean_ctor_set(x_245, 9, x_14); -x_246 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_246, 0, x_245); -x_247 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_247, 0, x_246); -x_248 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_249 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_247); -x_250 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_251 = lean_array_push(x_250, x_249); -lean_ctor_set(x_11, 0, x_251); +lean_ctor_set(x_244, 0, x_243); +x_245 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_246 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_247 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_248 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_248, 0, x_14); +lean_ctor_set(x_248, 1, x_14); +lean_ctor_set(x_248, 2, x_245); +lean_ctor_set(x_248, 3, x_246); +lean_ctor_set(x_248, 4, x_14); +lean_ctor_set(x_248, 5, x_247); +lean_ctor_set(x_248, 6, x_14); +lean_ctor_set(x_248, 7, x_244); +lean_ctor_set(x_248, 8, x_14); +lean_ctor_set(x_248, 9, x_14); +x_249 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_249, 0, x_248); +x_250 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_250, 0, x_249); +x_251 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_252 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_252, 0, x_251); +lean_ctor_set(x_252, 1, x_250); +x_253 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_254 = lean_array_push(x_253, x_252); +lean_ctor_set(x_11, 0, x_254); return x_11; } } @@ -5097,306 +5226,308 @@ return x_11; } else { -lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; -x_252 = lean_ctor_get(x_11, 0); -x_253 = lean_ctor_get(x_11, 1); -lean_inc(x_253); -lean_inc(x_252); +lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; lean_object* x_259; +x_255 = lean_ctor_get(x_11, 0); +x_256 = lean_ctor_get(x_11, 1); +lean_inc(x_256); +lean_inc(x_255); lean_dec(x_11); -x_254 = lean_box(0); -x_255 = 1; -x_256 = l_Lean_Syntax_getPos_x3f(x_9, x_255); -if (lean_obj_tag(x_256) == 0) +x_257 = lean_box(0); +x_258 = 1; +x_259 = l_Lean_Syntax_getPos_x3f(x_9, x_258); +if (lean_obj_tag(x_259) == 0) { -lean_object* x_257; lean_object* x_258; -lean_dec(x_252); +lean_object* x_260; lean_object* x_261; +lean_dec(x_255); lean_dec(x_10); lean_dec(x_9); -x_257 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__10; -x_258 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_258, 0, x_257); -lean_ctor_set(x_258, 1, x_253); -return x_258; +x_260 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__10; +x_261 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_256); +return x_261; } else { -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; -x_259 = lean_ctor_get(x_256, 0); -lean_inc(x_259); -if (lean_is_exclusive(x_256)) { - lean_ctor_release(x_256, 0); - x_260 = x_256; +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_262 = lean_ctor_get(x_259, 0); +lean_inc(x_262); +if (lean_is_exclusive(x_259)) { + lean_ctor_release(x_259, 0); + x_263 = x_259; } else { - lean_dec_ref(x_256); - x_260 = lean_box(0); + lean_dec_ref(x_259); + x_263 = lean_box(0); } -x_261 = lean_unsigned_to_nat(0u); -x_262 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__13; -x_263 = l_Lean_Syntax_setArg(x_9, x_261, x_262); -x_264 = l_Lean_Syntax_getPos_x3f(x_263, x_255); +x_264 = lean_unsigned_to_nat(0u); +x_265 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__13; +x_266 = l_Lean_Syntax_setArg(x_9, x_264, x_265); +x_267 = l_Lean_Syntax_getPos_x3f(x_266, x_258); +lean_dec(x_266); +if (lean_obj_tag(x_267) == 0) +{ +lean_object* x_268; lean_object* x_269; lean_dec(x_263); -if (lean_obj_tag(x_264) == 0) -{ -lean_object* x_265; lean_object* x_266; -lean_dec(x_260); -lean_dec(x_259); -lean_dec(x_252); +lean_dec(x_262); +lean_dec(x_255); lean_dec(x_10); -x_265 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__10; -x_266 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_253); -return x_266; +x_268 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__10; +x_269 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_256); +return x_269; } else { -lean_object* x_267; lean_object* x_268; uint8_t x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; -x_267 = lean_ctor_get(x_264, 0); -lean_inc(x_267); -if (lean_is_exclusive(x_264)) { - lean_ctor_release(x_264, 0); - x_268 = x_264; +lean_object* x_270; lean_object* x_271; lean_object* x_272; uint8_t x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; +x_270 = lean_ctor_get(x_267, 0); +lean_inc(x_270); +if (lean_is_exclusive(x_267)) { + lean_ctor_release(x_267, 0); + x_271 = x_267; } else { - lean_dec_ref(x_264); - x_268 = lean_box(0); + lean_dec_ref(x_267); + x_271 = lean_box(0); } -x_269 = l_String_isEmpty(x_10); -x_270 = l_Lean_Server_FileWorker_EditableDocument_versionedIdentifier(x_252); -x_271 = lean_ctor_get(x_252, 0); -lean_inc(x_271); -lean_dec(x_252); -x_272 = lean_ctor_get(x_271, 2); -lean_inc(x_272); -lean_dec(x_271); -x_273 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_273, 0, x_259); -lean_ctor_set(x_273, 1, x_267); -x_274 = l_Lean_FileMap_utf8RangeToLspRange(x_272, x_273); -lean_dec(x_273); -lean_dec(x_272); -if (x_269 == 0) -{ -lean_object* x_275; lean_object* x_276; uint8_t x_277; -x_275 = lean_string_length(x_10); -x_276 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__14; -x_277 = lean_nat_dec_le(x_275, x_276); +x_272 = l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace(x_10); +lean_dec(x_10); +x_273 = l_String_isEmpty(x_272); +x_274 = l_Lean_Server_FileWorker_EditableDocument_versionedIdentifier(x_255); +x_275 = lean_ctor_get(x_255, 0); +lean_inc(x_275); +lean_dec(x_255); +x_276 = lean_ctor_get(x_275, 2); +lean_inc(x_276); lean_dec(x_275); -if (x_277 == 0) +x_277 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_277, 0, x_262); +lean_ctor_set(x_277, 1, x_270); +x_278 = l_Lean_FileMap_utf8RangeToLspRange(x_276, x_277); +lean_dec(x_277); +lean_dec(x_276); +if (x_273 == 0) { -lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; -x_278 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; -x_279 = lean_string_append(x_278, x_10); -lean_dec(x_10); -x_280 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; -x_281 = lean_string_append(x_279, x_280); -x_282 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_282, 0, x_274); -lean_ctor_set(x_282, 1, x_281); -lean_ctor_set(x_282, 2, x_254); -lean_ctor_set(x_282, 3, x_254); -x_283 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_270, x_282); -if (lean_is_scalar(x_268)) { - x_284 = lean_alloc_ctor(1, 1, 0); +lean_object* x_279; lean_object* x_280; uint8_t x_281; +x_279 = lean_string_length(x_272); +x_280 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__14; +x_281 = lean_nat_dec_le(x_279, x_280); +lean_dec(x_279); +if (x_281 == 0) +{ +lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; +x_282 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; +x_283 = lean_string_append(x_282, x_272); +lean_dec(x_272); +x_284 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; +x_285 = lean_string_append(x_283, x_284); +x_286 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_286, 0, x_278); +lean_ctor_set(x_286, 1, x_285); +lean_ctor_set(x_286, 2, x_257); +lean_ctor_set(x_286, 3, x_257); +x_287 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_274, x_286); +if (lean_is_scalar(x_271)) { + x_288 = lean_alloc_ctor(1, 1, 0); } else { - x_284 = x_268; + x_288 = x_271; } -lean_ctor_set(x_284, 0, x_283); -x_285 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_286 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_287 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_288 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_288, 0, x_254); -lean_ctor_set(x_288, 1, x_254); -lean_ctor_set(x_288, 2, x_285); -lean_ctor_set(x_288, 3, x_286); -lean_ctor_set(x_288, 4, x_254); -lean_ctor_set(x_288, 5, x_287); -lean_ctor_set(x_288, 6, x_254); -lean_ctor_set(x_288, 7, x_284); -lean_ctor_set(x_288, 8, x_254); -lean_ctor_set(x_288, 9, x_254); -x_289 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_289, 0, x_288); -if (lean_is_scalar(x_260)) { - x_290 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_288, 0, x_287); +x_289 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_290 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_291 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_292 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_292, 0, x_257); +lean_ctor_set(x_292, 1, x_257); +lean_ctor_set(x_292, 2, x_289); +lean_ctor_set(x_292, 3, x_290); +lean_ctor_set(x_292, 4, x_257); +lean_ctor_set(x_292, 5, x_291); +lean_ctor_set(x_292, 6, x_257); +lean_ctor_set(x_292, 7, x_288); +lean_ctor_set(x_292, 8, x_257); +lean_ctor_set(x_292, 9, x_257); +x_293 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_293, 0, x_292); +if (lean_is_scalar(x_263)) { + x_294 = lean_alloc_ctor(1, 1, 0); } else { - x_290 = x_260; + x_294 = x_263; } -lean_ctor_set(x_290, 0, x_289); -x_291 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_292 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_292, 0, x_291); -lean_ctor_set(x_292, 1, x_290); -x_293 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_294 = lean_array_push(x_293, x_292); -x_295 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_295, 0, x_294); -lean_ctor_set(x_295, 1, x_253); -return x_295; +lean_ctor_set(x_294, 0, x_293); +x_295 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_296 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_296, 0, x_295); +lean_ctor_set(x_296, 1, x_294); +x_297 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_298 = lean_array_push(x_297, x_296); +x_299 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_299, 0, x_298); +lean_ctor_set(x_299, 1, x_256); +return x_299; } else { -uint32_t x_296; uint8_t x_297; -x_296 = 10; -lean_inc(x_10); -x_297 = l_String_contains(x_10, x_296); -if (x_297 == 0) +uint32_t x_300; uint8_t x_301; +x_300 = 10; +lean_inc(x_272); +x_301 = l_String_contains(x_272, x_300); +if (x_301 == 0) { -lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; -x_298 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__17; -x_299 = lean_string_append(x_298, x_10); -lean_dec(x_10); -x_300 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__18; -x_301 = lean_string_append(x_299, x_300); -x_302 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_302, 0, x_274); -lean_ctor_set(x_302, 1, x_301); -lean_ctor_set(x_302, 2, x_254); -lean_ctor_set(x_302, 3, x_254); -x_303 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_270, x_302); -if (lean_is_scalar(x_268)) { - x_304 = lean_alloc_ctor(1, 1, 0); +lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +x_302 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__17; +x_303 = lean_string_append(x_302, x_272); +lean_dec(x_272); +x_304 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__18; +x_305 = lean_string_append(x_303, x_304); +x_306 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_306, 0, x_278); +lean_ctor_set(x_306, 1, x_305); +lean_ctor_set(x_306, 2, x_257); +lean_ctor_set(x_306, 3, x_257); +x_307 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_274, x_306); +if (lean_is_scalar(x_271)) { + x_308 = lean_alloc_ctor(1, 1, 0); } else { - x_304 = x_268; + x_308 = x_271; } -lean_ctor_set(x_304, 0, x_303); -x_305 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_306 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_307 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_308 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_308, 0, x_254); -lean_ctor_set(x_308, 1, x_254); -lean_ctor_set(x_308, 2, x_305); -lean_ctor_set(x_308, 3, x_306); -lean_ctor_set(x_308, 4, x_254); -lean_ctor_set(x_308, 5, x_307); -lean_ctor_set(x_308, 6, x_254); -lean_ctor_set(x_308, 7, x_304); -lean_ctor_set(x_308, 8, x_254); -lean_ctor_set(x_308, 9, x_254); -x_309 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_309, 0, x_308); -if (lean_is_scalar(x_260)) { - x_310 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_308, 0, x_307); +x_309 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_310 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_311 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_312 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_312, 0, x_257); +lean_ctor_set(x_312, 1, x_257); +lean_ctor_set(x_312, 2, x_309); +lean_ctor_set(x_312, 3, x_310); +lean_ctor_set(x_312, 4, x_257); +lean_ctor_set(x_312, 5, x_311); +lean_ctor_set(x_312, 6, x_257); +lean_ctor_set(x_312, 7, x_308); +lean_ctor_set(x_312, 8, x_257); +lean_ctor_set(x_312, 9, x_257); +x_313 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_313, 0, x_312); +if (lean_is_scalar(x_263)) { + x_314 = lean_alloc_ctor(1, 1, 0); } else { - x_310 = x_260; + x_314 = x_263; } -lean_ctor_set(x_310, 0, x_309); -x_311 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_312 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_312, 0, x_311); -lean_ctor_set(x_312, 1, x_310); -x_313 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_314 = lean_array_push(x_313, x_312); -x_315 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_315, 0, x_314); -lean_ctor_set(x_315, 1, x_253); -return x_315; +lean_ctor_set(x_314, 0, x_313); +x_315 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_316 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_316, 0, x_315); +lean_ctor_set(x_316, 1, x_314); +x_317 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_318 = lean_array_push(x_317, x_316); +x_319 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_319, 0, x_318); +lean_ctor_set(x_319, 1, x_256); +return x_319; } else { -lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; -x_316 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; -x_317 = lean_string_append(x_316, x_10); -lean_dec(x_10); -x_318 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; -x_319 = lean_string_append(x_317, x_318); -x_320 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_320, 0, x_274); -lean_ctor_set(x_320, 1, x_319); -lean_ctor_set(x_320, 2, x_254); -lean_ctor_set(x_320, 3, x_254); -x_321 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_270, x_320); -if (lean_is_scalar(x_268)) { - x_322 = lean_alloc_ctor(1, 1, 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; lean_object* x_335; lean_object* x_336; lean_object* x_337; +x_320 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__15; +x_321 = lean_string_append(x_320, x_272); +lean_dec(x_272); +x_322 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__16; +x_323 = lean_string_append(x_321, x_322); +x_324 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_324, 0, x_278); +lean_ctor_set(x_324, 1, x_323); +lean_ctor_set(x_324, 2, x_257); +lean_ctor_set(x_324, 3, x_257); +x_325 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_274, x_324); +if (lean_is_scalar(x_271)) { + x_326 = lean_alloc_ctor(1, 1, 0); } else { - x_322 = x_268; + x_326 = x_271; } -lean_ctor_set(x_322, 0, x_321); -x_323 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_324 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_325 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_326 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_326, 0, x_254); -lean_ctor_set(x_326, 1, x_254); -lean_ctor_set(x_326, 2, x_323); -lean_ctor_set(x_326, 3, x_324); -lean_ctor_set(x_326, 4, x_254); -lean_ctor_set(x_326, 5, x_325); -lean_ctor_set(x_326, 6, x_254); -lean_ctor_set(x_326, 7, x_322); -lean_ctor_set(x_326, 8, x_254); -lean_ctor_set(x_326, 9, x_254); -x_327 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_327, 0, x_326); -if (lean_is_scalar(x_260)) { - x_328 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_326, 0, x_325); +x_327 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_328 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_329 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_330 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_330, 0, x_257); +lean_ctor_set(x_330, 1, x_257); +lean_ctor_set(x_330, 2, x_327); +lean_ctor_set(x_330, 3, x_328); +lean_ctor_set(x_330, 4, x_257); +lean_ctor_set(x_330, 5, x_329); +lean_ctor_set(x_330, 6, x_257); +lean_ctor_set(x_330, 7, x_326); +lean_ctor_set(x_330, 8, x_257); +lean_ctor_set(x_330, 9, x_257); +x_331 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_331, 0, x_330); +if (lean_is_scalar(x_263)) { + x_332 = lean_alloc_ctor(1, 1, 0); } else { - x_328 = x_260; -} -lean_ctor_set(x_328, 0, x_327); -x_329 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_330 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_330, 0, x_329); -lean_ctor_set(x_330, 1, x_328); -x_331 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_332 = lean_array_push(x_331, x_330); -x_333 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_333, 0, x_332); -lean_ctor_set(x_333, 1, x_253); -return x_333; -} -} -} -else -{ -lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; -lean_dec(x_10); -x_334 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___closed__1; -x_335 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_335, 0, x_274); -lean_ctor_set(x_335, 1, x_334); -lean_ctor_set(x_335, 2, x_254); -lean_ctor_set(x_335, 3, x_254); -x_336 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_270, x_335); -if (lean_is_scalar(x_268)) { - x_337 = lean_alloc_ctor(1, 1, 0); -} else { - x_337 = x_268; + x_332 = x_263; } +lean_ctor_set(x_332, 0, x_331); +x_333 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_334 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_334, 0, x_333); +lean_ctor_set(x_334, 1, x_332); +x_335 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_336 = lean_array_push(x_335, x_334); +x_337 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_337, 0, x_336); -x_338 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; -x_339 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; -x_340 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; -x_341 = lean_alloc_ctor(0, 10, 0); -lean_ctor_set(x_341, 0, x_254); -lean_ctor_set(x_341, 1, x_254); -lean_ctor_set(x_341, 2, x_338); -lean_ctor_set(x_341, 3, x_339); -lean_ctor_set(x_341, 4, x_254); -lean_ctor_set(x_341, 5, x_340); -lean_ctor_set(x_341, 6, x_254); -lean_ctor_set(x_341, 7, x_337); -lean_ctor_set(x_341, 8, x_254); -lean_ctor_set(x_341, 9, x_254); -x_342 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); -lean_closure_set(x_342, 0, x_341); -if (lean_is_scalar(x_260)) { - x_343 = lean_alloc_ctor(1, 1, 0); -} else { - x_343 = x_260; +lean_ctor_set(x_337, 1, x_256); +return x_337; } -lean_ctor_set(x_343, 0, x_342); -x_344 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; -x_345 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_345, 0, x_344); -lean_ctor_set(x_345, 1, x_343); -x_346 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; -x_347 = lean_array_push(x_346, x_345); -x_348 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_348, 0, x_347); -lean_ctor_set(x_348, 1, x_253); -return x_348; +} +} +else +{ +lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; +lean_dec(x_272); +x_338 = l___private_Lean_Elab_GuardMsgs_0__Lean_Elab_Tactic_GuardMsgs_messageToStringWithoutPos___closed__1; +x_339 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_339, 0, x_278); +lean_ctor_set(x_339, 1, x_338); +lean_ctor_set(x_339, 2, x_257); +lean_ctor_set(x_339, 3, x_257); +x_340 = l_Lean_Lsp_WorkspaceEdit_ofTextEdit(x_274, x_339); +if (lean_is_scalar(x_271)) { + x_341 = lean_alloc_ctor(1, 1, 0); +} else { + x_341 = x_271; +} +lean_ctor_set(x_341, 0, x_340); +x_342 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__4; +x_343 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__2; +x_344 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__3; +x_345 = lean_alloc_ctor(0, 10, 0); +lean_ctor_set(x_345, 0, x_257); +lean_ctor_set(x_345, 1, x_257); +lean_ctor_set(x_345, 2, x_342); +lean_ctor_set(x_345, 3, x_343); +lean_ctor_set(x_345, 4, x_257); +lean_ctor_set(x_345, 5, x_344); +lean_ctor_set(x_345, 6, x_257); +lean_ctor_set(x_345, 7, x_341); +lean_ctor_set(x_345, 8, x_257); +lean_ctor_set(x_345, 9, x_257); +x_346 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_346, 0, x_345); +if (lean_is_scalar(x_263)) { + x_347 = lean_alloc_ctor(1, 1, 0); +} else { + x_347 = x_263; +} +lean_ctor_set(x_347, 0, x_346); +x_348 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__5; +x_349 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_349, 0, x_348); +lean_ctor_set(x_349, 1, x_347); +x_350 = l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__6; +x_351 = lean_array_push(x_350, x_349); +x_352 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_352, 0, x_351); +lean_ctor_set(x_352, 1, x_256); +return x_352; } } } @@ -5405,12 +5536,12 @@ return x_348; } else { -lean_object* x_349; lean_object* x_350; -x_349 = l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__6; -x_350 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_350, 0, x_349); -lean_ctor_set(x_350, 1, x_3); -return x_350; +lean_object* x_353; lean_object* x_354; +x_353 = l_Lean_Elab_Tactic_GuardMsgs_parseGuardMsgsSpec___closed__6; +x_354 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_354, 0, x_353); +lean_ctor_set(x_354, 1, x_3); +return x_354; } } } @@ -5515,7 +5646,7 @@ lean_dec(x_1); return x_4; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5525,7 +5656,7 @@ x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251____closed__2() { +static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285____closed__2() { _start: { lean_object* x_1; @@ -5533,12 +5664,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeActio return x_1; } } -LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251_(lean_object* x_1) { +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251____closed__1; -x_3 = l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251____closed__2; +x_2 = l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285____closed__1; +x_3 = l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285____closed__2; x_4 = l_Lean_CodeAction_insertBuiltin(x_2, x_3, x_1); return x_4; } @@ -5632,6 +5763,18 @@ l_Lean_Elab_Tactic_GuardMsgs_instImpl____x40_Lean_Elab_GuardMsgs___hyg_1100_ = _ lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_instImpl____x40_Lean_Elab_GuardMsgs___hyg_1100_); l_Lean_Elab_Tactic_GuardMsgs_instTypeNameGuardMsgFailure = _init_l_Lean_Elab_Tactic_GuardMsgs_instTypeNameGuardMsgFailure(); lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_instTypeNameGuardMsgFailure); +l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__1 = _init_l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__1); +l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__2 = _init_l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__2); +l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__3 = _init_l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__3); +l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__4 = _init_l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__4); +l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__5 = _init_l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__5); +l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__6 = _init_l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__6(); +lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_revealTrailingWhitespace___closed__6); l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__1___rarg___closed__1 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__1___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__1___rarg___closed__1); l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__1___rarg___closed__2 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_GuardMsgs_elabGuardMsgs___spec__1___rarg___closed__2(); @@ -5738,11 +5881,11 @@ l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__17 = _init_l_L lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__17); l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__18 = _init_l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__18(); lean_mark_persistent(l_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction___rarg___closed__18); -l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251____closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251____closed__1); -l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251____closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251____closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251____closed__2); -if (builtin) {res = l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2251_(lean_io_mk_world()); +l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285____closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285____closed__1); +l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285____closed__2 = _init_l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285____closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285____closed__2); +if (builtin) {res = l___regBuiltin_Lean_Elab_Tactic_GuardMsgs_guardMsgsCodeAction_declare____x40_Lean_Elab_GuardMsgs___hyg_2285_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index c602d3693d..c5d22ff09d 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -58,7 +58,6 @@ lean_object* l_Lean_Elab_Term_processDefDeriving(lean_object*, lean_object*, lea static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instFVarIdSetInhabited; -LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabMutualDef___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -95,6 +94,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualD LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__4___closed__2; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__2___closed__1; +static lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__1; 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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, size_t, size_t, lean_object*); @@ -103,6 +103,7 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_ LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_newLetDecls___default; LEAN_EXPORT lean_object* l_Array_getMax_x3f___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pickMaxFVar_x3f___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_isModified___rarg(lean_object*); lean_object* l_Lean_indentD(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pushLocalDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -142,6 +143,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabMutualDe LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_WF_TerminationHints_rememberExtraParams(lean_object*, lean_object*, lean_object*); +static lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__4; lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -305,7 +307,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Mutua LEAN_EXPORT lean_object* l_Lean_RBNode_foldM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_updateUsedVarsOf___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_run___boxed(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__1; -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___closed__2; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -324,7 +325,6 @@ lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pushNewVars___spec__1(lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__2; uint8_t l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_236____spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__9; LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -567,6 +567,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check static lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__3___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -682,6 +683,7 @@ lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__3___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_checkForHiddenUnivLevels_visit___spec__4___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_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_type; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__3___closed__2; static lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__2; @@ -722,7 +724,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName___lambda__1___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___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___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___lambda__2___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withDeclName___spec__3___rarg(lean_object*, lean_object*); @@ -766,6 +767,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels_visit___lambd static lean_object* l_Lean_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5___closed__3; LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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* l_Lean_Option_set___at_Lean_Elab_Eqns_tryURefl___spec__1(lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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_object*); lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Option_setIfNotSet___at_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -790,6 +792,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualD LEAN_EXPORT lean_object* l_Lean_Elab_Term_checkForHiddenUnivLevels___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge___closed__1; +static lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__2; static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___lambda__2___closed__1; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__5___lambda__2___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*); @@ -887,7 +890,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Mutua static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_cleanupOfNat___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkFreeVarMap___spec__5___rarg___lambda__1(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Elab_Term_elabMutualDef_go___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_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withLevelNames___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_go___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_FixPoint_State_usedFVarsMap___default; @@ -931,7 +934,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Mutua lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___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_getAttributeImpl(lean_object*, lean_object*); -static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* lean_array_get_size(lean_object*); extern lean_object* l_Lean_pp_letVarTypes; @@ -971,6 +973,7 @@ static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0_ lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_elabTerminationHints___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabMutualDef_processDeriving___spec__1___closed__4; +static lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__3; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMutualDef___spec__12___closed__2; uint8_t l_Lean_Exception_isRuntime(lean_object*); lean_object* l_Lean_Expr_lam___override(lean_object*, lean_object*, lean_object*, uint8_t); @@ -1022,6 +1025,7 @@ lean_object* l_Lean_Expr_collectFVars(lean_object*, lean_object*, lean_object*, LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isTheorem___spec__1(lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosures___spec__6(lean_object*, size_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2097,7 +2101,7 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_chec _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("'noncomputable unsafe' is not allowed", 37); +x_1 = lean_mk_string_from_bytes("'theorem' subsumes 'noncomputable', code is not generated for theorems", 70); return x_1; } } @@ -2113,10 +2117,10 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; uint8_t x_12; +uint8_t x_11; uint8_t x_12; lean_dec(x_3); -x_11 = lean_ctor_get(x_2, 1); -x_12 = lean_ctor_get_uint8(x_11, sizeof(void*)*2 + 1); +x_11 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); +x_12 = l_Lean_Elab_DefKind_isTheorem(x_11); if (x_12 == 0) { lean_object* x_13; lean_object* x_14; @@ -2126,42 +2130,43 @@ return x_14; } else { -uint8_t x_15; -x_15 = lean_ctor_get_uint8(x_11, sizeof(void*)*2 + 3); -if (x_15 == 0) +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_2, 1); +x_16 = lean_ctor_get_uint8(x_15, sizeof(void*)*2 + 1); +if (x_16 == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_box(0); -x_17 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4(x_1, x_2, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_17; +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4(x_1, x_2, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_18; } else { -lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5___closed__2; -x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__5___closed__2; +x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, 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); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -return x_19; +return x_20; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_ctor_get(x_19, 1); +lean_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_inc(x_22); -lean_inc(x_21); -lean_dec(x_19); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; +lean_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; } } } @@ -2171,7 +2176,7 @@ static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_chec _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("'theorem' subsumes 'noncomputable', code is not generated for theorems", 70); +x_1 = lean_mk_string_from_bytes("'partial' theorems are not allowed, 'partial' is a code generation directive", 76); return x_1; } } @@ -2202,7 +2207,7 @@ else { lean_object* x_15; uint8_t x_16; x_15 = lean_ctor_get(x_2, 1); -x_16 = lean_ctor_get_uint8(x_15, sizeof(void*)*2 + 1); +x_16 = l_Lean_Elab_Modifiers_isPartial(x_15); if (x_16 == 0) { lean_object* x_17; lean_object* x_18; @@ -2242,81 +2247,6 @@ return x_24; } } } -static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("'partial' theorems are not allowed, 'partial' is a code generation directive", 76); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -uint8_t x_11; uint8_t x_12; -lean_dec(x_3); -x_11 = lean_ctor_get_uint8(x_2, sizeof(void*)*9); -x_12 = l_Lean_Elab_DefKind_isTheorem(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_box(0); -x_14 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_14; -} -else -{ -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_2, 1); -x_16 = l_Lean_Elab_Modifiers_isPartial(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_box(0); -x_18 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6(x_1, x_2, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -return x_18; -} -else -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__2; -x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_19, 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); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -return x_20; -} -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_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; -} -} -} -} -} static lean_object* _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__1() { _start: { @@ -2344,7 +2274,7 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; x_12 = lean_box(0); -x_13 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7(x_1, x_2, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6(x_1, x_2, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_13; } else @@ -2356,7 +2286,7 @@ if (x_15 == 0) { lean_object* x_16; lean_object* x_17; x_16 = lean_box(0); -x_17 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7(x_1, x_2, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_17 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6(x_1, x_2, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_17; } else @@ -2453,16 +2383,6 @@ lean_dec(x_1); return x_11; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_2); -lean_dec(x_1); -return x_11; -} -} LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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: { @@ -19997,6 +19917,62 @@ lean_dec(x_1); return x_3; } } +LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = l_Lean_Elab_getDeclarationSelectionRef(x_1); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(0, 7, 1); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +lean_ctor_set(x_19, 2, x_3); +lean_ctor_set(x_19, 3, x_4); +lean_ctor_set(x_19, 4, x_5); +lean_ctor_set(x_19, 5, x_6); +lean_ctor_set(x_19, 6, x_7); +lean_ctor_set_uint8(x_19, sizeof(void*)*7, x_2); +x_20 = lean_array_push(x_8, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_16); +return x_21; +} +} +static lean_object* _init_l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("type of theorem '", 17); +return x_1; +} +} +static lean_object* _init_l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("' is not a proposition", 22); +return x_1; +} +} +static lean_object* _init_l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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: { @@ -20005,32 +19981,32 @@ x_14 = lean_unsigned_to_nat(0u); x_15 = lean_nat_dec_eq(x_5, x_14); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_87; uint8_t x_88; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_95; uint8_t x_96; x_16 = lean_unsigned_to_nat(1u); x_17 = lean_nat_sub(x_5, x_16); lean_dec(x_5); x_18 = lean_nat_sub(x_4, x_17); x_19 = lean_nat_sub(x_18, x_16); lean_dec(x_18); -x_87 = lean_array_get_size(x_2); -x_88 = lean_nat_dec_lt(x_19, x_87); -lean_dec(x_87); -if (x_88 == 0) +x_95 = lean_array_get_size(x_2); +x_96 = lean_nat_dec_lt(x_19, x_95); +lean_dec(x_95); +if (x_96 == 0) { -lean_object* x_89; lean_object* x_90; -x_89 = l_Lean_Elab_instInhabitedDefViewElabHeader; -x_90 = l___private_Init_Util_0__outOfBounds___rarg(x_89); -x_20 = x_90; -goto block_86; +lean_object* x_97; lean_object* x_98; +x_97 = l_Lean_Elab_instInhabitedDefViewElabHeader; +x_98 = l___private_Init_Util_0__outOfBounds___rarg(x_97); +x_20 = x_98; +goto block_94; } else { -lean_object* x_91; -x_91 = lean_array_fget(x_2, x_19); -x_20 = x_91; -goto block_86; +lean_object* x_99; +x_99 = lean_array_fget(x_2, x_19); +x_20 = x_99; +goto block_94; } -block_86: +block_94: { lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_21 = lean_ctor_get(x_20, 0); @@ -20056,105 +20032,171 @@ lean_inc(x_7); x_28 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_declValToTerminationHint(x_27, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_28) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_85; uint8_t x_86; 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_array_get_size(x_3); -x_32 = lean_nat_dec_lt(x_19, x_31); -lean_dec(x_31); -if (x_32 == 0) +x_85 = lean_array_get_size(x_3); +x_86 = lean_nat_dec_lt(x_19, x_85); +lean_dec(x_85); +if (x_86 == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; uint8_t x_37; uint8_t x_38; lean_object* x_39; +lean_object* x_87; lean_object* x_88; lean_dec(x_19); -x_33 = l_Lean_instInhabitedExpr; -x_34 = l___private_Init_Util_0__outOfBounds___rarg(x_33); -x_35 = l_Lean_Elab_WF_TerminationHints_rememberExtraParams(x_25, x_29, x_34); +x_87 = l_Lean_instInhabitedExpr; +x_88 = l___private_Init_Util_0__outOfBounds___rarg(x_87); +x_31 = x_88; +goto block_84; +} +else +{ +lean_object* x_89; +x_89 = lean_array_fget(x_3, x_19); +lean_dec(x_19); +x_31 = x_89; +goto block_84; +} +block_84: +{ +lean_object* x_32; uint8_t x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; +x_32 = l_Lean_Elab_WF_TerminationHints_rememberExtraParams(x_25, x_29, x_31); lean_dec(x_25); -x_36 = 0; -x_37 = 1; -x_38 = 1; +x_33 = 0; +x_34 = 1; +x_35 = 1; lean_inc(x_1); -x_39 = l_Lean_Meta_mkLambdaFVars(x_1, x_34, x_36, x_37, x_38, x_9, x_10, x_11, x_12, x_30); +x_36 = l_Lean_Meta_mkLambdaFVars(x_1, x_31, x_33, x_34, x_35, x_9, x_10, x_11, x_12, x_30); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +lean_inc(x_1); +x_39 = l_Lean_Meta_mkForallFVars(x_1, x_26, x_33, x_34, x_35, x_9, x_10, x_11, x_12, x_38); if (lean_obj_tag(x_39) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_object* x_40; lean_object* x_41; uint8_t 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); -lean_inc(x_1); -x_42 = l_Lean_Meta_mkForallFVars(x_1, x_26, x_36, x_37, x_38, x_9, x_10, x_11, x_12, x_41); -if (lean_obj_tag(x_42) == 0) +x_42 = l_Lean_Elab_DefKind_isTheorem(x_23); +if (x_42 == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Lean_Elab_getDeclarationSelectionRef(x_21); -x_46 = lean_box(0); -x_47 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -lean_ctor_set(x_47, 2, x_22); -lean_ctor_set(x_47, 3, x_24); -lean_ctor_set(x_47, 4, x_43); -lean_ctor_set(x_47, 5, x_40); -lean_ctor_set(x_47, 6, x_35); -lean_ctor_set_uint8(x_47, sizeof(void*)*7, x_23); -x_48 = lean_array_push(x_6, x_47); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_box(0); +x_44 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___lambda__1(x_21, x_23, x_22, x_24, x_40, x_37, x_32, x_6, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_41); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); x_5 = x_17; -x_6 = x_48; -x_13 = x_44; +x_6 = x_45; +x_13 = x_46; goto _start; } else { -uint8_t x_50; -lean_dec(x_40); -lean_dec(x_35); -lean_dec(x_24); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_50 = !lean_is_exclusive(x_42); +lean_object* x_48; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_40); +x_48 = l_Lean_Meta_isProp(x_40, x_9, x_10, x_11, x_12, x_41); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; uint8_t x_50; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_unbox(x_49); +lean_dec(x_49); if (x_50 == 0) { -return x_42; -} -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_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +lean_dec(x_37); +lean_dec(x_32); +lean_dec(x_22); +lean_dec(x_17); +lean_dec(x_6); +lean_dec(x_1); +x_51 = lean_ctor_get(x_48, 1); lean_inc(x_51); -lean_dec(x_42); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +lean_dec(x_48); +x_52 = l_Lean_MessageData_ofName(x_24); +x_53 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__2; +x_54 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_55 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__4; +x_56 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +x_57 = l_Lean_indentExpr(x_40); +x_58 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +x_59 = l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__4; +x_60 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +x_61 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabMatch_elabMatchDefault___spec__7(x_21, x_60, x_7, x_8, x_9, x_10, x_11, x_12, x_51); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_21); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +return x_61; } +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_61, 0); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_61); +x_65 = lean_alloc_ctor(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_54; -lean_dec(x_35); -lean_dec(x_26); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_66 = lean_ctor_get(x_48, 1); +lean_inc(x_66); +lean_dec(x_48); +x_67 = lean_box(0); +x_68 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___lambda__1(x_21, x_23, x_22, x_24, x_40, x_37, x_32, x_6, x_67, x_7, x_8, x_9, x_10, x_11, x_12, x_66); +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_5 = x_17; +x_6 = x_69; +x_13 = x_70; +goto _start; +} +} +else +{ +uint8_t x_72; +lean_dec(x_40); +lean_dec(x_37); +lean_dec(x_32); lean_dec(x_24); lean_dec(x_22); lean_dec(x_21); @@ -20167,114 +20209,68 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_54 = !lean_is_exclusive(x_39); -if (x_54 == 0) +x_72 = !lean_is_exclusive(x_48); +if (x_72 == 0) +{ +return x_48; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_48, 0); +x_74 = lean_ctor_get(x_48, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_48); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; +} +} +} +} +else +{ +uint8_t x_76; +lean_dec(x_37); +lean_dec(x_32); +lean_dec(x_24); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_76 = !lean_is_exclusive(x_39); +if (x_76 == 0) { return x_39; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_39, 0); -x_56 = lean_ctor_get(x_39, 1); -lean_inc(x_56); -lean_inc(x_55); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_39, 0); +x_78 = lean_ctor_get(x_39, 1); +lean_inc(x_78); +lean_inc(x_77); lean_dec(x_39); -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; +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_58; lean_object* x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; lean_object* x_63; -x_58 = lean_array_fget(x_3, x_19); -lean_dec(x_19); -x_59 = l_Lean_Elab_WF_TerminationHints_rememberExtraParams(x_25, x_29, x_58); -lean_dec(x_25); -x_60 = 0; -x_61 = 1; -x_62 = 1; -lean_inc(x_1); -x_63 = l_Lean_Meta_mkLambdaFVars(x_1, x_58, x_60, x_61, x_62, x_9, x_10, x_11, x_12, x_30); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -lean_inc(x_1); -x_66 = l_Lean_Meta_mkForallFVars(x_1, x_26, x_60, x_61, x_62, x_9, x_10, x_11, x_12, x_65); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_69 = l_Lean_Elab_getDeclarationSelectionRef(x_21); -x_70 = lean_box(0); -x_71 = lean_alloc_ctor(0, 7, 1); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -lean_ctor_set(x_71, 2, x_22); -lean_ctor_set(x_71, 3, x_24); -lean_ctor_set(x_71, 4, x_67); -lean_ctor_set(x_71, 5, x_64); -lean_ctor_set(x_71, 6, x_59); -lean_ctor_set_uint8(x_71, sizeof(void*)*7, x_23); -x_72 = lean_array_push(x_6, x_71); -x_5 = x_17; -x_6 = x_72; -x_13 = x_68; -goto _start; -} -else -{ -uint8_t x_74; -lean_dec(x_64); -lean_dec(x_59); -lean_dec(x_24); -lean_dec(x_22); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_74 = !lean_is_exclusive(x_66); -if (x_74 == 0) -{ -return x_66; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_66, 0); -x_76 = lean_ctor_get(x_66, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_66); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; -} -} -} -else -{ -uint8_t x_78; -lean_dec(x_59); +uint8_t x_80; +lean_dec(x_32); lean_dec(x_26); lean_dec(x_24); lean_dec(x_22); @@ -20288,30 +20284,30 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_78 = !lean_is_exclusive(x_63); -if (x_78 == 0) +x_80 = !lean_is_exclusive(x_36); +if (x_80 == 0) { -return x_63; +return x_36; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_63, 0); -x_80 = lean_ctor_get(x_63, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_63); -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; +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_36, 0); +x_82 = lean_ctor_get(x_36, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_36); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; } } } } else { -uint8_t x_82; +uint8_t x_90; lean_dec(x_26); lean_dec(x_25); lean_dec(x_24); @@ -20327,30 +20323,30 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_82 = !lean_is_exclusive(x_28); -if (x_82 == 0) +x_90 = !lean_is_exclusive(x_28); +if (x_90 == 0) { return x_28; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_28, 0); -x_84 = lean_ctor_get(x_28, 1); -lean_inc(x_84); -lean_inc(x_83); +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_28, 0); +x_92 = lean_ctor_get(x_28, 1); +lean_inc(x_92); +lean_inc(x_91); lean_dec(x_28); -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -return x_85; +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; } } } } else { -lean_object* x_92; +lean_object* x_100; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -20359,10 +20355,10 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_1); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_6); -lean_ctor_set(x_92, 1, x_13); -return x_92; +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_6); +lean_ctor_set(x_100, 1, x_13); +return x_100; } } } @@ -20379,6 +20375,23 @@ lean_dec(x_3); return x_13; } } +LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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, lean_object* x_16) { +_start: +{ +uint8_t x_17; lean_object* x_18; +x_17 = lean_unbox(x_2); +lean_dec(x_2); +x_18 = l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___lambda__1(x_1, x_17, 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); +return x_18; +} +} LEAN_EXPORT lean_object* l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___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: { @@ -20463,7 +20476,95 @@ return x_33; } } } -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___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) { +_start: +{ +lean_object* x_7; +x_7 = lean_infer_type(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_ctor_get(x_7, 0); +x_10 = l_Lean_Expr_isProp(x_9); +lean_dec(x_9); +if (x_10 == 0) +{ +uint8_t x_11; lean_object* x_12; +x_11 = 0; +x_12 = lean_box(x_11); +lean_ctor_set(x_7, 0, x_12); +return x_7; +} +else +{ +uint8_t x_13; lean_object* x_14; +x_13 = 1; +x_14 = lean_box(x_13); +lean_ctor_set(x_7, 0, x_14); +return x_7; +} +} +else +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_7, 0); +x_16 = lean_ctor_get(x_7, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_7); +x_17 = l_Lean_Expr_isProp(x_15); +lean_dec(x_15); +if (x_17 == 0) +{ +uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_18 = 0; +x_19 = lean_box(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_16); +return x_20; +} +else +{ +uint8_t x_21; lean_object* x_22; lean_object* x_23; +x_21 = 1; +x_22 = lean_box(x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_16); +return x_23; +} +} +} +else +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_7); +if (x_24 == 0) +{ +return x_7; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_7, 0); +x_26 = lean_ctor_get(x_7, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_7); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +} +LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___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) { _start: { lean_object* x_8; @@ -20595,30 +20696,32 @@ x_21 = l_Lean_Meta_Closure_mkLambda(x_15, x_19); x_22 = l_Lean_Elab_DefKind_isDefOrAbbrevOrOpaque(x_1); if (x_22 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +uint8_t x_23; +x_23 = l_Lean_Elab_DefKind_isTheorem(x_1); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_inc(x_2); -x_23 = l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__1(x_2, x_12, x_14, x_20, x_21, x_3, x_1, x_5, x_6, x_7, x_8, x_9); +x_24 = l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__1(x_2, x_12, x_14, x_20, x_21, x_3, x_1, x_5, x_6, x_7, x_8, x_9); lean_dec(x_12); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_23); -x_3 = x_24; +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_3 = x_25; x_4 = x_13; -x_9 = x_25; +x_9 = x_26; goto _start; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_box(x_1); -x_28 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__2___boxed), 7, 2); +lean_object* x_28; lean_object* x_29; +x_28 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__2), 6, 1); lean_closure_set(x_28, 0, x_18); -lean_closure_set(x_28, 1, x_27); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -20682,6 +20785,76 @@ return x_40; } } } +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_box(x_1); +x_42 = lean_alloc_closure((void*)(l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__3___boxed), 7, 2); +lean_closure_set(x_42, 0, x_18); +lean_closure_set(x_42, 1, x_41); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_43 = l_Lean_Meta_withLCtx___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2___rarg(x_16, x_17, x_42, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_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_unbox(x_44); +lean_dec(x_44); +lean_inc(x_2); +x_47 = l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__1(x_2, x_12, x_14, x_20, x_21, x_3, x_46, x_5, x_6, x_7, x_8, x_45); +lean_dec(x_12); +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_3 = x_48; +x_4 = x_13; +x_9 = x_49; +goto _start; +} +else +{ +uint8_t x_51; +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_51 = !lean_is_exclusive(x_43); +if (x_51 == 0) +{ +return x_43; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_43, 0); +x_53 = lean_ctor_get(x_43, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_43); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +} } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_pushLetRecs(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) { @@ -20707,13 +20880,13 @@ lean_dec(x_2); return x_14; } } -LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___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_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; lean_object* x_9; x_8 = lean_unbox(x_2); lean_dec(x_2); -x_9 = l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__2(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +x_9 = l_List_foldlM___at_Lean_Elab_Term_MutualClosure_pushLetRecs___spec__1___lambda__3(x_1, x_8, x_3, x_4, x_5, x_6, x_7); return x_9; } } @@ -34000,10 +34173,6 @@ l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6___closed__1 lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6___closed__1); l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6___closed__2 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6___closed__2(); lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6___closed__2); -l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__1); -l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__2 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__7___closed__2); l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__1(); lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__1); l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__2 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__2(); @@ -34327,6 +34496,14 @@ l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_ lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___closed__6); l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___lambda__2___closed__1 = _init_l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___lambda__2___closed__1(); lean_mark_persistent(l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___lambda__2___closed__1); +l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__1 = _init_l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__1(); +lean_mark_persistent(l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__1); +l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__2 = _init_l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__2(); +lean_mark_persistent(l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__2); +l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__3 = _init_l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__3(); +lean_mark_persistent(l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__3); +l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__4 = _init_l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__4(); +lean_mark_persistent(l_Nat_foldM_loop___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1___closed__4); l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_levelMVarToParamHeaders_process___spec__1___closed__1); l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__1 = _init_l_Lean_Elab_Term_checkForHiddenUnivLevels_visitLevel___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Omega/Core.c b/stage0/stdlib/Lean/Elab/Tactic/Omega/Core.c index c84919d34a..efc231d30d 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Omega/Core.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Omega/Core.c @@ -43,7 +43,7 @@ static lean_object* l_Lean_Elab_Tactic_Omega_initFn____x40_Lean_Elab_Tactic_Omeg LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_Tactic_Omega_Problem_fourierMotzkinSelect___spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Omega_Problem_solveEasyEquality(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Omega_Justification_combineProof___closed__3; -lean_object* l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(lean_object*, lean_object*); +uint8_t l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(lean_object*, lean_object*); static lean_object* l___private_Lean_ToExpr_0__Lean_List_toExprAux___at_Lean_Elab_Tactic_Omega_instToExprLinearCombo___spec__1___closed__4; static lean_object* l_Lean_Elab_Tactic_Omega_instToExprConstraint___closed__4; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_Omega_Problem_fourierMotzkinData___spec__2___lambda__1___boxed(lean_object*, lean_object*); @@ -75,7 +75,6 @@ static lean_object* l_Lean_Elab_Tactic_Omega_Justification_toString___closed__10 LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Omega_Problem_addConstraint(lean_object*, lean_object*); size_t lean_hashset_mk_idx(lean_object*, uint64_t); LEAN_EXPORT lean_object* l_List_replace___at_Lean_Elab_Tactic_Omega_Problem_insertConstraint___spec__15___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_Omega_Problem_addConstraint___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Omega_Problem_addEqualities(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Omega_instToExprLinearCombo___closed__3; static lean_object* l_Lean_Elab_Tactic_Omega_Problem_dealWithHardEquality___closed__7; @@ -118,7 +117,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Omega_Problem_selectEquality(lean_ob lean_object* l_ReaderT_instMonadReaderT___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at_Lean_Elab_Tactic_Omega_Problem_solveEasyEquality___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Omega_instToExprConstraint___lambda__1___closed__8; -uint8_t l_List_hasDecEq___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Omega_instToExprLinearCombo___lambda__1___closed__13; static lean_object* l_Lean_Elab_Tactic_Omega_instToExprLinearCombo___closed__1; lean_object* l_Lean_Omega_Constraint_exact(lean_object*); @@ -344,6 +342,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Omega_Problem_runOmega(lean_object*, static uint8_t l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_Omega_Problem_fourierMotzkinSelect___spec__4___closed__2; static lean_object* l_Lean_Elab_Tactic_Omega_Problem_addEquality___closed__2; static lean_object* l_Lean_Elab_Tactic_Omega_Justification_toString___closed__4; +uint8_t l_List_hasDecEq___at___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Omega_instToExprConstraint___lambda__1(lean_object*); static lean_object* l_Lean_Elab_Tactic_Omega_Justification_bmodProof___closed__9; static lean_object* l_Lean_Elab_Tactic_Omega_instToExprLinearCombo___lambda__1___closed__10; @@ -493,7 +492,6 @@ LEAN_EXPORT uint8_t l_Lean_Elab_Tactic_Omega_Problem_FourierMotzkinData_exact(le LEAN_EXPORT uint64_t l_List_foldl___at_Lean_Elab_Tactic_Omega_Problem_insertConstraint___spec__2(uint64_t, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_Omega_Problem_proveFalse___closed__7; -lean_object* l_Int_decEq___boxed(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lean_Elab_Tactic_Omega_initFn____x40_Lean_Elab_Tactic_Omega_Core___hyg_5____closed__19; lean_object* lean_nat_add(lean_object*, lean_object*); @@ -8632,14 +8630,6 @@ lean_dec(x_2); return x_9; } } -static lean_object* _init_l_Lean_Elab_Tactic_Omega_Problem_addConstraint___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Int_decEq___boxed), 2, 0); -return x_1; -} -} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Omega_Problem_addConstraint(lean_object* x_1, lean_object* x_2) { _start: { @@ -8708,14 +8698,13 @@ lean_dec(x_8); x_14 = !lean_is_exclusive(x_13); if (x_14 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; x_15 = lean_ctor_get(x_13, 0); x_16 = lean_ctor_get(x_13, 1); x_17 = lean_ctor_get(x_13, 2); -x_18 = l_Lean_Elab_Tactic_Omega_Problem_addConstraint___closed__1; -lean_inc(x_4); -x_19 = l_List_hasDecEq___rarg(x_18, x_4, x_15); -if (x_19 == 0) +x_18 = l_List_hasDecEq___at___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____spec__1(x_4, x_15); +lean_dec(x_15); +if (x_18 == 0) { lean_free_object(x_13); lean_dec(x_17); @@ -8727,55 +8716,47 @@ return x_1; } else { -lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_object* x_19; uint8_t x_20; lean_inc(x_16); lean_inc(x_5); -x_20 = l_Lean_Omega_Constraint_combine(x_5, x_16); -lean_inc(x_16); -lean_inc(x_20); -x_21 = l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(x_20, x_16); -x_22 = lean_unbox(x_21); -lean_dec(x_21); -if (x_22 == 0) +x_19 = l_Lean_Omega_Constraint_combine(x_5, x_16); +x_20 = l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(x_19, x_16); +if (x_20 == 0) { -lean_object* x_23; uint8_t x_24; -lean_inc(x_5); -lean_inc(x_20); -x_23 = l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(x_20, x_5); -x_24 = lean_unbox(x_23); -lean_dec(x_23); -if (x_24 == 0) +uint8_t x_21; +x_21 = l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(x_19, x_5); +if (x_21 == 0) { -lean_object* x_25; lean_object* x_26; +lean_object* x_22; lean_object* x_23; lean_inc(x_4); -x_25 = lean_alloc_ctor(2, 5, 0); -lean_ctor_set(x_25, 0, x_5); -lean_ctor_set(x_25, 1, x_16); -lean_ctor_set(x_25, 2, x_4); -lean_ctor_set(x_25, 3, x_6); -lean_ctor_set(x_25, 4, x_17); -lean_ctor_set(x_13, 2, x_25); -lean_ctor_set(x_13, 1, x_20); +x_22 = lean_alloc_ctor(2, 5, 0); +lean_ctor_set(x_22, 0, x_5); +lean_ctor_set(x_22, 1, x_16); +lean_ctor_set(x_22, 2, x_4); +lean_ctor_set(x_22, 3, x_6); +lean_ctor_set(x_22, 4, x_17); +lean_ctor_set(x_13, 2, x_22); +lean_ctor_set(x_13, 1, x_19); lean_ctor_set(x_13, 0, x_4); -x_26 = l_Lean_Elab_Tactic_Omega_Problem_insertConstraint(x_1, x_13); -return x_26; +x_23 = l_Lean_Elab_Tactic_Omega_Problem_insertConstraint(x_1, x_13); +return x_23; } else { -lean_object* x_27; -lean_dec(x_20); +lean_object* x_24; +lean_dec(x_19); lean_dec(x_17); lean_dec(x_16); lean_ctor_set(x_13, 2, x_6); lean_ctor_set(x_13, 1, x_5); lean_ctor_set(x_13, 0, x_4); -x_27 = l_Lean_Elab_Tactic_Omega_Problem_insertConstraint(x_1, x_13); -return x_27; +x_24 = l_Lean_Elab_Tactic_Omega_Problem_insertConstraint(x_1, x_13); +return x_24; } } else { -lean_dec(x_20); +lean_dec(x_19); lean_free_object(x_13); lean_dec(x_17); lean_dec(x_16); @@ -8788,21 +8769,20 @@ return x_1; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_28 = lean_ctor_get(x_13, 0); -x_29 = lean_ctor_get(x_13, 1); -x_30 = lean_ctor_get(x_13, 2); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); +lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_13, 0); +x_26 = lean_ctor_get(x_13, 1); +x_27 = lean_ctor_get(x_13, 2); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); lean_dec(x_13); -x_31 = l_Lean_Elab_Tactic_Omega_Problem_addConstraint___closed__1; -lean_inc(x_4); -x_32 = l_List_hasDecEq___rarg(x_31, x_4, x_28); -if (x_32 == 0) +x_28 = l_List_hasDecEq___at___private_Init_Omega_LinearCombo_0__Lean_Omega_decEqLinearCombo____x40_Init_Omega_LinearCombo___hyg_27____spec__1(x_4, x_25); +lean_dec(x_25); +if (x_28 == 0) { -lean_dec(x_30); -lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_26); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -8810,59 +8790,51 @@ return x_1; } else { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -lean_inc(x_29); +lean_object* x_29; uint8_t x_30; +lean_inc(x_26); lean_inc(x_5); -x_33 = l_Lean_Omega_Constraint_combine(x_5, x_29); -lean_inc(x_29); -lean_inc(x_33); -x_34 = l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(x_33, x_29); -x_35 = lean_unbox(x_34); -lean_dec(x_34); -if (x_35 == 0) +x_29 = l_Lean_Omega_Constraint_combine(x_5, x_26); +x_30 = l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(x_29, x_26); +if (x_30 == 0) { -lean_object* x_36; uint8_t x_37; -lean_inc(x_5); -lean_inc(x_33); -x_36 = l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(x_33, x_5); -x_37 = lean_unbox(x_36); -lean_dec(x_36); -if (x_37 == 0) +uint8_t x_31; +x_31 = l___private_Init_Omega_Constraint_0__Lean_Omega_decEqConstraint____x40_Init_Omega_Constraint___hyg_142_(x_29, x_5); +if (x_31 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_inc(x_4); -x_38 = lean_alloc_ctor(2, 5, 0); -lean_ctor_set(x_38, 0, x_5); -lean_ctor_set(x_38, 1, x_29); -lean_ctor_set(x_38, 2, x_4); -lean_ctor_set(x_38, 3, x_6); -lean_ctor_set(x_38, 4, x_30); -x_39 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_39, 0, x_4); -lean_ctor_set(x_39, 1, x_33); -lean_ctor_set(x_39, 2, x_38); -x_40 = l_Lean_Elab_Tactic_Omega_Problem_insertConstraint(x_1, x_39); -return x_40; +x_32 = lean_alloc_ctor(2, 5, 0); +lean_ctor_set(x_32, 0, x_5); +lean_ctor_set(x_32, 1, x_26); +lean_ctor_set(x_32, 2, x_4); +lean_ctor_set(x_32, 3, x_6); +lean_ctor_set(x_32, 4, x_27); +x_33 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_33, 0, x_4); +lean_ctor_set(x_33, 1, x_29); +lean_ctor_set(x_33, 2, x_32); +x_34 = l_Lean_Elab_Tactic_Omega_Problem_insertConstraint(x_1, x_33); +return x_34; } else { -lean_object* x_41; lean_object* x_42; -lean_dec(x_33); -lean_dec(x_30); +lean_object* x_35; lean_object* x_36; lean_dec(x_29); -x_41 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_41, 0, x_4); -lean_ctor_set(x_41, 1, x_5); -lean_ctor_set(x_41, 2, x_6); -x_42 = l_Lean_Elab_Tactic_Omega_Problem_insertConstraint(x_1, x_41); -return x_42; +lean_dec(x_27); +lean_dec(x_26); +x_35 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_35, 0, x_4); +lean_ctor_set(x_35, 1, x_5); +lean_ctor_set(x_35, 2, x_6); +x_36 = l_Lean_Elab_Tactic_Omega_Problem_insertConstraint(x_1, x_35); +return x_36; } } else { -lean_dec(x_33); -lean_dec(x_30); lean_dec(x_29); +lean_dec(x_27); +lean_dec(x_26); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -16451,8 +16423,6 @@ l_Lean_Elab_Tactic_Omega_Problem_proveFalse___closed__10 = _init_l_Lean_Elab_Tac lean_mark_persistent(l_Lean_Elab_Tactic_Omega_Problem_proveFalse___closed__10); l_Lean_Elab_Tactic_Omega_Problem_proveFalse___closed__11 = _init_l_Lean_Elab_Tactic_Omega_Problem_proveFalse___closed__11(); lean_mark_persistent(l_Lean_Elab_Tactic_Omega_Problem_proveFalse___closed__11); -l_Lean_Elab_Tactic_Omega_Problem_addConstraint___closed__1 = _init_l_Lean_Elab_Tactic_Omega_Problem_addConstraint___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_Omega_Problem_addConstraint___closed__1); l_List_foldr___at_Lean_Elab_Tactic_Omega_Problem_replayEliminations___spec__1___closed__1 = _init_l_List_foldr___at_Lean_Elab_Tactic_Omega_Problem_replayEliminations___spec__1___closed__1(); lean_mark_persistent(l_List_foldr___at_Lean_Elab_Tactic_Omega_Problem_replayEliminations___spec__1___closed__1); l_List_foldr___at_Lean_Elab_Tactic_Omega_Problem_replayEliminations___spec__1___closed__2 = _init_l_List_foldr___at_Lean_Elab_Tactic_Omega_Problem_replayEliminations___spec__1___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Omega/MinNatAbs.c b/stage0/stdlib/Lean/Elab/Tactic/Omega/MinNatAbs.c index 6c36350a57..05de9b577e 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Omega/MinNatAbs.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Omega/MinNatAbs.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic.Omega.MinNatAbs -// Imports: Init.BinderPredicates Init.Data.Option.Lemmas Init.Data.Nat.Bitwise.Lemmas +// Imports: Init.BinderPredicates Init.Data.Int.Order Init.Data.List.Lemmas Init.Data.Nat.MinMax Init.Data.Option.Lemmas #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -347,8 +347,10 @@ return x_2; } } lean_object* initialize_Init_BinderPredicates(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_Int_Order(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_List_Lemmas(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_Nat_MinMax(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Option_Lemmas(uint8_t builtin, lean_object*); -lean_object* initialize_Init_Data_Nat_Bitwise_Lemmas(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Elab_Tactic_Omega_MinNatAbs(uint8_t builtin, lean_object* w) { lean_object * res; @@ -357,10 +359,16 @@ _G_initialized = true; res = initialize_Init_BinderPredicates(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Init_Data_Option_Lemmas(builtin, lean_io_mk_world()); +res = initialize_Init_Data_Int_Order(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Init_Data_Nat_Bitwise_Lemmas(builtin, lean_io_mk_world()); +res = initialize_Init_Data_List_Lemmas(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Data_Nat_MinMax(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Data_Option_Lemmas(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Omega/OmegaM.c b/stage0/stdlib/Lean/Elab/Tactic/Omega/OmegaM.c index 6803bb6b87..a1d5901307 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Omega/OmegaM.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Omega/OmegaM.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic.Omega.OmegaM -// Imports: Init.Omega.LinearCombo Init.Omega.Int Init.Omega.Logic Init.Data.BitVec Lean.Meta.AppBuilder +// Imports: Init.Omega.LinearCombo Init.Omega.Int Init.Omega.Logic Init.Data.BitVec.Basic Lean.Meta.AppBuilder #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -24,7 +24,6 @@ static lean_object* l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__75; lean_object* l_Lean_mkNatLit(lean_object*); static lean_object* l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__27; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Omega_atomsList___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__110; static lean_object* l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__79; LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at_Lean_Elab_Tactic_Omega_lookup___spec__2(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); @@ -3626,7 +3625,7 @@ static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__94() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("toNat_lt", 8); +x_1 = lean_mk_string_from_bytes("isLt", 4); return x_1; } } @@ -3661,32 +3660,24 @@ return x_1; static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__98() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("isLt", 4); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__91; +x_2 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__94; +x_3 = l_Lean_Name_mkStr2(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__99() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__91; -x_2 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__98; -x_3 = l_Lean_Name_mkStr2(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__100() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__99; +x_2 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__98; x_3 = l_Lean_Expr_const___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__101() { +static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__100() { _start: { lean_object* x_1; @@ -3694,7 +3685,7 @@ x_1 = lean_mk_string_from_bytes("natAbs", 6); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__102() { +static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__101() { _start: { lean_object* x_1; @@ -3702,27 +3693,27 @@ x_1 = lean_mk_string_from_bytes("le_natAbs", 9); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__103() { +static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__102() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Tactic_Omega_atomsList___rarg___closed__1; -x_2 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__102; +x_2 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__101; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__104() { +static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__103() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__103; +x_2 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__102; x_3 = l_Lean_Expr_const___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__105() { +static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__104() { _start: { lean_object* x_1; @@ -3730,29 +3721,29 @@ x_1 = lean_mk_string_from_bytes("neg_le_natAbs", 13); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__106() { +static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__105() { _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_Omega_atomsCoeffs___rarg___closed__1; x_2 = l_Lean_Elab_Tactic_Omega_atomsCoeffs___rarg___closed__2; x_3 = l_Lean_Elab_Tactic_Omega_atomsList___rarg___closed__1; -x_4 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__105; +x_4 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__104; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__107() { +static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__106() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__106; +x_2 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__105; x_3 = l_Lean_Expr_const___override(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__108() { +static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__107() { _start: { lean_object* x_1; @@ -3760,24 +3751,24 @@ x_1 = lean_mk_string_from_bytes("ofNat_sub_dichotomy", 19); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__109() { +static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__108() { _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_Omega_atomsCoeffs___rarg___closed__1; x_2 = l_Lean_Elab_Tactic_Omega_atomsCoeffs___rarg___closed__2; x_3 = l_Lean_Elab_Tactic_Omega_atomsList___rarg___closed__1; -x_4 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__108; +x_4 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__107; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__110() { +static lean_object* _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__109() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__109; +x_2 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__108; x_3 = l_Lean_Expr_const___override(x_2, x_1); return x_3; } @@ -5420,7 +5411,7 @@ x_436 = lean_array_fget(x_408, x_387); x_437 = lean_unsigned_to_nat(1u); x_438 = lean_array_fget(x_408, x_437); lean_dec(x_408); -x_439 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__100; +x_439 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__99; x_440 = l_Lean_mkAppB(x_439, x_436, x_438); x_441 = l_Lean_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(x_402, x_440); x_442 = lean_alloc_ctor(0, 2, 0); @@ -5435,7 +5426,7 @@ else { lean_object* x_443; uint8_t x_444; lean_dec(x_410); -x_443 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__101; +x_443 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__100; x_444 = lean_string_dec_eq(x_409, x_443); lean_dec(x_409); if (x_444 == 0) @@ -5468,10 +5459,10 @@ else lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; x_450 = lean_array_fget(x_408, x_387); lean_dec(x_408); -x_451 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__104; +x_451 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__103; lean_inc(x_450); x_452 = l_Lean_Expr_app___override(x_451, x_450); -x_453 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__107; +x_453 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__106; x_454 = l_Lean_Expr_app___override(x_453, x_450); x_455 = l_Lean_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(x_402, x_452); x_456 = l_Lean_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(x_455, x_454); @@ -5659,7 +5650,7 @@ x_494 = lean_array_fget(x_464, x_387); x_495 = lean_unsigned_to_nat(1u); x_496 = lean_array_fget(x_464, x_495); lean_dec(x_464); -x_497 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__100; +x_497 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__99; x_498 = l_Lean_mkAppB(x_497, x_494, x_496); x_499 = l_Lean_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(x_402, x_498); x_500 = lean_alloc_ctor(0, 2, 0); @@ -5674,7 +5665,7 @@ else { lean_object* x_501; uint8_t x_502; lean_dec(x_466); -x_501 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__101; +x_501 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__100; x_502 = lean_string_dec_eq(x_465, x_501); lean_dec(x_465); if (x_502 == 0) @@ -5707,10 +5698,10 @@ else lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; x_508 = lean_array_fget(x_464, x_387); lean_dec(x_464); -x_509 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__104; +x_509 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__103; lean_inc(x_508); x_510 = l_Lean_Expr_app___override(x_509, x_508); -x_511 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__107; +x_511 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__106; x_512 = l_Lean_Expr_app___override(x_511, x_508); x_513 = l_Lean_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(x_402, x_510); x_514 = l_Lean_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(x_513, x_512); @@ -5762,7 +5753,7 @@ x_524 = lean_array_fget(x_464, x_523); x_525 = lean_unsigned_to_nat(5u); x_526 = lean_array_fget(x_464, x_525); lean_dec(x_464); -x_527 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__110; +x_527 = l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__109; x_528 = l_Lean_mkAppB(x_527, x_524, x_526); x_529 = l_Lean_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(x_402, x_528); x_530 = lean_alloc_ctor(0, 2, 0); @@ -7290,7 +7281,7 @@ return x_12; lean_object* initialize_Init_Omega_LinearCombo(uint8_t builtin, lean_object*); lean_object* initialize_Init_Omega_Int(uint8_t builtin, lean_object*); lean_object* initialize_Init_Omega_Logic(uint8_t builtin, lean_object*); -lean_object* initialize_Init_Data_BitVec(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_BitVec_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_AppBuilder(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Elab_Tactic_Omega_OmegaM(uint8_t builtin, lean_object* w) { @@ -7306,7 +7297,7 @@ lean_dec_ref(res); res = initialize_Init_Omega_Logic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Init_Data_BitVec(builtin, lean_io_mk_world()); +res = initialize_Init_Data_BitVec_Basic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); res = initialize_Lean_Meta_AppBuilder(builtin, lean_io_mk_world()); @@ -7599,8 +7590,6 @@ l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__108 = _init_l_Lean_Elab_Tactic_Om lean_mark_persistent(l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__108); l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__109 = _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__109(); lean_mark_persistent(l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__109); -l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__110 = _init_l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__110(); -lean_mark_persistent(l_Lean_Elab_Tactic_Omega_analyzeAtom___closed__110); l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_Omega_lookup___spec__3___closed__1 = _init_l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_Omega_lookup___spec__3___closed__1(); lean_mark_persistent(l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_Omega_lookup___spec__3___closed__1); l_Lean_Elab_Tactic_Omega_lookup___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_Omega_lookup___lambda__2___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c b/stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c index e52b580efa..ef93edfc45 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c +++ b/stage0/stdlib/Lean/Elab/Tactic/SimpTrace.c @@ -48,7 +48,7 @@ lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean static lean_object* l_Lean_Elab_Tactic_evalSimpTrace___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpTrace___closed__3; lean_object* l_Lean_Meta_Tactic_TryThis_addSuggestion(lean_object*, 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_dsimpLocation_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_Simp_DischargeWrapper_with___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -60,13 +60,13 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2(lean_ob static lean_object* l_Lean_Elab_Tactic_evalSimpTrace___lambda__4___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___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*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAllTrace___closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27___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_Elab_Tactic_evalSimpAllTrace___lambda__5___closed__1; lean_object* l_Lean_MVarId_getNondepPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalSimpTrace___lambda__7___closed__1; static lean_object* l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27_go(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_dsimpLocation_x27_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_Lean_Elab_Tactic_dsimpLocation_x27_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*); static lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__3___closed__4; lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t); lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -124,7 +124,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpTrace___lambda__5(lean_objec LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___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* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalExact___spec__1___rarg(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDSimpTrace(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__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_dsimpLocation_x27___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAllTrace___closed__3; @@ -153,7 +153,7 @@ lean_object* l_Lean_Elab_Tactic_mkSimpOnly(lean_object*, lean_object*, lean_obje LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27_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_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpTrace_declRange(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDSimpTrace___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_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27___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_Elab_Tactic_evalSimpAllTrace___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAllTrace_declRange___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDSimpTrace___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*); @@ -2955,10 +2955,11 @@ lean_ctor_set(x_12, 1, x_11); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27_go(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_13; +lean_object* x_14; +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -2966,23 +2967,21 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -x_13 = l_Lean_Elab_Tactic_getMainGoal(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) +x_14 = l_Lean_Elab_Tactic_getMainGoal(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_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__1___closed__1; +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); x_17 = l_Lean_Elab_Tactic_evalSimpAllTrace___lambda__2___closed__1; +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); -x_18 = l_Lean_Meta_dsimpGoal(x_14, x_1, x_16, x_3, x_2, x_17, x_8, x_9, x_10, x_11, x_15); +x_18 = l_Lean_Meta_dsimpGoal(x_15, x_1, x_2, x_4, x_3, x_17, x_9, x_10, x_11, x_12, x_16); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; lean_object* x_20; @@ -3000,7 +2999,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_Elab_Tactic_replaceMainGoal(x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_21); +x_24 = l_Lean_Elab_Tactic_replaceMainGoal(x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); if (lean_obj_tag(x_24) == 0) { uint8_t x_25; @@ -3065,7 +3064,7 @@ x_36 = lean_box(0); x_37 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_Elab_Tactic_replaceMainGoal(x_37, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_33); +x_38 = l_Lean_Elab_Tactic_replaceMainGoal(x_37, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_33); if (lean_obj_tag(x_38) == 0) { uint8_t x_39; @@ -3118,6 +3117,7 @@ return x_46; else { uint8_t x_47; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3125,7 +3125,6 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); x_47 = !lean_is_exclusive(x_18); if (x_47 == 0) { @@ -3149,6 +3148,7 @@ return x_50; else { uint8_t x_51; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3156,22 +3156,22 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_51 = !lean_is_exclusive(x_13); +x_51 = !lean_is_exclusive(x_14); if (x_51 == 0) { -return x_13; +return x_14; } else { lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_13, 0); -x_53 = lean_ctor_get(x_13, 1); +x_52 = lean_ctor_get(x_14, 0); +x_53 = lean_ctor_get(x_14, 1); lean_inc(x_53); lean_inc(x_52); -lean_dec(x_13); +lean_dec(x_14); x_54 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_54, 0, x_52); lean_ctor_set(x_54, 1, x_53); @@ -3197,124 +3197,20 @@ lean_dec(x_2); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27_go___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27_go___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -uint8_t x_13; lean_object* x_14; -x_13 = lean_unbox(x_3); -lean_dec(x_3); -x_14 = l_Lean_Elab_Tactic_dsimpLocation_x27_go(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_11 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_14 = l_Lean_MVarId_getNondepPropHyps(x_12, x_6, x_7, x_8, x_9, x_13); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = 1; -x_18 = l_Lean_Elab_Tactic_dsimpLocation_x27_go(x_1, x_15, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_16); -return x_18; -} -else -{ -uint8_t x_19; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); +uint8_t x_14; lean_object* x_15; +x_14 = lean_unbox(x_4); lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_19 = !lean_is_exclusive(x_14); -if (x_19 == 0) -{ -return x_14; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_14, 0); -x_21 = lean_ctor_get(x_14, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_14); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; +x_15 = l_Lean_Elab_Tactic_dsimpLocation_x27_go(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_15; } } -} -else -{ -uint8_t x_23; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_23 = !lean_is_exclusive(x_11); -if (x_23 == 0) -{ -return x_11; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_11, 0); -x_25 = lean_ctor_get(x_11, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_11); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27___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_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_13; -lean_inc(x_11); +lean_object* x_12; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -3322,22 +3218,36 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_13 = l_Lean_Elab_Tactic_getFVarIds(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_13) == 0) +lean_inc(x_3); +x_12 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_13, 0); +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_Elab_Tactic_dsimpLocation_x27_go(x_2, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); -return x_16; +lean_dec(x_12); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_15 = l_Lean_MVarId_getNondepPropHyps(x_13, x_7, x_8, x_9, x_10, x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = 1; +x_19 = l_Lean_Elab_Tactic_dsimpLocation_x27_go(x_1, x_2, x_16, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +return x_19; } else { -uint8_t x_17; -lean_dec(x_11); +uint8_t x_20; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3345,65 +3255,160 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); -x_17 = !lean_is_exclusive(x_13); -if (x_17 == 0) -{ -return x_13; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_13, 0); -x_19 = lean_ctor_get(x_13, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_13); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -return x_20; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__1), 10, 1); -lean_closure_set(x_12, 0, x_1); -x_13 = l_Lean_Elab_Tactic_withMainContext___rarg(x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_13; -} -else -{ -lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = lean_ctor_get(x_2, 0); -lean_inc(x_14); -x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -lean_dec(x_2); -x_16 = lean_box(x_15); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__2___boxed), 12, 3); -lean_closure_set(x_17, 0, x_14); -lean_closure_set(x_17, 1, x_1); -lean_closure_set(x_17, 2, x_16); -x_18 = l_Lean_Elab_Tactic_withMainContext___rarg(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_18; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -uint8_t x_13; lean_object* x_14; -x_13 = lean_unbox(x_3); lean_dec(x_3); -x_14 = l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__2(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_2); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +else +{ +uint8_t x_24; +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_24 = !lean_is_exclusive(x_12); +if (x_24 == 0) +{ +return x_12; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_12, 0); +x_26 = lean_ctor_get(x_12, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_12); +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_Elab_Tactic_dsimpLocation_x27___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +lean_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_Lean_Elab_Tactic_getFVarIds(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_Elab_Tactic_dsimpLocation_x27_go(x_2, x_3, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16); +return x_17; +} +else +{ +uint8_t x_18; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_18 = !lean_is_exclusive(x_14); +if (x_18 == 0) +{ return x_14; } +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_14, 0); +x_20 = lean_ctor_get(x_14, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_14); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__1), 11, 2); +lean_closure_set(x_13, 0, x_1); +lean_closure_set(x_13, 1, x_2); +x_14 = l_Lean_Elab_Tactic_withMainContext___rarg(x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_14; +} +else +{ +lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_3, 0); +lean_inc(x_15); +x_16 = lean_ctor_get_uint8(x_3, sizeof(void*)*1); +lean_dec(x_3); +x_17 = lean_box(x_16); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__2___boxed), 13, 4); +lean_closure_set(x_18, 0, x_15); +lean_closure_set(x_18, 1, x_1); +lean_closure_set(x_18, 2, x_2); +lean_closure_set(x_18, 3, x_17); +x_19 = l_Lean_Elab_Tactic_withMainContext___rarg(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_19; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; lean_object* x_15; +x_14 = lean_unbox(x_4); +lean_dec(x_4); +x_15 = l_Lean_Elab_Tactic_dsimpLocation_x27___lambda__2(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_15; +} } LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalDSimpTrace___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: @@ -3438,151 +3443,155 @@ x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); if (lean_obj_tag(x_1) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); x_23 = lean_ctor_get(x_21, 0); lean_inc(x_23); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); lean_dec(x_21); -x_24 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__1___closed__2; +x_25 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__1___closed__2; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_25 = l_Lean_Elab_Tactic_dsimpLocation_x27(x_23, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22); -if (lean_obj_tag(x_25) == 0) +x_26 = l_Lean_Elab_Tactic_dsimpLocation_x27(x_23, x_24, 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_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -lean_dec(x_25); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_28 = l_Lean_Elab_Tactic_mkSimpCallStx(x_3, x_26, x_8, x_9, x_10, x_11, x_27); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); +x_29 = l_Lean_Elab_Tactic_mkSimpCallStx(x_3, x_27, x_8, x_9, x_10, x_11, x_28); +x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_ctor_get(x_10, 5); +x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); -x_32 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__3; -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_29); -x_34 = lean_box(0); -x_35 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -lean_ctor_set(x_35, 2, x_34); -lean_ctor_set(x_35, 3, x_34); -lean_ctor_set(x_35, 4, x_34); -lean_ctor_set(x_35, 5, x_34); -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_31); -x_37 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; -x_38 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_2, x_35, x_36, x_37, x_34, x_8, x_9, x_10, x_11, x_30); +lean_dec(x_29); +x_32 = lean_ctor_get(x_10, 5); +lean_inc(x_32); +x_33 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__3; +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_30); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_36, 2, x_35); +lean_ctor_set(x_36, 3, x_35); +lean_ctor_set(x_36, 4, x_35); +lean_ctor_set(x_36, 5, x_35); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_32); +x_38 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; +x_39 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_2, x_36, x_37, x_38, x_35, x_8, x_9, x_10, x_11, x_31); lean_dec(x_9); lean_dec(x_8); -return x_38; +return x_39; } else { -uint8_t x_39; +uint8_t x_40; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_39 = !lean_is_exclusive(x_25); -if (x_39 == 0) +x_40 = !lean_is_exclusive(x_26); +if (x_40 == 0) { -return x_25; +return x_26; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_25, 0); -x_41 = lean_ctor_get(x_25, 1); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_26, 0); +x_42 = lean_ctor_get(x_26, 1); +lean_inc(x_42); lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_25); -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_dec(x_26); +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_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_20, 1); -lean_inc(x_43); -lean_dec(x_20); -x_44 = lean_ctor_get(x_21, 0); +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_44 = lean_ctor_get(x_20, 1); lean_inc(x_44); +lean_dec(x_20); +x_45 = lean_ctor_get(x_21, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_21, 1); +lean_inc(x_46); lean_dec(x_21); -x_45 = !lean_is_exclusive(x_1); -if (x_45 == 0) +x_47 = !lean_is_exclusive(x_1); +if (x_47 == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_1, 0); -x_47 = l_Lean_Elab_Tactic_expandLocation(x_46); -lean_dec(x_46); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_48 = l_Lean_Elab_Tactic_dsimpLocation_x27(x_44, x_47, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_43); -if (lean_obj_tag(x_48) == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -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_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_1, 0); +x_49 = l_Lean_Elab_Tactic_expandLocation(x_48); lean_dec(x_48); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_51 = l_Lean_Elab_Tactic_mkSimpCallStx(x_3, x_49, x_8, x_9, x_10, x_11, x_50); -x_52 = lean_ctor_get(x_51, 0); +x_50 = l_Lean_Elab_Tactic_dsimpLocation_x27(x_45, x_46, x_49, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_44); +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; +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -x_54 = lean_ctor_get(x_10, 5); +lean_dec(x_50); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_53 = l_Lean_Elab_Tactic_mkSimpCallStx(x_3, x_51, x_8, x_9, x_10, x_11, x_52); +x_54 = lean_ctor_get(x_53, 0); lean_inc(x_54); -x_55 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__3; -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_52); -x_57 = lean_box(0); -x_58 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -lean_ctor_set(x_58, 2, x_57); -lean_ctor_set(x_58, 3, x_57); -lean_ctor_set(x_58, 4, x_57); -lean_ctor_set(x_58, 5, x_57); -lean_ctor_set(x_1, 0, x_54); -x_59 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; -x_60 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_2, x_58, x_1, x_59, x_57, x_8, x_9, x_10, x_11, x_53); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = lean_ctor_get(x_10, 5); +lean_inc(x_56); +x_57 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__3; +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_54); +x_59 = lean_box(0); +x_60 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +lean_ctor_set(x_60, 2, x_59); +lean_ctor_set(x_60, 3, x_59); +lean_ctor_set(x_60, 4, x_59); +lean_ctor_set(x_60, 5, x_59); +lean_ctor_set(x_1, 0, x_56); +x_61 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; +x_62 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_2, x_60, x_1, x_61, x_59, x_8, x_9, x_10, x_11, x_55); lean_dec(x_9); lean_dec(x_8); -return x_60; +return x_62; } else { -uint8_t x_61; +uint8_t x_63; lean_free_object(x_1); lean_dec(x_11); lean_dec(x_10); @@ -3590,115 +3599,115 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_61 = !lean_is_exclusive(x_48); -if (x_61 == 0) +x_63 = !lean_is_exclusive(x_50); +if (x_63 == 0) { -return x_48; +return x_50; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_48, 0); -x_63 = lean_ctor_get(x_48, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_48); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; -} -} -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_1, 0); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_50, 0); +x_65 = lean_ctor_get(x_50, 1); lean_inc(x_65); -lean_dec(x_1); -x_66 = l_Lean_Elab_Tactic_expandLocation(x_65); -lean_dec(x_65); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_67 = l_Lean_Elab_Tactic_dsimpLocation_x27(x_44, x_66, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_43); -if (lean_obj_tag(x_67) == 0) +lean_inc(x_64); +lean_dec(x_50); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; +} +} +} +else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_1, 0); +lean_inc(x_67); +lean_dec(x_1); +x_68 = l_Lean_Elab_Tactic_expandLocation(x_67); lean_dec(x_67); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_70 = l_Lean_Elab_Tactic_mkSimpCallStx(x_3, x_68, x_8, x_9, x_10, x_11, x_69); -x_71 = lean_ctor_get(x_70, 0); +x_69 = l_Lean_Elab_Tactic_dsimpLocation_x27(x_45, x_46, x_68, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_44); +if (lean_obj_tag(x_69) == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_69, 1); 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_10, 5); +lean_dec(x_69); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_72 = l_Lean_Elab_Tactic_mkSimpCallStx(x_3, x_70, x_8, x_9, x_10, x_11, x_71); +x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); -x_74 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__3; -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_71); -x_76 = lean_box(0); -x_77 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -lean_ctor_set(x_77, 2, x_76); -lean_ctor_set(x_77, 3, x_76); -lean_ctor_set(x_77, 4, x_76); -lean_ctor_set(x_77, 5, x_76); -x_78 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_78, 0, x_73); -x_79 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; -x_80 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_2, x_77, x_78, x_79, x_76, x_8, x_9, x_10, x_11, x_72); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_ctor_get(x_10, 5); +lean_inc(x_75); +x_76 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__3; +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_73); +x_78 = lean_box(0); +x_79 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +lean_ctor_set(x_79, 2, x_78); +lean_ctor_set(x_79, 3, x_78); +lean_ctor_set(x_79, 4, x_78); +lean_ctor_set(x_79, 5, x_78); +x_80 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_80, 0, x_75); +x_81 = l_Lean_Elab_Tactic_evalSimpTrace___lambda__2___closed__4; +x_82 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_2, x_79, x_80, x_81, x_78, x_8, x_9, x_10, x_11, x_74); lean_dec(x_9); lean_dec(x_8); -return x_80; +return x_82; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_81 = lean_ctor_get(x_67, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_67, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_83 = x_67; +x_83 = lean_ctor_get(x_69, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_69, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_85 = x_69; } else { - lean_dec_ref(x_67); - x_83 = lean_box(0); + lean_dec_ref(x_69); + x_85 = lean_box(0); } -if (lean_is_scalar(x_83)) { - x_84 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(1, 2, 0); } else { - x_84 = x_83; + x_86 = x_85; } -lean_ctor_set(x_84, 0, x_81); -lean_ctor_set(x_84, 1, x_82); -return x_84; +lean_ctor_set(x_86, 0, x_83); +lean_ctor_set(x_86, 1, x_84); +return x_86; } } } } else { -uint8_t x_85; +uint8_t x_87; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3710,23 +3719,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_85 = !lean_is_exclusive(x_20); -if (x_85 == 0) +x_87 = !lean_is_exclusive(x_20); +if (x_87 == 0) { return x_20; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_20, 0); -x_87 = lean_ctor_get(x_20, 1); -lean_inc(x_87); -lean_inc(x_86); +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_20, 0); +x_89 = lean_ctor_get(x_20, 1); +lean_inc(x_89); +lean_inc(x_88); lean_dec(x_20); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; } } } @@ -4546,7 +4555,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDSimpTrace_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(79u); +x_1 = lean_unsigned_to_nat(80u); x_2 = lean_unsigned_to_nat(29u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4558,7 +4567,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDSimpTrace_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(90u); +x_1 = lean_unsigned_to_nat(92u); x_2 = lean_unsigned_to_nat(31u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4586,7 +4595,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDSimpTrace_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(79u); +x_1 = lean_unsigned_to_nat(80u); x_2 = lean_unsigned_to_nat(33u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4598,7 +4607,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalDSimpTrace_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(79u); +x_1 = lean_unsigned_to_nat(80u); x_2 = lean_unsigned_to_nat(47u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); diff --git a/stage0/stdlib/Lean/Environment.c b/stage0/stdlib/Lean/Environment.c index d2cb24b632..4694d3819c 100644 --- a/stage0/stdlib/Lean/Environment.c +++ b/stage0/stdlib/Lean/Environment.c @@ -17,8 +17,8 @@ LEAN_EXPORT uint32_t l_Lean_EnvironmentHeader_trustLevel___default; uint8_t lean_compacted_region_is_memory_mapped(size_t); LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_mkMapDeclarationExtension___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_ConstantInfo_instantiateTypeLevelParams(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__3; LEAN_EXPORT lean_object* l_Lean_throwAlreadyImported___rarg___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_6189____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Environment_find_x3f___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__outOfBounds___rarg(lean_object*); @@ -50,12 +50,9 @@ static lean_object* l_Lean_Environment_displayStats___closed__10; LEAN_EXPORT lean_object* l_Lean_registerPersistentEnvExtensionUnsafe(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries(lean_object*, lean_object*); lean_object* lean_uint32_to_nat(uint32_t); -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__1(lean_object*, lean_object*); static lean_object* l_Lean_mkEmptyEnvironment___lambda__1___closed__3; -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__8; LEAN_EXPORT lean_object* l_Lean_importModules___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___closed__1; -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__9; static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_instInhabitedModuleData; LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_modifyState___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -75,9 +72,9 @@ static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_ LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___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*); static lean_object* l_List_toString___at_Lean_Environment_displayStats___spec__1___closed__1; LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_mkTagDeclarationExtension___spec__1___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__4; uint8_t lean_usize_dec_le(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_EnvironmentHeader_regions___default; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MapDeclarationExtension_insert(lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___closed__8; @@ -88,10 +85,11 @@ LEAN_EXPORT lean_object* l_Lean_HashMap_numBuckets___at_Lean_Environment_display LEAN_EXPORT lean_object* l_Lean_mkMapDeclarationExtension___rarg___lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_setImportedEntries(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__2; +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__14; size_t lean_uint64_to_usize(uint64_t); LEAN_EXPORT lean_object* l_Lean_finalizeImport___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_contains___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__7___boxed(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__28; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_EnvironmentHeader_quotInit___default; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*); @@ -113,7 +111,8 @@ LEAN_EXPORT lean_object* l_Lean_AssocList_contains___at_Lean_finalizeImport___sp 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*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__10; +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__13; +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__4; lean_object* l_Array_qpartition___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHashSetImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_getModuleEntries(lean_object*, lean_object*, lean_object*); @@ -127,9 +126,8 @@ static lean_object* l_Lean_instInhabitedEnvExtensionInterface___closed__4; lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__9(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkExtNameMap(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__22; +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__26; LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtensionDescr_statsFn___default(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__14; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_mkModuleData___spec__1(lean_object*, size_t, size_t, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_importModulesCore(lean_object*, lean_object*, lean_object*); @@ -142,7 +140,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Environmen LEAN_EXPORT lean_object* l_Lean_readModuleData___boxed(lean_object*, lean_object*); static lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___closed__2; LEAN_EXPORT uint8_t l_Lean_Environment_isConstructor(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189____lambda__2___closed__1; +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__18; LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_modifyState(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_getState(lean_object*, lean_object*, lean_object*); @@ -155,33 +153,34 @@ static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_ LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_envExtensionsRef; LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__9; lean_object* lean_get_num_attributes(lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvironmentHeader_moduleNames___default; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_mkInitialExtStates(lean_object*); LEAN_EXPORT lean_object* lean_environment_find(lean_object*, lean_object*); static lean_object* l_Lean_TagDeclarationExtension_instInhabitedTagDeclarationExtension___closed__1; lean_object* l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__22; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_expand___at_Lean_mkExtNameMap___spec__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Environment_imports___boxed(lean_object*); static lean_object* l_List_toString___at_Lean_Environment_displayStats___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtensionDescr_toArrayFn___default___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_find_x3f___at_Lean_Environment_find_x3f___spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkModuleData___lambda__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getNumBuiltinAttributes___boxed(lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__1; static lean_object* l_List_toString___at_Lean_Environment_displayStats___spec__1___closed__3; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_mkModuleData___spec__3___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__23; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189_(lean_object*); +LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_2846_; LEAN_EXPORT lean_object* l_Lean_Environment_addDecl___boxed(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__2; -LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_3160_; LEAN_EXPORT lean_object* l_Lean_ImportStateM_run(lean_object*); LEAN_EXPORT lean_object* l_Lean_importModules___lambda__1(lean_object*, lean_object*, uint32_t, uint8_t, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__6; uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189____lambda__2(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_ConstantInfo_isUnsafe(lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMap_insert___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__6(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__2___spec__1(lean_object*, lean_object*); @@ -193,7 +192,6 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Environm LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_addExtraName(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_isNamespace___boxed(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__24; LEAN_EXPORT lean_object* l_Lean_mkTagDeclarationExtension___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Environment_find_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_MapDeclarationExtension_contains___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -202,8 +200,9 @@ LEAN_EXPORT lean_object* l_Lean_updateEnvAttributes___boxed(lean_object*, lean_o LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_importModules___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_mkModuleData___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__20; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_System_FilePath_pathExists(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__15; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___lambda__1(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_contains___at_Lean_Environment_addExtraName___spec__2___boxed(lean_object*, lean_object*); @@ -216,16 +215,14 @@ LEAN_EXPORT lean_object* l_Lean_EnvironmentHeader_imports___default; lean_object* lean_string_push(lean_object*, uint32_t); LEAN_EXPORT lean_object* l_Lean_Environment_registerNamespace(lean_object*, lean_object*); uint8_t l_Std_Format_isNil(lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189____lambda__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__3(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_modifyState___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_mkModuleData___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_mkModuleData___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_setState___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SMap_size___at_Lean_Environment_displayStats___spec__3(lean_object*); +LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_initFn____x40_Lean_Environment___hyg_1314_(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_finalizeImport___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_throwAlreadyImported___spec__1(lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__17; lean_object* l_Lean_initializing(lean_object*); extern lean_object* l_Lean_NameSet_instInhabitedNameSet; LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension(lean_object*, lean_object*, lean_object*); @@ -247,7 +244,6 @@ LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_mkEmptyEnvironment___spec__1 LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_contains___at_Lean_mkExtNameMap___spec__3___boxed(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__28; LEAN_EXPORT lean_object* l_Lean_ImportState_moduleNames___default; uint8_t l_Lean_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___lambda__1___closed__2; @@ -266,14 +262,15 @@ LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_setState___rarg___l LEAN_EXPORT lean_object* l_Lean_Environment_evalConstCheck(lean_object*); static lean_object* l_Lean_throwAlreadyImported___rarg___closed__5; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__8; LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_setState(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_mkModuleData___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__3; LEAN_EXPORT lean_object* l_Lean_instToStringImport(lean_object*); LEAN_EXPORT uint8_t l_Array_qsort_sort___at_Lean_mkMapDeclarationExtension___spec__1___rarg___lambda__1(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_registerPersistentEnvExtensionUnsafe___spec__1___rarg(lean_object*, lean_object*, size_t, size_t); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__2; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_ensureExtensionsArraySize_loop(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_finalizeImport___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg___lambda__1(lean_object*, lean_object*, lean_object*); @@ -282,6 +279,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___rarg(l static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_freeRegions___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__6; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_throwUnexpectedType___rarg(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1; lean_object* lean_nat_div(lean_object*, lean_object*); @@ -290,7 +288,6 @@ static lean_object* l_Lean_mkMapDeclarationExtension___rarg___closed__2; static lean_object* l_Lean_Environment_displayStats___closed__7; static lean_object* l_Lean_Environment_header___default___closed__1; static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg___closed__1; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_AssocList_contains___at_Lean_finalizeImport___spec__2(lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75____closed__24; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_finalizeImport___spec__8(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -321,8 +318,8 @@ LEAN_EXPORT lean_object* l_Lean_Kernel_isDefEq___boxed(lean_object*, lean_object LEAN_EXPORT lean_object* lean_display_stats(lean_object*, lean_object*); uint8_t l_Lean_NameMap_contains___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtension_modifyState___rarg___boxed(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__18; static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___closed__1; +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__10; static lean_object* l_Lean_Environment_displayStats___closed__8; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__1(lean_object*); static size_t l_Lean_PersistentHashMap_insertAux___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__3___closed__2; @@ -334,8 +331,8 @@ LEAN_EXPORT uint8_t l_Array_binSearchAux___at_Lean_MapDeclarationExtension_conta lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instMonadEnv___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtension___lambda__3___boxed(lean_object*); +LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_3185_; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_registerNamePrefixes(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__6; LEAN_EXPORT uint8_t l_Array_binSearchAux___at_Lean_TagDeclarationExtension_isTagged___spec__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Environment_displayStats___closed__4; LEAN_EXPORT lean_object* l_Lean_instInhabitedEnvExtensionInterface___lambda__2(lean_object*, lean_object*, lean_object*); @@ -352,6 +349,7 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_mkExtNameMap___spe lean_object* lean_list_to_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_MapDeclarationExtension_find_x3f___spec__2___rarg___boxed(lean_object*, lean_object*, 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_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__4(lean_object*); lean_object* l_EStateM_pure___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtensionState(lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75____closed__10; @@ -360,19 +358,19 @@ static lean_object* l_Lean_throwAlreadyImported___rarg___closed__7; static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75____closed__4; LEAN_EXPORT lean_object* l_Lean_instInhabitedEnvExtensionInterface___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Environment_displayStats___closed__9; +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__11; +LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_2443_; lean_object* l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBTree_toArray___at_Lean_mkModuleData___spec__7(lean_object*); LEAN_EXPORT lean_object* l_Lean_ImportState_moduleNameSet___default; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_setState(lean_object*); LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_setState___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__13; LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Environment_addExtraName___spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_environment_set_main_module(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_HashMap_insert___at_Lean_mkExtNameMap___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___rarg___closed__1; -LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_2418_; lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); LEAN_EXPORT uint32_t lean_environment_trust_level(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -381,12 +379,11 @@ LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___la uint8_t lean_name_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SMap_size___at_Lean_Environment_displayStats___spec__3___boxed(lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__15; LEAN_EXPORT lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__20; LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_MapDeclarationExtension_find_x3f___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_modifyState___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_instToStringNat(lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__25; LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_modifyState(lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75____closed__23; LEAN_EXPORT lean_object* l_Lean_ConstantInfo_instantiateValueLevelParams_x21(lean_object*, lean_object*); @@ -409,7 +406,6 @@ static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_ LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_isNamespaceName___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_ConstantInfo_instantiateValueLevelParams_x21___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75____closed__14; -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__12; LEAN_EXPORT lean_object* l_panic___at_Lean_MapDeclarationExtension_insert___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_instToStringImport___closed__2; static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75____closed__5; @@ -419,7 +415,6 @@ LEAN_EXPORT lean_object* l_Lean_Environment_getModuleIdx_x3f___lambda__1___boxed LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_mkMapDeclarationExtension___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_instantiateLevelParams(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtension___lambda__4(lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__5; 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*); @@ -429,8 +424,11 @@ LEAN_EXPORT lean_object* l_Lean_instInhabitedImport; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_EnvExtensionInterfaceUnsafe_mkInitialExtStates___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_ensureExtensionsArraySize(lean_object*, lean_object*); static lean_object* l_Lean_mkEmptyEnvironment___closed__2; +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__27; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__3(lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__5; extern lean_object* l_Std_Format_defWidth; +LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_3363_; LEAN_EXPORT lean_object* l_Lean_AssocList_replace___at_Lean_mkExtNameMap___spec__7(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Environment_hasUnsafe(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_getEntries___rarg(lean_object*, lean_object*, lean_object*); @@ -441,6 +439,7 @@ static lean_object* l_Lean_Environment_displayStats___closed__6; LEAN_EXPORT lean_object* l_Lean_registerEnvExtension___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75____closed__19; LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at_Lean_Environment_getModuleIdxFor_x3f___spec__2(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__1; lean_object* lean_usize_to_nat(size_t); size_t lean_hashmap_mk_idx(lean_object*, uint64_t); static lean_object* l_Lean_Environment_evalConstCheck___rarg___closed__1; @@ -457,6 +456,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModules___spec LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Environment_find_x3f___spec__3(lean_object*, size_t, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75____closed__2; LEAN_EXPORT lean_object* l_Lean_throwAlreadyImported___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_6214____spec__2(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_mkEmptyEnvironment___spec__2(lean_object*); static lean_object* l_Lean_instInhabitedEnvExtensionInterface___closed__1; LEAN_EXPORT lean_object* l_Lean_HashMapImp_moveEntries___at_Lean_finalizeImport___spec__4(lean_object*, lean_object*, lean_object*); @@ -470,9 +470,9 @@ LEAN_EXPORT lean_object* l_List_toString___at_Lean_Environment_displayStats___sp static lean_object* l_Lean_Environment_registerNamespace___closed__1; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mkTagDeclarationExtension___closed__2; -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__19; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_mkModuleData___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionStateSpec___closed__1; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_environment_add(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Environment_getModuleIdx_x3f___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkModuleData___lambda__2(lean_object*, lean_object*, lean_object*); @@ -480,7 +480,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_EnvExtensionInterf lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_2376_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_hasUnsafe___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_getEntries(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_finalizeImport___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -495,6 +494,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_setState___rarg___lambda_ static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75____closed__18; LEAN_EXPORT lean_object* l_Lean_Environment_getModuleIdx_x3f___boxed(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_importModules___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__3(lean_object*, size_t, size_t, lean_object*); extern lean_object* l_Lean_NameSet_empty; static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_modifyState___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_mkMapDeclarationExtension___rarg___lambda__2(lean_object*); @@ -503,6 +503,7 @@ LEAN_EXPORT lean_object* l_Lean_SMap_stageSizes___at_Lean_Environment_displaySta static lean_object* l_Lean_MapDeclarationExtension_instInhabitedMapDeclarationExtension___closed__1; lean_object* lean_string_length(lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___closed__6; +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__3; static lean_object* l_Lean_instReprImport___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___rarg___lambda__1(lean_object*, lean_object*, lean_object*); @@ -513,19 +514,19 @@ LEAN_EXPORT lean_object* l_Lean_instReprImport; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_finalizePersistentExtensions_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_finalizeImport___spec__9(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__19; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_getState(lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_environment_main_module(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__21; LEAN_EXPORT lean_object* l_Lean_EnvExtension_setState___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_replace___at_Lean_finalizeImport___spec__6(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Environment_displayStats___closed__1; static lean_object* l_Lean_instInhabitedPersistentEnvExtension___closed__3; LEAN_EXPORT lean_object* l_Lean_EnvExtension_getState(lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__4(size_t, 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_initFn____x40_Lean_Environment___hyg_6214____closed__4; LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtension___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_ensureExtensionsArraySize_loop___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtensionDescr_statsFn___default___boxed(lean_object*, lean_object*); @@ -548,6 +549,7 @@ LEAN_EXPORT lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___la LEAN_EXPORT uint8_t l_Lean_SMap_contains___at_Lean_Environment_addExtraName___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ConstantInfo_instantiateTypeLevelParams___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_TagDeclarationExtension_tag(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6214_(lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___closed__5; uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75____closed__8; @@ -556,7 +558,6 @@ uint64_t l_Lean_Name_hash___override(lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedEnvExtensionInterface___lambda__1(lean_object*, lean_object*); static lean_object* l_Lean_mkTagDeclarationExtension___closed__1; LEAN_EXPORT lean_object* l_Lean_RBNode_find___at_Lean_MapDeclarationExtension_find_x3f___spec__1___rarg___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__4(lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_EnvExtensionInterfaceUnsafe_setState___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtension___lambda__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -566,16 +567,19 @@ LEAN_EXPORT lean_object* l_Lean_MapDeclarationExtension_contains___rarg___boxed( static lean_object* l___private_Lean_Environment_0__Lean_finalizePersistentExtensions_loop___closed__1; static lean_object* l_Lean_throwAlreadyImported___rarg___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__4___lambda__1(lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__21; lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_throwAlreadyImported___rarg___closed__6; LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtension___lambda__2(lean_object*, lean_object*); uint32_t lean_uint32_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_mkModuleData___spec__2(lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__12; LEAN_EXPORT lean_object* l_Lean_instInhabitedEnvExtensionInterface; static lean_object* l_Lean_instInhabitedPersistentEnvExtension___closed__5; lean_object* lean_nat_mul(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Kernel_isDefEqGuarded(lean_object*, lean_object*, lean_object*, lean_object*); static uint32_t l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___lambda__1___closed__1; +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__2; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__1___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkMapDeclarationExtension___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); @@ -595,12 +599,10 @@ LEAN_EXPORT lean_object* l_panic___at_Lean_EnvExtensionInterfaceUnsafe_modifySta lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_CompactedRegion_free___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at_Lean_Environment_getModuleIdxFor_x3f___spec__2___boxed(lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__4; LEAN_EXPORT lean_object* l_Lean_Kernel_whnf___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_getState___rarg___boxed(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; -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__5; LEAN_EXPORT lean_object* l_Lean_persistentEnvExtensionsRef; lean_object* lean_io_initializing(lean_object*); lean_object* l_List_reverse___rarg(lean_object*); @@ -613,19 +615,19 @@ size_t lean_usize_sub(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtensionState___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedEnvExtensionInterface___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkHashMapImp___rarg(lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__7; +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__16; LEAN_EXPORT lean_object* l_Lean_namespacesExt; LEAN_EXPORT lean_object* l_Lean_EnvExtension_modifyState(lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_mkExtNameMap___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedPersistentEnvExtension___closed__1; LEAN_EXPORT lean_object* l_Lean_TagDeclarationExtension_isTagged___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__17; uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); static size_t l_Lean_PersistentHashMap_insertAux___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__3___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75____boxed(lean_object*, lean_object*); static lean_object* l_Lean_mkMapDeclarationExtension___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_importModulesCore___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ModuleIdx_toNat(lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__16; LEAN_EXPORT lean_object* l_Lean_HashMapImp_moveEntries___at_Lean_mkExtNameMap___spec__5(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__2(lean_object*); size_t lean_usize_add(size_t, size_t); @@ -640,8 +642,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_isQuot LEAN_EXPORT lean_object* l_Lean_instInhabitedEnvExtensionInterface___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg___closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__3; -LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_initFn____x40_Lean_Environment___hyg_1289_(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*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__1; @@ -658,23 +658,25 @@ LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_modifyState___rarg( LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lean_mkModuleData___spec__8(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___auto____x40_Lean_Environment___hyg_2418____closed__27; lean_object* l_List_redLength___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at_Lean_Environment_find_x3f___spec__6(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__5; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__3___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__23; static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_75____closed__22; LEAN_EXPORT uint8_t lean_environment_quot_init(lean_object*); static lean_object* l_Lean_throwAlreadyImported___rarg___closed__4; LEAN_EXPORT lean_object* l_Lean_HashMapImp_expand___at_Lean_finalizeImport___spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_mkExtNameMap___spec__1(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__1; LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at_Lean_finalizeImport___spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SMap_stageSizes___at_Lean_Environment_displayStats___spec__4(lean_object*); static lean_object* l_Lean_mkModuleData___closed__2; LEAN_EXPORT lean_object* l_Lean_Environment_getNamespaceSet___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_find_x3f___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__2(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__24; static lean_object* l_Lean_mkEmptyEnvironment___lambda__1___closed__1; lean_object* lean_string_append(lean_object*, lean_object*); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__1; LEAN_EXPORT lean_object* l_Lean_instMonadEnv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_evalConstCheck___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__2(lean_object*, lean_object*, lean_object*); @@ -686,20 +688,19 @@ static lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___closed_ 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_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__26; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_2401_(lean_object*); LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_mkExtNameMap___spec__1___boxed(lean_object*); static lean_object* l_Lean_Environment_displayStats___closed__2; LEAN_EXPORT lean_object* l_Lean_saveModuleData___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___auto____x40_Lean_Environment___hyg_2418____closed__11; 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*); uint8_t lean_usize_dec_lt(size_t, size_t); 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; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__2(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkMapDeclarationExtension___boxed(lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___rarg___closed__2; +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__25; lean_object* lean_compacted_region_free(size_t, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__5___boxed(lean_object*, lean_object*); @@ -714,9 +715,8 @@ LEAN_EXPORT lean_object* lean_import_modules(lean_object*, lean_object*, uint32_ LEAN_EXPORT lean_object* l_Lean_HashMapImp_moveEntries___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__9(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt(lean_object*); LEAN_EXPORT lean_object* l_Lean_importModules___boxed__const__1; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__1(lean_object*, lean_object*); lean_object* lean_kernel_whnf(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_3338_; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mkEmptyEnvironment___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -728,7 +728,6 @@ LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___la LEAN_EXPORT lean_object* l_Lean_mkMapDeclarationExtension(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_setState___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MapDeclarationExtension_contains(lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__5(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvironmentHeader_mainModule___default; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* lean_environment_free_regions(lean_object*, lean_object*); @@ -740,17 +739,17 @@ static lean_object* l_List_foldl___at_Lean_Environment_displayStats___spec__2___ static lean_object* l_Lean_instInhabitedPersistentEnvExtension___closed__4; LEAN_EXPORT lean_object* l_Lean_SMap_numBuckets___at_Lean_Environment_displayStats___spec__5___boxed(lean_object*); lean_object* l_Nat_repr(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__5(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Environment_addExtraName___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtension_setState(lean_object*); -LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_2821_; 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); +static lean_object* l___auto____x40_Lean_Environment___hyg_2443____closed__7; LEAN_EXPORT lean_object* l_Lean_Environment_header___default; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__8___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* lean_save_module_data(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkEmptyEnvironment___lambda__1___boxed(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___auto____x40_Lean_Environment___hyg_2418____closed__6; lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_finalizeImport___spec__11(lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Data_HashMap_0__Lean_numBucketsForCapacity(lean_object*); @@ -760,6 +759,7 @@ static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___closed__3; LEAN_EXPORT lean_object* l_Lean_ModuleIdx_toNat___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_finalizeImport___spec__8___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedModuleData___closed__2; +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwAlreadyImported(lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); static lean_object* _init_l_Lean_EnvExtensionStateSpec___closed__1() { @@ -3715,7 +3715,7 @@ x_2 = l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___closed__2; return x_2; } } -LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_initFn____x40_Lean_Environment___hyg_1289_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_initFn____x40_Lean_Environment___hyg_1314_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; @@ -3956,7 +3956,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_EnvExtensionInterfaceUnsafe_setState___rarg___closed__1; x_2 = l_Lean_EnvExtensionInterfaceUnsafe_setState___rarg___closed__2; -x_3 = lean_unsigned_to_nat(316u); +x_3 = lean_unsigned_to_nat(317u); x_4 = lean_unsigned_to_nat(4u); x_5 = l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_invalidExtMsg; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4021,7 +4021,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_EnvExtensionInterfaceUnsafe_setState___rarg___closed__1; x_2 = l_Lean_EnvExtensionInterfaceUnsafe_modifyState___rarg___closed__1; -x_3 = lean_unsigned_to_nat(326u); +x_3 = lean_unsigned_to_nat(327u); x_4 = lean_unsigned_to_nat(4u); x_5 = l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_invalidExtMsg; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4082,7 +4082,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_EnvExtensionInterfaceUnsafe_setState___rarg___closed__1; x_2 = l_Lean_EnvExtensionInterfaceUnsafe_getState___rarg___closed__1; -x_3 = lean_unsigned_to_nat(333u); +x_3 = lean_unsigned_to_nat(334u); x_4 = lean_unsigned_to_nat(4u); x_5 = l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_invalidExtMsg; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -5536,7 +5536,7 @@ lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_2376_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_2401_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; @@ -5562,7 +5562,7 @@ return x_7; } } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__1() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__1() { _start: { lean_object* x_1; @@ -5570,7 +5570,7 @@ x_1 = lean_mk_string_from_bytes("Lean", 4); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__2() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__2() { _start: { lean_object* x_1; @@ -5578,7 +5578,7 @@ x_1 = lean_mk_string_from_bytes("Parser", 6); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__3() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__3() { _start: { lean_object* x_1; @@ -5586,7 +5586,7 @@ x_1 = lean_mk_string_from_bytes("Tactic", 6); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__4() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__4() { _start: { lean_object* x_1; @@ -5594,19 +5594,19 @@ x_1 = lean_mk_string_from_bytes("tacticSeq", 9); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__5() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____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_Lean_Environment___hyg_2418____closed__1; -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__2; -x_3 = l___auto____x40_Lean_Environment___hyg_2418____closed__3; -x_4 = l___auto____x40_Lean_Environment___hyg_2418____closed__4; +x_1 = l___auto____x40_Lean_Environment___hyg_2443____closed__1; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__2; +x_3 = l___auto____x40_Lean_Environment___hyg_2443____closed__3; +x_4 = l___auto____x40_Lean_Environment___hyg_2443____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_Lean_Environment___hyg_2418____closed__6() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__6() { _start: { lean_object* x_1; @@ -5614,19 +5614,19 @@ x_1 = lean_mk_string_from_bytes("tacticSeq1Indented", 18); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__7() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____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___auto____x40_Lean_Environment___hyg_2418____closed__1; -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__2; -x_3 = l___auto____x40_Lean_Environment___hyg_2418____closed__3; -x_4 = l___auto____x40_Lean_Environment___hyg_2418____closed__6; +x_1 = l___auto____x40_Lean_Environment___hyg_2443____closed__1; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__2; +x_3 = l___auto____x40_Lean_Environment___hyg_2443____closed__3; +x_4 = l___auto____x40_Lean_Environment___hyg_2443____closed__6; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__8() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__8() { _start: { lean_object* x_1; @@ -5634,17 +5634,17 @@ x_1 = lean_mk_string_from_bytes("null", 4); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__9() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__8; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__8; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__10() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__10() { _start: { lean_object* x_1; @@ -5652,41 +5652,41 @@ x_1 = lean_mk_string_from_bytes("exact", 5); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__11() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____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___auto____x40_Lean_Environment___hyg_2418____closed__1; -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__2; -x_3 = l___auto____x40_Lean_Environment___hyg_2418____closed__3; -x_4 = l___auto____x40_Lean_Environment___hyg_2418____closed__10; +x_1 = l___auto____x40_Lean_Environment___hyg_2443____closed__1; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__2; +x_3 = l___auto____x40_Lean_Environment___hyg_2443____closed__3; +x_4 = l___auto____x40_Lean_Environment___hyg_2443____closed__10; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__12() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__10; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__10; 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_Lean_Environment___hyg_2418____closed__13() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_instInhabitedModuleData___closed__1; -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__12; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__12; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__14() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__14() { _start: { lean_object* x_1; @@ -5694,7 +5694,7 @@ x_1 = lean_mk_string_from_bytes("Term", 4); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__15() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__15() { _start: { lean_object* x_1; @@ -5702,19 +5702,19 @@ x_1 = lean_mk_string_from_bytes("declName", 8); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__16() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____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_Lean_Environment___hyg_2418____closed__1; -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__2; -x_3 = l___auto____x40_Lean_Environment___hyg_2418____closed__14; -x_4 = l___auto____x40_Lean_Environment___hyg_2418____closed__15; +x_1 = l___auto____x40_Lean_Environment___hyg_2443____closed__1; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__2; +x_3 = l___auto____x40_Lean_Environment___hyg_2443____closed__14; +x_4 = l___auto____x40_Lean_Environment___hyg_2443____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_Lean_Environment___hyg_2418____closed__17() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__17() { _start: { lean_object* x_1; @@ -5722,35 +5722,35 @@ x_1 = lean_mk_string_from_bytes("decl_name%", 10); return x_1; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__18() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(2); -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__17; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__17; 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_Lean_Environment___hyg_2418____closed__19() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_instInhabitedModuleData___closed__1; -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__18; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__18; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__20() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__20() { _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_Lean_Environment___hyg_2418____closed__16; -x_3 = l___auto____x40_Lean_Environment___hyg_2418____closed__19; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__16; +x_3 = l___auto____x40_Lean_Environment___hyg_2443____closed__19; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5758,23 +5758,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__21() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Environment___hyg_2418____closed__13; -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__20; +x_1 = l___auto____x40_Lean_Environment___hyg_2443____closed__13; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__20; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__22() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__22() { _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_Lean_Environment___hyg_2418____closed__11; -x_3 = l___auto____x40_Lean_Environment___hyg_2418____closed__21; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__11; +x_3 = l___auto____x40_Lean_Environment___hyg_2443____closed__21; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5782,23 +5782,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__23() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_instInhabitedModuleData___closed__1; -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__22; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__22; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__24() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__24() { _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_Lean_Environment___hyg_2418____closed__9; -x_3 = l___auto____x40_Lean_Environment___hyg_2418____closed__23; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__9; +x_3 = l___auto____x40_Lean_Environment___hyg_2443____closed__23; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5806,23 +5806,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__25() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_instInhabitedModuleData___closed__1; -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__24; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__24; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__26() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__26() { _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_Lean_Environment___hyg_2418____closed__7; -x_3 = l___auto____x40_Lean_Environment___hyg_2418____closed__25; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__7; +x_3 = l___auto____x40_Lean_Environment___hyg_2443____closed__25; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5830,23 +5830,23 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__27() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_instInhabitedModuleData___closed__1; -x_2 = l___auto____x40_Lean_Environment___hyg_2418____closed__26; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__26; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418____closed__28() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443____closed__28() { _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_Lean_Environment___hyg_2418____closed__5; -x_3 = l___auto____x40_Lean_Environment___hyg_2418____closed__27; +x_2 = l___auto____x40_Lean_Environment___hyg_2443____closed__5; +x_3 = l___auto____x40_Lean_Environment___hyg_2443____closed__27; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5854,11 +5854,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2418_() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2443_() { _start: { lean_object* x_1; -x_1 = l___auto____x40_Lean_Environment___hyg_2418____closed__28; +x_1 = l___auto____x40_Lean_Environment___hyg_2443____closed__28; return x_1; } } @@ -6316,11 +6316,11 @@ x_3 = lean_alloc_closure((void*)(l_Lean_mkStateFromImportedEntries___rarg), 3, 0 return x_3; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2821_() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_2846_() { _start: { lean_object* x_1; -x_1 = l___auto____x40_Lean_Environment___hyg_2418____closed__28; +x_1 = l___auto____x40_Lean_Environment___hyg_2443____closed__28; return x_1; } } @@ -6728,11 +6728,11 @@ lean_dec(x_1); return x_4; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_3160_() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_3185_() { _start: { lean_object* x_1; -x_1 = l___auto____x40_Lean_Environment___hyg_2418____closed__28; +x_1 = l___auto____x40_Lean_Environment___hyg_2443____closed__28; return x_1; } } @@ -6944,7 +6944,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_EnvExtensionInterfaceUnsafe_setState___rarg___closed__1; x_2 = l_Lean_TagDeclarationExtension_tag___closed__4; -x_3 = lean_unsigned_to_nat(581u); +x_3 = lean_unsigned_to_nat(582u); x_4 = lean_unsigned_to_nat(2u); x_5 = l_Lean_TagDeclarationExtension_tag___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -7143,11 +7143,11 @@ x_5 = lean_box(x_4); return x_5; } } -static lean_object* _init_l___auto____x40_Lean_Environment___hyg_3338_() { +static lean_object* _init_l___auto____x40_Lean_Environment___hyg_3363_() { _start: { lean_object* x_1; -x_1 = l___auto____x40_Lean_Environment___hyg_2418____closed__28; +x_1 = l___auto____x40_Lean_Environment___hyg_2443____closed__28; return x_1; } } @@ -7401,7 +7401,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_EnvExtensionInterfaceUnsafe_setState___rarg___closed__1; x_2 = l_Lean_MapDeclarationExtension_insert___rarg___closed__3; -x_3 = lean_unsigned_to_nat(611u); +x_3 = lean_unsigned_to_nat(612u); x_4 = lean_unsigned_to_nat(2u); x_5 = l_Lean_MapDeclarationExtension_insert___rarg___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -13549,7 +13549,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_6189____spec__2(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_6214____spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -13572,7 +13572,7 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__3(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_6214____spec__3(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -13610,7 +13610,7 @@ size_t x_15; size_t x_16; lean_object* x_17; x_15 = 0; x_16 = lean_usize_of_nat(x_7); lean_dec(x_7); -x_17 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__2(x_6, x_15, x_16, x_4); +x_17 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__2(x_6, x_15, x_16, x_4); lean_dec(x_6); x_2 = x_11; x_4 = x_17; @@ -13624,7 +13624,7 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -13653,14 +13653,14 @@ size_t x_7; size_t x_8; lean_object* x_9; x_7 = 0; x_8 = lean_usize_of_nat(x_3); lean_dec(x_3); -x_9 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__3(x_2, x_7, x_8, x_1); +x_9 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__3(x_2, x_7, x_8, x_1); lean_dec(x_2); return x_9; } } } } -LEAN_EXPORT lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__4(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__4(lean_object* x_1) { _start: { uint8_t x_2; @@ -13698,7 +13698,7 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__5(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_6214____spec__5(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -13724,7 +13724,7 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189____lambda__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -13733,7 +13733,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_6189____lambda__2___closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -13742,7 +13742,7 @@ x_2 = l_Lean_mkHashMapImp___rarg(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189____lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__2(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; @@ -13753,15 +13753,15 @@ if (x_4 == 0) { 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_dec(x_2); -x_5 = l_Lean_initFn____x40_Lean_Environment___hyg_6189____lambda__2___closed__1; -x_6 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__1(x_5, x_1); +x_5 = l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__2___closed__1; +x_6 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__1(x_5, x_1); x_7 = 1; x_8 = l_Lean_mkEmptyEnvironment___lambda__1___closed__3; x_9 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_9, 0, x_6); lean_ctor_set(x_9, 1, x_8); lean_ctor_set_uint8(x_9, sizeof(void*)*2, x_7); -x_10 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__4(x_9); +x_10 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__4(x_9); return x_10; } else @@ -13772,15 +13772,15 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_2); -x_12 = l_Lean_initFn____x40_Lean_Environment___hyg_6189____lambda__2___closed__1; -x_13 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__1(x_12, x_1); +x_12 = l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__2___closed__1; +x_13 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__1(x_12, x_1); x_14 = 1; x_15 = l_Lean_mkEmptyEnvironment___lambda__1___closed__3; x_16 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_16, 0, x_13); lean_ctor_set(x_16, 1, x_15); lean_ctor_set_uint8(x_16, sizeof(void*)*2, x_14); -x_17 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__4(x_16); +x_17 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__4(x_16); return x_17; } else @@ -13789,23 +13789,23 @@ size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_2 x_18 = 0; x_19 = lean_usize_of_nat(x_2); lean_dec(x_2); -x_20 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__5(x_1, x_18, x_19, x_3); +x_20 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__5(x_1, x_18, x_19, x_3); x_21 = l_Lean_mkHashMapImp___rarg(x_20); lean_dec(x_20); -x_22 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__1(x_21, x_1); +x_22 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__1(x_21, x_1); x_23 = 1; x_24 = l_Lean_mkEmptyEnvironment___lambda__1___closed__3; x_25 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_25, 0, x_22); lean_ctor_set(x_25, 1, x_24); lean_ctor_set_uint8(x_25, sizeof(void*)*2, x_23); -x_26 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__4(x_25); +x_26 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__4(x_25); return x_26; } } } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__1() { _start: { lean_object* x_1; @@ -13813,17 +13813,17 @@ x_1 = lean_mk_string_from_bytes("namespacesExt", 13); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___auto____x40_Lean_Environment___hyg_2418____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__1; +x_1 = l___auto____x40_Lean_Environment___hyg_2443____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6214____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_6189____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__3() { _start: { lean_object* x_1; @@ -13832,30 +13832,30 @@ lean_closure_set(x_1, 0, lean_box(0)); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__4() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__4() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Environment___hyg_6189____lambda__1), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__1), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__5() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__5() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Environment___hyg_6189____lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__6() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____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_6189____closed__2; -x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__4; -x_3 = l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__5; -x_4 = l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__3; +x_1 = l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__4; +x_3 = l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__5; +x_4 = l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__3; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -13864,16 +13864,16 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6189_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6214_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__6; +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6214____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_6189____spec__2___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_6214____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; size_t x_6; lean_object* x_7; @@ -13881,12 +13881,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_6189____spec__2(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__2(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_6189____spec__3___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_6214____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; size_t x_6; lean_object* x_7; @@ -13894,12 +13894,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_6189____spec__3(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__3(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_6189____spec__5___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_6214____spec__5___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; @@ -13907,7 +13907,7 @@ x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -x_7 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6189____spec__5(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6214____spec__5(x_1, x_5, x_6, x_4); lean_dec(x_1); return x_7; } @@ -15835,7 +15835,7 @@ l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___closed__1 = _init_l_Lean_E lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___closed__1); l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___closed__2 = _init_l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___closed__2(); lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___closed__2); -if (builtin) {res = l_Lean_EnvExtensionInterfaceUnsafe_initFn____x40_Lean_Environment___hyg_1289_(lean_io_mk_world()); +if (builtin) {res = l_Lean_EnvExtensionInterfaceUnsafe_initFn____x40_Lean_Environment___hyg_1314_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_envExtensionsRef = lean_io_result_get_value(res); lean_mark_persistent(l___private_Lean_Environment_0__Lean_EnvExtensionInterfaceUnsafe_envExtensionsRef); @@ -15902,69 +15902,69 @@ l_Lean_instInhabitedPersistentEnvExtension___closed__4 = _init_l_Lean_instInhabi lean_mark_persistent(l_Lean_instInhabitedPersistentEnvExtension___closed__4); l_Lean_instInhabitedPersistentEnvExtension___closed__5 = _init_l_Lean_instInhabitedPersistentEnvExtension___closed__5(); lean_mark_persistent(l_Lean_instInhabitedPersistentEnvExtension___closed__5); -if (builtin) {res = l_Lean_initFn____x40_Lean_Environment___hyg_2376_(lean_io_mk_world()); +if (builtin) {res = l_Lean_initFn____x40_Lean_Environment___hyg_2401_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_persistentEnvExtensionsRef = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_persistentEnvExtensionsRef); lean_dec_ref(res); -}l___auto____x40_Lean_Environment___hyg_2418____closed__1 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__1(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__1); -l___auto____x40_Lean_Environment___hyg_2418____closed__2 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__2(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__2); -l___auto____x40_Lean_Environment___hyg_2418____closed__3 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__3(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__3); -l___auto____x40_Lean_Environment___hyg_2418____closed__4 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__4(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__4); -l___auto____x40_Lean_Environment___hyg_2418____closed__5 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__5(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__5); -l___auto____x40_Lean_Environment___hyg_2418____closed__6 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__6(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__6); -l___auto____x40_Lean_Environment___hyg_2418____closed__7 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__7(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__7); -l___auto____x40_Lean_Environment___hyg_2418____closed__8 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__8(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__8); -l___auto____x40_Lean_Environment___hyg_2418____closed__9 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__9(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__9); -l___auto____x40_Lean_Environment___hyg_2418____closed__10 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__10(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__10); -l___auto____x40_Lean_Environment___hyg_2418____closed__11 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__11(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__11); -l___auto____x40_Lean_Environment___hyg_2418____closed__12 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__12(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__12); -l___auto____x40_Lean_Environment___hyg_2418____closed__13 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__13(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__13); -l___auto____x40_Lean_Environment___hyg_2418____closed__14 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__14(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__14); -l___auto____x40_Lean_Environment___hyg_2418____closed__15 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__15(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__15); -l___auto____x40_Lean_Environment___hyg_2418____closed__16 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__16(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__16); -l___auto____x40_Lean_Environment___hyg_2418____closed__17 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__17(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__17); -l___auto____x40_Lean_Environment___hyg_2418____closed__18 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__18(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__18); -l___auto____x40_Lean_Environment___hyg_2418____closed__19 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__19(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__19); -l___auto____x40_Lean_Environment___hyg_2418____closed__20 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__20(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__20); -l___auto____x40_Lean_Environment___hyg_2418____closed__21 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__21(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__21); -l___auto____x40_Lean_Environment___hyg_2418____closed__22 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__22(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__22); -l___auto____x40_Lean_Environment___hyg_2418____closed__23 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__23(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__23); -l___auto____x40_Lean_Environment___hyg_2418____closed__24 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__24(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__24); -l___auto____x40_Lean_Environment___hyg_2418____closed__25 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__25(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__25); -l___auto____x40_Lean_Environment___hyg_2418____closed__26 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__26(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__26); -l___auto____x40_Lean_Environment___hyg_2418____closed__27 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__27(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__27); -l___auto____x40_Lean_Environment___hyg_2418____closed__28 = _init_l___auto____x40_Lean_Environment___hyg_2418____closed__28(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418____closed__28); -l___auto____x40_Lean_Environment___hyg_2418_ = _init_l___auto____x40_Lean_Environment___hyg_2418_(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2418_); +}l___auto____x40_Lean_Environment___hyg_2443____closed__1 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__1(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__1); +l___auto____x40_Lean_Environment___hyg_2443____closed__2 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__2(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__2); +l___auto____x40_Lean_Environment___hyg_2443____closed__3 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__3(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__3); +l___auto____x40_Lean_Environment___hyg_2443____closed__4 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__4(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__4); +l___auto____x40_Lean_Environment___hyg_2443____closed__5 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__5(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__5); +l___auto____x40_Lean_Environment___hyg_2443____closed__6 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__6(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__6); +l___auto____x40_Lean_Environment___hyg_2443____closed__7 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__7(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__7); +l___auto____x40_Lean_Environment___hyg_2443____closed__8 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__8(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__8); +l___auto____x40_Lean_Environment___hyg_2443____closed__9 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__9(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__9); +l___auto____x40_Lean_Environment___hyg_2443____closed__10 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__10(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__10); +l___auto____x40_Lean_Environment___hyg_2443____closed__11 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__11(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__11); +l___auto____x40_Lean_Environment___hyg_2443____closed__12 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__12(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__12); +l___auto____x40_Lean_Environment___hyg_2443____closed__13 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__13(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__13); +l___auto____x40_Lean_Environment___hyg_2443____closed__14 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__14(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__14); +l___auto____x40_Lean_Environment___hyg_2443____closed__15 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__15(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__15); +l___auto____x40_Lean_Environment___hyg_2443____closed__16 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__16(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__16); +l___auto____x40_Lean_Environment___hyg_2443____closed__17 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__17(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__17); +l___auto____x40_Lean_Environment___hyg_2443____closed__18 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__18(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__18); +l___auto____x40_Lean_Environment___hyg_2443____closed__19 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__19(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__19); +l___auto____x40_Lean_Environment___hyg_2443____closed__20 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__20(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__20); +l___auto____x40_Lean_Environment___hyg_2443____closed__21 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__21(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__21); +l___auto____x40_Lean_Environment___hyg_2443____closed__22 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__22(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__22); +l___auto____x40_Lean_Environment___hyg_2443____closed__23 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__23(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__23); +l___auto____x40_Lean_Environment___hyg_2443____closed__24 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__24(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__24); +l___auto____x40_Lean_Environment___hyg_2443____closed__25 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__25(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__25); +l___auto____x40_Lean_Environment___hyg_2443____closed__26 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__26(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__26); +l___auto____x40_Lean_Environment___hyg_2443____closed__27 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__27(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__27); +l___auto____x40_Lean_Environment___hyg_2443____closed__28 = _init_l___auto____x40_Lean_Environment___hyg_2443____closed__28(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443____closed__28); +l___auto____x40_Lean_Environment___hyg_2443_ = _init_l___auto____x40_Lean_Environment___hyg_2443_(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2443_); l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2___closed__1 = _init_l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2___closed__1(); lean_mark_persistent(l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2___closed__1); l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2___closed__2 = _init_l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2___closed__2(); @@ -15973,16 +15973,16 @@ l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1 = _init_l_Lean_re lean_mark_persistent(l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1); l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__2 = _init_l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__2(); lean_mark_persistent(l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__2); -l___auto____x40_Lean_Environment___hyg_2821_ = _init_l___auto____x40_Lean_Environment___hyg_2821_(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2821_); +l___auto____x40_Lean_Environment___hyg_2846_ = _init_l___auto____x40_Lean_Environment___hyg_2846_(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_2846_); l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___closed__1 = _init_l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___closed__1(); lean_mark_persistent(l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___closed__1); l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___closed__2 = _init_l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___closed__2(); lean_mark_persistent(l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___closed__2); l_Lean_registerSimplePersistentEnvExtension___rarg___closed__1 = _init_l_Lean_registerSimplePersistentEnvExtension___rarg___closed__1(); lean_mark_persistent(l_Lean_registerSimplePersistentEnvExtension___rarg___closed__1); -l___auto____x40_Lean_Environment___hyg_3160_ = _init_l___auto____x40_Lean_Environment___hyg_3160_(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_3160_); +l___auto____x40_Lean_Environment___hyg_3185_ = _init_l___auto____x40_Lean_Environment___hyg_3185_(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_3185_); l_Array_qsort_sort___at_Lean_mkTagDeclarationExtension___spec__1___closed__1 = _init_l_Array_qsort_sort___at_Lean_mkTagDeclarationExtension___spec__1___closed__1(); lean_mark_persistent(l_Array_qsort_sort___at_Lean_mkTagDeclarationExtension___spec__1___closed__1); l_Lean_mkTagDeclarationExtension___closed__1 = _init_l_Lean_mkTagDeclarationExtension___closed__1(); @@ -16007,8 +16007,8 @@ l_Lean_TagDeclarationExtension_tag___closed__5 = _init_l_Lean_TagDeclarationExte lean_mark_persistent(l_Lean_TagDeclarationExtension_tag___closed__5); l_Lean_TagDeclarationExtension_isTagged___closed__1 = _init_l_Lean_TagDeclarationExtension_isTagged___closed__1(); lean_mark_persistent(l_Lean_TagDeclarationExtension_isTagged___closed__1); -l___auto____x40_Lean_Environment___hyg_3338_ = _init_l___auto____x40_Lean_Environment___hyg_3338_(); -lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_3338_); +l___auto____x40_Lean_Environment___hyg_3363_ = _init_l___auto____x40_Lean_Environment___hyg_3363_(); +lean_mark_persistent(l___auto____x40_Lean_Environment___hyg_3363_); l_Array_qsort_sort___at_Lean_mkMapDeclarationExtension___spec__1___rarg___closed__1 = _init_l_Array_qsort_sort___at_Lean_mkMapDeclarationExtension___spec__1___rarg___closed__1(); lean_mark_persistent(l_Array_qsort_sort___at_Lean_mkMapDeclarationExtension___spec__1___rarg___closed__1); l_Lean_mkMapDeclarationExtension___rarg___closed__1 = _init_l_Lean_mkMapDeclarationExtension___rarg___closed__1(); @@ -16081,21 +16081,21 @@ 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_6189____lambda__2___closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6189____lambda__2___closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6189____lambda__2___closed__1); -l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__1); -l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__2 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__2); -l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__3 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__3); -l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__4 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__4(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__4); -l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__5 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__5(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__5); -l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__6 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__6(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6189____closed__6); -if (builtin) {res = l_Lean_initFn____x40_Lean_Environment___hyg_6189_(lean_io_mk_world()); +l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__2___closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__2___closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6214____lambda__2___closed__1); +l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__1); +l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__2 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__2); +l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__3 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__3); +l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__4 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__4(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__4); +l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__5 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__5(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__5); +l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__6 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__6(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6214____closed__6); +if (builtin) {res = l_Lean_initFn____x40_Lean_Environment___hyg_6214_(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/Linter/MissingDocs.c b/stage0/stdlib/Lean/Linter/MissingDocs.c index 6b51e3049f..3ca6af7064 100644 --- a/stage0/stdlib/Lean/Linter/MissingDocs.c +++ b/stage0/stdlib/Lean/Linter/MissingDocs.c @@ -174,6 +174,7 @@ lean_object* l_Lean_Syntax_getAtomVal(lean_object*); static lean_object* l___regBuiltin_Lean_Linter_MissingDocs_checkElab___closed__2; static lean_object* l_Lean_Linter_MissingDocs_handleIn___rarg___closed__2; LEAN_EXPORT lean_object* l_List_replace___at_Lean_Linter_MissingDocs_checkDecl___spec__9(lean_object*, lean_object*, lean_object*); +lean_object* l_instDecidableEqPos___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Linter_MissingDocs_checkRegisterOption(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Linter_MissingDocs_checkElab(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Linter_MissingDocs_checkMixfix(lean_object*); @@ -369,7 +370,6 @@ static lean_object* l_Lean_Linter_MissingDocs_initFn____x40_Lean_Linter_MissingD LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Linter_MissingDocs_checkDecl___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); lean_object* lean_erase_macro_scopes(lean_object*); -lean_object* l_Nat_decEq___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Linter_MissingDocs_mkHandlerUnsafe(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); @@ -5603,7 +5603,7 @@ static lean_object* _init_l_Lean_Linter_MissingDocs_checkDecl___lambda__1___clos _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Nat_decEq___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_instDecidableEqPos___boxed), 2, 0); return x_1; } } diff --git a/stage0/stdlib/Lean/Message.c b/stage0/stdlib/Lean/Message.c index 85724535ad..a079f66093 100644 --- a/stage0/stdlib/Lean/Message.c +++ b/stage0/stdlib/Lean/Message.c @@ -223,6 +223,7 @@ static lean_object* l_Lean_MessageData_instCoeArrayExprMessageData___closed__3; uint8_t l_Std_Format_isEmpty(lean_object*); static lean_object* l_Lean_MessageData_instCoeArrayExprMessageData___closed__2; LEAN_EXPORT lean_object* l_String_split___at_Lean_stringToMessageData___spec__1___boxed(lean_object*); +static lean_object* l_Lean_KernelException_toMessageData___closed__53; LEAN_EXPORT lean_object* l_Lean_instToMessageDataProd___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_MessageData_ofSyntax___lambda__2(lean_object*); @@ -404,6 +405,7 @@ LEAN_EXPORT lean_object* l_Lean_MessageData_arrayExpr_toMessageData___boxed(lean LEAN_EXPORT lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); static lean_object* l_Lean_MessageData_hasSyntheticSorry_visit___closed__5; static lean_object* l_Lean_MessageData_instCoeArrayExprMessageData___closed__1; +static lean_object* l_Lean_KernelException_toMessageData___closed__51; lean_object* l_String_toSubstring_x27(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MessageLog_errorsToWarnings___spec__3(size_t, size_t, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); @@ -411,6 +413,7 @@ static lean_object* l_Lean_instInhabitedMessageLog___closed__1; LEAN_EXPORT lean_object* l_Lean_MessageData_ofName(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MessageData_paren___closed__2; +static lean_object* l_Lean_KernelException_toMessageData___closed__52; static lean_object* l_Lean_instInhabitedMessage___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MessageLog_errorsToWarnings___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); @@ -423,6 +426,7 @@ static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21 static lean_object* l_Lean_KernelException_toMessageData___closed__27; LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeNameMessageData; LEAN_EXPORT lean_object* l_Lean_stringToMessageData___boxed(lean_object*); +static lean_object* l_Lean_KernelException_toMessageData___closed__54; LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeFormatMessageData(lean_object*); LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Message_toString(lean_object*, uint8_t, lean_object*); @@ -7096,7 +7100,7 @@ static lean_object* _init_l_Lean_KernelException_toMessageData___closed__37() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("(kernel) ", 9); +x_1 = lean_mk_string_from_bytes("(kernel) type of theorem '", 26); return x_1; } } @@ -7113,7 +7117,7 @@ static lean_object* _init_l_Lean_KernelException_toMessageData___closed__39() { _start: { lean_object* x_1; -x_1 = lean_mk_string_from_bytes("(kernel) deterministic timeout", 30); +x_1 = lean_mk_string_from_bytes("' is not a proposition", 22); return x_1; } } @@ -7122,37 +7126,33 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_KernelException_toMessageData___closed__39; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } static lean_object* _init_l_Lean_KernelException_toMessageData___closed__41() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_KernelException_toMessageData___closed__40; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("(kernel) ", 9); +return x_1; } } static lean_object* _init_l_Lean_KernelException_toMessageData___closed__42() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("(kernel) excessive memory consumption detected", 46); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_KernelException_toMessageData___closed__41; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; } } static lean_object* _init_l_Lean_KernelException_toMessageData___closed__43() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_KernelException_toMessageData___closed__42; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("(kernel) deterministic timeout", 30); +return x_1; } } static lean_object* _init_l_Lean_KernelException_toMessageData___closed__44() { @@ -7160,7 +7160,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_KernelException_toMessageData___closed__43; -x_2 = lean_alloc_ctor(0, 1, 0); +x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } @@ -7168,19 +7168,19 @@ return x_2; static lean_object* _init_l_Lean_KernelException_toMessageData___closed__45() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("(kernel) deep recursion detected", 32); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_KernelException_toMessageData___closed__44; +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_KernelException_toMessageData___closed__46() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_KernelException_toMessageData___closed__45; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("(kernel) excessive memory consumption detected", 46); +return x_1; } } static lean_object* _init_l_Lean_KernelException_toMessageData___closed__47() { @@ -7188,7 +7188,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_KernelException_toMessageData___closed__46; -x_2 = lean_alloc_ctor(0, 1, 0); +x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } @@ -7196,19 +7196,19 @@ return x_2; static lean_object* _init_l_Lean_KernelException_toMessageData___closed__48() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("(kernel) interrupted", 20); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_KernelException_toMessageData___closed__47; +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_KernelException_toMessageData___closed__49() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_KernelException_toMessageData___closed__48; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("(kernel) deep recursion detected", 32); +return x_1; } } static lean_object* _init_l_Lean_KernelException_toMessageData___closed__50() { @@ -7216,6 +7216,44 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_KernelException_toMessageData___closed__49; +x_2 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_KernelException_toMessageData___closed__51() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_KernelException_toMessageData___closed__50; +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_KernelException_toMessageData___closed__52() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("(kernel) interrupted", 20); +return x_1; +} +} +static lean_object* _init_l_Lean_KernelException_toMessageData___closed__53() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_KernelException_toMessageData___closed__52; +x_2 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_KernelException_toMessageData___closed__54() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_KernelException_toMessageData___closed__53; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -7579,50 +7617,81 @@ return x_149; } case 11: { -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -lean_dec(x_2); +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; x_150 = lean_ctor_get(x_1, 0); lean_inc(x_150); +x_151 = lean_ctor_get(x_1, 1); +lean_inc(x_151); +x_152 = lean_ctor_get(x_1, 2); +lean_inc(x_152); lean_dec(x_1); -x_151 = l_Lean_stringToMessageData(x_150); -lean_dec(x_150); -x_152 = l_Lean_KernelException_toMessageData___closed__38; -x_153 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_151); -x_154 = l_Lean_KernelException_toMessageData___closed__16; +x_153 = l_Lean_MessageData_ofName(x_151); +x_154 = l_Lean_KernelException_toMessageData___closed__38; x_155 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_155, 0, x_153); -lean_ctor_set(x_155, 1, x_154); -return x_155; +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_153); +x_156 = l_Lean_KernelException_toMessageData___closed__40; +x_157 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_157, 0, x_155); +lean_ctor_set(x_157, 1, x_156); +x_158 = l_Lean_indentExpr(x_152); +x_159 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +x_160 = l_Lean_KernelException_toMessageData___closed__16; +x_161 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_161, 0, x_159); +lean_ctor_set(x_161, 1, x_160); +x_162 = l_Lean_addMessageContextPartial___rarg___lambda__1___closed__2; +x_163 = l___private_Lean_Message_0__Lean_KernelException_mkCtx(x_150, x_162, x_2, x_161); +return x_163; } case 12: { -lean_object* x_156; +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_dec(x_2); -x_156 = l_Lean_KernelException_toMessageData___closed__41; -return x_156; +x_164 = lean_ctor_get(x_1, 0); +lean_inc(x_164); +lean_dec(x_1); +x_165 = l_Lean_stringToMessageData(x_164); +lean_dec(x_164); +x_166 = l_Lean_KernelException_toMessageData___closed__42; +x_167 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_165); +x_168 = l_Lean_KernelException_toMessageData___closed__16; +x_169 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_168); +return x_169; } case 13: { -lean_object* x_157; +lean_object* x_170; lean_dec(x_2); -x_157 = l_Lean_KernelException_toMessageData___closed__44; -return x_157; +x_170 = l_Lean_KernelException_toMessageData___closed__45; +return x_170; } case 14: { -lean_object* x_158; +lean_object* x_171; lean_dec(x_2); -x_158 = l_Lean_KernelException_toMessageData___closed__47; -return x_158; +x_171 = l_Lean_KernelException_toMessageData___closed__48; +return x_171; +} +case 15: +{ +lean_object* x_172; +lean_dec(x_2); +x_172 = l_Lean_KernelException_toMessageData___closed__51; +return x_172; } default: { -lean_object* x_159; +lean_object* x_173; lean_dec(x_2); -x_159 = l_Lean_KernelException_toMessageData___closed__50; -return x_159; +x_173 = l_Lean_KernelException_toMessageData___closed__54; +return x_173; } } } @@ -8034,6 +8103,14 @@ l_Lean_KernelException_toMessageData___closed__49 = _init_l_Lean_KernelException lean_mark_persistent(l_Lean_KernelException_toMessageData___closed__49); l_Lean_KernelException_toMessageData___closed__50 = _init_l_Lean_KernelException_toMessageData___closed__50(); lean_mark_persistent(l_Lean_KernelException_toMessageData___closed__50); +l_Lean_KernelException_toMessageData___closed__51 = _init_l_Lean_KernelException_toMessageData___closed__51(); +lean_mark_persistent(l_Lean_KernelException_toMessageData___closed__51); +l_Lean_KernelException_toMessageData___closed__52 = _init_l_Lean_KernelException_toMessageData___closed__52(); +lean_mark_persistent(l_Lean_KernelException_toMessageData___closed__52); +l_Lean_KernelException_toMessageData___closed__53 = _init_l_Lean_KernelException_toMessageData___closed__53(); +lean_mark_persistent(l_Lean_KernelException_toMessageData___closed__53); +l_Lean_KernelException_toMessageData___closed__54 = _init_l_Lean_KernelException_toMessageData___closed__54(); +lean_mark_persistent(l_Lean_KernelException_toMessageData___closed__54); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/KAbstract.c b/stage0/stdlib/Lean/Meta/KAbstract.c index b4ad799ff1..ad1a214559 100644 --- a/stage0/stdlib/Lean/Meta/KAbstract.c +++ b/stage0/stdlib/Lean/Meta/KAbstract.c @@ -39,6 +39,7 @@ lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_399_(uint8_t, uint8_t); static lean_object* l_Lean_Meta_kabstract___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_kabstract___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_Occurrences_contains(lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_HeadIndex_0__Lean_beqHeadIndex____x40_Lean_HeadIndex___hyg_66_(lean_object*, lean_object*); @@ -6979,7 +6980,6 @@ lean_dec(x_18); x_21 = l_Lean_Meta_kabstract_visit(x_2, x_3, x_14, x_16, x_11, x_15, x_19, x_4, x_5, x_6, x_7, x_20); lean_dec(x_16); lean_dec(x_14); -lean_dec(x_3); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; @@ -7039,7 +7039,6 @@ else { lean_object* x_33; uint8_t x_34; x_33 = lean_box(0); -lean_inc(x_3); x_34 = l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066_(x_3, x_33); if (x_34 == 0) { @@ -7059,7 +7058,6 @@ lean_dec(x_39); x_42 = l_Lean_Meta_kabstract_visit(x_2, x_3, x_35, x_37, x_11, x_36, x_40, x_4, x_5, x_6, x_7, x_41); lean_dec(x_37); lean_dec(x_35); -lean_dec(x_3); if (lean_obj_tag(x_42) == 0) { lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; @@ -7122,7 +7120,6 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); x_54 = l_Lean_Meta_kabstract___closed__1; x_55 = lean_array_push(x_54, x_2); x_56 = lean_expr_abstract(x_11, x_55); @@ -7159,7 +7156,6 @@ lean_dec(x_64); x_67 = l_Lean_Meta_kabstract_visit(x_2, x_3, x_60, x_62, x_57, x_61, x_65, x_4, x_5, x_6, x_7, x_66); lean_dec(x_62); lean_dec(x_60); -lean_dec(x_3); if (lean_obj_tag(x_67) == 0) { lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; @@ -7219,7 +7215,6 @@ else { lean_object* x_78; uint8_t x_79; x_78 = lean_box(0); -lean_inc(x_3); x_79 = l___private_Init_MetaTypes_0__Lean_Meta_beqOccurrences____x40_Init_MetaTypes___hyg_1066_(x_3, x_78); if (x_79 == 0) { @@ -7238,7 +7233,6 @@ lean_dec(x_84); x_87 = l_Lean_Meta_kabstract_visit(x_2, x_3, x_80, x_82, x_57, x_81, x_85, x_4, x_5, x_6, x_7, x_86); lean_dec(x_82); lean_dec(x_80); -lean_dec(x_3); 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; @@ -7301,7 +7295,6 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); x_98 = l_Lean_Meta_kabstract___closed__1; x_99 = lean_array_push(x_98, x_2); x_100 = lean_expr_abstract(x_57, x_99); @@ -7316,6 +7309,15 @@ return x_101; } } } +LEAN_EXPORT lean_object* l_Lean_Meta_kabstract___boxed(lean_object* x_1, lean_object* x_2, 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_kabstract(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +return x_9; +} +} lean_object* initialize_Lean_HeadIndex(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Basic(uint8_t builtin, lean_object*); static bool _G_initialized = false; diff --git a/stage0/stdlib/Lean/Meta/Match/Match.c b/stage0/stdlib/Lean/Meta/Match/Match.c index 24d04b970f..d367166587 100644 --- a/stage0/stdlib/Lean/Meta/Match/Match.c +++ b/stage0/stdlib/Lean/Meta/Match/Match.c @@ -85,7 +85,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_pr LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Match_mkMatcherAuxDefinition___spec__2(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_isNextVar___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_mkMinorType___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10661____lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processNonVariable___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_solveCnstrs_go___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwNonSupported___lambda__1___closed__1; @@ -474,6 +473,7 @@ uint8_t l_List_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_traceState___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Match_bootstrap_genMatcherCode; +lean_object* l_instDecidableEqBool___boxed(lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Match_mkMatcher___lambda__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Match_State_counterExamples___default; @@ -626,7 +626,6 @@ extern lean_object* l_Lean_Meta_instMonadMetaM; LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwNonSupported___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Match_mkMatcher___lambda__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_indexOfAux___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_getUElimPos_x3f___spec__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10661____lambda__1(uint8_t, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandIntValuePattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Match_mkMatcherAuxDefinition___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Match_withMkMatcherInput___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -28345,35 +28344,11 @@ x_5 = l_Lean_Option_register___at_Lean_initFn____x40_Lean_Util_Profile___hyg_6__ return x_5; } } -LEAN_EXPORT uint8_t l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10661____lambda__1(uint8_t x_1, uint8_t x_2) { -_start: -{ -if (x_1 == 0) -{ -if (x_2 == 0) -{ -uint8_t x_3; -x_3 = 1; -return x_3; -} -else -{ -uint8_t x_4; -x_4 = 0; -return x_4; -} -} -else -{ -return x_2; -} -} -} static lean_object* _init_l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10661____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10661____lambda__1___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_instDecidableEqBool___boxed), 2, 0); return x_1; } } @@ -28468,19 +28443,6 @@ x_3 = l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10661____lambda__1___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_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_Match___hyg_10661____lambda__1(x_3, x_4); -x_6 = lean_box(x_5); -return x_6; -} -} LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Match_mkMatcherAuxDefinition___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { diff --git a/stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c b/stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c index 0b15aeda6b..436896f910 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c +++ b/stage0/stdlib/Lean/Meta/Tactic/ElimInfo.c @@ -86,7 +86,6 @@ static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_ElimInfo___hyg_29 lean_object* l_Lean_instBEqLocalInstance___boxed(lean_object*, lean_object*); size_t lean_usize_mul(size_t, size_t); static lean_object* l_Lean_Meta_addImplicitTargets_collect___lambda__2___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_CustomEliminators_map___default___lambda__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_ElimInfo_0__Lean_Meta_reprElimAltInfo____x40_Lean_Meta_Tactic_ElimInfo___hyg_39____closed__3; static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_ElimInfo___hyg_2991____lambda__1___closed__1; static lean_object* l_Lean_Meta_getElimExprInfo___closed__4; @@ -200,7 +199,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_addCustomEliminator(lean_object*, uint8_t, lean_object* l_Lean_ScopedEnvExtension_addScopedEntry___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_getElimExprInfo___lambda__4___closed__2; uint8_t l_Lean_Expr_isSort(lean_object*); -LEAN_EXPORT uint8_t l_Lean_Meta_CustomEliminators_map___default___lambda__1(uint8_t, uint8_t); static lean_object* l___private_Lean_Meta_Tactic_ElimInfo_0__Lean_Meta_reprElimInfo____x40_Lean_Meta_Tactic_ElimInfo___hyg_205____closed__9; lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_ElimInfo___hyg_3070____closed__1; @@ -256,6 +254,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_getElimExprInfo___lambda__1(lean_object*, l LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_Meta_mkCustomEliminator___spec__10(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_ElimInfo___hyg_2991____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getCustomEliminators___boxed(lean_object*); +lean_object* l_instDecidableEqBool___boxed(lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Meta_addCustomEliminator___closed__1; lean_object* lean_array_to_list(lean_object*, lean_object*); @@ -4893,35 +4892,11 @@ x_2 = l_Lean_mkHashMapImp___rarg(x_1); return x_2; } } -LEAN_EXPORT uint8_t l_Lean_Meta_CustomEliminators_map___default___lambda__1(uint8_t x_1, uint8_t x_2) { -_start: -{ -if (x_1 == 0) -{ -if (x_2 == 0) -{ -uint8_t x_3; -x_3 = 1; -return x_3; -} -else -{ -uint8_t x_4; -x_4 = 0; -return x_4; -} -} -else -{ -return x_2; -} -} -} static lean_object* _init_l_Lean_Meta_CustomEliminators_map___default___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_CustomEliminators_map___default___lambda__1___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_instDecidableEqBool___boxed), 2, 0); return x_1; } } @@ -5041,19 +5016,6 @@ lean_dec(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_CustomEliminators_map___default___lambda__1___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_Lean_Meta_CustomEliminators_map___default___lambda__1(x_3, x_4); -x_6 = lean_box(x_5); -return x_6; -} -} static lean_object* _init_l_Lean_Meta_instInhabitedCustomEliminators___closed__1() { _start: { diff --git a/stage0/stdlib/Lean/Meta/Tactic/LinearArith/Solver.c b/stage0/stdlib/Lean/Meta/Tactic/LinearArith/Solver.c index 5a5031e882..28e5e70b11 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/LinearArith/Solver.c +++ b/stage0/stdlib/Lean/Meta/Tactic/LinearArith/Solver.c @@ -130,6 +130,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instOrdVar; LEAN_EXPORT lean_object* l_List_foldl___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_372____spec__4(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3645____closed__1; static lean_object* l_Lean_Meta_Linear_Poly_add_go___closed__1; +lean_object* l_Int_instDecidableEqInt___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_instInhabitedCnstr___closed__1; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_372____closed__19; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_pickAssignment_x3f(lean_object*, uint8_t, lean_object*, uint8_t); @@ -176,6 +177,7 @@ static lean_object* l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solv LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3645____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_eval_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instReprPoly; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_combine_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_Cnstr_isUnsat___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_get___boxed(lean_object*, lean_object*); @@ -250,9 +252,8 @@ static lean_object* l_Lean_Meta_Linear_resolve___closed__1; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3645____closed__12; lean_object* l_Lean_Rat_floor(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_size(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__3; static lean_object* l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_372____spec__2___closed__5; -lean_object* l_Nat_decEq___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_372____closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_add(lean_object*, lean_object*); lean_object* l_Array_back___rarg(lean_object*, lean_object*); @@ -280,7 +281,6 @@ uint8_t lean_int_dec_eq(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3645____closed__9; uint8_t l_Lean_Rat_isInt(lean_object*); extern lean_object* l_Int_instInhabitedInt; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_82____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_eval_x3f___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Rat_sub(lean_object*, lean_object*); @@ -292,7 +292,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Linear_CnstrKind_ofNat___boxed(lean_object* lean_object* lean_int_neg(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3839____boxed(lean_object*, lean_object*); -lean_object* l_Int_decEq___boxed(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_372____closed__11; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_add_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -300,7 +299,6 @@ static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta LEAN_EXPORT uint8_t l_Lean_Meta_Linear_instDecidableLtVarInstLTVar(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprAssumptionId____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_2743____boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Assignment_val___default; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3381____closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instReprVar; @@ -1263,45 +1261,39 @@ x_1 = l_Lean_Meta_Linear_instReprPoly___closed__1; return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Int_decEq___boxed), 2, 0); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Nat_decEq___boxed), 2, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1___closed__1; -x_4 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1___closed__2; -x_5 = l_instDecidableEqProd___rarg(x_3, x_4, x_1, x_2); -return x_5; -} -} static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Int_instDecidableEqInt___boxed), 2, 0); return x_1; } } +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Linear_instDecidableEqVar___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__1; +x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__2; +x_3 = lean_alloc_closure((void*)(l_instDecidableEqProd___rarg), 4, 2); +lean_closure_set(x_3, 0, x_1); +lean_closure_set(x_3, 1, x_2); +return x_3; +} +} LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409_(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; -x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__1; +x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__3; x_4 = l_Array_instDecidableEqArray___rarg(x_3, x_1, x_2); return x_4; } @@ -1320,10 +1312,9 @@ return x_4; LEAN_EXPORT uint8_t l_Lean_Meta_Linear_instDecidableEqPoly(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; uint8_t x_4; -x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__1; -x_4 = l_Array_instDecidableEqArray___rarg(x_3, x_1, x_2); -return x_4; +uint8_t x_3; +x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409_(x_1, x_2); +return x_3; } } LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instDecidableEqPoly___boxed(lean_object* x_1, lean_object* x_2) { @@ -3684,30 +3675,29 @@ return x_12; } else { -lean_object* x_13; uint8_t x_14; -x_13 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__1; -x_14 = l_Array_instDecidableEqArray___rarg(x_13, x_4, x_8); -if (x_14 == 0) +uint8_t x_13; +x_13 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409_(x_4, x_8); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = 0; +return x_14; +} +else { uint8_t x_15; -x_15 = 0; -return x_15; -} -else +x_15 = lean_int_dec_eq(x_5, x_9); +if (x_15 == 0) { uint8_t x_16; -x_16 = lean_int_dec_eq(x_5, x_9); -if (x_16 == 0) -{ -uint8_t x_17; -x_17 = 0; -return x_17; +x_16 = 0; +return x_16; } else { -uint8_t x_18; -x_18 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_2832_(x_6, x_10); -return x_18; +uint8_t x_17; +x_17 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_2832_(x_6, x_10); +return x_17; } } } @@ -3764,30 +3754,29 @@ return x_12; } else { -lean_object* x_13; uint8_t x_14; -x_13 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__1; -x_14 = l_Array_instDecidableEqArray___rarg(x_13, x_4, x_8); -if (x_14 == 0) +uint8_t x_13; +x_13 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409_(x_4, x_8); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = 0; +return x_14; +} +else { uint8_t x_15; -x_15 = 0; -return x_15; -} -else +x_15 = lean_int_dec_eq(x_5, x_9); +if (x_15 == 0) { uint8_t x_16; -x_16 = lean_int_dec_eq(x_5, x_9); -if (x_16 == 0) -{ -uint8_t x_17; -x_17 = 0; -return x_17; +x_16 = 0; +return x_16; } else { -uint8_t x_18; -x_18 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3245_(x_6, x_10); -return x_18; +uint8_t x_17; +x_17 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3245_(x_6, x_10); +return x_17; } } } @@ -6146,12 +6135,12 @@ l_Lean_Meta_Linear_instReprPoly___closed__1 = _init_l_Lean_Meta_Linear_instReprP lean_mark_persistent(l_Lean_Meta_Linear_instReprPoly___closed__1); l_Lean_Meta_Linear_instReprPoly = _init_l_Lean_Meta_Linear_instReprPoly(); lean_mark_persistent(l_Lean_Meta_Linear_instReprPoly); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1___closed__1); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1___closed__2 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____lambda__1___closed__2); l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__1 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__1); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__2 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__2); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__3 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_409____closed__3); l_Lean_Meta_Linear_Poly_getMaxVarCoeff___closed__1 = _init_l_Lean_Meta_Linear_Poly_getMaxVarCoeff___closed__1(); lean_mark_persistent(l_Lean_Meta_Linear_Poly_getMaxVarCoeff___closed__1); l_Lean_Meta_Linear_Poly_add_go___closed__1 = _init_l_Lean_Meta_Linear_Poly_add_go___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c b/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c index 399a41cd62..79361383d8 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c @@ -1306,6 +1306,7 @@ lean_inc(x_13); lean_inc(x_3); lean_inc(x_19); x_31 = l_Lean_Meta_kabstract(x_19, x_3, x_21, x_30, x_13, x_14, x_15, x_20); +lean_dec(x_21); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; lean_object* x_33; uint8_t x_34; @@ -1443,6 +1444,7 @@ lean_inc(x_13); lean_inc(x_3); lean_inc(x_19); x_65 = l_Lean_Meta_kabstract(x_19, x_3, x_21, x_64, x_13, x_14, x_15, x_20); +lean_dec(x_21); if (lean_obj_tag(x_65) == 0) { lean_object* x_66; lean_object* x_67; uint8_t x_68; @@ -2244,6 +2246,7 @@ lean_inc(x_13); lean_inc(x_3); lean_inc(x_19); x_31 = l_Lean_Meta_kabstract(x_19, x_3, x_21, x_30, x_13, x_14, x_15, x_20); +lean_dec(x_21); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; lean_object* x_33; uint8_t x_34; @@ -2381,6 +2384,7 @@ lean_inc(x_13); lean_inc(x_3); lean_inc(x_19); x_65 = l_Lean_Meta_kabstract(x_19, x_3, x_21, x_64, x_13, x_14, x_15, x_20); +lean_dec(x_21); if (lean_obj_tag(x_65) == 0) { lean_object* x_66; lean_object* x_67; uint8_t x_68; @@ -3188,6 +3192,7 @@ lean_inc(x_14); lean_inc(x_3); lean_inc(x_20); x_32 = l_Lean_Meta_kabstract(x_20, x_3, x_22, x_31, x_14, x_15, x_16, x_21); +lean_dec(x_22); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; uint8_t x_35; @@ -3327,6 +3332,7 @@ lean_inc(x_14); lean_inc(x_3); lean_inc(x_20); x_66 = l_Lean_Meta_kabstract(x_20, x_3, x_22, x_65, x_14, x_15, x_16, x_21); +lean_dec(x_22); if (lean_obj_tag(x_66) == 0) { lean_object* x_67; lean_object* x_68; uint8_t x_69; @@ -4136,6 +4142,7 @@ lean_inc(x_14); lean_inc(x_3); lean_inc(x_20); x_32 = l_Lean_Meta_kabstract(x_20, x_3, x_22, x_31, x_14, x_15, x_16, x_21); +lean_dec(x_22); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; uint8_t x_35; @@ -4275,6 +4282,7 @@ lean_inc(x_14); lean_inc(x_3); lean_inc(x_20); x_66 = l_Lean_Meta_kabstract(x_20, x_3, x_22, x_65, x_14, x_15, x_16, x_21); +lean_dec(x_22); if (lean_obj_tag(x_66) == 0) { lean_object* x_67; lean_object* x_68; uint8_t x_69; diff --git a/stage0/stdlib/Lean/Parser/Command.c b/stage0/stdlib/Lean/Parser/Command.c index 6f52e9a0bb..4b78e9c3d3 100644 --- a/stage0/stdlib/Lean/Parser/Command.c +++ b/stage0/stdlib/Lean/Parser/Command.c @@ -565,6 +565,7 @@ static lean_object* l_Lean_Parser_Command_declModifiers_formatter___closed__10; static lean_object* l_Lean_Parser_Command_noncomputableSection_formatter___closed__7; static lean_object* l_Lean_Parser_Command_open___closed__2; static lean_object* l___regBuiltin_Lean_Parser_Command_noncomputableSection_formatter___closed__1; +lean_object* l_instDecidableEqChar___boxed(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Parser_Command_structInstBinder_formatter___closed__1; static lean_object* l_Lean_Parser_Command_quot_parenthesizer___closed__6; static lean_object* l_Lean_Parser_Command_abbrev_formatter___closed__5; @@ -2747,7 +2748,6 @@ static lean_object* l_Lean_Parser_Command_declId_formatter___closed__8; lean_object* l_Lean_Parser_Term_leftArrow_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_structExplicitBinder___closed__12; static lean_object* l_Lean_Parser_Command_inductive_parenthesizer___closed__1; -lean_object* l_UInt32_decEq___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Command_optDeclSig_parenthesizer___closed__10; static lean_object* l___regBuiltin_Lean_Parser_Term_open_declRange___closed__7; static lean_object* l_Lean_Parser_Command_partial_parenthesizer___closed__1; @@ -6903,7 +6903,7 @@ static lean_object* _init_l_Lean_Parser_Command_declId___lambda__1___closed__1() _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_UInt32_decEq___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_instDecidableEqChar___boxed), 2, 0); return x_1; } } diff --git a/stage0/stdlib/Lean/Server/References.c b/stage0/stdlib/Lean/Server/References.c index 1fe75f8d17..18e427de7c 100644 --- a/stage0/stdlib/Lean/Server/References.c +++ b/stage0/stdlib/Lean/Server/References.c @@ -45,7 +45,6 @@ extern lean_object* l_Lean_declRangeExt; LEAN_EXPORT lean_object* l_Lean_HashMapImp_erase___at_Lean_Server_combineIdents_useConstRepresentatives___spec__6___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_List_elem___at_Lean_Server_combineIdents_useConstRepresentatives___spec__10(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_References_0__Lean_Server_toJsonIlean____x40_Lean_Server_References___hyg_1464____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_Server_dedupReferences___lambda__1(uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Lean_HashMap_insert___at_Lean_Server_combineIdents___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_dedupReferences___closed__11; LEAN_EXPORT lean_object* l_Lean_Server_dedupReferences(lean_object*, uint8_t); @@ -116,7 +115,6 @@ LEAN_EXPORT lean_object* l_List_elem___at_Lean_Server_combineIdents_useConstRepr LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at_Lean_Server_References_allRefs___spec__10___boxed(lean_object*, lean_object*); lean_object* l_System_Uri_pathToUri(lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_moveEntries___at_Lean_Server_combineIdents_useConstRepresentatives___spec__17(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_dedupReferences___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_dedupReferences___spec__11(uint8_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_Server_RefInfo_toLspRefInfo___spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_HashMapImp_expand___at_Lean_Server_References_allRefs___spec__3(lean_object*, lean_object*); @@ -235,6 +233,7 @@ lean_object* l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_ LEAN_EXPORT lean_object* l_Lean_Server_References_removeWorkerRefs(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_erase___at_Lean_Server_References_removeIlean___spec__7(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonRefInfo___spec__2(size_t, size_t, lean_object*); +lean_object* l_instDecidableEqBool___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_dedupReferences___closed__4; static lean_object* l___private_Lean_Server_References_0__Lean_Server_fromJsonIlean____x40_Lean_Server_References___hyg_1325____closed__12; LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_Server_combineIdents_useConstRepresentatives___spec__23(lean_object*); @@ -9854,35 +9853,11 @@ return x_4; } } } -LEAN_EXPORT uint8_t l_Lean_Server_dedupReferences___lambda__1(uint8_t x_1, uint8_t x_2) { -_start: -{ -if (x_1 == 0) -{ -if (x_2 == 0) -{ -uint8_t x_3; -x_3 = 1; -return x_3; -} -else -{ -uint8_t x_4; -x_4 = 0; -return x_4; -} -} -else -{ -return x_2; -} -} -} static lean_object* _init_l_Lean_Server_dedupReferences___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_dedupReferences___lambda__1___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_instDecidableEqBool___boxed), 2, 0); return x_1; } } @@ -10132,19 +10107,6 @@ lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Server_dedupReferences___lambda__1___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_Lean_Server_dedupReferences___lambda__1(x_3, x_4); -x_6 = lean_box(x_5); -return x_6; -} -} LEAN_EXPORT lean_object* l_Lean_Server_dedupReferences___boxed(lean_object* x_1, lean_object* x_2) { _start: { diff --git a/stage0/stdlib/Lean/Server/Requests.c b/stage0/stdlib/Lean/Server/Requests.c index 455acd9876..a2d67c56a0 100644 --- a/stage0/stdlib/Lean/Server/Requests.c +++ b/stage0/stdlib/Lean/Server/Requests.c @@ -29,7 +29,6 @@ LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_registerLspRequestHandler LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_forM___at_Lean_Server_runHeaderCachingHandlers___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RequestError_ofException(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_chainLspRequestHandler___spec__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_String_decEq___boxed(lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_Server_runHeaderCachingHandlers___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -201,6 +200,7 @@ lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_handleLspRequest(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_endPos(lean_object*); lean_object* l_Nat_repr(lean_object*); +lean_object* l_instDecidableEqString___boxed(lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Server_instMonadLiftEIOExceptionRequestM(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RequestError_invalidParams(lean_object*); @@ -1746,7 +1746,7 @@ static lean_object* _init_l_Lean_Server_initFn____x40_Lean_Server_Requests___hyg _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_String_decEq___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_instDecidableEqString___boxed), 2, 0); return x_1; } } diff --git a/stage0/stdlib/Lean/Server/Watchdog.c b/stage0/stdlib/Lean/Server/Watchdog.c index 4eaa3c03dd..d6d0a27e9a 100644 --- a/stage0/stdlib/Lean/Server/Watchdog.c +++ b/stage0/stdlib/Lean/Server/Watchdog.c @@ -79,7 +79,6 @@ static lean_object* l_Lean_Server_Watchdog_tryWriteMessage___closed__52; static lean_object* l_Lean_Server_Watchdog_tryWriteMessage___closed__28; LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Server_Watchdog_handlePrepareCallHierarchy___spec__3___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_erase___at_Lean_Server_Watchdog_handleCallHierarchyIncomingCalls_collapseSameIncomingCalls___spec__5___boxed(lean_object*, lean_object*); -lean_object* l_String_decEq___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_Watchdog_mkLeanServerCapabilities___closed__16; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_erase___at_Lean_Server_Watchdog_handleCallHierarchyOutgoingCalls_collapseSameOutgoingCalls___spec__5___boxed(lean_object*, lean_object*); @@ -762,6 +761,7 @@ lean_object* l_Lean_SearchPath_findAllWithExt(lean_object*, lean_object*, lean_o static lean_object* l_Lean_Server_Watchdog_handleRename___lambda__1___closed__1; static lean_object* l_Lean_Server_Watchdog_handleRename___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Server_Watchdog_initAndRunWatchdogAux___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_instDecidableEqString___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_421_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleNotification___spec__6(lean_object*); static lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_fromJsonCallHierarchyItemData____x40_Lean_Server_Watchdog___hyg_3453____closed__13; @@ -19241,7 +19241,7 @@ static lean_object* _init_l_Lean_Server_Watchdog_handleRename___lambda__1___clos _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_String_decEq___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_instDecidableEqString___boxed), 2, 0); return x_1; } }