chore: update stage0

This commit is contained in:
Lean stage0 autoupdater 2025-02-06 12:27:11 +00:00
parent 2e6206bbeb
commit 07c880f7ff
18 changed files with 23418 additions and 9893 deletions

View file

@ -1,7 +1,5 @@
#include "util/options.h"
// please update stage0
namespace lean {
options get_default_options() {
options opts;

6
stage0/stdlib/Init.c generated
View file

@ -1,6 +1,6 @@
// Lean compiler output
// Module: Init
// Imports: Init.Prelude Init.Notation Init.Tactics Init.TacticsExtra Init.ByCases Init.RCases Init.Core Init.Control Init.Data.Basic Init.WF Init.WFTactics Init.Data Init.System Init.Util Init.Dynamic Init.ShareCommon Init.MetaTypes Init.Meta Init.NotationExtra Init.SimpLemmas Init.PropLemmas Init.Hints Init.Conv Init.Guard Init.Simproc Init.SizeOfLemmas Init.BinderPredicates Init.Ext Init.Omega Init.MacroTrace Init.Grind Init.While Init.Syntax Init.Internal Init.Try
// Imports: Init.Prelude Init.Notation Init.Tactics Init.TacticsExtra Init.ByCases Init.RCases Init.Core Init.Control Init.Data.Basic Init.WF Init.WFTactics Init.Data Init.System Init.Util Init.Dynamic Init.ShareCommon Init.MetaTypes Init.Meta Init.NotationExtra Init.SimpLemmas Init.PropLemmas Init.Hints Init.Conv Init.Guard Init.Simproc Init.SizeOfLemmas Init.BinderPredicates Init.Ext Init.Omega Init.MacroTrace Init.Grind Init.While Init.Syntax Init.Internal Init.Try Init.BinderNameHint
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
@ -48,6 +48,7 @@ lean_object* initialize_Init_While(uint8_t builtin, lean_object*);
lean_object* initialize_Init_Syntax(uint8_t builtin, lean_object*);
lean_object* initialize_Init_Internal(uint8_t builtin, lean_object*);
lean_object* initialize_Init_Try(uint8_t builtin, lean_object*);
lean_object* initialize_Init_BinderNameHint(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Init(uint8_t builtin, lean_object* w) {
lean_object * res;
@ -158,6 +159,9 @@ lean_dec_ref(res);
res = initialize_Init_Try(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_BinderNameHint(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

71
stage0/stdlib/Init/BinderNameHint.c generated Normal file
View file

@ -0,0 +1,71 @@
// Lean compiler output
// Module: Init.BinderNameHint
// Imports: Init.Prelude Init.Tactics
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
LEAN_EXPORT lean_object* l_binderNameHint___rarg(lean_object*);
LEAN_EXPORT lean_object* l_binderNameHint___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_binderNameHint___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_binderNameHint(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_binderNameHint___rarg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_binderNameHint(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6;
x_6 = lean_alloc_closure((void*)(l_binderNameHint___rarg___boxed), 1, 0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_binderNameHint___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2;
x_2 = l_binderNameHint___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_binderNameHint___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6;
x_6 = l_binderNameHint(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec(x_4);
return x_6;
}
}
lean_object* initialize_Init_Prelude(uint8_t builtin, lean_object*);
lean_object* initialize_Init_Tactics(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Init_BinderNameHint(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_Prelude(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Tactics(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

View file

@ -19,6 +19,7 @@ static lean_object* l_Lean_Parser_Tactic_posConfigItem___closed__8;
static lean_object* l_Lean_Parser_Tactic_tacticSorry___closed__4;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_fail;
static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__4;
static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__4;
static lean_object* l_Lean_Parser_Tactic_constructor___closed__4;
static lean_object* l_Lean_Parser_Tactic_injections___closed__3;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticShow__;
@ -142,6 +143,7 @@ static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__9;
static lean_object* l_Lean_Parser_Tactic_tacticUnhygienic_____closed__4;
static lean_object* l_Lean_Parser_Tactic_simp___closed__11;
static lean_object* l_Lean_Parser_Tactic_right___closed__2;
static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__3;
static lean_object* l_Lean_Parser_Tactic_tacticAdmit___closed__5;
static lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__2;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticRfl__2___boxed(lean_object*, lean_object*, lean_object*);
@ -181,7 +183,6 @@ static lean_object* l_Lean_Parser_Tactic_applyRules___closed__1;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticDsimp_x3f_x21____1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_case___closed__5;
static lean_object* l_Lean_Parser_Tactic_configItem___closed__5;
static lean_object* l_Lean_Parser_Attr_auto__attach___closed__5;
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__32;
static lean_object* l_Lean_Parser_Tactic_apply___closed__5;
static lean_object* l_Lean_Parser_Tactic_anyGoals___closed__5;
@ -600,7 +601,6 @@ static lean_object* l_Lean_Parser_Tactic_case_x27___closed__3;
static lean_object* l_Lean_Parser_Tactic_replace___closed__2;
static lean_object* l_Lean_Parser_Tactic_negConfigItem___closed__6;
static lean_object* l_Lean_Parser_Tactic_tacticAnd__intros___closed__3;
static lean_object* l_Lean_Parser_Attr_auto__attach___closed__6;
static lean_object* l_Lean_Parser_Tactic_tacticAssumption__mod__cast_____closed__3;
static lean_object* l_Lean_Parser_Tactic_renameI___closed__7;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_generalizeArg;
@ -853,6 +853,7 @@ static lean_object* l_Lean_Parser_Tactic_split___closed__7;
static lean_object* l_Lean_Parser_Tactic_rotateLeft___closed__11;
LEAN_EXPORT lean_object* l_term_u2039___u203a;
static lean_object* l_Lean_Parser_Tactic_repeat_x27___closed__2;
static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__5;
static lean_object* l_Lean_Parser_Tactic_skip___closed__1;
static lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__3;
static lean_object* l_Lean_Parser_Tactic_discharger___closed__5;
@ -904,6 +905,7 @@ static lean_object* l_Lean_Parser_Tactic_skip___closed__3;
static lean_object* l_Lean_Parser_Tactic_pushCast___closed__4;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticTrivial__4(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__27;
static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__6;
static lean_object* l_Lean_Parser_Tactic_tactic___x3c_x3b_x3e_____closed__1;
static lean_object* l_Lean_Parser_Tactic_inductionAltLHS___closed__7;
static lean_object* l_Lean_Parser_Tactic_nativeDecide___closed__2;
@ -1105,7 +1107,6 @@ static lean_object* l_Lean_Parser_Tactic_simp___closed__5;
static lean_object* l_Lean_Parser_Tactic_tacticSimp__all_x3f_x21_____closed__2;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tactic___x3c_x3b_x3e____1___closed__2;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticTry__;
static lean_object* l_Lean_Parser_Attr_auto__attach___closed__7;
static lean_object* l_Lean_Parser_Tactic_acRfl___closed__4;
static lean_object* l_Lean_Parser_Tactic_tacticSimp_x3f_x21_____closed__5;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_simpPre;
@ -1116,7 +1117,6 @@ static lean_object* l_Lean_Parser_Tactic_exposeNames___closed__1;
static lean_object* l_Lean_Parser_Tactic_apply_x3f___closed__1;
static lean_object* l_Lean_Parser_Tactic_normCastAddElim___closed__1;
static lean_object* l_Lean_Parser_Tactic_rotateRight___closed__4;
static lean_object* l_Lean_Parser_Attr_auto__attach___closed__3;
static lean_object* l_Lean_Parser_Tactic_traceState___closed__5;
static lean_object* l_Lean_Parser_Tactic_simp___closed__1;
static lean_object* l_Lean_Parser_Tactic_location___closed__7;
@ -1228,6 +1228,7 @@ static lean_object* l_Lean_Parser_Tactic_normCast0___closed__2;
static lean_object* l_Lean_Parser_Tactic_tacticRfl_x27___closed__5;
static lean_object* l_Lean_Parser_Tactic_tacticRefine__lift_____closed__5;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticHave_x27____1___closed__1;
static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__2;
static lean_object* l_Lean_Parser_Tactic_intros___closed__12;
static lean_object* l_Lean_Parser_Tactic_symmSaturate___closed__5;
static lean_object* l_Lean_Parser_Tactic_tacticBv__omega___closed__4;
@ -1264,7 +1265,6 @@ static lean_object* l_Lean_Parser_Tactic_dsimpTraceArgsRest___closed__4;
static lean_object* l_Lean_Parser_Tactic_simpAllTrace___closed__3;
static lean_object* l_Lean_Parser_Tactic_negConfigItem___closed__3;
static lean_object* l_Lean_Parser_Tactic_induction___closed__1;
LEAN_EXPORT lean_object* l_Lean_Parser_Attr_auto__attach;
static lean_object* l_Lean_Parser_Tactic_letrec___closed__1;
static lean_object* l_Lean_Parser_Tactic_discharger___closed__6;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticNorm__cast____;
@ -1286,7 +1286,6 @@ static lean_object* l_Lean_Parser_Tactic_traceMessage___closed__3;
static lean_object* l_Lean_Parser_Tactic_symmSaturate___closed__2;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticLet____1___closed__2;
static lean_object* l_Lean_Parser_Tactic_SolveByElim_erase___closed__2;
static lean_object* l_Lean_Parser_Attr_auto__attach___closed__1;
static lean_object* l_Lean_Parser_Tactic_fail___closed__5;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tactic___x3c_x3b_x3e__;
static lean_object* l_Lean_Parser_Tactic_intro___closed__19;
@ -1395,7 +1394,6 @@ static lean_object* l_Lean_Parser_Tactic_acNf0___closed__2;
static lean_object* l_Lean_Parser_Tactic_tacticSorry___closed__3;
static lean_object* l_Lean_Parser_Tactic_tacticLetI_____closed__5;
static lean_object* l_Lean_Parser_Tactic_tacticTry_____closed__6;
static lean_object* l_Lean_Parser_Attr_auto__attach___closed__4;
static lean_object* l_Lean_Parser_Tactic_falseOrByContra___closed__2;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_symmSaturate;
static lean_object* l_Lean_Parser_Tactic_paren___closed__4;
@ -1525,6 +1523,7 @@ static lean_object* l_Lean_Parser_Tactic_rwRule___closed__2;
static lean_object* l_Lean_Parser_Tactic_subst___closed__1;
static lean_object* l_Lean_Parser_Tactic_first___closed__12;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticLet_x27____1___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__7;
static lean_object* l_Lean_Parser_Tactic_first___closed__20;
static lean_object* l_Lean_Parser_Tactic_tacticStop_____closed__7;
static lean_object* l_Lean_Parser_Tactic_tacticRfl___closed__3;
@ -1611,6 +1610,7 @@ static lean_object* l_Lean_Parser_Tactic_case___closed__10;
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_repeat1_x27___closed__6;
static lean_object* l___aux__Init__Tactics______macroRules__tacticGet__elem__tactic__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Parser_Attr_wf__preprocess;
static lean_object* l_Lean_Parser_Tactic_rotateLeft___closed__13;
static lean_object* l_Lean_Parser_Tactic_intro___closed__8;
static lean_object* l_Lean_Parser_Tactic_letrec___closed__4;
@ -1714,7 +1714,6 @@ static lean_object* l_Lean_Parser_Tactic_showTerm___closed__1;
static lean_object* l_Lean_Parser_Tactic_case___closed__11;
static lean_object* l_Lean_Parser_Tactic_tacticSorry___closed__1;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticRefine__lift_x27____1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Attr_auto__attach___closed__2;
static lean_object* l_Lean_Parser_Tactic_tacticSimp__all_x3f_x21_____closed__6;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_traceMessage;
static lean_object* l_Lean_Parser_Tactic_simp___closed__8;
@ -1764,6 +1763,7 @@ static lean_object* l_Lean_Parser_Tactic_rewrites_x3f___closed__3;
static lean_object* l_Lean_Parser_Tactic_valConfigItem___closed__11;
static lean_object* l_Lean_Parser_Tactic_assumption___closed__1;
static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__5;
static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__1;
static lean_object* l_Lean_Parser_Tactic_location___closed__9;
static lean_object* l_Lean_Parser_Tactic_first___closed__19;
static lean_object* l_Lean_Parser_Tactic_change___closed__6;
@ -24349,31 +24349,31 @@ x_1 = l_Lean_Parser_Attr_simp___closed__11;
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__1() {
static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("auto_attach", 11, 11);
x_1 = lean_mk_string_unchecked("wf_preprocess", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__2() {
static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
x_1 = l_Lean_Parser_Tactic_as__aux__lemma___closed__1;
x_2 = l_Lean_Parser_Tactic_as__aux__lemma___closed__2;
x_3 = l_Lean_Parser_Attr_simp___closed__1;
x_4 = l_Lean_Parser_Attr_auto__attach___closed__1;
x_4 = l_Lean_Parser_Attr_wf__preprocess___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__3() {
static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__3() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Attr_auto__attach___closed__1;
x_1 = l_Lean_Parser_Attr_wf__preprocess___closed__1;
x_2 = 0;
x_3 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_3, 0, x_1);
@ -24381,12 +24381,12 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__4() {
static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Tactic_as__aux__lemma___closed__7;
x_2 = l_Lean_Parser_Attr_auto__attach___closed__3;
x_2 = l_Lean_Parser_Attr_wf__preprocess___closed__3;
x_3 = l_Lean_Parser_Tactic_simpLemma___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
@ -24395,12 +24395,12 @@ lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__5() {
static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Tactic_as__aux__lemma___closed__7;
x_2 = l_Lean_Parser_Attr_auto__attach___closed__4;
x_2 = l_Lean_Parser_Attr_wf__preprocess___closed__4;
x_3 = l_Lean_Parser_Tactic_rwRule___closed__13;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
@ -24409,12 +24409,12 @@ lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__6() {
static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Tactic_as__aux__lemma___closed__7;
x_2 = l_Lean_Parser_Attr_auto__attach___closed__5;
x_2 = l_Lean_Parser_Attr_wf__preprocess___closed__5;
x_3 = l_Lean_Parser_Attr_simp___closed__9;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
@ -24423,13 +24423,13 @@ lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__7() {
static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Attr_auto__attach___closed__2;
x_1 = l_Lean_Parser_Attr_wf__preprocess___closed__2;
x_2 = lean_unsigned_to_nat(1022u);
x_3 = l_Lean_Parser_Attr_auto__attach___closed__6;
x_3 = l_Lean_Parser_Attr_wf__preprocess___closed__6;
x_4 = lean_alloc_ctor(3, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
@ -24437,11 +24437,11 @@ lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Attr_auto__attach() {
static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess() {
_start:
{
lean_object* x_1;
x_1 = l_Lean_Parser_Attr_auto__attach___closed__7;
x_1 = l_Lean_Parser_Attr_wf__preprocess___closed__7;
return x_1;
}
}
@ -28713,22 +28713,22 @@ l_Lean_Parser_Attr_simp___closed__11 = _init_l_Lean_Parser_Attr_simp___closed__1
lean_mark_persistent(l_Lean_Parser_Attr_simp___closed__11);
l_Lean_Parser_Attr_simp = _init_l_Lean_Parser_Attr_simp();
lean_mark_persistent(l_Lean_Parser_Attr_simp);
l_Lean_Parser_Attr_auto__attach___closed__1 = _init_l_Lean_Parser_Attr_auto__attach___closed__1();
lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__1);
l_Lean_Parser_Attr_auto__attach___closed__2 = _init_l_Lean_Parser_Attr_auto__attach___closed__2();
lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__2);
l_Lean_Parser_Attr_auto__attach___closed__3 = _init_l_Lean_Parser_Attr_auto__attach___closed__3();
lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__3);
l_Lean_Parser_Attr_auto__attach___closed__4 = _init_l_Lean_Parser_Attr_auto__attach___closed__4();
lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__4);
l_Lean_Parser_Attr_auto__attach___closed__5 = _init_l_Lean_Parser_Attr_auto__attach___closed__5();
lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__5);
l_Lean_Parser_Attr_auto__attach___closed__6 = _init_l_Lean_Parser_Attr_auto__attach___closed__6();
lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__6);
l_Lean_Parser_Attr_auto__attach___closed__7 = _init_l_Lean_Parser_Attr_auto__attach___closed__7();
lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__7);
l_Lean_Parser_Attr_auto__attach = _init_l_Lean_Parser_Attr_auto__attach();
lean_mark_persistent(l_Lean_Parser_Attr_auto__attach);
l_Lean_Parser_Attr_wf__preprocess___closed__1 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__1();
lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__1);
l_Lean_Parser_Attr_wf__preprocess___closed__2 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__2();
lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__2);
l_Lean_Parser_Attr_wf__preprocess___closed__3 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__3();
lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__3);
l_Lean_Parser_Attr_wf__preprocess___closed__4 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__4();
lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__4);
l_Lean_Parser_Attr_wf__preprocess___closed__5 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__5();
lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__5);
l_Lean_Parser_Attr_wf__preprocess___closed__6 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__6();
lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__6);
l_Lean_Parser_Attr_wf__preprocess___closed__7 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__7();
lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__7);
l_Lean_Parser_Attr_wf__preprocess = _init_l_Lean_Parser_Attr_wf__preprocess();
lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess);
l_Lean_Parser_Attr_normCastLabel___closed__1 = _init_l_Lean_Parser_Attr_normCastLabel___closed__1();
lean_mark_persistent(l_Lean_Parser_Attr_normCastLabel___closed__1);
l_Lean_Parser_Attr_normCastLabel___closed__2 = _init_l_Lean_Parser_Attr_normCastLabel___closed__2();

View file

@ -14,9 +14,9 @@
extern "C" {
#endif
static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_WF_wfPreprocessSimpExtension;
static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____closed__6;
static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_WF_autoAttachSimpExtension;
LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4_(lean_object*);
static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____closed__7;
static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____closed__4;
@ -30,7 +30,7 @@ static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_W
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("auto_attach", 11, 11);
x_1 = lean_mk_string_unchecked("wf_preprocess", 13, 13);
return x_1;
}
}
@ -72,7 +72,7 @@ static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_W
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("autoAttachSimpExtension", 23, 23);
x_1 = lean_mk_string_unchecked("wfPreprocessSimpExtension", 25, 25);
return x_1;
}
}
@ -142,8 +142,8 @@ l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____cl
lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____closed__8);
if (builtin) {res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
l_Lean_Elab_WF_autoAttachSimpExtension = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Elab_WF_autoAttachSimpExtension);
l_Lean_Elab_WF_wfPreprocessSimpExtension = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Elab_WF_wfPreprocessSimpExtension);
lean_dec_ref(res);
}return lean_io_result_mk_ok(lean_box(0));
}

