chore: update stage0

This commit is contained in:
Lean stage0 autoupdater 2025-03-10 22:14:37 +00:00
parent aca1d54514
commit dab4908317
4 changed files with 720 additions and 469 deletions

View file

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

View file

@ -208,6 +208,7 @@ static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__L
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse;
static lean_object* l_Lean_Parser_Tactic_tacticRefine__lift_x27_____closed__4;
static lean_object* l_Lean_Parser_Tactic_location___closed__1;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__13;
static lean_object* l_Lean_Parser_Tactic_rename___closed__7;
static lean_object* l_Lean_Parser_Tactic_tacticHave_____closed__1;
static lean_object* l_Lean_Parser_Tactic_contradiction___closed__1;
@ -233,7 +234,6 @@ static lean_object* l_Lean_Parser_Tactic_letrec___closed__10;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_right;
static lean_object* l_Lean_Parser_Tactic_specialize___closed__2;
static lean_object* l_Lean_Parser_Tactic_tacticSuffices_____closed__8;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__19;
static lean_object* l_Lean_Parser_Tactic_dsimpTrace___closed__7;
static lean_object* l_Lean_Parser_Tactic_location___closed__11;
static lean_object* l_Lean_Parser_Tactic_rewriteSeq___closed__5;
@ -363,7 +363,6 @@ static lean_object* l_Lean_Parser_Tactic_rwSeq___closed__3;
static lean_object* l_Lean_Parser_Tactic_tacIfThenElse___closed__8;
static lean_object* l_Lean_Parser_Tactic_intro___closed__4;
static lean_object* l_Lean_Parser_Tactic_dsimpArgs___closed__1;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__20;
static lean_object* l_Lean_Parser_Tactic_elimTarget___closed__7;
static lean_object* l_Lean_Parser_Tactic_configItem___closed__4;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticHave____1___closed__3;
@ -412,7 +411,6 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRul
static lean_object* l_Lean_Parser_Tactic_delta___closed__8;
static lean_object* l_Lean_Parser_Tactic_configItem___closed__1;
static lean_object* l_Lean_Parser_Tactic_traceState___closed__3;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__15;
lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_changeWith___closed__7;
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
@ -424,6 +422,7 @@ static lean_object* l_Lean_Parser_Tactic_solveByElim___closed__2;
static lean_object* l_Lean_Parser_Tactic_dsimpTrace___closed__5;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticSimp__all_x3f_x21__;
static lean_object* l_Lean_Parser_Tactic_dbgTrace___closed__1;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__8;
static lean_object* l_Lean_Parser_Tactic_change___closed__7;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__by_x3f__1___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_case_x27___closed__1;
@ -503,6 +502,7 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRul
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticExfalso__1___closed__14;
static lean_object* l_Lean_Parser_Tactic_bvTraceMacro___closed__1;
static lean_object* l_Lean_Parser_Tactic_tacticAdmit___closed__2;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__7;
static lean_object* l_Lean_Parser_Tactic_posConfigItem___closed__2;
static lean_object* l_tacticGet__elem__tactic___closed__3;
static lean_object* l_Lean_Parser_Tactic_showTermElab___closed__3;
@ -510,8 +510,10 @@ static lean_object* l_Lean_Parser_Tactic_injections___closed__2;
static lean_object* l_Lean_Parser_Tactic_suggestPremises___closed__1;
static lean_object* l_tacticGet__elem__tactic__trivial___closed__5;
static lean_object* l_Lean_Parser_Tactic_valConfigItem___closed__19;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__17;
static lean_object* l_Lean_Parser_Tactic_tacticNofun___closed__3;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticHave____1___closed__17;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__1;
static lean_object* l_Lean_Parser_Tactic_as__aux__lemma___closed__1;
static lean_object* l_Lean_Parser_Tactic_by_x3f___closed__3;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_rename;
@ -582,8 +584,8 @@ static lean_object* l_Lean_Parser_Tactic_tacticLetI_____closed__2;
static lean_object* l_Lean_Parser_Tactic_changeWith___closed__4;
static lean_object* l_Lean_Parser_Tactic_config___closed__5;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticHave____1___closed__14;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_locationType;
static lean_object* l_Lean_Parser_Tactic_withAnnotateState___closed__6;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__12;
static lean_object* l_Lean_Parser_Tactic_applyRules___closed__8;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_simpAllTrace;
static lean_object* l_Lean_Parser_Tactic_first___closed__3;
@ -640,6 +642,7 @@ static lean_object* l_Lean_Parser_Tactic_withReducibleAndInstances___closed__3;
static lean_object* l_Lean_Parser_Tactic_rwSeq___closed__5;
static lean_object* l_Lean_Parser_Tactic_first___closed__9;
static lean_object* l_Lean_Parser_Tactic_replace___closed__3;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__9;
static lean_object* l_Lean_Parser_Tactic_intro___closed__11;
static lean_object* l_Lean_Parser_Tactic_configItem___closed__2;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticLet_x27__;
@ -650,6 +653,7 @@ static lean_object* l_Lean_Parser_Tactic_delta___closed__4;
static lean_object* l_Lean_Parser_Tactic_runTac___closed__6;
static lean_object* l_Lean_Parser_Tactic_tacticHave_____closed__3;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticTry____1___closed__2;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__4;
static lean_object* l_Lean_Parser_Tactic_tacticRepeat_____closed__3;
static lean_object* l_Lean_Parser_Tactic_traceMessage___closed__9;
static lean_object* l_Lean_Parser_Tactic_showTermElab___closed__1;
@ -725,6 +729,7 @@ static lean_object* l_Lean_Parser_Tactic_tacticNomatch___x2c_x2c___closed__2;
static lean_object* l_term_u2039___u203a___closed__7;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticRepeat____1___closed__1;
static lean_object* l_Lean_Parser_Tactic_simpTrace___closed__6;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__11;
static lean_object* l_Lean_Parser_Tactic_pushCast___closed__8;
static lean_object* l_Lean_Parser_Tactic_sleep___closed__3;
static lean_object* l_Lean_Parser_Tactic_valConfigItem___closed__1;
@ -790,6 +795,7 @@ static lean_object* l_Lean_Parser_Tactic_withAnnotateState___closed__5;
static lean_object* l_Lean_Parser_Tactic_symmSaturate___closed__4;
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__20;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_skip;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__15;
static lean_object* l_Lean_Parser_Tactic_intros___closed__11;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_case_x27;
static lean_object* l_Lean_Parser_Tactic_tacticSimpa_x3f_____closed__4;
@ -902,6 +908,7 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticNomatch___x2c_x2c;
static lean_object* l_Lean_Parser_Tactic_anyGoals___closed__2;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_paren;
static lean_object* l_Lean_Parser_Tactic_simpErase___closed__3;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__5;
static lean_object* l_Lean_Parser_Tactic_bvNormalizeMacro___closed__5;
static lean_object* l_Lean_Parser_Tactic_dbgTrace___closed__2;
static lean_object* l_Lean_Parser_Tactic_first___closed__1;
@ -934,6 +941,7 @@ 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;
static lean_object* l_Lean_Parser_Tactic_injection___closed__11;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__14;
static lean_object* l_Lean_Parser_Tactic_clear___closed__4;
static lean_object* l_Lean_Parser_Attr_normCastLabel___closed__11;
static lean_object* l_Lean_Parser_Tactic_apply___closed__1;
@ -1009,7 +1017,6 @@ static lean_object* l_Lean_Parser_Tactic_induction___closed__9;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticNofun;
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_tacticRefine__lift_x27_____closed__5;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__14;
static lean_object* l_Lean_Parser_Tactic_apply___closed__2;
static lean_object* l_Lean_Parser_Tactic_location___closed__2;
static lean_object* l_Lean_Parser_Tactic_first___closed__24;
@ -1194,6 +1201,7 @@ static lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__10;
lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_tacticHave_____closed__8;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticHave_x27____1___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_locationType___closed__2;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticDsimp_x3f_x21____1___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_tactic___x3c_x3b_x3e_____closed__5;
static lean_object* l_Lean_Parser_Tactic_falseOrByContra___closed__4;
@ -1267,6 +1275,7 @@ static lean_object* l_Lean_Parser_Tactic_tacticTrivial___closed__2;
static lean_object* l_term_u2039___u203a___closed__6;
static lean_object* l_Lean_Parser_Tactic_simpStar___closed__5;
static lean_object* l_Lean_Parser_Tactic_simpPost___closed__3;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__12;
static lean_object* l_Lean_Parser_Tactic_induction___closed__5;
static lean_object* l_Lean_Parser_Tactic_intros___closed__5;
static lean_object* l_Lean_Parser_Tactic_showTerm___closed__4;
@ -1299,7 +1308,6 @@ 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____;
static lean_object* l_Lean_Parser_Tactic_change___closed__3;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__16;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_first;
static lean_object* l_Lean_Parser_Tactic_simpTrace___closed__4;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticNext___x3d_x3e____1___closed__4;
@ -1325,7 +1333,6 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_locationHyp;
static lean_object* l_Lean_Parser_Tactic_tacticAc__nf_____closed__4;
static lean_object* l_Lean_Parser_Tactic_simpa___closed__6;
static lean_object* l_Lean_Parser_Tactic_cases___closed__2;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__17;
static lean_object* l_Lean_Parser_Tactic_by_x3f___closed__4;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticShow____1___closed__2;
static lean_object* l_Lean_Parser_Tactic_normCastAddElim___closed__6;
@ -1359,6 +1366,7 @@ static lean_object* l_Lean_Parser_Tactic_tacticStop_____closed__6;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticRfl__2(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_changeWith___closed__5;
static lean_object* l_Lean_Parser_Tactic_tacticSuffices_____closed__7;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__16;
static lean_object* l_Lean_Parser_Tactic_rwSeq___closed__4;
static lean_object* l_Lean_Parser_Tactic_tacticLet_____closed__5;
static lean_object* l_Lean_Parser_Tactic_tacticSuffices_____closed__3;
@ -1412,7 +1420,6 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRul
static lean_object* l_Lean_Parser_Tactic_tacticSimpa_x21_____closed__3;
static lean_object* l_Lean_Parser_Tactic_tacticNext___x3d_x3e_____closed__5;
static lean_object* l_Lean_Parser_Tactic_generalize___closed__4;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__13;
static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__2;
static lean_object* l_Lean_Parser_Tactic_elimTarget___closed__8;
static lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__6;
@ -1450,7 +1457,6 @@ static lean_object* l_Lean_Parser_Tactic_tacticExists___x2c_x2c___closed__4;
static lean_object* l_Lean_Parser_Tactic_rotateRight___closed__2;
static lean_object* l_Lean_Parser_Tactic_valConfigItem___closed__29;
static lean_object* l_tacticGet__elem__tactic___closed__5;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__18;
static lean_object* l_Lean_Parser_Tactic_specialize___closed__3;
static lean_object* l_Lean_Parser_Tactic_unfold___closed__3;
static lean_object* l_Lean_Parser_Tactic_fail___closed__1;
@ -1459,6 +1465,7 @@ static lean_object* l_Lean_Parser_Tactic_showTermElab___closed__5;
static lean_object* l_Lean_Parser_Tactic_exact_x3f___closed__8;
static lean_object* l_Lean_Parser_Tactic_allGoals___closed__2;
static lean_object* l_Lean_Parser_Tactic_left___closed__1;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__3;
static lean_object* l_Lean_Parser_Tactic_refine_x27___closed__5;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticSimpa_x3f____1___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticRfl__3___closed__5;
@ -1521,6 +1528,7 @@ static lean_object* l_Lean_Parser_Tactic_rename___closed__9;
static lean_object* l_Lean_Parser_Tactic_dsimpTrace___closed__4;
static lean_object* l_Lean_Parser_Tactic_SolveByElim_arg___closed__1;
static lean_object* l_Lean_Parser_Tactic_SolveByElim_using_____closed__1;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__6;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacIfThenElse;
static lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__3;
static lean_object* l_Lean_Parser_Tactic_focus___closed__6;
@ -1592,9 +1600,7 @@ static lean_object* l_Lean_Parser_Tactic_valConfigItem___closed__10;
static lean_object* l_Lean_Parser_Tactic_first___closed__14;
static lean_object* l_Lean_Parser_Tactic_config___closed__1;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticAnd__intros__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__10;
static lean_object* l_Lean_Parser_Tactic_classical___closed__6;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__11;
static lean_object* l_Lean_Parser_Tactic_first___closed__10;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticHaveI____1___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Tactic_injection___closed__4;
@ -1613,7 +1619,6 @@ static lean_object* l_Lean_Parser_Tactic_tacIfThenElse___closed__5;
static lean_object* l_Lean_Parser_Tactic_changeWith___closed__8;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticAnd__intros__1___closed__2;
static lean_object* l_Lean_Parser_Tactic_tacticShow_____closed__4;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__9;
static lean_object* l_Lean_Parser_Tactic_tacticNofun___closed__5;
static lean_object* l_Lean_Parser_Attr_simp___closed__4;
static lean_object* l_Lean_Parser_Tactic_bvDecideMacro___closed__2;
@ -1678,7 +1683,6 @@ static lean_object* l_Lean_Parser_Tactic_SolveByElim_star___closed__3;
static lean_object* l_Lean_Parser_Tactic_rotateLeft___closed__1;
static lean_object* l_Lean_Parser_Tactic_simpArgs___closed__3;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_bvTraceMacro;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__8;
static lean_object* l_Lean_Parser_Tactic_tacticNorm__cast_______closed__4;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_change;
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticRepeat__;
@ -1739,6 +1743,7 @@ static lean_object* l_Lean_Parser_Tactic_injection___closed__6;
static lean_object* l_Lean_Parser_Tactic_tacticSuffices_____closed__1;
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticHave____1___closed__11;
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__6;
static lean_object* l_Lean_Parser_Tactic_locationType___closed__10;
static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__1;
static lean_object* l_Lean_Parser_Tactic_as__aux__lemma___closed__14;
static lean_object* l_Lean_Parser_Tactic_change___closed__1;
@ -8398,6 +8403,204 @@ x_1 = l_Lean_Parser_Tactic_locationWildcard___closed__5;
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("locationType", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___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_Tactic_as__aux__lemma___closed__3;
x_4 = l_Lean_Parser_Tactic_locationType___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_Tactic_locationType___closed__3() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("patternIgnore", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Parser_Tactic_locationType___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___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_Tactic_intro___closed__7;
x_3 = l_Lean_Parser_Tactic_posConfigItem___closed__7;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__6() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("-", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Tactic_locationType___closed__6;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__8() {
_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_Tactic_locationType___closed__5;
x_3 = l_Lean_Parser_Tactic_locationType___closed__7;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Tactic_valConfigItem___closed__4;
x_2 = l_Lean_Parser_Tactic_locationType___closed__8;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Tactic_first___closed__8;
x_2 = l_Lean_Parser_Tactic_locationType___closed__9;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__11() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("", 3, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Tactic_valConfigItem___closed__7;
x_2 = l_Lean_Parser_Tactic_locationType___closed__11;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Tactic_locationType___closed__11;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Tactic_locationType___closed__11;
x_2 = l_Lean_Parser_Tactic_locationType___closed__12;
x_3 = l_Lean_Parser_Tactic_locationType___closed__13;
x_4 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Tactic_intros___closed__5;
x_2 = l_Lean_Parser_Tactic_locationType___closed__10;
x_3 = l_Lean_Parser_Tactic_locationType___closed__14;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Tactic_locationType___closed__4;
x_2 = l_Lean_Parser_Tactic_locationType___closed__15;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Tactic_locationType___closed__1;
x_2 = l_Lean_Parser_Tactic_locationType___closed__2;
x_3 = l_Lean_Parser_Tactic_locationType___closed__16;
x_4 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationType() {
_start:
{
lean_object* x_1;
x_1 = l_Lean_Parser_Tactic_locationType___closed__17;
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__1() {
_start:
{
@ -8421,206 +8624,62 @@ return x_5;
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__3() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("patternIgnore", 13, 13);
return x_1;
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_Tactic_withAnnotateState___closed__11;
x_3 = l_Lean_Parser_Tactic_locationType___closed__15;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_1 = l_Lean_Parser_Tactic_locationType___closed__4;
x_2 = l_Lean_Parser_Tactic_locationHyp___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___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_Tactic_intro___closed__7;
x_3 = l_Lean_Parser_Tactic_posConfigItem___closed__7;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Tactic_rotateLeft___closed__6;
x_2 = l_Lean_Parser_Tactic_locationHyp___closed__4;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__6() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("-", 1, 1);
return x_1;
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_Tactic_revert___closed__6;
x_3 = l_Lean_Parser_Tactic_locationHyp___closed__5;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Tactic_locationHyp___closed__6;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__8() {
_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_Tactic_locationHyp___closed__5;
x_3 = l_Lean_Parser_Tactic_locationHyp___closed__7;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Tactic_valConfigItem___closed__4;
x_2 = l_Lean_Parser_Tactic_locationHyp___closed__8;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Tactic_first___closed__8;
x_2 = l_Lean_Parser_Tactic_locationHyp___closed__9;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__11() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("", 3, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Tactic_valConfigItem___closed__7;
x_2 = l_Lean_Parser_Tactic_locationHyp___closed__11;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Parser_Tactic_locationHyp___closed__11;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Tactic_locationHyp___closed__11;
x_2 = l_Lean_Parser_Tactic_locationHyp___closed__12;
x_3 = l_Lean_Parser_Tactic_locationHyp___closed__13;
x_4 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Tactic_intros___closed__5;
x_2 = l_Lean_Parser_Tactic_locationHyp___closed__10;
x_3 = l_Lean_Parser_Tactic_locationHyp___closed__14;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__16() {
_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_Tactic_withAnnotateState___closed__11;
x_3 = l_Lean_Parser_Tactic_locationHyp___closed__15;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Tactic_locationHyp___closed__4;
x_2 = l_Lean_Parser_Tactic_locationHyp___closed__16;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Tactic_rotateLeft___closed__6;
x_2 = l_Lean_Parser_Tactic_locationHyp___closed__17;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__19() {
_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_Tactic_revert___closed__6;
x_3 = l_Lean_Parser_Tactic_locationHyp___closed__18;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Parser_Tactic_locationHyp___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Tactic_locationHyp___closed__1;
x_2 = l_Lean_Parser_Tactic_locationHyp___closed__2;
x_3 = l_Lean_Parser_Tactic_locationHyp___closed__19;
x_3 = l_Lean_Parser_Tactic_locationHyp___closed__6;
x_4 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
@ -8632,7 +8691,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_locationHyp() {
_start:
{
lean_object* x_1;
x_1 = l_Lean_Parser_Tactic_locationHyp___closed__20;
x_1 = l_Lean_Parser_Tactic_locationHyp___closed__7;
return x_1;
}
}
@ -9092,7 +9151,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_rwRule___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Tactic_locationHyp___closed__4;
x_1 = l_Lean_Parser_Tactic_locationType___closed__4;
x_2 = l_Lean_Parser_Tactic_rwRule___closed__11;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
@ -10334,7 +10393,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_discharger___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Tactic_locationHyp___closed__4;
x_1 = l_Lean_Parser_Tactic_locationType___closed__4;
x_2 = l_Lean_Parser_Tactic_valConfigItem___closed__16;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
@ -10673,7 +10732,7 @@ _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_Tactic_locationHyp___closed__7;
x_2 = l_Lean_Parser_Tactic_locationType___closed__7;
x_3 = l_Lean_Parser_Tactic_intro___closed__18;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
@ -21370,7 +21429,7 @@ lean_inc(x_10);
x_18 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_18, 0, x_10);
lean_ctor_set(x_18, 1, x_17);
x_19 = l_Lean_Parser_Tactic_locationHyp___closed__6;
x_19 = l_Lean_Parser_Tactic_locationType___closed__6;
lean_inc(x_10);
x_20 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_20, 0, x_10);
@ -23700,7 +23759,7 @@ _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_Tactic_locationHyp___closed__7;
x_2 = l_Lean_Parser_Tactic_locationType___closed__7;
x_3 = l_Lean_Parser_Tactic_intros___closed__8;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_1);
@ -27203,6 +27262,42 @@ l_Lean_Parser_Tactic_locationWildcard___closed__5 = _init_l_Lean_Parser_Tactic_l
lean_mark_persistent(l_Lean_Parser_Tactic_locationWildcard___closed__5);
l_Lean_Parser_Tactic_locationWildcard = _init_l_Lean_Parser_Tactic_locationWildcard();
lean_mark_persistent(l_Lean_Parser_Tactic_locationWildcard);
l_Lean_Parser_Tactic_locationType___closed__1 = _init_l_Lean_Parser_Tactic_locationType___closed__1();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__1);
l_Lean_Parser_Tactic_locationType___closed__2 = _init_l_Lean_Parser_Tactic_locationType___closed__2();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__2);
l_Lean_Parser_Tactic_locationType___closed__3 = _init_l_Lean_Parser_Tactic_locationType___closed__3();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__3);
l_Lean_Parser_Tactic_locationType___closed__4 = _init_l_Lean_Parser_Tactic_locationType___closed__4();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__4);
l_Lean_Parser_Tactic_locationType___closed__5 = _init_l_Lean_Parser_Tactic_locationType___closed__5();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__5);
l_Lean_Parser_Tactic_locationType___closed__6 = _init_l_Lean_Parser_Tactic_locationType___closed__6();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__6);
l_Lean_Parser_Tactic_locationType___closed__7 = _init_l_Lean_Parser_Tactic_locationType___closed__7();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__7);
l_Lean_Parser_Tactic_locationType___closed__8 = _init_l_Lean_Parser_Tactic_locationType___closed__8();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__8);
l_Lean_Parser_Tactic_locationType___closed__9 = _init_l_Lean_Parser_Tactic_locationType___closed__9();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__9);
l_Lean_Parser_Tactic_locationType___closed__10 = _init_l_Lean_Parser_Tactic_locationType___closed__10();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__10);
l_Lean_Parser_Tactic_locationType___closed__11 = _init_l_Lean_Parser_Tactic_locationType___closed__11();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__11);
l_Lean_Parser_Tactic_locationType___closed__12 = _init_l_Lean_Parser_Tactic_locationType___closed__12();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__12);
l_Lean_Parser_Tactic_locationType___closed__13 = _init_l_Lean_Parser_Tactic_locationType___closed__13();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__13);
l_Lean_Parser_Tactic_locationType___closed__14 = _init_l_Lean_Parser_Tactic_locationType___closed__14();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__14);
l_Lean_Parser_Tactic_locationType___closed__15 = _init_l_Lean_Parser_Tactic_locationType___closed__15();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__15);
l_Lean_Parser_Tactic_locationType___closed__16 = _init_l_Lean_Parser_Tactic_locationType___closed__16();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__16);
l_Lean_Parser_Tactic_locationType___closed__17 = _init_l_Lean_Parser_Tactic_locationType___closed__17();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType___closed__17);
l_Lean_Parser_Tactic_locationType = _init_l_Lean_Parser_Tactic_locationType();
lean_mark_persistent(l_Lean_Parser_Tactic_locationType);
l_Lean_Parser_Tactic_locationHyp___closed__1 = _init_l_Lean_Parser_Tactic_locationHyp___closed__1();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__1);
l_Lean_Parser_Tactic_locationHyp___closed__2 = _init_l_Lean_Parser_Tactic_locationHyp___closed__2();
@ -27217,32 +27312,6 @@ l_Lean_Parser_Tactic_locationHyp___closed__6 = _init_l_Lean_Parser_Tactic_locati
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__6);
l_Lean_Parser_Tactic_locationHyp___closed__7 = _init_l_Lean_Parser_Tactic_locationHyp___closed__7();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__7);
l_Lean_Parser_Tactic_locationHyp___closed__8 = _init_l_Lean_Parser_Tactic_locationHyp___closed__8();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__8);
l_Lean_Parser_Tactic_locationHyp___closed__9 = _init_l_Lean_Parser_Tactic_locationHyp___closed__9();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__9);
l_Lean_Parser_Tactic_locationHyp___closed__10 = _init_l_Lean_Parser_Tactic_locationHyp___closed__10();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__10);
l_Lean_Parser_Tactic_locationHyp___closed__11 = _init_l_Lean_Parser_Tactic_locationHyp___closed__11();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__11);
l_Lean_Parser_Tactic_locationHyp___closed__12 = _init_l_Lean_Parser_Tactic_locationHyp___closed__12();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__12);
l_Lean_Parser_Tactic_locationHyp___closed__13 = _init_l_Lean_Parser_Tactic_locationHyp___closed__13();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__13);
l_Lean_Parser_Tactic_locationHyp___closed__14 = _init_l_Lean_Parser_Tactic_locationHyp___closed__14();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__14);
l_Lean_Parser_Tactic_locationHyp___closed__15 = _init_l_Lean_Parser_Tactic_locationHyp___closed__15();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__15);
l_Lean_Parser_Tactic_locationHyp___closed__16 = _init_l_Lean_Parser_Tactic_locationHyp___closed__16();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__16);
l_Lean_Parser_Tactic_locationHyp___closed__17 = _init_l_Lean_Parser_Tactic_locationHyp___closed__17();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__17);
l_Lean_Parser_Tactic_locationHyp___closed__18 = _init_l_Lean_Parser_Tactic_locationHyp___closed__18();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__18);
l_Lean_Parser_Tactic_locationHyp___closed__19 = _init_l_Lean_Parser_Tactic_locationHyp___closed__19();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__19);
l_Lean_Parser_Tactic_locationHyp___closed__20 = _init_l_Lean_Parser_Tactic_locationHyp___closed__20();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp___closed__20);
l_Lean_Parser_Tactic_locationHyp = _init_l_Lean_Parser_Tactic_locationHyp();
lean_mark_persistent(l_Lean_Parser_Tactic_locationHyp);
l_Lean_Parser_Tactic_location___closed__1 = _init_l_Lean_Parser_Tactic_location___closed__1();

View file

@ -19,14 +19,16 @@ uint8_t l_Lean_Exception_isInterrupt(lean_object*);
static lean_object* l_Lean_Elab_Tactic_expandOptLocation___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_expandOptLocation(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_expandLocation(lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
uint8_t lean_usize_dec_eq(size_t, size_t);
lean_object* l_Lean_Syntax_getArgs(lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withLocation___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withLocation___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_expandOptLocation___closed__2;
lean_object* l_Lean_Elab_Tactic_SavedState_restore(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_expandLocation___closed__1;
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__4;
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
size_t lean_usize_of_nat(lean_object*);
lean_object* l_Array_reverse___rarg(lean_object*);
@ -37,6 +39,7 @@ lean_object* l_Lean_Syntax_getKind(lean_object*);
lean_object* l_Lean_FVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_expandOptLocation___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withLocation___lambda__2(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*);
@ -44,18 +47,22 @@ static lean_object* l_Lean_Elab_Tactic_expandLocation___closed__4;
uint8_t lean_name_eq(lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__2;
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___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*, lean_object*, lean_object*);
uint8_t l_Lean_LocalDecl_isImplementationDetail(lean_object*);
lean_object* l_Lean_Elab_Tactic_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__1;
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__5;
static lean_object* l_Lean_Elab_Tactic_expandLocation___closed__2;
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withLocation___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*);
static lean_object* l_Lean_Elab_Tactic_expandLocation___closed__5;
uint8_t l_Lean_Syntax_isNone(lean_object*);
lean_object* lean_nat_sub(lean_object*, lean_object*);
lean_object* lean_array_mk(lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withLocation___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
size_t lean_usize_add(size_t, size_t);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__3;
lean_object* lean_array_uget(lean_object*, size_t);
size_t lean_array_size(lean_object*);
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
@ -67,7 +74,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withLocation___boxed(lean_object*, l
uint8_t l_Lean_Exception_isRuntime(lean_object*);
static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1___lambda__1___closed__1;
lean_object* l_Lean_Elab_Tactic_tryTactic___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* _init_l_Lean_Elab_Tactic_expandLocation___closed__1() {
static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__1() {
_start:
{
lean_object* x_1;
@ -75,7 +82,7 @@ x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_expandLocation___closed__2() {
static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__2() {
_start:
{
lean_object* x_1;
@ -83,7 +90,7 @@ x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_expandLocation___closed__3() {
static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__3() {
_start:
{
lean_object* x_1;
@ -91,7 +98,64 @@ x_1 = lean_mk_string_unchecked("Tactic", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_expandLocation___closed__4() {
static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__4() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("locationType", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__1;
x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__2;
x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__3;
x_4 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__4;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5;
x_5 = lean_usize_dec_eq(x_2, x_3);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; size_t x_10; size_t x_11;
x_6 = lean_array_uget(x_1, x_2);
lean_inc(x_6);
x_7 = l_Lean_Syntax_getKind(x_6);
x_8 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__5;
x_9 = lean_name_eq(x_7, x_8);
lean_dec(x_7);
x_10 = 1;
x_11 = lean_usize_add(x_2, x_10);
if (x_9 == 0)
{
lean_object* x_12;
x_12 = lean_array_push(x_4, x_6);
x_2 = x_11;
x_4 = x_12;
goto _start;
}
else
{
lean_dec(x_6);
x_2 = x_11;
goto _start;
}
}
else
{
return x_4;
}
}
}
static lean_object* _init_l_Lean_Elab_Tactic_expandLocation___closed__1() {
_start:
{
lean_object* x_1;
@ -99,66 +163,176 @@ x_1 = lean_mk_string_unchecked("locationWildcard", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_expandLocation___closed__5() {
static lean_object* _init_l_Lean_Elab_Tactic_expandLocation___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
x_1 = l_Lean_Elab_Tactic_expandLocation___closed__1;
x_2 = l_Lean_Elab_Tactic_expandLocation___closed__2;
x_3 = l_Lean_Elab_Tactic_expandLocation___closed__3;
x_4 = l_Lean_Elab_Tactic_expandLocation___closed__4;
x_1 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__1;
x_2 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__2;
x_3 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__3;
x_4 = l_Lean_Elab_Tactic_expandLocation___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_expandLocation___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = lean_box(0);
x_2 = lean_array_mk(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_expandLocation___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Elab_Tactic_expandLocation___closed__3;
x_2 = lean_array_get_size(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_expandLocation(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6;
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_15; lean_object* x_16; uint8_t x_17;
x_2 = lean_unsigned_to_nat(1u);
x_3 = l_Lean_Syntax_getArg(x_1, x_2);
lean_inc(x_3);
x_4 = l_Lean_Syntax_getKind(x_3);
x_5 = l_Lean_Elab_Tactic_expandLocation___closed__5;
x_6 = lean_name_eq(x_4, x_5);
lean_dec(x_4);
if (x_6 == 0)
x_15 = l_Lean_Syntax_getKind(x_3);
x_16 = l_Lean_Elab_Tactic_expandLocation___closed__2;
x_17 = lean_name_eq(x_15, x_16);
lean_dec(x_15);
if (x_17 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
x_7 = lean_unsigned_to_nat(0u);
x_8 = l_Lean_Syntax_getArg(x_3, x_7);
x_9 = l_Lean_Syntax_getArgs(x_8);
lean_dec(x_8);
x_10 = l_Lean_Syntax_getArg(x_3, x_2);
lean_object* x_18;
x_18 = l_Lean_Syntax_getArg(x_3, x_2);
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23;
x_19 = lean_unsigned_to_nat(0u);
x_20 = l_Lean_Syntax_getArg(x_3, x_19);
lean_dec(x_3);
x_11 = l_Lean_Syntax_isNone(x_10);
lean_dec(x_10);
if (x_11 == 0)
x_21 = l_Lean_Syntax_getArgs(x_20);
lean_dec(x_20);
x_22 = lean_array_get_size(x_21);
x_23 = lean_nat_dec_lt(x_19, x_22);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28;
lean_dec(x_21);
x_24 = l_Lean_Elab_Tactic_expandLocation___closed__4;
x_25 = lean_nat_sub(x_22, x_24);
lean_dec(x_22);
x_26 = lean_nat_dec_lt(x_19, x_25);
lean_dec(x_25);
x_27 = l_Lean_Elab_Tactic_expandLocation___closed__3;
x_28 = lean_alloc_ctor(1, 1, 1);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_26);
return x_28;
}
else
{
uint8_t x_29;
x_29 = lean_nat_dec_le(x_22, x_22);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34;
lean_dec(x_21);
x_30 = l_Lean_Elab_Tactic_expandLocation___closed__4;
x_31 = lean_nat_sub(x_22, x_30);
lean_dec(x_22);
x_32 = lean_nat_dec_lt(x_19, x_31);
lean_dec(x_31);
x_33 = l_Lean_Elab_Tactic_expandLocation___closed__3;
x_34 = lean_alloc_ctor(1, 1, 1);
lean_ctor_set(x_34, 0, x_33);
lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_32);
return x_34;
}
else
{
size_t x_35; size_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42;
x_35 = 0;
x_36 = lean_usize_of_nat(x_22);
x_37 = l_Lean_Elab_Tactic_expandLocation___closed__3;
x_38 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1(x_21, x_35, x_36, x_37);
lean_dec(x_21);
x_39 = lean_array_get_size(x_38);
x_40 = lean_nat_sub(x_22, x_39);
lean_dec(x_39);
lean_dec(x_22);
x_41 = lean_nat_dec_lt(x_19, x_40);
lean_dec(x_40);
x_42 = lean_alloc_ctor(1, 1, 1);
lean_ctor_set(x_42, 0, x_38);
lean_ctor_set_uint8(x_42, sizeof(void*)*1, x_41);
return x_42;
}
}
}
else
{
lean_object* x_43;
lean_dec(x_18);
x_43 = lean_box(0);
x_4 = x_43;
goto block_14;
}
}
else
{
lean_object* x_44;
lean_dec(x_3);
x_44 = lean_box(0);
return x_44;
}
block_14:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9;
lean_dec(x_4);
x_5 = lean_unsigned_to_nat(0u);
x_6 = l_Lean_Syntax_getArg(x_3, x_5);
x_7 = l_Lean_Syntax_getArgs(x_6);
lean_dec(x_6);
x_8 = l_Lean_Syntax_getArg(x_3, x_2);
lean_dec(x_3);
x_9 = l_Lean_Syntax_isNone(x_8);
lean_dec(x_8);
if (x_9 == 0)
{
uint8_t x_10; lean_object* x_11;
x_10 = 1;
x_11 = lean_alloc_ctor(1, 1, 1);
lean_ctor_set(x_11, 0, x_7);
lean_ctor_set_uint8(x_11, sizeof(void*)*1, x_10);
return x_11;
}
else
{
uint8_t x_12; lean_object* x_13;
x_12 = 1;
x_12 = 0;
x_13 = lean_alloc_ctor(1, 1, 1);
lean_ctor_set(x_13, 0, x_9);
lean_ctor_set(x_13, 0, x_7);
lean_ctor_set_uint8(x_13, sizeof(void*)*1, x_12);
return x_13;
}
else
{
uint8_t x_14; lean_object* x_15;
x_14 = 0;
x_15 = lean_alloc_ctor(1, 1, 1);
lean_ctor_set(x_15, 0, x_9);
lean_ctor_set_uint8(x_15, sizeof(void*)*1, x_14);
return x_15;
}
}
else
}
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_16;
size_t x_5; size_t x_6; lean_object* x_7;
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_16 = lean_box(0);
return x_16;
}
x_7 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_expandLocation___boxed(lean_object* x_1) {
@ -173,17 +347,8 @@ return x_2;
static lean_object* _init_l_Lean_Elab_Tactic_expandOptLocation___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = lean_box(0);
x_2 = lean_array_mk(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_expandOptLocation___closed__2() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3;
x_1 = l_Lean_Elab_Tactic_expandOptLocation___closed__1;
x_1 = l_Lean_Elab_Tactic_expandLocation___closed__3;
x_2 = 1;
x_3 = lean_alloc_ctor(1, 1, 1);
lean_ctor_set(x_3, 0, x_1);
@ -208,7 +373,7 @@ return x_5;
else
{
lean_object* x_6;
x_6 = l_Lean_Elab_Tactic_expandOptLocation___closed__2;
x_6 = l_Lean_Elab_Tactic_expandOptLocation___closed__1;
return x_6;
}
}
@ -1323,6 +1488,16 @@ lean_dec_ref(res);
res = initialize_Lean_Elab_Tactic_ElabTerm(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__1 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__1();
lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__1);
l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__2 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__2();
lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__2);
l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__3 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__3();
lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__3);
l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__4 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__4();
lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__4);
l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__5 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__5();
lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_expandLocation___spec__1___closed__5);
l_Lean_Elab_Tactic_expandLocation___closed__1 = _init_l_Lean_Elab_Tactic_expandLocation___closed__1();
lean_mark_persistent(l_Lean_Elab_Tactic_expandLocation___closed__1);
l_Lean_Elab_Tactic_expandLocation___closed__2 = _init_l_Lean_Elab_Tactic_expandLocation___closed__2();
@ -1331,12 +1506,8 @@ l_Lean_Elab_Tactic_expandLocation___closed__3 = _init_l_Lean_Elab_Tactic_expandL
lean_mark_persistent(l_Lean_Elab_Tactic_expandLocation___closed__3);
l_Lean_Elab_Tactic_expandLocation___closed__4 = _init_l_Lean_Elab_Tactic_expandLocation___closed__4();
lean_mark_persistent(l_Lean_Elab_Tactic_expandLocation___closed__4);
l_Lean_Elab_Tactic_expandLocation___closed__5 = _init_l_Lean_Elab_Tactic_expandLocation___closed__5();
lean_mark_persistent(l_Lean_Elab_Tactic_expandLocation___closed__5);
l_Lean_Elab_Tactic_expandOptLocation___closed__1 = _init_l_Lean_Elab_Tactic_expandOptLocation___closed__1();
lean_mark_persistent(l_Lean_Elab_Tactic_expandOptLocation___closed__1);
l_Lean_Elab_Tactic_expandOptLocation___closed__2 = _init_l_Lean_Elab_Tactic_expandOptLocation___closed__2();
lean_mark_persistent(l_Lean_Elab_Tactic_expandOptLocation___closed__2);
l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1___lambda__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1___lambda__1___closed__1();
lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_withLocation___spec__1___lambda__1___closed__1);
return lean_io_result_mk_ok(lean_box(0));

View file

@ -144,7 +144,7 @@ static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_Fil
static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10545____spec__24___lambda__3___closed__1;
LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_findGoalsAt_x3f___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* l_Lean_Widget_InteractiveTermGoal_pretty(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Server_FileWorker_handleCompletion___lambda__1___closed__2;
static lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___closed__3;
static lean_object* l_Lean_Server_FileWorker_NamespaceEntry_finish___closed__2;
@ -475,7 +475,7 @@ static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_Fil
LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_locationLinksOfInfo___spec__8___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___closed__9;
static lean_object* l_Lean_Server_FileWorker_locationLinksOfInfo___lambda__2___closed__1;
LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_10545____spec__6(lean_object*, lean_object*, lean_object*);
@ -22801,8 +22801,10 @@ lean_dec(x_76);
if (lean_obj_tag(x_77) == 0)
{
lean_object* x_78;
x_78 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(x_1, x_24, x_25, x_75, x_2, x_4, x_5, x_27);
lean_inc(x_2);
x_78 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(x_1, x_2, x_24, x_25, x_75, x_2, x_4, x_5, x_27);
lean_dec(x_24);
lean_dec(x_2);
return x_78;
}
else
@ -22815,8 +22817,10 @@ x_80 = l_Lean_Syntax_getId(x_79);
lean_dec(x_79);
x_81 = l_Lean_Name_getNumParts(x_80);
lean_dec(x_80);
x_82 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(x_1, x_24, x_25, x_81, x_2, x_4, x_5, x_27);
lean_inc(x_2);
x_82 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(x_1, x_2, x_24, x_25, x_81, x_2, x_4, x_5, x_27);
lean_dec(x_24);
lean_dec(x_2);
return x_82;
}
}
@ -23089,8 +23093,10 @@ lean_dec(x_159);
if (lean_obj_tag(x_160) == 0)
{
lean_object* x_161;
x_161 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(x_1, x_107, x_108, x_158, x_2, x_4, x_5, x_110);
lean_inc(x_2);
x_161 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(x_1, x_2, x_107, x_108, x_158, x_2, x_4, x_5, x_110);
lean_dec(x_107);
lean_dec(x_2);
return x_161;
}
else
@ -23103,8 +23109,10 @@ x_163 = l_Lean_Syntax_getId(x_162);
lean_dec(x_162);
x_164 = l_Lean_Name_getNumParts(x_163);
lean_dec(x_163);
x_165 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(x_1, x_107, x_108, x_164, x_2, x_4, x_5, x_110);
lean_inc(x_2);
x_165 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(x_1, x_2, x_107, x_108, x_164, x_2, x_4, x_5, x_110);
lean_dec(x_107);
lean_dec(x_2);
return x_165;
}
}
@ -23213,274 +23221,274 @@ return x_192;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
if (lean_obj_tag(x_5) == 0)
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_9;
lean_dec(x_4);
x_9 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_5, x_3, x_6, x_7, x_8);
return x_9;
lean_object* x_10;
lean_dec(x_5);
x_10 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_6, x_4, x_7, x_8, x_9);
return x_10;
}
else
{
uint8_t x_10;
x_10 = !lean_is_exclusive(x_5);
if (x_10 == 0)
uint8_t x_11;
x_11 = !lean_is_exclusive(x_6);
if (x_11 == 0)
{
lean_object* x_11; uint8_t x_12;
x_11 = lean_ctor_get(x_5, 0);
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
lean_object* x_12; uint8_t x_13;
x_12 = lean_ctor_get(x_6, 0);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16;
x_13 = lean_ctor_get(x_5, 1);
x_14 = lean_ctor_get(x_11, 0);
x_15 = lean_ctor_get(x_11, 1);
x_16 = lean_nat_dec_eq(x_14, x_4);
if (x_16 == 0)
{
uint8_t x_17;
x_17 = lean_nat_dec_lt(x_4, x_14);
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
x_14 = lean_ctor_get(x_6, 1);
x_15 = lean_ctor_get(x_12, 0);
x_16 = lean_ctor_get(x_12, 1);
x_17 = lean_nat_dec_eq(x_15, x_5);
if (x_17 == 0)
{
uint8_t x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
lean_free_object(x_11);
lean_free_object(x_5);
x_18 = 0;
x_19 = l_Lean_Syntax_getTailPos_x3f(x_2, x_18);
x_20 = 2;
uint8_t x_18;
x_18 = lean_nat_dec_lt(x_5, x_15);
if (x_18 == 0)
{
uint8_t x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26;
lean_free_object(x_12);
lean_free_object(x_6);
x_19 = 0;
x_20 = l_Lean_Syntax_getTailPos_x3f(x_3, x_19);
x_21 = 2;
lean_inc(x_1);
x_21 = l_Lean_Server_FileWorker_handleFoldingRange_addRange(x_1, x_20, x_15, x_19, x_6, x_7, x_8);
lean_dec(x_15);
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
x_23 = lean_ctor_get(x_21, 1);
x_22 = l_Lean_Server_FileWorker_handleFoldingRange_addRange(x_1, x_21, x_16, x_20, x_7, x_8, x_9);
lean_dec(x_16);
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
lean_dec(x_21);
x_24 = lean_ctor_get(x_22, 1);
lean_inc(x_24);
lean_dec(x_22);
x_25 = lean_nat_sub(x_4, x_14);
lean_dec(x_14);
lean_dec(x_4);
x_4 = x_25;
x_5 = x_13;
x_6 = x_24;
x_8 = x_23;
x_25 = lean_ctor_get(x_23, 1);
lean_inc(x_25);
lean_dec(x_23);
x_26 = lean_nat_sub(x_5, x_15);
lean_dec(x_15);
lean_dec(x_5);
x_5 = x_26;
x_6 = x_14;
x_7 = x_25;
x_9 = x_24;
goto _start;
}
else
{
lean_object* x_27; lean_object* x_28;
x_27 = lean_nat_sub(x_14, x_4);
lean_dec(x_4);
lean_dec(x_14);
lean_ctor_set(x_11, 0, x_27);
x_28 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_5, x_3, x_6, x_7, x_8);
return x_28;
lean_object* x_28; lean_object* x_29;
x_28 = lean_nat_sub(x_15, x_5);
lean_dec(x_5);
lean_dec(x_15);
lean_ctor_set(x_12, 0, x_28);
x_29 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_6, x_4, x_7, x_8, x_9);
return x_29;
}
}
else
{
uint8_t x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
lean_free_object(x_11);
lean_dec(x_14);
lean_free_object(x_5);
lean_dec(x_4);
x_29 = 0;
x_30 = l_Lean_Syntax_getTailPos_x3f(x_2, x_29);
x_31 = 2;
lean_inc(x_1);
x_32 = l_Lean_Server_FileWorker_handleFoldingRange_addRange(x_1, x_31, x_15, x_30, x_6, x_7, x_8);
uint8_t x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37;
lean_free_object(x_12);
lean_dec(x_15);
x_33 = lean_ctor_get(x_32, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_32, 1);
lean_free_object(x_6);
lean_dec(x_5);
x_30 = 0;
x_31 = l_Lean_Syntax_getTailPos_x3f(x_3, x_30);
x_32 = 2;
lean_inc(x_1);
x_33 = l_Lean_Server_FileWorker_handleFoldingRange_addRange(x_1, x_32, x_16, x_31, x_7, x_8, x_9);
lean_dec(x_16);
x_34 = lean_ctor_get(x_33, 0);
lean_inc(x_34);
lean_dec(x_32);
x_35 = lean_ctor_get(x_33, 1);
lean_inc(x_35);
lean_dec(x_33);
x_36 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_13, x_3, x_35, x_7, x_34);
return x_36;
x_36 = lean_ctor_get(x_34, 1);
lean_inc(x_36);
lean_dec(x_34);
x_37 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_14, x_4, x_36, x_8, x_35);
return x_37;
}
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40;
x_37 = lean_ctor_get(x_5, 1);
x_38 = lean_ctor_get(x_11, 0);
x_39 = lean_ctor_get(x_11, 1);
lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41;
x_38 = lean_ctor_get(x_6, 1);
x_39 = lean_ctor_get(x_12, 0);
x_40 = lean_ctor_get(x_12, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_inc(x_38);
lean_dec(x_11);
x_40 = lean_nat_dec_eq(x_38, x_4);
if (x_40 == 0)
{
uint8_t x_41;
x_41 = lean_nat_dec_lt(x_4, x_38);
lean_dec(x_12);
x_41 = lean_nat_dec_eq(x_39, x_5);
if (x_41 == 0)
{
uint8_t x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49;
lean_free_object(x_5);
x_42 = 0;
x_43 = l_Lean_Syntax_getTailPos_x3f(x_2, x_42);
x_44 = 2;
uint8_t x_42;
x_42 = lean_nat_dec_lt(x_5, x_39);
if (x_42 == 0)
{
uint8_t x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50;
lean_free_object(x_6);
x_43 = 0;
x_44 = l_Lean_Syntax_getTailPos_x3f(x_3, x_43);
x_45 = 2;
lean_inc(x_1);
x_45 = l_Lean_Server_FileWorker_handleFoldingRange_addRange(x_1, x_44, x_39, x_43, x_6, x_7, x_8);
lean_dec(x_39);
x_46 = lean_ctor_get(x_45, 0);
lean_inc(x_46);
x_47 = lean_ctor_get(x_45, 1);
x_46 = l_Lean_Server_FileWorker_handleFoldingRange_addRange(x_1, x_45, x_40, x_44, x_7, x_8, x_9);
lean_dec(x_40);
x_47 = lean_ctor_get(x_46, 0);
lean_inc(x_47);
lean_dec(x_45);
x_48 = lean_ctor_get(x_46, 1);
lean_inc(x_48);
lean_dec(x_46);
x_49 = lean_nat_sub(x_4, x_38);
lean_dec(x_38);
lean_dec(x_4);
x_4 = x_49;
x_5 = x_37;
x_6 = x_48;
x_8 = x_47;
x_49 = lean_ctor_get(x_47, 1);
lean_inc(x_49);
lean_dec(x_47);
x_50 = lean_nat_sub(x_5, x_39);
lean_dec(x_39);
lean_dec(x_5);
x_5 = x_50;
x_6 = x_38;
x_7 = x_49;
x_9 = x_48;
goto _start;
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53;
x_51 = lean_nat_sub(x_38, x_4);
lean_dec(x_4);
lean_dec(x_38);
x_52 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_52, 0, x_51);
lean_ctor_set(x_52, 1, x_39);
lean_ctor_set(x_5, 0, x_52);
x_53 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_5, x_3, x_6, x_7, x_8);
return x_53;
lean_object* x_52; lean_object* x_53; lean_object* x_54;
x_52 = lean_nat_sub(x_39, x_5);
lean_dec(x_5);
lean_dec(x_39);
x_53 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set(x_53, 1, x_40);
lean_ctor_set(x_6, 0, x_53);
x_54 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_6, x_4, x_7, x_8, x_9);
return x_54;
}
}
else
{
uint8_t x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61;
lean_dec(x_38);
lean_free_object(x_5);
lean_dec(x_4);
x_54 = 0;
x_55 = l_Lean_Syntax_getTailPos_x3f(x_2, x_54);
x_56 = 2;
lean_inc(x_1);
x_57 = l_Lean_Server_FileWorker_handleFoldingRange_addRange(x_1, x_56, x_39, x_55, x_6, x_7, x_8);
uint8_t x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62;
lean_dec(x_39);
x_58 = lean_ctor_get(x_57, 0);
lean_inc(x_58);
x_59 = lean_ctor_get(x_57, 1);
lean_free_object(x_6);
lean_dec(x_5);
x_55 = 0;
x_56 = l_Lean_Syntax_getTailPos_x3f(x_3, x_55);
x_57 = 2;
lean_inc(x_1);
x_58 = l_Lean_Server_FileWorker_handleFoldingRange_addRange(x_1, x_57, x_40, x_56, x_7, x_8, x_9);
lean_dec(x_40);
x_59 = lean_ctor_get(x_58, 0);
lean_inc(x_59);
lean_dec(x_57);
x_60 = lean_ctor_get(x_58, 1);
lean_inc(x_60);
lean_dec(x_58);
x_61 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_37, x_3, x_60, x_7, x_59);
return x_61;
x_61 = lean_ctor_get(x_59, 1);
lean_inc(x_61);
lean_dec(x_59);
x_62 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_38, x_4, x_61, x_8, x_60);
return x_62;
}
}
}
else
{
lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67;
x_62 = lean_ctor_get(x_5, 0);
x_63 = lean_ctor_get(x_5, 1);
lean_inc(x_63);
lean_inc(x_62);
lean_dec(x_5);
x_64 = lean_ctor_get(x_62, 0);
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68;
x_63 = lean_ctor_get(x_6, 0);
x_64 = lean_ctor_get(x_6, 1);
lean_inc(x_64);
x_65 = lean_ctor_get(x_62, 1);
lean_inc(x_63);
lean_dec(x_6);
x_65 = lean_ctor_get(x_63, 0);
lean_inc(x_65);
if (lean_is_exclusive(x_62)) {
lean_ctor_release(x_62, 0);
lean_ctor_release(x_62, 1);
x_66 = x_62;
x_66 = lean_ctor_get(x_63, 1);
lean_inc(x_66);
if (lean_is_exclusive(x_63)) {
lean_ctor_release(x_63, 0);
lean_ctor_release(x_63, 1);
x_67 = x_63;
} else {
lean_dec_ref(x_62);
x_66 = lean_box(0);
lean_dec_ref(x_63);
x_67 = lean_box(0);
}
x_67 = lean_nat_dec_eq(x_64, x_4);
if (x_67 == 0)
{
uint8_t x_68;
x_68 = lean_nat_dec_lt(x_4, x_64);
x_68 = lean_nat_dec_eq(x_65, x_5);
if (x_68 == 0)
{
uint8_t x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76;
lean_dec(x_66);
x_69 = 0;
x_70 = l_Lean_Syntax_getTailPos_x3f(x_2, x_69);
x_71 = 2;
uint8_t x_69;
x_69 = lean_nat_dec_lt(x_5, x_65);
if (x_69 == 0)
{
uint8_t x_70; lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77;
lean_dec(x_67);
x_70 = 0;
x_71 = l_Lean_Syntax_getTailPos_x3f(x_3, x_70);
x_72 = 2;
lean_inc(x_1);
x_72 = l_Lean_Server_FileWorker_handleFoldingRange_addRange(x_1, x_71, x_65, x_70, x_6, x_7, x_8);
lean_dec(x_65);
x_73 = lean_ctor_get(x_72, 0);
lean_inc(x_73);
x_74 = lean_ctor_get(x_72, 1);
x_73 = l_Lean_Server_FileWorker_handleFoldingRange_addRange(x_1, x_72, x_66, x_71, x_7, x_8, x_9);
lean_dec(x_66);
x_74 = lean_ctor_get(x_73, 0);
lean_inc(x_74);
lean_dec(x_72);
x_75 = lean_ctor_get(x_73, 1);
lean_inc(x_75);
lean_dec(x_73);
x_76 = lean_nat_sub(x_4, x_64);
lean_dec(x_64);
lean_dec(x_4);
x_4 = x_76;
x_5 = x_63;
x_6 = x_75;
x_8 = x_74;
x_76 = lean_ctor_get(x_74, 1);
lean_inc(x_76);
lean_dec(x_74);
x_77 = lean_nat_sub(x_5, x_65);
lean_dec(x_65);
lean_dec(x_5);
x_5 = x_77;
x_6 = x_64;
x_7 = x_76;
x_9 = x_75;
goto _start;
}
else
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81;
x_78 = lean_nat_sub(x_64, x_4);
lean_dec(x_4);
lean_dec(x_64);
if (lean_is_scalar(x_66)) {
x_79 = lean_alloc_ctor(0, 2, 0);
lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82;
x_79 = lean_nat_sub(x_65, x_5);
lean_dec(x_5);
lean_dec(x_65);
if (lean_is_scalar(x_67)) {
x_80 = lean_alloc_ctor(0, 2, 0);
} else {
x_79 = x_66;
x_80 = x_67;
}
lean_ctor_set(x_79, 0, x_78);
lean_ctor_set(x_79, 1, x_65);
x_80 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_80, 0, x_79);
lean_ctor_set(x_80, 1, x_63);
x_81 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_80, x_3, x_6, x_7, x_8);
return x_81;
lean_ctor_set(x_80, 1, x_66);
x_81 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_81, 0, x_80);
lean_ctor_set(x_81, 1, x_64);
x_82 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_81, x_4, x_7, x_8, x_9);
return x_82;
}
}
else
{
uint8_t x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89;
lean_dec(x_66);
lean_dec(x_64);
lean_dec(x_4);
x_82 = 0;
x_83 = l_Lean_Syntax_getTailPos_x3f(x_2, x_82);
x_84 = 2;
lean_inc(x_1);
x_85 = l_Lean_Server_FileWorker_handleFoldingRange_addRange(x_1, x_84, x_65, x_83, x_6, x_7, x_8);
uint8_t x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90;
lean_dec(x_67);
lean_dec(x_65);
x_86 = lean_ctor_get(x_85, 0);
lean_inc(x_86);
x_87 = lean_ctor_get(x_85, 1);
lean_dec(x_5);
x_83 = 0;
x_84 = l_Lean_Syntax_getTailPos_x3f(x_3, x_83);
x_85 = 2;
lean_inc(x_1);
x_86 = l_Lean_Server_FileWorker_handleFoldingRange_addRange(x_1, x_85, x_66, x_84, x_7, x_8, x_9);
lean_dec(x_66);
x_87 = lean_ctor_get(x_86, 0);
lean_inc(x_87);
lean_dec(x_85);
x_88 = lean_ctor_get(x_86, 1);
lean_inc(x_88);
lean_dec(x_86);
x_89 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_63, x_3, x_88, x_7, x_87);
return x_89;
x_89 = lean_ctor_get(x_87, 1);
lean_inc(x_89);
lean_dec(x_87);
x_90 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges(x_1, x_64, x_4, x_89, x_8, x_88);
return x_90;
}
}
}
@ -23495,14 +23503,15 @@ lean_dec(x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_9;
x_9 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_object* x_10;
x_10 = l_Lean_Server_FileWorker_handleFoldingRange_addRanges_popRanges(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_3);
lean_dec(x_2);
return x_9;
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleFoldingRange___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {