diff --git a/stage0/src/Lean/Elab/App.lean b/stage0/src/Lean/Elab/App.lean index 3e01af9a8d..ef8485ed0b 100644 --- a/stage0/src/Lean/Elab/App.lean +++ b/stage0/src/Lean/Elab/App.lean @@ -803,9 +803,13 @@ private partial def elabAppFn (f : Syntax) (lvals : List LVal) (namedArgs : Arra f.getArgs.foldlM (fun acc f => elabAppFn f lvals namedArgs args expectedType? explicit ellipsis true acc) acc else let elabFieldName (e field : Syntax) := do + if field.isMissing then + let e ← elabTerm e none + unless e.isSorry do + addDotCompletionInfo f e expectedType? let newLVals := field.getId.eraseMacroScopes.components.map fun n => - -- We use `none` here since `field` can't be part of a composite name - LVal.fieldName field (toString n) none e + -- We use `none` here since `field` can't be part of a composite name + LVal.fieldName field (toString n) none e elabAppFn e (newLVals ++ lvals) namedArgs args expectedType? explicit ellipsis overloaded acc let elabFieldIdx (e idxStx : Syntax) := do let idx := idxStx.isFieldIdx?.get! @@ -813,8 +817,8 @@ private partial def elabAppFn (f : Syntax) (lvals : List LVal) (namedArgs : Arra match f with | `($(e).$idx:fieldIdx) => elabFieldIdx e idx | `($e |>.$idx:fieldIdx) => elabFieldIdx e idx - | `($(e).$field:ident) => elabFieldName e field - | `($e |>.$field:ident) => elabFieldName e field + | `($(e).$field) => elabFieldName e field + | `($e |>.$field) => elabFieldName e field | `($e[%$bracket $idx]) => elabAppFn e (LVal.getOp bracket idx :: lvals) namedArgs args expectedType? explicit ellipsis overloaded acc | `($id:ident@$t:term) => throwError "unexpected occurrence of named pattern" diff --git a/stage0/src/Lean/Elab/InfoTree.lean b/stage0/src/Lean/Elab/InfoTree.lean index 96d214458b..c5445241ef 100644 --- a/stage0/src/Lean/Elab/InfoTree.lean +++ b/stage0/src/Lean/Elab/InfoTree.lean @@ -160,7 +160,7 @@ def TermInfo.format (ctx : ContextInfo) (info : TermInfo) : IO Format := do def CompletionInfo.format (ctx : ContextInfo) (info : CompletionInfo) : IO Format := match info with - | CompletionInfo.dot i .. => return f!"[.] {← i.format ctx}" + | CompletionInfo.dot i (expectedType? := expectedType?) .. => return f!"[.] {← i.format ctx} : {expectedType?}" | CompletionInfo.id stx lctx expectedType? => ctx.runMetaM lctx do return f!"[.] {stx} : {expectedType?} @ {formatStxRange ctx info.stx}" | _ => return f!"[.] {info.stx} @ {formatStxRange ctx info.stx}" diff --git a/stage0/src/Lean/Elab/Term.lean b/stage0/src/Lean/Elab/Term.lean index 148ca20e34..12c3849a68 100644 --- a/stage0/src/Lean/Elab/Term.lean +++ b/stage0/src/Lean/Elab/Term.lean @@ -1230,15 +1230,13 @@ private def elabOptLevel (stx : Syntax) : TermElabM Level := @[builtinTermElab «type»] def elabTypeStx : TermElab := fun stx _ => return mkSort (mkLevelSucc (← elabOptLevel stx[1])) -@[builtinTermElab «completion»] def elabCompletion : TermElab := fun stx expectedType? => do +@[builtinTermElab «pipeCompletion»] def elabPipeCompletion : TermElab := fun stx expectedType? => do let e ← elabTerm stx[0] none unless e.isSorry do + -- dbg_trace "completion {stx} : {expectedType?}" addDotCompletionInfo stx e expectedType? throwErrorAt stx[1] "invalid field notation, identifier or numeral expected" -@[builtinTermElab «pipeCompletion»] def elabPipeCompletion : TermElab := - elabCompletion - @[builtinTermElab «hole»] def elabHole : TermElab := fun stx expectedType? => do let mvar ← mkFreshExprMVar expectedType? registerMVarErrorHoleInfo mvar.mvarId! stx diff --git a/stage0/src/Lean/Parser/Module.lean b/stage0/src/Lean/Parser/Module.lean index 9af05b31f4..68bfa001e9 100644 --- a/stage0/src/Lean/Parser/Module.lean +++ b/stage0/src/Lean/Parser/Module.lean @@ -88,15 +88,11 @@ partial def parseCommand (inputCtx : InputContext) (pmctx : ParserModuleContext) | some errorMsg => -- advance at least one token to prevent infinite loops let pos := if s.pos == pos then consumeInput c s.pos else s.pos - if recovering then + let messages := if recovering && s.stxStack.isEmpty then messages else messages.add <| mkErrorMessage c s.pos (toString errorMsg) + if s.stxStack.isEmpty then parse { pos := pos, recovering := true } messages else - let msg := mkErrorMessage c s.pos (toString errorMsg) - let messages := messages.add msg - if s.stxStack.isEmpty then - parse { pos := pos, recovering := true } messages - else - (s.stxStack.back, { pos := pos, recovering := true }, messages) + (s.stxStack.back, { pos := pos, recovering := true }, messages) parse s messages -- only useful for testing since most Lean files cannot be parsed without elaboration diff --git a/stage0/src/Lean/Parser/Term.lean b/stage0/src/Lean/Parser/Term.lean index 25b283f8e3..d304617643 100644 --- a/stage0/src/Lean/Parser/Term.lean +++ b/stage0/src/Lean/Parser/Term.lean @@ -204,7 +204,6 @@ def argument := @[builtinTermParser] def app := trailing_parser:leadPrec:maxPrec many1 argument @[builtinTermParser] def proj := trailing_parser checkNoWsBefore >> "." >> checkNoWsBefore >> (fieldIdx <|> ident) -@[builtinTermParser] def completion := trailing_parser checkNoWsBefore >> "." @[builtinTermParser] def arrayRef := trailing_parser checkNoWsBefore >> "[" >> termParser >>"]" @[builtinTermParser] def arrow := trailing_parser checkPrec 25 >> unicodeSymbol " → " " -> " >> termParser 25 diff --git a/stage0/src/Lean/Server/Completion.lean b/stage0/src/Lean/Server/Completion.lean index 400c5d9764..e5b24ac926 100644 --- a/stage0/src/Lean/Server/Completion.lean +++ b/stage0/src/Lean/Server/Completion.lean @@ -196,8 +196,6 @@ private def dotCompletion (ctx : ContextInfo) (info : TermInfo) (expectedType? : | _ => if info.stx.isIdent then idCompletionCore ctx info.stx expectedType? - else if info.stx.getKind == ``Lean.Parser.Term.completion then - idCompletionCore ctx info.stx[0] expectedType? else failure @@ -212,7 +210,7 @@ private def optionCompletion (ctx : ContextInfo) : IO (Option CompletionList) := private def tacticCompletion (ctx : ContextInfo) : IO (Option CompletionList) := -- Just return the list of tactics for now. ctx.runMetaM {} do - let table := Parser.getCategory (Parser.parserExtension.getState (← getEnv)).categories `tactic |>. get!.tables.leadingTable + let table := Parser.getCategory (Parser.parserExtension.getState (← getEnv)).categories `tactic |>.get!.tables.leadingTable let items : Array CompletionItem := table.fold (init := #[]) fun items tk parser => -- TODO pretty print tactic syntax items.push { label := tk.toString, detail? := none, documentation? := none } @@ -249,4 +247,4 @@ where else best? -end Lean.Server.Completion \ No newline at end of file +end Lean.Server.Completion diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index bcf9991f03..b009a1d640 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -68,6 +68,8 @@ lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__1; uint8_t l_Lean_Expr_isProp(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__15; +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__2___boxed(lean_object**); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_toName_match__1(lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -434,6 +436,7 @@ lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___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*); lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___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_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__2___lambda__1___boxed(lean_object*, lean_object*); +uint8_t l_Lean_Syntax_isMissing(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_hasOptAutoParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_17219____closed__3; lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_throwLValError___spec__1(lean_object*); @@ -528,10 +531,11 @@ lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Ter lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice___closed__1; lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___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___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_9317_(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_9116_(lean_object*); lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_4_(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_propagateExpectedTypeFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__3___boxed(lean_object**); lean_object* l_Lean_Elab_Term_ElabAppArgs_main_match__1(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -673,6 +677,7 @@ lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_App_0__Lean_Elab_Te lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___spec__4(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___closed__2; lean_object* l_Lean_Elab_Term_ensureHasTypeAux(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___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x21(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLValsAux_loop_match__5(lean_object*); lean_object* l_Lean_Meta_processPostponed(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -712,6 +717,7 @@ lean_object* l_Lean_Exception_toMessageData(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent_match__1(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_addLValArg___closed__1; lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); +uint8_t l_Lean_Expr_isSorry(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId_toLVals(lean_object*, lean_object*, uint8_t); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_anyNamedArgDependsOnCurrent___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); @@ -21076,6 +21082,34 @@ lean_ctor_set(x_11, 1, x_9); return x_11; } } +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___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, uint8_t x_7, uint8_t x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +_start: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_19 = l_Lean_Syntax_getId(x_1); +x_20 = lean_erase_macro_scopes(x_19); +x_21 = l_Lean_Name_components(x_20); +lean_inc(x_2); +x_22 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__3(x_2, x_1, x_21); +x_23 = l_List_append___rarg(x_22, x_3); +x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn(x_2, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +return x_24; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___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, uint8_t x_7, uint8_t x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +_start: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_19 = l_Lean_Syntax_getId(x_1); +x_20 = lean_erase_macro_scopes(x_19); +x_21 = l_Lean_Name_components(x_20); +lean_inc(x_2); +x_22 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__4(x_2, x_1, x_21); +x_23 = l_List_append___rarg(x_22, x_3); +x_24 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn(x_2, x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +return x_24; +} +} static lean_object* _init_l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__1() { _start: { @@ -26069,3374 +26103,408 @@ lean_inc(x_1409); x_1411 = l_Lean_Syntax_isOfKind(x_1409, x_1410); if (x_1411 == 0) { -lean_object* x_1412; uint8_t x_1413; -x_1412 = l_Lean_identKind___closed__2; -lean_inc(x_1409); -x_1413 = l_Lean_Syntax_isOfKind(x_1409, x_1412); -if (x_1413 == 0) +lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; uint8_t x_1415; +x_1412 = lean_unsigned_to_nat(3u); +x_1413 = l_Lean_Syntax_getArg(x_1, x_1412); +x_1414 = l_Lean_nullKind___closed__2; +lean_inc(x_1413); +x_1415 = l_Lean_Syntax_isOfKind(x_1413, x_1414); +if (x_1415 == 0) { -uint8_t x_1414; uint8_t x_1415; +lean_object* x_1416; +lean_dec(x_1413); lean_dec(x_1409); lean_dec(x_1407); -x_1414 = l_List_isEmpty___rarg(x_2); -if (x_8 == 0) -{ -uint8_t x_1742; -x_1742 = 1; -x_1415 = x_1742; -goto block_1741; +x_1416 = lean_box(0); +x_17 = x_1416; +goto block_348; } else { -uint8_t x_1743; -x_1743 = 0; -x_1415 = x_1743; -goto block_1741; -} -block_1741: +lean_object* x_1417; lean_object* x_1418; uint8_t x_1419; +x_1417 = l_Lean_Syntax_getArgs(x_1413); +lean_dec(x_1413); +x_1418 = lean_array_get_size(x_1417); +lean_dec(x_1417); +x_1419 = lean_nat_dec_eq(x_1418, x_1406); +lean_dec(x_1418); +if (x_1419 == 0) { -if (x_1414 == 0) -{ -lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; lean_object* x_1453; lean_object* x_1454; uint8_t x_1476; lean_object* x_1477; -x_1416 = lean_box(0); -x_1417 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_16); -x_1418 = lean_ctor_get(x_1417, 0); -lean_inc(x_1418); -x_1419 = lean_ctor_get(x_1417, 1); -lean_inc(x_1419); -if (lean_is_exclusive(x_1417)) { - lean_ctor_release(x_1417, 0); - lean_ctor_release(x_1417, 1); - x_1420 = x_1417; -} else { - lean_dec_ref(x_1417); - x_1420 = lean_box(0); +lean_object* x_1420; +lean_dec(x_1409); +lean_dec(x_1407); +x_1420 = lean_box(0); +x_17 = x_1420; +goto block_348; } -x_1476 = 1; +else +{ +uint8_t x_1421; +x_1421 = l_Lean_Syntax_isMissing(x_1409); +if (x_1421 == 0) +{ +lean_object* x_1422; lean_object* x_1423; +lean_dec(x_1); +x_1422 = lean_box(0); +x_1423 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__2(x_1409, x_1407, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1422, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_1423; +} +else +{ +lean_object* x_1424; uint8_t x_1425; lean_object* x_1426; +x_1424 = lean_box(0); +x_1425 = 1; lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_1477 = l_Lean_Elab_Term_elabTerm(x_1, x_1416, x_1415, x_1476, x_10, x_11, x_12, x_13, x_14, x_15, x_1419); -if (lean_obj_tag(x_1477) == 0) +lean_inc(x_1407); +x_1426 = l_Lean_Elab_Term_elabTerm(x_1407, x_1424, x_1425, x_1425, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_1426) == 0) { -lean_object* x_1478; lean_object* x_1479; lean_object* x_1480; -x_1478 = lean_ctor_get(x_1477, 0); -lean_inc(x_1478); -x_1479 = lean_ctor_get(x_1477, 1); -lean_inc(x_1479); -lean_dec(x_1477); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); +lean_object* x_1427; lean_object* x_1428; uint8_t x_1429; +x_1427 = lean_ctor_get(x_1426, 0); +lean_inc(x_1427); +x_1428 = lean_ctor_get(x_1426, 1); +lean_inc(x_1428); +lean_dec(x_1426); +x_1429 = l_Lean_Expr_isSorry(x_1427); +if (x_1429 == 0) +{ +lean_object* x_1430; lean_object* x_1431; lean_object* x_1432; lean_object* x_1433; lean_inc(x_5); -x_1480 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_1478, x_2, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12, x_13, x_14, x_15, x_1479); -if (lean_obj_tag(x_1480) == 0) +x_1430 = l_Lean_Elab_Term_addDotCompletionInfo(x_1, x_1427, x_5, x_1424, x_10, x_11, x_12, x_13, x_14, x_15, x_1428); +x_1431 = lean_ctor_get(x_1430, 0); +lean_inc(x_1431); +x_1432 = lean_ctor_get(x_1430, 1); +lean_inc(x_1432); +lean_dec(x_1430); +x_1433 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__2(x_1409, x_1407, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1431, x_10, x_11, x_12, x_13, x_14, x_15, x_1432); +lean_dec(x_1431); +return x_1433; +} +else { -if (x_8 == 0) +lean_object* x_1434; lean_object* x_1435; +lean_dec(x_1427); +lean_dec(x_1); +x_1434 = lean_box(0); +x_1435 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__2(x_1409, x_1407, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1434, x_10, x_11, x_12, x_13, x_14, x_15, x_1428); +return x_1435; +} +} +else { -lean_object* x_1481; lean_object* x_1482; -lean_dec(x_1420); +uint8_t x_1436; +lean_dec(x_1409); +lean_dec(x_1407); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_5); -x_1481 = lean_ctor_get(x_1480, 0); -lean_inc(x_1481); -x_1482 = lean_ctor_get(x_1480, 1); -lean_inc(x_1482); -lean_dec(x_1480); -x_1453 = x_1481; -x_1454 = x_1482; -goto block_1475; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1436 = !lean_is_exclusive(x_1426); +if (x_1436 == 0) +{ +return x_1426; +} +else +{ +lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; +x_1437 = lean_ctor_get(x_1426, 0); +x_1438 = lean_ctor_get(x_1426, 1); +lean_inc(x_1438); +lean_inc(x_1437); +lean_dec(x_1426); +x_1439 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1439, 0, x_1437); +lean_ctor_set(x_1439, 1, x_1438); +return x_1439; +} +} +} +} +} +} +else +{ +lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; uint8_t x_1443; +x_1440 = lean_unsigned_to_nat(3u); +x_1441 = l_Lean_Syntax_getArg(x_1, x_1440); +x_1442 = l_Lean_nullKind___closed__2; +lean_inc(x_1441); +x_1443 = l_Lean_Syntax_isOfKind(x_1441, x_1442); +if (x_1443 == 0) +{ +lean_object* x_1444; +lean_dec(x_1441); +lean_dec(x_1409); +lean_dec(x_1407); +x_1444 = lean_box(0); +x_17 = x_1444; +goto block_348; +} +else +{ +lean_object* x_1445; lean_object* x_1446; uint8_t x_1447; +x_1445 = l_Lean_Syntax_getArgs(x_1441); +lean_dec(x_1441); +x_1446 = lean_array_get_size(x_1445); +lean_dec(x_1445); +x_1447 = lean_nat_dec_eq(x_1446, x_1406); +lean_dec(x_1446); +if (x_1447 == 0) +{ +lean_object* x_1448; +lean_dec(x_1409); +lean_dec(x_1407); +x_1448 = lean_box(0); +x_17 = x_1448; +goto block_348; +} +else +{ +lean_object* x_1449; lean_object* x_1450; +lean_dec(x_1); +x_1449 = l_Lean_fieldIdxKind; +x_1450 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_1449, x_1409); +if (lean_obj_tag(x_1450) == 0) +{ +lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; lean_object* x_1455; +x_1451 = l_instInhabitedNat; +x_1452 = l_Option_get_x21___rarg___closed__4; +x_1453 = lean_panic_fn(x_1451, x_1452); +x_1454 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1454, 0, x_1409); +lean_ctor_set(x_1454, 1, x_1453); +x_1455 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1455, 0, x_1454); +lean_ctor_set(x_1455, 1, x_2); +x_1 = x_1407; +x_2 = x_1455; +goto _start; +} +else +{ +lean_object* x_1457; lean_object* x_1458; lean_object* x_1459; +x_1457 = lean_ctor_get(x_1450, 0); +lean_inc(x_1457); +lean_dec(x_1450); +x_1458 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1458, 0, x_1409); +lean_ctor_set(x_1458, 1, x_1457); +x_1459 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1459, 0, x_1458); +lean_ctor_set(x_1459, 1, x_2); +x_1 = x_1407; +x_2 = x_1459; +goto _start; +} +} +} +} +} +} +else +{ +lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; lean_object* x_1464; lean_object* x_1465; uint8_t x_1466; +x_1461 = lean_unsigned_to_nat(0u); +x_1462 = l_Lean_Syntax_getArg(x_1, x_1461); +x_1463 = lean_unsigned_to_nat(2u); +x_1464 = l_Lean_Syntax_getArg(x_1, x_1463); +x_1465 = l_Lean_fieldIdxKind___closed__2; +lean_inc(x_1464); +x_1466 = l_Lean_Syntax_isOfKind(x_1464, x_1465); +if (x_1466 == 0) +{ +uint8_t x_1467; +x_1467 = l_Lean_Syntax_isMissing(x_1464); +if (x_1467 == 0) +{ +lean_object* x_1468; lean_object* x_1469; +lean_dec(x_1); +x_1468 = lean_box(0); +x_1469 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__3(x_1464, x_1462, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1468, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +return x_1469; +} +else +{ +lean_object* x_1470; uint8_t x_1471; lean_object* x_1472; +x_1470 = lean_box(0); +x_1471 = 1; +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_1462); +x_1472 = l_Lean_Elab_Term_elabTerm(x_1462, x_1470, x_1471, x_1471, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_1472) == 0) +{ +lean_object* x_1473; lean_object* x_1474; uint8_t x_1475; +x_1473 = lean_ctor_get(x_1472, 0); +lean_inc(x_1473); +x_1474 = lean_ctor_get(x_1472, 1); +lean_inc(x_1474); +lean_dec(x_1472); +x_1475 = l_Lean_Expr_isSorry(x_1473); +if (x_1475 == 0) +{ +lean_object* x_1476; lean_object* x_1477; lean_object* x_1478; lean_object* x_1479; +lean_inc(x_5); +x_1476 = l_Lean_Elab_Term_addDotCompletionInfo(x_1, x_1473, x_5, x_1470, x_10, x_11, x_12, x_13, x_14, x_15, x_1474); +x_1477 = lean_ctor_get(x_1476, 0); +lean_inc(x_1477); +x_1478 = lean_ctor_get(x_1476, 1); +lean_inc(x_1478); +lean_dec(x_1476); +x_1479 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__3(x_1464, x_1462, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1477, x_10, x_11, x_12, x_13, x_14, x_15, x_1478); +lean_dec(x_1477); +return x_1479; +} +else +{ +lean_object* x_1480; lean_object* x_1481; +lean_dec(x_1473); +lean_dec(x_1); +x_1480 = lean_box(0); +x_1481 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__3(x_1464, x_1462, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1480, x_10, x_11, x_12, x_13, x_14, x_15, x_1474); +return x_1481; +} +} +else +{ +uint8_t x_1482; +lean_dec(x_1464); +lean_dec(x_1462); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1482 = !lean_is_exclusive(x_1472); +if (x_1482 == 0) +{ +return x_1472; } else { lean_object* x_1483; lean_object* x_1484; lean_object* x_1485; -x_1483 = lean_ctor_get(x_1480, 0); -lean_inc(x_1483); -x_1484 = lean_ctor_get(x_1480, 1); +x_1483 = lean_ctor_get(x_1472, 0); +x_1484 = lean_ctor_get(x_1472, 1); lean_inc(x_1484); -lean_dec(x_1480); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_1485 = l_Lean_Elab_Term_ensureHasType(x_5, x_1483, x_1416, x_10, x_11, x_12, x_13, x_14, x_15, x_1484); -if (lean_obj_tag(x_1485) == 0) +lean_inc(x_1483); +lean_dec(x_1472); +x_1485 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1485, 0, x_1483); +lean_ctor_set(x_1485, 1, x_1484); +return x_1485; +} +} +} +} +else { lean_object* x_1486; lean_object* x_1487; -lean_dec(x_1420); -x_1486 = lean_ctor_get(x_1485, 0); -lean_inc(x_1486); -x_1487 = lean_ctor_get(x_1485, 1); -lean_inc(x_1487); -lean_dec(x_1485); -x_1453 = x_1486; -x_1454 = x_1487; -goto block_1475; +lean_dec(x_1); +x_1486 = l_Lean_fieldIdxKind; +x_1487 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_1486, x_1464); +if (lean_obj_tag(x_1487) == 0) +{ +lean_object* x_1488; lean_object* x_1489; lean_object* x_1490; lean_object* x_1491; lean_object* x_1492; +x_1488 = l_instInhabitedNat; +x_1489 = l_Option_get_x21___rarg___closed__4; +x_1490 = lean_panic_fn(x_1488, x_1489); +x_1491 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1491, 0, x_1464); +lean_ctor_set(x_1491, 1, x_1490); +x_1492 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1492, 0, x_1491); +lean_ctor_set(x_1492, 1, x_2); +x_1 = x_1462; +x_2 = x_1492; +goto _start; } else { -lean_object* x_1488; lean_object* x_1489; -x_1488 = lean_ctor_get(x_1485, 0); -lean_inc(x_1488); -x_1489 = lean_ctor_get(x_1485, 1); -lean_inc(x_1489); -lean_dec(x_1485); -x_1421 = x_1488; -x_1422 = x_1489; -goto block_1452; +lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; +x_1494 = lean_ctor_get(x_1487, 0); +lean_inc(x_1494); +lean_dec(x_1487); +x_1495 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1495, 0, x_1464); +lean_ctor_set(x_1495, 1, x_1494); +x_1496 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1496, 0, x_1495); +lean_ctor_set(x_1496, 1, x_2); +x_1 = x_1462; +x_2 = x_1496; +goto _start; +} } } } else { -lean_object* x_1490; lean_object* x_1491; -lean_dec(x_5); -x_1490 = lean_ctor_get(x_1480, 0); -lean_inc(x_1490); -x_1491 = lean_ctor_get(x_1480, 1); -lean_inc(x_1491); -lean_dec(x_1480); -x_1421 = x_1490; -x_1422 = x_1491; -goto block_1452; -} -} -else +lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; uint8_t x_1501; +x_1498 = l_Lean_Syntax_getArgs(x_1); +lean_dec(x_1); +x_1499 = lean_array_get_size(x_1498); +x_1500 = lean_unsigned_to_nat(0u); +x_1501 = lean_nat_dec_lt(x_1500, x_1499); +if (x_1501 == 0) { -lean_object* x_1492; lean_object* x_1493; +lean_object* x_1502; +lean_dec(x_1499); +lean_dec(x_1498); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1492 = lean_ctor_get(x_1477, 0); -lean_inc(x_1492); -x_1493 = lean_ctor_get(x_1477, 1); -lean_inc(x_1493); -lean_dec(x_1477); -x_1421 = x_1492; -x_1422 = x_1493; -goto block_1452; -} -block_1452: -{ -if (lean_obj_tag(x_1421) == 0) -{ -lean_object* x_1423; uint8_t x_1424; -lean_dec(x_1420); -x_1423 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1422); -x_1424 = !lean_is_exclusive(x_1423); -if (x_1424 == 0) -{ -lean_object* x_1425; lean_object* x_1426; lean_object* x_1427; uint8_t x_1428; -x_1425 = lean_ctor_get(x_1423, 0); -x_1426 = lean_ctor_get(x_1423, 1); -x_1427 = l_Lean_Elab_Term_SavedState_restore(x_1418, x_10, x_11, x_12, x_13, x_14, x_15, x_1426); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1428 = !lean_is_exclusive(x_1427); -if (x_1428 == 0) -{ -lean_object* x_1429; lean_object* x_1430; lean_object* x_1431; -x_1429 = lean_ctor_get(x_1427, 1); -x_1430 = lean_ctor_get(x_1427, 0); -lean_dec(x_1430); -lean_ctor_set_tag(x_1427, 1); -lean_ctor_set(x_1427, 1, x_1425); -lean_ctor_set(x_1427, 0, x_1421); -x_1431 = lean_array_push(x_9, x_1427); -lean_ctor_set(x_1423, 1, x_1429); -lean_ctor_set(x_1423, 0, x_1431); -return x_1423; +x_1502 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1502, 0, x_9); +lean_ctor_set(x_1502, 1, x_16); +return x_1502; } else { -lean_object* x_1432; lean_object* x_1433; lean_object* x_1434; -x_1432 = lean_ctor_get(x_1427, 1); -lean_inc(x_1432); -lean_dec(x_1427); -x_1433 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1433, 0, x_1421); -lean_ctor_set(x_1433, 1, x_1425); -x_1434 = lean_array_push(x_9, x_1433); -lean_ctor_set(x_1423, 1, x_1432); -lean_ctor_set(x_1423, 0, x_1434); -return x_1423; -} -} -else -{ -lean_object* x_1435; lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; -x_1435 = lean_ctor_get(x_1423, 0); -x_1436 = lean_ctor_get(x_1423, 1); -lean_inc(x_1436); -lean_inc(x_1435); -lean_dec(x_1423); -x_1437 = l_Lean_Elab_Term_SavedState_restore(x_1418, x_10, x_11, x_12, x_13, x_14, x_15, x_1436); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1438 = lean_ctor_get(x_1437, 1); -lean_inc(x_1438); -if (lean_is_exclusive(x_1437)) { - lean_ctor_release(x_1437, 0); - lean_ctor_release(x_1437, 1); - x_1439 = x_1437; -} else { - lean_dec_ref(x_1437); - x_1439 = lean_box(0); -} -if (lean_is_scalar(x_1439)) { - x_1440 = lean_alloc_ctor(1, 2, 0); -} else { - x_1440 = x_1439; - lean_ctor_set_tag(x_1440, 1); -} -lean_ctor_set(x_1440, 0, x_1421); -lean_ctor_set(x_1440, 1, x_1435); -x_1441 = lean_array_push(x_9, x_1440); -x_1442 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1442, 0, x_1441); -lean_ctor_set(x_1442, 1, x_1438); -return x_1442; -} -} -else -{ -lean_object* x_1443; lean_object* x_1444; uint8_t x_1445; -lean_dec(x_9); -x_1443 = lean_ctor_get(x_1421, 0); -lean_inc(x_1443); -x_1444 = l_Lean_Elab_postponeExceptionId; -x_1445 = lean_nat_dec_eq(x_1443, x_1444); -lean_dec(x_1443); -if (x_1445 == 0) -{ -lean_object* x_1446; -lean_dec(x_1418); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -if (lean_is_scalar(x_1420)) { - x_1446 = lean_alloc_ctor(1, 2, 0); -} else { - x_1446 = x_1420; - lean_ctor_set_tag(x_1446, 1); -} -lean_ctor_set(x_1446, 0, x_1421); -lean_ctor_set(x_1446, 1, x_1422); -return x_1446; -} -else -{ -lean_object* x_1447; uint8_t x_1448; -lean_dec(x_1420); -x_1447 = l_Lean_Elab_Term_SavedState_restore(x_1418, x_10, x_11, x_12, x_13, x_14, x_15, x_1422); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1448 = !lean_is_exclusive(x_1447); -if (x_1448 == 0) -{ -lean_object* x_1449; -x_1449 = lean_ctor_get(x_1447, 0); -lean_dec(x_1449); -lean_ctor_set_tag(x_1447, 1); -lean_ctor_set(x_1447, 0, x_1421); -return x_1447; -} -else -{ -lean_object* x_1450; lean_object* x_1451; -x_1450 = lean_ctor_get(x_1447, 1); -lean_inc(x_1450); -lean_dec(x_1447); -x_1451 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1451, 0, x_1421); -lean_ctor_set(x_1451, 1, x_1450); -return x_1451; -} -} -} -} -block_1475: -{ -lean_object* x_1455; uint8_t x_1456; -x_1455 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1454); -x_1456 = !lean_is_exclusive(x_1455); -if (x_1456 == 0) -{ -lean_object* x_1457; lean_object* x_1458; lean_object* x_1459; uint8_t x_1460; -x_1457 = lean_ctor_get(x_1455, 0); -x_1458 = lean_ctor_get(x_1455, 1); -x_1459 = l_Lean_Elab_Term_SavedState_restore(x_1418, x_10, x_11, x_12, x_13, x_14, x_15, x_1458); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1460 = !lean_is_exclusive(x_1459); -if (x_1460 == 0) -{ -lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; -x_1461 = lean_ctor_get(x_1459, 1); -x_1462 = lean_ctor_get(x_1459, 0); -lean_dec(x_1462); -lean_ctor_set(x_1459, 1, x_1457); -lean_ctor_set(x_1459, 0, x_1453); -x_1463 = lean_array_push(x_9, x_1459); -lean_ctor_set(x_1455, 1, x_1461); -lean_ctor_set(x_1455, 0, x_1463); -return x_1455; -} -else -{ -lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; -x_1464 = lean_ctor_get(x_1459, 1); -lean_inc(x_1464); -lean_dec(x_1459); -x_1465 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1465, 0, x_1453); -lean_ctor_set(x_1465, 1, x_1457); -x_1466 = lean_array_push(x_9, x_1465); -lean_ctor_set(x_1455, 1, x_1464); -lean_ctor_set(x_1455, 0, x_1466); -return x_1455; -} -} -else -{ -lean_object* x_1467; lean_object* x_1468; lean_object* x_1469; lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; lean_object* x_1473; lean_object* x_1474; -x_1467 = lean_ctor_get(x_1455, 0); -x_1468 = lean_ctor_get(x_1455, 1); -lean_inc(x_1468); -lean_inc(x_1467); -lean_dec(x_1455); -x_1469 = l_Lean_Elab_Term_SavedState_restore(x_1418, x_10, x_11, x_12, x_13, x_14, x_15, x_1468); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1470 = lean_ctor_get(x_1469, 1); -lean_inc(x_1470); -if (lean_is_exclusive(x_1469)) { - lean_ctor_release(x_1469, 0); - lean_ctor_release(x_1469, 1); - x_1471 = x_1469; -} else { - lean_dec_ref(x_1469); - x_1471 = lean_box(0); -} -if (lean_is_scalar(x_1471)) { - x_1472 = lean_alloc_ctor(0, 2, 0); -} else { - x_1472 = x_1471; -} -lean_ctor_set(x_1472, 0, x_1453); -lean_ctor_set(x_1472, 1, x_1467); -x_1473 = lean_array_push(x_9, x_1472); -x_1474 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1474, 0, x_1473); -lean_ctor_set(x_1474, 1, x_1470); -return x_1474; -} -} -} -else -{ -uint8_t x_1494; -x_1494 = l_Array_isEmpty___rarg(x_3); -if (x_1494 == 0) -{ -lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; lean_object* x_1501; lean_object* x_1532; lean_object* x_1533; uint8_t x_1555; lean_object* x_1556; -x_1495 = lean_box(0); -x_1496 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_16); -x_1497 = lean_ctor_get(x_1496, 0); -lean_inc(x_1497); -x_1498 = lean_ctor_get(x_1496, 1); -lean_inc(x_1498); -if (lean_is_exclusive(x_1496)) { - lean_ctor_release(x_1496, 0); - lean_ctor_release(x_1496, 1); - x_1499 = x_1496; -} else { - lean_dec_ref(x_1496); - x_1499 = lean_box(0); -} -x_1555 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_1556 = l_Lean_Elab_Term_elabTerm(x_1, x_1495, x_1415, x_1555, x_10, x_11, x_12, x_13, x_14, x_15, x_1498); -if (lean_obj_tag(x_1556) == 0) -{ -lean_object* x_1557; lean_object* x_1558; lean_object* x_1559; -x_1557 = lean_ctor_get(x_1556, 0); -lean_inc(x_1557); -x_1558 = lean_ctor_get(x_1556, 1); -lean_inc(x_1558); -lean_dec(x_1556); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_5); -x_1559 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_1557, x_2, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12, x_13, x_14, x_15, x_1558); -if (lean_obj_tag(x_1559) == 0) -{ -if (x_8 == 0) -{ -lean_object* x_1560; lean_object* x_1561; -lean_dec(x_1499); -lean_dec(x_5); -x_1560 = lean_ctor_get(x_1559, 0); -lean_inc(x_1560); -x_1561 = lean_ctor_get(x_1559, 1); -lean_inc(x_1561); -lean_dec(x_1559); -x_1532 = x_1560; -x_1533 = x_1561; -goto block_1554; -} -else -{ -lean_object* x_1562; lean_object* x_1563; lean_object* x_1564; -x_1562 = lean_ctor_get(x_1559, 0); -lean_inc(x_1562); -x_1563 = lean_ctor_get(x_1559, 1); -lean_inc(x_1563); -lean_dec(x_1559); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_1564 = l_Lean_Elab_Term_ensureHasType(x_5, x_1562, x_1495, x_10, x_11, x_12, x_13, x_14, x_15, x_1563); -if (lean_obj_tag(x_1564) == 0) -{ -lean_object* x_1565; lean_object* x_1566; -lean_dec(x_1499); -x_1565 = lean_ctor_get(x_1564, 0); -lean_inc(x_1565); -x_1566 = lean_ctor_get(x_1564, 1); -lean_inc(x_1566); -lean_dec(x_1564); -x_1532 = x_1565; -x_1533 = x_1566; -goto block_1554; -} -else -{ -lean_object* x_1567; lean_object* x_1568; -x_1567 = lean_ctor_get(x_1564, 0); -lean_inc(x_1567); -x_1568 = lean_ctor_get(x_1564, 1); -lean_inc(x_1568); -lean_dec(x_1564); -x_1500 = x_1567; -x_1501 = x_1568; -goto block_1531; -} -} -} -else -{ -lean_object* x_1569; lean_object* x_1570; -lean_dec(x_5); -x_1569 = lean_ctor_get(x_1559, 0); -lean_inc(x_1569); -x_1570 = lean_ctor_get(x_1559, 1); -lean_inc(x_1570); -lean_dec(x_1559); -x_1500 = x_1569; -x_1501 = x_1570; -goto block_1531; -} -} -else -{ -lean_object* x_1571; lean_object* x_1572; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1571 = lean_ctor_get(x_1556, 0); -lean_inc(x_1571); -x_1572 = lean_ctor_get(x_1556, 1); -lean_inc(x_1572); -lean_dec(x_1556); -x_1500 = x_1571; -x_1501 = x_1572; -goto block_1531; -} -block_1531: -{ -if (lean_obj_tag(x_1500) == 0) -{ -lean_object* x_1502; uint8_t x_1503; -lean_dec(x_1499); -x_1502 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1501); -x_1503 = !lean_is_exclusive(x_1502); +uint8_t x_1503; +x_1503 = !lean_is_exclusive(x_10); if (x_1503 == 0) { -lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; uint8_t x_1507; -x_1504 = lean_ctor_get(x_1502, 0); -x_1505 = lean_ctor_get(x_1502, 1); -x_1506 = l_Lean_Elab_Term_SavedState_restore(x_1497, x_10, x_11, x_12, x_13, x_14, x_15, x_1505); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); +uint8_t x_1504; uint8_t x_1505; +x_1504 = 0; +lean_ctor_set_uint8(x_10, sizeof(void*)*8 + 1, x_1504); +x_1505 = lean_nat_dec_le(x_1499, x_1499); +if (x_1505 == 0) +{ +lean_object* x_1506; lean_dec(x_10); -x_1507 = !lean_is_exclusive(x_1506); -if (x_1507 == 0) -{ -lean_object* x_1508; lean_object* x_1509; lean_object* x_1510; -x_1508 = lean_ctor_get(x_1506, 1); -x_1509 = lean_ctor_get(x_1506, 0); -lean_dec(x_1509); -lean_ctor_set_tag(x_1506, 1); -lean_ctor_set(x_1506, 1, x_1504); -lean_ctor_set(x_1506, 0, x_1500); -x_1510 = lean_array_push(x_9, x_1506); -lean_ctor_set(x_1502, 1, x_1508); -lean_ctor_set(x_1502, 0, x_1510); -return x_1502; -} -else -{ -lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; -x_1511 = lean_ctor_get(x_1506, 1); -lean_inc(x_1511); -lean_dec(x_1506); -x_1512 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1512, 0, x_1500); -lean_ctor_set(x_1512, 1, x_1504); -x_1513 = lean_array_push(x_9, x_1512); -lean_ctor_set(x_1502, 1, x_1511); -lean_ctor_set(x_1502, 0, x_1513); -return x_1502; -} -} -else -{ -lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; lean_object* x_1521; -x_1514 = lean_ctor_get(x_1502, 0); -x_1515 = lean_ctor_get(x_1502, 1); -lean_inc(x_1515); -lean_inc(x_1514); -lean_dec(x_1502); -x_1516 = l_Lean_Elab_Term_SavedState_restore(x_1497, x_10, x_11, x_12, x_13, x_14, x_15, x_1515); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1517 = lean_ctor_get(x_1516, 1); -lean_inc(x_1517); -if (lean_is_exclusive(x_1516)) { - lean_ctor_release(x_1516, 0); - lean_ctor_release(x_1516, 1); - x_1518 = x_1516; -} else { - lean_dec_ref(x_1516); - x_1518 = lean_box(0); -} -if (lean_is_scalar(x_1518)) { - x_1519 = lean_alloc_ctor(1, 2, 0); -} else { - x_1519 = x_1518; - lean_ctor_set_tag(x_1519, 1); -} -lean_ctor_set(x_1519, 0, x_1500); -lean_ctor_set(x_1519, 1, x_1514); -x_1520 = lean_array_push(x_9, x_1519); -x_1521 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1521, 0, x_1520); -lean_ctor_set(x_1521, 1, x_1517); -return x_1521; -} -} -else -{ -lean_object* x_1522; lean_object* x_1523; uint8_t x_1524; -lean_dec(x_9); -x_1522 = lean_ctor_get(x_1500, 0); -lean_inc(x_1522); -x_1523 = l_Lean_Elab_postponeExceptionId; -x_1524 = lean_nat_dec_eq(x_1522, x_1523); -lean_dec(x_1522); -if (x_1524 == 0) -{ -lean_object* x_1525; -lean_dec(x_1497); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -if (lean_is_scalar(x_1499)) { - x_1525 = lean_alloc_ctor(1, 2, 0); -} else { - x_1525 = x_1499; - lean_ctor_set_tag(x_1525, 1); -} -lean_ctor_set(x_1525, 0, x_1500); -lean_ctor_set(x_1525, 1, x_1501); -return x_1525; -} -else -{ -lean_object* x_1526; uint8_t x_1527; lean_dec(x_1499); -x_1526 = l_Lean_Elab_Term_SavedState_restore(x_1497, x_10, x_11, x_12, x_13, x_14, x_15, x_1501); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1527 = !lean_is_exclusive(x_1526); -if (x_1527 == 0) -{ -lean_object* x_1528; -x_1528 = lean_ctor_get(x_1526, 0); -lean_dec(x_1528); -lean_ctor_set_tag(x_1526, 1); -lean_ctor_set(x_1526, 0, x_1500); -return x_1526; -} -else -{ -lean_object* x_1529; lean_object* x_1530; -x_1529 = lean_ctor_get(x_1526, 1); -lean_inc(x_1529); -lean_dec(x_1526); -x_1530 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1530, 0, x_1500); -lean_ctor_set(x_1530, 1, x_1529); -return x_1530; -} -} -} -} -block_1554: -{ -lean_object* x_1534; uint8_t x_1535; -x_1534 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1533); -x_1535 = !lean_is_exclusive(x_1534); -if (x_1535 == 0) -{ -lean_object* x_1536; lean_object* x_1537; lean_object* x_1538; uint8_t x_1539; -x_1536 = lean_ctor_get(x_1534, 0); -x_1537 = lean_ctor_get(x_1534, 1); -x_1538 = l_Lean_Elab_Term_SavedState_restore(x_1497, x_10, x_11, x_12, x_13, x_14, x_15, x_1537); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1539 = !lean_is_exclusive(x_1538); -if (x_1539 == 0) -{ -lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; -x_1540 = lean_ctor_get(x_1538, 1); -x_1541 = lean_ctor_get(x_1538, 0); -lean_dec(x_1541); -lean_ctor_set(x_1538, 1, x_1536); -lean_ctor_set(x_1538, 0, x_1532); -x_1542 = lean_array_push(x_9, x_1538); -lean_ctor_set(x_1534, 1, x_1540); -lean_ctor_set(x_1534, 0, x_1542); -return x_1534; -} -else -{ -lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; -x_1543 = lean_ctor_get(x_1538, 1); -lean_inc(x_1543); -lean_dec(x_1538); -x_1544 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1544, 0, x_1532); -lean_ctor_set(x_1544, 1, x_1536); -x_1545 = lean_array_push(x_9, x_1544); -lean_ctor_set(x_1534, 1, x_1543); -lean_ctor_set(x_1534, 0, x_1545); -return x_1534; -} -} -else -{ -lean_object* x_1546; lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; lean_object* x_1550; lean_object* x_1551; lean_object* x_1552; lean_object* x_1553; -x_1546 = lean_ctor_get(x_1534, 0); -x_1547 = lean_ctor_get(x_1534, 1); -lean_inc(x_1547); -lean_inc(x_1546); -lean_dec(x_1534); -x_1548 = l_Lean_Elab_Term_SavedState_restore(x_1497, x_10, x_11, x_12, x_13, x_14, x_15, x_1547); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1549 = lean_ctor_get(x_1548, 1); -lean_inc(x_1549); -if (lean_is_exclusive(x_1548)) { - lean_ctor_release(x_1548, 0); - lean_ctor_release(x_1548, 1); - x_1550 = x_1548; -} else { - lean_dec_ref(x_1548); - x_1550 = lean_box(0); -} -if (lean_is_scalar(x_1550)) { - x_1551 = lean_alloc_ctor(0, 2, 0); -} else { - x_1551 = x_1550; -} -lean_ctor_set(x_1551, 0, x_1532); -lean_ctor_set(x_1551, 1, x_1546); -x_1552 = lean_array_push(x_9, x_1551); -x_1553 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1553, 0, x_1552); -lean_ctor_set(x_1553, 1, x_1549); -return x_1553; -} -} -} -else -{ -uint8_t x_1573; -x_1573 = l_Array_isEmpty___rarg(x_4); -if (x_1573 == 0) -{ -lean_object* x_1574; lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; lean_object* x_1578; lean_object* x_1579; lean_object* x_1580; lean_object* x_1611; lean_object* x_1612; uint8_t x_1634; lean_object* x_1635; -x_1574 = lean_box(0); -x_1575 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_16); -x_1576 = lean_ctor_get(x_1575, 0); -lean_inc(x_1576); -x_1577 = lean_ctor_get(x_1575, 1); -lean_inc(x_1577); -if (lean_is_exclusive(x_1575)) { - lean_ctor_release(x_1575, 0); - lean_ctor_release(x_1575, 1); - x_1578 = x_1575; -} else { - lean_dec_ref(x_1575); - x_1578 = lean_box(0); -} -x_1634 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_1635 = l_Lean_Elab_Term_elabTerm(x_1, x_1574, x_1415, x_1634, x_10, x_11, x_12, x_13, x_14, x_15, x_1577); -if (lean_obj_tag(x_1635) == 0) -{ -lean_object* x_1636; lean_object* x_1637; lean_object* x_1638; -x_1636 = lean_ctor_get(x_1635, 0); -lean_inc(x_1636); -x_1637 = lean_ctor_get(x_1635, 1); -lean_inc(x_1637); -lean_dec(x_1635); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_5); -x_1638 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_1636, x_2, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12, x_13, x_14, x_15, x_1637); -if (lean_obj_tag(x_1638) == 0) -{ -if (x_8 == 0) -{ -lean_object* x_1639; lean_object* x_1640; -lean_dec(x_1578); -lean_dec(x_5); -x_1639 = lean_ctor_get(x_1638, 0); -lean_inc(x_1639); -x_1640 = lean_ctor_get(x_1638, 1); -lean_inc(x_1640); -lean_dec(x_1638); -x_1611 = x_1639; -x_1612 = x_1640; -goto block_1633; -} -else -{ -lean_object* x_1641; lean_object* x_1642; lean_object* x_1643; -x_1641 = lean_ctor_get(x_1638, 0); -lean_inc(x_1641); -x_1642 = lean_ctor_get(x_1638, 1); -lean_inc(x_1642); -lean_dec(x_1638); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_1643 = l_Lean_Elab_Term_ensureHasType(x_5, x_1641, x_1574, x_10, x_11, x_12, x_13, x_14, x_15, x_1642); -if (lean_obj_tag(x_1643) == 0) -{ -lean_object* x_1644; lean_object* x_1645; -lean_dec(x_1578); -x_1644 = lean_ctor_get(x_1643, 0); -lean_inc(x_1644); -x_1645 = lean_ctor_get(x_1643, 1); -lean_inc(x_1645); -lean_dec(x_1643); -x_1611 = x_1644; -x_1612 = x_1645; -goto block_1633; -} -else -{ -lean_object* x_1646; lean_object* x_1647; -x_1646 = lean_ctor_get(x_1643, 0); -lean_inc(x_1646); -x_1647 = lean_ctor_get(x_1643, 1); -lean_inc(x_1647); -lean_dec(x_1643); -x_1579 = x_1646; -x_1580 = x_1647; -goto block_1610; -} -} -} -else -{ -lean_object* x_1648; lean_object* x_1649; -lean_dec(x_5); -x_1648 = lean_ctor_get(x_1638, 0); -lean_inc(x_1648); -x_1649 = lean_ctor_get(x_1638, 1); -lean_inc(x_1649); -lean_dec(x_1638); -x_1579 = x_1648; -x_1580 = x_1649; -goto block_1610; -} -} -else -{ -lean_object* x_1650; lean_object* x_1651; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1650 = lean_ctor_get(x_1635, 0); -lean_inc(x_1650); -x_1651 = lean_ctor_get(x_1635, 1); -lean_inc(x_1651); -lean_dec(x_1635); -x_1579 = x_1650; -x_1580 = x_1651; -goto block_1610; -} -block_1610: -{ -if (lean_obj_tag(x_1579) == 0) -{ -lean_object* x_1581; uint8_t x_1582; -lean_dec(x_1578); -x_1581 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1580); -x_1582 = !lean_is_exclusive(x_1581); -if (x_1582 == 0) -{ -lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; uint8_t x_1586; -x_1583 = lean_ctor_get(x_1581, 0); -x_1584 = lean_ctor_get(x_1581, 1); -x_1585 = l_Lean_Elab_Term_SavedState_restore(x_1576, x_10, x_11, x_12, x_13, x_14, x_15, x_1584); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1586 = !lean_is_exclusive(x_1585); -if (x_1586 == 0) -{ -lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; -x_1587 = lean_ctor_get(x_1585, 1); -x_1588 = lean_ctor_get(x_1585, 0); -lean_dec(x_1588); -lean_ctor_set_tag(x_1585, 1); -lean_ctor_set(x_1585, 1, x_1583); -lean_ctor_set(x_1585, 0, x_1579); -x_1589 = lean_array_push(x_9, x_1585); -lean_ctor_set(x_1581, 1, x_1587); -lean_ctor_set(x_1581, 0, x_1589); -return x_1581; -} -else -{ -lean_object* x_1590; lean_object* x_1591; lean_object* x_1592; -x_1590 = lean_ctor_get(x_1585, 1); -lean_inc(x_1590); -lean_dec(x_1585); -x_1591 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1591, 0, x_1579); -lean_ctor_set(x_1591, 1, x_1583); -x_1592 = lean_array_push(x_9, x_1591); -lean_ctor_set(x_1581, 1, x_1590); -lean_ctor_set(x_1581, 0, x_1592); -return x_1581; -} -} -else -{ -lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; lean_object* x_1596; lean_object* x_1597; lean_object* x_1598; lean_object* x_1599; lean_object* x_1600; -x_1593 = lean_ctor_get(x_1581, 0); -x_1594 = lean_ctor_get(x_1581, 1); -lean_inc(x_1594); -lean_inc(x_1593); -lean_dec(x_1581); -x_1595 = l_Lean_Elab_Term_SavedState_restore(x_1576, x_10, x_11, x_12, x_13, x_14, x_15, x_1594); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1596 = lean_ctor_get(x_1595, 1); -lean_inc(x_1596); -if (lean_is_exclusive(x_1595)) { - lean_ctor_release(x_1595, 0); - lean_ctor_release(x_1595, 1); - x_1597 = x_1595; -} else { - lean_dec_ref(x_1595); - x_1597 = lean_box(0); -} -if (lean_is_scalar(x_1597)) { - x_1598 = lean_alloc_ctor(1, 2, 0); -} else { - x_1598 = x_1597; - lean_ctor_set_tag(x_1598, 1); -} -lean_ctor_set(x_1598, 0, x_1579); -lean_ctor_set(x_1598, 1, x_1593); -x_1599 = lean_array_push(x_9, x_1598); -x_1600 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1600, 0, x_1599); -lean_ctor_set(x_1600, 1, x_1596); -return x_1600; -} -} -else -{ -lean_object* x_1601; lean_object* x_1602; uint8_t x_1603; -lean_dec(x_9); -x_1601 = lean_ctor_get(x_1579, 0); -lean_inc(x_1601); -x_1602 = l_Lean_Elab_postponeExceptionId; -x_1603 = lean_nat_dec_eq(x_1601, x_1602); -lean_dec(x_1601); -if (x_1603 == 0) -{ -lean_object* x_1604; -lean_dec(x_1576); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -if (lean_is_scalar(x_1578)) { - x_1604 = lean_alloc_ctor(1, 2, 0); -} else { - x_1604 = x_1578; - lean_ctor_set_tag(x_1604, 1); -} -lean_ctor_set(x_1604, 0, x_1579); -lean_ctor_set(x_1604, 1, x_1580); -return x_1604; -} -else -{ -lean_object* x_1605; uint8_t x_1606; -lean_dec(x_1578); -x_1605 = l_Lean_Elab_Term_SavedState_restore(x_1576, x_10, x_11, x_12, x_13, x_14, x_15, x_1580); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1606 = !lean_is_exclusive(x_1605); -if (x_1606 == 0) -{ -lean_object* x_1607; -x_1607 = lean_ctor_get(x_1605, 0); -lean_dec(x_1607); -lean_ctor_set_tag(x_1605, 1); -lean_ctor_set(x_1605, 0, x_1579); -return x_1605; -} -else -{ -lean_object* x_1608; lean_object* x_1609; -x_1608 = lean_ctor_get(x_1605, 1); -lean_inc(x_1608); -lean_dec(x_1605); -x_1609 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1609, 0, x_1579); -lean_ctor_set(x_1609, 1, x_1608); -return x_1609; -} -} -} -} -block_1633: -{ -lean_object* x_1613; uint8_t x_1614; -x_1613 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1612); -x_1614 = !lean_is_exclusive(x_1613); -if (x_1614 == 0) -{ -lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; uint8_t x_1618; -x_1615 = lean_ctor_get(x_1613, 0); -x_1616 = lean_ctor_get(x_1613, 1); -x_1617 = l_Lean_Elab_Term_SavedState_restore(x_1576, x_10, x_11, x_12, x_13, x_14, x_15, x_1616); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1618 = !lean_is_exclusive(x_1617); -if (x_1618 == 0) -{ -lean_object* x_1619; lean_object* x_1620; lean_object* x_1621; -x_1619 = lean_ctor_get(x_1617, 1); -x_1620 = lean_ctor_get(x_1617, 0); -lean_dec(x_1620); -lean_ctor_set(x_1617, 1, x_1615); -lean_ctor_set(x_1617, 0, x_1611); -x_1621 = lean_array_push(x_9, x_1617); -lean_ctor_set(x_1613, 1, x_1619); -lean_ctor_set(x_1613, 0, x_1621); -return x_1613; -} -else -{ -lean_object* x_1622; lean_object* x_1623; lean_object* x_1624; -x_1622 = lean_ctor_get(x_1617, 1); -lean_inc(x_1622); -lean_dec(x_1617); -x_1623 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1623, 0, x_1611); -lean_ctor_set(x_1623, 1, x_1615); -x_1624 = lean_array_push(x_9, x_1623); -lean_ctor_set(x_1613, 1, x_1622); -lean_ctor_set(x_1613, 0, x_1624); -return x_1613; -} -} -else -{ -lean_object* x_1625; lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; lean_object* x_1629; lean_object* x_1630; lean_object* x_1631; lean_object* x_1632; -x_1625 = lean_ctor_get(x_1613, 0); -x_1626 = lean_ctor_get(x_1613, 1); -lean_inc(x_1626); -lean_inc(x_1625); -lean_dec(x_1613); -x_1627 = l_Lean_Elab_Term_SavedState_restore(x_1576, x_10, x_11, x_12, x_13, x_14, x_15, x_1626); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1628 = lean_ctor_get(x_1627, 1); -lean_inc(x_1628); -if (lean_is_exclusive(x_1627)) { - lean_ctor_release(x_1627, 0); - lean_ctor_release(x_1627, 1); - x_1629 = x_1627; -} else { - lean_dec_ref(x_1627); - x_1629 = lean_box(0); -} -if (lean_is_scalar(x_1629)) { - x_1630 = lean_alloc_ctor(0, 2, 0); -} else { - x_1630 = x_1629; -} -lean_ctor_set(x_1630, 0, x_1611); -lean_ctor_set(x_1630, 1, x_1625); -x_1631 = lean_array_push(x_9, x_1630); -x_1632 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1632, 0, x_1631); -lean_ctor_set(x_1632, 1, x_1628); -return x_1632; -} -} -} -else -{ -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -if (x_8 == 0) -{ -lean_object* x_1652; lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; lean_object* x_1656; lean_object* x_1657; uint8_t x_1679; lean_object* x_1680; -x_1652 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_16); -x_1653 = lean_ctor_get(x_1652, 0); -lean_inc(x_1653); -x_1654 = lean_ctor_get(x_1652, 1); -lean_inc(x_1654); -if (lean_is_exclusive(x_1652)) { - lean_ctor_release(x_1652, 0); - lean_ctor_release(x_1652, 1); - x_1655 = x_1652; -} else { - lean_dec_ref(x_1652); - x_1655 = lean_box(0); -} -x_1679 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_1680 = l_Lean_Elab_Term_elabTerm(x_1, x_5, x_1679, x_1679, x_10, x_11, x_12, x_13, x_14, x_15, x_1654); -if (lean_obj_tag(x_1680) == 0) -{ -lean_object* x_1681; lean_object* x_1682; lean_object* x_1683; lean_object* x_1684; lean_object* x_1685; lean_object* x_1686; uint8_t x_1687; -lean_dec(x_1655); -x_1681 = lean_ctor_get(x_1680, 0); -lean_inc(x_1681); -x_1682 = lean_ctor_get(x_1680, 1); -lean_inc(x_1682); -lean_dec(x_1680); -x_1683 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1682); -x_1684 = lean_ctor_get(x_1683, 0); -lean_inc(x_1684); -x_1685 = lean_ctor_get(x_1683, 1); -lean_inc(x_1685); -lean_dec(x_1683); -x_1686 = l_Lean_Elab_Term_SavedState_restore(x_1653, x_10, x_11, x_12, x_13, x_14, x_15, x_1685); -x_1687 = !lean_is_exclusive(x_1686); -if (x_1687 == 0) -{ -lean_object* x_1688; lean_object* x_1689; lean_object* x_1690; -x_1688 = lean_ctor_get(x_1686, 1); -x_1689 = lean_ctor_get(x_1686, 0); -lean_dec(x_1689); -lean_ctor_set(x_1686, 1, x_1684); -lean_ctor_set(x_1686, 0, x_1681); -x_1690 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_1686, x_10, x_11, x_12, x_13, x_14, x_15, x_1688); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_1690; -} -else -{ -lean_object* x_1691; lean_object* x_1692; lean_object* x_1693; -x_1691 = lean_ctor_get(x_1686, 1); -lean_inc(x_1691); -lean_dec(x_1686); -x_1692 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1692, 0, x_1681); -lean_ctor_set(x_1692, 1, x_1684); -x_1693 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_1692, x_10, x_11, x_12, x_13, x_14, x_15, x_1691); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_1693; -} -} -else -{ -lean_object* x_1694; lean_object* x_1695; -x_1694 = lean_ctor_get(x_1680, 0); -lean_inc(x_1694); -x_1695 = lean_ctor_get(x_1680, 1); -lean_inc(x_1695); -lean_dec(x_1680); -x_1656 = x_1694; -x_1657 = x_1695; -goto block_1678; -} -block_1678: -{ -if (lean_obj_tag(x_1656) == 0) -{ -lean_object* x_1658; lean_object* x_1659; lean_object* x_1660; lean_object* x_1661; uint8_t x_1662; -lean_dec(x_1655); -x_1658 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1657); -x_1659 = lean_ctor_get(x_1658, 0); -lean_inc(x_1659); -x_1660 = lean_ctor_get(x_1658, 1); -lean_inc(x_1660); -lean_dec(x_1658); -x_1661 = l_Lean_Elab_Term_SavedState_restore(x_1653, x_10, x_11, x_12, x_13, x_14, x_15, x_1660); -x_1662 = !lean_is_exclusive(x_1661); -if (x_1662 == 0) -{ -lean_object* x_1663; lean_object* x_1664; lean_object* x_1665; -x_1663 = lean_ctor_get(x_1661, 1); -x_1664 = lean_ctor_get(x_1661, 0); -lean_dec(x_1664); -lean_ctor_set_tag(x_1661, 1); -lean_ctor_set(x_1661, 1, x_1659); -lean_ctor_set(x_1661, 0, x_1656); -x_1665 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_1661, x_10, x_11, x_12, x_13, x_14, x_15, x_1663); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_1665; -} -else -{ -lean_object* x_1666; lean_object* x_1667; lean_object* x_1668; -x_1666 = lean_ctor_get(x_1661, 1); -lean_inc(x_1666); -lean_dec(x_1661); -x_1667 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1667, 0, x_1656); -lean_ctor_set(x_1667, 1, x_1659); -x_1668 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_1667, x_10, x_11, x_12, x_13, x_14, x_15, x_1666); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_1668; -} -} -else -{ -lean_object* x_1669; lean_object* x_1670; uint8_t x_1671; -lean_dec(x_9); -x_1669 = lean_ctor_get(x_1656, 0); -lean_inc(x_1669); -x_1670 = l_Lean_Elab_postponeExceptionId; -x_1671 = lean_nat_dec_eq(x_1669, x_1670); -lean_dec(x_1669); -if (x_1671 == 0) -{ -lean_object* x_1672; -lean_dec(x_1653); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -if (lean_is_scalar(x_1655)) { - x_1672 = lean_alloc_ctor(1, 2, 0); -} else { - x_1672 = x_1655; - lean_ctor_set_tag(x_1672, 1); -} -lean_ctor_set(x_1672, 0, x_1656); -lean_ctor_set(x_1672, 1, x_1657); -return x_1672; -} -else -{ -lean_object* x_1673; uint8_t x_1674; -lean_dec(x_1655); -x_1673 = l_Lean_Elab_Term_SavedState_restore(x_1653, x_10, x_11, x_12, x_13, x_14, x_15, x_1657); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1674 = !lean_is_exclusive(x_1673); -if (x_1674 == 0) -{ -lean_object* x_1675; -x_1675 = lean_ctor_get(x_1673, 0); -lean_dec(x_1675); -lean_ctor_set_tag(x_1673, 1); -lean_ctor_set(x_1673, 0, x_1656); -return x_1673; -} -else -{ -lean_object* x_1676; lean_object* x_1677; -x_1676 = lean_ctor_get(x_1673, 1); -lean_inc(x_1676); -lean_dec(x_1673); -x_1677 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1677, 0, x_1656); -lean_ctor_set(x_1677, 1, x_1676); -return x_1677; -} -} -} -} -} -else -{ -lean_object* x_1696; lean_object* x_1697; lean_object* x_1698; lean_object* x_1699; lean_object* x_1700; lean_object* x_1701; lean_object* x_1702; uint8_t x_1724; lean_object* x_1725; -x_1696 = lean_box(0); -x_1697 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_16); -x_1698 = lean_ctor_get(x_1697, 0); -lean_inc(x_1698); -x_1699 = lean_ctor_get(x_1697, 1); -lean_inc(x_1699); -if (lean_is_exclusive(x_1697)) { - lean_ctor_release(x_1697, 0); - lean_ctor_release(x_1697, 1); - x_1700 = x_1697; -} else { - lean_dec_ref(x_1697); - x_1700 = lean_box(0); -} -x_1724 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_1725 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_5, x_1415, x_1724, x_1696, x_10, x_11, x_12, x_13, x_14, x_15, x_1699); -if (lean_obj_tag(x_1725) == 0) -{ -lean_object* x_1726; lean_object* x_1727; lean_object* x_1728; lean_object* x_1729; lean_object* x_1730; lean_object* x_1731; uint8_t x_1732; -lean_dec(x_1700); -x_1726 = lean_ctor_get(x_1725, 0); -lean_inc(x_1726); -x_1727 = lean_ctor_get(x_1725, 1); -lean_inc(x_1727); -lean_dec(x_1725); -x_1728 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1727); -x_1729 = lean_ctor_get(x_1728, 0); -lean_inc(x_1729); -x_1730 = lean_ctor_get(x_1728, 1); -lean_inc(x_1730); -lean_dec(x_1728); -x_1731 = l_Lean_Elab_Term_SavedState_restore(x_1698, x_10, x_11, x_12, x_13, x_14, x_15, x_1730); -x_1732 = !lean_is_exclusive(x_1731); -if (x_1732 == 0) -{ -lean_object* x_1733; lean_object* x_1734; lean_object* x_1735; -x_1733 = lean_ctor_get(x_1731, 1); -x_1734 = lean_ctor_get(x_1731, 0); -lean_dec(x_1734); -lean_ctor_set(x_1731, 1, x_1729); -lean_ctor_set(x_1731, 0, x_1726); -x_1735 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_1731, x_10, x_11, x_12, x_13, x_14, x_15, x_1733); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_1735; -} -else -{ -lean_object* x_1736; lean_object* x_1737; lean_object* x_1738; -x_1736 = lean_ctor_get(x_1731, 1); -lean_inc(x_1736); -lean_dec(x_1731); -x_1737 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1737, 0, x_1726); -lean_ctor_set(x_1737, 1, x_1729); -x_1738 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_1737, x_10, x_11, x_12, x_13, x_14, x_15, x_1736); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_1738; -} -} -else -{ -lean_object* x_1739; lean_object* x_1740; -x_1739 = lean_ctor_get(x_1725, 0); -lean_inc(x_1739); -x_1740 = lean_ctor_get(x_1725, 1); -lean_inc(x_1740); -lean_dec(x_1725); -x_1701 = x_1739; -x_1702 = x_1740; -goto block_1723; -} -block_1723: -{ -if (lean_obj_tag(x_1701) == 0) -{ -lean_object* x_1703; lean_object* x_1704; lean_object* x_1705; lean_object* x_1706; uint8_t x_1707; -lean_dec(x_1700); -x_1703 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1702); -x_1704 = lean_ctor_get(x_1703, 0); -lean_inc(x_1704); -x_1705 = lean_ctor_get(x_1703, 1); -lean_inc(x_1705); -lean_dec(x_1703); -x_1706 = l_Lean_Elab_Term_SavedState_restore(x_1698, x_10, x_11, x_12, x_13, x_14, x_15, x_1705); -x_1707 = !lean_is_exclusive(x_1706); -if (x_1707 == 0) -{ -lean_object* x_1708; lean_object* x_1709; lean_object* x_1710; -x_1708 = lean_ctor_get(x_1706, 1); -x_1709 = lean_ctor_get(x_1706, 0); -lean_dec(x_1709); -lean_ctor_set_tag(x_1706, 1); -lean_ctor_set(x_1706, 1, x_1704); -lean_ctor_set(x_1706, 0, x_1701); -x_1710 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_1706, x_10, x_11, x_12, x_13, x_14, x_15, x_1708); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_1710; -} -else -{ -lean_object* x_1711; lean_object* x_1712; lean_object* x_1713; -x_1711 = lean_ctor_get(x_1706, 1); -lean_inc(x_1711); -lean_dec(x_1706); -x_1712 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1712, 0, x_1701); -lean_ctor_set(x_1712, 1, x_1704); -x_1713 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_1712, x_10, x_11, x_12, x_13, x_14, x_15, x_1711); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_1713; -} -} -else -{ -lean_object* x_1714; lean_object* x_1715; uint8_t x_1716; -lean_dec(x_9); -x_1714 = lean_ctor_get(x_1701, 0); -lean_inc(x_1714); -x_1715 = l_Lean_Elab_postponeExceptionId; -x_1716 = lean_nat_dec_eq(x_1714, x_1715); -lean_dec(x_1714); -if (x_1716 == 0) -{ -lean_object* x_1717; -lean_dec(x_1698); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -if (lean_is_scalar(x_1700)) { - x_1717 = lean_alloc_ctor(1, 2, 0); -} else { - x_1717 = x_1700; - lean_ctor_set_tag(x_1717, 1); -} -lean_ctor_set(x_1717, 0, x_1701); -lean_ctor_set(x_1717, 1, x_1702); -return x_1717; -} -else -{ -lean_object* x_1718; uint8_t x_1719; -lean_dec(x_1700); -x_1718 = l_Lean_Elab_Term_SavedState_restore(x_1698, x_10, x_11, x_12, x_13, x_14, x_15, x_1702); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1719 = !lean_is_exclusive(x_1718); -if (x_1719 == 0) -{ -lean_object* x_1720; -x_1720 = lean_ctor_get(x_1718, 0); -lean_dec(x_1720); -lean_ctor_set_tag(x_1718, 1); -lean_ctor_set(x_1718, 0, x_1701); -return x_1718; -} -else -{ -lean_object* x_1721; lean_object* x_1722; -x_1721 = lean_ctor_get(x_1718, 1); -lean_inc(x_1721); -lean_dec(x_1718); -x_1722 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1722, 0, x_1701); -lean_ctor_set(x_1722, 1, x_1721); -return x_1722; -} -} -} -} -} -} -} -} -} -} -else -{ -lean_object* x_1744; lean_object* x_1745; lean_object* x_1746; uint8_t x_1747; -x_1744 = lean_unsigned_to_nat(3u); -x_1745 = l_Lean_Syntax_getArg(x_1, x_1744); -x_1746 = l_Lean_nullKind___closed__2; -lean_inc(x_1745); -x_1747 = l_Lean_Syntax_isOfKind(x_1745, x_1746); -if (x_1747 == 0) -{ -lean_object* x_1748; -lean_dec(x_1745); -lean_dec(x_1409); -lean_dec(x_1407); -x_1748 = lean_box(0); -x_17 = x_1748; -goto block_348; -} -else -{ -lean_object* x_1749; lean_object* x_1750; uint8_t x_1751; -x_1749 = l_Lean_Syntax_getArgs(x_1745); -lean_dec(x_1745); -x_1750 = lean_array_get_size(x_1749); -lean_dec(x_1749); -x_1751 = lean_nat_dec_eq(x_1750, x_1406); -lean_dec(x_1750); -if (x_1751 == 0) -{ -lean_object* x_1752; -lean_dec(x_1409); -lean_dec(x_1407); -x_1752 = lean_box(0); -x_17 = x_1752; -goto block_348; -} -else -{ -lean_object* x_1753; lean_object* x_1754; lean_object* x_1755; lean_object* x_1756; lean_object* x_1757; -lean_dec(x_1); -x_1753 = l_Lean_Syntax_getId(x_1409); -x_1754 = lean_erase_macro_scopes(x_1753); -x_1755 = l_Lean_Name_components(x_1754); -lean_inc(x_1407); -x_1756 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__3(x_1407, x_1409, x_1755); -x_1757 = l_List_append___rarg(x_1756, x_2); -x_1 = x_1407; -x_2 = x_1757; -goto _start; -} -} -} -} -else -{ -lean_object* x_1759; lean_object* x_1760; lean_object* x_1761; uint8_t x_1762; -x_1759 = lean_unsigned_to_nat(3u); -x_1760 = l_Lean_Syntax_getArg(x_1, x_1759); -x_1761 = l_Lean_nullKind___closed__2; -lean_inc(x_1760); -x_1762 = l_Lean_Syntax_isOfKind(x_1760, x_1761); -if (x_1762 == 0) -{ -lean_object* x_1763; -lean_dec(x_1760); -lean_dec(x_1409); -lean_dec(x_1407); -x_1763 = lean_box(0); -x_17 = x_1763; -goto block_348; -} -else -{ -lean_object* x_1764; lean_object* x_1765; uint8_t x_1766; -x_1764 = l_Lean_Syntax_getArgs(x_1760); -lean_dec(x_1760); -x_1765 = lean_array_get_size(x_1764); -lean_dec(x_1764); -x_1766 = lean_nat_dec_eq(x_1765, x_1406); -lean_dec(x_1765); -if (x_1766 == 0) -{ -lean_object* x_1767; -lean_dec(x_1409); -lean_dec(x_1407); -x_1767 = lean_box(0); -x_17 = x_1767; -goto block_348; -} -else -{ -lean_object* x_1768; lean_object* x_1769; -lean_dec(x_1); -x_1768 = l_Lean_fieldIdxKind; -x_1769 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_1768, x_1409); -if (lean_obj_tag(x_1769) == 0) -{ -lean_object* x_1770; lean_object* x_1771; lean_object* x_1772; lean_object* x_1773; lean_object* x_1774; -x_1770 = l_instInhabitedNat; -x_1771 = l_Option_get_x21___rarg___closed__4; -x_1772 = lean_panic_fn(x_1770, x_1771); -x_1773 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1773, 0, x_1409); -lean_ctor_set(x_1773, 1, x_1772); -x_1774 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1774, 0, x_1773); -lean_ctor_set(x_1774, 1, x_2); -x_1 = x_1407; -x_2 = x_1774; -goto _start; -} -else -{ -lean_object* x_1776; lean_object* x_1777; lean_object* x_1778; -x_1776 = lean_ctor_get(x_1769, 0); -lean_inc(x_1776); -lean_dec(x_1769); -x_1777 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1777, 0, x_1409); -lean_ctor_set(x_1777, 1, x_1776); -x_1778 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1778, 0, x_1777); -lean_ctor_set(x_1778, 1, x_2); -x_1 = x_1407; -x_2 = x_1778; -goto _start; -} -} -} -} -} -} -else -{ -lean_object* x_1780; lean_object* x_1781; lean_object* x_1782; lean_object* x_1783; lean_object* x_1784; uint8_t x_1785; -x_1780 = lean_unsigned_to_nat(0u); -x_1781 = l_Lean_Syntax_getArg(x_1, x_1780); -x_1782 = lean_unsigned_to_nat(2u); -x_1783 = l_Lean_Syntax_getArg(x_1, x_1782); -x_1784 = l_Lean_fieldIdxKind___closed__2; -lean_inc(x_1783); -x_1785 = l_Lean_Syntax_isOfKind(x_1783, x_1784); -if (x_1785 == 0) -{ -lean_object* x_1786; uint8_t x_1787; -x_1786 = l_Lean_identKind___closed__2; -lean_inc(x_1783); -x_1787 = l_Lean_Syntax_isOfKind(x_1783, x_1786); -if (x_1787 == 0) -{ -uint8_t x_1788; uint8_t x_1789; -lean_dec(x_1783); -lean_dec(x_1781); -x_1788 = l_List_isEmpty___rarg(x_2); -if (x_8 == 0) -{ -uint8_t x_2116; -x_2116 = 1; -x_1789 = x_2116; -goto block_2115; -} -else -{ -uint8_t x_2117; -x_2117 = 0; -x_1789 = x_2117; -goto block_2115; -} -block_2115: -{ -if (x_1788 == 0) -{ -lean_object* x_1790; lean_object* x_1791; lean_object* x_1792; lean_object* x_1793; lean_object* x_1794; lean_object* x_1795; lean_object* x_1796; lean_object* x_1827; lean_object* x_1828; uint8_t x_1850; lean_object* x_1851; -x_1790 = lean_box(0); -x_1791 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_16); -x_1792 = lean_ctor_get(x_1791, 0); -lean_inc(x_1792); -x_1793 = lean_ctor_get(x_1791, 1); -lean_inc(x_1793); -if (lean_is_exclusive(x_1791)) { - lean_ctor_release(x_1791, 0); - lean_ctor_release(x_1791, 1); - x_1794 = x_1791; -} else { - lean_dec_ref(x_1791); - x_1794 = lean_box(0); -} -x_1850 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_1851 = l_Lean_Elab_Term_elabTerm(x_1, x_1790, x_1789, x_1850, x_10, x_11, x_12, x_13, x_14, x_15, x_1793); -if (lean_obj_tag(x_1851) == 0) -{ -lean_object* x_1852; lean_object* x_1853; lean_object* x_1854; -x_1852 = lean_ctor_get(x_1851, 0); -lean_inc(x_1852); -x_1853 = lean_ctor_get(x_1851, 1); -lean_inc(x_1853); -lean_dec(x_1851); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_5); -x_1854 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_1852, x_2, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12, x_13, x_14, x_15, x_1853); -if (lean_obj_tag(x_1854) == 0) -{ -if (x_8 == 0) -{ -lean_object* x_1855; lean_object* x_1856; -lean_dec(x_1794); -lean_dec(x_5); -x_1855 = lean_ctor_get(x_1854, 0); -lean_inc(x_1855); -x_1856 = lean_ctor_get(x_1854, 1); -lean_inc(x_1856); -lean_dec(x_1854); -x_1827 = x_1855; -x_1828 = x_1856; -goto block_1849; -} -else -{ -lean_object* x_1857; lean_object* x_1858; lean_object* x_1859; -x_1857 = lean_ctor_get(x_1854, 0); -lean_inc(x_1857); -x_1858 = lean_ctor_get(x_1854, 1); -lean_inc(x_1858); -lean_dec(x_1854); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_1859 = l_Lean_Elab_Term_ensureHasType(x_5, x_1857, x_1790, x_10, x_11, x_12, x_13, x_14, x_15, x_1858); -if (lean_obj_tag(x_1859) == 0) -{ -lean_object* x_1860; lean_object* x_1861; -lean_dec(x_1794); -x_1860 = lean_ctor_get(x_1859, 0); -lean_inc(x_1860); -x_1861 = lean_ctor_get(x_1859, 1); -lean_inc(x_1861); -lean_dec(x_1859); -x_1827 = x_1860; -x_1828 = x_1861; -goto block_1849; -} -else -{ -lean_object* x_1862; lean_object* x_1863; -x_1862 = lean_ctor_get(x_1859, 0); -lean_inc(x_1862); -x_1863 = lean_ctor_get(x_1859, 1); -lean_inc(x_1863); -lean_dec(x_1859); -x_1795 = x_1862; -x_1796 = x_1863; -goto block_1826; -} -} -} -else -{ -lean_object* x_1864; lean_object* x_1865; -lean_dec(x_5); -x_1864 = lean_ctor_get(x_1854, 0); -lean_inc(x_1864); -x_1865 = lean_ctor_get(x_1854, 1); -lean_inc(x_1865); -lean_dec(x_1854); -x_1795 = x_1864; -x_1796 = x_1865; -goto block_1826; -} -} -else -{ -lean_object* x_1866; lean_object* x_1867; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1866 = lean_ctor_get(x_1851, 0); -lean_inc(x_1866); -x_1867 = lean_ctor_get(x_1851, 1); -lean_inc(x_1867); -lean_dec(x_1851); -x_1795 = x_1866; -x_1796 = x_1867; -goto block_1826; -} -block_1826: -{ -if (lean_obj_tag(x_1795) == 0) -{ -lean_object* x_1797; uint8_t x_1798; -lean_dec(x_1794); -x_1797 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1796); -x_1798 = !lean_is_exclusive(x_1797); -if (x_1798 == 0) -{ -lean_object* x_1799; lean_object* x_1800; lean_object* x_1801; uint8_t x_1802; -x_1799 = lean_ctor_get(x_1797, 0); -x_1800 = lean_ctor_get(x_1797, 1); -x_1801 = l_Lean_Elab_Term_SavedState_restore(x_1792, x_10, x_11, x_12, x_13, x_14, x_15, x_1800); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1802 = !lean_is_exclusive(x_1801); -if (x_1802 == 0) -{ -lean_object* x_1803; lean_object* x_1804; lean_object* x_1805; -x_1803 = lean_ctor_get(x_1801, 1); -x_1804 = lean_ctor_get(x_1801, 0); -lean_dec(x_1804); -lean_ctor_set_tag(x_1801, 1); -lean_ctor_set(x_1801, 1, x_1799); -lean_ctor_set(x_1801, 0, x_1795); -x_1805 = lean_array_push(x_9, x_1801); -lean_ctor_set(x_1797, 1, x_1803); -lean_ctor_set(x_1797, 0, x_1805); -return x_1797; -} -else -{ -lean_object* x_1806; lean_object* x_1807; lean_object* x_1808; -x_1806 = lean_ctor_get(x_1801, 1); -lean_inc(x_1806); -lean_dec(x_1801); -x_1807 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1807, 0, x_1795); -lean_ctor_set(x_1807, 1, x_1799); -x_1808 = lean_array_push(x_9, x_1807); -lean_ctor_set(x_1797, 1, x_1806); -lean_ctor_set(x_1797, 0, x_1808); -return x_1797; -} -} -else -{ -lean_object* x_1809; lean_object* x_1810; lean_object* x_1811; lean_object* x_1812; lean_object* x_1813; lean_object* x_1814; lean_object* x_1815; lean_object* x_1816; -x_1809 = lean_ctor_get(x_1797, 0); -x_1810 = lean_ctor_get(x_1797, 1); -lean_inc(x_1810); -lean_inc(x_1809); -lean_dec(x_1797); -x_1811 = l_Lean_Elab_Term_SavedState_restore(x_1792, x_10, x_11, x_12, x_13, x_14, x_15, x_1810); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1812 = lean_ctor_get(x_1811, 1); -lean_inc(x_1812); -if (lean_is_exclusive(x_1811)) { - lean_ctor_release(x_1811, 0); - lean_ctor_release(x_1811, 1); - x_1813 = x_1811; -} else { - lean_dec_ref(x_1811); - x_1813 = lean_box(0); -} -if (lean_is_scalar(x_1813)) { - x_1814 = lean_alloc_ctor(1, 2, 0); -} else { - x_1814 = x_1813; - lean_ctor_set_tag(x_1814, 1); -} -lean_ctor_set(x_1814, 0, x_1795); -lean_ctor_set(x_1814, 1, x_1809); -x_1815 = lean_array_push(x_9, x_1814); -x_1816 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1816, 0, x_1815); -lean_ctor_set(x_1816, 1, x_1812); -return x_1816; -} -} -else -{ -lean_object* x_1817; lean_object* x_1818; uint8_t x_1819; -lean_dec(x_9); -x_1817 = lean_ctor_get(x_1795, 0); -lean_inc(x_1817); -x_1818 = l_Lean_Elab_postponeExceptionId; -x_1819 = lean_nat_dec_eq(x_1817, x_1818); -lean_dec(x_1817); -if (x_1819 == 0) -{ -lean_object* x_1820; -lean_dec(x_1792); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -if (lean_is_scalar(x_1794)) { - x_1820 = lean_alloc_ctor(1, 2, 0); -} else { - x_1820 = x_1794; - lean_ctor_set_tag(x_1820, 1); -} -lean_ctor_set(x_1820, 0, x_1795); -lean_ctor_set(x_1820, 1, x_1796); -return x_1820; -} -else -{ -lean_object* x_1821; uint8_t x_1822; -lean_dec(x_1794); -x_1821 = l_Lean_Elab_Term_SavedState_restore(x_1792, x_10, x_11, x_12, x_13, x_14, x_15, x_1796); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1822 = !lean_is_exclusive(x_1821); -if (x_1822 == 0) -{ -lean_object* x_1823; -x_1823 = lean_ctor_get(x_1821, 0); -lean_dec(x_1823); -lean_ctor_set_tag(x_1821, 1); -lean_ctor_set(x_1821, 0, x_1795); -return x_1821; -} -else -{ -lean_object* x_1824; lean_object* x_1825; -x_1824 = lean_ctor_get(x_1821, 1); -lean_inc(x_1824); -lean_dec(x_1821); -x_1825 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1825, 0, x_1795); -lean_ctor_set(x_1825, 1, x_1824); -return x_1825; -} -} -} -} -block_1849: -{ -lean_object* x_1829; uint8_t x_1830; -x_1829 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1828); -x_1830 = !lean_is_exclusive(x_1829); -if (x_1830 == 0) -{ -lean_object* x_1831; lean_object* x_1832; lean_object* x_1833; uint8_t x_1834; -x_1831 = lean_ctor_get(x_1829, 0); -x_1832 = lean_ctor_get(x_1829, 1); -x_1833 = l_Lean_Elab_Term_SavedState_restore(x_1792, x_10, x_11, x_12, x_13, x_14, x_15, x_1832); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1834 = !lean_is_exclusive(x_1833); -if (x_1834 == 0) -{ -lean_object* x_1835; lean_object* x_1836; lean_object* x_1837; -x_1835 = lean_ctor_get(x_1833, 1); -x_1836 = lean_ctor_get(x_1833, 0); -lean_dec(x_1836); -lean_ctor_set(x_1833, 1, x_1831); -lean_ctor_set(x_1833, 0, x_1827); -x_1837 = lean_array_push(x_9, x_1833); -lean_ctor_set(x_1829, 1, x_1835); -lean_ctor_set(x_1829, 0, x_1837); -return x_1829; -} -else -{ -lean_object* x_1838; lean_object* x_1839; lean_object* x_1840; -x_1838 = lean_ctor_get(x_1833, 1); -lean_inc(x_1838); -lean_dec(x_1833); -x_1839 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1839, 0, x_1827); -lean_ctor_set(x_1839, 1, x_1831); -x_1840 = lean_array_push(x_9, x_1839); -lean_ctor_set(x_1829, 1, x_1838); -lean_ctor_set(x_1829, 0, x_1840); -return x_1829; -} -} -else -{ -lean_object* x_1841; lean_object* x_1842; lean_object* x_1843; lean_object* x_1844; lean_object* x_1845; lean_object* x_1846; lean_object* x_1847; lean_object* x_1848; -x_1841 = lean_ctor_get(x_1829, 0); -x_1842 = lean_ctor_get(x_1829, 1); -lean_inc(x_1842); -lean_inc(x_1841); -lean_dec(x_1829); -x_1843 = l_Lean_Elab_Term_SavedState_restore(x_1792, x_10, x_11, x_12, x_13, x_14, x_15, x_1842); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1844 = lean_ctor_get(x_1843, 1); -lean_inc(x_1844); -if (lean_is_exclusive(x_1843)) { - lean_ctor_release(x_1843, 0); - lean_ctor_release(x_1843, 1); - x_1845 = x_1843; -} else { - lean_dec_ref(x_1843); - x_1845 = lean_box(0); -} -if (lean_is_scalar(x_1845)) { - x_1846 = lean_alloc_ctor(0, 2, 0); -} else { - x_1846 = x_1845; -} -lean_ctor_set(x_1846, 0, x_1827); -lean_ctor_set(x_1846, 1, x_1841); -x_1847 = lean_array_push(x_9, x_1846); -x_1848 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1848, 0, x_1847); -lean_ctor_set(x_1848, 1, x_1844); -return x_1848; -} -} -} -else -{ -uint8_t x_1868; -x_1868 = l_Array_isEmpty___rarg(x_3); -if (x_1868 == 0) -{ -lean_object* x_1869; lean_object* x_1870; lean_object* x_1871; lean_object* x_1872; lean_object* x_1873; lean_object* x_1874; lean_object* x_1875; lean_object* x_1906; lean_object* x_1907; uint8_t x_1929; lean_object* x_1930; -x_1869 = lean_box(0); -x_1870 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_16); -x_1871 = lean_ctor_get(x_1870, 0); -lean_inc(x_1871); -x_1872 = lean_ctor_get(x_1870, 1); -lean_inc(x_1872); -if (lean_is_exclusive(x_1870)) { - lean_ctor_release(x_1870, 0); - lean_ctor_release(x_1870, 1); - x_1873 = x_1870; -} else { - lean_dec_ref(x_1870); - x_1873 = lean_box(0); -} -x_1929 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_1930 = l_Lean_Elab_Term_elabTerm(x_1, x_1869, x_1789, x_1929, x_10, x_11, x_12, x_13, x_14, x_15, x_1872); -if (lean_obj_tag(x_1930) == 0) -{ -lean_object* x_1931; lean_object* x_1932; lean_object* x_1933; -x_1931 = lean_ctor_get(x_1930, 0); -lean_inc(x_1931); -x_1932 = lean_ctor_get(x_1930, 1); -lean_inc(x_1932); -lean_dec(x_1930); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_5); -x_1933 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_1931, x_2, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12, x_13, x_14, x_15, x_1932); -if (lean_obj_tag(x_1933) == 0) -{ -if (x_8 == 0) -{ -lean_object* x_1934; lean_object* x_1935; -lean_dec(x_1873); -lean_dec(x_5); -x_1934 = lean_ctor_get(x_1933, 0); -lean_inc(x_1934); -x_1935 = lean_ctor_get(x_1933, 1); -lean_inc(x_1935); -lean_dec(x_1933); -x_1906 = x_1934; -x_1907 = x_1935; -goto block_1928; -} -else -{ -lean_object* x_1936; lean_object* x_1937; lean_object* x_1938; -x_1936 = lean_ctor_get(x_1933, 0); -lean_inc(x_1936); -x_1937 = lean_ctor_get(x_1933, 1); -lean_inc(x_1937); -lean_dec(x_1933); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_1938 = l_Lean_Elab_Term_ensureHasType(x_5, x_1936, x_1869, x_10, x_11, x_12, x_13, x_14, x_15, x_1937); -if (lean_obj_tag(x_1938) == 0) -{ -lean_object* x_1939; lean_object* x_1940; -lean_dec(x_1873); -x_1939 = lean_ctor_get(x_1938, 0); -lean_inc(x_1939); -x_1940 = lean_ctor_get(x_1938, 1); -lean_inc(x_1940); -lean_dec(x_1938); -x_1906 = x_1939; -x_1907 = x_1940; -goto block_1928; -} -else -{ -lean_object* x_1941; lean_object* x_1942; -x_1941 = lean_ctor_get(x_1938, 0); -lean_inc(x_1941); -x_1942 = lean_ctor_get(x_1938, 1); -lean_inc(x_1942); -lean_dec(x_1938); -x_1874 = x_1941; -x_1875 = x_1942; -goto block_1905; -} -} -} -else -{ -lean_object* x_1943; lean_object* x_1944; -lean_dec(x_5); -x_1943 = lean_ctor_get(x_1933, 0); -lean_inc(x_1943); -x_1944 = lean_ctor_get(x_1933, 1); -lean_inc(x_1944); -lean_dec(x_1933); -x_1874 = x_1943; -x_1875 = x_1944; -goto block_1905; -} -} -else -{ -lean_object* x_1945; lean_object* x_1946; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1945 = lean_ctor_get(x_1930, 0); -lean_inc(x_1945); -x_1946 = lean_ctor_get(x_1930, 1); -lean_inc(x_1946); -lean_dec(x_1930); -x_1874 = x_1945; -x_1875 = x_1946; -goto block_1905; -} -block_1905: -{ -if (lean_obj_tag(x_1874) == 0) -{ -lean_object* x_1876; uint8_t x_1877; -lean_dec(x_1873); -x_1876 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1875); -x_1877 = !lean_is_exclusive(x_1876); -if (x_1877 == 0) -{ -lean_object* x_1878; lean_object* x_1879; lean_object* x_1880; uint8_t x_1881; -x_1878 = lean_ctor_get(x_1876, 0); -x_1879 = lean_ctor_get(x_1876, 1); -x_1880 = l_Lean_Elab_Term_SavedState_restore(x_1871, x_10, x_11, x_12, x_13, x_14, x_15, x_1879); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1881 = !lean_is_exclusive(x_1880); -if (x_1881 == 0) -{ -lean_object* x_1882; lean_object* x_1883; lean_object* x_1884; -x_1882 = lean_ctor_get(x_1880, 1); -x_1883 = lean_ctor_get(x_1880, 0); -lean_dec(x_1883); -lean_ctor_set_tag(x_1880, 1); -lean_ctor_set(x_1880, 1, x_1878); -lean_ctor_set(x_1880, 0, x_1874); -x_1884 = lean_array_push(x_9, x_1880); -lean_ctor_set(x_1876, 1, x_1882); -lean_ctor_set(x_1876, 0, x_1884); -return x_1876; -} -else -{ -lean_object* x_1885; lean_object* x_1886; lean_object* x_1887; -x_1885 = lean_ctor_get(x_1880, 1); -lean_inc(x_1885); -lean_dec(x_1880); -x_1886 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1886, 0, x_1874); -lean_ctor_set(x_1886, 1, x_1878); -x_1887 = lean_array_push(x_9, x_1886); -lean_ctor_set(x_1876, 1, x_1885); -lean_ctor_set(x_1876, 0, x_1887); -return x_1876; -} -} -else -{ -lean_object* x_1888; lean_object* x_1889; lean_object* x_1890; lean_object* x_1891; lean_object* x_1892; lean_object* x_1893; lean_object* x_1894; lean_object* x_1895; -x_1888 = lean_ctor_get(x_1876, 0); -x_1889 = lean_ctor_get(x_1876, 1); -lean_inc(x_1889); -lean_inc(x_1888); -lean_dec(x_1876); -x_1890 = l_Lean_Elab_Term_SavedState_restore(x_1871, x_10, x_11, x_12, x_13, x_14, x_15, x_1889); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1891 = lean_ctor_get(x_1890, 1); -lean_inc(x_1891); -if (lean_is_exclusive(x_1890)) { - lean_ctor_release(x_1890, 0); - lean_ctor_release(x_1890, 1); - x_1892 = x_1890; -} else { - lean_dec_ref(x_1890); - x_1892 = lean_box(0); -} -if (lean_is_scalar(x_1892)) { - x_1893 = lean_alloc_ctor(1, 2, 0); -} else { - x_1893 = x_1892; - lean_ctor_set_tag(x_1893, 1); -} -lean_ctor_set(x_1893, 0, x_1874); -lean_ctor_set(x_1893, 1, x_1888); -x_1894 = lean_array_push(x_9, x_1893); -x_1895 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1895, 0, x_1894); -lean_ctor_set(x_1895, 1, x_1891); -return x_1895; -} -} -else -{ -lean_object* x_1896; lean_object* x_1897; uint8_t x_1898; -lean_dec(x_9); -x_1896 = lean_ctor_get(x_1874, 0); -lean_inc(x_1896); -x_1897 = l_Lean_Elab_postponeExceptionId; -x_1898 = lean_nat_dec_eq(x_1896, x_1897); -lean_dec(x_1896); -if (x_1898 == 0) -{ -lean_object* x_1899; -lean_dec(x_1871); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -if (lean_is_scalar(x_1873)) { - x_1899 = lean_alloc_ctor(1, 2, 0); -} else { - x_1899 = x_1873; - lean_ctor_set_tag(x_1899, 1); -} -lean_ctor_set(x_1899, 0, x_1874); -lean_ctor_set(x_1899, 1, x_1875); -return x_1899; -} -else -{ -lean_object* x_1900; uint8_t x_1901; -lean_dec(x_1873); -x_1900 = l_Lean_Elab_Term_SavedState_restore(x_1871, x_10, x_11, x_12, x_13, x_14, x_15, x_1875); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1901 = !lean_is_exclusive(x_1900); -if (x_1901 == 0) -{ -lean_object* x_1902; -x_1902 = lean_ctor_get(x_1900, 0); -lean_dec(x_1902); -lean_ctor_set_tag(x_1900, 1); -lean_ctor_set(x_1900, 0, x_1874); -return x_1900; -} -else -{ -lean_object* x_1903; lean_object* x_1904; -x_1903 = lean_ctor_get(x_1900, 1); -lean_inc(x_1903); -lean_dec(x_1900); -x_1904 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1904, 0, x_1874); -lean_ctor_set(x_1904, 1, x_1903); -return x_1904; -} -} -} -} -block_1928: -{ -lean_object* x_1908; uint8_t x_1909; -x_1908 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1907); -x_1909 = !lean_is_exclusive(x_1908); -if (x_1909 == 0) -{ -lean_object* x_1910; lean_object* x_1911; lean_object* x_1912; uint8_t x_1913; -x_1910 = lean_ctor_get(x_1908, 0); -x_1911 = lean_ctor_get(x_1908, 1); -x_1912 = l_Lean_Elab_Term_SavedState_restore(x_1871, x_10, x_11, x_12, x_13, x_14, x_15, x_1911); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1913 = !lean_is_exclusive(x_1912); -if (x_1913 == 0) -{ -lean_object* x_1914; lean_object* x_1915; lean_object* x_1916; -x_1914 = lean_ctor_get(x_1912, 1); -x_1915 = lean_ctor_get(x_1912, 0); -lean_dec(x_1915); -lean_ctor_set(x_1912, 1, x_1910); -lean_ctor_set(x_1912, 0, x_1906); -x_1916 = lean_array_push(x_9, x_1912); -lean_ctor_set(x_1908, 1, x_1914); -lean_ctor_set(x_1908, 0, x_1916); -return x_1908; -} -else -{ -lean_object* x_1917; lean_object* x_1918; lean_object* x_1919; -x_1917 = lean_ctor_get(x_1912, 1); -lean_inc(x_1917); -lean_dec(x_1912); -x_1918 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1918, 0, x_1906); -lean_ctor_set(x_1918, 1, x_1910); -x_1919 = lean_array_push(x_9, x_1918); -lean_ctor_set(x_1908, 1, x_1917); -lean_ctor_set(x_1908, 0, x_1919); -return x_1908; -} -} -else -{ -lean_object* x_1920; lean_object* x_1921; lean_object* x_1922; lean_object* x_1923; lean_object* x_1924; lean_object* x_1925; lean_object* x_1926; lean_object* x_1927; -x_1920 = lean_ctor_get(x_1908, 0); -x_1921 = lean_ctor_get(x_1908, 1); -lean_inc(x_1921); -lean_inc(x_1920); -lean_dec(x_1908); -x_1922 = l_Lean_Elab_Term_SavedState_restore(x_1871, x_10, x_11, x_12, x_13, x_14, x_15, x_1921); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1923 = lean_ctor_get(x_1922, 1); -lean_inc(x_1923); -if (lean_is_exclusive(x_1922)) { - lean_ctor_release(x_1922, 0); - lean_ctor_release(x_1922, 1); - x_1924 = x_1922; -} else { - lean_dec_ref(x_1922); - x_1924 = lean_box(0); -} -if (lean_is_scalar(x_1924)) { - x_1925 = lean_alloc_ctor(0, 2, 0); -} else { - x_1925 = x_1924; -} -lean_ctor_set(x_1925, 0, x_1906); -lean_ctor_set(x_1925, 1, x_1920); -x_1926 = lean_array_push(x_9, x_1925); -x_1927 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1927, 0, x_1926); -lean_ctor_set(x_1927, 1, x_1923); -return x_1927; -} -} -} -else -{ -uint8_t x_1947; -x_1947 = l_Array_isEmpty___rarg(x_4); -if (x_1947 == 0) -{ -lean_object* x_1948; lean_object* x_1949; lean_object* x_1950; lean_object* x_1951; lean_object* x_1952; lean_object* x_1953; lean_object* x_1954; lean_object* x_1985; lean_object* x_1986; uint8_t x_2008; lean_object* x_2009; -x_1948 = lean_box(0); -x_1949 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_16); -x_1950 = lean_ctor_get(x_1949, 0); -lean_inc(x_1950); -x_1951 = lean_ctor_get(x_1949, 1); -lean_inc(x_1951); -if (lean_is_exclusive(x_1949)) { - lean_ctor_release(x_1949, 0); - lean_ctor_release(x_1949, 1); - x_1952 = x_1949; -} else { - lean_dec_ref(x_1949); - x_1952 = lean_box(0); -} -x_2008 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_2009 = l_Lean_Elab_Term_elabTerm(x_1, x_1948, x_1789, x_2008, x_10, x_11, x_12, x_13, x_14, x_15, x_1951); -if (lean_obj_tag(x_2009) == 0) -{ -lean_object* x_2010; lean_object* x_2011; lean_object* x_2012; -x_2010 = lean_ctor_get(x_2009, 0); -lean_inc(x_2010); -x_2011 = lean_ctor_get(x_2009, 1); -lean_inc(x_2011); -lean_dec(x_2009); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_5); -x_2012 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_2010, x_2, x_3, x_4, x_5, x_6, x_7, x_10, x_11, x_12, x_13, x_14, x_15, x_2011); -if (lean_obj_tag(x_2012) == 0) -{ -if (x_8 == 0) -{ -lean_object* x_2013; lean_object* x_2014; -lean_dec(x_1952); -lean_dec(x_5); -x_2013 = lean_ctor_get(x_2012, 0); -lean_inc(x_2013); -x_2014 = lean_ctor_get(x_2012, 1); -lean_inc(x_2014); -lean_dec(x_2012); -x_1985 = x_2013; -x_1986 = x_2014; -goto block_2007; -} -else -{ -lean_object* x_2015; lean_object* x_2016; lean_object* x_2017; -x_2015 = lean_ctor_get(x_2012, 0); -lean_inc(x_2015); -x_2016 = lean_ctor_get(x_2012, 1); -lean_inc(x_2016); -lean_dec(x_2012); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_2017 = l_Lean_Elab_Term_ensureHasType(x_5, x_2015, x_1948, x_10, x_11, x_12, x_13, x_14, x_15, x_2016); -if (lean_obj_tag(x_2017) == 0) -{ -lean_object* x_2018; lean_object* x_2019; -lean_dec(x_1952); -x_2018 = lean_ctor_get(x_2017, 0); -lean_inc(x_2018); -x_2019 = lean_ctor_get(x_2017, 1); -lean_inc(x_2019); -lean_dec(x_2017); -x_1985 = x_2018; -x_1986 = x_2019; -goto block_2007; -} -else -{ -lean_object* x_2020; lean_object* x_2021; -x_2020 = lean_ctor_get(x_2017, 0); -lean_inc(x_2020); -x_2021 = lean_ctor_get(x_2017, 1); -lean_inc(x_2021); -lean_dec(x_2017); -x_1953 = x_2020; -x_1954 = x_2021; -goto block_1984; -} -} -} -else -{ -lean_object* x_2022; lean_object* x_2023; -lean_dec(x_5); -x_2022 = lean_ctor_get(x_2012, 0); -lean_inc(x_2022); -x_2023 = lean_ctor_get(x_2012, 1); -lean_inc(x_2023); -lean_dec(x_2012); -x_1953 = x_2022; -x_1954 = x_2023; -goto block_1984; -} -} -else -{ -lean_object* x_2024; lean_object* x_2025; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_2024 = lean_ctor_get(x_2009, 0); -lean_inc(x_2024); -x_2025 = lean_ctor_get(x_2009, 1); -lean_inc(x_2025); -lean_dec(x_2009); -x_1953 = x_2024; -x_1954 = x_2025; -goto block_1984; -} -block_1984: -{ -if (lean_obj_tag(x_1953) == 0) -{ -lean_object* x_1955; uint8_t x_1956; -lean_dec(x_1952); -x_1955 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1954); -x_1956 = !lean_is_exclusive(x_1955); -if (x_1956 == 0) -{ -lean_object* x_1957; lean_object* x_1958; lean_object* x_1959; uint8_t x_1960; -x_1957 = lean_ctor_get(x_1955, 0); -x_1958 = lean_ctor_get(x_1955, 1); -x_1959 = l_Lean_Elab_Term_SavedState_restore(x_1950, x_10, x_11, x_12, x_13, x_14, x_15, x_1958); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1960 = !lean_is_exclusive(x_1959); -if (x_1960 == 0) -{ -lean_object* x_1961; lean_object* x_1962; lean_object* x_1963; -x_1961 = lean_ctor_get(x_1959, 1); -x_1962 = lean_ctor_get(x_1959, 0); -lean_dec(x_1962); -lean_ctor_set_tag(x_1959, 1); -lean_ctor_set(x_1959, 1, x_1957); -lean_ctor_set(x_1959, 0, x_1953); -x_1963 = lean_array_push(x_9, x_1959); -lean_ctor_set(x_1955, 1, x_1961); -lean_ctor_set(x_1955, 0, x_1963); -return x_1955; -} -else -{ -lean_object* x_1964; lean_object* x_1965; lean_object* x_1966; -x_1964 = lean_ctor_get(x_1959, 1); -lean_inc(x_1964); -lean_dec(x_1959); -x_1965 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1965, 0, x_1953); -lean_ctor_set(x_1965, 1, x_1957); -x_1966 = lean_array_push(x_9, x_1965); -lean_ctor_set(x_1955, 1, x_1964); -lean_ctor_set(x_1955, 0, x_1966); -return x_1955; -} -} -else -{ -lean_object* x_1967; lean_object* x_1968; lean_object* x_1969; lean_object* x_1970; lean_object* x_1971; lean_object* x_1972; lean_object* x_1973; lean_object* x_1974; -x_1967 = lean_ctor_get(x_1955, 0); -x_1968 = lean_ctor_get(x_1955, 1); -lean_inc(x_1968); -lean_inc(x_1967); -lean_dec(x_1955); -x_1969 = l_Lean_Elab_Term_SavedState_restore(x_1950, x_10, x_11, x_12, x_13, x_14, x_15, x_1968); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1970 = lean_ctor_get(x_1969, 1); -lean_inc(x_1970); -if (lean_is_exclusive(x_1969)) { - lean_ctor_release(x_1969, 0); - lean_ctor_release(x_1969, 1); - x_1971 = x_1969; -} else { - lean_dec_ref(x_1969); - x_1971 = lean_box(0); -} -if (lean_is_scalar(x_1971)) { - x_1972 = lean_alloc_ctor(1, 2, 0); -} else { - x_1972 = x_1971; - lean_ctor_set_tag(x_1972, 1); -} -lean_ctor_set(x_1972, 0, x_1953); -lean_ctor_set(x_1972, 1, x_1967); -x_1973 = lean_array_push(x_9, x_1972); -x_1974 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1974, 0, x_1973); -lean_ctor_set(x_1974, 1, x_1970); -return x_1974; -} -} -else -{ -lean_object* x_1975; lean_object* x_1976; uint8_t x_1977; -lean_dec(x_9); -x_1975 = lean_ctor_get(x_1953, 0); -lean_inc(x_1975); -x_1976 = l_Lean_Elab_postponeExceptionId; -x_1977 = lean_nat_dec_eq(x_1975, x_1976); -lean_dec(x_1975); -if (x_1977 == 0) -{ -lean_object* x_1978; -lean_dec(x_1950); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -if (lean_is_scalar(x_1952)) { - x_1978 = lean_alloc_ctor(1, 2, 0); -} else { - x_1978 = x_1952; - lean_ctor_set_tag(x_1978, 1); -} -lean_ctor_set(x_1978, 0, x_1953); -lean_ctor_set(x_1978, 1, x_1954); -return x_1978; -} -else -{ -lean_object* x_1979; uint8_t x_1980; -lean_dec(x_1952); -x_1979 = l_Lean_Elab_Term_SavedState_restore(x_1950, x_10, x_11, x_12, x_13, x_14, x_15, x_1954); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1980 = !lean_is_exclusive(x_1979); -if (x_1980 == 0) -{ -lean_object* x_1981; -x_1981 = lean_ctor_get(x_1979, 0); -lean_dec(x_1981); -lean_ctor_set_tag(x_1979, 1); -lean_ctor_set(x_1979, 0, x_1953); -return x_1979; -} -else -{ -lean_object* x_1982; lean_object* x_1983; -x_1982 = lean_ctor_get(x_1979, 1); -lean_inc(x_1982); -lean_dec(x_1979); -x_1983 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1983, 0, x_1953); -lean_ctor_set(x_1983, 1, x_1982); -return x_1983; -} -} -} -} -block_2007: -{ -lean_object* x_1987; uint8_t x_1988; -x_1987 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_1986); -x_1988 = !lean_is_exclusive(x_1987); -if (x_1988 == 0) -{ -lean_object* x_1989; lean_object* x_1990; lean_object* x_1991; uint8_t x_1992; -x_1989 = lean_ctor_get(x_1987, 0); -x_1990 = lean_ctor_get(x_1987, 1); -x_1991 = l_Lean_Elab_Term_SavedState_restore(x_1950, x_10, x_11, x_12, x_13, x_14, x_15, x_1990); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_1992 = !lean_is_exclusive(x_1991); -if (x_1992 == 0) -{ -lean_object* x_1993; lean_object* x_1994; lean_object* x_1995; -x_1993 = lean_ctor_get(x_1991, 1); -x_1994 = lean_ctor_get(x_1991, 0); -lean_dec(x_1994); -lean_ctor_set(x_1991, 1, x_1989); -lean_ctor_set(x_1991, 0, x_1985); -x_1995 = lean_array_push(x_9, x_1991); -lean_ctor_set(x_1987, 1, x_1993); -lean_ctor_set(x_1987, 0, x_1995); -return x_1987; -} -else -{ -lean_object* x_1996; lean_object* x_1997; lean_object* x_1998; -x_1996 = lean_ctor_get(x_1991, 1); -lean_inc(x_1996); -lean_dec(x_1991); -x_1997 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1997, 0, x_1985); -lean_ctor_set(x_1997, 1, x_1989); -x_1998 = lean_array_push(x_9, x_1997); -lean_ctor_set(x_1987, 1, x_1996); -lean_ctor_set(x_1987, 0, x_1998); -return x_1987; -} -} -else -{ -lean_object* x_1999; lean_object* x_2000; lean_object* x_2001; lean_object* x_2002; lean_object* x_2003; lean_object* x_2004; lean_object* x_2005; lean_object* x_2006; -x_1999 = lean_ctor_get(x_1987, 0); -x_2000 = lean_ctor_get(x_1987, 1); -lean_inc(x_2000); -lean_inc(x_1999); -lean_dec(x_1987); -x_2001 = l_Lean_Elab_Term_SavedState_restore(x_1950, x_10, x_11, x_12, x_13, x_14, x_15, x_2000); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_2002 = lean_ctor_get(x_2001, 1); -lean_inc(x_2002); -if (lean_is_exclusive(x_2001)) { - lean_ctor_release(x_2001, 0); - lean_ctor_release(x_2001, 1); - x_2003 = x_2001; -} else { - lean_dec_ref(x_2001); - x_2003 = lean_box(0); -} -if (lean_is_scalar(x_2003)) { - x_2004 = lean_alloc_ctor(0, 2, 0); -} else { - x_2004 = x_2003; -} -lean_ctor_set(x_2004, 0, x_1985); -lean_ctor_set(x_2004, 1, x_1999); -x_2005 = lean_array_push(x_9, x_2004); -x_2006 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2006, 0, x_2005); -lean_ctor_set(x_2006, 1, x_2002); -return x_2006; -} -} -} -else -{ -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -if (x_8 == 0) -{ -lean_object* x_2026; lean_object* x_2027; lean_object* x_2028; lean_object* x_2029; lean_object* x_2030; lean_object* x_2031; uint8_t x_2053; lean_object* x_2054; -x_2026 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_16); -x_2027 = lean_ctor_get(x_2026, 0); -lean_inc(x_2027); -x_2028 = lean_ctor_get(x_2026, 1); -lean_inc(x_2028); -if (lean_is_exclusive(x_2026)) { - lean_ctor_release(x_2026, 0); - lean_ctor_release(x_2026, 1); - x_2029 = x_2026; -} else { - lean_dec_ref(x_2026); - x_2029 = lean_box(0); -} -x_2053 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_2054 = l_Lean_Elab_Term_elabTerm(x_1, x_5, x_2053, x_2053, x_10, x_11, x_12, x_13, x_14, x_15, x_2028); -if (lean_obj_tag(x_2054) == 0) -{ -lean_object* x_2055; lean_object* x_2056; lean_object* x_2057; lean_object* x_2058; lean_object* x_2059; lean_object* x_2060; uint8_t x_2061; -lean_dec(x_2029); -x_2055 = lean_ctor_get(x_2054, 0); -lean_inc(x_2055); -x_2056 = lean_ctor_get(x_2054, 1); -lean_inc(x_2056); -lean_dec(x_2054); -x_2057 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_2056); -x_2058 = lean_ctor_get(x_2057, 0); -lean_inc(x_2058); -x_2059 = lean_ctor_get(x_2057, 1); -lean_inc(x_2059); -lean_dec(x_2057); -x_2060 = l_Lean_Elab_Term_SavedState_restore(x_2027, x_10, x_11, x_12, x_13, x_14, x_15, x_2059); -x_2061 = !lean_is_exclusive(x_2060); -if (x_2061 == 0) -{ -lean_object* x_2062; lean_object* x_2063; lean_object* x_2064; -x_2062 = lean_ctor_get(x_2060, 1); -x_2063 = lean_ctor_get(x_2060, 0); -lean_dec(x_2063); -lean_ctor_set(x_2060, 1, x_2058); -lean_ctor_set(x_2060, 0, x_2055); -x_2064 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_2060, x_10, x_11, x_12, x_13, x_14, x_15, x_2062); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_2064; -} -else -{ -lean_object* x_2065; lean_object* x_2066; lean_object* x_2067; -x_2065 = lean_ctor_get(x_2060, 1); -lean_inc(x_2065); -lean_dec(x_2060); -x_2066 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2066, 0, x_2055); -lean_ctor_set(x_2066, 1, x_2058); -x_2067 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_2066, x_10, x_11, x_12, x_13, x_14, x_15, x_2065); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_2067; -} -} -else -{ -lean_object* x_2068; lean_object* x_2069; -x_2068 = lean_ctor_get(x_2054, 0); -lean_inc(x_2068); -x_2069 = lean_ctor_get(x_2054, 1); -lean_inc(x_2069); -lean_dec(x_2054); -x_2030 = x_2068; -x_2031 = x_2069; -goto block_2052; -} -block_2052: -{ -if (lean_obj_tag(x_2030) == 0) -{ -lean_object* x_2032; lean_object* x_2033; lean_object* x_2034; lean_object* x_2035; uint8_t x_2036; -lean_dec(x_2029); -x_2032 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_2031); -x_2033 = lean_ctor_get(x_2032, 0); -lean_inc(x_2033); -x_2034 = lean_ctor_get(x_2032, 1); -lean_inc(x_2034); -lean_dec(x_2032); -x_2035 = l_Lean_Elab_Term_SavedState_restore(x_2027, x_10, x_11, x_12, x_13, x_14, x_15, x_2034); -x_2036 = !lean_is_exclusive(x_2035); -if (x_2036 == 0) -{ -lean_object* x_2037; lean_object* x_2038; lean_object* x_2039; -x_2037 = lean_ctor_get(x_2035, 1); -x_2038 = lean_ctor_get(x_2035, 0); -lean_dec(x_2038); -lean_ctor_set_tag(x_2035, 1); -lean_ctor_set(x_2035, 1, x_2033); -lean_ctor_set(x_2035, 0, x_2030); -x_2039 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_2035, x_10, x_11, x_12, x_13, x_14, x_15, x_2037); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_2039; -} -else -{ -lean_object* x_2040; lean_object* x_2041; lean_object* x_2042; -x_2040 = lean_ctor_get(x_2035, 1); -lean_inc(x_2040); -lean_dec(x_2035); -x_2041 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2041, 0, x_2030); -lean_ctor_set(x_2041, 1, x_2033); -x_2042 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_2041, x_10, x_11, x_12, x_13, x_14, x_15, x_2040); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_2042; -} -} -else -{ -lean_object* x_2043; lean_object* x_2044; uint8_t x_2045; -lean_dec(x_9); -x_2043 = lean_ctor_get(x_2030, 0); -lean_inc(x_2043); -x_2044 = l_Lean_Elab_postponeExceptionId; -x_2045 = lean_nat_dec_eq(x_2043, x_2044); -lean_dec(x_2043); -if (x_2045 == 0) -{ -lean_object* x_2046; -lean_dec(x_2027); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -if (lean_is_scalar(x_2029)) { - x_2046 = lean_alloc_ctor(1, 2, 0); -} else { - x_2046 = x_2029; - lean_ctor_set_tag(x_2046, 1); -} -lean_ctor_set(x_2046, 0, x_2030); -lean_ctor_set(x_2046, 1, x_2031); -return x_2046; -} -else -{ -lean_object* x_2047; uint8_t x_2048; -lean_dec(x_2029); -x_2047 = l_Lean_Elab_Term_SavedState_restore(x_2027, x_10, x_11, x_12, x_13, x_14, x_15, x_2031); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_2048 = !lean_is_exclusive(x_2047); -if (x_2048 == 0) -{ -lean_object* x_2049; -x_2049 = lean_ctor_get(x_2047, 0); -lean_dec(x_2049); -lean_ctor_set_tag(x_2047, 1); -lean_ctor_set(x_2047, 0, x_2030); -return x_2047; -} -else -{ -lean_object* x_2050; lean_object* x_2051; -x_2050 = lean_ctor_get(x_2047, 1); -lean_inc(x_2050); -lean_dec(x_2047); -x_2051 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2051, 0, x_2030); -lean_ctor_set(x_2051, 1, x_2050); -return x_2051; -} -} -} -} -} -else -{ -lean_object* x_2070; lean_object* x_2071; lean_object* x_2072; lean_object* x_2073; lean_object* x_2074; lean_object* x_2075; lean_object* x_2076; uint8_t x_2098; lean_object* x_2099; -x_2070 = lean_box(0); -x_2071 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_16); -x_2072 = lean_ctor_get(x_2071, 0); -lean_inc(x_2072); -x_2073 = lean_ctor_get(x_2071, 1); -lean_inc(x_2073); -if (lean_is_exclusive(x_2071)) { - lean_ctor_release(x_2071, 0); - lean_ctor_release(x_2071, 1); - x_2074 = x_2071; -} else { - lean_dec_ref(x_2071); - x_2074 = lean_box(0); -} -x_2098 = 1; -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -x_2099 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_5, x_1789, x_2098, x_2070, x_10, x_11, x_12, x_13, x_14, x_15, x_2073); -if (lean_obj_tag(x_2099) == 0) -{ -lean_object* x_2100; lean_object* x_2101; lean_object* x_2102; lean_object* x_2103; lean_object* x_2104; lean_object* x_2105; uint8_t x_2106; -lean_dec(x_2074); -x_2100 = lean_ctor_get(x_2099, 0); -lean_inc(x_2100); -x_2101 = lean_ctor_get(x_2099, 1); -lean_inc(x_2101); -lean_dec(x_2099); -x_2102 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_2101); -x_2103 = lean_ctor_get(x_2102, 0); -lean_inc(x_2103); -x_2104 = lean_ctor_get(x_2102, 1); -lean_inc(x_2104); -lean_dec(x_2102); -x_2105 = l_Lean_Elab_Term_SavedState_restore(x_2072, x_10, x_11, x_12, x_13, x_14, x_15, x_2104); -x_2106 = !lean_is_exclusive(x_2105); -if (x_2106 == 0) -{ -lean_object* x_2107; lean_object* x_2108; lean_object* x_2109; -x_2107 = lean_ctor_get(x_2105, 1); -x_2108 = lean_ctor_get(x_2105, 0); -lean_dec(x_2108); -lean_ctor_set(x_2105, 1, x_2103); -lean_ctor_set(x_2105, 0, x_2100); -x_2109 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_2105, x_10, x_11, x_12, x_13, x_14, x_15, x_2107); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_2109; -} -else -{ -lean_object* x_2110; lean_object* x_2111; lean_object* x_2112; -x_2110 = lean_ctor_get(x_2105, 1); -lean_inc(x_2110); -lean_dec(x_2105); -x_2111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2111, 0, x_2100); -lean_ctor_set(x_2111, 1, x_2103); -x_2112 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_2111, x_10, x_11, x_12, x_13, x_14, x_15, x_2110); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_2112; -} -} -else -{ -lean_object* x_2113; lean_object* x_2114; -x_2113 = lean_ctor_get(x_2099, 0); -lean_inc(x_2113); -x_2114 = lean_ctor_get(x_2099, 1); -lean_inc(x_2114); -lean_dec(x_2099); -x_2075 = x_2113; -x_2076 = x_2114; -goto block_2097; -} -block_2097: -{ -if (lean_obj_tag(x_2075) == 0) -{ -lean_object* x_2077; lean_object* x_2078; lean_object* x_2079; lean_object* x_2080; uint8_t x_2081; -lean_dec(x_2074); -x_2077 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_2076); -x_2078 = lean_ctor_get(x_2077, 0); -lean_inc(x_2078); -x_2079 = lean_ctor_get(x_2077, 1); -lean_inc(x_2079); -lean_dec(x_2077); -x_2080 = l_Lean_Elab_Term_SavedState_restore(x_2072, x_10, x_11, x_12, x_13, x_14, x_15, x_2079); -x_2081 = !lean_is_exclusive(x_2080); -if (x_2081 == 0) -{ -lean_object* x_2082; lean_object* x_2083; lean_object* x_2084; -x_2082 = lean_ctor_get(x_2080, 1); -x_2083 = lean_ctor_get(x_2080, 0); -lean_dec(x_2083); -lean_ctor_set_tag(x_2080, 1); -lean_ctor_set(x_2080, 1, x_2078); -lean_ctor_set(x_2080, 0, x_2075); -x_2084 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_2080, x_10, x_11, x_12, x_13, x_14, x_15, x_2082); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_2084; -} -else -{ -lean_object* x_2085; lean_object* x_2086; lean_object* x_2087; -x_2085 = lean_ctor_get(x_2080, 1); -lean_inc(x_2085); -lean_dec(x_2080); -x_2086 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2086, 0, x_2075); -lean_ctor_set(x_2086, 1, x_2078); -x_2087 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__1(x_9, x_2086, x_10, x_11, x_12, x_13, x_14, x_15, x_2085); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_2087; -} -} -else -{ -lean_object* x_2088; lean_object* x_2089; uint8_t x_2090; -lean_dec(x_9); -x_2088 = lean_ctor_get(x_2075, 0); -lean_inc(x_2088); -x_2089 = l_Lean_Elab_postponeExceptionId; -x_2090 = lean_nat_dec_eq(x_2088, x_2089); -lean_dec(x_2088); -if (x_2090 == 0) -{ -lean_object* x_2091; -lean_dec(x_2072); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -if (lean_is_scalar(x_2074)) { - x_2091 = lean_alloc_ctor(1, 2, 0); -} else { - x_2091 = x_2074; - lean_ctor_set_tag(x_2091, 1); -} -lean_ctor_set(x_2091, 0, x_2075); -lean_ctor_set(x_2091, 1, x_2076); -return x_2091; -} -else -{ -lean_object* x_2092; uint8_t x_2093; -lean_dec(x_2074); -x_2092 = l_Lean_Elab_Term_SavedState_restore(x_2072, x_10, x_11, x_12, x_13, x_14, x_15, x_2076); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -x_2093 = !lean_is_exclusive(x_2092); -if (x_2093 == 0) -{ -lean_object* x_2094; -x_2094 = lean_ctor_get(x_2092, 0); -lean_dec(x_2094); -lean_ctor_set_tag(x_2092, 1); -lean_ctor_set(x_2092, 0, x_2075); -return x_2092; -} -else -{ -lean_object* x_2095; lean_object* x_2096; -x_2095 = lean_ctor_get(x_2092, 1); -lean_inc(x_2095); -lean_dec(x_2092); -x_2096 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2096, 0, x_2075); -lean_ctor_set(x_2096, 1, x_2095); -return x_2096; -} -} -} -} -} -} -} -} -} -} -else -{ -lean_object* x_2118; lean_object* x_2119; lean_object* x_2120; lean_object* x_2121; lean_object* x_2122; -lean_dec(x_1); -x_2118 = l_Lean_Syntax_getId(x_1783); -x_2119 = lean_erase_macro_scopes(x_2118); -x_2120 = l_Lean_Name_components(x_2119); -lean_inc(x_1781); -x_2121 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__4(x_1781, x_1783, x_2120); -x_2122 = l_List_append___rarg(x_2121, x_2); -x_1 = x_1781; -x_2 = x_2122; -goto _start; -} -} -else -{ -lean_object* x_2124; lean_object* x_2125; -lean_dec(x_1); -x_2124 = l_Lean_fieldIdxKind; -x_2125 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_2124, x_1783); -if (lean_obj_tag(x_2125) == 0) -{ -lean_object* x_2126; lean_object* x_2127; lean_object* x_2128; lean_object* x_2129; lean_object* x_2130; -x_2126 = l_instInhabitedNat; -x_2127 = l_Option_get_x21___rarg___closed__4; -x_2128 = lean_panic_fn(x_2126, x_2127); -x_2129 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2129, 0, x_1783); -lean_ctor_set(x_2129, 1, x_2128); -x_2130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2130, 0, x_2129); -lean_ctor_set(x_2130, 1, x_2); -x_1 = x_1781; -x_2 = x_2130; -goto _start; -} -else -{ -lean_object* x_2132; lean_object* x_2133; lean_object* x_2134; -x_2132 = lean_ctor_get(x_2125, 0); -lean_inc(x_2132); -lean_dec(x_2125); -x_2133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2133, 0, x_1783); -lean_ctor_set(x_2133, 1, x_2132); -x_2134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2134, 0, x_2133); -lean_ctor_set(x_2134, 1, x_2); -x_1 = x_1781; -x_2 = x_2134; -goto _start; -} -} -} -} -else -{ -lean_object* x_2136; lean_object* x_2137; lean_object* x_2138; uint8_t x_2139; -x_2136 = l_Lean_Syntax_getArgs(x_1); -lean_dec(x_1); -x_2137 = lean_array_get_size(x_2136); -x_2138 = lean_unsigned_to_nat(0u); -x_2139 = lean_nat_dec_lt(x_2138, x_2137); -if (x_2139 == 0) -{ -lean_object* x_2140; -lean_dec(x_2137); -lean_dec(x_2136); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_2140 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2140, 0, x_9); -lean_ctor_set(x_2140, 1, x_16); -return x_2140; -} -else -{ -uint8_t x_2141; -x_2141 = !lean_is_exclusive(x_10); -if (x_2141 == 0) -{ -uint8_t x_2142; uint8_t x_2143; -x_2142 = 0; -lean_ctor_set_uint8(x_10, sizeof(void*)*8 + 1, x_2142); -x_2143 = lean_nat_dec_le(x_2137, x_2137); -if (x_2143 == 0) -{ -lean_object* x_2144; -lean_dec(x_10); -lean_dec(x_2137); -lean_dec(x_2136); +lean_dec(x_1498); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -29446,66 +26514,66 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_2144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2144, 0, x_9); -lean_ctor_set(x_2144, 1, x_16); -return x_2144; +x_1506 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1506, 0, x_9); +lean_ctor_set(x_1506, 1, x_16); +return x_1506; } else { -size_t x_2145; size_t x_2146; lean_object* x_2147; -x_2145 = 0; -x_2146 = lean_usize_of_nat(x_2137); -lean_dec(x_2137); -x_2147 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_2136, x_2145, x_2146, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec(x_2136); -return x_2147; +size_t x_1507; size_t x_1508; lean_object* x_1509; +x_1507 = 0; +x_1508 = lean_usize_of_nat(x_1499); +lean_dec(x_1499); +x_1509 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_1498, x_1507, x_1508, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_1498); +return x_1509; } } else { -lean_object* x_2148; lean_object* x_2149; lean_object* x_2150; lean_object* x_2151; lean_object* x_2152; uint8_t x_2153; uint8_t x_2154; lean_object* x_2155; lean_object* x_2156; lean_object* x_2157; uint8_t x_2158; uint8_t x_2159; lean_object* x_2160; uint8_t x_2161; -x_2148 = lean_ctor_get(x_10, 0); -x_2149 = lean_ctor_get(x_10, 1); -x_2150 = lean_ctor_get(x_10, 2); -x_2151 = lean_ctor_get(x_10, 3); -x_2152 = lean_ctor_get(x_10, 4); -x_2153 = lean_ctor_get_uint8(x_10, sizeof(void*)*8); -x_2154 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 2); -x_2155 = lean_ctor_get(x_10, 5); -x_2156 = lean_ctor_get(x_10, 6); -x_2157 = lean_ctor_get(x_10, 7); -x_2158 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 3); -lean_inc(x_2157); -lean_inc(x_2156); -lean_inc(x_2155); -lean_inc(x_2152); -lean_inc(x_2151); -lean_inc(x_2150); -lean_inc(x_2149); -lean_inc(x_2148); +lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; lean_object* x_1514; uint8_t x_1515; uint8_t x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; uint8_t x_1520; uint8_t x_1521; lean_object* x_1522; uint8_t x_1523; +x_1510 = lean_ctor_get(x_10, 0); +x_1511 = lean_ctor_get(x_10, 1); +x_1512 = lean_ctor_get(x_10, 2); +x_1513 = lean_ctor_get(x_10, 3); +x_1514 = lean_ctor_get(x_10, 4); +x_1515 = lean_ctor_get_uint8(x_10, sizeof(void*)*8); +x_1516 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 2); +x_1517 = lean_ctor_get(x_10, 5); +x_1518 = lean_ctor_get(x_10, 6); +x_1519 = lean_ctor_get(x_10, 7); +x_1520 = lean_ctor_get_uint8(x_10, sizeof(void*)*8 + 3); +lean_inc(x_1519); +lean_inc(x_1518); +lean_inc(x_1517); +lean_inc(x_1514); +lean_inc(x_1513); +lean_inc(x_1512); +lean_inc(x_1511); +lean_inc(x_1510); lean_dec(x_10); -x_2159 = 0; -x_2160 = lean_alloc_ctor(0, 8, 4); -lean_ctor_set(x_2160, 0, x_2148); -lean_ctor_set(x_2160, 1, x_2149); -lean_ctor_set(x_2160, 2, x_2150); -lean_ctor_set(x_2160, 3, x_2151); -lean_ctor_set(x_2160, 4, x_2152); -lean_ctor_set(x_2160, 5, x_2155); -lean_ctor_set(x_2160, 6, x_2156); -lean_ctor_set(x_2160, 7, x_2157); -lean_ctor_set_uint8(x_2160, sizeof(void*)*8, x_2153); -lean_ctor_set_uint8(x_2160, sizeof(void*)*8 + 1, x_2159); -lean_ctor_set_uint8(x_2160, sizeof(void*)*8 + 2, x_2154); -lean_ctor_set_uint8(x_2160, sizeof(void*)*8 + 3, x_2158); -x_2161 = lean_nat_dec_le(x_2137, x_2137); -if (x_2161 == 0) +x_1521 = 0; +x_1522 = lean_alloc_ctor(0, 8, 4); +lean_ctor_set(x_1522, 0, x_1510); +lean_ctor_set(x_1522, 1, x_1511); +lean_ctor_set(x_1522, 2, x_1512); +lean_ctor_set(x_1522, 3, x_1513); +lean_ctor_set(x_1522, 4, x_1514); +lean_ctor_set(x_1522, 5, x_1517); +lean_ctor_set(x_1522, 6, x_1518); +lean_ctor_set(x_1522, 7, x_1519); +lean_ctor_set_uint8(x_1522, sizeof(void*)*8, x_1515); +lean_ctor_set_uint8(x_1522, sizeof(void*)*8 + 1, x_1521); +lean_ctor_set_uint8(x_1522, sizeof(void*)*8 + 2, x_1516); +lean_ctor_set_uint8(x_1522, sizeof(void*)*8 + 3, x_1520); +x_1523 = lean_nat_dec_le(x_1499, x_1499); +if (x_1523 == 0) { -lean_object* x_2162; -lean_dec(x_2160); -lean_dec(x_2137); -lean_dec(x_2136); +lean_object* x_1524; +lean_dec(x_1522); +lean_dec(x_1499); +lean_dec(x_1498); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); @@ -29515,20 +26583,20 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_2162 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2162, 0, x_9); -lean_ctor_set(x_2162, 1, x_16); -return x_2162; +x_1524 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1524, 0, x_9); +lean_ctor_set(x_1524, 1, x_16); +return x_1524; } else { -size_t x_2163; size_t x_2164; lean_object* x_2165; -x_2163 = 0; -x_2164 = lean_usize_of_nat(x_2137); -lean_dec(x_2137); -x_2165 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_2136, x_2163, x_2164, x_9, x_2160, x_11, x_12, x_13, x_14, x_15, x_16); -lean_dec(x_2136); -return x_2165; +size_t x_1525; size_t x_1526; lean_object* x_1527; +x_1525 = 0; +x_1526 = lean_usize_of_nat(x_1499); +lean_dec(x_1499); +x_1527 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___spec__5(x_2, x_3, x_4, x_5, x_6, x_7, x_1498, x_1525, x_1526, x_9, x_1522, x_11, x_12, x_13, x_14, x_15, x_16); +lean_dec(x_1498); +return x_1527; } } } @@ -31167,6 +28235,72 @@ lean_dec(x_3); return x_10; } } +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__2___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; +x_19 = lean_unbox(x_7); +lean_dec(x_7); +x_20 = lean_unbox(x_8); +lean_dec(x_8); +x_21 = lean_unbox(x_9); +lean_dec(x_9); +x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_19, x_20, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_11); +return x_22; +} +} +lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__3___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; +x_19 = lean_unbox(x_7); +lean_dec(x_7); +x_20 = lean_unbox(x_8); +lean_dec(x_8); +x_21 = lean_unbox(x_9); +lean_dec(x_9); +x_22 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_19, x_20, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_11); +return x_22; +} +} lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { @@ -31687,7 +28821,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_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1; x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__2; -x_3 = lean_unsigned_to_nat(877u); +x_3 = lean_unsigned_to_nat(881u); x_4 = lean_unsigned_to_nat(35u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -32012,7 +29146,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_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1; x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__1; -x_3 = lean_unsigned_to_nat(894u); +x_3 = lean_unsigned_to_nat(898u); x_4 = lean_unsigned_to_nat(35u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -34546,7 +31680,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_9317_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_9116_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -34849,7 +31983,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabArrayRef___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabArrayRef(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_9317_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_9116_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Extra.c b/stage0/stdlib/Lean/Elab/Extra.c index 8bc140b180..12d9852903 100644 --- a/stage0/stdlib/Lean/Elab/Extra.c +++ b/stage0/stdlib/Lean/Elab/Extra.c @@ -50,7 +50,6 @@ lean_object* l_Lean_Elab_Term_elabForIn___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabForIn_match__1(lean_object*); extern lean_object* l_term___u2218_____closed__5; lean_object* l_Lean_Elab_Term_elabBinRel___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabCompletion___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -104,6 +103,7 @@ extern lean_object* l_Lean_Meta_evalNat_visit___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel(lean_object*); lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabPipeCompletion___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryPostpone(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3223,7 +3223,7 @@ x_112 = l_Lean_KernelException_toMessageData___closed__15; x_113 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_113, 0, x_111); lean_ctor_set(x_113, 1, x_112); -x_114 = l_Lean_throwError___at_Lean_Elab_Term_elabCompletion___spec__2(x_113, x_3, x_4, x_5, x_6, x_7, x_8, x_104); +x_114 = l_Lean_throwError___at_Lean_Elab_Term_elabPipeCompletion___spec__2(x_113, x_3, x_4, x_5, x_6, x_7, x_8, x_104); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -3509,7 +3509,7 @@ x_174 = l_Lean_KernelException_toMessageData___closed__15; x_175 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_175, 0, x_173); lean_ctor_set(x_175, 1, x_174); -x_176 = l_Lean_throwError___at_Lean_Elab_Term_elabCompletion___spec__2(x_175, x_3, x_4, x_5, x_6, x_7, x_8, x_166); +x_176 = l_Lean_throwError___at_Lean_Elab_Term_elabPipeCompletion___spec__2(x_175, x_3, x_4, x_5, x_6, x_7, x_8, x_166); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); diff --git a/stage0/stdlib/Lean/Elab/InfoTree.c b/stage0/stdlib/Lean/Elab/InfoTree.c index 6cf2783e46..b35996b1ac 100644 --- a/stage0/stdlib/Lean/Elab/InfoTree.c +++ b/stage0/stdlib/Lean/Elab/InfoTree.c @@ -43,6 +43,7 @@ lean_object* l_Lean_Elab_assignInfoHoleId___rarg(lean_object*, lean_object*, lea lean_object* l_Std_PersistentArray_getAux___at_Lean_Elab_withInfoHole___spec__2(lean_object*, size_t, size_t); lean_object* l_Lean_mkConstWithLevelParams___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_assignInfoHoleId___rarg___lambda__2___closed__1; +lean_object* l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__1___boxed(lean_object*); lean_object* l_Lean_Elab_instInhabitedTermInfo; lean_object* l_Lean_Elab_assignInfoHoleId___rarg___lambda__2___closed__4; lean_object* l_List_forIn_loop___at_Lean_Elab_resolveGlobalConstWithInfos___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -216,7 +217,6 @@ lean_object* l_Lean_Elab_getInfoTrees(lean_object*); lean_object* l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange(lean_object*, lean_object*); lean_object* l_Lean_Elab_getInfoHoleIdAssignment_x3f___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_enableInfoTree___rarg___boxed(lean_object*, lean_object*); -lean_object* l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__2___boxed(lean_object*); size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Lean_NameSet_empty; lean_object* l_Lean_Elab_ContextInfo_currNamespace___default; @@ -2824,17 +2824,6 @@ return x_2; lean_object* l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__1(lean_object* x_1) { _start: { -lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = lean_box(0); -x_3 = 0; -x_4 = lean_unsigned_to_nat(0u); -x_5 = l_Lean_Syntax_formatStxAux(x_2, x_3, x_4, x_1); -return x_5; -} -} -lean_object* l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__2(lean_object* x_1) { -_start: -{ if (lean_obj_tag(x_1) == 0) { lean_object* x_2; @@ -2854,6 +2843,17 @@ return x_6; } } } +lean_object* l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = lean_box(0); +x_3 = 0; +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Lean_Syntax_formatStxAux(x_2, x_3, x_4, x_1); +return x_5; +} +} lean_object* l_ReaderT_pure___at_Lean_Elab_CompletionInfo_format___spec__3___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: { @@ -2896,157 +2896,178 @@ _start: switch (lean_obj_tag(x_2)) { case 0: { -lean_object* x_4; lean_object* x_5; +lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_2, 0); lean_inc(x_4); +x_5 = lean_ctor_get(x_2, 2); +lean_inc(x_5); lean_dec(x_2); -x_5 = l_Lean_Elab_TermInfo_format(x_1, x_4, x_3); -if (lean_obj_tag(x_5) == 0) +x_6 = l_Lean_Elab_TermInfo_format(x_1, x_4, x_3); +if (lean_obj_tag(x_6) == 0) { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_ctor_get(x_5, 0); -x_8 = l_Lean_Elab_CompletionInfo_format___closed__2; -x_9 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -x_10 = l_Std_Format_join___closed__1; -x_11 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_11, 0, x_9); -lean_ctor_set(x_11, 1, x_10); -lean_ctor_set(x_5, 0, x_11); -return x_5; -} -else -{ -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_12 = lean_ctor_get(x_5, 0); -x_13 = lean_ctor_get(x_5, 1); -lean_inc(x_13); -lean_inc(x_12); +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; +x_8 = lean_ctor_get(x_6, 0); +x_9 = l_Lean_Elab_CompletionInfo_format___closed__2; +x_10 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +x_11 = l_Lean_Meta_ppGoal_ppVars___closed__1; +x_12 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__1(x_5); lean_dec(x_5); -x_14 = l_Lean_Elab_CompletionInfo_format___closed__2; -x_15 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_12); -x_16 = l_Std_Format_join___closed__1; -x_17 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, 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_13); -return x_18; -} +x_14 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +x_15 = l_Std_Format_join___closed__1; +x_16 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set(x_6, 0, x_16); +return x_6; } else { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_5); -if (x_19 == 0) -{ -return x_5; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_5, 0); -x_21 = lean_ctor_get(x_5, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_5); -x_22 = lean_alloc_ctor(1, 2, 0); +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; +x_17 = lean_ctor_get(x_6, 0); +x_18 = lean_ctor_get(x_6, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_6); +x_19 = l_Lean_Elab_CompletionInfo_format___closed__2; +x_20 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_17); +x_21 = l_Lean_Meta_ppGoal_ppVars___closed__1; +x_22 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_22, 0, x_20); lean_ctor_set(x_22, 1, x_21); -return x_22; +x_23 = l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__1(x_5); +lean_dec(x_5); +x_24 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = l_Std_Format_join___closed__1; +x_26 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_18); +return x_27; +} +} +else +{ +uint8_t x_28; +lean_dec(x_5); +x_28 = !lean_is_exclusive(x_6); +if (x_28 == 0) +{ +return x_6; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_6, 0); +x_30 = lean_ctor_get(x_6, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_6); +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; } } } case 1: { -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; -x_23 = lean_ctor_get(x_2, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_2, 1); -lean_inc(x_24); -x_25 = lean_ctor_get(x_2, 2); -lean_inc(x_25); -x_26 = l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__1(x_23); -x_27 = l_Lean_Elab_CompletionInfo_format___closed__2; -x_28 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = l_Lean_Meta_ppGoal_ppVars___closed__1; -x_30 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -x_31 = l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__2(x_25); -lean_dec(x_25); -x_32 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -x_33 = l_Lean_Elab_TermInfo_format___lambda__1___closed__2; -x_34 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -x_35 = l_Lean_Elab_CompletionInfo_stx(x_2); -lean_dec(x_2); -x_36 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange(x_1, x_35); -lean_dec(x_35); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_32 = lean_ctor_get(x_2, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_2, 1); +lean_inc(x_33); +x_34 = lean_ctor_get(x_2, 2); +lean_inc(x_34); +x_35 = l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__2(x_32); +x_36 = l_Lean_Elab_CompletionInfo_format___closed__2; x_37 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_37, 0, x_34); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_Std_Format_join___closed__1; +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +x_38 = l_Lean_Meta_ppGoal_ppVars___closed__1; x_39 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_39, 0, x_37); lean_ctor_set(x_39, 1, x_38); -x_40 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_CompletionInfo_format___spec__3___rarg___boxed), 6, 1); -lean_closure_set(x_40, 0, x_39); -x_41 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_1, x_24, x_40, x_3); +x_40 = l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__1(x_34); +lean_dec(x_34); +x_41 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_Elab_TermInfo_format___lambda__1___closed__2; +x_43 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +x_44 = l_Lean_Elab_CompletionInfo_stx(x_2); +lean_dec(x_2); +x_45 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange(x_1, x_44); +lean_dec(x_44); +x_46 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Std_Format_join___closed__1; +x_48 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +x_49 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_CompletionInfo_format___spec__3___rarg___boxed), 6, 1); +lean_closure_set(x_49, 0, x_48); +x_50 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_1, x_33, x_49, x_3); lean_dec(x_1); -return x_41; +return x_50; } default: { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_42 = l_Lean_Elab_CompletionInfo_stx(x_2); +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; +x_51 = l_Lean_Elab_CompletionInfo_stx(x_2); lean_dec(x_2); -lean_inc(x_42); -x_43 = l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__1(x_42); -x_44 = l_Lean_Elab_CompletionInfo_format___closed__2; -x_45 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -x_46 = l_Lean_Elab_TermInfo_format___lambda__1___closed__2; -x_47 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -x_48 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange(x_1, x_42); -lean_dec(x_42); +lean_inc(x_51); +x_52 = l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__2(x_51); +x_53 = l_Lean_Elab_CompletionInfo_format___closed__2; +x_54 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_55 = l_Lean_Elab_TermInfo_format___lambda__1___closed__2; +x_56 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +x_57 = l___private_Lean_Elab_InfoTree_0__Lean_Elab_formatStxRange(x_1, x_51); +lean_dec(x_51); lean_dec(x_1); -x_49 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -x_50 = l_Std_Format_join___closed__1; -x_51 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_3); -return x_52; +x_58 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Std_Format_join___closed__1; +x_60 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_3); +return x_61; } } } } -lean_object* l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__2___boxed(lean_object* x_1) { +lean_object* l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__1___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__2(x_1); +x_2 = l_Std_fmt___at_Lean_Elab_CompletionInfo_format___spec__1(x_1); lean_dec(x_1); return x_2; } diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index 751f549994..af8ab963e6 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -273,7 +273,6 @@ lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_group lean_object* l_Lean_Elab_Term_StructInst_Struct_fields___boxed(lean_object*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabModifyOp___closed__1; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_Context_structs___default; -lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabCompletion___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_mkStructView___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandStruct___spec__11(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*); lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_toFieldLHS___closed__2; @@ -571,6 +570,7 @@ lean_object* l_Lean_Meta_mkFreshLevelMVars(lean_object*, lean_object*, lean_obje lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_elabStructInstAux___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* l_List_forIn_loop___at_Lean_Elab_Term_StructInst_DefaultFields_step___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_mk_array(lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabPipeCompletion___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_setStructSourceSyntax_match__1(lean_object*); uint8_t l_Lean_Elab_Term_StructInst_Source_isNone(lean_object*); @@ -26657,7 +26657,7 @@ x_15 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_15, 0, x_14); x_16 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_16, 0, x_15); -x_17 = l_Lean_throwError___at_Lean_Elab_Term_elabCompletion___spec__2(x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_17 = l_Lean_throwError___at_Lean_Elab_Term_elabPipeCompletion___spec__2(x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 1813497a84..3e3ea0b00c 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -153,7 +153,6 @@ lean_object* l_List_forIn_loop___at_Lean_Elab_Term_logUnassignedUsingErrorInfos_ lean_object* l_Lean_Elab_Term_throwErrorIfErrors___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getDeclName_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Syntax_mkAntiquotNode___closed__7; -lean_object* l_Lean_Elab_Term_elabCompletion___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__2; extern lean_object* l_Std_Format_defWidth; lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -291,6 +290,7 @@ lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___closed__4; size_t l_Lean_Level_hash(lean_object*); lean_object* l_Lean_Elab_Term_withAutoBoundImplicit_loop_match__1(lean_object*); lean_object* l_Lean_Meta_isMonad_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12067____closed__1; lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__15___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___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux_match__1(lean_object*); @@ -342,7 +342,6 @@ extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l_Lean_Elab_Term_registerCustomErrorIfMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___closed__3; lean_object* l_Lean_Elab_Level_elabLevel(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12070____closed__1; lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__7; @@ -411,7 +410,6 @@ lean_object* l_Lean_Meta_ppGoal(lean_object*, lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Term_resolveLocalName_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isExplicit___boxed(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImplicits___spec__5(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*); -lean_object* l___regBuiltin_Lean_Elab_Term_elabCompletion(lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_match__1(lean_object*); lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__2; @@ -436,7 +434,6 @@ lean_object* l_Std_HashSetImp_moveEntries___at___private_Lean_Elab_Term_0__Lean_ lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___closed__4; extern lean_object* l_myMacro____x40_Init_Notation___hyg_22692____closed__2; extern lean_object* l_Lean_maxRecDepth; -lean_object* l_Lean_Elab_Term_elabCompletion___lambda__1___closed__2; lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_resolveName___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -512,7 +509,6 @@ lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___closed__7; lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCompletion___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Level_normLtAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); @@ -543,6 +539,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_13856____closed__8; extern lean_object* l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5662____spec__3___closed__2; lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_getOptionDecl(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabPipeCompletion___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__2; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr_match__2(lean_object*); extern lean_object* l_Lean_numLitKind; @@ -550,12 +547,10 @@ lean_object* l_Lean_Elab_Term_getSyntheticMVarDecl_x3f(lean_object*, lean_object lean_object* l_Lean_MetavarContext_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerCustomErrorIfMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withMacroExpansionInfo___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabCompletion___lambda__1___closed__1; lean_object* l_Lean_Elab_Term_isLocalIdent_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__3; lean_object* l_Lean_Elab_Term_instMonadLogTermElabM; extern lean_object* l_term___u2218_____closed__5; -lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabCompletion___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Elab_Term_isLetRecAuxMVar___spec__2(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__2(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*); @@ -563,13 +558,13 @@ lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Term_elabDoubleQuotedN lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkTacticMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkConst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName_match__1(lean_object*); -lean_object* l_Lean_Elab_Term_elabCompletion___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instToStringLVal(lean_object*); extern lean_object* l_Lean_Core_instMonadRefCoreM; lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashSetImp_insert___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Term_addDotCompletionInfo___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabPipeCompletion___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_TermElabM_run(lean_object*); uint8_t l_Array_contains___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_saveContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -590,7 +585,6 @@ lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__3; lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__2; extern lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__2; -lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabCompletion___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabByTactic___closed__2; lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); @@ -599,6 +593,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabSetOption___closed__1; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkConst___closed__2; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSyntheticSorryFor___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabPipeCompletion___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instQuoteProd___rarg___closed__1; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns_match__1(lean_object*); lean_object* l_Lean_Meta_expandCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -672,7 +667,6 @@ lean_object* l_Lean_Elab_Term_assignLevelMVar(lean_object*, lean_object*, lean_o lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__5; lean_object* l_Lean_Elab_Term_resolveLocalName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3342____closed__4; -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCompletion___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_strLitKind___closed__2; lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -856,7 +850,6 @@ uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l_Lean_Meta_mkPure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; lean_object* l_Lean_pushScope___at_Lean_Elab_Term_elabOpen___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Term_completion___elambda__1___closed__2; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe_match__3___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); @@ -879,7 +872,6 @@ lean_object* l_Lean_Elab_Term_elabSyntheticHole___closed__4; extern lean_object* l_Lean_Parser_Term_cdot___elambda__1___closed__2; lean_object* l_List_replace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__8___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName___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* l___regBuiltin_Lean_Elab_Term_elabCompletion___closed__1; lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1186,6 +1178,7 @@ lean_object* l_Lean_Elab_Term_Context_currMacroScope___default; lean_object* l_Lean_Elab_Term_observing___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName(lean_object*); lean_object* l_Lean_Elab_Term_instAddErrorMessageContextTermElabM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabPipeCompletion___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resolveName_x27_match__6(lean_object*); uint8_t l___private_Lean_Attributes_0__Lean_beqAttributeApplicationTime____x40_Lean_Attributes___hyg_11_(uint8_t, uint8_t); lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__3; @@ -1196,6 +1189,7 @@ lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___lambda__3(lean_object*, le lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Term_resolveName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabDoubleQuotedName(lean_object*); +lean_object* l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__1; lean_object* l_Lean_Meta_mkSyntheticSorry(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedName; lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFns___closed__3; @@ -1252,6 +1246,8 @@ lean_object* l_Lean_Meta_mkFreshLevelMVars(lean_object*, lean_object*, lean_obje lean_object* lean_mk_array(lean_object*, lean_object*); extern size_t l_Std_PersistentHashMap_insertAux___rarg___closed__2; lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__1; +lean_object* l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__2; +lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabPipeCompletion___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerSyntheticMVarWithCurrRef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambdaAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSetOption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1331,7 +1327,7 @@ lean_object* l_Lean_Elab_Term_applyResult___rarg(lean_object*, lean_object*, lea lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwErrorIfErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12070_(lean_object*); +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12067_(lean_object*); lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_3320____closed__2; lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1421,7 +1417,6 @@ lean_object* l_Lean_Elab_Term_mkAuxName___boxed(lean_object*, lean_object*, lean lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_findUserName_x3f(lean_object*, lean_object*); lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabCompletion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_addTermInfo___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabScientificLit_match__1(lean_object*); lean_object* l_Lean_Meta_setMCtx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1433,6 +1428,7 @@ lean_object* l_Lean_Elab_Term_elabStrLit(lean_object*, lean_object*, lean_object lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr_mkMessage_match__1(lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_resolveName_x27___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabPipeCompletion___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___closed__2; lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__4; lean_object* l_Lean_Elab_Term_synthesizeCoeInstMVarCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -32779,7 +32775,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabCompletion___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabPipeCompletion___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { 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; uint8_t x_16; @@ -32827,7 +32823,7 @@ return x_22; } } } -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCompletion___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabPipeCompletion___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { uint8_t x_10; @@ -32839,7 +32835,7 @@ x_11 = lean_ctor_get(x_7, 3); x_12 = l_Lean_replaceRef(x_1, x_11); lean_dec(x_11); lean_ctor_set(x_7, 3, x_12); -x_13 = l_Lean_throwError___at_Lean_Elab_Term_elabCompletion___spec__2(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = l_Lean_throwError___at_Lean_Elab_Term_elabPipeCompletion___spec__2(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_7); return x_13; } @@ -32874,13 +32870,13 @@ lean_ctor_set(x_23, 4, x_18); lean_ctor_set(x_23, 5, x_19); lean_ctor_set(x_23, 6, x_20); lean_ctor_set(x_23, 7, x_21); -x_24 = l_Lean_throwError___at_Lean_Elab_Term_elabCompletion___spec__2(x_2, x_3, x_4, x_5, x_6, x_23, x_8, x_9); +x_24 = l_Lean_throwError___at_Lean_Elab_Term_elabPipeCompletion___spec__2(x_2, x_3, x_4, x_5, x_6, x_23, x_8, x_9); lean_dec(x_23); return x_24; } } } -static lean_object* _init_l_Lean_Elab_Term_elabCompletion___lambda__1___closed__1() { +static lean_object* _init_l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -32888,28 +32884,28 @@ x_1 = lean_mk_string("invalid field notation, identifier or numeral expected"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_elabCompletion___lambda__1___closed__2() { +static lean_object* _init_l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabCompletion___lambda__1___closed__1; +x_1 = l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_elabCompletion___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* l_Lean_Elab_Term_elabPipeCompletion___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) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_unsigned_to_nat(1u); x_11 = l_Lean_Syntax_getArg(x_1, x_10); -x_12 = l_Lean_Elab_Term_elabCompletion___lambda__1___closed__2; -x_13 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCompletion___spec__1(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__2; +x_13 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabPipeCompletion___spec__1(x_11, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_11); return x_13; } } -lean_object* l_Lean_Elab_Term_elabCompletion(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* l_Lean_Elab_Term_elabPipeCompletion(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; @@ -32943,7 +32939,7 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); -x_21 = l_Lean_Elab_Term_elabCompletion___lambda__1(x_1, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_20); +x_21 = l_Lean_Elab_Term_elabPipeCompletion___lambda__1(x_1, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_20); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -32958,7 +32954,7 @@ lean_object* x_22; lean_object* x_23; lean_dec(x_15); lean_dec(x_2); x_22 = lean_box(0); -x_23 = l_Lean_Elab_Term_elabCompletion___lambda__1(x_1, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_16); +x_23 = l_Lean_Elab_Term_elabPipeCompletion___lambda__1(x_1, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_16); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -32999,11 +32995,11 @@ return x_27; } } } -lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabCompletion___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabPipeCompletion___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_throwError___at_Lean_Elab_Term_elabCompletion___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_throwError___at_Lean_Elab_Term_elabPipeCompletion___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -33012,11 +33008,11 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCompletion___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabPipeCompletion___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCompletion___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabPipeCompletion___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -33025,11 +33021,11 @@ lean_dec(x_1); return x_10; } } -lean_object* l_Lean_Elab_Term_elabCompletion___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* l_Lean_Elab_Term_elabPipeCompletion___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) { _start: { lean_object* x_10; -x_10 = l_Lean_Elab_Term_elabCompletion___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Elab_Term_elabPipeCompletion___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); @@ -33039,33 +33035,6 @@ lean_dec(x_1); return x_10; } } -static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCompletion___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabCompletion), 9, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Elab_Term_elabCompletion(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l_Lean_Parser_Term_completion___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Elab_Term_elabCompletion___closed__1; -x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); -return x_5; -} -} -lean_object* l_Lean_Elab_Term_elabPipeCompletion(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_Elab_Term_elabCompletion(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_10; -} -} static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPipeCompletion___closed__1() { _start: { @@ -37325,7 +37294,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_Elab_Term_getFVarLocalDecl_x21___closed__2; x_2 = l_List_mapM___at_Lean_Elab_Term_resolveName_x27___spec__6___closed__2; -x_3 = lean_unsigned_to_nat(1383u); +x_3 = lean_unsigned_to_nat(1381u); x_4 = lean_unsigned_to_nat(31u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -53506,7 +53475,7 @@ lean_dec(x_3); return x_11; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12070____closed__1() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12067____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -53516,7 +53485,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12070_(lean_object* x_1) { +lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12067_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -53528,7 +53497,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12070____closed__1; +x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12067____closed__1; x_6 = l_Lean_registerTraceClass(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -54023,15 +53992,10 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTypeStx___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabTypeStx(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Term_elabCompletion___lambda__1___closed__1 = _init_l_Lean_Elab_Term_elabCompletion___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_elabCompletion___lambda__1___closed__1); -l_Lean_Elab_Term_elabCompletion___lambda__1___closed__2 = _init_l_Lean_Elab_Term_elabCompletion___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_elabCompletion___lambda__1___closed__2); -l___regBuiltin_Lean_Elab_Term_elabCompletion___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabCompletion___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCompletion___closed__1); -res = l___regBuiltin_Lean_Elab_Term_elabCompletion(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); +l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__1 = _init_l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__1); +l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__2 = _init_l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__2); l___regBuiltin_Lean_Elab_Term_elabPipeCompletion___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabPipeCompletion___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabPipeCompletion___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabPipeCompletion(lean_io_mk_world()); @@ -54229,9 +54193,9 @@ l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed_ lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__3); l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__4 = _init_l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__4(); lean_mark_persistent(l___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___closed__4); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12070____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12070____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12070____closed__1); -res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12070_(lean_io_mk_world()); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12067____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12067____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12067____closed__1); +res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_12067_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Parser/Module.c b/stage0/stdlib/Lean/Parser/Module.c index de132893d5..5728159b45 100644 --- a/stage0/stdlib/Lean/Parser/Module.c +++ b/stage0/stdlib/Lean/Parser/Module.c @@ -2970,7 +2970,7 @@ return x_25; } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; +lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; uint8_t x_30; x_26 = lean_ctor_get(x_19, 0); lean_inc(x_26); lean_dec(x_19); @@ -2978,32 +2978,32 @@ x_27 = lean_ctor_get(x_18, 2); lean_inc(x_27); x_28 = lean_nat_dec_eq(x_27, x_5); lean_dec(x_5); +x_29 = lean_ctor_get(x_18, 0); +lean_inc(x_29); +lean_dec(x_18); +x_30 = l_Array_isEmpty___rarg(x_29); if (x_28 == 0) { if (x_6 == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_29 = l_Lean_Parser_Error_toString(x_26); -x_30 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_11, x_27, x_29); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = l_Lean_Parser_Error_toString(x_26); +x_32 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_11, x_27, x_31); lean_dec(x_11); -x_31 = l_Std_PersistentArray_push___rarg(x_4, x_30); -x_32 = lean_ctor_get(x_18, 0); -lean_inc(x_32); -lean_dec(x_18); -x_33 = l_Array_isEmpty___rarg(x_32); -if (x_33 == 0) +x_33 = l_Std_PersistentArray_push___rarg(x_4, x_32); +if (x_30 == 0) { lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_dec(x_2); lean_dec(x_1); -x_34 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_32); -lean_dec(x_32); +x_34 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_29); +lean_dec(x_29); x_35 = 1; lean_ctor_set(x_3, 0, x_27); lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_35); x_36 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_36, 0, x_3); -lean_ctor_set(x_36, 1, x_31); +lean_ctor_set(x_36, 1, x_33); x_37 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_37, 0, x_34); lean_ctor_set(x_37, 1, x_36); @@ -3012,289 +3012,385 @@ return x_37; else { uint8_t x_38; -lean_dec(x_32); +lean_dec(x_29); x_38 = 1; lean_ctor_set(x_3, 0, x_27); lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_38); -x_4 = x_31; +x_4 = x_33; goto _start; } } else { -uint8_t x_40; -lean_dec(x_26); -lean_dec(x_18); -lean_dec(x_11); -x_40 = 1; -lean_ctor_set(x_3, 0, x_27); -lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_40); -goto _start; -} -} -else +if (x_30 == 0) { -lean_object* x_42; -lean_inc(x_27); -lean_inc(x_11); -x_42 = l___private_Lean_Parser_Module_0__Lean_Parser_consumeInput(x_11, x_27); -if (x_6 == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_43 = l_Lean_Parser_Error_toString(x_26); -x_44 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_11, x_27, x_43); -lean_dec(x_27); -lean_dec(x_11); -x_45 = l_Std_PersistentArray_push___rarg(x_4, x_44); -x_46 = lean_ctor_get(x_18, 0); -lean_inc(x_46); -lean_dec(x_18); -x_47 = l_Array_isEmpty___rarg(x_46); -if (x_47 == 0) -{ -lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_dec(x_2); lean_dec(x_1); -x_48 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_46); -lean_dec(x_46); -x_49 = 1; -lean_ctor_set(x_3, 0, x_42); -lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_49); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_3); -lean_ctor_set(x_50, 1, x_45); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_48); -lean_ctor_set(x_51, 1, x_50); -return x_51; +x_40 = l_Lean_Parser_Error_toString(x_26); +x_41 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_11, x_27, x_40); +lean_dec(x_11); +x_42 = l_Std_PersistentArray_push___rarg(x_4, x_41); +x_43 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_29); +lean_dec(x_29); +x_44 = 1; +lean_ctor_set(x_3, 0, x_27); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_44); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_3); +lean_ctor_set(x_45, 1, x_42); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_45); +return x_46; } else { -uint8_t x_52; -lean_dec(x_46); -x_52 = 1; -lean_ctor_set(x_3, 0, x_42); -lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_52); -x_4 = x_45; +uint8_t x_47; +lean_dec(x_29); +lean_dec(x_26); +lean_dec(x_11); +x_47 = 1; +lean_ctor_set(x_3, 0, x_27); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_47); +goto _start; +} +} +} +else +{ +lean_object* x_49; +lean_inc(x_27); +lean_inc(x_11); +x_49 = l___private_Lean_Parser_Module_0__Lean_Parser_consumeInput(x_11, x_27); +if (x_6 == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = l_Lean_Parser_Error_toString(x_26); +x_51 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_11, x_27, x_50); +lean_dec(x_27); +lean_dec(x_11); +x_52 = l_Std_PersistentArray_push___rarg(x_4, x_51); +if (x_30 == 0) +{ +lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_2); +lean_dec(x_1); +x_53 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_29); +lean_dec(x_29); +x_54 = 1; +lean_ctor_set(x_3, 0, x_49); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_54); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_3); +lean_ctor_set(x_55, 1, x_52); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +else +{ +uint8_t x_57; +lean_dec(x_29); +x_57 = 1; +lean_ctor_set(x_3, 0, x_49); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_57); +x_4 = x_52; goto _start; } } else { -uint8_t x_54; +if (x_30 == 0) +{ +lean_object* x_59; 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_dec(x_2); +lean_dec(x_1); +x_59 = l_Lean_Parser_Error_toString(x_26); +x_60 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_11, x_27, x_59); +lean_dec(x_27); +lean_dec(x_11); +x_61 = l_Std_PersistentArray_push___rarg(x_4, x_60); +x_62 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_29); +lean_dec(x_29); +x_63 = 1; +lean_ctor_set(x_3, 0, x_49); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_63); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_3); +lean_ctor_set(x_64, 1, x_61); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +else +{ +uint8_t x_66; +lean_dec(x_29); lean_dec(x_27); lean_dec(x_26); -lean_dec(x_18); lean_dec(x_11); -x_54 = 1; -lean_ctor_set(x_3, 0, x_42); -lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_54); +x_66 = 1; +lean_ctor_set(x_3, 0, x_49); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_66); goto _start; } } } } +} else { -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_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_dec(x_3); lean_inc(x_2); lean_inc(x_1); -x_56 = l_Lean_Parser_mkParserContext(x_1, x_2); -x_57 = l_Lean_Parser_initCacheForInput(x_7); +x_68 = l_Lean_Parser_mkParserContext(x_1, x_2); +x_69 = l_Lean_Parser_initCacheForInput(x_7); lean_dec(x_7); -x_58 = lean_box(0); -x_59 = l_Array_empty___closed__1; -x_60 = lean_unsigned_to_nat(0u); +x_70 = lean_box(0); +x_71 = l_Array_empty___closed__1; +x_72 = lean_unsigned_to_nat(0u); lean_inc(x_5); -x_61 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -lean_ctor_set(x_61, 2, x_5); -lean_ctor_set(x_61, 3, x_57); -lean_ctor_set(x_61, 4, x_58); -x_62 = l_Lean_Parser_whitespace(x_56, x_61); -lean_inc(x_56); -x_63 = l_Lean_Parser_topLevelCommandParserFn(x_56, x_62); -x_64 = lean_ctor_get(x_63, 4); -lean_inc(x_64); -if (lean_obj_tag(x_64) == 0) +x_73 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +lean_ctor_set(x_73, 2, x_5); +lean_ctor_set(x_73, 3, x_69); +lean_ctor_set(x_73, 4, x_70); +x_74 = l_Lean_Parser_whitespace(x_68, x_73); +lean_inc(x_68); +x_75 = l_Lean_Parser_topLevelCommandParserFn(x_68, x_74); +x_76 = lean_ctor_get(x_75, 4); +lean_inc(x_76); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -lean_dec(x_56); +lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_68); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_65 = lean_ctor_get(x_63, 0); -lean_inc(x_65); -x_66 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_65); -lean_dec(x_65); -x_67 = lean_ctor_get(x_63, 2); -lean_inc(x_67); -lean_dec(x_63); -x_68 = 0; -x_69 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set_uint8(x_69, sizeof(void*)*1, x_68); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_4); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_66); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -else -{ -lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_72 = lean_ctor_get(x_64, 0); -lean_inc(x_72); -lean_dec(x_64); -x_73 = lean_ctor_get(x_63, 2); -lean_inc(x_73); -x_74 = lean_nat_dec_eq(x_73, x_5); -lean_dec(x_5); -if (x_74 == 0) -{ -if (x_6 == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_75 = l_Lean_Parser_Error_toString(x_72); -x_76 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_56, x_73, x_75); -lean_dec(x_56); -x_77 = l_Std_PersistentArray_push___rarg(x_4, x_76); -x_78 = lean_ctor_get(x_63, 0); -lean_inc(x_78); -lean_dec(x_63); -x_79 = l_Array_isEmpty___rarg(x_78); -if (x_79 == 0) -{ -lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -lean_dec(x_2); -lean_dec(x_1); -x_80 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_78); -lean_dec(x_78); -x_81 = 1; -x_82 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_82, 0, x_73); -lean_ctor_set_uint8(x_82, sizeof(void*)*1, x_81); +x_77 = lean_ctor_get(x_75, 0); +lean_inc(x_77); +x_78 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_77); +lean_dec(x_77); +x_79 = lean_ctor_get(x_75, 2); +lean_inc(x_79); +lean_dec(x_75); +x_80 = 0; +x_81 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set_uint8(x_81, sizeof(void*)*1, x_80); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_4); x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_77); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_80); -lean_ctor_set(x_84, 1, x_83); -return x_84; +lean_ctor_set(x_83, 0, x_78); +lean_ctor_set(x_83, 1, x_82); +return x_83; } else { -uint8_t x_85; lean_object* x_86; -lean_dec(x_78); -x_85 = 1; -x_86 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_86, 0, x_73); -lean_ctor_set_uint8(x_86, sizeof(void*)*1, x_85); -x_3 = x_86; -x_4 = x_77; -goto _start; -} -} -else +lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; uint8_t x_88; +x_84 = lean_ctor_get(x_76, 0); +lean_inc(x_84); +lean_dec(x_76); +x_85 = lean_ctor_get(x_75, 2); +lean_inc(x_85); +x_86 = lean_nat_dec_eq(x_85, x_5); +lean_dec(x_5); +x_87 = lean_ctor_get(x_75, 0); +lean_inc(x_87); +lean_dec(x_75); +x_88 = l_Array_isEmpty___rarg(x_87); +if (x_86 == 0) { -uint8_t x_88; lean_object* x_89; -lean_dec(x_72); -lean_dec(x_63); -lean_dec(x_56); -x_88 = 1; -x_89 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_89, 0, x_73); -lean_ctor_set_uint8(x_89, sizeof(void*)*1, x_88); -x_3 = x_89; -goto _start; -} -} -else -{ -lean_object* x_91; -lean_inc(x_73); -lean_inc(x_56); -x_91 = l___private_Lean_Parser_Module_0__Lean_Parser_consumeInput(x_56, x_73); if (x_6 == 0) { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; -x_92 = l_Lean_Parser_Error_toString(x_72); -x_93 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_56, x_73, x_92); -lean_dec(x_73); -lean_dec(x_56); -x_94 = l_Std_PersistentArray_push___rarg(x_4, x_93); -x_95 = lean_ctor_get(x_63, 0); -lean_inc(x_95); -lean_dec(x_63); -x_96 = l_Array_isEmpty___rarg(x_95); -if (x_96 == 0) +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = l_Lean_Parser_Error_toString(x_84); +x_90 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_68, x_85, x_89); +lean_dec(x_68); +x_91 = l_Std_PersistentArray_push___rarg(x_4, x_90); +if (x_88 == 0) { -lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_object* x_92; uint8_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_dec(x_2); lean_dec(x_1); -x_97 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_95); -lean_dec(x_95); -x_98 = 1; -x_99 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_99, 0, x_91); -lean_ctor_set_uint8(x_99, sizeof(void*)*1, x_98); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_94); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_97); -lean_ctor_set(x_101, 1, x_100); -return x_101; +x_92 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_87); +lean_dec(x_87); +x_93 = 1; +x_94 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_94, 0, x_85); +lean_ctor_set_uint8(x_94, sizeof(void*)*1, x_93); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_91); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_92); +lean_ctor_set(x_96, 1, x_95); +return x_96; } else { -uint8_t x_102; lean_object* x_103; -lean_dec(x_95); -x_102 = 1; -x_103 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_103, 0, x_91); -lean_ctor_set_uint8(x_103, sizeof(void*)*1, x_102); -x_3 = x_103; -x_4 = x_94; +uint8_t x_97; lean_object* x_98; +lean_dec(x_87); +x_97 = 1; +x_98 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_98, 0, x_85); +lean_ctor_set_uint8(x_98, sizeof(void*)*1, x_97); +x_3 = x_98; +x_4 = x_91; goto _start; } } else { -uint8_t x_105; lean_object* x_106; -lean_dec(x_73); -lean_dec(x_72); -lean_dec(x_63); -lean_dec(x_56); -x_105 = 1; -x_106 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_106, 0, x_91); -lean_ctor_set_uint8(x_106, sizeof(void*)*1, x_105); -x_3 = x_106; +if (x_88 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_2); +lean_dec(x_1); +x_100 = l_Lean_Parser_Error_toString(x_84); +x_101 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_68, x_85, x_100); +lean_dec(x_68); +x_102 = l_Std_PersistentArray_push___rarg(x_4, x_101); +x_103 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_87); +lean_dec(x_87); +x_104 = 1; +x_105 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_105, 0, x_85); +lean_ctor_set_uint8(x_105, sizeof(void*)*1, x_104); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_102); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_103); +lean_ctor_set(x_107, 1, x_106); +return x_107; +} +else +{ +uint8_t x_108; lean_object* x_109; +lean_dec(x_87); +lean_dec(x_84); +lean_dec(x_68); +x_108 = 1; +x_109 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_109, 0, x_85); +lean_ctor_set_uint8(x_109, sizeof(void*)*1, x_108); +x_3 = x_109; +goto _start; +} +} +} +else +{ +lean_object* x_111; +lean_inc(x_85); +lean_inc(x_68); +x_111 = l___private_Lean_Parser_Module_0__Lean_Parser_consumeInput(x_68, x_85); +if (x_6 == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = l_Lean_Parser_Error_toString(x_84); +x_113 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_68, x_85, x_112); +lean_dec(x_85); +lean_dec(x_68); +x_114 = l_Std_PersistentArray_push___rarg(x_4, x_113); +if (x_88 == 0) +{ +lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_2); +lean_dec(x_1); +x_115 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_87); +lean_dec(x_87); +x_116 = 1; +x_117 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_117, 0, x_111); +lean_ctor_set_uint8(x_117, sizeof(void*)*1, x_116); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_114); +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_115); +lean_ctor_set(x_119, 1, x_118); +return x_119; +} +else +{ +uint8_t x_120; lean_object* x_121; +lean_dec(x_87); +x_120 = 1; +x_121 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_121, 0, x_111); +lean_ctor_set_uint8(x_121, sizeof(void*)*1, x_120); +x_3 = x_121; +x_4 = x_114; +goto _start; +} +} +else +{ +if (x_88 == 0) +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +lean_dec(x_2); +lean_dec(x_1); +x_123 = l_Lean_Parser_Error_toString(x_84); +x_124 = l___private_Lean_Parser_Module_0__Lean_Parser_mkErrorMessage(x_68, x_85, x_123); +lean_dec(x_85); +lean_dec(x_68); +x_125 = l_Std_PersistentArray_push___rarg(x_4, x_124); +x_126 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_87); +lean_dec(x_87); +x_127 = 1; +x_128 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_128, 0, x_111); +lean_ctor_set_uint8(x_128, sizeof(void*)*1, x_127); +x_129 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_125); +x_130 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_126); +lean_ctor_set(x_130, 1, x_129); +return x_130; +} +else +{ +uint8_t x_131; lean_object* x_132; +lean_dec(x_87); +lean_dec(x_85); +lean_dec(x_84); +lean_dec(x_68); +x_131 = 1; +x_132 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_132, 0, x_111); +lean_ctor_set_uint8(x_132, sizeof(void*)*1, x_131); +x_3 = x_132; goto _start; } } } } } +} else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_dec(x_7); lean_dec(x_2); lean_dec(x_1); -x_108 = l___private_Lean_Parser_Module_0__Lean_Parser_mkEOI(x_5); -x_109 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_109, 0, x_3); -lean_ctor_set(x_109, 1, x_4); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -return x_110; +x_134 = l___private_Lean_Parser_Module_0__Lean_Parser_mkEOI(x_5); +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_3); +lean_ctor_set(x_135, 1, x_4); +x_136 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_136, 0, x_134); +lean_ctor_set(x_136, 1, x_135); +return x_136; } } } diff --git a/stage0/stdlib/Lean/Parser/Term.c b/stage0/stdlib/Lean/Parser/Term.c index 64542582b8..26f90ede1f 100644 --- a/stage0/stdlib/Lean/Parser/Term.c +++ b/stage0/stdlib/Lean/Parser/Term.c @@ -50,7 +50,6 @@ extern lean_object* l_Lean_Name_toString___closed__1; lean_object* l_Lean_Parser_Term_dynamicQuot___closed__11; lean_object* l_Lean_Parser_Term_letrec_formatter___closed__4; lean_object* l_Lean_Parser_Term_paren_formatter___closed__5; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__26; lean_object* l_Lean_Parser_Term_instBinder_formatter___closed__5; lean_object* l_Lean_Parser_Term_trailing__parser___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_letIdDecl; @@ -82,6 +81,7 @@ lean_object* l_Lean_Parser_Term_sufficesDecl_parenthesizer___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Term_suffices(lean_object*); lean_object* l_Lean_Parser_Term_proj_formatter___closed__2; lean_object* l_Lean_Parser_Term_stateRefT___closed__3; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__3; lean_object* l_Lean_Parser_Term_paren_formatter___closed__3; lean_object* l_Lean_Parser_Term_explicit___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_subst; @@ -101,6 +101,7 @@ lean_object* l_Lean_Parser_Term_nomatch_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_letPatDecl___closed__9; lean_object* l_Lean_Parser_Term_macroLastArg_formatter___closed__2; lean_object* l___regBuiltin_Lean_Parser_Term_pipeCompletion_parenthesizer___closed__1; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__14; lean_object* l___regBuiltin_Lean_Parser_Term_forall_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_have_parenthesizer___closed__7; @@ -336,7 +337,6 @@ lean_object* l_Lean_Parser_Term_forall___elambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1139____closed__30; lean_object* l_Lean_Parser_Term_optType_parenthesizer___closed__1; lean_object* l_Lean_Parser_setLhsPrecFn(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_completion_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_lookahead_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_argument___closed__7; lean_object* l_Lean_Parser_Term_inaccessible___closed__9; @@ -355,6 +355,7 @@ lean_object* l_Lean_PrettyPrinter_Parenthesizer_evalInsideQuot_parenthesizer___r lean_object* l_Lean_Parser_Term_match_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_seq1___elambda__1___closed__4; lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkStackTop_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__20; extern lean_object* l_myMacro____x40_Init_Notation___hyg_2278____closed__2; lean_object* l_Lean_Parser_Term_pipeProj_parenthesizer___closed__2; lean_object* l___regBuiltin_Lean_Parser_Term_ensureTypeOf_formatter(lean_object*); @@ -476,7 +477,6 @@ lean_object* l_Lean_Parser_Term_panic___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_prop; lean_object* l_Lean_Parser_Term_proj_formatter___closed__1; lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__5; -lean_object* l_Lean_Parser_Term_completion_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_stateRefT_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_ellipsis___elambda__1___closed__7; @@ -531,6 +531,7 @@ lean_object* l_Lean_Parser_Term_dbgTrace_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_explicitUniv_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_trailing__parser_formatter___closed__1; lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__3; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__10; lean_object* l_Lean_Parser_Term_binderTactic_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_pipeCompletion; lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__1; @@ -545,7 +546,6 @@ lean_object* l___regBuiltin_Lean_Parser_Term_paren_formatter(lean_object*); lean_object* l_Lean_Parser_Term_subst___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_borrowed___closed__9; lean_object* l___regBuiltin_Lean_Parser_Term_fun_formatter(lean_object*); -lean_object* l_Lean_Parser_Term_completion___closed__7; lean_object* l_Lean_Parser_Term_fromTerm_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_haveDecl_formatter___closed__4; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__8; @@ -566,6 +566,7 @@ lean_object* l_Lean_Parser_Term_type_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_pipeProj___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_binderDefault___elambda__1___closed__7; extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1139____closed__26; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__12; lean_object* l_Lean_Parser_Term_implicitBinder_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_paren___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_letRecDecl_parenthesizer___closed__6; @@ -573,7 +574,6 @@ lean_object* l___regBuiltin_Lean_Parser_Term_emptyC_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_ensureExpectedType___elambda__1___closed__9; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__8; extern lean_object* l_Lean_Parser_scientificLit; -lean_object* l_Lean_Parser_Term_completion___elambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__12; lean_object* l_Lean_Parser_Term_type___closed__6; lean_object* l_Lean_Parser_Tactic_tacticSeq1Indented___elambda__1___closed__9; @@ -611,10 +611,10 @@ lean_object* l_Lean_Parser_Term_fun_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_doubleQuotedName_parenthesizer___closed__3; lean_object* l___regBuiltinParser_Lean_Parser_Term_emptyC(lean_object*); lean_object* l_Lean_Parser_Term_explicitBinder_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__26; lean_object* l_Lean_Parser_Term_quotedName___closed__3; lean_object* l_Lean_Parser_Term_pipeProj___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_subst___closed__6; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__3; lean_object* l_Lean_Parser_Term_structInst_formatter___closed__19; lean_object* l___regBuiltin_Lean_Parser_Term_scientific_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_explicitUniv_formatter___closed__7; @@ -638,7 +638,6 @@ lean_object* l_Lean_Parser_Term_anonymousCtor___closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_assert_formatter(lean_object*); lean_object* l_Lean_Parser_Term_pipeProj_formatter___closed__5; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__6; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__15; lean_object* l_Lean_Parser_Term_explicitUniv_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_let__fun___closed__1; lean_object* l_Lean_Parser_Term_bracketedBinder_quot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -653,7 +652,6 @@ lean_object* l_Lean_Parser_Tactic_seq1___elambda__1___closed__1; lean_object* l_Lean_Parser_nonReservedSymbolFn(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_fromTerm___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__5; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__14; lean_object* l___regBuiltin_Lean_Parser_Term_dbgTrace_formatter___closed__1; lean_object* l_Lean_Parser_Term_emptyC___closed__7; lean_object* l_Lean_Parser_Term_attributes___closed__9; @@ -664,7 +662,6 @@ extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; lean_object* l_Lean_Parser_Term_emptyC_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_tacticSeq_parenthesizer___closed__1; lean_object* l_Lean_Parser_ParserState_mkNode(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__28; lean_object* l_Lean_Parser_Term_ident___closed__1; lean_object* l_Lean_Parser_Term_dynamicQuot___closed__4; lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__10; @@ -710,7 +707,6 @@ lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__1; lean_object* l_Lean_Parser_Tactic_tacticSeq1Indented___elambda__1___closed__13; lean_object* l_Lean_Parser_Term_paren_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_seq1_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__20; lean_object* l_Lean_Parser_Term_namedArgument___closed__3; lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed___elambda__1___closed__11; @@ -843,7 +839,6 @@ lean_object* l_Lean_Parser_Term_attr_quot_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_sorry_formatter___closed__2; lean_object* l_Lean_Parser_Term_hole_formatter___closed__2; lean_object* l_Lean_Parser_Term_borrowed_parenthesizer___closed__3; -lean_object* l_Lean_Parser_Term_completion_formatter___closed__1; lean_object* l_Lean_Parser_Command_docComment___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_assert___elambda__1___closed__10; @@ -851,7 +846,6 @@ lean_object* l___regBuiltinParser_Lean_Parser_Term_let(lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_toggleInsideQuot_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_type___elambda__1___closed__16; lean_object* l_Lean_Parser_Term_type_formatter___closed__5; -lean_object* l___regBuiltin_Lean_Parser_Term_completion_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_dbgTrace___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_let__delayed___closed__9; lean_object* l_Lean_Parser_Term_whereDecls_formatter___closed__3; @@ -867,7 +861,6 @@ lean_object* l_Lean_Parser_Term_optEllipsis___closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_fun_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_optType___closed__1; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__10; lean_object* l_Lean_Parser_Term_local___closed__4; lean_object* l_Lean_Parser_Term_funBinder; lean_object* l_Lean_Parser_Term_structInst_parenthesizer___closed__1; @@ -982,7 +975,6 @@ lean_object* l_Lean_Parser_Term_forall_parenthesizer___closed__8; lean_object* l_Lean_Parser_Term_type___elambda__1___closed__14; lean_object* l_Lean_Parser_Tactic_tacticSeq1Indented___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__2; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__12; lean_object* l_Lean_Parser_Term_bracketedBinder_quot_formatter___closed__6; lean_object* l_Lean_Parser_Term_binderType(uint8_t); lean_object* l_Lean_Parser_Term_pipeCompletion___elambda__1(lean_object*, lean_object*); @@ -1124,6 +1116,7 @@ lean_object* l_Lean_Parser_Term_whereDecls_formatter___closed__2; lean_object* l_Lean_Parser_Term_structInst_formatter___closed__8; lean_object* l___regBuiltin_Lean_Parser_Term_type_formatter(lean_object*); lean_object* l_Lean_Parser_Term_noindex___closed__2; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__13; lean_object* l_Lean_Parser_Term_matchDiscr___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_scientific_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_match___closed__3; @@ -1191,7 +1184,6 @@ extern lean_object* l_Lean_Parser_Tactic_subst___closed__1; lean_object* l_Lean_Parser_Term_doubleQuotedName___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_depArrow___closed__8; lean_object* l_Lean_Parser_Term_bracketedBinder_quot___elambda__1___closed__15; -lean_object* l_Lean_Parser_Term_completion___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_sorry(lean_object*); lean_object* l_Lean_Parser_Term_nomatch___closed__4; lean_object* l_Lean_Parser_Term_whereDecls___closed__2; @@ -1241,7 +1233,6 @@ extern lean_object* l_Lean_Parser_mkAntiquotSplice___closed__9; lean_object* l_Lean_Parser_Term_assert_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_haveDecl___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_structInstLVal___elambda__1___closed__4; -lean_object* l_Lean_Parser_Term_completion___closed__3; lean_object* l_Lean_Parser_Term_cdot___closed__3; extern lean_object* l_myMacro____x40_Init_Notation___hyg_15378____closed__7; lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1___closed__4; @@ -1310,6 +1301,7 @@ lean_object* l_Lean_Parser_Term_let___closed__2; lean_object* l_Lean_Parser_Term_byTactic___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_binderTactic_formatter___closed__5; extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_634____closed__22; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__23; lean_object* l___regBuiltinParser_Lean_Parser_Term_app(lean_object*); lean_object* l_Lean_Parser_Term_structInst___closed__9; lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__7; @@ -1326,7 +1318,6 @@ lean_object* l_Lean_Parser_Term_structInstLVal___closed__3; lean_object* l_Lean_Parser_Term_fun___closed__6; lean_object* l_Lean_Parser_Tactic_quot___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_quotSeq_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__16; lean_object* l_Lean_Parser_Term_matchDiscr___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_num___closed__2; lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__5; @@ -1418,7 +1409,6 @@ lean_object* l_Lean_Parser_Term_attributes___closed__3; lean_object* l_Lean_Parser_Term_matchAlt_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_938____closed__17; lean_object* l_Lean_Parser_Term_forInMacro___elambda__1___closed__13; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__5; lean_object* l_Lean_Parser_Term_structInst_formatter___closed__2; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__14; lean_object* l___regBuiltin_Lean_Parser_Term_binrel_formatter___closed__1; @@ -1428,7 +1418,6 @@ lean_object* l_Lean_Parser_Term_scientific___closed__3; lean_object* l_Lean_Parser_Term_type___elambda__1___closed__18; lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_stateRefT_formatter(lean_object*); -lean_object* l___regBuiltinParser_Lean_Parser_Term_completion(lean_object*); extern lean_object* l_Lean_instToStringAttributeKind___closed__3; extern lean_object* l_myMacro____x40_Init_Notation___hyg_13856____closed__9; lean_object* l_Lean_Parser_Term_ensureExpectedType___elambda__1___closed__11; @@ -1517,7 +1506,6 @@ lean_object* l_Lean_Parser_symbolFn___boxed(lean_object*, lean_object*, lean_obj lean_object* l___regBuiltin_Lean_Parser_Term_funBinder_quot_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_type___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_subst_formatter___closed__2; -lean_object* l_Lean_Parser_Term_completion___closed__6; lean_object* l_Lean_Parser_Term_bracketedBinder_quot___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_letEqnsDecl___closed__5; lean_object* l_Lean_Parser_Term_let___closed__4; @@ -1576,16 +1564,14 @@ lean_object* l_Lean_Parser_Term_parenSpecial___closed__3; extern lean_object* l_Lean_Parser_antiquotNestedExpr___closed__2; lean_object* l_Lean_Parser_Tactic_tacticSeq_formatter___closed__1; lean_object* l_Lean_Parser_Term_dynamicQuot_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Parser_Term_completion_formatter___closed__1; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__22; lean_object* l_Lean_Parser_Term_attr_quot___elambda__1___closed__13; lean_object* l_Lean_Parser_Term_quotedName_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_dynamicQuot_formatter___closed__3; lean_object* l_Lean_Parser_Term_simpleBinderWithoutType_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_ensureTypeOf___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_letDecl; -lean_object* l_Lean_Parser_Term_completion___closed__5; lean_object* l_Lean_Parser_Term_ensureTypeOf___elambda__1(lean_object*, lean_object*); -lean_object* l___regBuiltin_Lean_Parser_Term_completion_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_type_parenthesizer___closed__8; lean_object* l_Lean_Parser_Term_haveDecl_formatter___closed__2; lean_object* l_Lean_Parser_Term_matchAltsWhereDecls_formatter___closed__1; @@ -1613,6 +1599,7 @@ lean_object* l_Lean_Parser_Term_bracketedBinder_quot___closed__3; lean_object* l_Lean_Parser_Term_haveAssign___closed__7; lean_object* l_Lean_Parser_Term_bracketedBinder_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_byTactic_parenthesizer___closed__3; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__7; extern lean_object* l_Lean_Parser_Tactic_myMacro____x40_Init_Notation___hyg_19477____closed__5; lean_object* l_Lean_Parser_Term_sufficesDecl___closed__5; lean_object* l_Lean_Parser_Term_argument_parenthesizer___closed__3; @@ -1630,7 +1617,6 @@ lean_object* l_Lean_Parser_Term_parenSpecial_formatter___closed__1; lean_object* l_Lean_Parser_Term_let__fun___elambda__1___closed__16; lean_object* l_Lean_Parser_Term_trailing__parser_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_explicitBinder_formatter___closed__8; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__18; lean_object* l_Lean_Parser_Term_explicitBinder___closed__7; lean_object* l_Lean_Parser_Term_match___closed__5; lean_object* l_Lean_Parser_checkWsBeforeFn(lean_object*, lean_object*, lean_object*); @@ -1653,7 +1639,6 @@ lean_object* l_Lean_Parser_Term_forall_formatter___closed__10; lean_object* l_Lean_Parser_Term_haveDecl_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_funBinder_quot___elambda__1___closed__14; lean_object* l_Lean_Parser_Term_paren_formatter___closed__8; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__13; lean_object* l_Lean_Parser_Term_letPatDecl_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_binrel___closed__3; lean_object* l_Lean_Parser_Term_structInstField_formatter___closed__3; @@ -1693,7 +1678,6 @@ lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__14; lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_typeSpec; lean_object* l_Lean_Parser_Term_leading__parser___closed__5; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__23; lean_object* l_Lean_Parser_Tactic_quot_formatter___closed__3; lean_object* l_Lean_Parser_Term_let__delayed_formatter___closed__4; extern lean_object* l_Lean_instToStringAttributeKind___closed__2; @@ -1720,6 +1704,7 @@ lean_object* l_Lean_Parser_Term_depArrow___closed__9; lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_typeOf___elambda__1___closed__2; lean_object* l_Lean_PrettyPrinter_Formatter_visitAtom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__24; lean_object* l___regBuiltin_Lean_Parser_Term_prop_formatter___closed__1; lean_object* l_Lean_Parser_Term_whereDecls___closed__7; lean_object* l_Lean_Parser_Term_stateRefT___elambda__1___closed__10; @@ -1873,6 +1858,7 @@ lean_object* l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__1; extern lean_object* l_Lean_Parser_argPrec; lean_object* l_Lean_Parser_Term_letRecDecls_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_panic___elambda__1___closed__3; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__16; lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__3; lean_object* l_Lean_Parser_Term_emptyC___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_fun_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1946,7 +1932,6 @@ lean_object* l_Lean_Parser_Term_emptyC___closed__2; lean_object* l_Lean_Parser_Term_whereDecls; lean_object* l_Lean_PrettyPrinter_Parenthesizer_withoutForbidden_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_subst_parenthesizer(lean_object*); -lean_object* l_Lean_Parser_Term_completion___closed__4; lean_object* l_Lean_Parser_Term_haveDecl_parenthesizer___closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_pipeProj_formatter___closed__1; lean_object* l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__4; @@ -1961,7 +1946,6 @@ lean_object* l_Lean_Parser_Term_structInstLVal_formatter___closed__11; lean_object* l_Lean_Parser_Term_have___closed__6; lean_object* l_Lean_Parser_Term_leading__parser___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_forInMacro___elambda__1___closed__6; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__22; lean_object* l_Lean_Parser_Term_assert_formatter___closed__4; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__34; extern lean_object* l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5662____spec__3___lambda__2___closed__2; @@ -2037,7 +2021,6 @@ lean_object* l_Lean_Parser_Term_binrel___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_instBinder___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_letIdDecl_formatter___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_dbgTrace_parenthesizer___closed__1; -lean_object* l___regBuiltin_Lean_Parser_Term_completion_formatter(lean_object*); lean_object* l_Lean_Parser_Term_borrowed_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_match_parenthesizer___closed__6; lean_object* l_Lean_Parser_Term_ensureTypeOf___closed__2; @@ -2066,6 +2049,7 @@ lean_object* l_Lean_Parser_Term_leading__parser_parenthesizer___closed__3; extern lean_object* l_Lean_Parser_maxPrec; lean_object* l_Lean_Parser_Term_local_formatter___closed__1; lean_object* l_Lean_Parser_Term_argument___elambda__1___closed__1; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__5; lean_object* l_Lean_Parser_Term_namedArgument___elambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1139____closed__13; lean_object* l_Lean_Parser_Term_forInMacro___elambda__1___closed__1; @@ -2085,7 +2069,6 @@ lean_object* l_Lean_Parser_Term_bracketedBinder_quot___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_whereDecls___closed__3; lean_object* l_Lean_Parser_Term_optExprPrecedence_formatter___closed__2; lean_object* l_Lean_Parser_Term_matchDiscr___elambda__1___closed__8; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__24; lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_funBinder_quot(lean_object*); lean_object* l_Lean_Parser_Term_letIdDecl_parenthesizer___closed__2; @@ -2098,6 +2081,7 @@ lean_object* l___regBuiltin_Lean_Parser_Term_emptyC_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_local___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_syntheticHole___closed__2; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__28; lean_object* l_Lean_Parser_Term_funImplicitBinder_parenthesizer___closed__2; lean_object* l___regBuiltin_Lean_Parser_Term_forInMacro_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_fromTerm___elambda__1___closed__1; @@ -2111,7 +2095,6 @@ lean_object* l_Lean_Parser_Term_binderDefault___elambda__1___closed__3; lean_object* l_Lean_Parser_many1Indent_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_arrayRef___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_attrParser_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__7; lean_object* l___regBuiltinParser_Lean_Parser_Term_anonymousCtor(lean_object*); extern lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extra___hyg_634____closed__16; lean_object* l_Lean_Parser_Term_optEllipsis_formatter___closed__3; @@ -2142,6 +2125,7 @@ lean_object* l_Lean_Parser_Term_structInstArrayRef_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_inaccessible_formatter___closed__5; lean_object* l_Lean_Parser_Term_haveDecl_parenthesizer___closed__8; lean_object* l___regBuiltin_Lean_Parser_Term_suffices_formatter(lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__15; lean_object* l_Lean_Parser_Term_haveDecl___closed__5; lean_object* l_Lean_Parser_Term_paren_formatter___closed__4; lean_object* l_Lean_Parser_Term_suffices___elambda__1___closed__6; @@ -2159,6 +2143,7 @@ lean_object* l_Lean_Parser_Term_dbgTrace___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_structInst_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_implicitBinder(uint8_t); lean_object* l___regBuiltin_Lean_Parser_Tactic_quot_formatter(lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__18; lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_namedPattern___closed__6; extern lean_object* l_Lean_PrettyPrinter_formatterAttribute; @@ -2253,6 +2238,7 @@ lean_object* l_Lean_Parser_evalInsideQuot___elambda__1(lean_object*, lean_object lean_object* l_Lean_Parser_Tactic_quotSeq_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_match___closed__1; lean_object* l_Lean_Parser_Term_matchDiscr_quot___closed__8; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__11; lean_object* l_Lean_Parser_Term_sorry_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_leading__parser___closed__4; lean_object* l_Lean_Parser_Command_commentBody___elambda__1___boxed(lean_object*, lean_object*); @@ -2280,7 +2266,6 @@ lean_object* l_Lean_Parser_Term_namedArgument___closed__1; lean_object* l_Lean_Parser_Term_binrel___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_structInstField_formatter___closed__4; lean_object* l_Lean_Parser_Term_matchAltsWhereDecls_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_completion___elambda__1___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_letrec_formatter___closed__1; lean_object* l_Lean_Parser_Term_arrow___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_matchAltsWhereDecls___closed__7; @@ -2288,7 +2273,6 @@ lean_object* l_Lean_Parser_Term_explicit_formatter(lean_object*, lean_object*, l lean_object* l_Lean_Parser_Term_dbgTrace___elambda__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Notation___hyg_14458____closed__11; lean_object* l_Lean_Parser_Term_explicit___closed__7; -lean_object* l_Lean_Parser_Term_completion___closed__1; lean_object* l_Lean_Parser_Term_namedPattern___closed__5; lean_object* l_Lean_Parser_Term_bracketedBinder_quot_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_structInstLVal___elambda__1___closed__12; @@ -2321,6 +2305,7 @@ lean_object* l_Lean_Parser_Term_simpleBinderWithoutType; lean_object* l_Lean_Parser_Term_inaccessible_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_match_formatter___closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_trailing__parser_parenthesizer(lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__1; extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_2973____closed__1; lean_object* l_Lean_Parser_Term_attrKind_parenthesizer___closed__6; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___closed__8; @@ -2337,6 +2322,7 @@ lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_ident_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_dynamicQuot_formatter___closed__2; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__2; lean_object* l_Lean_Parser_Term_emptyC___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__21; lean_object* l_Lean_Parser_Term_isIdent___boxed(lean_object*); @@ -2374,7 +2360,6 @@ lean_object* l_Lean_Parser_Term_structInstLVal_formatter___closed__2; lean_object* l_Lean_Parser_Term_sorry___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__23; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__25; lean_object* l_Lean_Parser_Level_quot___elambda__1___closed__13; lean_object* l_Lean_Parser_Term_prop___closed__4; lean_object* l_Lean_Parser_Term_syntheticHole_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2460,7 +2445,6 @@ lean_object* l_Lean_Parser_Term_structInstArrayRef_parenthesizer___closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_dynamicQuot_formatter(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_binrel_parenthesizer(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_funBinder_quot_parenthesizer(lean_object*); -lean_object* l_Lean_Parser_Term_completion___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_depArrow_formatter___closed__1; lean_object* l_Lean_Parser_Term_namedPattern_formatter___closed__2; lean_object* l_Lean_Parser_Term_binrel___closed__1; @@ -2585,7 +2569,6 @@ lean_object* l_Lean_Parser_Term_have___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_fromTerm___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_letIdLhs___closed__2; lean_object* l_Lean_Parser_Term_show___closed__3; -lean_object* l_Lean_Parser_Term_completion; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__29; lean_object* l_Lean_Parser_Term_dynamicQuot___elambda__1___closed__16; lean_object* l_Lean_Parser_Term_letrec___closed__9; @@ -2667,7 +2650,6 @@ lean_object* l_Lean_Parser_Term_macroDollarArg_formatter(lean_object*, lean_obje lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_let_formatter___closed__4; lean_object* l_Lean_Parser_Term_funSimpleBinder___closed__3; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__21; lean_object* l_Lean_Parser_Term_depArrow_parenthesizer___closed__1; lean_object* l___regBuiltin_Lean_Parser_Term_arrayRef_formatter(lean_object*); lean_object* l_Lean_Parser_nodeWithAntiquot_parenthesizer___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2676,6 +2658,7 @@ lean_object* l_Lean_Parser_Term_ensureTypeOf_formatter___closed__3; lean_object* l_Lean_Parser_Term_have___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_haveAssign___closed__6; lean_object* l_Lean_Parser_Term_trailing__parser___elambda__1___closed__7; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__6; lean_object* l_Lean_Parser_Term_arrayRef___closed__2; lean_object* l___regBuiltin_Lean_Parser_Term_quotedName_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__20; @@ -2791,7 +2774,6 @@ lean_object* l_Lean_Parser_Term_leading__parser_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_let__fun_formatter___closed__6; lean_object* l___regBuiltin_Lean_Parser_Term_ident_formatter(lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_num___closed__1; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__11; lean_object* l_Lean_Parser_Term_let___closed__5; lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__8; lean_object* l_Lean_Parser_Term_arrow_parenthesizer___closed__4; @@ -2813,6 +2795,7 @@ extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5662____closed__27 lean_object* l_Lean_Parser_Term_typeOf___elambda__1___closed__11; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_365____closed__4; lean_object* l_Lean_Parser_Term_sufficesDecl___elambda__1___closed__5; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__25; lean_object* l___regBuiltin_Lean_Parser_Term_typeOf_formatter___closed__1; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed___elambda__1___closed__14; lean_object* l_Lean_Parser_Tactic_quotSeq_parenthesizer___closed__3; @@ -2849,13 +2832,11 @@ lean_object* l_Lean_Parser_Term_arrow_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_argument_parenthesizer___closed__2; lean_object* l_Lean_Parser_Term_syntheticHole___closed__8; lean_object* l_Lean_Parser_Term_panic___closed__1; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__2; lean_object* l_Lean_Parser_Term_attrKind___closed__2; lean_object* l_Lean_Parser_Term_structInstLVal___closed__4; lean_object* l_Lean_Parser_Term_macroArg_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_matchAlt(lean_object*); lean_object* l_Lean_Parser_Term_letIdLhs_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__1; lean_object* l_Lean_Parser_Term_emptyC___closed__9; lean_object* l_Lean_Parser_Term_ensureTypeOf___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_depArrow_formatter___closed__3; @@ -3225,7 +3206,6 @@ extern lean_object* l_Lean_Parser_optional___closed__2; lean_object* l_Lean_Parser_Term_subst___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_doubleQuotedName___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_syntheticHole_formatter___closed__1; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__6; lean_object* l_Lean_Parser_Term_stateRefT_parenthesizer___closed__5; lean_object* l_Lean_Parser_Term_optExprPrecedence___closed__2; uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_594____at_Lean_Parser_ParserState_hasError___spec__1(lean_object*, lean_object*); @@ -3282,6 +3262,7 @@ extern lean_object* l_Lean_initFn____x40_Lean_Parser_Extra___hyg_938____closed__ lean_object* l_Lean_Parser_Term_structInst_formatter___closed__15; lean_object* l_Lean_Parser_Term_depArrow_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_syntheticHole___elambda__1___closed__2; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__21; lean_object* l_Lean_Parser_Term_trailing__parser___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_bracketedBinder_quot___closed__4; lean_object* l_Lean_Parser_Term_whereDecls___elambda__1___closed__11; @@ -3308,7 +3289,6 @@ lean_object* l_Lean_Parser_Term_dbgTrace_parenthesizer(lean_object*, lean_object lean_object* l___private_Lean_Parser_Basic_0__Lean_Parser_rawAux(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_typeAscription_formatter___closed__1; lean_object* l_Lean_Parser_Term_letPatDecl_formatter___closed__4; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__8; lean_object* l_Lean_Parser_Term_matchDiscr_quot_formatter___closed__2; lean_object* l_Lean_Parser_Term_match_parenthesizer___closed__3; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_365____closed__3; @@ -3336,7 +3316,6 @@ lean_object* l_Lean_Parser_Term_char; lean_object* l_Lean_Parser_Term_ensureExpectedType_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_structInstField___closed__5; extern lean_object* l_Lean_Parser_optional_formatter___closed__1; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__4; lean_object* l_Lean_Parser_Term_scoped___closed__4; lean_object* l_Lean_Parser_Term_letDecl_formatter___closed__7; lean_object* l_Lean_Parser_Term_matchDiscr_formatter___closed__2; @@ -3576,6 +3555,7 @@ lean_object* l_Lean_Parser_Term_cdot___closed__7; lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed___elambda__1___closed__13; lean_object* l_Lean_Parser_Term_prop_formatter___closed__2; lean_object* l_Lean_Parser_Term_assert___closed__7; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__9; lean_object* l_Lean_Parser_Term_macroDollarArg_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_emptyC___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_depArrow_parenthesizer___closed__4; @@ -3664,7 +3644,6 @@ lean_object* l___regBuiltinParser_Lean_Parser_Term_dbgTrace(lean_object*); lean_object* l_Lean_Parser_Term_macroDollarArg_formatter___closed__1; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__17; lean_object* l_Lean_Parser_Term_fromTerm___elambda__1___closed__7; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__19; lean_object* l_Lean_Parser_Term_attributes___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_ellipsis___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_type___elambda__1___closed__6; @@ -3786,6 +3765,7 @@ lean_object* l_Lean_Parser_Term_explicitBinder_parenthesizer___closed__8; lean_object* l_Lean_Parser_Term_num_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_let__fun___elambda__1___closed__17; lean_object* l_Lean_Parser_Term_doubleQuotedName___elambda__1___closed__3; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__27; lean_object* l___regBuiltin_Lean_Parser_Term_attr_quot_parenthesizer(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_app_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_proj_formatter___closed__4; @@ -3812,6 +3792,7 @@ lean_object* l_Lean_Parser_Term_sorry___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_proj___closed__6; lean_object* l_Lean_Parser_Term_type___closed__4; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__37; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__8; lean_object* l_Lean_Parser_Term_fun_formatter___closed__2; lean_object* l_Lean_Parser_Term_optSemicolon_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_paren___elambda__1(lean_object*, lean_object*); @@ -3841,6 +3822,7 @@ lean_object* l_Lean_Parser_Term_parenSpecial_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_local___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_paren_parenthesizer___closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_fun_formatter___closed__1; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__17; lean_object* l_Lean_Parser_Term_let__delayed_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_matchAltsWhereDecls; lean_object* l_Lean_Parser_Term_show_formatter___closed__2; @@ -3921,6 +3903,7 @@ lean_object* l_Lean_Parser_Term_forall_formatter___closed__2; lean_object* l_Lean_Parser_Term_binderDefault_formatter___closed__1; lean_object* l_Lean_Parser_Term_paren_parenthesizer___closed__9; lean_object* l_Lean_Parser_Term_attrInstance___elambda__1___closed__5; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__4; lean_object* l___regBuiltin_Lean_Parser_Term_forInMacro_formatter___closed__1; lean_object* l_Lean_Parser_Term_leading__parser___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_paren___elambda__1___closed__5; @@ -4028,7 +4011,7 @@ lean_object* l_Lean_Parser_Term_syntheticHole_parenthesizer___closed__1; lean_object* l_Lean_Parser_checkWsBefore___elambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_show_parenthesizer___closed__1; lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_74_(lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985_(lean_object*); +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966_(lean_object*); lean_object* l_Lean_Parser_Term_parenSpecial_formatter___closed__3; lean_object* l_Lean_Parser_Term_noindex___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__9; @@ -4076,7 +4059,6 @@ lean_object* l_Lean_Parser_Term_sorry___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_optExprPrecedence_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_matchDiscr_parenthesizer___closed__5; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__9; lean_object* l_Lean_Parser_Tactic_quotSeq___closed__2; lean_object* l_Lean_Parser_Term_have_parenthesizer___closed__5; lean_object* l_Lean_PrettyPrinter_Formatter_notFollowedBy_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -4197,7 +4179,6 @@ extern lean_object* l_Lean_Parser_strLit; lean_object* l_Lean_Parser_Term_leading__parser_formatter___closed__2; lean_object* l_Lean_Parser_Tactic_quot_parenthesizer___closed__4; lean_object* l_Lean_Parser_many1(lean_object*); -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__17; lean_object* l_Lean_Parser_Term_stateRefT___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Tactic_letrec___closed__10; lean_object* l_Lean_Parser_Command_commentBody; @@ -4232,6 +4213,7 @@ lean_object* l_Lean_Parser_Term_typeOf___closed__6; lean_object* l_Lean_Parser_Term_funBinder_quot___elambda__1___closed__8; lean_object* l___regBuiltin_Lean_Parser_Term_ident_formatter___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Term_ident___closed__1; +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__19; lean_object* l_Lean_Parser_Term_letRecDecl___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_dbgTrace___elambda__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_docComment_formatter___closed__6; @@ -4293,7 +4275,6 @@ lean_object* l_Lean_Parser_Term_structInstLVal_formatter___closed__3; lean_object* l_Lean_Parser_Tactic_quotSeq___closed__8; lean_object* l_Lean_Parser_Term_funBinder_quot_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_letrec; -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__27; lean_object* l_Lean_Parser_Term_structInst_parenthesizer___closed__16; lean_object* l_Lean_Parser_Tactic_tacticSeq1Indented___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_let__fun___elambda__1___closed__13; @@ -41119,320 +41100,6 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Parser_Term_completion___elambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("completion"); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Term_completion___elambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_myMacro____x40_Init_Notation___hyg_2278____closed__2; -x_2 = l_Lean_Parser_Term_completion___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l_Lean_Parser_Term_completion___elambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_3 = lean_unsigned_to_nat(1024u); -x_4 = l_Lean_Parser_checkPrecFn(x_3, x_1, x_2); -x_5 = lean_ctor_get(x_4, 4); -lean_inc(x_5); -x_6 = lean_box(0); -x_7 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_594____at_Lean_Parser_ParserState_hasError___spec__1(x_5, x_6); -lean_dec(x_5); -if (x_7 == 0) -{ -lean_dec(x_1); -return x_4; -} -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_Parser_checkLhsPrecFn(x_8, x_1, x_4); -x_10 = lean_ctor_get(x_9, 4); -lean_inc(x_10); -x_11 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_594____at_Lean_Parser_ParserState_hasError___spec__1(x_10, x_6); -lean_dec(x_10); -if (x_11 == 0) -{ -lean_dec(x_1); -return x_9; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_12 = lean_ctor_get(x_9, 0); -lean_inc(x_12); -x_13 = lean_array_get_size(x_12); -lean_dec(x_12); -x_14 = l_Lean_Parser_tokenWithAntiquotFn___lambda__2___closed__4; -x_15 = l_Lean_Parser_checkNoWsBeforeFn(x_14, x_1, x_9); -x_16 = lean_ctor_get(x_15, 4); -lean_inc(x_16); -x_17 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_594____at_Lean_Parser_ParserState_hasError___spec__1(x_16, x_6); -lean_dec(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_18 = l_Lean_Parser_Term_completion___elambda__1___closed__2; -x_19 = l_Lean_Parser_ParserState_mkTrailingNode(x_15, x_18, x_13); -lean_dec(x_13); -x_20 = lean_ctor_get(x_19, 4); -lean_inc(x_20); -x_21 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_594____at_Lean_Parser_ParserState_hasError___spec__1(x_20, x_6); -lean_dec(x_20); -if (x_21 == 0) -{ -lean_dec(x_1); -return x_19; -} -else -{ -lean_object* x_22; -x_22 = l_Lean_Parser_setLhsPrecFn(x_3, x_1, x_19); -lean_dec(x_1); -return x_22; -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_23 = l_Lean_Parser_Term_cdot___elambda__1___closed__9; -x_24 = l_Lean_Parser_Term_proj___elambda__1___closed__3; -lean_inc(x_1); -x_25 = l_Lean_Parser_symbolFnAux(x_23, x_24, x_1, x_15); -x_26 = lean_ctor_get(x_25, 4); -lean_inc(x_26); -x_27 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_594____at_Lean_Parser_ParserState_hasError___spec__1(x_26, x_6); -lean_dec(x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = l_Lean_Parser_Term_completion___elambda__1___closed__2; -x_29 = l_Lean_Parser_ParserState_mkTrailingNode(x_25, x_28, x_13); -lean_dec(x_13); -x_30 = lean_ctor_get(x_29, 4); -lean_inc(x_30); -x_31 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_594____at_Lean_Parser_ParserState_hasError___spec__1(x_30, x_6); -lean_dec(x_30); -if (x_31 == 0) -{ -lean_dec(x_1); -return x_29; -} -else -{ -lean_object* x_32; -x_32 = l_Lean_Parser_setLhsPrecFn(x_3, x_1, x_29); -lean_dec(x_1); -return x_32; -} -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_33 = lean_box(0); -lean_inc(x_1); -x_34 = l_Lean_Parser_Level_addLit___elambda__1___lambda__1(x_25, x_1, x_6, x_33); -x_35 = l_Lean_Parser_Term_completion___elambda__1___closed__2; -x_36 = l_Lean_Parser_ParserState_mkTrailingNode(x_34, x_35, x_13); -lean_dec(x_13); -x_37 = lean_ctor_get(x_36, 4); -lean_inc(x_37); -x_38 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_594____at_Lean_Parser_ParserState_hasError___spec__1(x_37, x_6); -lean_dec(x_37); -if (x_38 == 0) -{ -lean_dec(x_1); -return x_36; -} -else -{ -lean_object* x_39; -x_39 = l_Lean_Parser_setLhsPrecFn(x_3, x_1, x_36); -lean_dec(x_1); -return x_39; -} -} -} -} -} -} -} -static lean_object* _init_l_Lean_Parser_Term_completion___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_epsilonInfo; -x_2 = l_Lean_Parser_Term_cdot___closed__2; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_completion___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_completion___elambda__1___closed__2; -x_2 = l_Lean_Parser_Term_completion___closed__1; -x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_completion___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_completion___closed__2; -x_2 = l_Lean_Parser_epsilonInfo; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_completion___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_epsilonInfo; -x_2 = l_Lean_Parser_Term_completion___closed__3; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_completion___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_epsilonInfo; -x_2 = l_Lean_Parser_Term_completion___closed__4; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Parser_Term_completion___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_completion___elambda__1), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Parser_Term_completion___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_completion___closed__5; -x_2 = l_Lean_Parser_Term_completion___closed__6; -x_3 = lean_alloc_ctor(0, 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_Term_completion() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Parser_Term_completion___closed__7; -return x_1; -} -} -lean_object* l___regBuiltinParser_Lean_Parser_Term_completion(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_2 = l_term___u2218_____closed__6; -x_3 = l_Lean_Parser_Term_completion___elambda__1___closed__2; -x_4 = 0; -x_5 = l_Lean_Parser_Term_completion; -x_6 = lean_unsigned_to_nat(1000u); -x_7 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_6, x_1); -return x_7; -} -} -static lean_object* _init_l_Lean_Parser_Term_completion_formatter___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_2944____closed__3; -x_2 = l_Lean_Parser_Term_cdot_formatter___closed__3; -x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2); -lean_closure_set(x_3, 0, x_1); -lean_closure_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* l_Lean_Parser_Term_completion_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_6 = l_Lean_Parser_Term_completion___elambda__1___closed__2; -x_7 = lean_unsigned_to_nat(1024u); -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Lean_Parser_Term_completion_formatter___closed__1; -x_10 = l_Lean_PrettyPrinter_Formatter_trailingNode_formatter(x_6, x_7, x_8, x_9, x_1, x_2, x_3, x_4, x_5); -return x_10; -} -} -static lean_object* _init_l___regBuiltin_Lean_Parser_Term_completion_formatter___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_completion_formatter), 5, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Parser_Term_completion_formatter(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_PrettyPrinter_formatterAttribute; -x_3 = l_Lean_Parser_Term_completion___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Parser_Term_completion_formatter___closed__1; -x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); -return x_5; -} -} -lean_object* l_Lean_Parser_Term_completion_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_6 = l_Lean_Parser_Term_completion___elambda__1___closed__2; -x_7 = lean_unsigned_to_nat(1024u); -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Lean_Parser_mkAntiquot_parenthesizer___rarg___closed__3; -x_10 = l_Lean_PrettyPrinter_Parenthesizer_trailingNode_parenthesizer(x_6, x_7, x_8, x_9, x_1, x_2, x_3, x_4, x_5); -return x_10; -} -} -static lean_object* _init_l___regBuiltin_Lean_Parser_Term_completion_parenthesizer___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_completion_parenthesizer), 5, 0); -return x_1; -} -} -lean_object* l___regBuiltin_Lean_Parser_Term_completion_parenthesizer(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_PrettyPrinter_parenthesizerAttribute; -x_3 = l_Lean_Parser_Term_completion___elambda__1___closed__2; -x_4 = l___regBuiltin_Lean_Parser_Term_completion_parenthesizer___closed__1; -x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); -return x_5; -} -} static lean_object* _init_l_Lean_Parser_Term_arrayRef___elambda__1___closed__1() { _start: { @@ -52041,7 +51708,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__1() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -52051,7 +51718,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__2() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__2() { _start: { lean_object* x_1; lean_object* x_2; @@ -52061,7 +51728,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__3() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -52071,7 +51738,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__4() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -52081,7 +51748,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__5() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__5() { _start: { lean_object* x_1; lean_object* x_2; @@ -52091,7 +51758,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__6() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__6() { _start: { lean_object* x_1; lean_object* x_2; @@ -52101,7 +51768,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__7() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__7() { _start: { lean_object* x_1; lean_object* x_2; @@ -52111,7 +51778,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__8() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__8() { _start: { lean_object* x_1; lean_object* x_2; @@ -52121,7 +51788,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__9() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__9() { _start: { lean_object* x_1; lean_object* x_2; @@ -52131,7 +51798,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__10() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__10() { _start: { lean_object* x_1; lean_object* x_2; @@ -52141,7 +51808,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__11() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__11() { _start: { lean_object* x_1; lean_object* x_2; @@ -52151,7 +51818,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__12() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__12() { _start: { lean_object* x_1; lean_object* x_2; @@ -52161,7 +51828,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__13() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__13() { _start: { lean_object* x_1; lean_object* x_2; @@ -52171,7 +51838,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__14() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__14() { _start: { lean_object* x_1; lean_object* x_2; @@ -52181,7 +51848,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__15() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__15() { _start: { lean_object* x_1; lean_object* x_2; @@ -52191,7 +51858,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__16() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__16() { _start: { lean_object* x_1; lean_object* x_2; @@ -52201,7 +51868,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__17() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__17() { _start: { lean_object* x_1; lean_object* x_2; @@ -52211,7 +51878,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__18() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__18() { _start: { lean_object* x_1; lean_object* x_2; @@ -52221,7 +51888,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__19() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -52231,7 +51898,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__20() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__20() { _start: { lean_object* x_1; lean_object* x_2; @@ -52241,7 +51908,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__21() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__21() { _start: { lean_object* x_1; lean_object* x_2; @@ -52251,7 +51918,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__22() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__22() { _start: { lean_object* x_1; lean_object* x_2; @@ -52261,7 +51928,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__23() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__23() { _start: { lean_object* x_1; lean_object* x_2; @@ -52271,7 +51938,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__24() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__24() { _start: { lean_object* x_1; lean_object* x_2; @@ -52281,7 +51948,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__25() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__25() { _start: { lean_object* x_1; lean_object* x_2; @@ -52291,7 +51958,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__26() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__26() { _start: { lean_object* x_1; lean_object* x_2; @@ -52301,7 +51968,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__27() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__27() { _start: { lean_object* x_1; lean_object* x_2; @@ -52311,7 +51978,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__28() { +static lean_object* _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__28() { _start: { lean_object* x_1; lean_object* x_2; @@ -52321,13 +51988,13 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985_(lean_object* x_1) { +lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Parser_parserAliasesRef; x_3 = l_Lean_Parser_Tactic_tacticLet_____closed__4; -x_4 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__1; +x_4 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__1; x_5 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_3, x_4, x_1); if (lean_obj_tag(x_5) == 0) { @@ -52336,7 +52003,7 @@ x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); lean_dec(x_5); x_7 = l_Lean_PrettyPrinter_Formatter_formatterAliasesRef; -x_8 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__2; +x_8 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__2; x_9 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_3, x_8, x_6); if (lean_obj_tag(x_9) == 0) { @@ -52345,7 +52012,7 @@ x_10 = lean_ctor_get(x_9, 1); lean_inc(x_10); lean_dec(x_9); x_11 = l_Lean_PrettyPrinter_Parenthesizer_parenthesizerAliasesRef; -x_12 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__3; +x_12 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__3; x_13 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_3, x_12, x_10); if (lean_obj_tag(x_13) == 0) { @@ -52354,7 +52021,7 @@ x_14 = lean_ctor_get(x_13, 1); lean_inc(x_14); lean_dec(x_13); x_15 = l_Lean_Parser_Tactic_tacticHave_____closed__6; -x_16 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__4; +x_16 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__4; x_17 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_15, x_16, x_14); if (lean_obj_tag(x_17) == 0) { @@ -52362,7 +52029,7 @@ lean_object* x_18; lean_object* x_19; lean_object* x_20; x_18 = lean_ctor_get(x_17, 1); lean_inc(x_18); lean_dec(x_17); -x_19 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__5; +x_19 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__5; x_20 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_15, x_19, x_18); if (lean_obj_tag(x_20) == 0) { @@ -52370,7 +52037,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); -x_22 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__6; +x_22 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__6; x_23 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_15, x_22, x_21); if (lean_obj_tag(x_23) == 0) { @@ -52379,7 +52046,7 @@ x_24 = lean_ctor_get(x_23, 1); lean_inc(x_24); lean_dec(x_23); x_25 = l_Lean_Parser_Tactic_tacticSuffices_____closed__6; -x_26 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__7; +x_26 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__7; x_27 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_25, x_26, x_24); if (lean_obj_tag(x_27) == 0) { @@ -52387,7 +52054,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; x_28 = lean_ctor_get(x_27, 1); lean_inc(x_28); lean_dec(x_27); -x_29 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__8; +x_29 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__8; x_30 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_25, x_29, x_28); if (lean_obj_tag(x_30) == 0) { @@ -52395,7 +52062,7 @@ lean_object* x_31; lean_object* x_32; lean_object* x_33; x_31 = lean_ctor_get(x_30, 1); lean_inc(x_31); lean_dec(x_30); -x_32 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__9; +x_32 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__9; x_33 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_25, x_32, x_31); if (lean_obj_tag(x_33) == 0) { @@ -52404,7 +52071,7 @@ x_34 = lean_ctor_get(x_33, 1); lean_inc(x_34); lean_dec(x_33); x_35 = l_Lean_Parser_Tactic_letrec___closed__11; -x_36 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__10; +x_36 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__10; x_37 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_35, x_36, x_34); if (lean_obj_tag(x_37) == 0) { @@ -52412,7 +52079,7 @@ lean_object* x_38; lean_object* x_39; lean_object* x_40; x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); lean_dec(x_37); -x_39 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__11; +x_39 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__11; x_40 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_35, x_39, x_38); if (lean_obj_tag(x_40) == 0) { @@ -52420,7 +52087,7 @@ lean_object* x_41; lean_object* x_42; lean_object* x_43; x_41 = lean_ctor_get(x_40, 1); lean_inc(x_41); lean_dec(x_40); -x_42 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__12; +x_42 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__12; x_43 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_35, x_42, x_41); if (lean_obj_tag(x_43) == 0) { @@ -52429,7 +52096,7 @@ x_44 = lean_ctor_get(x_43, 1); lean_inc(x_44); lean_dec(x_43); x_45 = l_Lean_Parser_Tactic_inductionAlt___closed__15; -x_46 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__13; +x_46 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__13; x_47 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_45, x_46, x_44); if (lean_obj_tag(x_47) == 0) { @@ -52437,7 +52104,7 @@ lean_object* x_48; lean_object* x_49; lean_object* x_50; x_48 = lean_ctor_get(x_47, 1); lean_inc(x_48); lean_dec(x_47); -x_49 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__14; +x_49 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__14; x_50 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_45, x_49, x_48); if (lean_obj_tag(x_50) == 0) { @@ -52445,7 +52112,7 @@ lean_object* x_51; lean_object* x_52; lean_object* x_53; x_51 = lean_ctor_get(x_50, 1); lean_inc(x_51); lean_dec(x_50); -x_52 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__15; +x_52 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__15; x_53 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_45, x_52, x_51); if (lean_obj_tag(x_53) == 0) { @@ -52454,7 +52121,7 @@ x_54 = lean_ctor_get(x_53, 1); lean_inc(x_54); lean_dec(x_53); x_55 = l_Lean_Parser_Tactic_inductionAlt___closed__17; -x_56 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__16; +x_56 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__16; x_57 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_55, x_56, x_54); if (lean_obj_tag(x_57) == 0) { @@ -52462,7 +52129,7 @@ lean_object* x_58; lean_object* x_59; lean_object* x_60; x_58 = lean_ctor_get(x_57, 1); lean_inc(x_58); lean_dec(x_57); -x_59 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__17; +x_59 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__17; x_60 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_55, x_59, x_58); if (lean_obj_tag(x_60) == 0) { @@ -52470,7 +52137,7 @@ lean_object* x_61; lean_object* x_62; lean_object* x_63; x_61 = lean_ctor_get(x_60, 1); lean_inc(x_61); lean_dec(x_60); -x_62 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__18; +x_62 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__18; x_63 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_55, x_62, x_61); if (lean_obj_tag(x_63) == 0) { @@ -52478,8 +52145,8 @@ lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; x_64 = lean_ctor_get(x_63, 1); lean_inc(x_64); lean_dec(x_63); -x_65 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__19; -x_66 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__20; +x_65 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__19; +x_66 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__20; x_67 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_65, x_66, x_64); if (lean_obj_tag(x_67) == 0) { @@ -52487,7 +52154,7 @@ lean_object* x_68; lean_object* x_69; lean_object* x_70; x_68 = lean_ctor_get(x_67, 1); lean_inc(x_68); lean_dec(x_67); -x_69 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__21; +x_69 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__21; x_70 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_65, x_69, x_68); if (lean_obj_tag(x_70) == 0) { @@ -52495,7 +52162,7 @@ lean_object* x_71; lean_object* x_72; lean_object* x_73; x_71 = lean_ctor_get(x_70, 1); lean_inc(x_71); lean_dec(x_70); -x_72 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__22; +x_72 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__22; x_73 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_65, x_72, x_71); if (lean_obj_tag(x_73) == 0) { @@ -52504,7 +52171,7 @@ x_74 = lean_ctor_get(x_73, 1); lean_inc(x_74); lean_dec(x_73); x_75 = l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__12; -x_76 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__23; +x_76 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__23; x_77 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_75, x_76, x_74); if (lean_obj_tag(x_77) == 0) { @@ -52512,7 +52179,7 @@ lean_object* x_78; lean_object* x_79; lean_object* x_80; x_78 = lean_ctor_get(x_77, 1); lean_inc(x_78); lean_dec(x_77); -x_79 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__24; +x_79 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__24; x_80 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_75, x_79, x_78); if (lean_obj_tag(x_80) == 0) { @@ -52520,7 +52187,7 @@ lean_object* x_81; lean_object* x_82; lean_object* x_83; x_81 = lean_ctor_get(x_80, 1); lean_inc(x_81); lean_dec(x_80); -x_82 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__25; +x_82 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__25; x_83 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_75, x_82, x_81); if (lean_obj_tag(x_83) == 0) { @@ -52529,7 +52196,7 @@ x_84 = lean_ctor_get(x_83, 1); lean_inc(x_84); lean_dec(x_83); x_85 = l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__4; -x_86 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__26; +x_86 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__26; x_87 = l_Lean_Parser_registerAliasCore___rarg(x_2, x_85, x_86, x_84); if (lean_obj_tag(x_87) == 0) { @@ -52537,7 +52204,7 @@ lean_object* x_88; lean_object* x_89; lean_object* x_90; x_88 = lean_ctor_get(x_87, 1); lean_inc(x_88); lean_dec(x_87); -x_89 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__27; +x_89 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__27; x_90 = l_Lean_Parser_registerAliasCore___rarg(x_7, x_85, x_89, x_88); if (lean_obj_tag(x_90) == 0) { @@ -52545,7 +52212,7 @@ lean_object* x_91; lean_object* x_92; lean_object* x_93; x_91 = lean_ctor_get(x_90, 1); lean_inc(x_91); lean_dec(x_90); -x_92 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__28; +x_92 = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__28; x_93 = l_Lean_Parser_registerAliasCore___rarg(x_11, x_85, x_92, x_91); return x_93; } @@ -58786,41 +58453,6 @@ lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_proj_parenthesizer___closed res = l___regBuiltin_Lean_Parser_Term_proj_parenthesizer(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Parser_Term_completion___elambda__1___closed__1 = _init_l_Lean_Parser_Term_completion___elambda__1___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_completion___elambda__1___closed__1); -l_Lean_Parser_Term_completion___elambda__1___closed__2 = _init_l_Lean_Parser_Term_completion___elambda__1___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_completion___elambda__1___closed__2); -l_Lean_Parser_Term_completion___closed__1 = _init_l_Lean_Parser_Term_completion___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_completion___closed__1); -l_Lean_Parser_Term_completion___closed__2 = _init_l_Lean_Parser_Term_completion___closed__2(); -lean_mark_persistent(l_Lean_Parser_Term_completion___closed__2); -l_Lean_Parser_Term_completion___closed__3 = _init_l_Lean_Parser_Term_completion___closed__3(); -lean_mark_persistent(l_Lean_Parser_Term_completion___closed__3); -l_Lean_Parser_Term_completion___closed__4 = _init_l_Lean_Parser_Term_completion___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_completion___closed__4); -l_Lean_Parser_Term_completion___closed__5 = _init_l_Lean_Parser_Term_completion___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_completion___closed__5); -l_Lean_Parser_Term_completion___closed__6 = _init_l_Lean_Parser_Term_completion___closed__6(); -lean_mark_persistent(l_Lean_Parser_Term_completion___closed__6); -l_Lean_Parser_Term_completion___closed__7 = _init_l_Lean_Parser_Term_completion___closed__7(); -lean_mark_persistent(l_Lean_Parser_Term_completion___closed__7); -l_Lean_Parser_Term_completion = _init_l_Lean_Parser_Term_completion(); -lean_mark_persistent(l_Lean_Parser_Term_completion); -res = l___regBuiltinParser_Lean_Parser_Term_completion(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Parser_Term_completion_formatter___closed__1 = _init_l_Lean_Parser_Term_completion_formatter___closed__1(); -lean_mark_persistent(l_Lean_Parser_Term_completion_formatter___closed__1); -l___regBuiltin_Lean_Parser_Term_completion_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_completion_formatter___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_completion_formatter___closed__1); -res = l___regBuiltin_Lean_Parser_Term_completion_formatter(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l___regBuiltin_Lean_Parser_Term_completion_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Term_completion_parenthesizer___closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Parser_Term_completion_parenthesizer___closed__1); -res = l___regBuiltin_Lean_Parser_Term_completion_parenthesizer(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); l_Lean_Parser_Term_arrayRef___elambda__1___closed__1 = _init_l_Lean_Parser_Term_arrayRef___elambda__1___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_arrayRef___elambda__1___closed__1); l_Lean_Parser_Term_arrayRef___elambda__1___closed__2 = _init_l_Lean_Parser_Term_arrayRef___elambda__1___closed__2(); @@ -60367,63 +59999,63 @@ lean_mark_persistent(l___regBuiltin_Lean_Parser_Level_quot_parenthesizer___close res = l___regBuiltin_Lean_Parser_Level_quot_parenthesizer(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__1 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__1(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__1); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__2 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__2(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__2); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__3 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__3(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__3); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__4 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__4(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__4); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__5 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__5(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__5); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__6 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__6(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__6); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__7 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__7(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__7); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__8 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__8(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__8); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__9 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__9(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__9); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__10 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__10(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__10); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__11 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__11(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__11); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__12 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__12(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__12); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__13 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__13(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__13); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__14 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__14(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__14); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__15 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__15(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__15); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__16 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__16(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__16); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__17 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__17(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__17); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__18 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__18(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__18); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__19 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__19(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__19); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__20 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__20(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__20); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__21 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__21(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__21); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__22 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__22(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__22); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__23 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__23(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__23); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__24 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__24(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__24); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__25 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__25(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__25); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__26 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__26(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__26); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__27 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__27(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__27); -l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__28 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__28(); -lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985____closed__28); -res = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3985_(lean_io_mk_world()); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__1 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__1(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__1); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__2 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__2(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__2); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__3 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__3(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__3); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__4 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__4(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__4); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__5 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__5(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__5); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__6 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__6(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__6); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__7 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__7(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__7); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__8 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__8(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__8); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__9 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__9(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__9); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__10 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__10(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__10); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__11 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__11(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__11); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__12 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__12(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__12); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__13 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__13(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__13); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__14 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__14(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__14); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__15 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__15(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__15); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__16 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__16(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__16); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__17 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__17(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__17); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__18 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__18(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__18); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__19 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__19(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__19); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__20 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__20(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__20); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__21 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__21(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__21); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__22 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__22(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__22); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__23 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__23(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__23); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__24 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__24(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__24); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__25 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__25(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__25); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__26 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__26(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__26); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__27 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__27(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__27); +l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__28 = _init_l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__28(); +lean_mark_persistent(l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966____closed__28); +res = l_Lean_Parser_initFn____x40_Lean_Parser_Term___hyg_3966_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Server/Completion.c b/stage0/stdlib/Lean/Server/Completion.c index 5e44a75688..0cc43ad1c8 100644 --- a/stage0/stdlib/Lean/Server/Completion.c +++ b/stage0/stdlib/Lean/Server/Completion.c @@ -99,6 +99,7 @@ lean_object* l_Std_PersistentHashMap_foldlMAux___at___private_Lean_Server_Comple lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_addCompletionItem___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_mkEmpty___closed__1; +lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___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* l_Lean_SMap_forM___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_instInhabitedParserCategory; @@ -209,7 +210,6 @@ lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Server_Completion_0 lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__38___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_optionCompletion___boxed(lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Term_completion___elambda__1___closed__2; lean_object* l_Lean_isRec___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isBlackListed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Meta_getExpectedNumArgsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -260,7 +260,6 @@ lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isType lean_object* l_Lean_Elab_Info_tailPos_x3f(lean_object*); lean_object* l_Std_PersistentHashMap_foldlM___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_matchDecl_x3f(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__30(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_sortCompletionItems(lean_object*); @@ -312,7 +311,6 @@ lean_object* l_List_forIn_loop___at___private_Lean_Server_Completion_0__Lean_Ser lean_object* l_Std_PersistentHashMap_foldlM___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_prec_x28___x29___closed__3; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__39___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* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__19___closed__1; lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__1___closed__1; @@ -11149,21 +11147,10 @@ if (lean_obj_tag(x_4) == 0) { lean_object* x_11; uint8_t x_12; x_11 = lean_ctor_get(x_1, 2); -lean_inc(x_11); -lean_dec(x_1); x_12 = l_Lean_Syntax_isIdent(x_11); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; uint8_t x_15; -lean_inc(x_11); -x_13 = l_Lean_Syntax_getKind(x_11); -x_14 = l_Lean_Parser_Term_completion___elambda__1___closed__2; -x_15 = lean_name_eq(x_13, x_14); -lean_dec(x_13); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; -lean_dec(x_11); +lean_object* x_13; lean_object* x_14; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -11171,57 +11158,44 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_16 = lean_box(0); -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; +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +return x_14; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_unsigned_to_nat(0u); -x_19 = l_Lean_Syntax_getArg(x_11, x_18); -lean_dec(x_11); -x_20 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore(x_2, x_19, x_3, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_19); -return x_20; +lean_object* x_15; +x_15 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore(x_2, x_11, x_3, x_5, x_6, x_7, x_8, x_9, x_10); +return x_15; } } else { -lean_object* x_21; -x_21 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore(x_2, x_11, x_3, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_11); -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_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_dec(x_2); -lean_dec(x_1); -x_22 = lean_ctor_get(x_4, 0); -lean_inc(x_22); +x_16 = lean_ctor_get(x_4, 0); +lean_inc(x_16); lean_dec(x_4); -x_23 = lean_st_ref_get(x_9, x_10); -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_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_alloc_closure((void*)(l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__1___boxed), 10, 2); -lean_closure_set(x_28, 0, x_22); -lean_closure_set(x_28, 1, x_3); -x_29 = l_Lean_SMap_forM___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__3(x_27, x_28, x_5, x_6, x_7, x_8, x_9, x_25); -lean_dec(x_27); -return x_29; +x_17 = lean_st_ref_get(x_9, x_10); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_alloc_closure((void*)(l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__1___boxed), 10, 2); +lean_closure_set(x_22, 0, x_16); +lean_closure_set(x_22, 1, x_3); +x_23 = l_Lean_SMap_forM___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__3(x_21, x_22, x_5, x_6, x_7, x_8, x_9, x_19); +lean_dec(x_21); +return x_23; } } } @@ -11530,7 +11504,7 @@ x_5 = lean_ctor_get(x_2, 0); lean_inc(x_5); lean_inc(x_1); lean_inc(x_2); -x_6 = lean_alloc_closure((void*)(l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__2), 10, 3); +x_6 = lean_alloc_closure((void*)(l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__2___boxed), 10, 3); lean_closure_set(x_6, 0, x_2); lean_closure_set(x_6, 1, x_1); lean_closure_set(x_6, 2, x_3); @@ -11575,6 +11549,15 @@ lean_dec(x_1); return x_11; } } +lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +return x_11; +} +} lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: {