View file

@ -1039,7 +1039,7 @@ x_1 = lean_unsigned_to_nat(10u);
x_2 = 1;
x_3 = 0;
x_4 = l_Lean_Meta_Simp_defaultMaxSteps;
x_5 = lean_alloc_ctor(0, 2, 8);
x_5 = lean_alloc_ctor(0, 2, 9);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_4);
lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_2);
@ -1049,7 +1049,8 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 3, x_2);
lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 4, x_2);
lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 5, x_2);
lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 6, x_2);
lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_3);
lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_2);
lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 8, x_3);
return x_5;
}
}

View file

@ -15342,7 +15342,7 @@ _start:
lean_object* x_14; uint8_t x_15;
x_14 = lean_ctor_get(x_2, 5);
lean_inc(x_14);
x_15 = lean_ctor_get_uint8(x_14, sizeof(void*)*2 + 7);
x_15 = lean_ctor_get_uint8(x_14, sizeof(void*)*2 + 8);
lean_dec(x_14);
if (x_15 == 0)
{

File diff suppressed because it is too large Load diff

View file

@ -934,7 +934,7 @@ goto block_66;
}
else
{
lean_object* x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90;
lean_object* x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91;
x_80 = lean_ctor_get(x_2, 0);
x_81 = lean_ctor_get_uint8(x_2, sizeof(void*)*2);
x_82 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 2);
@ -943,23 +943,25 @@ x_84 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 4);
x_85 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 5);
x_86 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 6);
x_87 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 7);
x_88 = lean_ctor_get(x_2, 1);
lean_inc(x_88);
x_88 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 8);
x_89 = lean_ctor_get(x_2, 1);
lean_inc(x_89);
lean_inc(x_80);
lean_dec(x_2);
x_89 = 0;
x_90 = lean_alloc_ctor(0, 2, 8);
lean_ctor_set(x_90, 0, x_80);
lean_ctor_set(x_90, 1, x_88);
lean_ctor_set_uint8(x_90, sizeof(void*)*2, x_81);
lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 1, x_89);
lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 2, x_82);
lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 3, x_83);
lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 4, x_84);
lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 5, x_85);
lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 6, x_86);
lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 7, x_87);
x_10 = x_90;
x_90 = 0;
x_91 = lean_alloc_ctor(0, 2, 9);
lean_ctor_set(x_91, 0, x_80);
lean_ctor_set(x_91, 1, x_89);
lean_ctor_set_uint8(x_91, sizeof(void*)*2, x_81);
lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 1, x_90);
lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 2, x_82);
lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 3, x_83);
lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 4, x_84);
lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 5, x_85);
lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 6, x_86);
lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 7, x_87);
lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 8, x_88);
x_10 = x_91;
x_11 = x_76;
x_12 = x_77;
goto block_66;
@ -967,27 +969,27 @@ goto block_66;
}
else
{
uint8_t x_91;
uint8_t x_92;
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_91 = !lean_is_exclusive(x_68);
if (x_91 == 0)
x_92 = !lean_is_exclusive(x_68);
if (x_92 == 0)
{
return x_68;
}
else
{
lean_object* x_92; lean_object* x_93; lean_object* x_94;
x_92 = lean_ctor_get(x_68, 0);
x_93 = lean_ctor_get(x_68, 1);
lean_object* x_93; lean_object* x_94; lean_object* x_95;
x_93 = lean_ctor_get(x_68, 0);
x_94 = lean_ctor_get(x_68, 1);
lean_inc(x_94);
lean_inc(x_93);
lean_inc(x_92);
lean_dec(x_68);
x_94 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_94, 0, x_92);
lean_ctor_set(x_94, 1, x_93);
return x_94;
x_95 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_95, 0, x_93);
lean_ctor_set(x_95, 1, x_94);
return x_95;
}
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -96,62 +96,65 @@ uint8_t x_12;
x_12 = lean_usize_dec_eq(x_2, x_3);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; size_t x_26; size_t x_27; size_t x_28; size_t x_29; size_t x_30; lean_object* x_31; uint8_t x_32;
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; size_t x_27; size_t x_28; size_t x_29; size_t x_30; size_t x_31; lean_object* x_32; uint8_t x_33;
x_13 = lean_array_uget(x_1, x_2);
x_14 = lean_st_ref_get(x_6, x_11);
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
lean_dec(x_14);
x_17 = lean_ctor_get(x_15, 1);
lean_inc(x_17);
lean_dec(x_15);
x_18 = lean_array_get_size(x_17);
x_19 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13);
x_20 = 32;
x_21 = lean_uint64_shift_right(x_19, x_20);
x_22 = lean_uint64_xor(x_19, x_21);
x_23 = 16;
x_24 = lean_uint64_shift_right(x_22, x_23);
x_25 = lean_uint64_xor(x_22, x_24);
x_26 = lean_uint64_to_usize(x_25);
x_27 = lean_usize_of_nat(x_18);
x_17 = lean_ctor_get(x_14, 1);
lean_inc(x_17);
lean_dec(x_14);
x_18 = lean_ctor_get(x_16, 1);
lean_inc(x_18);
lean_dec(x_16);
x_19 = lean_array_get_size(x_18);
x_20 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13);
x_21 = 32;
x_22 = lean_uint64_shift_right(x_20, x_21);
x_23 = lean_uint64_xor(x_20, x_22);
x_24 = 16;
x_25 = lean_uint64_shift_right(x_23, x_24);
x_26 = lean_uint64_xor(x_23, x_25);
x_27 = lean_uint64_to_usize(x_26);
x_28 = lean_usize_of_nat(x_19);
lean_dec(x_19);
x_29 = 1;
x_30 = lean_usize_sub(x_28, x_29);
x_31 = lean_usize_land(x_27, x_30);
x_32 = lean_array_uget(x_18, x_31);
lean_dec(x_18);
x_28 = 1;
x_29 = lean_usize_sub(x_27, x_28);
x_30 = lean_usize_land(x_26, x_29);
x_31 = lean_array_uget(x_17, x_30);
lean_dec(x_17);
x_32 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_31);
lean_dec(x_31);
if (x_32 == 0)
x_33 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_32);
lean_dec(x_32);
if (x_33 == 0)
{
lean_object* x_33; size_t x_34;
x_33 = lean_array_push(x_4, x_13);
x_34 = lean_usize_add(x_2, x_28);
x_2 = x_34;
x_4 = x_33;
x_11 = x_16;
lean_object* x_34; size_t x_35;
x_34 = lean_array_push(x_4, x_13);
x_35 = lean_usize_add(x_2, x_29);
x_2 = x_35;
x_4 = x_34;
x_11 = x_17;
goto _start;
}
else
{
size_t x_36;
size_t x_37;
lean_dec(x_13);
x_36 = lean_usize_add(x_2, x_28);
x_2 = x_36;
x_11 = x_16;
x_37 = lean_usize_add(x_2, x_29);
x_2 = x_37;
x_11 = x_17;
goto _start;
}
}
else
{
lean_object* x_38;
x_38 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_38, 0, x_4);
lean_ctor_set(x_38, 1, x_11);
return x_38;
lean_object* x_39;
x_39 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_39, 0, x_4);
lean_ctor_set(x_39, 1, x_11);
return x_39;
}
}
}
@ -417,214 +420,356 @@ uint8_t x_12;
x_12 = lean_usize_dec_eq(x_2, x_3);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18;
lean_dec(x_4);
x_13 = lean_array_uget(x_1, x_2);
x_14 = lean_st_ref_take(x_6, x_11);
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_14, 1);
lean_inc(x_17);
lean_dec(x_14);
x_17 = !lean_is_exclusive(x_15);
if (x_17 == 0)
x_18 = !lean_is_exclusive(x_15);
if (x_18 == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; size_t x_28; size_t x_29; size_t x_30; size_t x_31; size_t x_32; lean_object* x_33; uint8_t x_34;
x_18 = lean_ctor_get(x_15, 0);
x_19 = lean_ctor_get(x_15, 1);
x_20 = lean_array_get_size(x_19);
x_21 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13);
x_22 = 32;
x_23 = lean_uint64_shift_right(x_21, x_22);
x_24 = lean_uint64_xor(x_21, x_23);
x_25 = 16;
lean_object* x_19; uint8_t x_20;
x_19 = lean_ctor_get(x_15, 0);
lean_dec(x_19);
x_20 = !lean_is_exclusive(x_16);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; size_t x_31; size_t x_32; size_t x_33; size_t x_34; size_t x_35; lean_object* x_36; uint8_t x_37;
x_21 = lean_ctor_get(x_16, 0);
x_22 = lean_ctor_get(x_16, 1);
x_23 = lean_array_get_size(x_22);
x_24 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13);
x_25 = 32;
x_26 = lean_uint64_shift_right(x_24, x_25);
x_27 = lean_uint64_xor(x_24, x_26);
x_28 = lean_uint64_to_usize(x_27);
x_29 = lean_usize_of_nat(x_20);
lean_dec(x_20);
x_30 = 1;
x_31 = lean_usize_sub(x_29, x_30);
x_32 = lean_usize_land(x_28, x_31);
x_33 = lean_array_uget(x_19, x_32);
x_34 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_33);
if (x_34 == 0)
x_28 = 16;
x_29 = lean_uint64_shift_right(x_27, x_28);
x_30 = lean_uint64_xor(x_27, x_29);
x_31 = lean_uint64_to_usize(x_30);
x_32 = lean_usize_of_nat(x_23);
lean_dec(x_23);
x_33 = 1;
x_34 = lean_usize_sub(x_32, x_33);
x_35 = lean_usize_land(x_31, x_34);
x_36 = lean_array_uget(x_22, x_35);
x_37 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_36);
if (x_37 == 0)
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45;
x_35 = lean_unsigned_to_nat(1u);
x_36 = lean_nat_add(x_18, x_35);
lean_dec(x_18);
x_37 = lean_box(0);
x_38 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_38, 0, x_13);
lean_ctor_set(x_38, 1, x_37);
lean_ctor_set(x_38, 2, x_33);
x_39 = lean_array_uset(x_19, x_32, x_38);
x_40 = lean_unsigned_to_nat(4u);
x_41 = lean_nat_mul(x_36, x_40);
x_42 = lean_unsigned_to_nat(3u);
x_43 = lean_nat_div(x_41, x_42);
lean_dec(x_41);
x_44 = lean_array_get_size(x_39);
x_45 = lean_nat_dec_le(x_43, x_44);
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48;
x_38 = lean_unsigned_to_nat(1u);
x_39 = lean_nat_add(x_21, x_38);
lean_dec(x_21);
x_40 = lean_box(0);
x_41 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_41, 0, x_13);
lean_ctor_set(x_41, 1, x_40);
lean_ctor_set(x_41, 2, x_36);
x_42 = lean_array_uset(x_22, x_35, x_41);
x_43 = lean_unsigned_to_nat(4u);
x_44 = lean_nat_mul(x_39, x_43);
x_45 = lean_unsigned_to_nat(3u);
x_46 = lean_nat_div(x_44, x_45);
lean_dec(x_44);
lean_dec(x_43);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; size_t x_49;
x_46 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_39);
lean_ctor_set(x_15, 1, x_46);
lean_ctor_set(x_15, 0, x_36);
x_47 = lean_st_ref_set(x_6, x_15, x_16);
x_48 = lean_ctor_get(x_47, 1);
lean_inc(x_48);
x_47 = lean_array_get_size(x_42);
x_48 = lean_nat_dec_le(x_46, x_47);
lean_dec(x_47);
x_49 = lean_usize_add(x_2, x_30);
x_2 = x_49;
x_4 = x_37;
x_11 = x_48;
lean_dec(x_46);
if (x_48 == 0)
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; size_t x_52;
x_49 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_42);
lean_ctor_set(x_16, 1, x_49);
lean_ctor_set(x_16, 0, x_39);
x_50 = lean_st_ref_set(x_6, x_15, x_17);
x_51 = lean_ctor_get(x_50, 1);
lean_inc(x_51);
lean_dec(x_50);
x_52 = lean_usize_add(x_2, x_33);
x_2 = x_52;
x_4 = x_40;
x_11 = x_51;
goto _start;
}
else
{
lean_object* x_51; lean_object* x_52; size_t x_53;
lean_ctor_set(x_15, 1, x_39);
lean_ctor_set(x_15, 0, x_36);
x_51 = lean_st_ref_set(x_6, x_15, x_16);
x_52 = lean_ctor_get(x_51, 1);
lean_inc(x_52);
lean_dec(x_51);
x_53 = lean_usize_add(x_2, x_30);
x_2 = x_53;
x_4 = x_37;
x_11 = x_52;
lean_object* x_54; lean_object* x_55; size_t x_56;
lean_ctor_set(x_16, 1, x_42);
lean_ctor_set(x_16, 0, x_39);
x_54 = lean_st_ref_set(x_6, x_15, x_17);
x_55 = lean_ctor_get(x_54, 1);
lean_inc(x_55);
lean_dec(x_54);
x_56 = lean_usize_add(x_2, x_33);
x_2 = x_56;
x_4 = x_40;
x_11 = x_55;
goto _start;
}
}
else
{
lean_object* x_55; lean_object* x_56; size_t x_57; lean_object* x_58;
lean_dec(x_33);
lean_object* x_58; lean_object* x_59; size_t x_60; lean_object* x_61;
lean_dec(x_36);
lean_dec(x_13);
x_55 = lean_st_ref_set(x_6, x_15, x_16);
x_56 = lean_ctor_get(x_55, 1);
lean_inc(x_56);
lean_dec(x_55);
x_57 = lean_usize_add(x_2, x_30);
x_58 = lean_box(0);
x_2 = x_57;
x_4 = x_58;
x_11 = x_56;
x_58 = lean_st_ref_set(x_6, x_15, x_17);
x_59 = lean_ctor_get(x_58, 1);
lean_inc(x_59);
lean_dec(x_58);
x_60 = lean_usize_add(x_2, x_33);
x_61 = lean_box(0);
x_2 = x_60;
x_4 = x_61;
x_11 = x_59;
goto _start;
}
}
else
{
lean_object* x_60; lean_object* x_61; lean_object* x_62; uint64_t x_63; uint64_t x_64; uint64_t x_65; uint64_t x_66; uint64_t x_67; uint64_t x_68; uint64_t x_69; size_t x_70; size_t x_71; size_t x_72; size_t x_73; size_t x_74; lean_object* x_75; uint8_t x_76;
x_60 = lean_ctor_get(x_15, 0);
x_61 = lean_ctor_get(x_15, 1);
lean_inc(x_61);
lean_inc(x_60);
lean_dec(x_15);
x_62 = lean_array_get_size(x_61);
x_63 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13);
x_64 = 32;
x_65 = lean_uint64_shift_right(x_63, x_64);
x_66 = lean_uint64_xor(x_63, x_65);
x_67 = 16;
lean_object* x_63; lean_object* x_64; lean_object* x_65; uint64_t x_66; uint64_t x_67; uint64_t x_68; uint64_t x_69; uint64_t x_70; uint64_t x_71; uint64_t x_72; size_t x_73; size_t x_74; size_t x_75; size_t x_76; size_t x_77; lean_object* x_78; uint8_t x_79;
x_63 = lean_ctor_get(x_16, 0);
x_64 = lean_ctor_get(x_16, 1);
lean_inc(x_64);
lean_inc(x_63);
lean_dec(x_16);
x_65 = lean_array_get_size(x_64);
x_66 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13);
x_67 = 32;
x_68 = lean_uint64_shift_right(x_66, x_67);
x_69 = lean_uint64_xor(x_66, x_68);
x_70 = lean_uint64_to_usize(x_69);
x_71 = lean_usize_of_nat(x_62);
lean_dec(x_62);
x_72 = 1;
x_73 = lean_usize_sub(x_71, x_72);
x_74 = lean_usize_land(x_70, x_73);
x_75 = lean_array_uget(x_61, x_74);
x_76 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_75);
if (x_76 == 0)
x_70 = 16;
x_71 = lean_uint64_shift_right(x_69, x_70);
x_72 = lean_uint64_xor(x_69, x_71);
x_73 = lean_uint64_to_usize(x_72);
x_74 = lean_usize_of_nat(x_65);
lean_dec(x_65);
x_75 = 1;
x_76 = lean_usize_sub(x_74, x_75);
x_77 = lean_usize_land(x_73, x_76);
x_78 = lean_array_uget(x_64, x_77);
x_79 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_78);
if (x_79 == 0)
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87;
x_77 = lean_unsigned_to_nat(1u);
x_78 = lean_nat_add(x_60, x_77);
lean_dec(x_60);
x_79 = lean_box(0);
x_80 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_80, 0, x_13);
lean_ctor_set(x_80, 1, x_79);
lean_ctor_set(x_80, 2, x_75);
x_81 = lean_array_uset(x_61, x_74, x_80);
x_82 = lean_unsigned_to_nat(4u);
x_83 = lean_nat_mul(x_78, x_82);
x_84 = lean_unsigned_to_nat(3u);
x_85 = lean_nat_div(x_83, x_84);
lean_dec(x_83);
x_86 = lean_array_get_size(x_81);
x_87 = lean_nat_dec_le(x_85, x_86);
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; uint8_t x_90;
x_80 = lean_unsigned_to_nat(1u);
x_81 = lean_nat_add(x_63, x_80);
lean_dec(x_63);
x_82 = lean_box(0);
x_83 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_83, 0, x_13);
lean_ctor_set(x_83, 1, x_82);
lean_ctor_set(x_83, 2, x_78);
x_84 = lean_array_uset(x_64, x_77, x_83);
x_85 = lean_unsigned_to_nat(4u);
x_86 = lean_nat_mul(x_81, x_85);
x_87 = lean_unsigned_to_nat(3u);
x_88 = lean_nat_div(x_86, x_87);
lean_dec(x_86);
lean_dec(x_85);
if (x_87 == 0)
x_89 = lean_array_get_size(x_84);
x_90 = lean_nat_dec_le(x_88, x_89);
lean_dec(x_89);
lean_dec(x_88);
if (x_90 == 0)
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; size_t x_92;
x_88 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_81);
x_89 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_89, 0, x_78);
lean_ctor_set(x_89, 1, x_88);
x_90 = lean_st_ref_set(x_6, x_89, x_16);
x_91 = lean_ctor_get(x_90, 1);
lean_inc(x_91);
lean_dec(x_90);
x_92 = lean_usize_add(x_2, x_72);
x_2 = x_92;
x_4 = x_79;
x_11 = x_91;
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; size_t x_95;
x_91 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_84);
x_92 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_92, 0, x_81);
lean_ctor_set(x_92, 1, x_91);
lean_ctor_set(x_15, 0, x_92);
x_93 = lean_st_ref_set(x_6, x_15, x_17);
x_94 = lean_ctor_get(x_93, 1);
lean_inc(x_94);
lean_dec(x_93);
x_95 = lean_usize_add(x_2, x_75);
x_2 = x_95;
x_4 = x_82;
x_11 = x_94;
goto _start;
}
else
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; size_t x_97;
x_94 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_94, 0, x_78);
lean_ctor_set(x_94, 1, x_81);
x_95 = lean_st_ref_set(x_6, x_94, x_16);
x_96 = lean_ctor_get(x_95, 1);
lean_inc(x_96);
lean_dec(x_95);
x_97 = lean_usize_add(x_2, x_72);
x_2 = x_97;
x_4 = x_79;
x_11 = x_96;
lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100;
x_97 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_97, 0, x_81);
lean_ctor_set(x_97, 1, x_84);
lean_ctor_set(x_15, 0, x_97);
x_98 = lean_st_ref_set(x_6, x_15, x_17);
x_99 = lean_ctor_get(x_98, 1);
lean_inc(x_99);
lean_dec(x_98);
x_100 = lean_usize_add(x_2, x_75);
x_2 = x_100;
x_4 = x_82;
x_11 = x_99;
goto _start;
}
}
else
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; size_t x_102; lean_object* x_103;
lean_dec(x_75);
lean_object* x_102; lean_object* x_103; lean_object* x_104; size_t x_105; lean_object* x_106;
lean_dec(x_78);
lean_dec(x_13);
x_99 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_99, 0, x_60);
lean_ctor_set(x_99, 1, x_61);
x_100 = lean_st_ref_set(x_6, x_99, x_16);
x_101 = lean_ctor_get(x_100, 1);
lean_inc(x_101);
lean_dec(x_100);
x_102 = lean_usize_add(x_2, x_72);
x_103 = lean_box(0);
x_2 = x_102;
x_4 = x_103;
x_11 = x_101;
x_102 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_102, 0, x_63);
lean_ctor_set(x_102, 1, x_64);
lean_ctor_set(x_15, 0, x_102);
x_103 = lean_st_ref_set(x_6, x_15, x_17);
x_104 = lean_ctor_get(x_103, 1);
lean_inc(x_104);
lean_dec(x_103);
x_105 = lean_usize_add(x_2, x_75);
x_106 = lean_box(0);
x_2 = x_105;
x_4 = x_106;
x_11 = x_104;
goto _start;
}
}
}
else
{
lean_object* x_105;
x_105 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_105, 0, x_4);
lean_ctor_set(x_105, 1, x_11);
return x_105;
lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint64_t x_113; uint64_t x_114; uint64_t x_115; uint64_t x_116; uint64_t x_117; uint64_t x_118; uint64_t x_119; size_t x_120; size_t x_121; size_t x_122; size_t x_123; size_t x_124; lean_object* x_125; uint8_t x_126;
x_108 = lean_ctor_get(x_15, 1);
lean_inc(x_108);
lean_dec(x_15);
x_109 = lean_ctor_get(x_16, 0);
lean_inc(x_109);
x_110 = lean_ctor_get(x_16, 1);
lean_inc(x_110);
if (lean_is_exclusive(x_16)) {
lean_ctor_release(x_16, 0);
lean_ctor_release(x_16, 1);
x_111 = x_16;
} else {
lean_dec_ref(x_16);
x_111 = lean_box(0);
}
x_112 = lean_array_get_size(x_110);
x_113 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13);
x_114 = 32;
x_115 = lean_uint64_shift_right(x_113, x_114);
x_116 = lean_uint64_xor(x_113, x_115);
x_117 = 16;
x_118 = lean_uint64_shift_right(x_116, x_117);
x_119 = lean_uint64_xor(x_116, x_118);
x_120 = lean_uint64_to_usize(x_119);
x_121 = lean_usize_of_nat(x_112);
lean_dec(x_112);
x_122 = 1;
x_123 = lean_usize_sub(x_121, x_122);
x_124 = lean_usize_land(x_120, x_123);
x_125 = lean_array_uget(x_110, x_124);
x_126 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_125);
if (x_126 == 0)
{
lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137;
x_127 = lean_unsigned_to_nat(1u);
x_128 = lean_nat_add(x_109, x_127);
lean_dec(x_109);
x_129 = lean_box(0);
x_130 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_130, 0, x_13);
lean_ctor_set(x_130, 1, x_129);
lean_ctor_set(x_130, 2, x_125);
x_131 = lean_array_uset(x_110, x_124, x_130);
x_132 = lean_unsigned_to_nat(4u);
x_133 = lean_nat_mul(x_128, x_132);
x_134 = lean_unsigned_to_nat(3u);
x_135 = lean_nat_div(x_133, x_134);
lean_dec(x_133);
x_136 = lean_array_get_size(x_131);
x_137 = lean_nat_dec_le(x_135, x_136);
lean_dec(x_136);
lean_dec(x_135);
if (x_137 == 0)
{
lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; size_t x_143;
x_138 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_131);
if (lean_is_scalar(x_111)) {
x_139 = lean_alloc_ctor(0, 2, 0);
} else {
x_139 = x_111;
}
lean_ctor_set(x_139, 0, x_128);
lean_ctor_set(x_139, 1, x_138);
x_140 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_140, 0, x_139);
lean_ctor_set(x_140, 1, x_108);
x_141 = lean_st_ref_set(x_6, x_140, x_17);
x_142 = lean_ctor_get(x_141, 1);
lean_inc(x_142);
lean_dec(x_141);
x_143 = lean_usize_add(x_2, x_122);
x_2 = x_143;
x_4 = x_129;
x_11 = x_142;
goto _start;
}
else
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; size_t x_149;
if (lean_is_scalar(x_111)) {
x_145 = lean_alloc_ctor(0, 2, 0);
} else {
x_145 = x_111;
}
lean_ctor_set(x_145, 0, x_128);
lean_ctor_set(x_145, 1, x_131);
x_146 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_146, 0, x_145);
lean_ctor_set(x_146, 1, x_108);
x_147 = lean_st_ref_set(x_6, x_146, x_17);
x_148 = lean_ctor_get(x_147, 1);
lean_inc(x_148);
lean_dec(x_147);
x_149 = lean_usize_add(x_2, x_122);
x_2 = x_149;
x_4 = x_129;
x_11 = x_148;
goto _start;
}
}
else
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; size_t x_155; lean_object* x_156;
lean_dec(x_125);
lean_dec(x_13);
if (lean_is_scalar(x_111)) {
x_151 = lean_alloc_ctor(0, 2, 0);
} else {
x_151 = x_111;
}
lean_ctor_set(x_151, 0, x_109);
lean_ctor_set(x_151, 1, x_110);
x_152 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_152, 0, x_151);
lean_ctor_set(x_152, 1, x_108);
x_153 = lean_st_ref_set(x_6, x_152, x_17);
x_154 = lean_ctor_get(x_153, 1);
lean_inc(x_154);
lean_dec(x_153);
x_155 = lean_usize_add(x_2, x_122);
x_156 = lean_box(0);
x_2 = x_155;
x_4 = x_156;
x_11 = x_154;
goto _start;
}
}
}
else
{
lean_object* x_158;
x_158 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_158, 0, x_4);
lean_ctor_set(x_158, 1, x_11);
return x_158;
}
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
// Lean compiler output
// Module: Lean.Meta
// Imports: Lean.Meta.Basic Lean.Meta.LevelDefEq Lean.Meta.WHNF Lean.Meta.InferType Lean.Meta.FunInfo Lean.Meta.ExprDefEq Lean.Meta.DecLevel Lean.Meta.DiscrTree Lean.Meta.Reduce Lean.Meta.Instances Lean.Meta.AbstractMVars Lean.Meta.SynthInstance Lean.Meta.AppBuilder Lean.Meta.Sorry Lean.Meta.Tactic Lean.Meta.KAbstract Lean.Meta.RecursorInfo Lean.Meta.GeneralizeTelescope Lean.Meta.Match Lean.Meta.ReduceEval Lean.Meta.Closure Lean.Meta.AbstractNestedProofs Lean.Meta.ForEachExpr Lean.Meta.Transform Lean.Meta.PPGoal Lean.Meta.UnificationHint Lean.Meta.Inductive Lean.Meta.SizeOf Lean.Meta.IndPredBelow Lean.Meta.Coe Lean.Meta.CollectFVars Lean.Meta.GeneralizeVars Lean.Meta.Injective Lean.Meta.Structure Lean.Meta.Constructions Lean.Meta.CongrTheorems Lean.Meta.Eqns Lean.Meta.ExprLens Lean.Meta.ExprTraverse Lean.Meta.Eval Lean.Meta.CoeAttr Lean.Meta.Iterator Lean.Meta.LazyDiscrTree Lean.Meta.LitValues Lean.Meta.CheckTactic Lean.Meta.Canonicalizer Lean.Meta.Diagnostics
// Imports: Lean.Meta.Basic Lean.Meta.LevelDefEq Lean.Meta.WHNF Lean.Meta.InferType Lean.Meta.FunInfo Lean.Meta.ExprDefEq Lean.Meta.DecLevel Lean.Meta.DiscrTree Lean.Meta.Reduce Lean.Meta.Instances Lean.Meta.AbstractMVars Lean.Meta.SynthInstance Lean.Meta.AppBuilder Lean.Meta.Sorry Lean.Meta.Tactic Lean.Meta.KAbstract Lean.Meta.RecursorInfo Lean.Meta.GeneralizeTelescope Lean.Meta.Match Lean.Meta.ReduceEval Lean.Meta.Closure Lean.Meta.AbstractNestedProofs Lean.Meta.ForEachExpr Lean.Meta.Transform Lean.Meta.PPGoal Lean.Meta.UnificationHint Lean.Meta.Inductive Lean.Meta.SizeOf Lean.Meta.IndPredBelow Lean.Meta.Coe Lean.Meta.CollectFVars Lean.Meta.GeneralizeVars Lean.Meta.Injective Lean.Meta.Structure Lean.Meta.Constructions Lean.Meta.CongrTheorems Lean.Meta.Eqns Lean.Meta.ExprLens Lean.Meta.ExprTraverse Lean.Meta.Eval Lean.Meta.CoeAttr Lean.Meta.Iterator Lean.Meta.LazyDiscrTree Lean.Meta.LitValues Lean.Meta.CheckTactic Lean.Meta.Canonicalizer Lean.Meta.Diagnostics Lean.Meta.BinderNameHint
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
@ -60,6 +60,7 @@ lean_object* initialize_Lean_Meta_LitValues(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Meta_CheckTactic(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Meta_Canonicalizer(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Meta_Diagnostics(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Meta_BinderNameHint(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Meta(uint8_t builtin, lean_object* w) {
lean_object * res;
@ -206,6 +207,9 @@ lean_dec_ref(res);
res = initialize_Lean_Meta_Diagnostics(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Meta_BinderNameHint(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

7982
stage0/stdlib/Lean/Meta/BinderNameHint.c generated Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff