feat: nary nomatch (#3285)
Base for https://github.com/leanprover/lean4/pull/3279 --------- Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
This commit is contained in:
parent
09a43990aa
commit
1f547225d1
25 changed files with 12314 additions and 5942 deletions
|
|
@ -1236,16 +1236,29 @@ where
|
|||
builtin_initialize
|
||||
registerTraceClass `Elab.match
|
||||
|
||||
-- leading_parser:leadPrec "nomatch " >> termParser
|
||||
-- leading_parser:leadPrec "nomatch " >> sepBy1 termParser ", "
|
||||
@[builtin_term_elab «nomatch»] def elabNoMatch : TermElab := fun stx expectedType? => do
|
||||
match stx with
|
||||
| `(nomatch $discrExpr) =>
|
||||
if (← isAtomicDiscr discrExpr) then
|
||||
| `(nomatch $discrs,*) =>
|
||||
let discrs := discrs.getElems
|
||||
if (← discrs.allM fun discr => isAtomicDiscr discr.raw) then
|
||||
let expectedType ← waitExpectedType expectedType?
|
||||
let discr := mkNode ``Lean.Parser.Term.matchDiscr #[mkNullNode, discrExpr]
|
||||
elabMatchAux none #[discr] #[] mkNullNode expectedType
|
||||
let discrs := discrs.map fun discr => mkNode ``Lean.Parser.Term.matchDiscr #[mkNullNode, discr.raw]
|
||||
elabMatchAux none discrs #[] mkNullNode expectedType
|
||||
else
|
||||
let stxNew ← `(let_mvar% ?x := $discrExpr; nomatch ?x)
|
||||
let rec loop (discrs : List Term) (discrsNew : Array Syntax) : TermElabM Term := do
|
||||
match discrs with
|
||||
| [] =>
|
||||
return ⟨stx.setArg 1 (Syntax.mkSep discrsNew (mkAtomFrom stx ", "))⟩
|
||||
| discr :: discrs =>
|
||||
if (← isAtomicDiscr discr) then
|
||||
loop discrs (discrsNew.push discr)
|
||||
else
|
||||
withFreshMacroScope do
|
||||
let discrNew ← `(?x)
|
||||
let r ← loop discrs (discrsNew.push discrNew)
|
||||
`(let_mvar% ?x := $discr; $r)
|
||||
let stxNew ← loop discrs.toList #[]
|
||||
withMacroExpansion stx stxNew <| elabTerm stxNew expectedType?
|
||||
| _ => throwUnsupportedSyntax
|
||||
|
||||
|
|
|
|||
|
|
@ -432,7 +432,7 @@ Empty match/ex falso. `nomatch e` is of arbitrary type `α : Sort u` if
|
|||
Lean can show that an empty set of patterns is exhaustive given `e`'s type,
|
||||
e.g. because it has no constructors.
|
||||
-/
|
||||
@[builtin_term_parser] def «nomatch» := leading_parser:leadPrec "nomatch " >> termParser
|
||||
@[builtin_term_parser] def «nomatch» := leading_parser:leadPrec "nomatch " >> sepBy1 termParser ", "
|
||||
|
||||
def funImplicitBinder := withAntiquot (mkAntiquot "implicitBinder" ``implicitBinder) <|
|
||||
atomic (lookahead ("{" >> many1 binderIdent >> (symbol " : " <|> "}"))) >> implicitBinder
|
||||
|
|
|
|||
6
stage0/stdlib/Init.c
generated
6
stage0/stdlib/Init.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Init
|
||||
// Imports: Init.Prelude Init.Notation Init.Tactics Init.Core Init.Control Init.Data.Basic Init.WF Init.WFTactics Init.Data Init.System Init.Util Init.Dynamic Init.ShareCommon Init.MetaTypes Init.Meta Init.NotationExtra Init.SimpLemmas Init.Hints Init.Conv Init.Simproc Init.SizeOfLemmas
|
||||
// Imports: Init.Prelude Init.Notation Init.Tactics Init.TacticsExtra Init.Core Init.Control Init.Data.Basic Init.WF Init.WFTactics Init.Data Init.System Init.Util Init.Dynamic Init.ShareCommon Init.MetaTypes Init.Meta Init.NotationExtra Init.SimpLemmas Init.Hints Init.Conv Init.Simproc Init.SizeOfLemmas
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -16,6 +16,7 @@ extern "C" {
|
|||
lean_object* initialize_Init_Prelude(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Notation(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Tactics(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_TacticsExtra(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Core(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Control(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_Basic(uint8_t builtin, lean_object*);
|
||||
|
|
@ -48,6 +49,9 @@ lean_dec_ref(res);
|
|||
res = initialize_Init_Tactics(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_TacticsExtra(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Init_Core(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
|
|
|
|||
525
stage0/stdlib/Init/Data/Array/Basic.c
generated
525
stage0/stdlib/Init/Data/Array/Basic.c
generated
|
|
@ -22,16 +22,19 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toList___spec__2__
|
|||
static lean_object* l___aux__Init__Data__Array__Basic______macroRules__term_x23_x5b___x2c_x5d__1___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Array_isPrefixOf(lean_object*);
|
||||
static lean_object* l_Array_instEmptyCollectionArray___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at_Array_range___spec__1___at_Array_range___spec__2___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_foldl___spec__1___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
static lean_object* l_term_x23_x5b___x2c_x5d___closed__15;
|
||||
LEAN_EXPORT lean_object* l_Array_findRev_x3f___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrM_fold___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Array_findIdxM_x3f___spec__1___rarg___lambda__4(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_zipWithIndex(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_uget___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Array_isEqvAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_panic___at_Array_swapAt_x21___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_allDiffAux(lean_object*);
|
||||
static lean_object* l_Array_instGetElemArrayUSizeLtNatInstLTNatToNatSize___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Array_contains___spec__1(lean_object*);
|
||||
static lean_object* l_term_x23_x5b___x2c_x5d___closed__14;
|
||||
|
|
@ -44,14 +47,17 @@ static lean_object* l___aux__Init__Data__Array__Basic______macroRules__term_x23_
|
|||
LEAN_EXPORT lean_object* l_Array_findSome_x21___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__List_drop_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_modifyMUnsafe___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_flatten___spec__1___rarg(lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Array_find_x3f___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_concatMapM___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Array_findM_x3f___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_ofFn_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forIn_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findM_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__List_toArrayAux_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___aux__Init__Data__Array__Basic______macroRules__term_x23_x5b___x2c_x5d__1___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Array_all(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_flatten___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_foldl___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_getMax_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___aux__Init__Data__Array__Basic______macroRules__term_x23_x5b___x2c_x5d__1___closed__12;
|
||||
|
|
@ -61,6 +67,7 @@ static lean_object* l_term_x23_x5b___x2c_x5d___closed__7;
|
|||
LEAN_EXPORT lean_object* l_Array_erase___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_swapAt_x21(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_filterMapM___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_flatten(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_zip___rarg___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Array_instReprArray___rarg___closed__9;
|
||||
lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -79,6 +86,8 @@ LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Array_findRev_x3f___
|
|||
LEAN_EXPORT lean_object* l_Array_findIdx_x3f_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_allDiff___rarg___boxed(lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_flatten___rarg___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_filterMap___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -115,9 +124,11 @@ LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Array_contains___spec__1___rarg(
|
|||
LEAN_EXPORT lean_object* l_Array_findIdx_x3f_loop___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_foldr___spec__2___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__List_drop_match__1_splitter(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at_Array_range___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyM_loop___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Array_findRev_x3f___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Array_all___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_unzip(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Array_findSomeM_x3f___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -129,6 +140,7 @@ LEAN_EXPORT lean_object* l_Array_findIdx_x3f_loop(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Array_findSomeM_x3f___spec__1___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_shrink(lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_allDiffAuxAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_ofFn(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__List_drop_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -153,6 +165,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_forM___spec__1___r
|
|||
LEAN_EXPORT lean_object* l_Array_findSome_x3f___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findSome_x21(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_ofFn___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Array_all___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_getIdx_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_concatMapM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -181,6 +194,7 @@ LEAN_EXPORT lean_object* l_Array_swapAt_x21___rarg(lean_object*, lean_object*, l
|
|||
LEAN_EXPORT lean_object* l_Array_mapIdx___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_isEmpty(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapM_map___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Array_zipWithIndex___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_singleton(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_feraseIdx___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findSomeM_x3f___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -218,11 +232,13 @@ lean_object* lean_nat_to_int(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Array_allM___spec__2(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Array_contains___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Array_isPrefixOf___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_toListAppend___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_forRevM___spec__2(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_isEqv___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_appendList(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_takeWhile___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Array_instAppendArray___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_ofFn___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_filter___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_allM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_toArrayLit___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -259,6 +275,8 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Array_allM___spec__1___rarg
|
|||
static lean_object* l_Array_findSome_x21___rarg___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Array_mapIdxM_map___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_concatMap___spec__1___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at_Array_range___spec__1___at_Array_range___spec__2(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_ofFn_go(lean_object*);
|
||||
LEAN_EXPORT lean_object* lean_array_to_list(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Array_findSomeM_x3f___spec__1___rarg___lambda__3(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*);
|
||||
static lean_object* l___aux__Init__Data__Array__Basic______macroRules__term_x23_x5b___x2c_x5d__1___closed__13;
|
||||
|
|
@ -299,6 +317,7 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Array_allM___spec__2___rarg
|
|||
LEAN_EXPORT lean_object* l_Array_filterMapM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_zipWith___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_foldr___spec__2(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__1___rarg(lean_object*, size_t, size_t, lean_object*);
|
||||
static lean_object* l_Array_instHAppendArrayList___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_instReprArray(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -314,6 +333,7 @@ static lean_object* l_Array_findIdxM_x3f___rarg___closed__1;
|
|||
static lean_object* l_term_x23_x5b___x2c_x5d___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_instInhabitedArray(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findRevM_x3f___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__2___rarg(lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_filter(lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -325,6 +345,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_filterM___spec__1_
|
|||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_concatMap___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_foldl___at_Array_instReprArray___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findRevM_x3f(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_range(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Array_findIdxM_x3f___spec__1___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Array_forRevM(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_eraseIdxAux(lean_object*);
|
||||
|
|
@ -342,6 +363,7 @@ LEAN_EXPORT lean_object* l_Array_insertAt(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_partition(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_eraseIdxSzAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_zipWithIndex___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_eraseIdx___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forM(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_filterM___spec__1___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
|
|
@ -350,6 +372,7 @@ LEAN_EXPORT lean_object* l_Array_get_x3f(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Array_insertAt_loop(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_filterMapM___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findSome_x3f(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Array_zipWithIndex___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_getEvenElems___rarg___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_foldl___at_Array_appendList___spec__1(lean_object*);
|
||||
|
|
@ -394,6 +417,7 @@ LEAN_EXPORT lean_object* l_Array_forM___rarg(lean_object*, lean_object*, lean_ob
|
|||
LEAN_EXPORT lean_object* l_Array_filterMapM___at_Array_filterMap___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_any___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_flatten___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_filter___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_filterMap___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -437,6 +461,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Array_map___spec__1___rarg_
|
|||
LEAN_EXPORT lean_object* l_Array_shrink___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_filterM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Array_takeWhile_go___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at_Array_range___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_appendList___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_panic___at_Array_insertAt_x21___spec__1___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findIdxM_x3f(lean_object*, lean_object*);
|
||||
|
|
@ -465,6 +490,7 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_forRevM___spec__2_
|
|||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Array_findSome_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_insertAt_x21___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_toListAppend(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_shrink_loop(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_concatMapM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_foldr___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -492,6 +518,7 @@ LEAN_EXPORT lean_object* l_Array_back___rarg(lean_object*, lean_object*);
|
|||
static lean_object* l_Array_swapAt_x21___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_eraseIdxAux___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Array_instReprArray___rarg___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Array_flatten___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_partition___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Array_any___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Array_findSomeM_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
|
|
@ -515,6 +542,7 @@ LEAN_EXPORT lean_object* l_Array_split___rarg(lean_object*, lean_object*);
|
|||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
static lean_object* l_term_x23_x5b___x2c_x5d___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Array_ofFn_go___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Array_all___spec__1___rarg(lean_object*, lean_object*, size_t, size_t);
|
||||
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findM_x3f___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -529,11 +557,13 @@ lean_object* lean_string_append(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Array_getLit___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_toListLitAux(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_insertAt___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_zipWithIndex___rarg___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_shrink___rarg___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_term_x23_x5b___x2c_x5d___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Array_indexOfAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_toListAppend___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Array_instReprArray___rarg___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Array_zipWithAux___at_Array_zip___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toList___spec__1(lean_object*);
|
||||
|
|
@ -552,6 +582,7 @@ LEAN_EXPORT lean_object* l_Array_mapM_map___rarg___lambda__1(lean_object*, lean_
|
|||
static lean_object* l_term_x23_x5b___x2c_x5d___closed__9;
|
||||
LEAN_EXPORT lean_object* l_Array_findIdx_x3f___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_swap___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Array_zipWithIndex___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_zipWith(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_instBEqArray___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forIn_loop(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -568,6 +599,7 @@ LEAN_EXPORT lean_object* l_Array_takeWhile___rarg___boxed(lean_object*, lean_obj
|
|||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_filterMap___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__2(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_getEvenElems(lean_object*);
|
||||
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___aux__Init__Data__Array__Basic______macroRules__term_x23_x5b___x2c_x5d__1___closed__8;
|
||||
|
|
@ -619,6 +651,160 @@ x_4 = lean_mk_array(x_2, x_3);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_ofFn_go___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = lean_nat_dec_lt(x_3, x_1);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_6 = lean_unsigned_to_nat(1u);
|
||||
x_7 = lean_nat_add(x_3, x_6);
|
||||
lean_inc(x_2);
|
||||
x_8 = lean_apply_1(x_2, x_3);
|
||||
x_9 = lean_array_push(x_4, x_8);
|
||||
x_3 = x_7;
|
||||
x_4 = x_9;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_ofFn_go(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_ofFn_go___rarg___boxed), 4, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_ofFn_go___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Array_ofFn_go___rarg(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_1);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_ofFn___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_3 = lean_mk_empty_array_with_capacity(x_1);
|
||||
x_4 = lean_unsigned_to_nat(0u);
|
||||
x_5 = l_Array_ofFn_go___rarg(x_1, x_2, x_4, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_ofFn(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_ofFn___rarg___boxed), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_ofFn___rarg___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Array_ofFn___rarg(x_1, x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at_Array_range___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; uint8_t x_6;
|
||||
x_5 = lean_unsigned_to_nat(0u);
|
||||
x_6 = lean_nat_dec_eq(x_3, x_5);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_7 = lean_unsigned_to_nat(1u);
|
||||
x_8 = lean_nat_sub(x_3, x_7);
|
||||
lean_dec(x_3);
|
||||
x_9 = lean_nat_add(x_8, x_7);
|
||||
x_10 = lean_nat_sub(x_2, x_9);
|
||||
lean_dec(x_9);
|
||||
lean_inc(x_1);
|
||||
x_11 = lean_apply_2(x_1, x_4, x_10);
|
||||
x_3 = x_8;
|
||||
x_4 = x_11;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at_Array_range___spec__1___at_Array_range___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; uint8_t x_5;
|
||||
x_4 = lean_unsigned_to_nat(0u);
|
||||
x_5 = lean_nat_dec_eq(x_2, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_6 = lean_unsigned_to_nat(1u);
|
||||
x_7 = lean_nat_sub(x_2, x_6);
|
||||
lean_dec(x_2);
|
||||
x_8 = lean_nat_add(x_7, x_6);
|
||||
x_9 = lean_nat_sub(x_1, x_8);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_array_push(x_3, x_9);
|
||||
x_2 = x_7;
|
||||
x_3 = x_10;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_range(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
lean_inc(x_1);
|
||||
x_3 = l_Nat_foldTR_loop___at_Array_range___spec__1___at_Array_range___spec__2(x_1, x_1, x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at_Array_range___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Nat_foldTR_loop___at_Array_range___spec__1(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_2);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at_Array_range___spec__1___at_Array_range___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Nat_foldTR_loop___at_Array_range___spec__1___at_Array_range___spec__2(x_1, x_2, x_3);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_instEmptyCollectionArray___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -984,7 +1170,7 @@ x_9 = l_Array_swapAt_x21___rarg___closed__2;
|
|||
x_10 = lean_string_append(x_8, x_9);
|
||||
x_11 = l_Array_swapAt_x21___rarg___closed__3;
|
||||
x_12 = l_Array_swapAt_x21___rarg___closed__4;
|
||||
x_13 = lean_unsigned_to_nat(111u);
|
||||
x_13 = lean_unsigned_to_nat(126u);
|
||||
x_14 = lean_unsigned_to_nat(4u);
|
||||
x_15 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_11, x_12, x_13, x_14, x_10);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -4811,6 +4997,86 @@ lean_dec(x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Array_zipWithIndex___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; uint8_t x_8;
|
||||
x_7 = lean_unsigned_to_nat(0u);
|
||||
x_8 = lean_nat_dec_eq(x_3, x_7);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_9 = lean_unsigned_to_nat(1u);
|
||||
x_10 = lean_nat_sub(x_3, x_9);
|
||||
lean_dec(x_3);
|
||||
x_11 = lean_array_fget(x_2, x_4);
|
||||
lean_inc(x_4);
|
||||
x_12 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_11);
|
||||
lean_ctor_set(x_12, 1, x_4);
|
||||
x_13 = lean_nat_add(x_4, x_9);
|
||||
lean_dec(x_4);
|
||||
x_14 = lean_array_push(x_6, x_12);
|
||||
x_3 = x_10;
|
||||
x_4 = x_13;
|
||||
x_5 = lean_box(0);
|
||||
x_6 = x_14;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Array_zipWithIndex___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_mapIdxM_map___at_Array_zipWithIndex___spec__1___rarg___boxed), 6, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_zipWithIndex___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = lean_array_get_size(x_1);
|
||||
x_3 = lean_mk_empty_array_with_capacity(x_2);
|
||||
x_4 = lean_unsigned_to_nat(0u);
|
||||
x_5 = l_Array_mapIdxM_map___at_Array_zipWithIndex___spec__1___rarg(x_1, x_1, x_2, x_4, lean_box(0), x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_zipWithIndex(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_zipWithIndex___rarg___boxed), 1, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Array_zipWithIndex___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Array_mapIdxM_map___at_Array_zipWithIndex___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_zipWithIndex___rarg___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Array_zipWithIndex___rarg(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Array_find_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -5197,7 +5463,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Array_swapAt_x21___rarg___closed__3;
|
||||
x_2 = l_Array_findSome_x21___rarg___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(428u);
|
||||
x_3 = lean_unsigned_to_nat(447u);
|
||||
x_4 = lean_unsigned_to_nat(14u);
|
||||
x_5 = l_Array_findSome_x21___rarg___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -6435,6 +6701,161 @@ lean_dec(x_1);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__1___rarg(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)
|
||||
{
|
||||
size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_6 = 1;
|
||||
x_7 = lean_usize_sub(x_2, x_6);
|
||||
x_8 = lean_array_uget(x_1, x_7);
|
||||
x_9 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_8);
|
||||
lean_ctor_set(x_9, 1, x_4);
|
||||
x_2 = x_7;
|
||||
x_4 = x_9;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__1___rarg___boxed), 4, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__2___rarg(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)
|
||||
{
|
||||
size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_6 = 1;
|
||||
x_7 = lean_usize_sub(x_2, x_6);
|
||||
x_8 = lean_array_uget(x_1, x_7);
|
||||
x_9 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_8);
|
||||
lean_ctor_set(x_9, 1, x_4);
|
||||
x_2 = x_7;
|
||||
x_4 = x_9;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__2(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__2___rarg___boxed), 4, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_toListAppend___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; uint8_t x_4;
|
||||
x_3 = lean_array_get_size(x_1);
|
||||
x_4 = lean_nat_dec_le(x_3, x_3);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
lean_object* x_5; uint8_t x_6;
|
||||
x_5 = lean_unsigned_to_nat(0u);
|
||||
x_6 = lean_nat_dec_lt(x_5, x_3);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
lean_dec(x_3);
|
||||
return x_2;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_7; size_t x_8; lean_object* x_9;
|
||||
x_7 = lean_usize_of_nat(x_3);
|
||||
lean_dec(x_3);
|
||||
x_8 = 0;
|
||||
x_9 = l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__1___rarg(x_1, x_7, x_8, x_2);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_10; uint8_t x_11;
|
||||
x_10 = lean_unsigned_to_nat(0u);
|
||||
x_11 = lean_nat_dec_lt(x_10, x_3);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_dec(x_3);
|
||||
return x_2;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_12; size_t x_13; lean_object* x_14;
|
||||
x_12 = lean_usize_of_nat(x_3);
|
||||
lean_dec(x_3);
|
||||
x_13 = 0;
|
||||
x_14 = l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__2___rarg(x_1, x_12, x_13, x_2);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_toListAppend(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_toListAppend___rarg___boxed), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
size_t x_5; size_t x_6; lean_object* x_7;
|
||||
x_5 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_6 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_7 = l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__1___rarg(x_1, x_5, x_6, x_4);
|
||||
lean_dec(x_1);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
size_t x_5; size_t x_6; lean_object* x_7;
|
||||
x_5 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_6 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_7 = l_Array_foldrMUnsafe_fold___at_Array_toListAppend___spec__2___rarg(x_1, x_5, x_6, x_4);
|
||||
lean_dec(x_1);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_toListAppend___rarg___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Array_toListAppend___rarg(x_1, x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_foldl___at_Array_instReprArray___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -7150,6 +7571,104 @@ lean_dec(x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_flatten___spec__1___rarg(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; size_t x_8; size_t x_9;
|
||||
x_6 = lean_array_uget(x_1, x_2);
|
||||
x_7 = l_Array_append___rarg(x_4, x_6);
|
||||
x_8 = 1;
|
||||
x_9 = lean_usize_add(x_2, x_8);
|
||||
x_2 = x_9;
|
||||
x_4 = x_7;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_flatten___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_foldlMUnsafe_fold___at_Array_flatten___spec__1___rarg___boxed), 4, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_flatten___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; uint8_t x_4;
|
||||
x_2 = lean_array_get_size(x_1);
|
||||
x_3 = lean_unsigned_to_nat(0u);
|
||||
x_4 = lean_nat_dec_lt(x_3, x_2);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
lean_object* x_5;
|
||||
lean_dec(x_2);
|
||||
x_5 = l_Array_instEmptyCollectionArray___closed__1;
|
||||
return x_5;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_6;
|
||||
x_6 = lean_nat_dec_le(x_2, x_2);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
lean_object* x_7;
|
||||
lean_dec(x_2);
|
||||
x_7 = l_Array_instEmptyCollectionArray___closed__1;
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_8 = 0;
|
||||
x_9 = lean_usize_of_nat(x_2);
|
||||
lean_dec(x_2);
|
||||
x_10 = l_Array_instEmptyCollectionArray___closed__1;
|
||||
x_11 = l_Array_foldlMUnsafe_fold___at_Array_flatten___spec__1___rarg(x_1, x_8, x_9, x_10);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_flatten(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_flatten___rarg___boxed), 1, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_flatten___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
size_t x_5; size_t x_6; lean_object* x_7;
|
||||
x_5 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_6 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_7 = l_Array_foldlMUnsafe_fold___at_Array_flatten___spec__1___rarg(x_1, x_5, x_6, x_4);
|
||||
lean_dec(x_1);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_flatten___rarg___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Array_flatten___rarg(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_term_x23_x5b___x2c_x5d___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -9197,7 +9716,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Array_swapAt_x21___rarg___closed__3;
|
||||
x_2 = l_Array_insertAt_x21___rarg___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(750u);
|
||||
x_3 = lean_unsigned_to_nat(781u);
|
||||
x_4 = lean_unsigned_to_nat(7u);
|
||||
x_5 = l_Array_insertAt_x21___rarg___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
|
|||
458
stage0/stdlib/Init/Notation.c
generated
458
stage0/stdlib/Init/Notation.c
generated
|
|
@ -45,7 +45,6 @@ static lean_object* l___aux__Init__Notation______macroRules__stx___x2c_x2a__1___
|
|||
static lean_object* l___aux__Init__Notation______macroRules__boolIfThenElse__1___closed__5;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___u2208____1___closed__1;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__Or__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_term___x3c_x3d_____closed__7;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x3c_x2a_x3e____1___closed__20;
|
||||
static lean_object* l_term___u2209_____closed__7;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___u2218____1___closed__5;
|
||||
|
|
@ -107,6 +106,7 @@ LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__LE__le__2___lamb
|
|||
static lean_object* l_term___u2208_____closed__1;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__stx_x21____1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x2b_x2b____1___closed__4;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___u2223____1___closed__7;
|
||||
static lean_object* l_term___x5e_x5e_x5e_____closed__3;
|
||||
static lean_object* l_term___u2264_____closed__1;
|
||||
static lean_object* l_termIfLet___closed__8;
|
||||
|
|
@ -295,6 +295,7 @@ static lean_object* l_rawNatLit___closed__7;
|
|||
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
|
||||
static lean_object* l_term___x2a_x3e_____closed__3;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__stx___x3f__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_term___u2223__;
|
||||
static lean_object* l_term___x5c_x2f_____closed__4;
|
||||
static lean_object* l_prec_x28___x29___closed__3;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x5e____1___closed__7;
|
||||
|
|
@ -328,6 +329,7 @@ static lean_object* l___aux__Init__Notation______macroRules__term___x26_x26_x26_
|
|||
static lean_object* l_term___u2218_____closed__8;
|
||||
static lean_object* l_term_xac_____closed__1;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x3e____1___closed__3;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___u2223____1___closed__2;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x7c_x7c____1___closed__4;
|
||||
static lean_object* l_Lean_includeStr___closed__5;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x5c_x2f____1___closed__6;
|
||||
|
|
@ -354,6 +356,7 @@ static lean_object* l_Lean_withAnnotateTerm___closed__1;
|
|||
static lean_object* l___aux__Init__Notation______macroRules__term___x3c____1___closed__1;
|
||||
static lean_object* l_precMax___closed__2;
|
||||
static lean_object* l_Lean_deprecated___closed__1;
|
||||
static lean_object* l_term___u2223_____closed__3;
|
||||
static lean_object* l_term_x7b___x3a___x2f_x2f___x7d___closed__18;
|
||||
static lean_object* l_termIfLet___closed__9;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___x25____1(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -405,6 +408,7 @@ static lean_object* l___aux__Init__Notation______macroRules__stx___x2c_x2a__1___
|
|||
static lean_object* l___aux__Init__Notation______macroRules__term___x26_x26____1___closed__5;
|
||||
static lean_object* l_Lean_Parser_Syntax_addPrec___closed__8;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x3c_x2a_x3e____1___closed__4;
|
||||
static lean_object* l_term___u2223_____closed__4;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x3c____1___closed__3;
|
||||
static lean_object* l_stx___x3f___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Category_level;
|
||||
|
|
@ -423,6 +427,7 @@ static lean_object* l_term___x2a_____closed__7;
|
|||
static lean_object* l___aux__Init__Notation______macroRules__term_x21____1___closed__3;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___x3c_x3c_x3c____1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_term___x3c_x7c__;
|
||||
static lean_object* l_term___u2223_____closed__5;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___x3c_x7c____1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___aux__Init__Notation______unexpand__Function__comp__1___closed__2;
|
||||
static lean_object* l_precMax___closed__1;
|
||||
|
|
@ -446,7 +451,9 @@ static lean_object* l___aux__Init__Notation______macroRules__term___x3a_x3a____1
|
|||
LEAN_EXPORT lean_object* l_Lean_Parser_Syntax_subPrec;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__termDepIfThenElse__1___closed__8;
|
||||
static lean_object* l_term___x3c_x7c_____closed__4;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___u2223____1___closed__1;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__termWithout__expected__type____1___closed__6;
|
||||
static lean_object* l_term___u2223_____closed__2;
|
||||
static lean_object* l_term___x2f_____closed__2;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x2f____1___closed__2;
|
||||
static lean_object* l_Lean_withAnnotateTerm___closed__5;
|
||||
|
|
@ -486,6 +493,7 @@ LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__prio_x28___x29
|
|||
static lean_object* l___aux__Init__Notation______macroRules__term___x3e____1___closed__7;
|
||||
LEAN_EXPORT lean_object* l_term___x7c_x7c__;
|
||||
static lean_object* l_term___x3e_x3d_____closed__5;
|
||||
static lean_object* l_term___u2223_____closed__7;
|
||||
static lean_object* l_term___x3c_x2a_____closed__3;
|
||||
static lean_object* l_stx___x2c_x2b_x2c_x3f___closed__5;
|
||||
static lean_object* l_Lean_Parser_Syntax_subPrio___closed__1;
|
||||
|
|
@ -580,6 +588,7 @@ static lean_object* l_term_x2d_____closed__2;
|
|||
static lean_object* l___aux__Init__Notation______macroRules__term___u2208____1___closed__5;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__termWithout__expected__type____1___closed__4;
|
||||
static lean_object* l_term___u2265_____closed__2;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___u2223____1___closed__6;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__termIfThenElse__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_stx___x3c_x7c_x3e_____closed__8;
|
||||
static lean_object* l_term___x24_______closed__3;
|
||||
|
|
@ -744,6 +753,7 @@ static lean_object* l___aux__Init__Notation______macroRules__termDepIfThenElse__
|
|||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___x2a____2(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_term___x3c_x24_x3e_____closed__3;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__And__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_term___u2223_____closed__6;
|
||||
static lean_object* l_term___x3c_x24_x3e_____closed__1;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__And__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x26_x26_x26____1___closed__3;
|
||||
|
|
@ -808,6 +818,7 @@ static lean_object* l_Lean_Parser_Tactic_caseArg___closed__6;
|
|||
static lean_object* l___aux__Init__Notation______macroRules__term_x7b___x3a___x2f_x2f___x7d__1___closed__3;
|
||||
static lean_object* l_Lean_deprecated___closed__4;
|
||||
static lean_object* l_precMin1___closed__5;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__Dvd__dvd__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___x25____2(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___x3d____1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__stx___x3f__1(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1083,6 +1094,7 @@ static lean_object* l___aux__Init__Notation______macroRules__term___x3c_x3d____1
|
|||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__BEq__beq__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_caseArg;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x7c_x7c_x7c____1___closed__2;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___u2223____1___closed__3;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__Functor__map__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_termDepIfThenElse___closed__10;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___x3c____1(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1149,6 +1161,7 @@ static lean_object* l___aux__Init__Notation______macroRules__term_x2d____2___clo
|
|||
static lean_object* l___aux__Init__Notation______macroRules__term___x3c_x2a_x3e____1___closed__12;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___u2265____1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x3e_x3e_x3d____1___closed__5;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__Dvd__dvd__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___x3e_x3e_x3e____1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_term___x3c_x7c_x3e_____closed__2;
|
||||
static lean_object* l_precMin1___closed__3;
|
||||
|
|
@ -1266,6 +1279,7 @@ LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__not__1(lean_obje
|
|||
static lean_object* l_rawNatLit___closed__2;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x3c_x2a_x3e____1___closed__3;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__GE__ge__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___u2223____1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_prio_x28___x29___closed__1;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x26_x26____1___closed__3;
|
||||
LEAN_EXPORT lean_object* l_term_xac__;
|
||||
|
|
@ -1309,6 +1323,7 @@ LEAN_EXPORT lean_object* l_term_x21__;
|
|||
static lean_object* l_stx___x2a___closed__1;
|
||||
static lean_object* l_term___x25_____closed__4;
|
||||
static lean_object* l_term_x7b___x3a___x2f_x2f___x7d___closed__6;
|
||||
static lean_object* l_term___u2223_____closed__1;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__HDiv__hDiv__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_term___u2208_____closed__4;
|
||||
static lean_object* l_stx___x2c_x2a___closed__4;
|
||||
|
|
@ -1317,9 +1332,11 @@ lean_object* l_String_toSubstring_x27(lean_object*);
|
|||
static lean_object* l___aux__Init__Notation______macroRules__term___x2a____1___closed__1;
|
||||
static lean_object* l_term___x3c_x3d_____closed__6;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x5e____1___closed__1;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___u2223____1___closed__4;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x7c_x7c_x7c____1___closed__3;
|
||||
static lean_object* l_term___x3a_x3a_____closed__7;
|
||||
static lean_object* l_prec_x28___x29___closed__6;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__Dvd__dvd__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_term___x2b_____closed__3;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__stx___x2b__1___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Category_prec;
|
||||
|
|
@ -1330,6 +1347,7 @@ static lean_object* l_term___u2208_____closed__2;
|
|||
static lean_object* l___aux__Init__Notation______macroRules__term___x2f_x5c____1___closed__3;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___u2227____1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___aux__Init__Notation______macroRules__stx_x21____1___closed__3;
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___u2223____1___closed__5;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__HMod__hMod__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___aux__Init__Notation______macroRules__term___x2a____1___closed__4;
|
||||
static lean_object* l_Lean_rawStx_quot___closed__1;
|
||||
|
|
@ -5753,6 +5771,376 @@ lean_dec(x_1);
|
|||
return x_8;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_term___u2223_____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("term_∣_", 9);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_term___u2223_____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_term___u2223_____closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_term___u2223_____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes(" ∣ ", 5);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_term___u2223_____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_term___u2223_____closed__3;
|
||||
x_2 = lean_alloc_ctor(5, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_term___u2223_____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_term___u2218_____closed__6;
|
||||
x_2 = lean_unsigned_to_nat(51u);
|
||||
x_3 = lean_alloc_ctor(7, 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_term___u2223_____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_addPrec___closed__7;
|
||||
x_2 = l_term___u2223_____closed__4;
|
||||
x_3 = l_term___u2223_____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_term___u2223_____closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = l_term___u2223_____closed__2;
|
||||
x_2 = lean_unsigned_to_nat(50u);
|
||||
x_3 = lean_unsigned_to_nat(51u);
|
||||
x_4 = l_term___u2223_____closed__6;
|
||||
x_5 = lean_alloc_ctor(4, 4, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_term___u2223__() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_term___u2223_____closed__7;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("Dvd.dvd", 7);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___aux__Init__Notation______macroRules__term___u2223____1___closed__1;
|
||||
x_2 = l_String_toSubstring_x27(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("Dvd", 3);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("dvd", 3);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___aux__Init__Notation______macroRules__term___u2223____1___closed__3;
|
||||
x_2 = l___aux__Init__Notation______macroRules__term___u2223____1___closed__4;
|
||||
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___aux__Init__Notation______macroRules__term___u2223____1___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;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___aux__Init__Notation______macroRules__term___u2223____1___closed__6;
|
||||
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_EXPORT lean_object* l___aux__Init__Notation______macroRules__term___u2223____1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; uint8_t x_5;
|
||||
x_4 = l_term___u2223_____closed__2;
|
||||
lean_inc(x_1);
|
||||
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7;
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_6 = lean_box(1);
|
||||
x_7 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_7, 0, x_6);
|
||||
lean_ctor_set(x_7, 1, x_3);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_8 = lean_unsigned_to_nat(0u);
|
||||
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
|
||||
x_10 = lean_unsigned_to_nat(2u);
|
||||
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
|
||||
lean_dec(x_1);
|
||||
x_12 = lean_ctor_get(x_2, 5);
|
||||
lean_inc(x_12);
|
||||
x_13 = 0;
|
||||
x_14 = l_Lean_SourceInfo_fromRef(x_12, x_13);
|
||||
x_15 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_2);
|
||||
x_17 = l___aux__Init__Notation______macroRules__term___u2223____1___closed__5;
|
||||
x_18 = l_Lean_addMacroScope(x_16, x_17, x_15);
|
||||
x_19 = l___aux__Init__Notation______macroRules__term___u2223____1___closed__2;
|
||||
x_20 = l___aux__Init__Notation______macroRules__term___u2223____1___closed__7;
|
||||
lean_inc(x_14);
|
||||
x_21 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_21, 0, x_14);
|
||||
lean_ctor_set(x_21, 1, x_19);
|
||||
lean_ctor_set(x_21, 2, x_18);
|
||||
lean_ctor_set(x_21, 3, x_20);
|
||||
x_22 = l___aux__Init__Notation______macroRules__stx___x2b__1___closed__7;
|
||||
lean_inc(x_14);
|
||||
x_23 = l_Lean_Syntax_node2(x_14, x_22, x_9, x_11);
|
||||
x_24 = l___aux__Init__Notation______macroRules__term___u2218____1___closed__3;
|
||||
x_25 = l_Lean_Syntax_node2(x_14, x_24, x_21, x_23);
|
||||
x_26 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_25);
|
||||
lean_ctor_set(x_26, 1, x_3);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__Dvd__dvd__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_8 = l_Lean_replaceRef(x_1, x_6);
|
||||
x_9 = 0;
|
||||
x_10 = l_Lean_SourceInfo_fromRef(x_8, x_9);
|
||||
x_11 = l_term___u2223_____closed__3;
|
||||
lean_inc(x_10);
|
||||
x_12 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_10);
|
||||
lean_ctor_set(x_12, 1, x_11);
|
||||
x_13 = l_term___u2223_____closed__2;
|
||||
lean_inc(x_10);
|
||||
x_14 = l_Lean_Syntax_node3(x_10, x_13, x_3, x_12, x_4);
|
||||
x_15 = l___aux__Init__Notation______macroRules__stx___x2c_x2a__1___closed__10;
|
||||
x_16 = l_Array_appendCore___rarg(x_15, x_5);
|
||||
x_17 = l___aux__Init__Notation______macroRules__stx___x2b__1___closed__7;
|
||||
lean_inc(x_10);
|
||||
x_18 = lean_alloc_ctor(1, 3, 0);
|
||||
lean_ctor_set(x_18, 0, x_10);
|
||||
lean_ctor_set(x_18, 1, x_17);
|
||||
lean_ctor_set(x_18, 2, x_16);
|
||||
x_19 = l_Lean_Syntax_node2(x_10, x_2, x_14, x_18);
|
||||
x_20 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_19);
|
||||
lean_ctor_set(x_20, 1, x_7);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__Dvd__dvd__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; uint8_t x_5;
|
||||
x_4 = l___aux__Init__Notation______macroRules__term___u2218____1___closed__3;
|
||||
lean_inc(x_1);
|
||||
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7;
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_6 = lean_box(0);
|
||||
x_7 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_7, 0, x_6);
|
||||
lean_ctor_set(x_7, 1, x_3);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
x_8 = lean_unsigned_to_nat(0u);
|
||||
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
|
||||
x_10 = l___aux__Init__Notation______unexpand__Function__comp__1___closed__2;
|
||||
lean_inc(x_9);
|
||||
x_11 = l_Lean_Syntax_isOfKind(x_9, x_10);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_12 = lean_box(0);
|
||||
x_13 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_3);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
x_14 = lean_unsigned_to_nat(1u);
|
||||
x_15 = l_Lean_Syntax_getArg(x_1, x_14);
|
||||
lean_dec(x_1);
|
||||
x_16 = lean_unsigned_to_nat(2u);
|
||||
lean_inc(x_15);
|
||||
x_17 = l_Lean_Syntax_matchesNull(x_15, x_16);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_object* x_18; uint8_t x_19;
|
||||
x_18 = l_Lean_Syntax_getNumArgs(x_15);
|
||||
x_19 = lean_nat_dec_le(x_16, x_18);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21;
|
||||
lean_dec(x_18);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_2);
|
||||
x_20 = lean_box(0);
|
||||
x_21 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_20);
|
||||
lean_ctor_set(x_21, 1, x_3);
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_22 = l_Lean_Syntax_getArg(x_15, x_8);
|
||||
x_23 = l_Lean_Syntax_getArg(x_15, x_14);
|
||||
x_24 = l_Lean_Syntax_getArgs(x_15);
|
||||
lean_dec(x_15);
|
||||
x_25 = lean_nat_sub(x_18, x_8);
|
||||
lean_dec(x_18);
|
||||
x_26 = l_Array_extract___rarg(x_24, x_16, x_25);
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_24);
|
||||
x_27 = lean_box(2);
|
||||
x_28 = l___aux__Init__Notation______macroRules__stx___x2b__1___closed__7;
|
||||
x_29 = lean_alloc_ctor(1, 3, 0);
|
||||
lean_ctor_set(x_29, 0, x_27);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
lean_ctor_set(x_29, 2, x_26);
|
||||
x_30 = l_Lean_Syntax_getArgs(x_29);
|
||||
lean_dec(x_29);
|
||||
x_31 = l___aux__Init__Notation______unexpand__Dvd__dvd__1___lambda__1(x_9, x_4, x_22, x_23, x_30, x_2, x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_30);
|
||||
lean_dec(x_9);
|
||||
return x_31;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41;
|
||||
x_32 = l_Lean_Syntax_getArg(x_15, x_8);
|
||||
x_33 = l_Lean_Syntax_getArg(x_15, x_14);
|
||||
lean_dec(x_15);
|
||||
x_34 = l_Lean_replaceRef(x_9, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_9);
|
||||
x_35 = 0;
|
||||
x_36 = l_Lean_SourceInfo_fromRef(x_34, x_35);
|
||||
x_37 = l_term___u2223_____closed__3;
|
||||
lean_inc(x_36);
|
||||
x_38 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_38, 0, x_36);
|
||||
lean_ctor_set(x_38, 1, x_37);
|
||||
x_39 = l_term___u2223_____closed__2;
|
||||
x_40 = l_Lean_Syntax_node3(x_36, x_39, x_32, x_38, x_33);
|
||||
x_41 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_41, 0, x_40);
|
||||
lean_ctor_set(x_41, 1, x_3);
|
||||
return x_41;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Notation______unexpand__Dvd__dvd__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l___aux__Init__Notation______unexpand__Dvd__dvd__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_1);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_term___x7c_x7c_x7c_____closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -11582,22 +11970,10 @@ return x_2;
|
|||
static lean_object* _init_l_term___x3c_x3d_____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_term___u2218_____closed__6;
|
||||
x_2 = lean_unsigned_to_nat(51u);
|
||||
x_3 = lean_alloc_ctor(7, 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_term___x3c_x3d_____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_addPrec___closed__7;
|
||||
x_2 = l_term___x3c_x3d_____closed__4;
|
||||
x_3 = l_term___x3c_x3d_____closed__5;
|
||||
x_3 = l_term___u2223_____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);
|
||||
|
|
@ -11605,14 +11981,14 @@ lean_ctor_set(x_4, 2, x_3);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_term___x3c_x3d_____closed__7() {
|
||||
static lean_object* _init_l_term___x3c_x3d_____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = l_term___x3c_x3d_____closed__2;
|
||||
x_2 = lean_unsigned_to_nat(50u);
|
||||
x_3 = lean_unsigned_to_nat(51u);
|
||||
x_4 = l_term___x3c_x3d_____closed__6;
|
||||
x_4 = l_term___x3c_x3d_____closed__5;
|
||||
x_5 = lean_alloc_ctor(4, 4, 0);
|
||||
lean_ctor_set(x_5, 0, x_1);
|
||||
lean_ctor_set(x_5, 1, x_2);
|
||||
|
|
@ -11625,7 +12001,7 @@ static lean_object* _init_l_term___x3c_x3d__() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_term___x3c_x3d_____closed__7;
|
||||
x_1 = l_term___x3c_x3d_____closed__6;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -11955,7 +12331,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_addPrec___closed__7;
|
||||
x_2 = l_term___u2264_____closed__4;
|
||||
x_3 = l_term___x3c_x3d_____closed__5;
|
||||
x_3 = l_term___u2223_____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);
|
||||
|
|
@ -12246,7 +12622,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_addPrec___closed__7;
|
||||
x_2 = l_term___x3c_____closed__4;
|
||||
x_3 = l_term___x3c_x3d_____closed__5;
|
||||
x_3 = l_term___u2223_____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);
|
||||
|
|
@ -12604,7 +12980,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_addPrec___closed__7;
|
||||
x_2 = l_term___x3e_x3d_____closed__4;
|
||||
x_3 = l_term___x3c_x3d_____closed__5;
|
||||
x_3 = l_term___u2223_____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);
|
||||
|
|
@ -12962,7 +13338,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_addPrec___closed__7;
|
||||
x_2 = l_term___u2265_____closed__4;
|
||||
x_3 = l_term___x3c_x3d_____closed__5;
|
||||
x_3 = l_term___u2223_____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);
|
||||
|
|
@ -13253,7 +13629,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_addPrec___closed__7;
|
||||
x_2 = l_term___x3e_____closed__4;
|
||||
x_3 = l_term___x3c_x3d_____closed__5;
|
||||
x_3 = l_term___u2223_____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);
|
||||
|
|
@ -13611,7 +13987,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_addPrec___closed__7;
|
||||
x_2 = l_term___x3d_____closed__4;
|
||||
x_3 = l_term___x3c_x3d_____closed__5;
|
||||
x_3 = l_term___u2223_____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);
|
||||
|
|
@ -13975,7 +14351,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_addPrec___closed__7;
|
||||
x_2 = l_term___x3d_x3d_____closed__4;
|
||||
x_3 = l_term___x3c_x3d_____closed__5;
|
||||
x_3 = l_term___u2223_____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);
|
||||
|
|
@ -17629,7 +18005,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Syntax_addPrec___closed__7;
|
||||
x_2 = l_term___u2208_____closed__4;
|
||||
x_3 = l_term___x3c_x3d_____closed__5;
|
||||
x_3 = l_term___u2223_____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);
|
||||
|
|
@ -26590,6 +26966,36 @@ l___aux__Init__Notation______macroRules__term___xd7____1___closed__6 = _init_l__
|
|||
lean_mark_persistent(l___aux__Init__Notation______macroRules__term___xd7____1___closed__6);
|
||||
l___aux__Init__Notation______macroRules__term___xd7____1___closed__7 = _init_l___aux__Init__Notation______macroRules__term___xd7____1___closed__7();
|
||||
lean_mark_persistent(l___aux__Init__Notation______macroRules__term___xd7____1___closed__7);
|
||||
l_term___u2223_____closed__1 = _init_l_term___u2223_____closed__1();
|
||||
lean_mark_persistent(l_term___u2223_____closed__1);
|
||||
l_term___u2223_____closed__2 = _init_l_term___u2223_____closed__2();
|
||||
lean_mark_persistent(l_term___u2223_____closed__2);
|
||||
l_term___u2223_____closed__3 = _init_l_term___u2223_____closed__3();
|
||||
lean_mark_persistent(l_term___u2223_____closed__3);
|
||||
l_term___u2223_____closed__4 = _init_l_term___u2223_____closed__4();
|
||||
lean_mark_persistent(l_term___u2223_____closed__4);
|
||||
l_term___u2223_____closed__5 = _init_l_term___u2223_____closed__5();
|
||||
lean_mark_persistent(l_term___u2223_____closed__5);
|
||||
l_term___u2223_____closed__6 = _init_l_term___u2223_____closed__6();
|
||||
lean_mark_persistent(l_term___u2223_____closed__6);
|
||||
l_term___u2223_____closed__7 = _init_l_term___u2223_____closed__7();
|
||||
lean_mark_persistent(l_term___u2223_____closed__7);
|
||||
l_term___u2223__ = _init_l_term___u2223__();
|
||||
lean_mark_persistent(l_term___u2223__);
|
||||
l___aux__Init__Notation______macroRules__term___u2223____1___closed__1 = _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__1();
|
||||
lean_mark_persistent(l___aux__Init__Notation______macroRules__term___u2223____1___closed__1);
|
||||
l___aux__Init__Notation______macroRules__term___u2223____1___closed__2 = _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__2();
|
||||
lean_mark_persistent(l___aux__Init__Notation______macroRules__term___u2223____1___closed__2);
|
||||
l___aux__Init__Notation______macroRules__term___u2223____1___closed__3 = _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__3();
|
||||
lean_mark_persistent(l___aux__Init__Notation______macroRules__term___u2223____1___closed__3);
|
||||
l___aux__Init__Notation______macroRules__term___u2223____1___closed__4 = _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__4();
|
||||
lean_mark_persistent(l___aux__Init__Notation______macroRules__term___u2223____1___closed__4);
|
||||
l___aux__Init__Notation______macroRules__term___u2223____1___closed__5 = _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__5();
|
||||
lean_mark_persistent(l___aux__Init__Notation______macroRules__term___u2223____1___closed__5);
|
||||
l___aux__Init__Notation______macroRules__term___u2223____1___closed__6 = _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__6();
|
||||
lean_mark_persistent(l___aux__Init__Notation______macroRules__term___u2223____1___closed__6);
|
||||
l___aux__Init__Notation______macroRules__term___u2223____1___closed__7 = _init_l___aux__Init__Notation______macroRules__term___u2223____1___closed__7();
|
||||
lean_mark_persistent(l___aux__Init__Notation______macroRules__term___u2223____1___closed__7);
|
||||
l_term___x7c_x7c_x7c_____closed__1 = _init_l_term___x7c_x7c_x7c_____closed__1();
|
||||
lean_mark_persistent(l_term___x7c_x7c_x7c_____closed__1);
|
||||
l_term___x7c_x7c_x7c_____closed__2 = _init_l_term___x7c_x7c_x7c_____closed__2();
|
||||
|
|
@ -27022,8 +27428,6 @@ l_term___x3c_x3d_____closed__5 = _init_l_term___x3c_x3d_____closed__5();
|
|||
lean_mark_persistent(l_term___x3c_x3d_____closed__5);
|
||||
l_term___x3c_x3d_____closed__6 = _init_l_term___x3c_x3d_____closed__6();
|
||||
lean_mark_persistent(l_term___x3c_x3d_____closed__6);
|
||||
l_term___x3c_x3d_____closed__7 = _init_l_term___x3c_x3d_____closed__7();
|
||||
lean_mark_persistent(l_term___x3c_x3d_____closed__7);
|
||||
l_term___x3c_x3d__ = _init_l_term___x3c_x3d__();
|
||||
lean_mark_persistent(l_term___x3c_x3d__);
|
||||
l___aux__Init__Notation______macroRules__term___x3c_x3d____1___closed__1 = _init_l___aux__Init__Notation______macroRules__term___x3c_x3d____1___closed__1();
|
||||
|
|
|
|||
664
stage0/stdlib/Init/Tactics.c
generated
664
stage0/stdlib/Init/Tactics.c
generated
|
|
@ -24,6 +24,7 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticShow__;
|
|||
static lean_object* l_Lean_Parser_Tactic_clear___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_split___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_rwSeq___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_specialize;
|
||||
static lean_object* l_Lean_Parser_Tactic_withUnfoldingAll___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_case_x27___closed__8;
|
||||
|
|
@ -52,6 +53,7 @@ static lean_object* l_Lean_Parser_Tactic_inductionAltLHS___closed__10;
|
|||
static lean_object* l_Lean_Parser_Tactic_rwRule___closed__11;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticRfl___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_injection___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__28;
|
||||
static lean_object* l___aux__Init__Tactics______macroRules__term_____x5b___x5d__1___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticRefine__lift_____closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_paren___closed__3;
|
||||
|
|
@ -64,6 +66,7 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_constructor;
|
|||
static lean_object* l_Lean_Parser_Tactic_revert___closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic_refine_x27___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_withAnnotateState___closed__12;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Attr_simp;
|
||||
static lean_object* l_Lean_Parser_Tactic_paren___closed__10;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticStop_____closed__3;
|
||||
|
|
@ -113,10 +116,12 @@ static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__L
|
|||
static lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__9;
|
||||
static lean_object* l_Lean_Parser_Tactic_intros___closed__9;
|
||||
static lean_object* l_Lean_Parser_Tactic_case___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__32;
|
||||
static lean_object* l_Lean_Parser_Tactic_apply___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_anyGoals___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_withReducible___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticNext___x3d_x3e____1___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__19;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticNext___x3d_x3e_____closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_intro___closed__12;
|
||||
static lean_object* l_Lean_Parser_Tactic_revert___closed__4;
|
||||
|
|
@ -124,11 +129,13 @@ static lean_object* l___aux__Init__Tactics______macroRules__tacticGet__elem__tac
|
|||
static lean_object* l_Lean_Parser_Tactic_simpPost___closed__2;
|
||||
static lean_object* l_term_____x5b___x5d_x27_____closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticUnhygienic____1___closed__2;
|
||||
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_rename___closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticHave_____closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_contradiction___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__24;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticInfer__instance___closed__3;
|
||||
static lean_object* l_Lean_Parser_Attr_simp___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_rename___closed__8;
|
||||
|
|
@ -137,6 +144,7 @@ static lean_object* l_Lean_Parser_Tactic_withAnnotateState___closed__13;
|
|||
static lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticRfl_x27__1___closed__8;
|
||||
static lean_object* l_Lean_Parser_Tactic_intro___closed__21;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__13;
|
||||
static lean_object* l_Lean_Parser_Tactic_traceState___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_letrec___closed__10;
|
||||
static lean_object* l_Lean_Parser_Tactic_specialize___closed__2;
|
||||
|
|
@ -156,12 +164,14 @@ lean_object* lean_array_push(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_Parser_Tactic_first___closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic_dsimp___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__8;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__18;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticLet_____closed__9;
|
||||
static lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_intros___closed__13;
|
||||
static lean_object* l_Lean_Parser_Tactic_subst___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_fail___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_revert___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacIfThenElse___closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticHave_x27___x3a_x3d_____closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_simpErase___closed__2;
|
||||
|
|
@ -174,13 +184,16 @@ static lean_object* l_Lean_Parser_Tactic_intro___closed__20;
|
|||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_simpStar;
|
||||
static lean_object* l___aux__Init__Tactics______macroRules__term_____x5b___x5d__1___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_withAnnotateState___closed__18;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_withUnfoldingAll___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticInfer__instance__1___closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticHave_x27___x3a_x3d_____closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticTrivial;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacIfThenElse___closed__1;
|
||||
lean_object* l_Lean_Syntax_getArgs(lean_object*);
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticInfer__instance__1___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticNext___x3d_x3e_____closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticRfl_x27__1___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_checkpoint;
|
||||
static lean_object* l_Lean_Parser_Tactic_withAnnotateState___closed__17;
|
||||
|
|
@ -207,6 +220,7 @@ static lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__10;
|
|||
static lean_object* l_Lean_Parser_Tactic_refine_x27___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticRfl_x27__1___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticHave_x27___x3a_x3d_____closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__22;
|
||||
static lean_object* l_Lean_Parser_Tactic_renameI___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__rwSeq__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_intros;
|
||||
|
|
@ -218,7 +232,9 @@ static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__L
|
|||
static lean_object* l_Lean_Parser_Attr_simp___closed__8;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticRfl_x27___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticTrivial__5___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__17;
|
||||
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_locationHyp___closed__20;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticHave____1___closed__3;
|
||||
|
|
@ -266,6 +282,7 @@ static lean_object* l_Lean_Parser_Tactic_skip___closed__2;
|
|||
static lean_object* l_Lean_Parser_Tactic_discharger___closed__8;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticHave_x27___x3a_x3d_____closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic_rewriteSeq___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacIfThenElse___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_constructor___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_generalize___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_congr___closed__4;
|
||||
|
|
@ -299,6 +316,7 @@ static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__4;
|
|||
static lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic_checkpoint___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticNext___x3d_x3e_____closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__11;
|
||||
static lean_object* l_Lean_Parser_Tactic_constructor___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_discharger___closed__15;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticExists___x2c_x2c___closed__6;
|
||||
|
|
@ -452,6 +470,7 @@ static lean_object* l_Lean_Parser_Tactic_tacticHave_x27___x3a_x3d_____closed__5;
|
|||
static lean_object* l_Lean_Parser_Tactic_simpPost___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_inductionAltLHS___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticNext___x3d_x3e_____closed__8;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__15;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticTrivial___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_rename___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticRfl_x27___closed__3;
|
||||
|
|
@ -473,6 +492,7 @@ static lean_object* l_Lean_Parser_Tactic_letrec___closed__11;
|
|||
static lean_object* l_Lean_Parser_Attr_simp___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_injection___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_simpAll___closed__14;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__14;
|
||||
static lean_object* l_Lean_Parser_Tactic_congr___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_changeWith___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_config___closed__9;
|
||||
|
|
@ -481,6 +501,7 @@ static lean_object* l_Lean_Parser_Tactic_simp___closed__12;
|
|||
static lean_object* l_Lean_Parser_Tactic_tacticNext___x3d_x3e_____closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticHave_____closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic_withAnnotateState___closed__5;
|
||||
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_intros___closed__11;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_case_x27;
|
||||
|
|
@ -503,6 +524,8 @@ static lean_object* l_Lean_Parser_Attr_simp___closed__3;
|
|||
static lean_object* l_Lean_Parser_Tactic_tacticRepeat_____closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_simpAll___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_rotateLeft___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__16;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacIfThenElse___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticUnhygienic_____closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticHave_x27_____closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticNext___x3d_x3e____1___closed__2;
|
||||
|
|
@ -553,6 +576,7 @@ static lean_object* l_Lean_Parser_Tactic_simpAll___closed__4;
|
|||
static lean_object* l_Lean_Parser_Tactic_withAnnotateState___closed__20;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticShow_____closed__5;
|
||||
static lean_object* l___aux__Init__Tactics______macroRules__tacticGet__elem__tactic__trivial__2___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__23;
|
||||
static lean_object* l_Lean_Parser_Tactic_cases___closed__10;
|
||||
static lean_object* l_Lean_Parser_Tactic_anyGoals___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_paren;
|
||||
|
|
@ -574,6 +598,7 @@ static lean_object* l___aux__Init__Tactics______macroRules__term_____x5b___x5d__
|
|||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_rotateLeft;
|
||||
static lean_object* l_Lean_Parser_Tactic_skip___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticTrivial__4(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__27;
|
||||
static lean_object* l_Lean_Parser_Tactic_tactic___x3c_x3b_x3e_____closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_inductionAltLHS___closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic_injection___closed__11;
|
||||
|
|
@ -592,6 +617,7 @@ static lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__13;
|
|||
static lean_object* l_Lean_Parser_Tactic_config___closed__15;
|
||||
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Parser_Tactic_withUnfoldingAll___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticExists___x2c_x2c___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_unfold___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_induction___closed__15;
|
||||
|
|
@ -639,16 +665,19 @@ static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__11;
|
|||
static lean_object* l_Lean_Parser_Tactic_traceMessage___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_withReducible___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_dbgTrace;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__25;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticSuffices_____closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_simpStar___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticUnhygienic_____closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticTrivial__5___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_inductionAltLHS___closed__9;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticNext___x3d_x3e____1___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__10;
|
||||
static lean_object* l_Lean_Parser_Tactic_induction___closed__8;
|
||||
static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticAdmit;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_inductionAltLHS;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacIfThenElse___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_cases___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_rwRule___closed__9;
|
||||
static lean_object* l_Lean_Parser_Tactic_intros___closed__14;
|
||||
|
|
@ -666,6 +695,7 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRul
|
|||
static lean_object* l_Lean_Parser_Tactic_tacticTry_____closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_focus___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticHave_x27_____closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__30;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticLet_____closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticSorry___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__14;
|
||||
|
|
@ -686,6 +716,7 @@ static lean_object* l_Lean_Parser_Tactic_done___closed__1;
|
|||
static lean_object* l_Lean_Parser_Tactic_revert___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__21;
|
||||
static lean_object* l_Lean_Parser_Tactic_induction___closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacIfThenElse___closed__11;
|
||||
static lean_object* l_Lean_Parser_Tactic_simp___closed__16;
|
||||
static lean_object* l_Lean_Parser_Tactic_inductionAltLHS___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__12;
|
||||
|
|
@ -770,6 +801,7 @@ static lean_object* l_Lean_Parser_Tactic_letrec___closed__7;
|
|||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_eqRefl;
|
||||
static lean_object* l_Lean_Parser_Tactic_config___closed__14;
|
||||
static lean_object* l_Lean_Parser_Tactic_revert___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacIfThenElse___closed__10;
|
||||
static lean_object* l_Lean_Parser_Tactic_rename___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_acRfl___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_simpErase___closed__1;
|
||||
|
|
@ -780,6 +812,7 @@ static lean_object* l_Lean_Parser_Tactic_rename___closed__11;
|
|||
static lean_object* l_Lean_Parser_Tactic_tacticRefine__lift_x27_____closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_intros___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_substVars___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticRfl_x27___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticRefine__lift_____closed__5;
|
||||
|
|
@ -795,6 +828,7 @@ 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_refine_x27___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticSorry__1___closed__8;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__31;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticExists___x2c_x2c;
|
||||
static lean_object* l_tacticGet__elem__tactic___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_first___closed__25;
|
||||
|
|
@ -833,6 +867,7 @@ static lean_object* l_Lean_Parser_Tactic_tacticStop_____closed__5;
|
|||
static lean_object* l_Lean_Parser_Tactic_traceState___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticLet_____closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_cases___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__21;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_injections;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticHave_x27___x3a_x3d____1___closed__7;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticRefine__lift_____closed__6;
|
||||
|
|
@ -845,6 +880,7 @@ static lean_object* l_Lean_Parser_Tactic_rwSeq___closed__4;
|
|||
static lean_object* l___aux__Init__Tactics______macroRules__tacticGet__elem__tactic__trivial__2___closed__19;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticLet_____closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticSuffices_____closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__9;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticNext___x3d_x3e____1___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_withAnnotateState___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_contradiction___closed__2;
|
||||
|
|
@ -886,6 +922,7 @@ static lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__6;
|
|||
static lean_object* l_Lean_Parser_Tactic_withReducible___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_intro___closed__16;
|
||||
static lean_object* l_Lean_Parser_Tactic_config___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__29;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticSorry___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticTry_____closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_paren___closed__4;
|
||||
|
|
@ -914,6 +951,7 @@ static lean_object* l_term_____x5b___x5d_x27_____closed__1;
|
|||
static lean_object* l___aux__Init__Tactics______macroRules__tacticGet__elem__tactic__trivial__2___closed__11;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticSorry__1___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_refine_x27___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__12;
|
||||
static lean_object* l_Lean_Parser_Tactic_config___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_simpPre___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_allGoals;
|
||||
|
|
@ -949,6 +987,7 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticUnhygienic__;
|
|||
static lean_object* l_Lean_Parser_Tactic_tacticTrivial___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_rename___closed__9;
|
||||
static lean_object* l___aux__Init__Tactics______macroRules__tacticGet__elem__tactic__trivial__2___closed__7;
|
||||
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;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_clear;
|
||||
|
|
@ -1000,11 +1039,13 @@ static lean_object* l_Lean_Parser_Tactic_first___closed__10;
|
|||
static lean_object* l_Lean_Parser_Tactic_injection___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticRfl___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_simpPost___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacIfThenElse___closed__12;
|
||||
static lean_object* l_Lean_Parser_Tactic_intros___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_simpLemma___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticLet____1___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_skip___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_eqRefl___closed__3;
|
||||
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_tacticShow_____closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_locationHyp___closed__9;
|
||||
|
|
@ -1012,6 +1053,7 @@ static lean_object* l_Lean_Parser_Attr_simp___closed__4;
|
|||
static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__13;
|
||||
static lean_object* l_Lean_Parser_Tactic_intro___closed__9;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_config;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacIfThenElse___closed__9;
|
||||
static lean_object* l___aux__Init__Tactics______macroRules__term_u2039___u203a__1___closed__2;
|
||||
static lean_object* l_Lean_Parser_Tactic_induction___closed__14;
|
||||
static lean_object* l_Lean_Parser_Tactic_split___closed__3;
|
||||
|
|
@ -1034,6 +1076,7 @@ static lean_object* l_Lean_Parser_Tactic_tacticRefine__lift_x27_____closed__6;
|
|||
static lean_object* l_Lean_Parser_Tactic_rewriteSeq___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacticAdmit___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_casesTarget___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__1;
|
||||
static lean_object* l_term_____x5b___x5d___closed__6;
|
||||
static lean_object* l_term_u2039___u203a___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__save__1(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1073,6 +1116,7 @@ static lean_object* l_Lean_Parser_Attr_simp___closed__10;
|
|||
static lean_object* l_Lean_Parser_Tactic_tacticLet_____closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_subst___closed__5;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__26;
|
||||
static lean_object* l_Lean_Parser_Tactic_rwRule___closed__12;
|
||||
static lean_object* l_Lean_Parser_Tactic_failIfSuccess___closed__4;
|
||||
static lean_object* l___aux__Init__Tactics______macroRules__tacticGet__elem__tactic__trivial__2___closed__13;
|
||||
|
|
@ -1128,6 +1172,7 @@ static lean_object* l___aux__Init__Tactics______macroRules__tacticGet__elem__tac
|
|||
LEAN_EXPORT lean_object* l_term_____x5b___x5d;
|
||||
static lean_object* l_Lean_Parser_Tactic_withReducibleAndInstances___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_failIfSuccess;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__8;
|
||||
static lean_object* l_Lean_Parser_Tactic_simpAll___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_assumption___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__5;
|
||||
|
|
@ -1160,6 +1205,7 @@ static lean_object* l_Lean_Parser_Tactic_fail___closed__6;
|
|||
static lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__1;
|
||||
LEAN_EXPORT lean_object* l___aux__Init__Tactics______macroRules__term_u2039___u203a__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_term_____x5b___x5d___closed__4;
|
||||
static lean_object* l_Lean_Parser_Tactic_tacIfThenElse___closed__3;
|
||||
static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticHave_x27___x3a_x3d____1___closed__6;
|
||||
static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__1;
|
||||
static lean_object* l_Lean_Parser_Tactic_simpAll___closed__2;
|
||||
|
|
@ -14674,6 +14720,532 @@ x_1 = l_Lean_Parser_Tactic_congr___closed__5;
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("tacDepIfThenElse", 16);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___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_withAnnotateState___closed__1;
|
||||
x_2 = l_Lean_Parser_Tactic_withAnnotateState___closed__2;
|
||||
x_3 = l_Lean_Parser_Tactic_withAnnotateState___closed__3;
|
||||
x_4 = l_Lean_Parser_Tactic_tacDepIfThenElse___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_tacDepIfThenElse___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("ppRealGroup", 11);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___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_tacDepIfThenElse___closed__3;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("ppRealFill", 10);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__5;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("ppIndent", 8);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__7;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("if ", 3);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__9;
|
||||
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_tacDepIfThenElse___closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__10;
|
||||
x_3 = l_Lean_binderIdent;
|
||||
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_tacDepIfThenElse___closed__12() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__11;
|
||||
x_3 = l_Lean_Parser_Tactic_generalizeArg___closed__4;
|
||||
x_4 = lean_alloc_ctor(2, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set(x_4, 1, x_2);
|
||||
lean_ctor_set(x_4, 2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__13() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__12;
|
||||
x_3 = l_Lean_Parser_Tactic_rename___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_tacDepIfThenElse___closed__14() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes(" then", 5);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__15() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__14;
|
||||
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_tacDepIfThenElse___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_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__13;
|
||||
x_3 = l_Lean_Parser_Tactic_tacDepIfThenElse___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_tacDepIfThenElse___closed__17() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__8;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___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_tacDepIfThenElse___closed__18() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__17;
|
||||
x_3 = l_Lean_Parser_Tactic_withAnnotateState___closed__16;
|
||||
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_tacDepIfThenElse___closed__19() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("matchRhsTacticSeq", 17);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__20() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__19;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__21() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__20;
|
||||
x_2 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__22() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__18;
|
||||
x_3 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__21;
|
||||
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_tacDepIfThenElse___closed__23() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__6;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__22;
|
||||
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_tacDepIfThenElse___closed__24() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Tactic_first___closed__10;
|
||||
x_2 = l_Lean_Parser_Tactic_withAnnotateState___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_tacDepIfThenElse___closed__25() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__23;
|
||||
x_3 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__24;
|
||||
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_tacDepIfThenElse___closed__26() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("else ", 5);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__27() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__26;
|
||||
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_tacDepIfThenElse___closed__28() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__27;
|
||||
x_3 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__21;
|
||||
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_tacDepIfThenElse___closed__29() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__6;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__28;
|
||||
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_tacDepIfThenElse___closed__30() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__25;
|
||||
x_3 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__29;
|
||||
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_tacDepIfThenElse___closed__31() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__4;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__30;
|
||||
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_tacDepIfThenElse___closed__32() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__2;
|
||||
x_2 = lean_unsigned_to_nat(1022u);
|
||||
x_3 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__31;
|
||||
x_4 = lean_alloc_ctor(3, 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_tacDepIfThenElse() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__32;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("tacIfThenElse", 13);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Tactic_tacIfThenElse___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_withAnnotateState___closed__1;
|
||||
x_2 = l_Lean_Parser_Tactic_withAnnotateState___closed__2;
|
||||
x_3 = l_Lean_Parser_Tactic_withAnnotateState___closed__3;
|
||||
x_4 = l_Lean_Parser_Tactic_tacIfThenElse___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_tacIfThenElse___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__10;
|
||||
x_3 = l_Lean_Parser_Tactic_rename___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_tacIfThenElse___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacIfThenElse___closed__3;
|
||||
x_3 = l_Lean_Parser_Tactic_tacDepIfThenElse___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_tacIfThenElse___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__8;
|
||||
x_2 = l_Lean_Parser_Tactic_tacIfThenElse___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_tacIfThenElse___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacIfThenElse___closed__5;
|
||||
x_3 = l_Lean_Parser_Tactic_withAnnotateState___closed__16;
|
||||
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_tacIfThenElse___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacIfThenElse___closed__6;
|
||||
x_3 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__21;
|
||||
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_tacIfThenElse___closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__6;
|
||||
x_2 = l_Lean_Parser_Tactic_tacIfThenElse___closed__7;
|
||||
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_tacIfThenElse___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacIfThenElse___closed__8;
|
||||
x_3 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__24;
|
||||
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_tacIfThenElse___closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_withAnnotateState___closed__7;
|
||||
x_2 = l_Lean_Parser_Tactic_tacIfThenElse___closed__9;
|
||||
x_3 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__29;
|
||||
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_tacIfThenElse___closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Tactic_tacDepIfThenElse___closed__4;
|
||||
x_2 = l_Lean_Parser_Tactic_tacIfThenElse___closed__10;
|
||||
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_tacIfThenElse___closed__12() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Tactic_tacIfThenElse___closed__2;
|
||||
x_2 = lean_unsigned_to_nat(1022u);
|
||||
x_3 = l_Lean_Parser_Tactic_tacIfThenElse___closed__11;
|
||||
x_4 = lean_alloc_ctor(3, 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_tacIfThenElse() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean_Parser_Tactic_tacIfThenElse___closed__12;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Attr_simp___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -18094,6 +18666,98 @@ l_Lean_Parser_Tactic_congr___closed__5 = _init_l_Lean_Parser_Tactic_congr___clos
|
|||
lean_mark_persistent(l_Lean_Parser_Tactic_congr___closed__5);
|
||||
l_Lean_Parser_Tactic_congr = _init_l_Lean_Parser_Tactic_congr();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_congr);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__1 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__1();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__1);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__2 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__2();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__2);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__3 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__3();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__3);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__4 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__4();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__4);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__5 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__5();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__5);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__6 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__6();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__6);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__7 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__7();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__7);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__8 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__8();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__8);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__9 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__9();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__9);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__10 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__10();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__10);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__11 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__11();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__11);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__12 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__12();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__12);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__13 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__13();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__13);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__14 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__14();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__14);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__15 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__15();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__15);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__16 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__16();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__16);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__17 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__17();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__17);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__18 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__18();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__18);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__19 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__19();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__19);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__20 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__20();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__20);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__21 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__21();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__21);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__22 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__22();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__22);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__23 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__23();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__23);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__24 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__24();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__24);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__25 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__25();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__25);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__26 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__26();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__26);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__27 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__27();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__27);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__28 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__28();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__28);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__29 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__29();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__29);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__30 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__30();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__30);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__31 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__31();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__31);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse___closed__32 = _init_l_Lean_Parser_Tactic_tacDepIfThenElse___closed__32();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse___closed__32);
|
||||
l_Lean_Parser_Tactic_tacDepIfThenElse = _init_l_Lean_Parser_Tactic_tacDepIfThenElse();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacDepIfThenElse);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse___closed__1 = _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__1();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse___closed__1);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse___closed__2 = _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__2();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse___closed__2);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse___closed__3 = _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__3();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse___closed__3);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse___closed__4 = _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__4();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse___closed__4);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse___closed__5 = _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__5();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse___closed__5);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse___closed__6 = _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__6();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse___closed__6);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse___closed__7 = _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__7();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse___closed__7);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse___closed__8 = _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__8();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse___closed__8);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse___closed__9 = _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__9();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse___closed__9);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse___closed__10 = _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__10();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse___closed__10);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse___closed__11 = _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__11();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse___closed__11);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse___closed__12 = _init_l_Lean_Parser_Tactic_tacIfThenElse___closed__12();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse___closed__12);
|
||||
l_Lean_Parser_Tactic_tacIfThenElse = _init_l_Lean_Parser_Tactic_tacIfThenElse();
|
||||
lean_mark_persistent(l_Lean_Parser_Tactic_tacIfThenElse);
|
||||
l_Lean_Parser_Attr_simp___closed__1 = _init_l_Lean_Parser_Attr_simp___closed__1();
|
||||
lean_mark_persistent(l_Lean_Parser_Attr_simp___closed__1);
|
||||
l_Lean_Parser_Attr_simp___closed__2 = _init_l_Lean_Parser_Attr_simp___closed__2();
|
||||
|
|
|
|||
2548
stage0/stdlib/Init/TacticsExtra.c
generated
Normal file
2548
stage0/stdlib/Init/TacticsExtra.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1103
stage0/stdlib/Lean/Attributes.c
generated
1103
stage0/stdlib/Lean/Attributes.c
generated
File diff suppressed because it is too large
Load diff
2
stage0/stdlib/Lean/Compiler/IR/Basic.c
generated
2
stage0/stdlib/Lean/Compiler/IR/Basic.c
generated
|
|
@ -2912,7 +2912,7 @@ x_13 = l_Lean_IR_reshapeAux___closed__2;
|
|||
x_14 = lean_string_append(x_12, x_13);
|
||||
x_15 = l_Lean_IR_reshapeAux___closed__3;
|
||||
x_16 = l_Lean_IR_reshapeAux___closed__4;
|
||||
x_17 = lean_unsigned_to_nat(111u);
|
||||
x_17 = lean_unsigned_to_nat(126u);
|
||||
x_18 = lean_unsigned_to_nat(4u);
|
||||
x_19 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_15, x_16, x_17, x_18, x_14);
|
||||
lean_dec(x_14);
|
||||
|
|
|
|||
6
stage0/stdlib/Lean/Data/Json.c
generated
6
stage0/stdlib/Lean/Data/Json.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Data.Json
|
||||
// Imports: Init Lean.Data.Json.Stream Lean.Data.Json.Printer Lean.Data.Json.Parser Lean.Data.Json.FromToJson
|
||||
// Imports: Init Lean.Data.Json.Stream Lean.Data.Json.Printer Lean.Data.Json.Parser Lean.Data.Json.FromToJson Lean.Data.Json.Elab
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -18,6 +18,7 @@ lean_object* initialize_Lean_Data_Json_Stream(uint8_t builtin, lean_object*);
|
|||
lean_object* initialize_Lean_Data_Json_Printer(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Data_Json_Parser(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Data_Json_FromToJson(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Data_Json_Elab(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Data_Json(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -38,6 +39,9 @@ lean_dec_ref(res);
|
|||
res = initialize_Lean_Data_Json_FromToJson(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Data_Json_Elab(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
4715
stage0/stdlib/Lean/Data/Json/Elab.c
generated
Normal file
4715
stage0/stdlib/Lean/Data/Json/Elab.c
generated
Normal file
File diff suppressed because it is too large
Load diff
405
stage0/stdlib/Lean/Elab/ComputedFields.c
generated
405
stage0/stdlib/Lean/Elab/ComputedFields.c
generated
|
|
@ -39,7 +39,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_ComputedFields_
|
|||
lean_object* l_Lean_Meta_unfoldDefinition(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___closed__2;
|
||||
lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassQuick_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_ComputedFields_mkUnsafeCastTo___closed__4;
|
||||
static lean_object* l_Lean_mkCasesOn___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__5___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -237,7 +236,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_ComputedFields_mk
|
|||
lean_object* l_Lean_ParametricAttribute_setParam___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_ComputedFields_isScalarField___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_hasAnyFVar_visit___at_Lean_Expr_containsFVar___spec__1(lean_object*, lean_object*);
|
||||
|
|
@ -256,7 +255,7 @@ static lean_object* l_Lean_Elab_ComputedFields_getComputedFieldValue___lambda__1
|
|||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
static lean_object* l_List_mapM_loop___at_Lean_Elab_ComputedFields_mkImplType___spec__2___lambda__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_ComputedFields_overrideCasesOn___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_ComputedFields_validateComputedFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_ComputedFields_overrideComputedFields___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_indentExpr(lean_object*);
|
||||
|
|
@ -9606,238 +9605,215 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDeclsD___at_Lean_Elab_Comp
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_15 = lean_ctor_get(x_1, 2);
|
||||
x_16 = lean_ctor_get(x_1, 3);
|
||||
x_17 = lean_ctor_get(x_1, 4);
|
||||
x_18 = lean_ctor_get_uint8(x_1, sizeof(void*)*5);
|
||||
x_19 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1);
|
||||
x_20 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 2);
|
||||
x_21 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 3);
|
||||
lean_inc(x_17);
|
||||
lean_inc(x_16);
|
||||
lean_object* x_13; lean_object* x_14;
|
||||
x_13 = lean_alloc_ctor(0, 7, 0);
|
||||
lean_ctor_set(x_13, 0, x_1);
|
||||
lean_ctor_set(x_13, 1, x_2);
|
||||
lean_ctor_set(x_13, 2, x_3);
|
||||
lean_ctor_set(x_13, 3, x_4);
|
||||
lean_ctor_set(x_13, 4, x_7);
|
||||
lean_ctor_set(x_13, 5, x_5);
|
||||
lean_ctor_set(x_13, 6, x_6);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_13);
|
||||
x_14 = l_Lean_Elab_ComputedFields_validateComputedFields(x_13, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
x_15 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_15);
|
||||
x_22 = lean_alloc_ctor(0, 5, 4);
|
||||
lean_ctor_set(x_22, 0, x_2);
|
||||
lean_ctor_set(x_22, 1, x_3);
|
||||
lean_ctor_set(x_22, 2, x_15);
|
||||
lean_ctor_set(x_22, 3, x_16);
|
||||
lean_ctor_set(x_22, 4, x_17);
|
||||
lean_ctor_set_uint8(x_22, sizeof(void*)*5, x_18);
|
||||
lean_ctor_set_uint8(x_22, sizeof(void*)*5 + 1, x_19);
|
||||
lean_ctor_set_uint8(x_22, sizeof(void*)*5 + 2, x_20);
|
||||
lean_ctor_set_uint8(x_22, sizeof(void*)*5 + 3, x_21);
|
||||
x_23 = lean_alloc_ctor(0, 7, 0);
|
||||
lean_ctor_set(x_23, 0, x_22);
|
||||
lean_ctor_set(x_23, 1, x_4);
|
||||
lean_ctor_set(x_23, 2, x_5);
|
||||
lean_ctor_set(x_23, 3, x_6);
|
||||
lean_ctor_set(x_23, 4, x_9);
|
||||
lean_ctor_set(x_23, 5, x_7);
|
||||
lean_ctor_set(x_23, 6, x_8);
|
||||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_14);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_23);
|
||||
x_24 = l_Lean_Elab_ComputedFields_validateComputedFields(x_23, x_10, x_11, x_12, x_13, x_14);
|
||||
if (lean_obj_tag(x_24) == 0)
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_13);
|
||||
x_16 = l_Lean_Elab_ComputedFields_mkImplType(x_13, x_8, x_9, x_10, x_11, x_15);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26;
|
||||
x_25 = lean_ctor_get(x_24, 1);
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_16);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_13);
|
||||
x_18 = l_Lean_Elab_ComputedFields_overrideCasesOn(x_13, x_8, x_9, x_10, x_11, x_17);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20;
|
||||
x_19 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_18);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_13);
|
||||
x_20 = l_Lean_Elab_ComputedFields_overrideConstructors(x_13, x_8, x_9, x_10, x_11, x_19);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22;
|
||||
x_21 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_20);
|
||||
x_22 = l_Lean_Elab_ComputedFields_overrideComputedFields(x_13, x_8, x_9, x_10, x_11, x_21);
|
||||
return x_22;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_23;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
x_23 = !lean_is_exclusive(x_20);
|
||||
if (x_23 == 0)
|
||||
{
|
||||
return x_20;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_24 = lean_ctor_get(x_20, 0);
|
||||
x_25 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_24);
|
||||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_23);
|
||||
x_26 = l_Lean_Elab_ComputedFields_mkImplType(x_23, x_10, x_11, x_12, x_13, x_25);
|
||||
if (lean_obj_tag(x_26) == 0)
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28;
|
||||
x_27 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_26);
|
||||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_23);
|
||||
x_28 = l_Lean_Elab_ComputedFields_overrideCasesOn(x_23, x_10, x_11, x_12, x_13, x_27);
|
||||
if (lean_obj_tag(x_28) == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30;
|
||||
x_29 = lean_ctor_get(x_28, 1);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_28);
|
||||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_23);
|
||||
x_30 = l_Lean_Elab_ComputedFields_overrideConstructors(x_23, x_10, x_11, x_12, x_13, x_29);
|
||||
if (lean_obj_tag(x_30) == 0)
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32;
|
||||
x_31 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_30);
|
||||
x_32 = l_Lean_Elab_ComputedFields_overrideComputedFields(x_23, x_10, x_11, x_12, x_13, x_31);
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_33;
|
||||
lean_dec(x_23);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
x_33 = !lean_is_exclusive(x_30);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
return x_30;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_34 = lean_ctor_get(x_30, 0);
|
||||
x_35 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_30);
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_34);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_37;
|
||||
lean_dec(x_23);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
x_37 = !lean_is_exclusive(x_28);
|
||||
if (x_37 == 0)
|
||||
{
|
||||
return x_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40;
|
||||
x_38 = lean_ctor_get(x_28, 0);
|
||||
x_39 = lean_ctor_get(x_28, 1);
|
||||
lean_inc(x_39);
|
||||
lean_inc(x_38);
|
||||
lean_dec(x_28);
|
||||
x_40 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_38);
|
||||
lean_ctor_set(x_40, 1, x_39);
|
||||
return x_40;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_41;
|
||||
lean_dec(x_23);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
x_41 = !lean_is_exclusive(x_26);
|
||||
if (x_41 == 0)
|
||||
{
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_20);
|
||||
x_26 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_24);
|
||||
lean_ctor_set(x_26, 1, x_25);
|
||||
return x_26;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_42; lean_object* x_43; lean_object* x_44;
|
||||
x_42 = lean_ctor_get(x_26, 0);
|
||||
x_43 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_43);
|
||||
lean_inc(x_42);
|
||||
lean_dec(x_26);
|
||||
x_44 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_44, 0, x_42);
|
||||
lean_ctor_set(x_44, 1, x_43);
|
||||
return x_44;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_45;
|
||||
lean_dec(x_23);
|
||||
uint8_t x_27;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
x_45 = !lean_is_exclusive(x_24);
|
||||
if (x_45 == 0)
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
x_27 = !lean_is_exclusive(x_18);
|
||||
if (x_27 == 0)
|
||||
{
|
||||
return x_24;
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_46; lean_object* x_47; lean_object* x_48;
|
||||
x_46 = lean_ctor_get(x_24, 0);
|
||||
x_47 = lean_ctor_get(x_24, 1);
|
||||
lean_inc(x_47);
|
||||
lean_inc(x_46);
|
||||
lean_dec(x_24);
|
||||
x_48 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_48, 0, x_46);
|
||||
lean_ctor_set(x_48, 1, x_47);
|
||||
return x_48;
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_28 = lean_ctor_get(x_18, 0);
|
||||
x_29 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_18);
|
||||
x_30 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_28);
|
||||
lean_ctor_set(x_30, 1, x_29);
|
||||
return x_30;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_31;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
x_31 = !lean_is_exclusive(x_16);
|
||||
if (x_31 == 0)
|
||||
{
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_32 = lean_ctor_get(x_16, 0);
|
||||
x_33 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_33);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_16);
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_32);
|
||||
lean_ctor_set(x_34, 1, x_33);
|
||||
return x_34;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_35;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
x_35 = !lean_is_exclusive(x_14);
|
||||
if (x_35 == 0)
|
||||
{
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
x_36 = lean_ctor_get(x_14, 0);
|
||||
x_37 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_37);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_14);
|
||||
x_38 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_38, 0, x_36);
|
||||
lean_ctor_set(x_38, 1, x_37);
|
||||
return x_38;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_12 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_unsigned_to_nat(0u);
|
||||
lean_inc(x_12);
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_11 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_unsigned_to_nat(0u);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_2);
|
||||
x_14 = l_Array_toSubarray___rarg(x_2, x_13, x_12);
|
||||
x_15 = l_Array_ofSubarray___rarg(x_14);
|
||||
x_16 = lean_array_get_size(x_2);
|
||||
lean_inc(x_12);
|
||||
x_17 = l_Array_toSubarray___rarg(x_2, x_12, x_16);
|
||||
x_18 = l_Array_ofSubarray___rarg(x_17);
|
||||
x_19 = lean_array_get_size(x_3);
|
||||
x_20 = lean_usize_of_nat(x_19);
|
||||
lean_dec(x_19);
|
||||
x_21 = 0;
|
||||
x_13 = l_Array_toSubarray___rarg(x_2, x_12, x_11);
|
||||
x_14 = l_Array_ofSubarray___rarg(x_13);
|
||||
x_15 = lean_array_get_size(x_2);
|
||||
x_16 = l_Array_toSubarray___rarg(x_2, x_11, x_15);
|
||||
x_17 = l_Array_ofSubarray___rarg(x_16);
|
||||
x_18 = lean_array_get_size(x_3);
|
||||
x_19 = lean_usize_of_nat(x_18);
|
||||
lean_dec(x_18);
|
||||
x_20 = 0;
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_18);
|
||||
lean_inc(x_15);
|
||||
lean_inc(x_6);
|
||||
x_22 = l_Array_mapMUnsafe_map___at_Lean_Elab_ComputedFields_mkComputedFieldOverrides___spec__1(x_6, x_15, x_18, x_20, x_21, x_3);
|
||||
x_23 = lean_alloc_closure((void*)(l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__1___boxed), 14, 8);
|
||||
lean_closure_set(x_23, 0, x_1);
|
||||
lean_closure_set(x_23, 1, x_4);
|
||||
lean_closure_set(x_23, 2, x_12);
|
||||
lean_closure_set(x_23, 3, x_5);
|
||||
lean_closure_set(x_23, 4, x_15);
|
||||
lean_closure_set(x_23, 5, x_3);
|
||||
lean_closure_set(x_23, 6, x_18);
|
||||
lean_closure_set(x_23, 7, x_6);
|
||||
x_24 = l_instInhabitedPUnit;
|
||||
x_25 = l_Lean_Meta_withLocalDeclsD___at_Lean_Elab_ComputedFields_mkComputedFieldOverrides___spec__2___rarg(x_24, x_22, x_23, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_25;
|
||||
lean_inc(x_17);
|
||||
lean_inc(x_14);
|
||||
lean_inc(x_5);
|
||||
x_21 = l_Array_mapMUnsafe_map___at_Lean_Elab_ComputedFields_mkComputedFieldOverrides___spec__1(x_5, x_14, x_17, x_19, x_20, x_3);
|
||||
x_22 = lean_alloc_closure((void*)(l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__1), 12, 6);
|
||||
lean_closure_set(x_22, 0, x_1);
|
||||
lean_closure_set(x_22, 1, x_4);
|
||||
lean_closure_set(x_22, 2, x_14);
|
||||
lean_closure_set(x_22, 3, x_3);
|
||||
lean_closure_set(x_22, 4, x_17);
|
||||
lean_closure_set(x_22, 5, x_5);
|
||||
x_23 = l_instInhabitedPUnit;
|
||||
x_24 = l_Lean_Meta_withLocalDeclsD___at_Lean_Elab_ComputedFields_mkComputedFieldOverrides___spec__2___rarg(x_23, x_21, x_22, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
|
|
@ -9846,16 +9822,16 @@ _start:
|
|||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19;
|
||||
x_12 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_1);
|
||||
lean_inc(x_2);
|
||||
x_13 = l_Lean_Expr_const___override(x_12, x_2);
|
||||
lean_inc(x_5);
|
||||
x_14 = l_Lean_mkAppN(x_13, x_5);
|
||||
x_15 = lean_alloc_closure((void*)(l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__2), 11, 5);
|
||||
x_15 = lean_alloc_closure((void*)(l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__2), 10, 4);
|
||||
lean_closure_set(x_15, 0, x_3);
|
||||
lean_closure_set(x_15, 1, x_5);
|
||||
lean_closure_set(x_15, 2, x_4);
|
||||
lean_closure_set(x_15, 3, x_1);
|
||||
lean_closure_set(x_15, 4, x_2);
|
||||
lean_closure_set(x_15, 3, x_2);
|
||||
x_16 = l_Lean_Elab_ComputedFields_overrideComputedFields___closed__2;
|
||||
x_17 = 0;
|
||||
x_18 = 0;
|
||||
|
|
@ -10022,15 +9998,6 @@ x_6 = l_Array_mapMUnsafe_map___at_Lean_Elab_ComputedFields_mkComputedFieldOverri
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_15;
|
||||
x_15 = l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
|
||||
lean_dec(x_1);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_ComputedFields_mkComputedFieldOverrides___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
|
|
|
|||
1304
stage0/stdlib/Lean/Elab/Deriving/FromToJson.c
generated
1304
stage0/stdlib/Lean/Elab/Deriving/FromToJson.c
generated
File diff suppressed because it is too large
Load diff
251
stage0/stdlib/Lean/Elab/InfoTree/Main.c
generated
251
stage0/stdlib/Lean/Elab/InfoTree/Main.c
generated
|
|
@ -795,119 +795,80 @@ if (lean_obj_tag(x_1) == 0)
|
|||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
lean_object* x_3; uint8_t x_4;
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = !lean_is_exclusive(x_3);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = lean_box(0);
|
||||
x_6 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_6, 0, x_3);
|
||||
lean_ctor_set(x_6, 1, x_5);
|
||||
x_7 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_7, 0, x_6);
|
||||
return x_7;
|
||||
x_4 = lean_box(0);
|
||||
x_5 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_5, 0, x_3);
|
||||
lean_ctor_set(x_5, 1, x_4);
|
||||
x_6 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_6, 0, x_5);
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_8 = lean_ctor_get(x_3, 0);
|
||||
x_9 = lean_ctor_get(x_3, 1);
|
||||
x_10 = lean_ctor_get(x_3, 2);
|
||||
x_11 = lean_ctor_get(x_3, 3);
|
||||
x_12 = lean_ctor_get(x_3, 4);
|
||||
x_13 = lean_ctor_get(x_3, 5);
|
||||
x_14 = lean_ctor_get(x_3, 6);
|
||||
lean_inc(x_14);
|
||||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
uint8_t x_7;
|
||||
x_7 = !lean_is_exclusive(x_2);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; uint8_t x_10;
|
||||
x_8 = lean_ctor_get(x_2, 0);
|
||||
x_9 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_3);
|
||||
x_15 = lean_alloc_ctor(0, 7, 0);
|
||||
lean_ctor_set(x_15, 0, x_8);
|
||||
lean_ctor_set(x_15, 1, x_9);
|
||||
lean_ctor_set(x_15, 2, x_10);
|
||||
lean_ctor_set(x_15, 3, x_11);
|
||||
lean_ctor_set(x_15, 4, x_12);
|
||||
lean_ctor_set(x_15, 5, x_13);
|
||||
lean_ctor_set(x_15, 6, x_14);
|
||||
x_16 = lean_box(0);
|
||||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_15);
|
||||
lean_ctor_set(x_17, 1, x_16);
|
||||
x_18 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_18, 0, x_17);
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_19;
|
||||
x_19 = !lean_is_exclusive(x_2);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; uint8_t x_22;
|
||||
x_20 = lean_ctor_get(x_2, 0);
|
||||
x_21 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_1);
|
||||
x_22 = !lean_is_exclusive(x_20);
|
||||
if (x_22 == 0)
|
||||
x_10 = !lean_is_exclusive(x_8);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_23;
|
||||
x_23 = lean_ctor_get(x_20, 0);
|
||||
lean_dec(x_23);
|
||||
lean_ctor_set(x_20, 0, x_21);
|
||||
lean_object* x_11;
|
||||
x_11 = lean_ctor_get(x_8, 0);
|
||||
lean_dec(x_11);
|
||||
lean_ctor_set(x_8, 0, x_9);
|
||||
return x_2;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25;
|
||||
x_24 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_20);
|
||||
x_25 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_21);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
lean_ctor_set(x_2, 0, x_25);
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
x_12 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_8);
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_9);
|
||||
lean_ctor_set(x_13, 1, x_12);
|
||||
lean_ctor_set(x_2, 0, x_13);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_26 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_26);
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_14 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_2);
|
||||
x_27 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_27);
|
||||
x_15 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_1);
|
||||
x_28 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_28);
|
||||
if (lean_is_exclusive(x_26)) {
|
||||
lean_ctor_release(x_26, 0);
|
||||
lean_ctor_release(x_26, 1);
|
||||
x_29 = x_26;
|
||||
x_16 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_16);
|
||||
if (lean_is_exclusive(x_14)) {
|
||||
lean_ctor_release(x_14, 0);
|
||||
lean_ctor_release(x_14, 1);
|
||||
x_17 = x_14;
|
||||
} else {
|
||||
lean_dec_ref(x_26);
|
||||
x_29 = lean_box(0);
|
||||
lean_dec_ref(x_14);
|
||||
x_17 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_29)) {
|
||||
x_30 = lean_alloc_ctor(0, 2, 0);
|
||||
if (lean_is_scalar(x_17)) {
|
||||
x_18 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_30 = x_29;
|
||||
x_18 = x_17;
|
||||
}
|
||||
lean_ctor_set(x_30, 0, x_27);
|
||||
lean_ctor_set(x_30, 1, x_28);
|
||||
x_31 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_31, 0, x_30);
|
||||
return x_31;
|
||||
lean_ctor_set(x_18, 0, x_15);
|
||||
lean_ctor_set(x_18, 1, x_16);
|
||||
x_19 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_19, 0, x_18);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -915,81 +876,81 @@ else
|
|||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33;
|
||||
lean_object* x_20; lean_object* x_21;
|
||||
lean_dec(x_1);
|
||||
x_32 = l_Lean_Elab_PartialContextInfo_mergeIntoOuter_x3f___closed__4;
|
||||
x_33 = l_panic___at_Lean_Elab_PartialContextInfo_mergeIntoOuter_x3f___spec__1(x_32);
|
||||
return x_33;
|
||||
x_20 = l_Lean_Elab_PartialContextInfo_mergeIntoOuter_x3f___closed__4;
|
||||
x_21 = l_panic___at_Lean_Elab_PartialContextInfo_mergeIntoOuter_x3f___spec__1(x_20);
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_34;
|
||||
x_34 = !lean_is_exclusive(x_2);
|
||||
if (x_34 == 0)
|
||||
uint8_t x_22;
|
||||
x_22 = !lean_is_exclusive(x_2);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; uint8_t x_37;
|
||||
x_35 = lean_ctor_get(x_2, 0);
|
||||
x_36 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_36);
|
||||
lean_object* x_23; lean_object* x_24; uint8_t x_25;
|
||||
x_23 = lean_ctor_get(x_2, 0);
|
||||
x_24 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_1);
|
||||
x_37 = !lean_is_exclusive(x_35);
|
||||
if (x_37 == 0)
|
||||
x_25 = !lean_is_exclusive(x_23);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39;
|
||||
x_38 = lean_ctor_get(x_35, 1);
|
||||
lean_dec(x_38);
|
||||
lean_ctor_set(x_2, 0, x_36);
|
||||
lean_ctor_set(x_35, 1, x_2);
|
||||
x_39 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_39, 0, x_35);
|
||||
return x_39;
|
||||
lean_object* x_26; lean_object* x_27;
|
||||
x_26 = lean_ctor_get(x_23, 1);
|
||||
lean_dec(x_26);
|
||||
lean_ctor_set(x_2, 0, x_24);
|
||||
lean_ctor_set(x_23, 1, x_2);
|
||||
x_27 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_27, 0, x_23);
|
||||
return x_27;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
x_40 = lean_ctor_get(x_35, 0);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_35);
|
||||
lean_ctor_set(x_2, 0, x_36);
|
||||
x_41 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_41, 0, x_40);
|
||||
lean_ctor_set(x_41, 1, x_2);
|
||||
x_42 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_42, 0, x_41);
|
||||
return x_42;
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_28 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_23);
|
||||
lean_ctor_set(x_2, 0, x_24);
|
||||
x_29 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_28);
|
||||
lean_ctor_set(x_29, 1, x_2);
|
||||
x_30 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_30, 0, x_29);
|
||||
return x_30;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49;
|
||||
x_43 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_43);
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_31 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_2);
|
||||
x_44 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_44);
|
||||
x_32 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_1);
|
||||
x_45 = lean_ctor_get(x_43, 0);
|
||||
lean_inc(x_45);
|
||||
if (lean_is_exclusive(x_43)) {
|
||||
lean_ctor_release(x_43, 0);
|
||||
lean_ctor_release(x_43, 1);
|
||||
x_46 = x_43;
|
||||
x_33 = lean_ctor_get(x_31, 0);
|
||||
lean_inc(x_33);
|
||||
if (lean_is_exclusive(x_31)) {
|
||||
lean_ctor_release(x_31, 0);
|
||||
lean_ctor_release(x_31, 1);
|
||||
x_34 = x_31;
|
||||
} else {
|
||||
lean_dec_ref(x_43);
|
||||
x_46 = lean_box(0);
|
||||
lean_dec_ref(x_31);
|
||||
x_34 = lean_box(0);
|
||||
}
|
||||
x_47 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_47, 0, x_44);
|
||||
if (lean_is_scalar(x_46)) {
|
||||
x_48 = lean_alloc_ctor(0, 2, 0);
|
||||
x_35 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_35, 0, x_32);
|
||||
if (lean_is_scalar(x_34)) {
|
||||
x_36 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_48 = x_46;
|
||||
x_36 = x_34;
|
||||
}
|
||||
lean_ctor_set(x_48, 0, x_45);
|
||||
lean_ctor_set(x_48, 1, x_47);
|
||||
x_49 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_49, 0, x_48);
|
||||
return x_49;
|
||||
lean_ctor_set(x_36, 0, x_33);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
x_37 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_37, 0, x_36);
|
||||
return x_37;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -9628,7 +9589,7 @@ static lean_object* _init_l_Lean_Elab_assignInfoHoleId___rarg___lambda__2___clos
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("( __do_lift._@.Lean.Elab.InfoTree.Main._hyg.4235.0 ).isNone\n ", 62);
|
||||
x_1 = lean_mk_string_from_bytes("( __do_lift._@.Lean.Elab.InfoTree.Main._hyg.4229.0 ).isNone\n ", 62);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
839
stage0/stdlib/Lean/Elab/Match.c
generated
839
stage0/stdlib/Lean/Elab/Match.c
generated
|
|
@ -29,6 +29,7 @@ static lean_object* l_panic___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToD
|
|||
lean_object* l_Lean_Elab_Term_getPatternVarNames(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_toPattern___spec__3(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_isMatchUnit_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_ToDepElimPattern_savePatternInfo_go___spec__4(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__9___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -64,6 +65,7 @@ static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux__
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withLocalInstancesImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__24(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_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2(lean_object*, size_t, size_t, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__25___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_Array_forInUnsafe_loop___at_Lean_Elab_Term_ToDepElimPattern_main___spec__5(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -98,6 +100,7 @@ extern lean_object* l_Lean_maxRecDepthErrorMessage;
|
|||
lean_object* l_Lean_Meta_resetMVarUserNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_withInfoContext_x27___at_Lean_Elab_Term_ToDepElimPattern_savePatternInfo_go___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNoMatch_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_sequenceMap___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_indentD(lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_findDiscrRefinementPath_goIndex___closed__1;
|
||||
|
|
@ -253,6 +256,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElim
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_unpackMatchTypePatterns(lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_1036____at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux___spec__13(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_elabNoMatch___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_filterMapM___at___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -262,6 +266,7 @@ static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMa
|
|||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_eraseIndices___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_reportMatcherResultErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchGeneralizing_x3f___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -278,7 +283,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_topSort_visit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible_declRange___closed__3;
|
||||
static lean_object* l_Lean_Elab_Term_elabNoMatch___closed__4;
|
||||
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_ToDepElimPattern_savePatternInfo_go___spec__4___rarg___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabMatch_elabMatchDefault___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -747,6 +751,7 @@ static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMa
|
|||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_generalize___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_getMatchGeneralizing_x3f___lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withDepElimPatterns(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNoMatch_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__4___lambda__1___boxed(lean_object**);
|
||||
static lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___rarg___closed__2;
|
||||
static lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkPatternRefMap_go___lambda__1___closed__3;
|
||||
|
|
@ -905,6 +910,7 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_Match_0
|
|||
LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_throwInvalidPattern___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18503____closed__10;
|
||||
lean_object* lean_nat_mul(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_elabNoMatch___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_ToDepElimPattern_main_unpack(lean_object*);
|
||||
lean_object* l_Lean_Meta_eraseInaccessibleAnnotations___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at_Lean_expandMacros___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -982,7 +988,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatch
|
|||
lean_object* l_Lean_Expr_fvar___override(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltView___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_mkUserNameFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_elabNoMatch___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_applyRefMap___spec__2(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_collectDeps___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___spec__7___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1126,6 +1131,7 @@ LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at_Lean_Elab_Term_precheckMa
|
|||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_Match_0__Lean_Elab_Term_withToClear___spec__7(lean_object*, lean_object*, size_t, size_t);
|
||||
static lean_object* l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_mkUserNameFor___spec__1___rarg___closed__2;
|
||||
lean_object* l_Nat_repr(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchTypeAndDiscrs_elabDiscrs___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_AssocList_contains___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_mkPatternRefMap_go___spec__4___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -48084,6 +48090,274 @@ x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNoMatch_loop___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_12 = lean_ctor_get(x_9, 5);
|
||||
lean_inc(x_12);
|
||||
x_13 = 0;
|
||||
x_14 = l_Lean_SourceInfo_fromRef(x_12, x_13);
|
||||
x_15 = lean_ctor_get(x_9, 10);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_st_ref_get(x_10, x_11);
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_19 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_17);
|
||||
x_20 = lean_environment_main_module(x_19);
|
||||
x_21 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___spec__2___closed__1;
|
||||
lean_inc(x_14);
|
||||
x_22 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_14);
|
||||
lean_ctor_set(x_22, 1, x_21);
|
||||
x_23 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_mkUserNameFor___spec__1___rarg___closed__2;
|
||||
lean_inc(x_15);
|
||||
x_24 = l_Lean_addMacroScope(x_20, x_23, x_15);
|
||||
x_25 = lean_box(0);
|
||||
x_26 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__1___closed__1;
|
||||
lean_inc(x_14);
|
||||
x_27 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_27, 0, x_14);
|
||||
lean_ctor_set(x_27, 1, x_26);
|
||||
lean_ctor_set(x_27, 2, x_24);
|
||||
lean_ctor_set(x_27, 3, x_25);
|
||||
x_28 = l_Lean_Elab_Term_isAtomicDiscr___closed__6;
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_14);
|
||||
x_29 = l_Lean_Syntax_node2(x_14, x_28, x_22, x_27);
|
||||
x_30 = lean_array_push(x_1, x_29);
|
||||
lean_inc(x_10);
|
||||
x_31 = l_Lean_Elab_Term_elabNoMatch_loop(x_2, x_3, x_30, x_4, x_5, x_6, x_7, x_9, x_10, x_18);
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35;
|
||||
x_32 = lean_ctor_get(x_31, 0);
|
||||
lean_inc(x_32);
|
||||
x_33 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_31);
|
||||
x_34 = lean_st_ref_get(x_10, x_33);
|
||||
lean_dec(x_10);
|
||||
x_35 = !lean_is_exclusive(x_34);
|
||||
if (x_35 == 0)
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48;
|
||||
x_36 = lean_ctor_get(x_34, 0);
|
||||
x_37 = lean_ctor_get(x_36, 0);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_36);
|
||||
x_38 = lean_environment_main_module(x_37);
|
||||
x_39 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__1___closed__4;
|
||||
lean_inc(x_14);
|
||||
x_40 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_14);
|
||||
lean_ctor_set(x_40, 1, x_39);
|
||||
x_41 = l_Lean_addMacroScope(x_38, x_23, x_15);
|
||||
lean_inc(x_14);
|
||||
x_42 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_42, 0, x_14);
|
||||
lean_ctor_set(x_42, 1, x_26);
|
||||
lean_ctor_set(x_42, 2, x_41);
|
||||
lean_ctor_set(x_42, 3, x_25);
|
||||
x_43 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__13;
|
||||
lean_inc(x_14);
|
||||
x_44 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_44, 0, x_14);
|
||||
lean_ctor_set(x_44, 1, x_43);
|
||||
x_45 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__14;
|
||||
lean_inc(x_14);
|
||||
x_46 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_46, 0, x_14);
|
||||
lean_ctor_set(x_46, 1, x_45);
|
||||
x_47 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__1___closed__3;
|
||||
x_48 = l_Lean_Syntax_node7(x_14, x_47, x_40, x_22, x_42, x_44, x_8, x_46, x_32);
|
||||
lean_ctor_set(x_34, 0, x_48);
|
||||
return x_34;
|
||||
}
|
||||
else
|
||||
{
|
||||
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;
|
||||
x_49 = lean_ctor_get(x_34, 0);
|
||||
x_50 = lean_ctor_get(x_34, 1);
|
||||
lean_inc(x_50);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_34);
|
||||
x_51 = lean_ctor_get(x_49, 0);
|
||||
lean_inc(x_51);
|
||||
lean_dec(x_49);
|
||||
x_52 = lean_environment_main_module(x_51);
|
||||
x_53 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__1___closed__4;
|
||||
lean_inc(x_14);
|
||||
x_54 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_54, 0, x_14);
|
||||
lean_ctor_set(x_54, 1, x_53);
|
||||
x_55 = l_Lean_addMacroScope(x_52, x_23, x_15);
|
||||
lean_inc(x_14);
|
||||
x_56 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_56, 0, x_14);
|
||||
lean_ctor_set(x_56, 1, x_26);
|
||||
lean_ctor_set(x_56, 2, x_55);
|
||||
lean_ctor_set(x_56, 3, x_25);
|
||||
x_57 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__13;
|
||||
lean_inc(x_14);
|
||||
x_58 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_58, 0, x_14);
|
||||
lean_ctor_set(x_58, 1, x_57);
|
||||
x_59 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__14;
|
||||
lean_inc(x_14);
|
||||
x_60 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_14);
|
||||
lean_ctor_set(x_60, 1, x_59);
|
||||
x_61 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__1___closed__3;
|
||||
x_62 = l_Lean_Syntax_node7(x_14, x_61, x_54, x_22, x_56, x_58, x_8, x_60, x_32);
|
||||
x_63 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_63, 0, x_62);
|
||||
lean_ctor_set(x_63, 1, x_50);
|
||||
return x_63;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_64;
|
||||
lean_dec(x_22);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_8);
|
||||
x_64 = !lean_is_exclusive(x_31);
|
||||
if (x_64 == 0)
|
||||
{
|
||||
return x_31;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_65; lean_object* x_66; lean_object* x_67;
|
||||
x_65 = lean_ctor_get(x_31, 0);
|
||||
x_66 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_66);
|
||||
lean_inc(x_65);
|
||||
lean_dec(x_31);
|
||||
x_67 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_67, 0, x_65);
|
||||
lean_ctor_set(x_67, 1, x_66);
|
||||
return x_67;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNoMatch_loop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_11 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___closed__1;
|
||||
x_12 = 0;
|
||||
lean_inc(x_1);
|
||||
x_13 = l_Lean_mkAtomFrom(x_1, x_11, x_12);
|
||||
x_14 = l_Lean_Syntax_mkSep(x_3, x_13);
|
||||
lean_dec(x_3);
|
||||
x_15 = lean_unsigned_to_nat(1u);
|
||||
x_16 = l_Lean_Syntax_setArg(x_1, x_15, x_14);
|
||||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
lean_ctor_set(x_17, 1, x_10);
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_18);
|
||||
x_19 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_2);
|
||||
lean_inc(x_18);
|
||||
x_20 = l_Lean_Elab_Term_isAtomicDiscr(x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
lean_object* x_21; uint8_t x_22;
|
||||
x_21 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_unbox(x_21);
|
||||
lean_dec(x_21);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_23 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_20);
|
||||
x_24 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabNoMatch_loop___lambda__1), 11, 8);
|
||||
lean_closure_set(x_24, 0, x_3);
|
||||
lean_closure_set(x_24, 1, x_1);
|
||||
lean_closure_set(x_24, 2, x_19);
|
||||
lean_closure_set(x_24, 3, x_4);
|
||||
lean_closure_set(x_24, 4, x_5);
|
||||
lean_closure_set(x_24, 5, x_6);
|
||||
lean_closure_set(x_24, 6, x_7);
|
||||
lean_closure_set(x_24, 7, x_18);
|
||||
x_25 = l_Lean_Core_withFreshMacroScope___rarg(x_24, x_8, x_9, x_23);
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27;
|
||||
x_26 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_20);
|
||||
x_27 = lean_array_push(x_3, x_18);
|
||||
x_2 = x_19;
|
||||
x_3 = x_27;
|
||||
x_10 = x_26;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_29;
|
||||
lean_dec(x_19);
|
||||
lean_dec(x_18);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_29 = !lean_is_exclusive(x_20);
|
||||
if (x_29 == 0)
|
||||
{
|
||||
return x_20;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_30 = lean_ctor_get(x_20, 0);
|
||||
x_31 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_31);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_20);
|
||||
x_32 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_32, 0, x_30);
|
||||
lean_ctor_set(x_32, 1, x_31);
|
||||
return x_32;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabNoMatch___spec__1___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -48103,6 +48377,155 @@ x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_El
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = lean_box(2);
|
||||
x_2 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__11;
|
||||
x_3 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__12;
|
||||
x_4 = lean_alloc_ctor(1, 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_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_packMatchTypePatterns___spec__1___closed__4;
|
||||
x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__1;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2(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_lt(x_3, x_2);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16;
|
||||
x_6 = lean_array_uget(x_4, x_3);
|
||||
x_7 = lean_unsigned_to_nat(0u);
|
||||
x_8 = lean_array_uset(x_4, x_3, x_7);
|
||||
x_9 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__2;
|
||||
x_10 = lean_array_push(x_9, x_6);
|
||||
x_11 = lean_box(2);
|
||||
x_12 = l_Lean_Elab_Term_precheckMatch___lambda__1___closed__2;
|
||||
x_13 = lean_alloc_ctor(1, 3, 0);
|
||||
lean_ctor_set(x_13, 0, x_11);
|
||||
lean_ctor_set(x_13, 1, x_12);
|
||||
lean_ctor_set(x_13, 2, x_10);
|
||||
x_14 = 1;
|
||||
x_15 = lean_usize_add(x_3, x_14);
|
||||
x_16 = lean_array_uset(x_8, x_3, x_13);
|
||||
x_3 = x_15;
|
||||
x_4 = x_16;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_elabNoMatch___spec__3(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_11;
|
||||
x_11 = lean_usize_dec_eq(x_2, x_3);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
x_12 = lean_array_uget(x_1, x_2);
|
||||
x_13 = l_Lean_Elab_Term_isAtomicDiscr(x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
lean_object* x_14; uint8_t x_15;
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
x_15 = lean_unbox(x_14);
|
||||
lean_dec(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
uint8_t x_16;
|
||||
x_16 = !lean_is_exclusive(x_13);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17; uint8_t x_18; lean_object* x_19;
|
||||
x_17 = lean_ctor_get(x_13, 0);
|
||||
lean_dec(x_17);
|
||||
x_18 = 1;
|
||||
x_19 = lean_box(x_18);
|
||||
lean_ctor_set(x_13, 0, x_19);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_20 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_13);
|
||||
x_21 = 1;
|
||||
x_22 = lean_box(x_21);
|
||||
x_23 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_23, 0, x_22);
|
||||
lean_ctor_set(x_23, 1, x_20);
|
||||
return x_23;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; size_t x_25; size_t x_26;
|
||||
x_24 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_13);
|
||||
x_25 = 1;
|
||||
x_26 = lean_usize_add(x_2, x_25);
|
||||
x_2 = x_26;
|
||||
x_10 = x_24;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_28;
|
||||
x_28 = !lean_is_exclusive(x_13);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_29 = lean_ctor_get(x_13, 0);
|
||||
x_30 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_13);
|
||||
x_31 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_29);
|
||||
lean_ctor_set(x_31, 1, x_30);
|
||||
return x_31;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_32 = 0;
|
||||
x_33 = lean_box(x_32);
|
||||
x_34 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_33);
|
||||
lean_ctor_set(x_34, 1, x_10);
|
||||
return x_34;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_elabNoMatch___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -48123,30 +48546,6 @@ x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Term_elabNoMatch___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = lean_box(2);
|
||||
x_2 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__11;
|
||||
x_3 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__12;
|
||||
x_4 = lean_alloc_ctor(1, 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_Elab_Term_elabNoMatch___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Match_0__Lean_Elab_Term_ToDepElimPattern_packMatchTypePatterns___spec__1___closed__4;
|
||||
x_2 = l_Lean_Elab_Term_elabNoMatch___closed__3;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNoMatch(lean_object* x_1, lean_object* x_2, 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:
|
||||
{
|
||||
|
|
@ -48170,168 +48569,66 @@ return x_12;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22;
|
||||
x_13 = lean_unsigned_to_nat(1u);
|
||||
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
|
||||
lean_inc(x_14);
|
||||
x_15 = l_Lean_Elab_Term_isAtomicDiscr(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_15) == 0)
|
||||
{
|
||||
lean_object* x_16; uint8_t x_17;
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_16);
|
||||
x_17 = lean_unbox(x_16);
|
||||
x_15 = lean_box(0);
|
||||
x_16 = l_Lean_Syntax_getArgs(x_14);
|
||||
lean_dec(x_14);
|
||||
x_17 = l_Lean_Syntax_TSepArray_getElems___rarg(x_16);
|
||||
lean_dec(x_16);
|
||||
if (x_17 == 0)
|
||||
x_18 = lean_array_get_size(x_17);
|
||||
x_19 = lean_unsigned_to_nat(0u);
|
||||
x_20 = lean_nat_dec_lt(x_19, x_18);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* 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_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52;
|
||||
x_18 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_15);
|
||||
x_19 = lean_ctor_get(x_7, 5);
|
||||
lean_inc(x_19);
|
||||
x_20 = 0;
|
||||
x_21 = l_Lean_SourceInfo_fromRef(x_19, x_20);
|
||||
x_22 = lean_ctor_get(x_7, 10);
|
||||
lean_inc(x_22);
|
||||
x_23 = lean_st_ref_get(x_8, x_18);
|
||||
x_24 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_24);
|
||||
x_25 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_23);
|
||||
x_26 = lean_ctor_get(x_24, 0);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_24);
|
||||
x_27 = lean_environment_main_module(x_26);
|
||||
x_28 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__1___closed__4;
|
||||
lean_inc(x_21);
|
||||
x_29 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_21);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
x_30 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAltViews_loop___spec__2___closed__1;
|
||||
lean_inc(x_21);
|
||||
x_31 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_21);
|
||||
lean_ctor_set(x_31, 1, x_30);
|
||||
x_32 = l_Lean_Elab_Term_mkFreshBinderName___at___private_Lean_Elab_Match_0__Lean_Elab_Term_mkUserNameFor___spec__1___rarg___closed__2;
|
||||
x_33 = l_Lean_addMacroScope(x_27, x_32, x_22);
|
||||
x_34 = lean_box(0);
|
||||
x_35 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__1___closed__1;
|
||||
lean_inc(x_21);
|
||||
x_36 = lean_alloc_ctor(3, 4, 0);
|
||||
lean_ctor_set(x_36, 0, x_21);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
lean_ctor_set(x_36, 2, x_33);
|
||||
lean_ctor_set(x_36, 3, x_34);
|
||||
x_37 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__13;
|
||||
lean_inc(x_21);
|
||||
x_38 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_38, 0, x_21);
|
||||
lean_ctor_set(x_38, 1, x_37);
|
||||
x_39 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__14;
|
||||
lean_inc(x_21);
|
||||
x_40 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_21);
|
||||
lean_ctor_set(x_40, 1, x_39);
|
||||
x_41 = l_Lean_Elab_Term_elabNoMatch___closed__1;
|
||||
lean_inc(x_21);
|
||||
x_42 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_42, 0, x_21);
|
||||
lean_ctor_set(x_42, 1, x_41);
|
||||
x_43 = l_Lean_Elab_Term_isAtomicDiscr___closed__6;
|
||||
lean_inc(x_36);
|
||||
lean_inc(x_31);
|
||||
lean_inc(x_21);
|
||||
x_44 = l_Lean_Syntax_node2(x_21, x_43, x_31, x_36);
|
||||
lean_inc(x_21);
|
||||
x_45 = l_Lean_Syntax_node2(x_21, x_10, x_42, x_44);
|
||||
x_46 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandNonAtomicDiscrs_x3f_loop___lambda__1___closed__3;
|
||||
x_47 = l_Lean_Syntax_node7(x_21, x_46, x_29, x_31, x_36, x_38, x_14, x_40, x_45);
|
||||
x_48 = 1;
|
||||
x_49 = lean_box(x_48);
|
||||
x_50 = lean_box(x_48);
|
||||
lean_inc(x_47);
|
||||
x_51 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
|
||||
lean_closure_set(x_51, 0, x_47);
|
||||
lean_closure_set(x_51, 1, x_2);
|
||||
lean_closure_set(x_51, 2, x_49);
|
||||
lean_closure_set(x_51, 3, x_50);
|
||||
x_52 = l_Lean_Elab_Term_withMacroExpansion___rarg(x_1, x_47, x_51, x_3, x_4, x_5, x_6, x_7, x_8, x_25);
|
||||
return x_52;
|
||||
uint8_t x_52;
|
||||
x_52 = 1;
|
||||
x_21 = x_52;
|
||||
x_22 = x_9;
|
||||
goto block_51;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_53; lean_object* x_54;
|
||||
lean_dec(x_1);
|
||||
x_53 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_15);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_3);
|
||||
x_54 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_53);
|
||||
if (lean_obj_tag(x_54) == 0)
|
||||
size_t x_53; size_t x_54; lean_object* x_55;
|
||||
x_53 = 0;
|
||||
x_54 = lean_usize_of_nat(x_18);
|
||||
x_55 = l_Array_anyMUnsafe_any___at_Lean_Elab_Term_elabNoMatch___spec__3(x_17, x_53, x_54, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_55) == 0)
|
||||
{
|
||||
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67;
|
||||
x_55 = lean_ctor_get(x_54, 0);
|
||||
lean_inc(x_55);
|
||||
x_56 = lean_ctor_get(x_54, 1);
|
||||
lean_object* x_56; uint8_t x_57;
|
||||
x_56 = lean_ctor_get(x_55, 0);
|
||||
lean_inc(x_56);
|
||||
lean_dec(x_54);
|
||||
x_57 = l_Lean_Elab_Term_elabNoMatch___closed__4;
|
||||
x_58 = lean_array_push(x_57, x_14);
|
||||
x_59 = lean_box(2);
|
||||
x_60 = l_Lean_Elab_Term_precheckMatch___lambda__1___closed__2;
|
||||
x_61 = lean_alloc_ctor(1, 3, 0);
|
||||
lean_ctor_set(x_61, 0, x_59);
|
||||
lean_ctor_set(x_61, 1, x_60);
|
||||
lean_ctor_set(x_61, 2, x_58);
|
||||
x_62 = lean_box(0);
|
||||
x_63 = l_Lean_Elab_Term_ToDepElimPattern_savePatternInfo_go___lambda__1___closed__1;
|
||||
x_64 = lean_array_push(x_63, x_61);
|
||||
x_65 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__12;
|
||||
x_66 = l_Lean_Elab_Term_elabNoMatch___closed__3;
|
||||
x_67 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux(x_62, x_64, x_65, x_66, x_55, x_3, x_4, x_5, x_6, x_7, x_8, x_56);
|
||||
return x_67;
|
||||
x_57 = lean_unbox(x_56);
|
||||
lean_dec(x_56);
|
||||
if (x_57 == 0)
|
||||
{
|
||||
lean_object* x_58; uint8_t x_59;
|
||||
x_58 = lean_ctor_get(x_55, 1);
|
||||
lean_inc(x_58);
|
||||
lean_dec(x_55);
|
||||
x_59 = 1;
|
||||
x_21 = x_59;
|
||||
x_22 = x_58;
|
||||
goto block_51;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_68;
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_68 = !lean_is_exclusive(x_54);
|
||||
if (x_68 == 0)
|
||||
{
|
||||
return x_54;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_69; lean_object* x_70; lean_object* x_71;
|
||||
x_69 = lean_ctor_get(x_54, 0);
|
||||
x_70 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_70);
|
||||
lean_inc(x_69);
|
||||
lean_dec(x_54);
|
||||
x_71 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_71, 0, x_69);
|
||||
lean_ctor_set(x_71, 1, x_70);
|
||||
return x_71;
|
||||
}
|
||||
}
|
||||
lean_object* x_60; uint8_t x_61;
|
||||
x_60 = lean_ctor_get(x_55, 1);
|
||||
lean_inc(x_60);
|
||||
lean_dec(x_55);
|
||||
x_61 = 0;
|
||||
x_21 = x_61;
|
||||
x_22 = x_60;
|
||||
goto block_51;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_72;
|
||||
lean_dec(x_14);
|
||||
uint8_t x_62;
|
||||
lean_dec(x_18);
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -48340,23 +48637,151 @@ lean_dec(x_4);
|
|||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_72 = !lean_is_exclusive(x_15);
|
||||
if (x_72 == 0)
|
||||
x_62 = !lean_is_exclusive(x_55);
|
||||
if (x_62 == 0)
|
||||
{
|
||||
return x_15;
|
||||
return x_55;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_73; lean_object* x_74; lean_object* x_75;
|
||||
x_73 = lean_ctor_get(x_15, 0);
|
||||
x_74 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_74);
|
||||
lean_inc(x_73);
|
||||
lean_dec(x_15);
|
||||
x_75 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_75, 0, x_73);
|
||||
lean_ctor_set(x_75, 1, x_74);
|
||||
return x_75;
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65;
|
||||
x_63 = lean_ctor_get(x_55, 0);
|
||||
x_64 = lean_ctor_get(x_55, 1);
|
||||
lean_inc(x_64);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_55);
|
||||
x_65 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_65, 0, x_63);
|
||||
lean_ctor_set(x_65, 1, x_64);
|
||||
return x_65;
|
||||
}
|
||||
}
|
||||
}
|
||||
block_51:
|
||||
{
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
lean_dec(x_18);
|
||||
x_23 = lean_array_to_list(lean_box(0), x_17);
|
||||
x_24 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__12;
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_1);
|
||||
x_25 = l_Lean_Elab_Term_elabNoMatch_loop(x_1, x_23, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_22);
|
||||
if (lean_obj_tag(x_25) == 0)
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_26 = lean_ctor_get(x_25, 0);
|
||||
lean_inc(x_26);
|
||||
x_27 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_25);
|
||||
x_28 = 1;
|
||||
x_29 = lean_box(x_28);
|
||||
x_30 = lean_box(x_28);
|
||||
lean_inc(x_26);
|
||||
x_31 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
|
||||
lean_closure_set(x_31, 0, x_26);
|
||||
lean_closure_set(x_31, 1, x_2);
|
||||
lean_closure_set(x_31, 2, x_29);
|
||||
lean_closure_set(x_31, 3, x_30);
|
||||
x_32 = l_Lean_Elab_Term_withMacroExpansion___rarg(x_1, x_26, x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_27);
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_33;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_33 = !lean_is_exclusive(x_25);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_34 = lean_ctor_get(x_25, 0);
|
||||
x_35 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_25);
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_34);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37;
|
||||
lean_dec(x_1);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_3);
|
||||
x_37 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_waitExpectedType(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22);
|
||||
if (lean_obj_tag(x_37) == 0)
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39; size_t x_40; size_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
x_38 = lean_ctor_get(x_37, 0);
|
||||
lean_inc(x_38);
|
||||
x_39 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_37);
|
||||
x_40 = lean_usize_of_nat(x_18);
|
||||
lean_dec(x_18);
|
||||
x_41 = 0;
|
||||
x_42 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2(x_15, x_40, x_41, x_17);
|
||||
x_43 = lean_box(0);
|
||||
x_44 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_expandSimpleMatch___closed__12;
|
||||
x_45 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__1;
|
||||
x_46 = l___private_Lean_Elab_Match_0__Lean_Elab_Term_elabMatchAux(x_43, x_42, x_44, x_45, x_38, x_3, x_4, x_5, x_6, x_7, x_8, x_39);
|
||||
return x_46;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_47;
|
||||
lean_dec(x_18);
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_47 = !lean_is_exclusive(x_37);
|
||||
if (x_47 == 0)
|
||||
{
|
||||
return x_37;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49; lean_object* x_50;
|
||||
x_48 = lean_ctor_get(x_37, 0);
|
||||
x_49 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_49);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_37);
|
||||
x_50 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_50, 0, x_48);
|
||||
lean_ctor_set(x_50, 1, x_49);
|
||||
return x_50;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -48376,6 +48801,38 @@ lean_dec(x_1);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
size_t x_5; size_t x_6; lean_object* x_7;
|
||||
x_5 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_6 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2(x_1, x_5, x_6, x_4);
|
||||
lean_dec(x_1);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_elabNoMatch___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
size_t x_11; size_t x_12; lean_object* x_13;
|
||||
x_11 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_12 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_13 = l_Array_anyMUnsafe_any___at_Lean_Elab_Term_elabNoMatch___spec__3(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoMatch___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -48432,7 +48889,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoMatch_declRange___
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_unsigned_to_nat(1250u);
|
||||
x_1 = lean_unsigned_to_nat(1263u);
|
||||
x_2 = lean_unsigned_to_nat(31u);
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
|
|
@ -49060,14 +49517,14 @@ lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18503_
|
|||
if (builtin) {res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Match___hyg_18503_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Elab_Term_elabNoMatch___closed__1 = _init_l_Lean_Elab_Term_elabNoMatch___closed__1();
|
||||
}l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__1();
|
||||
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__1);
|
||||
l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__2 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__2();
|
||||
lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabNoMatch___spec__2___closed__2);
|
||||
l_Lean_Elab_Term_elabNoMatch___closed__1 = _init_l_Lean_Elab_Term_elabNoMatch___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_elabNoMatch___closed__1);
|
||||
l_Lean_Elab_Term_elabNoMatch___closed__2 = _init_l_Lean_Elab_Term_elabNoMatch___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_elabNoMatch___closed__2);
|
||||
l_Lean_Elab_Term_elabNoMatch___closed__3 = _init_l_Lean_Elab_Term_elabNoMatch___closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_elabNoMatch___closed__3);
|
||||
l_Lean_Elab_Term_elabNoMatch___closed__4 = _init_l_Lean_Elab_Term_elabNoMatch___closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Term_elabNoMatch___closed__4);
|
||||
l___regBuiltin_Lean_Elab_Term_elabNoMatch___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabNoMatch___closed__1();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoMatch___closed__1);
|
||||
l___regBuiltin_Lean_Elab_Term_elabNoMatch___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabNoMatch___closed__2();
|
||||
|
|
|
|||
6
stage0/stdlib/Lean/Elab/Tactic.c
generated
6
stage0/stdlib/Lean/Elab/Tactic.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Elab.Tactic
|
||||
// Imports: Init Lean.Elab.Term Lean.Elab.Tactic.Basic Lean.Elab.Tactic.ByCases Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Induction Lean.Elab.Tactic.Generalize Lean.Elab.Tactic.Injection Lean.Elab.Tactic.Match Lean.Elab.Tactic.Rewrite Lean.Elab.Tactic.Location Lean.Elab.Tactic.Simp Lean.Elab.Tactic.Simproc Lean.Elab.Tactic.BuiltinTactic Lean.Elab.Tactic.Split Lean.Elab.Tactic.Conv Lean.Elab.Tactic.Delta Lean.Elab.Tactic.Meta Lean.Elab.Tactic.Unfold Lean.Elab.Tactic.Cache Lean.Elab.Tactic.Calc Lean.Elab.Tactic.Congr
|
||||
// Imports: Init Lean.Elab.Term Lean.Elab.Tactic.Basic Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Induction Lean.Elab.Tactic.Generalize Lean.Elab.Tactic.Injection Lean.Elab.Tactic.Match Lean.Elab.Tactic.Rewrite Lean.Elab.Tactic.Location Lean.Elab.Tactic.Simp Lean.Elab.Tactic.Simproc Lean.Elab.Tactic.BuiltinTactic Lean.Elab.Tactic.Split Lean.Elab.Tactic.Conv Lean.Elab.Tactic.Delta Lean.Elab.Tactic.Meta Lean.Elab.Tactic.Unfold Lean.Elab.Tactic.Cache Lean.Elab.Tactic.Calc Lean.Elab.Tactic.Congr
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -16,7 +16,6 @@ extern "C" {
|
|||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Elab_Term(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Elab_Tactic_Basic(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Elab_Tactic_ByCases(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Elab_Tactic_ElabTerm(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Elab_Tactic_Induction(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Elab_Tactic_Generalize(uint8_t builtin, lean_object*);
|
||||
|
|
@ -49,9 +48,6 @@ lean_dec_ref(res);
|
|||
res = initialize_Lean_Elab_Tactic_Basic(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Elab_Tactic_ByCases(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
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);
|
||||
|
|
|
|||
256
stage0/stdlib/Lean/Elab/Tactic/Basic.c
generated
256
stage0/stdlib/Lean/Elab/Tactic/Basic.c
generated
|
|
@ -32,6 +32,7 @@ static lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___lambda__1___clos
|
|||
extern lean_object* l_Lean_profiler;
|
||||
uint8_t l_Lean_Elab_isAbortExceptionId(lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_admitGoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -52,7 +53,6 @@ lean_object* l_Lean_profileitIOUnsafe___rarg(lean_object*, lean_object*, lean_ob
|
|||
LEAN_EXPORT uint8_t l_Lean_Elab_Tactic_Context_recover___default;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instOrElseTacticM(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_SavedState_restore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__16;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__4;
|
||||
extern lean_object* l_Lean_maxRecDepthErrorMessage;
|
||||
|
|
@ -60,13 +60,13 @@ static lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__11;
|
|||
lean_object* l_Lean_indentD(lean_object*);
|
||||
double lean_float_div(double, double);
|
||||
static lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___closed__1;
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__8;
|
||||
static lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___lambda__1___closed__2;
|
||||
static lean_object* l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticAt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_liftMetaTactic___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__8;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_withInfoTreeContext___at_Lean_Elab_Tactic_withTacticInfoContext___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MessageData_joinSep(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_throwAbortTactic___at_Lean_Elab_Tactic_done___spec__1___rarg___closed__1;
|
||||
|
|
@ -76,10 +76,8 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_handleEx(lean_object*, le
|
|||
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__6___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___lambda__4___boxed(lean_object**);
|
||||
double l_Lean_trace_profiler_threshold_getSecs(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__3;
|
||||
lean_object* l_Lean_Syntax_getId(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tacticElabAttribute;
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instMonadBacktrackSavedStateTacticM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*);
|
||||
|
|
@ -116,20 +114,16 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_focus(lean_object*);
|
|||
uint8_t lean_float_decLt(double, double);
|
||||
static lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__2___closed__1;
|
||||
static lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___rarg___closed__2;
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__11;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_throwNoGoalsToBeSolved___spec__1___rarg(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_evalTactic___lambda__5___closed__2;
|
||||
lean_object* l_Lean_MessageData_hasSyntheticSorry(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Tactic_getMainTarget___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__9;
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5411____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getMainTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getMainModule___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tryTactic_x3f(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_orElse___rarg(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_logAt___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__2___closed__1;
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__13;
|
||||
static lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___rarg___closed__3;
|
||||
LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_goalsToMessageData___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
|
|
@ -145,7 +139,9 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_SavedState_restore(lean_object*, uin
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTactic___at_Lean_Elab_Tactic_done___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Tactic_saveTacticInfoForToken___spec__1(lean_object*);
|
||||
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5463____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tryTactic(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5463_(lean_object*);
|
||||
lean_object* l_Lean_Exception_toMessageData(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_withCaseRef___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withCaseRef(lean_object*, lean_object*);
|
||||
|
|
@ -172,9 +168,12 @@ static lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__3;
|
|||
static lean_object* l_Lean_Elab_Tactic_instMonadTacticM___closed__6;
|
||||
lean_object* l_List_appendTR___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_instApplicativeReaderT___rarg(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__10;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getCurrMacroScope___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_saveState___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__15;
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getNameOfIdent_x27(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getGoals___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -195,11 +194,11 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_expa
|
|||
lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalTactic_throwExs___closed__2;
|
||||
static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___lambda__3___closed__2;
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__6;
|
||||
lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__13;
|
||||
static lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__2;
|
||||
static lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__5;
|
||||
lean_object* l_Lean_MessageData_ofSyntax(lean_object*);
|
||||
|
|
@ -240,8 +239,8 @@ LEAN_EXPORT lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tacti
|
|||
static lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getMainTarget(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__15;
|
||||
LEAN_EXPORT lean_object* l_Lean_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_List_isEmpty___rarg(lean_object*);
|
||||
|
|
@ -266,7 +265,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_closeMainGoal___lambda__1___boxed(le
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_instAlternativeTacticM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__5___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Tactic_getMainTarget___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Core_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -275,7 +273,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__1___boxed(lean_
|
|||
lean_object* l_Lean_log___at_Lean_Meta_computeSynthOrder___spec__6(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_pruneSolvedGoals(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_evalTactic___lambda__5___closed__1;
|
||||
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
|
||||
|
|
@ -294,7 +291,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_L
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_liftMetaTacticAux(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_isIdent(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__14;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_TacticM_runCore___rarg(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_run___lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_reportUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -314,6 +310,7 @@ uint8_t l_Lean_Environment_contains(lean_object*, lean_object*);
|
|||
extern lean_object* l_Lean_inheritedTraceOptions;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_throwNoGoalsToBeSolved(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__11;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_focusAndDone___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
double l_Float_ofScientific(lean_object*, uint8_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__6___rarg(lean_object*);
|
||||
|
|
@ -324,7 +321,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getNameOfIdent_x27___boxed(lean_obje
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_closeUsingOrAdmit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_evalTactic___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__12;
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalTactic___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___rarg___closed__1;
|
||||
|
|
@ -340,7 +336,9 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_getCurrMacroScope___rarg___boxed(lea
|
|||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__3(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_evalTactic___lambda__4___closed__3;
|
||||
static lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__5;
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_evalTactic_expandEval___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticAtRaw(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_evalTactic___spec__9(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_throwNoGoalsToBeSolved___rarg___closed__2;
|
||||
|
|
@ -349,6 +347,8 @@ lean_object* lean_environment_main_module(lean_object*);
|
|||
lean_object* lean_float_to_string(double);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_evalTactic___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_instMonadTacticM___closed__2;
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__6;
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__5;
|
||||
lean_object* l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_expandEval___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
|
|
@ -357,7 +357,6 @@ LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Tactic_evalTactic_expandEval
|
|||
lean_object* l_Lean_indentExpr(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTactic_throwExs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_logException___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withMacroExpansion(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Tactic_evalTactic___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -373,6 +372,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_appendGoals___boxed(lean_object*, le
|
|||
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__4___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withCaseRef___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__14;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__3;
|
||||
LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Elab_Tactic_evalTactic___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -382,12 +382,10 @@ static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__4___closed__5;
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_handleEx___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_Tactic_tagUntaggedGoals___spec__2___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_withMainContext(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_withSeconds___at_Lean_Elab_Tactic_evalTactic___spec__5(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5411_(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__10;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortTactic___at_Lean_Elab_Tactic_done___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_instAlternativeTacticM___spec__1___rarg(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_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__3;
|
||||
static lean_object* l_Lean_Elab_Tactic_instOrElseTacticM___closed__1;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalTactic_handleEx___closed__2;
|
||||
static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___lambda__3___closed__5;
|
||||
|
|
@ -441,6 +439,7 @@ static lean_object* l_Lean_Elab_Tactic_instMonadExceptExceptionTacticM___closed_
|
|||
static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__4___closed__4;
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTactic_handleEx___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__12;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_ensureHasNoMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_103_(uint8_t, uint8_t);
|
||||
lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -459,17 +458,19 @@ static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__4___closed__6;
|
|||
uint8_t l_Lean_Exception_isRuntime(lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_saveState(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__7;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalTactic___lambda__5___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MessageData_ofName(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__9;
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_replaceMainGoal(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_liftMetaTactic(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_done(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_run___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_profileitM___at_Lean_Elab_Tactic_evalTactic___spec__11___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__16;
|
||||
static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_evalTactic___spec__3___lambda__3___closed__4;
|
||||
static lean_object* l_Lean_Elab_Tactic_instMonadTacticM___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1(lean_object*);
|
||||
|
|
@ -14245,6 +14246,73 @@ return x_37;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalTacticAtRaw(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_12 = lean_box(0);
|
||||
x_13 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_2);
|
||||
lean_ctor_set(x_13, 1, x_12);
|
||||
x_14 = l_Lean_Elab_Tactic_setGoals(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
x_15 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_16 = l_Lean_Elab_Tactic_evalTactic(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_16);
|
||||
x_18 = l_Lean_Elab_Tactic_getGoals___rarg(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_19;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_19 = !lean_is_exclusive(x_16);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_20 = lean_ctor_get(x_16, 0);
|
||||
x_21 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_21);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_16);
|
||||
x_22 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_20);
|
||||
lean_ctor_set(x_22, 1, x_21);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_ensureHasNoMVars___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -16339,7 +16407,7 @@ lean_dec(x_1);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -16349,7 +16417,7 @@ x_3 = l_Lean_Name_mkStr2(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__2() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -16359,27 +16427,27 @@ x_3 = l_Lean_Name_str___override(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__3() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__2;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__2;
|
||||
x_2 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__8;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__4() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__3;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__3;
|
||||
x_2 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__5() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -16387,17 +16455,17 @@ x_1 = lean_mk_string_from_bytes("initFn", 6);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__6() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__4;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__5;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__4;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__5;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__7() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -16405,47 +16473,47 @@ x_1 = lean_mk_string_from_bytes("_@", 2);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__8() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__6;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__7;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__6;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__7;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__9() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__8;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__8;
|
||||
x_2 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__5;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__10() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__9;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__9;
|
||||
x_2 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__8;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__11() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__10;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__10;
|
||||
x_2 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__12() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__12() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -16453,17 +16521,17 @@ x_1 = lean_mk_string_from_bytes("Basic", 5);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__13() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__13() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__11;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__12;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__11;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__12;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__14() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__14() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -16471,54 +16539,54 @@ x_1 = lean_mk_string_from_bytes("_hyg", 4);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__15() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__15() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__13;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__14;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__13;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__14;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__16() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__16() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__15;
|
||||
x_2 = lean_unsigned_to_nat(5369u);
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__15;
|
||||
x_2 = lean_unsigned_to_nat(5421u);
|
||||
x_3 = l_Lean_Name_num___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__1;
|
||||
x_2 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__1;
|
||||
x_3 = 0;
|
||||
x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__16;
|
||||
x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__16;
|
||||
x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5411____closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5463____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__15;
|
||||
x_2 = lean_unsigned_to_nat(5411u);
|
||||
x_1 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__15;
|
||||
x_2 = lean_unsigned_to_nat(5463u);
|
||||
x_3 = l_Lean_Name_num___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5411_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5463_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = l_List_forIn_loop___at_Lean_Elab_Tactic_evalTactic_handleEx___spec__4___closed__2;
|
||||
x_3 = 0;
|
||||
x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5411____closed__1;
|
||||
x_4 = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5463____closed__1;
|
||||
x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1);
|
||||
return x_5;
|
||||
}
|
||||
|
|
@ -16727,44 +16795,44 @@ l_Lean_Elab_Tactic_getNameOfIdent_x27___closed__2 = _init_l_Lean_Elab_Tactic_get
|
|||
lean_mark_persistent(l_Lean_Elab_Tactic_getNameOfIdent_x27___closed__2);
|
||||
l_Lean_Elab_Tactic_withCaseRef___rarg___closed__1 = _init_l_Lean_Elab_Tactic_withCaseRef___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_withCaseRef___rarg___closed__1);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__1);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__2);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__3 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__3);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__4 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__4);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__5 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__5();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__5);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__6 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__6();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__6);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__7 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__7();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__7);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__8 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__8();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__8);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__9 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__9();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__9);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__10 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__10();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__10);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__11 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__11();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__11);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__12 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__12();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__12);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__13 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__13();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__13);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__14 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__14();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__14);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__15 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__15();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__15);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__16 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__16();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369____closed__16);
|
||||
if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5369_(lean_io_mk_world());
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__1);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__2 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__2);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__3 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__3);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__4 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__4);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__5 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__5();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__5);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__6 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__6();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__6);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__7 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__7();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__7);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__8 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__8();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__8);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__9 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__9();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__9);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__10 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__10();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__10);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__11 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__11();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__11);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__12 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__12();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__12);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__13 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__13();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__13);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__14 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__14();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__14);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__15 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__15();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__15);
|
||||
l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__16 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__16();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421____closed__16);
|
||||
if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5421_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5411____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5411____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5411____closed__1);
|
||||
if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5411_(lean_io_mk_world());
|
||||
}l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5463____closed__1 = _init_l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5463____closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5463____closed__1);
|
||||
if (builtin) {res = l_Lean_Elab_Tactic_initFn____x40_Lean_Elab_Tactic_Basic___hyg_5463_(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));
|
||||
|
|
|
|||
3307
stage0/stdlib/Lean/Elab/Tactic/ByCases.c
generated
3307
stage0/stdlib/Lean/Elab/Tactic/ByCases.c
generated
File diff suppressed because it is too large
Load diff
509
stage0/stdlib/Lean/LocalContext.c
generated
509
stage0/stdlib/Lean/LocalContext.c
generated
|
|
@ -14,6 +14,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__22___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_LocalContext_sortFVarsByContextOrder___spec__1(lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_mkLetDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_allM___spec__4___rarg___lambda__1(lean_object*, uint8_t);
|
||||
|
|
@ -87,10 +88,13 @@ static lean_object* l_Lean_LocalContext_decls___default___closed__1;
|
|||
lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_allM___spec__4___rarg___lambda__1___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_getRoundtrippingUserName_x3f(lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_LocalContext_mkLocalDecl___spec__4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_Lean_LocalContext_size___spec__4(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalDecl_replaceFVarId(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_qpartition___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_LocalContext_foldl___spec__6(lean_object*);
|
||||
size_t lean_usize_mul(size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_LocalContext_allM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -108,6 +112,7 @@ LEAN_EXPORT lean_object* l_Nat_foldRev___at_Lean_LocalContext_mkForall___spec__1
|
|||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__22(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_LocalContext_instForInLocalContextLocalDecl___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_LocalContext_0__Lean_reprLocalDeclKind____x40_Lean_LocalContext___hyg_15____closed__19;
|
||||
LEAN_EXPORT uint8_t l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___lambda__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_mkForall___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_LocalContext_0__Lean_reprLocalDeclKind____x40_Lean_LocalContext___hyg_15____boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_mkLambda___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -118,6 +123,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_LocalContext_foldl_
|
|||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_LocalContext_instForInLocalContextLocalDecl___spec__4___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_all___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_setKind___boxed(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_foldlM(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -240,6 +246,7 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr_
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_Lean_LocalContext_foldl___spec__4___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_LocalContext_instForInLocalContextLocalDecl___spec__4(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__11___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_LocalContext_sortFVarsByContextOrder___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_anyM___spec__4___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_setBinderInfo(lean_object*, lean_object*, uint8_t);
|
||||
|
|
@ -297,6 +304,7 @@ LEAN_EXPORT lean_object* l_Lean_LocalContext_mkBinding___boxed(lean_object*, lea
|
|||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at_Lean_LocalContext_allM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__18(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_getFVars(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalDecl_setKind___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__10___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldrMAux___at_Lean_LocalContext_foldr___spec__20(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalDeclKind_noConfusion___rarg(uint8_t, uint8_t, lean_object*);
|
||||
|
|
@ -312,6 +320,7 @@ LEAN_EXPORT lean_object* l_Nat_foldRevM_loop___at_Lean_LocalContext_sanitizeName
|
|||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__12___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_LocalContext_instForInLocalContextLocalDecl___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__10(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalDecl_setKind(lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_foldr___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_anyM___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_LocalContext_findFromUserName_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -321,6 +330,7 @@ lean_object* l_Lean_Expr_letE___override(lean_object*, lean_object*, lean_object
|
|||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_allM___spec__5___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_foldlM___at_Lean_LocalContext_foldl___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_foldlM___at_Lean_LocalContext_size___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_findSomeRevMAux___at_Lean_LocalContext_findDeclRev_x3f___spec__4___rarg(lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_allM___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -383,9 +393,11 @@ LEAN_EXPORT uint8_t l_Lean_LocalDecl_isImplementationDetail(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at_Lean_LocalContext_anyM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
static lean_object* l_Lean_PersistentArray_findSomeMAux___at_Lean_LocalContext_findDecl_x3f___spec__3___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_LocalContext_allM___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_allM(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalDecl_userName(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_instInhabitedLocalDecl;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_LocalContext_sortFVarsByContextOrder___spec__3(size_t, size_t, lean_object*);
|
||||
lean_object* lean_name_append_index_after(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_LocalContext_instForInLocalContextLocalDecl___spec__5___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalDeclKind_noConfusion___rarg___lambda__1(lean_object*);
|
||||
|
|
@ -405,12 +417,14 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr_
|
|||
static lean_object* l___private_Lean_LocalContext_0__Lean_reprLocalDeclKind____x40_Lean_LocalContext___hyg_15____closed__16;
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__24(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_panic___at_Lean_LocalDecl_setBinderInfo___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_LocalContext_sortFVarsByContextOrder___spec__3___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_LocalContext_find_x3f___spec__2(lean_object*, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_findDeclM_x3f(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_findDeclRev_x3f(lean_object*);
|
||||
static lean_object* l___private_Lean_LocalContext_0__Lean_reprLocalDeclKind____x40_Lean_LocalContext___hyg_15____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at_Lean_LocalContext_foldl___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_NameSet_empty;
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_setKind(lean_object*, lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_LocalContext_findDecl_x3f___spec__5___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l_Lean_sanitizeName(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_LocalContext_findDecl_x3f___spec__4___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
|
|
@ -467,6 +481,7 @@ LEAN_EXPORT lean_object* l_Lean_LocalContext_get_x21(lean_object*, lean_object*)
|
|||
LEAN_EXPORT lean_object* l___private_Lean_LocalContext_0__Lean_hashLocalDeclKind____x40_Lean_LocalContext___hyg_223____boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_LocalContext_instForInLocalContextLocalDecl___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_LocalContext_foldl___spec__10___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___lambda__1___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_LocalContext_foldl___spec__3(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_LocalContext_anyM___spec__2(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_LocalContext_foldr___spec__5___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
|
|
@ -545,6 +560,7 @@ static lean_object* l_Lean_LocalDecl_setBinderInfo___closed__2;
|
|||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_LocalContext_any___spec__4(lean_object*, lean_object*, size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_findSomeM_x3f___at_Lean_LocalContext_findDecl_x3f___spec__2___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_LocalContext_findDecl_x3f___spec__4(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_sortFVarsByContextOrder(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalDecl_value_x3f(lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalDecl_toExpr(lean_object*);
|
||||
|
|
@ -1990,6 +2006,88 @@ x_3 = lean_box(x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalDecl_setKind(lean_object* x_1, uint8_t x_2) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_1) == 0)
|
||||
{
|
||||
uint8_t x_3;
|
||||
x_3 = !lean_is_exclusive(x_1);
|
||||
if (x_3 == 0)
|
||||
{
|
||||
lean_ctor_set_uint8(x_1, sizeof(void*)*4 + 1, x_2);
|
||||
return x_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9;
|
||||
x_4 = lean_ctor_get(x_1, 0);
|
||||
x_5 = lean_ctor_get(x_1, 1);
|
||||
x_6 = lean_ctor_get(x_1, 2);
|
||||
x_7 = lean_ctor_get(x_1, 3);
|
||||
x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*4);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_dec(x_1);
|
||||
x_9 = lean_alloc_ctor(0, 4, 2);
|
||||
lean_ctor_set(x_9, 0, x_4);
|
||||
lean_ctor_set(x_9, 1, x_5);
|
||||
lean_ctor_set(x_9, 2, x_6);
|
||||
lean_ctor_set(x_9, 3, x_7);
|
||||
lean_ctor_set_uint8(x_9, sizeof(void*)*4, x_8);
|
||||
lean_ctor_set_uint8(x_9, sizeof(void*)*4 + 1, x_2);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_10;
|
||||
x_10 = !lean_is_exclusive(x_1);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_ctor_set_uint8(x_1, sizeof(void*)*5 + 1, x_2);
|
||||
return x_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17;
|
||||
x_11 = lean_ctor_get(x_1, 0);
|
||||
x_12 = lean_ctor_get(x_1, 1);
|
||||
x_13 = lean_ctor_get(x_1, 2);
|
||||
x_14 = lean_ctor_get(x_1, 3);
|
||||
x_15 = lean_ctor_get(x_1, 4);
|
||||
x_16 = lean_ctor_get_uint8(x_1, sizeof(void*)*5);
|
||||
lean_inc(x_15);
|
||||
lean_inc(x_14);
|
||||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_1);
|
||||
x_17 = lean_alloc_ctor(1, 5, 2);
|
||||
lean_ctor_set(x_17, 0, x_11);
|
||||
lean_ctor_set(x_17, 1, x_12);
|
||||
lean_ctor_set(x_17, 2, x_13);
|
||||
lean_ctor_set(x_17, 3, x_14);
|
||||
lean_ctor_set(x_17, 4, x_15);
|
||||
lean_ctor_set_uint8(x_17, sizeof(void*)*5, x_16);
|
||||
lean_ctor_set_uint8(x_17, sizeof(void*)*5 + 1, x_2);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalDecl_setKind___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_4 = l_Lean_LocalDecl_setKind(x_1, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_LocalContext_fvarIdToDecl___default___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -3220,7 +3318,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_LocalDecl_value___closed__1;
|
||||
x_2 = l_Lean_LocalContext_get_x21___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(216u);
|
||||
x_3 = lean_unsigned_to_nat(225u);
|
||||
x_4 = lean_unsigned_to_nat(14u);
|
||||
x_5 = l_Lean_LocalContext_get_x21___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -5460,6 +5558,114 @@ return x_32;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_setKind(lean_object* x_1, lean_object* x_2, uint8_t x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_4 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_4);
|
||||
x_5 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_1);
|
||||
x_6 = lean_local_ctx_find(x_1, x_2);
|
||||
if (lean_obj_tag(x_6) == 0)
|
||||
{
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_7;
|
||||
x_7 = !lean_is_exclusive(x_1);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; uint8_t x_10;
|
||||
x_8 = lean_ctor_get(x_1, 1);
|
||||
lean_dec(x_8);
|
||||
x_9 = lean_ctor_get(x_1, 0);
|
||||
lean_dec(x_9);
|
||||
x_10 = !lean_is_exclusive(x_6);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_11 = lean_ctor_get(x_6, 0);
|
||||
x_12 = l_Lean_LocalDecl_setKind(x_11, x_3);
|
||||
x_13 = l_Lean_LocalDecl_fvarId(x_12);
|
||||
lean_inc(x_12);
|
||||
x_14 = l_Lean_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(x_4, x_13, x_12);
|
||||
x_15 = l_Lean_LocalDecl_index(x_12);
|
||||
lean_ctor_set(x_6, 0, x_12);
|
||||
x_16 = l_Lean_PersistentArray_set___rarg(x_5, x_15, x_6);
|
||||
lean_dec(x_15);
|
||||
lean_ctor_set(x_1, 1, x_16);
|
||||
lean_ctor_set(x_1, 0, x_14);
|
||||
return x_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_17 = lean_ctor_get(x_6, 0);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_6);
|
||||
x_18 = l_Lean_LocalDecl_setKind(x_17, x_3);
|
||||
x_19 = l_Lean_LocalDecl_fvarId(x_18);
|
||||
lean_inc(x_18);
|
||||
x_20 = l_Lean_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(x_4, x_19, x_18);
|
||||
x_21 = l_Lean_LocalDecl_index(x_18);
|
||||
x_22 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_22, 0, x_18);
|
||||
x_23 = l_Lean_PersistentArray_set___rarg(x_5, x_21, x_22);
|
||||
lean_dec(x_21);
|
||||
lean_ctor_set(x_1, 1, x_23);
|
||||
lean_ctor_set(x_1, 0, x_20);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
lean_dec(x_1);
|
||||
x_24 = lean_ctor_get(x_6, 0);
|
||||
lean_inc(x_24);
|
||||
if (lean_is_exclusive(x_6)) {
|
||||
lean_ctor_release(x_6, 0);
|
||||
x_25 = x_6;
|
||||
} else {
|
||||
lean_dec_ref(x_6);
|
||||
x_25 = lean_box(0);
|
||||
}
|
||||
x_26 = l_Lean_LocalDecl_setKind(x_24, x_3);
|
||||
x_27 = l_Lean_LocalDecl_fvarId(x_26);
|
||||
lean_inc(x_26);
|
||||
x_28 = l_Lean_PersistentHashMap_insert___at_Lean_LocalContext_mkLocalDecl___spec__1(x_4, x_27, x_26);
|
||||
x_29 = l_Lean_LocalDecl_index(x_26);
|
||||
if (lean_is_scalar(x_25)) {
|
||||
x_30 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_30 = x_25;
|
||||
}
|
||||
lean_ctor_set(x_30, 0, x_26);
|
||||
x_31 = l_Lean_PersistentArray_set___rarg(x_5, x_29, x_30);
|
||||
lean_dec(x_29);
|
||||
x_32 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_32, 0, x_28);
|
||||
lean_ctor_set(x_32, 1, x_31);
|
||||
return x_32;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_setKind___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4; lean_object* x_5;
|
||||
x_4 = lean_unbox(x_3);
|
||||
lean_dec(x_3);
|
||||
x_5 = l_Lean_LocalContext_setKind(x_1, x_2, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_setBinderInfo(lean_object* x_1, lean_object* x_2, uint8_t x_3) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -10867,7 +11073,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_LocalDecl_value___closed__1;
|
||||
x_2 = l_Nat_foldRev___at_Lean_LocalContext_mkBinding___spec__1___closed__1;
|
||||
x_3 = lean_unsigned_to_nat(407u);
|
||||
x_3 = lean_unsigned_to_nat(423u);
|
||||
x_4 = lean_unsigned_to_nat(14u);
|
||||
x_5 = l_Lean_LocalContext_get_x21___closed__2;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -13600,6 +13806,303 @@ return x_16;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_getRoundtrippingUserName_x3f(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
lean_inc(x_1);
|
||||
x_3 = lean_local_ctx_find(x_1, x_2);
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
lean_object* x_4;
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(0);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_6 = l_Lean_LocalDecl_userName(x_5);
|
||||
lean_inc(x_6);
|
||||
x_7 = l_Lean_LocalContext_findFromUserName_x3f(x_1, x_6);
|
||||
if (lean_obj_tag(x_7) == 0)
|
||||
{
|
||||
lean_object* x_8;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
x_8 = lean_box(0);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_9;
|
||||
x_9 = !lean_is_exclusive(x_7);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_10 = lean_ctor_get(x_7, 0);
|
||||
x_11 = l_Lean_LocalDecl_fvarId(x_5);
|
||||
lean_dec(x_5);
|
||||
x_12 = l_Lean_LocalDecl_fvarId(x_10);
|
||||
lean_dec(x_10);
|
||||
x_13 = lean_name_eq(x_11, x_12);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_object* x_14;
|
||||
lean_free_object(x_7);
|
||||
lean_dec(x_6);
|
||||
x_14 = lean_box(0);
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_ctor_set(x_7, 0, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18;
|
||||
x_15 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_7);
|
||||
x_16 = l_Lean_LocalDecl_fvarId(x_5);
|
||||
lean_dec(x_5);
|
||||
x_17 = l_Lean_LocalDecl_fvarId(x_15);
|
||||
lean_dec(x_15);
|
||||
x_18 = lean_name_eq(x_16, x_17);
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_16);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_object* x_19;
|
||||
lean_dec(x_6);
|
||||
x_19 = lean_box(0);
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20;
|
||||
x_20 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_20, 0, x_6);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_LocalContext_sortFVarsByContextOrder___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_lt(x_3, x_2);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12;
|
||||
x_6 = lean_array_uget(x_4, x_3);
|
||||
x_7 = lean_unsigned_to_nat(0u);
|
||||
x_8 = lean_array_uset(x_4, x_3, x_7);
|
||||
x_9 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_6);
|
||||
x_10 = l_Lean_PersistentHashMap_find_x3f___at_Lean_LocalContext_find_x3f___spec__1(x_9, x_6);
|
||||
x_11 = 1;
|
||||
x_12 = lean_usize_add(x_3, x_11);
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14;
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_7);
|
||||
lean_ctor_set(x_13, 1, x_6);
|
||||
x_14 = lean_array_uset(x_8, x_3, x_13);
|
||||
x_3 = x_12;
|
||||
x_4 = x_14;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_16 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_10);
|
||||
x_17 = l_Lean_LocalDecl_index(x_16);
|
||||
lean_dec(x_16);
|
||||
x_18 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_17);
|
||||
lean_ctor_set(x_18, 1, x_6);
|
||||
x_19 = lean_array_uset(x_8, x_3, x_18);
|
||||
x_3 = x_12;
|
||||
x_4 = x_19;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___lambda__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; uint8_t x_5;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
x_4 = lean_ctor_get(x_2, 0);
|
||||
x_5 = lean_nat_dec_lt(x_3, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___lambda__1___boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = lean_nat_dec_lt(x_2, x_3);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
lean_dec(x_2);
|
||||
return x_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9;
|
||||
x_5 = l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___closed__1;
|
||||
lean_inc(x_2);
|
||||
x_6 = l_Array_qpartition___rarg(x_1, x_5, x_2, x_3);
|
||||
x_7 = lean_ctor_get(x_6, 0);
|
||||
lean_inc(x_7);
|
||||
x_8 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_6);
|
||||
x_9 = lean_nat_dec_le(x_3, x_7);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_10 = l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2(x_8, x_2, x_7);
|
||||
x_11 = lean_unsigned_to_nat(1u);
|
||||
x_12 = lean_nat_add(x_7, x_11);
|
||||
lean_dec(x_7);
|
||||
x_1 = x_10;
|
||||
x_2 = x_12;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_2);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_LocalContext_sortFVarsByContextOrder___spec__3(size_t x_1, size_t x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = lean_usize_dec_lt(x_2, x_1);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11;
|
||||
x_5 = lean_array_uget(x_3, x_2);
|
||||
x_6 = lean_unsigned_to_nat(0u);
|
||||
x_7 = lean_array_uset(x_3, x_2, x_6);
|
||||
x_8 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_5);
|
||||
x_9 = 1;
|
||||
x_10 = lean_usize_add(x_2, x_9);
|
||||
x_11 = lean_array_uset(x_7, x_2, x_8);
|
||||
x_2 = x_10;
|
||||
x_3 = x_11;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_sortFVarsByContextOrder(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; size_t x_4; size_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; lean_object* x_14;
|
||||
x_3 = lean_array_get_size(x_2);
|
||||
x_4 = lean_usize_of_nat(x_3);
|
||||
lean_dec(x_3);
|
||||
x_5 = 0;
|
||||
x_6 = l_Array_mapMUnsafe_map___at_Lean_LocalContext_sortFVarsByContextOrder___spec__1(x_1, x_4, x_5, x_2);
|
||||
x_7 = lean_array_get_size(x_6);
|
||||
x_8 = lean_unsigned_to_nat(1u);
|
||||
x_9 = lean_nat_sub(x_7, x_8);
|
||||
lean_dec(x_7);
|
||||
x_10 = lean_unsigned_to_nat(0u);
|
||||
x_11 = l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2(x_6, x_10, x_9);
|
||||
lean_dec(x_9);
|
||||
x_12 = lean_array_get_size(x_11);
|
||||
x_13 = lean_usize_of_nat(x_12);
|
||||
lean_dec(x_12);
|
||||
x_14 = l_Array_mapMUnsafe_map___at_Lean_LocalContext_sortFVarsByContextOrder___spec__3(x_13, x_5, x_11);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_LocalContext_sortFVarsByContextOrder___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
size_t x_5; size_t x_6; lean_object* x_7;
|
||||
x_5 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_6 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_7 = l_Array_mapMUnsafe_map___at_Lean_LocalContext_sortFVarsByContextOrder___spec__1(x_1, x_5, x_6, x_4);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___lambda__1(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2(x_1, x_2, x_3);
|
||||
lean_dec(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_LocalContext_sortFVarsByContextOrder___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
size_t x_4; size_t x_5; lean_object* x_6;
|
||||
x_4 = lean_unbox_usize(x_1);
|
||||
lean_dec(x_1);
|
||||
x_5 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_6 = l_Array_mapMUnsafe_map___at_Lean_LocalContext_sortFVarsByContextOrder___spec__3(x_4, x_5, x_3);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_instMonadLCtx___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -14474,6 +14977,8 @@ l_Nat_foldRev___at_Lean_LocalContext_mkBinding___spec__1___closed__2 = _init_l_N
|
|||
lean_mark_persistent(l_Nat_foldRev___at_Lean_LocalContext_mkBinding___spec__1___closed__2);
|
||||
l_Lean_LocalContext_sanitizeNames___closed__1 = _init_l_Lean_LocalContext_sanitizeNames___closed__1();
|
||||
lean_mark_persistent(l_Lean_LocalContext_sanitizeNames___closed__1);
|
||||
l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___closed__1 = _init_l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___closed__1();
|
||||
lean_mark_persistent(l_Array_qsort_sort___at_Lean_LocalContext_sortFVarsByContextOrder___spec__2___closed__1);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
466
stage0/stdlib/Lean/Parser/Term.c
generated
466
stage0/stdlib/Lean/Parser/Term.c
generated
File diff suppressed because it is too large
Load diff
49
stage0/stdlib/Lean/Parser/Types.c
generated
49
stage0/stdlib/Lean/Parser/Types.c
generated
|
|
@ -6145,46 +6145,15 @@ return x_4;
|
|||
LEAN_EXPORT lean_object* l_Lean_Parser_ParserFn_run(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_6;
|
||||
x_6 = !lean_is_exclusive(x_3);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_7 = l_Lean_Parser_ParserFn_run___closed__1;
|
||||
x_8 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_8, 0, x_2);
|
||||
lean_ctor_set(x_8, 1, x_3);
|
||||
lean_ctor_set(x_8, 2, x_7);
|
||||
lean_ctor_set(x_8, 3, x_4);
|
||||
x_9 = lean_apply_2(x_1, x_8, x_5);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_10 = lean_ctor_get(x_3, 0);
|
||||
x_11 = lean_ctor_get(x_3, 1);
|
||||
x_12 = lean_ctor_get(x_3, 2);
|
||||
x_13 = lean_ctor_get(x_3, 3);
|
||||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_3);
|
||||
x_14 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_14, 0, x_10);
|
||||
lean_ctor_set(x_14, 1, x_11);
|
||||
lean_ctor_set(x_14, 2, x_12);
|
||||
lean_ctor_set(x_14, 3, x_13);
|
||||
x_15 = l_Lean_Parser_ParserFn_run___closed__1;
|
||||
x_16 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_16, 0, x_2);
|
||||
lean_ctor_set(x_16, 1, x_14);
|
||||
lean_ctor_set(x_16, 2, x_15);
|
||||
lean_ctor_set(x_16, 3, x_4);
|
||||
x_17 = lean_apply_2(x_1, x_16, x_5);
|
||||
return x_17;
|
||||
}
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8;
|
||||
x_6 = l_Lean_Parser_ParserFn_run___closed__1;
|
||||
x_7 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_7, 0, x_2);
|
||||
lean_ctor_set(x_7, 1, x_3);
|
||||
lean_ctor_set(x_7, 2, x_6);
|
||||
lean_ctor_set(x_7, 3, x_4);
|
||||
x_8 = lean_apply_2(x_1, x_7, x_5);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
|
|
|
|||
|
|
@ -17776,7 +17776,7 @@ return x_225;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_226; lean_object* x_227; uint8_t x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236;
|
||||
lean_object* x_226; lean_object* x_227; uint8_t x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_6);
|
||||
|
|
@ -17795,16 +17795,19 @@ lean_inc(x_229);
|
|||
x_231 = lean_alloc_ctor(2, 2, 0);
|
||||
lean_ctor_set(x_231, 0, x_229);
|
||||
lean_ctor_set(x_231, 1, x_230);
|
||||
x_232 = l_Lean_PrettyPrinter_Delaborator_delabAppMatch___lambda__6___closed__15;
|
||||
x_233 = l_Lean_Syntax_node2(x_229, x_232, x_231, x_226);
|
||||
x_234 = lean_ctor_get(x_1, 7);
|
||||
lean_inc(x_234);
|
||||
x_232 = l_Lean_PrettyPrinter_Delaborator_delabSort___closed__10;
|
||||
lean_inc(x_229);
|
||||
x_233 = l_Lean_Syntax_node1(x_229, x_232, x_226);
|
||||
x_234 = l_Lean_PrettyPrinter_Delaborator_delabAppMatch___lambda__6___closed__15;
|
||||
x_235 = l_Lean_Syntax_node2(x_229, x_234, x_231, x_233);
|
||||
x_236 = lean_ctor_get(x_1, 7);
|
||||
lean_inc(x_236);
|
||||
lean_dec(x_1);
|
||||
x_235 = l_Lean_Syntax_mkApp(x_233, x_234);
|
||||
x_236 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_236, 0, x_235);
|
||||
lean_ctor_set(x_236, 1, x_9);
|
||||
return x_236;
|
||||
x_237 = l_Lean_Syntax_mkApp(x_235, x_236);
|
||||
x_238 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_238, 0, x_237);
|
||||
lean_ctor_set(x_238, 1, x_9);
|
||||
return x_238;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
374
stage0/stdlib/Lean/Widget/InteractiveGoal.c
generated
374
stage0/stdlib/Lean/Widget/InteractiveGoal.c
generated
|
|
@ -16752,19 +16752,19 @@ lean_dec(x_18);
|
|||
x_23 = l_Array_isEmpty___rarg(x_22);
|
||||
if (x_23 == 0)
|
||||
{
|
||||
uint8_t x_83;
|
||||
x_83 = 0;
|
||||
x_24 = x_83;
|
||||
goto block_82;
|
||||
uint8_t x_85;
|
||||
x_85 = 0;
|
||||
x_24 = x_85;
|
||||
goto block_84;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_84;
|
||||
x_84 = 1;
|
||||
x_24 = x_84;
|
||||
goto block_82;
|
||||
uint8_t x_86;
|
||||
x_86 = 1;
|
||||
x_24 = x_86;
|
||||
goto block_84;
|
||||
}
|
||||
block_82:
|
||||
block_84:
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26;
|
||||
if (x_24 == 0)
|
||||
|
|
@ -16774,57 +16774,57 @@ if (lean_obj_tag(x_21) == 0)
|
|||
lean_dec(x_22);
|
||||
x_25 = x_20;
|
||||
x_26 = x_19;
|
||||
goto block_73;
|
||||
goto block_75;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_74; lean_object* x_75;
|
||||
x_74 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_74);
|
||||
lean_object* x_76; lean_object* x_77;
|
||||
x_76 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_76);
|
||||
lean_dec(x_21);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
x_75 = l_Lean_Widget_addInteractiveHypothesisBundle(x_20, x_22, x_74, x_12, x_7, x_8, x_9, x_10, x_19);
|
||||
if (lean_obj_tag(x_75) == 0)
|
||||
x_77 = l_Lean_Widget_addInteractiveHypothesisBundle(x_20, x_22, x_76, x_12, x_7, x_8, x_9, x_10, x_19);
|
||||
if (lean_obj_tag(x_77) == 0)
|
||||
{
|
||||
lean_object* x_76; lean_object* x_77;
|
||||
x_76 = lean_ctor_get(x_75, 0);
|
||||
lean_inc(x_76);
|
||||
x_77 = lean_ctor_get(x_75, 1);
|
||||
lean_inc(x_77);
|
||||
lean_dec(x_75);
|
||||
x_25 = x_76;
|
||||
x_26 = x_77;
|
||||
goto block_73;
|
||||
lean_object* x_78; lean_object* x_79;
|
||||
x_78 = lean_ctor_get(x_77, 0);
|
||||
lean_inc(x_78);
|
||||
x_79 = lean_ctor_get(x_77, 1);
|
||||
lean_inc(x_79);
|
||||
lean_dec(x_77);
|
||||
x_25 = x_78;
|
||||
x_26 = x_79;
|
||||
goto block_75;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_78;
|
||||
uint8_t x_80;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
x_78 = !lean_is_exclusive(x_75);
|
||||
if (x_78 == 0)
|
||||
x_80 = !lean_is_exclusive(x_77);
|
||||
if (x_80 == 0)
|
||||
{
|
||||
return x_75;
|
||||
return x_77;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_79; lean_object* x_80; lean_object* x_81;
|
||||
x_79 = lean_ctor_get(x_75, 0);
|
||||
x_80 = lean_ctor_get(x_75, 1);
|
||||
lean_inc(x_80);
|
||||
lean_inc(x_79);
|
||||
lean_dec(x_75);
|
||||
x_81 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_81, 0, x_79);
|
||||
lean_ctor_set(x_81, 1, x_80);
|
||||
return x_81;
|
||||
lean_object* x_81; lean_object* x_82; lean_object* x_83;
|
||||
x_81 = lean_ctor_get(x_77, 0);
|
||||
x_82 = lean_ctor_get(x_77, 1);
|
||||
lean_inc(x_82);
|
||||
lean_inc(x_81);
|
||||
lean_dec(x_77);
|
||||
x_83 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_83, 0, x_81);
|
||||
lean_ctor_set(x_83, 1, x_82);
|
||||
return x_83;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -16835,9 +16835,9 @@ lean_dec(x_22);
|
|||
lean_dec(x_21);
|
||||
x_25 = x_20;
|
||||
x_26 = x_19;
|
||||
goto block_73;
|
||||
goto block_75;
|
||||
}
|
||||
block_73:
|
||||
block_75:
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32;
|
||||
x_27 = lean_ctor_get(x_6, 2);
|
||||
|
|
@ -16856,145 +16856,147 @@ lean_inc(x_7);
|
|||
x_32 = l_Lean_Widget_ppExprTagged(x_29, x_31, x_7, x_8, x_9, x_10, x_30);
|
||||
if (lean_obj_tag(x_32) == 0)
|
||||
{
|
||||
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_59; lean_object* x_60;
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_33 = lean_ctor_get(x_32, 0);
|
||||
lean_inc(x_33);
|
||||
x_34 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_34);
|
||||
if (lean_is_exclusive(x_32)) {
|
||||
lean_ctor_release(x_32, 0);
|
||||
lean_ctor_release(x_32, 1);
|
||||
x_35 = x_32;
|
||||
} else {
|
||||
lean_dec_ref(x_32);
|
||||
x_35 = lean_box(0);
|
||||
}
|
||||
x_59 = lean_ctor_get(x_6, 0);
|
||||
lean_inc(x_59);
|
||||
x_60 = l_Lean_Elab_CommandContextInfo_save___at_Lean_Widget_goalToInteractive___spec__6(x_7, x_8, x_9, x_10, x_34);
|
||||
lean_dec(x_32);
|
||||
x_35 = lean_ctor_get(x_6, 0);
|
||||
lean_inc(x_35);
|
||||
x_36 = l_Lean_Elab_CommandContextInfo_save___at_Lean_Widget_goalToInteractive___spec__6(x_7, x_8, x_9, x_10, x_34);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
if (lean_obj_tag(x_59) == 0)
|
||||
if (lean_obj_tag(x_35) == 0)
|
||||
{
|
||||
lean_object* x_61; lean_object* x_62;
|
||||
x_61 = lean_ctor_get(x_60, 0);
|
||||
uint8_t x_37;
|
||||
x_37 = !lean_is_exclusive(x_36);
|
||||
if (x_37 == 0)
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
x_38 = lean_ctor_get(x_36, 0);
|
||||
x_39 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_38);
|
||||
lean_ctor_set(x_39, 1, x_12);
|
||||
x_40 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_40, 0, x_25);
|
||||
lean_ctor_set(x_40, 1, x_33);
|
||||
lean_ctor_set(x_40, 2, x_39);
|
||||
x_41 = l_Lean_Meta_getGoalPrefix(x_6);
|
||||
lean_dec(x_6);
|
||||
x_42 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_42, 0, x_40);
|
||||
lean_ctor_set(x_42, 1, x_12);
|
||||
lean_ctor_set(x_42, 2, x_41);
|
||||
lean_ctor_set(x_42, 3, x_4);
|
||||
lean_ctor_set(x_42, 4, x_12);
|
||||
lean_ctor_set(x_42, 5, x_12);
|
||||
lean_ctor_set(x_36, 0, x_42);
|
||||
return x_36;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49;
|
||||
x_43 = lean_ctor_get(x_36, 0);
|
||||
x_44 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_44);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_36);
|
||||
x_45 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_45, 0, x_43);
|
||||
lean_ctor_set(x_45, 1, x_12);
|
||||
x_46 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_46, 0, x_25);
|
||||
lean_ctor_set(x_46, 1, x_33);
|
||||
lean_ctor_set(x_46, 2, x_45);
|
||||
x_47 = l_Lean_Meta_getGoalPrefix(x_6);
|
||||
lean_dec(x_6);
|
||||
x_48 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_48, 0, x_46);
|
||||
lean_ctor_set(x_48, 1, x_12);
|
||||
lean_ctor_set(x_48, 2, x_47);
|
||||
lean_ctor_set(x_48, 3, x_4);
|
||||
lean_ctor_set(x_48, 4, x_12);
|
||||
lean_ctor_set(x_48, 5, x_12);
|
||||
x_49 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_48);
|
||||
lean_ctor_set(x_49, 1, x_44);
|
||||
return x_49;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_50;
|
||||
x_50 = !lean_is_exclusive(x_36);
|
||||
if (x_50 == 0)
|
||||
{
|
||||
lean_object* x_51; lean_object* x_52; uint8_t 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;
|
||||
x_51 = lean_ctor_get(x_36, 0);
|
||||
x_52 = lean_erase_macro_scopes(x_35);
|
||||
x_53 = 1;
|
||||
x_54 = l_Lean_Name_toString(x_52, x_53);
|
||||
x_55 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_55, 0, x_54);
|
||||
x_56 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_56, 0, x_51);
|
||||
lean_ctor_set(x_56, 1, x_12);
|
||||
x_57 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_57, 0, x_25);
|
||||
lean_ctor_set(x_57, 1, x_33);
|
||||
lean_ctor_set(x_57, 2, x_56);
|
||||
x_58 = l_Lean_Meta_getGoalPrefix(x_6);
|
||||
lean_dec(x_6);
|
||||
x_59 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_59, 0, x_57);
|
||||
lean_ctor_set(x_59, 1, x_55);
|
||||
lean_ctor_set(x_59, 2, x_58);
|
||||
lean_ctor_set(x_59, 3, x_4);
|
||||
lean_ctor_set(x_59, 4, x_12);
|
||||
lean_ctor_set(x_59, 5, x_12);
|
||||
lean_ctor_set(x_36, 0, x_59);
|
||||
return x_36;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70;
|
||||
x_60 = lean_ctor_get(x_36, 0);
|
||||
x_61 = lean_ctor_get(x_36, 1);
|
||||
lean_inc(x_61);
|
||||
x_62 = lean_ctor_get(x_60, 1);
|
||||
lean_inc(x_62);
|
||||
lean_dec(x_60);
|
||||
x_36 = x_12;
|
||||
x_37 = x_61;
|
||||
x_38 = x_62;
|
||||
goto block_58;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68;
|
||||
x_63 = lean_ctor_get(x_60, 0);
|
||||
lean_inc(x_63);
|
||||
x_64 = lean_ctor_get(x_60, 1);
|
||||
lean_inc(x_64);
|
||||
lean_dec(x_60);
|
||||
x_65 = lean_erase_macro_scopes(x_59);
|
||||
x_66 = 1;
|
||||
x_67 = l_Lean_Name_toString(x_65, x_66);
|
||||
x_68 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_68, 0, x_67);
|
||||
x_36 = x_68;
|
||||
x_37 = x_63;
|
||||
x_38 = x_64;
|
||||
goto block_58;
|
||||
}
|
||||
block_58:
|
||||
{
|
||||
uint8_t x_39;
|
||||
x_39 = !lean_is_exclusive(x_37);
|
||||
if (x_39 == 0)
|
||||
{
|
||||
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44;
|
||||
x_40 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_37);
|
||||
lean_ctor_set(x_40, 1, x_12);
|
||||
x_41 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_41, 0, x_25);
|
||||
lean_ctor_set(x_41, 1, x_33);
|
||||
lean_ctor_set(x_41, 2, x_40);
|
||||
x_42 = l_Lean_Meta_getGoalPrefix(x_6);
|
||||
lean_inc(x_60);
|
||||
lean_dec(x_36);
|
||||
x_62 = lean_erase_macro_scopes(x_35);
|
||||
x_63 = 1;
|
||||
x_64 = l_Lean_Name_toString(x_62, x_63);
|
||||
x_65 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_65, 0, x_64);
|
||||
x_66 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_66, 0, x_60);
|
||||
lean_ctor_set(x_66, 1, x_12);
|
||||
x_67 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_67, 0, x_25);
|
||||
lean_ctor_set(x_67, 1, x_33);
|
||||
lean_ctor_set(x_67, 2, x_66);
|
||||
x_68 = l_Lean_Meta_getGoalPrefix(x_6);
|
||||
lean_dec(x_6);
|
||||
x_43 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_43, 0, x_41);
|
||||
lean_ctor_set(x_43, 1, x_36);
|
||||
lean_ctor_set(x_43, 2, x_42);
|
||||
lean_ctor_set(x_43, 3, x_4);
|
||||
lean_ctor_set(x_43, 4, x_12);
|
||||
lean_ctor_set(x_43, 5, x_12);
|
||||
if (lean_is_scalar(x_35)) {
|
||||
x_44 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_44 = x_35;
|
||||
}
|
||||
lean_ctor_set(x_44, 0, x_43);
|
||||
lean_ctor_set(x_44, 1, x_38);
|
||||
return x_44;
|
||||
}
|
||||
else
|
||||
{
|
||||
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;
|
||||
x_45 = lean_ctor_get(x_37, 0);
|
||||
x_46 = lean_ctor_get(x_37, 1);
|
||||
x_47 = lean_ctor_get(x_37, 2);
|
||||
x_48 = lean_ctor_get(x_37, 3);
|
||||
x_49 = lean_ctor_get(x_37, 4);
|
||||
x_50 = lean_ctor_get(x_37, 5);
|
||||
x_51 = lean_ctor_get(x_37, 6);
|
||||
lean_inc(x_51);
|
||||
lean_inc(x_50);
|
||||
lean_inc(x_49);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_47);
|
||||
lean_inc(x_46);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_37);
|
||||
x_52 = lean_alloc_ctor(0, 7, 0);
|
||||
lean_ctor_set(x_52, 0, x_45);
|
||||
lean_ctor_set(x_52, 1, x_46);
|
||||
lean_ctor_set(x_52, 2, x_47);
|
||||
lean_ctor_set(x_52, 3, x_48);
|
||||
lean_ctor_set(x_52, 4, x_49);
|
||||
lean_ctor_set(x_52, 5, x_50);
|
||||
lean_ctor_set(x_52, 6, x_51);
|
||||
x_53 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_53, 0, x_52);
|
||||
lean_ctor_set(x_53, 1, x_12);
|
||||
x_54 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_54, 0, x_25);
|
||||
lean_ctor_set(x_54, 1, x_33);
|
||||
lean_ctor_set(x_54, 2, x_53);
|
||||
x_55 = l_Lean_Meta_getGoalPrefix(x_6);
|
||||
lean_dec(x_6);
|
||||
x_56 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_56, 0, x_54);
|
||||
lean_ctor_set(x_56, 1, x_36);
|
||||
lean_ctor_set(x_56, 2, x_55);
|
||||
lean_ctor_set(x_56, 3, x_4);
|
||||
lean_ctor_set(x_56, 4, x_12);
|
||||
lean_ctor_set(x_56, 5, x_12);
|
||||
if (lean_is_scalar(x_35)) {
|
||||
x_57 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_57 = x_35;
|
||||
}
|
||||
lean_ctor_set(x_57, 0, x_56);
|
||||
lean_ctor_set(x_57, 1, x_38);
|
||||
return x_57;
|
||||
x_69 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_69, 0, x_67);
|
||||
lean_ctor_set(x_69, 1, x_65);
|
||||
lean_ctor_set(x_69, 2, x_68);
|
||||
lean_ctor_set(x_69, 3, x_4);
|
||||
lean_ctor_set(x_69, 4, x_12);
|
||||
lean_ctor_set(x_69, 5, x_12);
|
||||
x_70 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_70, 0, x_69);
|
||||
lean_ctor_set(x_70, 1, x_61);
|
||||
return x_70;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_69;
|
||||
uint8_t x_71;
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -17002,23 +17004,23 @@ lean_dec(x_8);
|
|||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
x_69 = !lean_is_exclusive(x_32);
|
||||
if (x_69 == 0)
|
||||
x_71 = !lean_is_exclusive(x_32);
|
||||
if (x_71 == 0)
|
||||
{
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_70; lean_object* x_71; lean_object* x_72;
|
||||
x_70 = lean_ctor_get(x_32, 0);
|
||||
x_71 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_71);
|
||||
lean_inc(x_70);
|
||||
lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_72 = lean_ctor_get(x_32, 0);
|
||||
x_73 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_73);
|
||||
lean_inc(x_72);
|
||||
lean_dec(x_32);
|
||||
x_72 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_72, 0, x_70);
|
||||
lean_ctor_set(x_72, 1, x_71);
|
||||
return x_72;
|
||||
x_74 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_74, 0, x_72);
|
||||
lean_ctor_set(x_74, 1, x_73);
|
||||
return x_74;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -17026,30 +17028,30 @@ return x_72;
|
|||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_85;
|
||||
uint8_t x_87;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
x_85 = !lean_is_exclusive(x_16);
|
||||
if (x_85 == 0)
|
||||
x_87 = !lean_is_exclusive(x_16);
|
||||
if (x_87 == 0)
|
||||
{
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_86; lean_object* x_87; lean_object* x_88;
|
||||
x_86 = lean_ctor_get(x_16, 0);
|
||||
x_87 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_87);
|
||||
lean_inc(x_86);
|
||||
lean_object* x_88; lean_object* x_89; lean_object* x_90;
|
||||
x_88 = lean_ctor_get(x_16, 0);
|
||||
x_89 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_89);
|
||||
lean_inc(x_88);
|
||||
lean_dec(x_16);
|
||||
x_88 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_88, 0, x_86);
|
||||
lean_ctor_set(x_88, 1, x_87);
|
||||
return x_88;
|
||||
x_90 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_90, 0, x_88);
|
||||
lean_ctor_set(x_90, 1, x_89);
|
||||
return x_90;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
408
stage0/stdlib/Lean/Widget/UserWidget.c
generated
408
stage0/stdlib/Lean/Widget/UserWidget.c
generated
|
|
@ -18838,260 +18838,228 @@ return x_15;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_41;
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_29; lean_object* x_30;
|
||||
x_16 = lean_array_uget(x_4, x_3);
|
||||
x_17 = lean_unsigned_to_nat(0u);
|
||||
x_18 = lean_array_uset(x_4, x_3, x_17);
|
||||
x_19 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_19);
|
||||
lean_inc(x_19);
|
||||
x_29 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_1);
|
||||
x_41 = lean_environment_find(x_1, x_19);
|
||||
if (lean_obj_tag(x_41) == 0)
|
||||
x_30 = lean_environment_find(x_1, x_29);
|
||||
if (lean_obj_tag(x_30) == 0)
|
||||
{
|
||||
lean_object* x_42;
|
||||
x_42 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
|
||||
x_20 = x_42;
|
||||
x_21 = x_12;
|
||||
goto block_40;
|
||||
lean_object* x_31;
|
||||
lean_dec(x_29);
|
||||
x_31 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
|
||||
x_19 = x_31;
|
||||
x_20 = x_12;
|
||||
goto block_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_43;
|
||||
x_43 = !lean_is_exclusive(x_41);
|
||||
if (x_43 == 0)
|
||||
uint8_t x_32;
|
||||
x_32 = !lean_is_exclusive(x_30);
|
||||
if (x_32 == 0)
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47;
|
||||
x_44 = lean_ctor_get(x_41, 0);
|
||||
x_45 = l_Lean_ConstantInfo_type(x_44);
|
||||
lean_dec(x_44);
|
||||
x_46 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3079____closed__2;
|
||||
x_47 = l_Lean_Expr_isConstOf(x_45, x_46);
|
||||
lean_dec(x_45);
|
||||
if (x_47 == 0)
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36;
|
||||
x_33 = lean_ctor_get(x_30, 0);
|
||||
x_34 = l_Lean_ConstantInfo_type(x_33);
|
||||
lean_dec(x_33);
|
||||
x_35 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3079____closed__2;
|
||||
x_36 = l_Lean_Expr_isConstOf(x_34, x_35);
|
||||
lean_dec(x_34);
|
||||
if (x_36 == 0)
|
||||
{
|
||||
lean_object* x_48;
|
||||
lean_free_object(x_41);
|
||||
x_48 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
|
||||
x_20 = x_48;
|
||||
x_21 = x_12;
|
||||
goto block_40;
|
||||
lean_object* x_37;
|
||||
lean_free_object(x_30);
|
||||
lean_dec(x_29);
|
||||
x_37 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
|
||||
x_19 = x_37;
|
||||
x_20 = x_12;
|
||||
goto block_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_49;
|
||||
lean_inc(x_19);
|
||||
x_49 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1(x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_49) == 0)
|
||||
lean_object* x_38;
|
||||
x_38 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1(x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_38) == 0)
|
||||
{
|
||||
lean_object* x_50; uint8_t x_51;
|
||||
x_50 = lean_ctor_get(x_49, 0);
|
||||
lean_inc(x_50);
|
||||
x_51 = !lean_is_exclusive(x_50);
|
||||
if (x_51 == 0)
|
||||
lean_object* x_39; uint8_t x_40;
|
||||
x_39 = lean_ctor_get(x_38, 0);
|
||||
lean_inc(x_39);
|
||||
x_40 = !lean_is_exclusive(x_39);
|
||||
if (x_40 == 0)
|
||||
{
|
||||
lean_object* x_52; lean_object* x_53; lean_object* x_54;
|
||||
x_52 = lean_ctor_get(x_50, 0);
|
||||
x_53 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_53);
|
||||
lean_dec(x_49);
|
||||
x_54 = lean_ctor_get(x_52, 0);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_52);
|
||||
lean_ctor_set(x_41, 0, x_54);
|
||||
lean_ctor_set(x_50, 0, x_41);
|
||||
x_20 = x_50;
|
||||
x_21 = x_53;
|
||||
goto block_40;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_55 = lean_ctor_get(x_50, 0);
|
||||
lean_inc(x_55);
|
||||
lean_dec(x_50);
|
||||
x_56 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_56);
|
||||
lean_dec(x_49);
|
||||
x_57 = lean_ctor_get(x_55, 0);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_55);
|
||||
lean_ctor_set(x_41, 0, x_57);
|
||||
x_58 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_58, 0, x_41);
|
||||
x_20 = x_58;
|
||||
x_21 = x_56;
|
||||
goto block_40;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_59;
|
||||
lean_free_object(x_41);
|
||||
lean_dec(x_19);
|
||||
lean_dec(x_18);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_1);
|
||||
x_59 = !lean_is_exclusive(x_49);
|
||||
if (x_59 == 0)
|
||||
{
|
||||
return x_49;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
x_60 = lean_ctor_get(x_49, 0);
|
||||
x_61 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_61);
|
||||
lean_inc(x_60);
|
||||
lean_dec(x_49);
|
||||
x_62 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_62, 0, x_60);
|
||||
lean_ctor_set(x_62, 1, x_61);
|
||||
return x_62;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66;
|
||||
x_63 = lean_ctor_get(x_41, 0);
|
||||
lean_inc(x_63);
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43;
|
||||
x_41 = lean_ctor_get(x_39, 0);
|
||||
x_42 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_42);
|
||||
lean_dec(x_38);
|
||||
x_43 = lean_ctor_get(x_41, 0);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_41);
|
||||
x_64 = l_Lean_ConstantInfo_type(x_63);
|
||||
lean_dec(x_63);
|
||||
x_65 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3079____closed__2;
|
||||
x_66 = l_Lean_Expr_isConstOf(x_64, x_65);
|
||||
lean_dec(x_64);
|
||||
if (x_66 == 0)
|
||||
{
|
||||
lean_object* x_67;
|
||||
x_67 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
|
||||
x_20 = x_67;
|
||||
x_21 = x_12;
|
||||
goto block_40;
|
||||
lean_ctor_set(x_30, 0, x_43);
|
||||
lean_ctor_set(x_39, 0, x_30);
|
||||
x_19 = x_39;
|
||||
x_20 = x_42;
|
||||
goto block_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_68;
|
||||
lean_inc(x_19);
|
||||
x_68 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1(x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_68) == 0)
|
||||
{
|
||||
lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75;
|
||||
x_69 = lean_ctor_get(x_68, 0);
|
||||
lean_inc(x_69);
|
||||
x_70 = lean_ctor_get(x_69, 0);
|
||||
lean_inc(x_70);
|
||||
if (lean_is_exclusive(x_69)) {
|
||||
lean_ctor_release(x_69, 0);
|
||||
x_71 = x_69;
|
||||
} else {
|
||||
lean_dec_ref(x_69);
|
||||
x_71 = lean_box(0);
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
||||
x_44 = lean_ctor_get(x_39, 0);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_39);
|
||||
x_45 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_38);
|
||||
x_46 = lean_ctor_get(x_44, 0);
|
||||
lean_inc(x_46);
|
||||
lean_dec(x_44);
|
||||
lean_ctor_set(x_30, 0, x_46);
|
||||
x_47 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_47, 0, x_30);
|
||||
x_19 = x_47;
|
||||
x_20 = x_45;
|
||||
goto block_28;
|
||||
}
|
||||
x_72 = lean_ctor_get(x_68, 1);
|
||||
lean_inc(x_72);
|
||||
lean_dec(x_68);
|
||||
x_73 = lean_ctor_get(x_70, 0);
|
||||
lean_inc(x_73);
|
||||
lean_dec(x_70);
|
||||
x_74 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_74, 0, x_73);
|
||||
if (lean_is_scalar(x_71)) {
|
||||
x_75 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_75 = x_71;
|
||||
}
|
||||
lean_ctor_set(x_75, 0, x_74);
|
||||
x_20 = x_75;
|
||||
x_21 = x_72;
|
||||
goto block_40;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79;
|
||||
lean_dec(x_19);
|
||||
uint8_t x_48;
|
||||
lean_free_object(x_30);
|
||||
lean_dec(x_18);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_1);
|
||||
x_76 = lean_ctor_get(x_68, 0);
|
||||
lean_inc(x_76);
|
||||
x_77 = lean_ctor_get(x_68, 1);
|
||||
lean_inc(x_77);
|
||||
if (lean_is_exclusive(x_68)) {
|
||||
lean_ctor_release(x_68, 0);
|
||||
lean_ctor_release(x_68, 1);
|
||||
x_78 = x_68;
|
||||
} else {
|
||||
lean_dec_ref(x_68);
|
||||
x_78 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_78)) {
|
||||
x_79 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_79 = x_78;
|
||||
}
|
||||
lean_ctor_set(x_79, 0, x_76);
|
||||
lean_ctor_set(x_79, 1, x_77);
|
||||
return x_79;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
block_40:
|
||||
x_48 = !lean_is_exclusive(x_38);
|
||||
if (x_48 == 0)
|
||||
{
|
||||
lean_object* x_22; uint8_t x_23;
|
||||
x_22 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_20);
|
||||
x_23 = !lean_is_exclusive(x_16);
|
||||
if (x_23 == 0)
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; lean_object* x_29;
|
||||
x_24 = lean_ctor_get(x_16, 0);
|
||||
lean_dec(x_24);
|
||||
x_25 = lean_box(0);
|
||||
x_26 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_26, 0, x_16);
|
||||
lean_ctor_set(x_26, 1, x_25);
|
||||
lean_ctor_set(x_26, 2, x_22);
|
||||
x_27 = 1;
|
||||
x_28 = lean_usize_add(x_3, x_27);
|
||||
x_29 = lean_array_uset(x_18, x_3, x_26);
|
||||
x_3 = x_28;
|
||||
x_4 = x_29;
|
||||
x_12 = x_21;
|
||||
goto _start;
|
||||
return x_38;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint64_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38;
|
||||
x_31 = lean_ctor_get_uint64(x_16, sizeof(void*)*2);
|
||||
x_32 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_16);
|
||||
x_33 = lean_alloc_ctor(0, 2, 8);
|
||||
lean_ctor_set(x_33, 0, x_19);
|
||||
lean_ctor_set(x_33, 1, x_32);
|
||||
lean_ctor_set_uint64(x_33, sizeof(void*)*2, x_31);
|
||||
x_34 = lean_box(0);
|
||||
x_35 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_35, 0, x_33);
|
||||
lean_ctor_set(x_35, 1, x_34);
|
||||
lean_ctor_set(x_35, 2, x_22);
|
||||
x_36 = 1;
|
||||
x_37 = lean_usize_add(x_3, x_36);
|
||||
x_38 = lean_array_uset(x_18, x_3, x_35);
|
||||
x_3 = x_37;
|
||||
x_4 = x_38;
|
||||
x_12 = x_21;
|
||||
goto _start;
|
||||
lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_49 = lean_ctor_get(x_38, 0);
|
||||
x_50 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_50);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_38);
|
||||
x_51 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_49);
|
||||
lean_ctor_set(x_51, 1, x_50);
|
||||
return x_51;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55;
|
||||
x_52 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_30);
|
||||
x_53 = l_Lean_ConstantInfo_type(x_52);
|
||||
lean_dec(x_52);
|
||||
x_54 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_fromJsonUserWidgetDefinition____x40_Lean_Widget_UserWidget___hyg_3079____closed__2;
|
||||
x_55 = l_Lean_Expr_isConstOf(x_53, x_54);
|
||||
lean_dec(x_53);
|
||||
if (x_55 == 0)
|
||||
{
|
||||
lean_object* x_56;
|
||||
lean_dec(x_29);
|
||||
x_56 = l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__4___closed__1;
|
||||
x_19 = x_56;
|
||||
x_20 = x_12;
|
||||
goto block_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_57;
|
||||
x_57 = l___private_Lean_Widget_UserWidget_0__Lean_Widget_evalUserWidgetDefinitionUnsafe___at_Lean_Widget_getWidgets___spec__1(x_29, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_57) == 0)
|
||||
{
|
||||
lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64;
|
||||
x_58 = lean_ctor_get(x_57, 0);
|
||||
lean_inc(x_58);
|
||||
x_59 = lean_ctor_get(x_58, 0);
|
||||
lean_inc(x_59);
|
||||
if (lean_is_exclusive(x_58)) {
|
||||
lean_ctor_release(x_58, 0);
|
||||
x_60 = x_58;
|
||||
} else {
|
||||
lean_dec_ref(x_58);
|
||||
x_60 = lean_box(0);
|
||||
}
|
||||
x_61 = lean_ctor_get(x_57, 1);
|
||||
lean_inc(x_61);
|
||||
lean_dec(x_57);
|
||||
x_62 = lean_ctor_get(x_59, 0);
|
||||
lean_inc(x_62);
|
||||
lean_dec(x_59);
|
||||
x_63 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_63, 0, x_62);
|
||||
if (lean_is_scalar(x_60)) {
|
||||
x_64 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_64 = x_60;
|
||||
}
|
||||
lean_ctor_set(x_64, 0, x_63);
|
||||
x_19 = x_64;
|
||||
x_20 = x_61;
|
||||
goto block_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68;
|
||||
lean_dec(x_18);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_1);
|
||||
x_65 = lean_ctor_get(x_57, 0);
|
||||
lean_inc(x_65);
|
||||
x_66 = lean_ctor_get(x_57, 1);
|
||||
lean_inc(x_66);
|
||||
if (lean_is_exclusive(x_57)) {
|
||||
lean_ctor_release(x_57, 0);
|
||||
lean_ctor_release(x_57, 1);
|
||||
x_67 = x_57;
|
||||
} else {
|
||||
lean_dec_ref(x_57);
|
||||
x_67 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_67)) {
|
||||
x_68 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_68 = x_67;
|
||||
}
|
||||
lean_ctor_set(x_68, 0, x_65);
|
||||
lean_ctor_set(x_68, 1, x_66);
|
||||
return x_68;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
block_28:
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26;
|
||||
x_21 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_19);
|
||||
x_22 = lean_box(0);
|
||||
x_23 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_23, 0, x_16);
|
||||
lean_ctor_set(x_23, 1, x_22);
|
||||
lean_ctor_set(x_23, 2, x_21);
|
||||
x_24 = 1;
|
||||
x_25 = lean_usize_add(x_3, x_24);
|
||||
x_26 = lean_array_uset(x_18, x_3, x_23);
|
||||
x_3 = x_25;
|
||||
x_4 = x_26;
|
||||
x_12 = x_20;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_getWidgets___spec__5(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
|
||||
_start:
|
||||
|
|
|
|||
5
tests/lean/run/nary_nomatch.lean
Normal file
5
tests/lean/run/nary_nomatch.lean
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
example (x : Fin n) (h : n = 0) : False :=
|
||||
nomatch x, h
|
||||
|
||||
example (x : Nat) (f : Nat → Fin n) (h : n = 0 ∧ True) : False :=
|
||||
nomatch f x, h.1
|
||||
Loading…
Add table
Reference in a new issue