chore: update stage0
This commit is contained in:
parent
79c15de131
commit
516784164a
6 changed files with 1374 additions and 161 deletions
2
stage0/src/Lean/Elab/Quotation.lean
generated
2
stage0/src/Lean/Elab/Quotation.lean
generated
|
|
@ -254,7 +254,7 @@ private partial def getHeadInfo (alt : Alt) : TermElabM HeadInfo :=
|
|||
covered (adaptRhs rhsFn ∘ noOpMatchAdaptPats taken) (exhaustive := sz.isNone)
|
||||
else uncovered
|
||||
| _ => uncovered,
|
||||
doMatch := fun yes no => do `(if Syntax.isOfKind discr $(quote k) then $(← yes []) else $(← no)),
|
||||
doMatch := fun yes no => do `(cond (Syntax.isOfKind discr $(quote k)) $(← yes []) $(← no)),
|
||||
}
|
||||
else throwErrorAt! anti "match_syntax: antiquotation must be variable {anti}"
|
||||
else if isAntiquotSuffixSplice quoted then throwErrorAt quoted "unexpected antiquotation splice"
|
||||
|
|
|
|||
|
|
@ -498,6 +498,30 @@ def delabListToArray : Delab := whenPPOption getPPNotation do
|
|||
| `([$xs,*]) => `(#[$xs,*])
|
||||
| _ => failure
|
||||
|
||||
@[builtinDelab app.ite]
|
||||
def delabIte : Delab := whenPPOption getPPNotation do
|
||||
guard $ (← getExpr).getAppNumArgs == 5
|
||||
let c ← withAppFn $ withAppFn $ withAppFn $ withAppArg delab
|
||||
let t ← withAppFn $ withAppArg delab
|
||||
let e ← withAppArg delab
|
||||
`(if $c then $t else $e)
|
||||
|
||||
@[builtinDelab app.dite]
|
||||
def delabDIte : Delab := whenPPOption getPPNotation do
|
||||
guard $ (← getExpr).getAppNumArgs == 5
|
||||
let c ← withAppFn $ withAppFn $ withAppFn $ withAppArg delab
|
||||
let (t, h) ← withAppFn $ withAppArg $ delabBranch none
|
||||
let (e, _) ← withAppArg $ delabBranch h
|
||||
`(if $(mkIdent h):ident : $c then $t else $e)
|
||||
where
|
||||
delabBranch (h? : Option Name) : DelabM (Syntax × Name) := do
|
||||
let e ← getExpr
|
||||
guard e.isLambda
|
||||
let h ← match h? with
|
||||
| some h => return (← withBindingBody h delab, h)
|
||||
| none => withBindingBodyUnusedName fun h => do
|
||||
return (← delab, h.getId)
|
||||
|
||||
@[builtinDelab app.namedPattern]
|
||||
def delabNamedPattern : Delab := do
|
||||
guard $ (← getExpr).getAppNumArgs == 3
|
||||
|
|
|
|||
4
stage0/src/kernel/environment.cpp
generated
4
stage0/src/kernel/environment.cpp
generated
|
|
@ -152,6 +152,7 @@ environment environment::add_definition(declaration const & d, bool check) const
|
|||
if (check) {
|
||||
bool safe_only = false;
|
||||
type_checker checker(new_env, safe_only);
|
||||
check_no_metavar_no_fvar(new_env, v.get_name(), v.get_value());
|
||||
expr val_type = checker.check(v.get_value(), v.get_lparams());
|
||||
if (!checker.is_def_eq(val_type, v.get_type()))
|
||||
throw definition_type_mismatch_exception(new_env, d, val_type);
|
||||
|
|
@ -161,6 +162,7 @@ environment environment::add_definition(declaration const & d, bool check) const
|
|||
if (check) {
|
||||
type_checker checker(*this);
|
||||
check_constant_val(*this, v.to_constant_val(), checker);
|
||||
check_no_metavar_no_fvar(*this, v.get_name(), v.get_value());
|
||||
expr val_type = checker.check(v.get_value(), v.get_lparams());
|
||||
if (!checker.is_def_eq(val_type, v.get_type()))
|
||||
throw definition_type_mismatch_exception(*this, d, val_type);
|
||||
|
|
@ -175,6 +177,7 @@ environment environment::add_theorem(declaration const & d, bool check) const {
|
|||
// TODO(Leo): we must add support for handling tasks here
|
||||
type_checker checker(*this);
|
||||
check_constant_val(*this, v.to_constant_val(), checker);
|
||||
check_no_metavar_no_fvar(*this, v.get_name(), v.get_value());
|
||||
expr val_type = checker.check(v.get_value(), v.get_lparams());
|
||||
if (!checker.is_def_eq(val_type, v.get_type()))
|
||||
throw definition_type_mismatch_exception(*this, d, val_type);
|
||||
|
|
@ -216,6 +219,7 @@ environment environment::add_mutual(declaration const & d, bool check) const {
|
|||
bool safe_only = false;
|
||||
type_checker checker(new_env, safe_only);
|
||||
for (definition_val const & v : vs) {
|
||||
check_no_metavar_no_fvar(new_env, v.get_name(), v.get_value());
|
||||
expr val_type = checker.check(v.get_value(), v.get_lparams());
|
||||
if (!checker.is_def_eq(val_type, v.get_type()))
|
||||
throw definition_type_mismatch_exception(new_env, d, val_type);
|
||||
|
|
|
|||
439
stage0/stdlib/Lean/Elab/Quotation.c
generated
439
stage0/stdlib/Lean/Elab/Quotation.c
generated
|
|
@ -98,6 +98,7 @@ extern lean_object* l_termIf_____x3a__Then__Else_____closed__3;
|
|||
lean_object* l___private_Init_Meta_0__Lean_quoteList___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__7(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_compileStxMatch___lambda__3___boxed__const__1;
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__3;
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__11___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_Quotation_myMacro____x40_Lean_Elab_Quotation___hyg_3712____closed__27;
|
||||
extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Subarray___hyg_911____closed__4;
|
||||
|
|
@ -208,6 +209,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead
|
|||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo_match__8(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__15;
|
||||
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__5;
|
||||
lean_object* l_ReaderT_pure___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__1(lean_object*);
|
||||
lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__9___closed__5;
|
||||
lean_object* l_Lean_Syntax_getAntiquotTerm(lean_object*);
|
||||
|
|
@ -226,6 +228,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_9383____closed__7;
|
|||
lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__1;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax___closed__1;
|
||||
lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__1;
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getSepFromSplice_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__6___closed__42;
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__3;
|
||||
|
|
@ -294,6 +297,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSy
|
|||
lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__10;
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_zip___rarg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__4;
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__6___lambda__2___closed__7;
|
||||
lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__30;
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_deduplicate___lambda__2(lean_object*, lean_object*);
|
||||
|
|
@ -450,6 +454,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Q
|
|||
lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__28;
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax(lean_object*);
|
||||
lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_floatOutAntiquotTerms___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__14;
|
||||
extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_2884____closed__1;
|
||||
lean_object* l_Lean_Elab_Term_Quotation_mkTuple___closed__1;
|
||||
|
|
@ -486,7 +491,7 @@ lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHead
|
|||
lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11;
|
||||
extern lean_object* l_Std_Format_paren___closed__4;
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__24(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11876_(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11931_(lean_object*);
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_10172____closed__3;
|
||||
extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1097____closed__25;
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -886,6 +891,7 @@ lean_object* l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Qu
|
|||
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__6___closed__13;
|
||||
lean_object* l_Array_sequenceMap___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_noOpMatchAdaptPats___closed__1;
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__6;
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_noOpMatchAdaptPats___closed__2;
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax_match__2(lean_object*);
|
||||
lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -22331,6 +22337,71 @@ return x_15;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("cond");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__1;
|
||||
x_2 = lean_string_utf8_byte_size(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__1;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
x_3 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__2;
|
||||
x_4 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set(x_4, 1, x_2);
|
||||
lean_ctor_set(x_4, 2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__4;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__5;
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
lean_ctor_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -22388,154 +22459,196 @@ lean_dec(x_10);
|
|||
x_26 = !lean_is_exclusive(x_25);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61;
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72;
|
||||
x_27 = lean_ctor_get(x_25, 0);
|
||||
x_28 = l_termIf_____x3a__Then__Else_____closed__3;
|
||||
lean_inc(x_20);
|
||||
x_29 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_20);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
x_30 = l_Array_empty___closed__1;
|
||||
x_31 = lean_array_push(x_30, x_29);
|
||||
lean_inc_n(x_1, 2);
|
||||
x_32 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_32, 0, x_1);
|
||||
lean_ctor_set(x_32, 1, x_1);
|
||||
lean_ctor_set(x_32, 2, x_1);
|
||||
x_33 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__5;
|
||||
x_28 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_28, 0, x_1);
|
||||
lean_ctor_set(x_28, 1, x_1);
|
||||
lean_ctor_set(x_28, 2, x_1);
|
||||
x_29 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__4;
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_27);
|
||||
x_34 = l_Lean_addMacroScope(x_27, x_33, x_23);
|
||||
x_35 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__3;
|
||||
x_36 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__10;
|
||||
lean_inc(x_32);
|
||||
x_37 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_37, 0, x_32);
|
||||
lean_ctor_set(x_37, 1, x_35);
|
||||
lean_ctor_set(x_37, 2, x_34);
|
||||
lean_ctor_set(x_37, 3, x_36);
|
||||
x_38 = lean_array_push(x_30, x_37);
|
||||
x_39 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12;
|
||||
x_40 = l_Lean_addMacroScope(x_27, x_39, x_23);
|
||||
x_41 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11;
|
||||
x_42 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_42, 0, x_32);
|
||||
lean_ctor_set(x_42, 1, x_41);
|
||||
lean_ctor_set(x_42, 2, x_40);
|
||||
lean_ctor_set(x_42, 3, x_12);
|
||||
x_43 = lean_array_push(x_30, x_42);
|
||||
x_44 = l___private_Init_Meta_0__Lean_quoteName(x_2);
|
||||
x_45 = lean_array_push(x_43, x_44);
|
||||
x_46 = l_Lean_nullKind___closed__2;
|
||||
x_47 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_46);
|
||||
lean_ctor_set(x_47, 1, x_45);
|
||||
x_48 = lean_array_push(x_38, x_47);
|
||||
x_49 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4;
|
||||
x_50 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_50, 0, x_49);
|
||||
lean_ctor_set(x_50, 1, x_48);
|
||||
x_51 = lean_array_push(x_31, x_50);
|
||||
x_52 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__17;
|
||||
x_30 = l_Lean_addMacroScope(x_27, x_29, x_23);
|
||||
x_31 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__3;
|
||||
x_32 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__6;
|
||||
lean_inc(x_28);
|
||||
x_33 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_33, 0, x_28);
|
||||
lean_ctor_set(x_33, 1, x_31);
|
||||
lean_ctor_set(x_33, 2, x_30);
|
||||
lean_ctor_set(x_33, 3, x_32);
|
||||
x_34 = l_Array_empty___closed__1;
|
||||
x_35 = lean_array_push(x_34, x_33);
|
||||
x_36 = l_prec_x28___x29___closed__3;
|
||||
lean_inc(x_20);
|
||||
x_53 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_53, 0, x_20);
|
||||
lean_ctor_set(x_53, 1, x_52);
|
||||
x_54 = lean_array_push(x_51, x_53);
|
||||
x_55 = lean_array_push(x_54, x_14);
|
||||
x_56 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__18;
|
||||
x_57 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_57, 0, x_20);
|
||||
lean_ctor_set(x_57, 1, x_56);
|
||||
x_58 = lean_array_push(x_55, x_57);
|
||||
x_59 = lean_array_push(x_58, x_17);
|
||||
x_60 = l_termIf__Then__Else_____closed__2;
|
||||
x_61 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_61, 0, x_60);
|
||||
lean_ctor_set(x_61, 1, x_59);
|
||||
lean_ctor_set(x_25, 0, x_61);
|
||||
x_37 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_20);
|
||||
lean_ctor_set(x_37, 1, x_36);
|
||||
x_38 = lean_array_push(x_34, x_37);
|
||||
x_39 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__5;
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_27);
|
||||
x_40 = l_Lean_addMacroScope(x_27, x_39, x_23);
|
||||
x_41 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__3;
|
||||
x_42 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__10;
|
||||
lean_inc(x_28);
|
||||
x_43 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_43, 0, x_28);
|
||||
lean_ctor_set(x_43, 1, x_41);
|
||||
lean_ctor_set(x_43, 2, x_40);
|
||||
lean_ctor_set(x_43, 3, x_42);
|
||||
x_44 = lean_array_push(x_34, x_43);
|
||||
x_45 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12;
|
||||
x_46 = l_Lean_addMacroScope(x_27, x_45, x_23);
|
||||
x_47 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11;
|
||||
x_48 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_48, 0, x_28);
|
||||
lean_ctor_set(x_48, 1, x_47);
|
||||
lean_ctor_set(x_48, 2, x_46);
|
||||
lean_ctor_set(x_48, 3, x_12);
|
||||
x_49 = lean_array_push(x_34, x_48);
|
||||
x_50 = l___private_Init_Meta_0__Lean_quoteName(x_2);
|
||||
x_51 = lean_array_push(x_49, x_50);
|
||||
x_52 = l_Lean_nullKind___closed__2;
|
||||
x_53 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_53, 0, x_52);
|
||||
lean_ctor_set(x_53, 1, x_51);
|
||||
x_54 = lean_array_push(x_44, x_53);
|
||||
x_55 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4;
|
||||
x_56 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_56, 0, x_55);
|
||||
lean_ctor_set(x_56, 1, x_54);
|
||||
x_57 = lean_array_push(x_34, x_56);
|
||||
x_58 = l_myMacro____x40_Init_Notation___hyg_1340____closed__8;
|
||||
x_59 = lean_array_push(x_57, x_58);
|
||||
x_60 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_52);
|
||||
lean_ctor_set(x_60, 1, x_59);
|
||||
x_61 = lean_array_push(x_38, x_60);
|
||||
x_62 = l_prec_x28___x29___closed__7;
|
||||
x_63 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_63, 0, x_20);
|
||||
lean_ctor_set(x_63, 1, x_62);
|
||||
x_64 = lean_array_push(x_61, x_63);
|
||||
x_65 = l_myMacro____x40_Init_Notation___hyg_11518____closed__8;
|
||||
x_66 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_66, 0, x_65);
|
||||
lean_ctor_set(x_66, 1, x_64);
|
||||
x_67 = lean_array_push(x_34, x_66);
|
||||
x_68 = lean_array_push(x_67, x_14);
|
||||
x_69 = lean_array_push(x_68, x_17);
|
||||
x_70 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_70, 0, x_52);
|
||||
lean_ctor_set(x_70, 1, x_69);
|
||||
x_71 = lean_array_push(x_35, x_70);
|
||||
x_72 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_72, 0, x_55);
|
||||
lean_ctor_set(x_72, 1, x_71);
|
||||
lean_ctor_set(x_25, 0, x_72);
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98;
|
||||
x_62 = lean_ctor_get(x_25, 0);
|
||||
x_63 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_63);
|
||||
lean_inc(x_62);
|
||||
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120;
|
||||
x_73 = lean_ctor_get(x_25, 0);
|
||||
x_74 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_74);
|
||||
lean_inc(x_73);
|
||||
lean_dec(x_25);
|
||||
x_64 = l_termIf_____x3a__Then__Else_____closed__3;
|
||||
lean_inc(x_20);
|
||||
x_65 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_65, 0, x_20);
|
||||
lean_ctor_set(x_65, 1, x_64);
|
||||
x_66 = l_Array_empty___closed__1;
|
||||
x_67 = lean_array_push(x_66, x_65);
|
||||
lean_inc_n(x_1, 2);
|
||||
x_68 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_68, 0, x_1);
|
||||
lean_ctor_set(x_68, 1, x_1);
|
||||
lean_ctor_set(x_68, 2, x_1);
|
||||
x_69 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__5;
|
||||
x_75 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_75, 0, x_1);
|
||||
lean_ctor_set(x_75, 1, x_1);
|
||||
lean_ctor_set(x_75, 2, x_1);
|
||||
x_76 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__4;
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_62);
|
||||
x_70 = l_Lean_addMacroScope(x_62, x_69, x_23);
|
||||
x_71 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__3;
|
||||
x_72 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__10;
|
||||
lean_inc(x_68);
|
||||
x_73 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_73, 0, x_68);
|
||||
lean_ctor_set(x_73, 1, x_71);
|
||||
lean_ctor_set(x_73, 2, x_70);
|
||||
lean_ctor_set(x_73, 3, x_72);
|
||||
x_74 = lean_array_push(x_66, x_73);
|
||||
x_75 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12;
|
||||
x_76 = l_Lean_addMacroScope(x_62, x_75, x_23);
|
||||
x_77 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11;
|
||||
x_78 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_78, 0, x_68);
|
||||
lean_ctor_set(x_78, 1, x_77);
|
||||
lean_ctor_set(x_78, 2, x_76);
|
||||
lean_ctor_set(x_78, 3, x_12);
|
||||
x_79 = lean_array_push(x_66, x_78);
|
||||
x_80 = l___private_Init_Meta_0__Lean_quoteName(x_2);
|
||||
x_81 = lean_array_push(x_79, x_80);
|
||||
x_82 = l_Lean_nullKind___closed__2;
|
||||
x_83 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_83, 0, x_82);
|
||||
lean_ctor_set(x_83, 1, x_81);
|
||||
x_84 = lean_array_push(x_74, x_83);
|
||||
x_85 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4;
|
||||
x_86 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_86, 0, x_85);
|
||||
lean_ctor_set(x_86, 1, x_84);
|
||||
x_87 = lean_array_push(x_67, x_86);
|
||||
x_88 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__17;
|
||||
lean_inc(x_73);
|
||||
x_77 = l_Lean_addMacroScope(x_73, x_76, x_23);
|
||||
x_78 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__3;
|
||||
x_79 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__6;
|
||||
lean_inc(x_75);
|
||||
x_80 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_80, 0, x_75);
|
||||
lean_ctor_set(x_80, 1, x_78);
|
||||
lean_ctor_set(x_80, 2, x_77);
|
||||
lean_ctor_set(x_80, 3, x_79);
|
||||
x_81 = l_Array_empty___closed__1;
|
||||
x_82 = lean_array_push(x_81, x_80);
|
||||
x_83 = l_prec_x28___x29___closed__3;
|
||||
lean_inc(x_20);
|
||||
x_89 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_89, 0, x_20);
|
||||
lean_ctor_set(x_89, 1, x_88);
|
||||
x_90 = lean_array_push(x_87, x_89);
|
||||
x_91 = lean_array_push(x_90, x_14);
|
||||
x_92 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__22___closed__18;
|
||||
x_93 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_93, 0, x_20);
|
||||
lean_ctor_set(x_93, 1, x_92);
|
||||
x_94 = lean_array_push(x_91, x_93);
|
||||
x_95 = lean_array_push(x_94, x_17);
|
||||
x_96 = l_termIf__Then__Else_____closed__2;
|
||||
x_97 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_97, 0, x_96);
|
||||
lean_ctor_set(x_97, 1, x_95);
|
||||
x_98 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_98, 0, x_97);
|
||||
lean_ctor_set(x_98, 1, x_63);
|
||||
return x_98;
|
||||
x_84 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_84, 0, x_20);
|
||||
lean_ctor_set(x_84, 1, x_83);
|
||||
x_85 = lean_array_push(x_81, x_84);
|
||||
x_86 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__5;
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_73);
|
||||
x_87 = l_Lean_addMacroScope(x_73, x_86, x_23);
|
||||
x_88 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__3;
|
||||
x_89 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__11___closed__10;
|
||||
lean_inc(x_75);
|
||||
x_90 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_90, 0, x_75);
|
||||
lean_ctor_set(x_90, 1, x_88);
|
||||
lean_ctor_set(x_90, 2, x_87);
|
||||
lean_ctor_set(x_90, 3, x_89);
|
||||
x_91 = lean_array_push(x_81, x_90);
|
||||
x_92 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__12;
|
||||
x_93 = l_Lean_addMacroScope(x_73, x_92, x_23);
|
||||
x_94 = l_List_mapM___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__5___closed__11;
|
||||
x_95 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_95, 0, x_75);
|
||||
lean_ctor_set(x_95, 1, x_94);
|
||||
lean_ctor_set(x_95, 2, x_93);
|
||||
lean_ctor_set(x_95, 3, x_12);
|
||||
x_96 = lean_array_push(x_81, x_95);
|
||||
x_97 = l___private_Init_Meta_0__Lean_quoteName(x_2);
|
||||
x_98 = lean_array_push(x_96, x_97);
|
||||
x_99 = l_Lean_nullKind___closed__2;
|
||||
x_100 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_100, 0, x_99);
|
||||
lean_ctor_set(x_100, 1, x_98);
|
||||
x_101 = lean_array_push(x_91, x_100);
|
||||
x_102 = l_myMacro____x40_Init_Notation___hyg_2137____closed__4;
|
||||
x_103 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_103, 0, x_102);
|
||||
lean_ctor_set(x_103, 1, x_101);
|
||||
x_104 = lean_array_push(x_81, x_103);
|
||||
x_105 = l_myMacro____x40_Init_Notation___hyg_1340____closed__8;
|
||||
x_106 = lean_array_push(x_104, x_105);
|
||||
x_107 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_107, 0, x_99);
|
||||
lean_ctor_set(x_107, 1, x_106);
|
||||
x_108 = lean_array_push(x_85, x_107);
|
||||
x_109 = l_prec_x28___x29___closed__7;
|
||||
x_110 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_110, 0, x_20);
|
||||
lean_ctor_set(x_110, 1, x_109);
|
||||
x_111 = lean_array_push(x_108, x_110);
|
||||
x_112 = l_myMacro____x40_Init_Notation___hyg_11518____closed__8;
|
||||
x_113 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_113, 0, x_112);
|
||||
lean_ctor_set(x_113, 1, x_111);
|
||||
x_114 = lean_array_push(x_81, x_113);
|
||||
x_115 = lean_array_push(x_114, x_14);
|
||||
x_116 = lean_array_push(x_115, x_17);
|
||||
x_117 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_117, 0, x_99);
|
||||
lean_ctor_set(x_117, 1, x_116);
|
||||
x_118 = lean_array_push(x_82, x_117);
|
||||
x_119 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_119, 0, x_102);
|
||||
lean_ctor_set(x_119, 1, x_118);
|
||||
x_120 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_120, 0, x_119);
|
||||
lean_ctor_set(x_120, 1, x_74);
|
||||
return x_120;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_99;
|
||||
uint8_t x_121;
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -22545,29 +22658,29 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_99 = !lean_is_exclusive(x_16);
|
||||
if (x_99 == 0)
|
||||
x_121 = !lean_is_exclusive(x_16);
|
||||
if (x_121 == 0)
|
||||
{
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_100; lean_object* x_101; lean_object* x_102;
|
||||
x_100 = lean_ctor_get(x_16, 0);
|
||||
x_101 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_101);
|
||||
lean_inc(x_100);
|
||||
lean_object* x_122; lean_object* x_123; lean_object* x_124;
|
||||
x_122 = lean_ctor_get(x_16, 0);
|
||||
x_123 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_123);
|
||||
lean_inc(x_122);
|
||||
lean_dec(x_16);
|
||||
x_102 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_102, 0, x_100);
|
||||
lean_ctor_set(x_102, 1, x_101);
|
||||
return x_102;
|
||||
x_124 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_124, 0, x_122);
|
||||
lean_ctor_set(x_124, 1, x_123);
|
||||
return x_124;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_103;
|
||||
uint8_t x_125;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -22577,23 +22690,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_103 = !lean_is_exclusive(x_13);
|
||||
if (x_103 == 0)
|
||||
x_125 = !lean_is_exclusive(x_13);
|
||||
if (x_125 == 0)
|
||||
{
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_104; lean_object* x_105; lean_object* x_106;
|
||||
x_104 = lean_ctor_get(x_13, 0);
|
||||
x_105 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_105);
|
||||
lean_inc(x_104);
|
||||
lean_object* x_126; lean_object* x_127; lean_object* x_128;
|
||||
x_126 = lean_ctor_get(x_13, 0);
|
||||
x_127 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_127);
|
||||
lean_inc(x_126);
|
||||
lean_dec(x_13);
|
||||
x_106 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_106, 0, x_104);
|
||||
lean_ctor_set(x_106, 1, x_105);
|
||||
return x_106;
|
||||
x_128 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_128, 0, x_126);
|
||||
lean_ctor_set(x_128, 1, x_127);
|
||||
return x_128;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -32348,7 +32461,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11876_(lean_object* x_1) {
|
||||
lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11931_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -33146,6 +33259,18 @@ l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda
|
|||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__16);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__17 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__17();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__17);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__1 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__1);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__2 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__2();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__2);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__3 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__3();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__3);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__4 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__4();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__4);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__5 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__5();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__5);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__6 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__6();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___closed__6);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__1 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__1);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__2 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___closed__2();
|
||||
|
|
@ -33227,7 +33352,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax___c
|
|||
res = l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11876_(lean_io_mk_world());
|
||||
res = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_11931_(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));
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Elab/Structure.c
generated
4
stage0/stdlib/Lean/Elab/Structure.c
generated
|
|
@ -10614,8 +10614,8 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__10;
|
||||
x_2 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__11;
|
||||
x_3 = lean_unsigned_to_nat(313u);
|
||||
x_4 = lean_unsigned_to_nat(37u);
|
||||
x_3 = lean_unsigned_to_nat(278u);
|
||||
x_4 = lean_unsigned_to_nat(31u);
|
||||
x_5 = l_Lean_Syntax_strLitToAtom___closed__3;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
return x_6;
|
||||
|
|
|
|||
1062
stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c
generated
1062
stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue