From 20e67945ea83427f2b0665f4a36f01509bca62a8 Mon Sep 17 00:00:00 2001 From: Lean stage0 autoupdater <> Date: Wed, 5 Feb 2025 16:42:25 +0000 Subject: [PATCH] chore: update stage0 --- stage0/src/stdlib_flags.h | 2 - stage0/stdlib/Lean/Elab/BuiltinCommand.c | 11294 +++++++++++++-------- 2 files changed, 7153 insertions(+), 4143 deletions(-) diff --git a/stage0/src/stdlib_flags.h b/stage0/src/stdlib_flags.h index ee225c1734..b647d85f37 100644 --- a/stage0/src/stdlib_flags.h +++ b/stage0/src/stdlib_flags.h @@ -1,7 +1,5 @@ #include "util/options.h" -// update stage0 - namespace lean { options get_default_options() { options opts; diff --git a/stage0/stdlib/Lean/Elab/BuiltinCommand.c b/stage0/stdlib/Lean/Elab/BuiltinCommand.c index ad8c122238..c83c08b4d1 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinCommand.c +++ b/stage0/stdlib/Lean/Elab/BuiltinCommand.c @@ -18,11 +18,13 @@ lean_object* l_Lean_Name_getNumParts(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce__1___closed__1; static lean_object* l_Lean_getDocStringText___at_Lean_Elab_Command_elabAddDeclDoc___spec__2___closed__2; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOptions___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__10; static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse__1___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce__1___closed__2; static lean_object* l_Lean_Elab_Command_elabOmit___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabWhere___rarg___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabWhere__1___closed__1; lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2; @@ -59,7 +61,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabExit_declRange__1___clo lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabVariable___spec__4___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabOpen___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabChoice___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7___closed__2; static lean_object* l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__3; @@ -74,6 +75,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_hasNoErrorMessages___rarg(lean_obje LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabVersion(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabWhere___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace_declRange__1___closed__4; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabChoice__1___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption__1(lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -87,7 +89,6 @@ static lean_object* l_Lean_Elab_Command_elabOpen___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd_declRange__1___closed__2; static lean_object* l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabExport___spec__4___closed__1; uint8_t l___private_Lean_Data_KVMap_0__Lean_beqDataValue____x40_Lean_Data_KVMap___hyg_70_(lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Command_hasNoErrorMessages(lean_object*); LEAN_EXPORT lean_object* l_Lean_popScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabChoice_declRange__1___closed__1; @@ -106,17 +107,22 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc_declRange__1_ static lean_object* l_Lean_Elab_Command_elabReduce_go___lambda__1___closed__2; extern lean_object* l_Lean_declRangeExt; LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Command_elabAddDeclDoc___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure__1___closed__1; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabSetOption___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc__1___closed__1; static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__2; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; static lean_object* l_Lean_Elab_Command_elabAddDeclDoc___closed__5; static lean_object* l_Lean_Elab_Command_expandInCmd___closed__1; static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__17; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabVariable___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabExit__1___closed__5; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabVariable___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Command_elabOpen___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabOpen___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -158,6 +164,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spe 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*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabInclude___spec__1___closed__2; lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__11; static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOpenDecls___spec__4___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_containsId___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); @@ -172,6 +179,7 @@ lean_object* l_Lean_MessageData_ofList(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd__1___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabExit__1___closed__1; lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__4___closed__1; lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure__1(lean_object*); static lean_object* l_Lean_Elab_Command_elabReduce___closed__1; @@ -182,7 +190,9 @@ static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed_ lean_object* l_String_removeLeadingSpaces(lean_object*); static lean_object* l_Lean_Elab_Command_elabCheckFailure___closed__3; LEAN_EXPORT lean_object* l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabOpen___spec__7(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__10(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabVariable___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__10___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_Lean_Elab_Command_elabOmit___spec__8(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth__1___closed__2; lean_object* lean_mk_array(lean_object*, lean_object*); @@ -201,7 +211,6 @@ static lean_object* l_Lean_Elab_Command_elabVersion___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Command_elabOpen___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen_declRange__1___closed__3; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabOpen___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure_declRange__1___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot_declRange__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -213,11 +222,11 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_foldArgsM___at_Lean_Elab_Command_elabUniv static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen_declRange__1___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addDocString___at_Lean_Elab_Command_elabAddDeclDoc___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabReduce_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); @@ -255,16 +264,17 @@ LEAN_EXPORT lean_object* l_Lean_filterFieldList___at_Lean_Elab_Command_elabExpor LEAN_EXPORT lean_object* l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabOpen___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSection___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabChoice(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___closed__1; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabExport___spec__4___lambda__2(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce__1(lean_object*); lean_object* l_Lean_DeclarationRange_ofStringPositions(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__3; static lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Command_elabExport___spec__6___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabNonComputableSection___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__2; LEAN_EXPORT lean_object* l_Lean_Syntax_foldArgsM___at_Lean_Elab_Command_elabUniverse___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_Elab_Command_elabAddDeclDoc___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_empty; lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce_declRange__1___closed__4; @@ -314,6 +324,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabWhere__1___closed__3; lean_object* l_Lean_Exception_toMessageData(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabWhere___rarg___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__5; static lean_object* l_Lean_Elab_throwErrorWithNestedErrors___at_Lean_Elab_Command_elabExport___spec__19___closed__1; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabInclude___spec__1___closed__1; @@ -322,6 +333,7 @@ lean_object* l_Lean_Syntax_mkNatLit(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabInclude___spec__1___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport_declRange__1___closed__5; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_activateScoped___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc_declRange__1___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Command_elabVersion__1___closed__2; @@ -351,15 +363,12 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabVariable___lambda__2___boxed(le lean_object* l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure_declRange__1___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabNonComputableSection__1___closed__1; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEoi(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__4; static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOptions___spec__1___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabExport___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabOpen___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__8; static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__10; -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabWhere___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_containsId(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__6; @@ -368,7 +377,6 @@ lean_object* l_Lean_InternalExceptionId_getName(lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__2; extern lean_object* l___private_Lean_DocString_Extension_0__Lean_moduleDocExt; LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabNonComputableSection_declRange__1___closed__2; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck_declRange__1(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -384,7 +392,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabWhere___rarg___lambda__2___boxe LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Command_elabExport___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Command_elabExport___spec__6___closed__1; -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabImport_declRange__1___closed__6; static lean_object* l_Lean_Elab_Command_elabWhere___rarg___lambda__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabOmit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -398,11 +405,11 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot__1___closed__5 static lean_object* l___regBuiltin_Lean_Elab_Command_elabNonComputableSection__1___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable_declRange__1___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabExport___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__1(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabImport__1___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc_declRange__1___closed__7; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_containsId___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapTR_loop___at_Lean_filterFieldList___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Command_elabExport___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth_declRange__1___closed__4; @@ -414,6 +421,7 @@ LEAN_EXPORT lean_object* l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elab static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd_declRange__1___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Command_elabAddDeclDoc_declRange__1___closed__5; lean_object* l_Lean_log___at_Lean_Elab_Term_exceptionToSorry___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__10___rarg(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure_declRange__1___closed__7; static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__9; static lean_object* l_Lean_Elab_Command_elabWhere___rarg___lambda__1___closed__3; @@ -434,7 +442,6 @@ static lean_object* l_Lean_Elab_Command_elabAddDeclDoc___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSetOption___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope(lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7___closed__1; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9(uint8_t, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getBracketedBinderIds(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption__1___closed__5; static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__8; @@ -488,6 +495,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabVersion__1___closed__3; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOpenDecls___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce__1___closed__3; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Command_elabNonComputableSection__1___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCheckCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -509,16 +517,16 @@ extern lean_object* l_Lean_versionString; static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport__1___closed__3; lean_object* l_List_mapTR_loop___at_Lean_MessageData_instCoeListExpr___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabExport___closed__2; +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabWhere___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace__1___closed__2; lean_object* l_Lean_MessageData_ofFormat(lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOptions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOptions___spec__1___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__12___closed__1; -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen_declRange__1___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc__1___closed__9; static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck_declRange__1___closed__1; @@ -533,6 +541,7 @@ lean_object* l_outOfBounds___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_Elab_Command_elabAddDeclDoc___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabAddDeclDoc___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace__1___closed__1; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd__1___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd_declRange__1___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport__1___closed__2; @@ -561,8 +570,8 @@ LEAN_EXPORT lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen__ lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_Command_elabExport___spec__15(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce_declRange__1___closed__7; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getOptionDecls(lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___closed__2; LEAN_EXPORT lean_object* l_Lean_ensureNoOverload___at_Lean_Elab_Command_elabExport___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -588,7 +597,9 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_B static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc_declRange__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabNamespace(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__31; +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable_declRange__1___closed__6; @@ -607,10 +618,12 @@ static lean_object* l_Lean_Elab_Command_elabModuleDoc___closed__2; lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_hasNoErrorMessages___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace_declRange__1___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport_declRange__1___closed__1; LEAN_EXPORT lean_object* l_Lean_logWarning___at_Lean_Elab_Command_elabExit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___at_String_join___spec__1(lean_object*, lean_object*); +uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabOmit___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabExit_declRange__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEoi___boxed(lean_object*, lean_object*, lean_object*); @@ -629,7 +642,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabNonComputableSection_de LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabOpen___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace_declRange__1___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabImport_declRange__1___closed__4; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabExport___closed__4; static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecls___spec__3___boxed(lean_object*, lean_object*, lean_object*); @@ -655,7 +667,6 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___s LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabAddDeclDoc_declRange__1(lean_object*); static lean_object* l_Lean_Elab_Command_elabSection___closed__4; extern lean_object* l_Lean_Elab_macroAttribute; -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_warningAsError; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabOpen___spec__25(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -667,7 +678,6 @@ extern lean_object* l_Lean_docStringExt; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabExport___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection_declRange__1___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd_declRange__1___closed__6; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5(uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabReduce___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__36; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Elab_Command_elabOmit___spec__10(lean_object*, lean_object*); @@ -691,9 +701,9 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEnd___lambda__1(lean_object*, l LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabOmit___spec__12___lambda__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_scopedEnvExtensionsRef; static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__12; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabAddDeclDoc___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Command_elabWhere__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabImport___rarg(lean_object*, lean_object*, lean_object*); @@ -712,21 +722,21 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere lean_object* l_Lean_logAt___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_forArgsM___at_Lean_Elab_Command_elabUniverse___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabUniverse(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___lambda__1(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabVersion__1___closed__5; lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__22; static lean_object* l_Lean_Elab_Command_elabImport___rarg___closed__2; static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__12___closed__3; -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth_declRange__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Command_elabOpen___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabAddDeclDoc___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_realizeGlobalConstWithInfos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KVMap_setBool(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_addConstInfo___at_Lean_Elab_Command_elabExport___spec__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_add_alias(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__12; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth__1___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabReduce(lean_object*, lean_object*, lean_object*, lean_object*); @@ -741,7 +751,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabOpen(lean_object*, lean_object* static lean_object* l_Lean_Elab_Command_elabOmit___lambda__1___closed__2; static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabOpen___spec__15___closed__2; LEAN_EXPORT lean_object* l_Lean_popScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__1(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__2; static lean_object* l_Lean_Elab_Command_elabCheckCore___lambda__1___closed__2; static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__32; static lean_object* l___regBuiltin_Lean_Elab_Command_elabExit_declRange__1___closed__2; @@ -763,7 +772,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabExit_declRange__1___clo LEAN_EXPORT lean_object* l_Lean_addDeclarationRanges___at_Lean_Elab_Command_elabAddDeclDoc___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabImport__1___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable_declRange__1___closed__4; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__28(lean_object*, size_t, size_t, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck_declRange__1___closed__5; static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__1; @@ -809,6 +817,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc__1___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Command_elabExport___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabChoice_declRange__1___closed__6; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__7; static lean_object* l_Lean_Elab_Command_elabCheckFailure___closed__1; static lean_object* l_Lean_Elab_Command_elabCheckCore___closed__2; @@ -817,7 +826,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd_declRange__1___ static lean_object* l___regBuiltin_Lean_Elab_Command_elabVersion__1___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Command_elabEoi__1___closed__4; static lean_object* l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__4; -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6; static lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__3; lean_object* l_Lean_Elab_elabSetOption___at_Lean_withSetOptionIn___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable__1___closed__3; @@ -828,6 +836,7 @@ static lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveName 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*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection__1___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth_declRange__1___closed__3; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__12; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabImport___boxed(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabExport_declRange__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd__1___closed__5; @@ -837,13 +846,11 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure__1___close static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth_declRange__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCheckCore___lambda__4(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth__1___closed__4; -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; static lean_object* l_Lean_Elab_Command_elabWhere_describeOpenDecls___closed__1; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabVersion__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot_declRange__1___closed__5; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8(uint8_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabOmit___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__21; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEnd___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -852,7 +859,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabImport_declRange__1___c static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption__1___closed__1; LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__2; -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__9; static lean_object* l_Lean_Elab_Command_elabInitQuot___rarg___closed__1; lean_object* l_Lean_Syntax_getOptionalIdent_x3f(lean_object*); static lean_object* l_Lean_Elab_Command_elabWhere___rarg___lambda__1___closed__4; @@ -864,24 +871,28 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabOmit___lambda__1(lean_object*, LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabExit__1(lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; lean_object* l_List_drop___rarg(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabOmit___spec__1___rarg(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabAddDeclDoc_declRange__1___closed__6; +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabWhere___rarg___closed__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_OpenDecl_elabOpenDecl___spec__5(size_t, size_t, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection_declRange__1___closed__2; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Command_elabOpen___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__3; static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSynth___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabChoice_declRange__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Command_failIfSucceeds(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabOmit___spec__12___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*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOptions___spec__1___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse_declRange__1___closed__4; lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabEoi__1(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd__1___closed__1; lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -895,6 +906,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabModuleDoc__1___closed__ LEAN_EXPORT lean_object* l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabExport___spec__4___lambda__2___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable_declRange__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabBinder___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot_declRange__1___closed__6; @@ -930,6 +942,7 @@ uint64_t lean_uint64_xor(uint64_t, uint64_t); static lean_object* l___regBuiltin_Lean_Elab_Command_elabImport__1___closed__3; static lean_object* l_Lean_Elab_Command_elabVersion___rarg___closed__4; static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__11; +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___at_Lean_Elab_Command_elabExport___spec__6___lambda__1___closed__1; uint8_t l_Lean_Syntax_isNone(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabOpen___spec__2___boxed(lean_object*, lean_object*, lean_object*); @@ -940,6 +953,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport_declRange__1___c LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabOmit___spec__12___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabWhere___rarg___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCheckCore___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabModuleDoc___closed__5; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabCheckCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable__1___closed__2; @@ -984,8 +998,10 @@ lean_object* l_Lean_Name_getString_x21(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabWhere__1(lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRangesFromSyntax___at_Lean_Elab_Command_elabAddDeclDoc___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabAddDeclDoc___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedDeclarationRanges; lean_object* lean_erase_macro_scopes(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverse___spec__3(lean_object*); @@ -1012,10 +1028,10 @@ extern lean_object* l_Lean_Elab_Command_instInhabitedScope; lean_object* lean_array_mk(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen_declRange__1___closed__7; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__1; static lean_object* l_Lean_Elab_Command_elabUniverse___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure_declRange__1___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabImport_declRange__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabOpen___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth_declRange__1(lean_object*); size_t lean_usize_add(size_t, size_t); @@ -1036,7 +1052,7 @@ lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l_Lean_ensureNoOverload___at_Lean_Elab_Command_elabExport___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabWhere__1___closed__5; static lean_object* l_Lean_Elab_Command_elabModuleDoc___closed__4; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_array_size(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabChoice_declRange__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabWhere___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1050,13 +1066,13 @@ lean_object* lean_io_error_to_string(lean_object*); static lean_object* l_Lean_Elab_Command_elabSynth___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabUniverse___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOpenDecls___spec__4___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabImport_declRange__1___closed__2; static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___closed__1; static lean_object* l_Lean_Elab_Command_elabCheckCore___lambda__4___closed__2; LEAN_EXPORT lean_object* l_Lean_getRefPos___at_Lean_Elab_Command_elabExport___spec__21(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_OpenDecl_resolveNameUsingNamespaces___at_Lean_Elab_Command_elabExport___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1065,6 +1081,7 @@ lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessag lean_object* l_Lean_Syntax_unsetTrailing(lean_object*); static lean_object* l_Lean_resolveNamespaceCore___at_Lean_Elab_Command_elabExport___spec__4___closed__3; static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__25; +static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabWhere_describeOptions___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOpenDecls___spec__4___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen__1___closed__1; @@ -1072,10 +1089,13 @@ static uint8_t l_Lean_Elab_Command_elabVersion___rarg___closed__3; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabInclude___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabOmit___spec__12___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabOpen___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen__1(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_beq___at___private_Lean_Data_OpenDecl_0__Lean_beqOpenDecl____x40_Lean_Data_OpenDecl___hyg_41____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce_declRange__1(lean_object*); static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__37; @@ -1090,17 +1110,16 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption__1___closed__ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce_declRange__1___closed__2; lean_object* lean_array_get_size(lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd_declRange__1___closed__7; LEAN_EXPORT lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getDocStringText___at_Lean_Elab_Command_elabAddDeclDoc___spec__2___closed__1; -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabAddDeclDoc_declRange__1___closed__4; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Command_elabExport___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_Command_elabExport___spec__17(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabInclude__1___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabImport_declRange__1___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace__1___closed__3; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry___at_Lean_Elab_Command_elabOmit___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -1127,20 +1146,24 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___s LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabWhere___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Exception_isRuntime(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSynth___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabAddDeclDoc___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabWhere_describeOpenDecls___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterTR_loop___at_Lean_Elab_Command_elabOmit___spec__15___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope___closed__1; lean_object* l_List_toString___at_Lean_OpenDecl_instToString___spec__1(lean_object*); static lean_object* l_Lean_Elab_Command_elabReduce___closed__2; +static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSetOption(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabWhere_describeOpenDecls___closed__2; extern lean_object* l_System_Platform_target; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabExport___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwErrorWithNestedErrors___at_Lean_Elab_Command_elabExport___spec__19___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabVariable___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__11(uint8_t, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterTR_loop___at_Lean_Elab_Command_elabInclude___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__40; +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern uint8_t l_System_Platform_isWindows; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_resolveNameUsingNamespacesCore___spec__2(size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_Command_elabVersion___rarg___lambda__1___closed__5; @@ -1169,16 +1192,15 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabNonComputableSection_de uint8_t l_Lean_Expr_isSyntheticSorry(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabVariable___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabOpen___lambda__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabOpen___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lean_Elab_Command_elabOmit___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__6; LEAN_EXPORT lean_object* l___private_Lean_ResolveName_0__Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getRefPos___at_Lean_Elab_Command_elabExport___spec__21___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabSetOption___lambda__1(lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_OpenDecl_elabOpenDecl___spec__52(size_t, size_t, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabOmit__1___closed__3; LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Elab_Command_elabEnd___spec__1(lean_object*, lean_object*); @@ -1188,6 +1210,7 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_ela LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecls___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabAddDeclDoc___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwErrorWithNestedErrors___at_Lean_Elab_Command_elabExport___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabCheckCore___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_containsId___spec__1(lean_object*, lean_object*, size_t, size_t); static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd_declRange__1___closed__1; @@ -1196,6 +1219,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabOmit__1___closed__1; uint8_t l_Array_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabNonComputableSection__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Command_elabExport___spec__25(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_406_(uint8_t, uint8_t); uint8_t l_Lean_MessageLog_hasErrors(lean_object*); lean_object* l_Lean_Elab_Term_withDeclName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabModuleDoc___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -15446,6 +15470,46 @@ x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } +static lean_object* _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("strictImplicitBinder", 20, 20); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l___regBuiltin_Lean_Elab_Command_elabModuleDoc__1___closed__1; +x_2 = l___regBuiltin_Lean_Elab_Command_elabModuleDoc__1___closed__2; +x_3 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__1; +x_4 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__6; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("instBinder", 10, 10); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l___regBuiltin_Lean_Elab_Command_elabModuleDoc__1___closed__1; +x_2 = l___regBuiltin_Lean_Elab_Command_elabModuleDoc__1___closed__2; +x_3 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__1; +x_4 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__8; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f(lean_object* x_1) { _start: { @@ -15461,89 +15525,184 @@ lean_inc(x_1); x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); if (x_5 == 0) { -lean_object* x_6; +lean_object* x_6; uint8_t x_7; +x_6 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +lean_inc(x_1); +x_7 = l_Lean_Syntax_isOfKind(x_1, x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +lean_inc(x_1); +x_9 = l_Lean_Syntax_isOfKind(x_1, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_dec(x_1); -x_6 = lean_box(0); -return x_6; +x_10 = lean_box(0); +return x_10; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_7 = lean_unsigned_to_nat(1u); -x_8 = l_Lean_Syntax_getArg(x_1, x_7); -x_9 = lean_unsigned_to_nat(2u); -x_10 = l_Lean_Syntax_getArg(x_1, x_9); +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_unsigned_to_nat(1u); +x_12 = l_Lean_Syntax_getArg(x_1, x_11); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Lean_Syntax_matchesNull(x_12, x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_dec(x_1); -x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Lean_Syntax_matchesNull(x_10, x_11); -if (x_12 == 0) -{ -lean_object* x_13; -lean_dec(x_8); -x_13 = lean_box(0); -return x_13; +x_15 = lean_box(0); +return x_15; } else { -lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = l_Lean_Syntax_getArgs(x_8); -lean_dec(x_8); -x_15 = 0; -x_16 = lean_box(x_15); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_14); -lean_ctor_set(x_17, 1, x_16); -x_18 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_18, 0, x_17); -return x_18; -} -} -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_19 = lean_unsigned_to_nat(1u); -x_20 = l_Lean_Syntax_getArg(x_1, x_19); -x_21 = lean_unsigned_to_nat(2u); -x_22 = l_Lean_Syntax_getArg(x_1, x_21); -x_23 = lean_unsigned_to_nat(0u); -x_24 = l_Lean_Syntax_matchesNull(x_22, x_23); -if (x_24 == 0) -{ -lean_object* x_25; -lean_dec(x_20); +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_unsigned_to_nat(2u); +x_17 = l_Lean_Syntax_getArg(x_1, x_16); lean_dec(x_1); -x_25 = lean_box(0); -return x_25; +x_18 = l_Lean_Elab_Command_elabSection___closed__4; +lean_inc(x_17); +x_19 = l_Lean_Syntax_isOfKind(x_17, x_18); +if (x_19 == 0) +{ +lean_object* x_20; +lean_dec(x_17); +x_20 = lean_box(0); +return x_20; } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_unsigned_to_nat(3u); -x_27 = l_Lean_Syntax_getArg(x_1, x_26); +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_17); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_array_mk(x_22); +x_24 = 3; +x_25 = lean_box(x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_23); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_26); +return x_27; +} +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_28 = lean_unsigned_to_nat(1u); +x_29 = l_Lean_Syntax_getArg(x_1, x_28); +x_30 = lean_unsigned_to_nat(2u); +x_31 = l_Lean_Syntax_getArg(x_1, x_30); lean_dec(x_1); -x_28 = l_Lean_Syntax_matchesNull(x_27, x_23); -if (x_28 == 0) +x_32 = lean_unsigned_to_nat(0u); +x_33 = l_Lean_Syntax_matchesNull(x_31, x_32); +if (x_33 == 0) { -lean_object* x_29; -lean_dec(x_20); -x_29 = lean_box(0); -return x_29; -} -else -{ -lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_30 = l_Lean_Syntax_getArgs(x_20); -lean_dec(x_20); -x_31 = 1; -x_32 = lean_box(x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_33); +lean_object* x_34; +lean_dec(x_29); +x_34 = lean_box(0); return x_34; } +else +{ +lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = l_Lean_Syntax_getArgs(x_29); +lean_dec(x_29); +x_36 = 2; +x_37 = lean_box(x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_35); +lean_ctor_set(x_38, 1, x_37); +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_38); +return x_39; +} +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_40 = lean_unsigned_to_nat(1u); +x_41 = l_Lean_Syntax_getArg(x_1, x_40); +x_42 = lean_unsigned_to_nat(2u); +x_43 = l_Lean_Syntax_getArg(x_1, x_42); +lean_dec(x_1); +x_44 = lean_unsigned_to_nat(0u); +x_45 = l_Lean_Syntax_matchesNull(x_43, x_44); +if (x_45 == 0) +{ +lean_object* x_46; +lean_dec(x_41); +x_46 = lean_box(0); +return x_46; +} +else +{ +lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_47 = l_Lean_Syntax_getArgs(x_41); +lean_dec(x_41); +x_48 = 1; +x_49 = lean_box(x_48); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_51, 0, x_50); +return x_51; +} +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_52 = lean_unsigned_to_nat(1u); +x_53 = l_Lean_Syntax_getArg(x_1, x_52); +x_54 = lean_unsigned_to_nat(2u); +x_55 = l_Lean_Syntax_getArg(x_1, x_54); +x_56 = lean_unsigned_to_nat(0u); +x_57 = l_Lean_Syntax_matchesNull(x_55, x_56); +if (x_57 == 0) +{ +lean_object* x_58; +lean_dec(x_53); +lean_dec(x_1); +x_58 = lean_box(0); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_59 = lean_unsigned_to_nat(3u); +x_60 = l_Lean_Syntax_getArg(x_1, x_59); +lean_dec(x_1); +x_61 = l_Lean_Syntax_matchesNull(x_60, x_56); +if (x_61 == 0) +{ +lean_object* x_62; +lean_dec(x_53); +x_62 = lean_box(0); +return x_62; +} +else +{ +lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_63 = l_Lean_Syntax_getArgs(x_53); +lean_dec(x_53); +x_64 = 0; +x_65 = lean_box(x_64); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_65); +x_67 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_67, 0, x_66); +return x_67; +} } } } @@ -15648,7 +15807,41 @@ x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_usize_dec_eq(x_3, x_4); +if (x_5 == 0) +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_uget(x_2, x_3); +x_7 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_containsId(x_1, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = lean_usize_add(x_3, x_8); +x_3 = x_9; +goto _start; +} +else +{ +uint8_t x_11; +x_11 = 1; +return x_11; +} +} +else +{ +uint8_t x_12; +x_12 = 0; +return x_12; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; @@ -15736,7 +15929,7 @@ return x_27; } } } -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(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; uint8_t x_10; @@ -15755,7 +15948,7 @@ lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_3, 6); lean_dec(x_11); lean_ctor_set(x_3, 6, x_9); -x_12 = l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(x_2, x_3, x_4, x_8); +x_12 = l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3(x_2, x_3, x_4, x_8); return x_12; } else @@ -15793,122 +15986,12 @@ lean_ctor_set(x_23, 7, x_19); lean_ctor_set(x_23, 8, x_20); lean_ctor_set(x_23, 9, x_21); lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); -x_24 = l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(x_2, x_23, x_4, x_8); +x_24 = l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3(x_2, x_23, x_4, x_8); return x_24; } } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("redundant binder annotation update", 34, 34); -return x_1; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -uint8_t x_11; -x_11 = lean_usize_dec_lt(x_6, x_5); -if (x_11 == 0) -{ -lean_object* x_12; -lean_dec(x_8); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_7); -lean_ctor_set(x_12, 1, x_10); -return x_12; -} -else -{ -lean_object* x_13; uint8_t x_14; -lean_dec(x_7); -x_13 = lean_array_uget(x_4, x_6); -x_14 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_containsId(x_2, x_13); -if (x_14 == 0) -{ -size_t x_15; size_t x_16; lean_object* x_17; -lean_dec(x_13); -x_15 = 1; -x_16 = lean_usize_add(x_6, x_15); -x_17 = lean_box(0); -x_6 = x_16; -x_7 = x_17; -goto _start; -} -else -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___closed__2; -x_20 = l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(x_13, x_19, x_8, x_9, x_10); -lean_dec(x_13); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -return x_20; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_20); -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set(x_24, 1, x_23); -return x_24; -} -} -} -} -} -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = lean_usize_dec_eq(x_3, x_4); -if (x_5 == 0) -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_uget(x_2, x_3); -x_7 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_containsId(x_1, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -size_t x_8; size_t x_9; -x_8 = 1; -x_9 = lean_usize_add(x_3, x_8); -x_3 = x_9; -goto _start; -} -else -{ -uint8_t x_11; -x_11 = 1; -return x_11; -} -} -else -{ -uint8_t x_12; -x_12 = 0; -return x_12; -} -} -} -LEAN_EXPORT uint8_t l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___lambda__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; @@ -15931,15 +16014,15 @@ return x_7; } } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("{", 1, 1); +x_1 = lean_mk_string_unchecked("(", 1, 1); return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__2() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__2() { _start: { lean_object* x_1; @@ -15947,25 +16030,17 @@ x_1 = lean_mk_string_unchecked("null", 4, 4); return x_1; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__2; +x_2 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__2; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("}", 1, 1); -return x_1; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -15974,2077 +16049,4459 @@ x_2 = l_Array_append___rarg(x_1, x_1); return x_2; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6() { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("(", 1, 1); +x_1 = lean_mk_string_unchecked("{", 1, 1); return x_1; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5(uint8_t x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, size_t x_7, size_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6() { _start: { -uint8_t x_13; -x_13 = lean_usize_dec_lt(x_8, x_7); -if (x_13 == 0) +lean_object* x_1; +x_1 = lean_mk_string_unchecked("}", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__7() { +_start: { -lean_object* x_14; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("group", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__7; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("cannot update binder annotation of variable '", 45, 45); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__9; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("' to instance implicit:\nvariable was originally declared without an explicit type", 81, 81); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__11; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("[", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("]", 1, 1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2(lean_object* x_1, uint8_t 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; lean_object* x_12; +switch (x_2) { +case 0: +{ +lean_object* x_21; uint8_t x_22; +x_21 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +x_25 = 0; +x_26 = l_Lean_SourceInfo_fromRef(x_23, x_25); +lean_dec(x_23); +x_27 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_24); +lean_dec(x_8); +x_28 = !lean_is_exclusive(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_27, 1); +x_30 = lean_ctor_get(x_27, 0); +lean_dec(x_30); +x_31 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_29); +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_33 = lean_ctor_get(x_31, 1); +x_34 = lean_ctor_get(x_31, 0); +lean_dec(x_34); +x_35 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; +lean_inc(x_26); +lean_ctor_set_tag(x_31, 2); +lean_ctor_set(x_31, 1, x_35); +lean_ctor_set(x_31, 0, x_26); +x_36 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_26); +x_37 = l_Lean_Syntax_node1(x_26, x_36, x_3); +x_38 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_26); +x_39 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_39, 0, x_26); +lean_ctor_set(x_39, 1, x_36); +lean_ctor_set(x_39, 2, x_38); +x_40 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +lean_inc(x_26); +lean_ctor_set_tag(x_27, 2); +lean_ctor_set(x_27, 1, x_40); +lean_ctor_set(x_27, 0, x_26); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_free_object(x_21); +x_41 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_26); +x_42 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_42, 0, x_26); +lean_ctor_set(x_42, 1, x_36); +lean_ctor_set(x_42, 2, x_41); +x_43 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_44 = l_Lean_Syntax_node5(x_26, x_43, x_31, x_37, x_42, x_39, x_27); +x_11 = x_44; +x_12 = x_33; +goto block_20; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_45 = lean_ctor_get(x_4, 0); +lean_inc(x_45); +lean_dec(x_4); +x_46 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_26); +lean_ctor_set_tag(x_21, 2); +lean_ctor_set(x_21, 1, x_46); +lean_ctor_set(x_21, 0, x_26); +x_47 = l_Array_mkArray2___rarg(x_21, x_45); +x_48 = l_Array_append___rarg(x_38, x_47); +lean_dec(x_47); +lean_inc(x_26); +x_49 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_49, 0, x_26); +lean_ctor_set(x_49, 1, x_36); +lean_ctor_set(x_49, 2, x_48); +x_50 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_51 = l_Lean_Syntax_node5(x_26, x_50, x_31, x_37, x_49, x_39, x_27); +x_11 = x_51; +x_12 = x_33; +goto block_20; +} +} +else +{ +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; +x_52 = lean_ctor_get(x_31, 1); +lean_inc(x_52); +lean_dec(x_31); +x_53 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; +lean_inc(x_26); +x_54 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_54, 0, x_26); +lean_ctor_set(x_54, 1, x_53); +x_55 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_26); +x_56 = l_Lean_Syntax_node1(x_26, x_55, x_3); +x_57 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_26); +x_58 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_58, 0, x_26); +lean_ctor_set(x_58, 1, x_55); +lean_ctor_set(x_58, 2, x_57); +x_59 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +lean_inc(x_26); +lean_ctor_set_tag(x_27, 2); +lean_ctor_set(x_27, 1, x_59); +lean_ctor_set(x_27, 0, x_26); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_free_object(x_21); +x_60 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_26); +x_61 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_61, 0, x_26); +lean_ctor_set(x_61, 1, x_55); +lean_ctor_set(x_61, 2, x_60); +x_62 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_63 = l_Lean_Syntax_node5(x_26, x_62, x_54, x_56, x_61, x_58, x_27); +x_11 = x_63; +x_12 = x_52; +goto block_20; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_64 = lean_ctor_get(x_4, 0); +lean_inc(x_64); +lean_dec(x_4); +x_65 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_26); +lean_ctor_set_tag(x_21, 2); +lean_ctor_set(x_21, 1, x_65); +lean_ctor_set(x_21, 0, x_26); +x_66 = l_Array_mkArray2___rarg(x_21, x_64); +x_67 = l_Array_append___rarg(x_57, x_66); +lean_dec(x_66); +lean_inc(x_26); +x_68 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_68, 0, x_26); +lean_ctor_set(x_68, 1, x_55); +lean_ctor_set(x_68, 2, x_67); +x_69 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_70 = l_Lean_Syntax_node5(x_26, x_69, x_54, x_56, x_68, x_58, x_27); +x_11 = x_70; +x_12 = x_52; +goto block_20; +} +} +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_71 = lean_ctor_get(x_27, 1); +lean_inc(x_71); +lean_dec(x_27); +x_72 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_71); +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_74 = x_72; +} else { + lean_dec_ref(x_72); + x_74 = lean_box(0); +} +x_75 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; +lean_inc(x_26); +if (lean_is_scalar(x_74)) { + x_76 = lean_alloc_ctor(2, 2, 0); +} else { + x_76 = x_74; + lean_ctor_set_tag(x_76, 2); +} +lean_ctor_set(x_76, 0, x_26); +lean_ctor_set(x_76, 1, x_75); +x_77 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_26); +x_78 = l_Lean_Syntax_node1(x_26, x_77, x_3); +x_79 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_26); +x_80 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_80, 0, x_26); +lean_ctor_set(x_80, 1, x_77); +lean_ctor_set(x_80, 2, x_79); +x_81 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +lean_inc(x_26); +x_82 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_82, 0, x_26); +lean_ctor_set(x_82, 1, x_81); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_free_object(x_21); +x_83 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_26); +x_84 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_84, 0, x_26); +lean_ctor_set(x_84, 1, x_77); +lean_ctor_set(x_84, 2, x_83); +x_85 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_86 = l_Lean_Syntax_node5(x_26, x_85, x_76, x_78, x_84, x_80, x_82); +x_11 = x_86; +x_12 = x_73; +goto block_20; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_87 = lean_ctor_get(x_4, 0); +lean_inc(x_87); +lean_dec(x_4); +x_88 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_26); +lean_ctor_set_tag(x_21, 2); +lean_ctor_set(x_21, 1, x_88); +lean_ctor_set(x_21, 0, x_26); +x_89 = l_Array_mkArray2___rarg(x_21, x_87); +x_90 = l_Array_append___rarg(x_79, x_89); +lean_dec(x_89); +lean_inc(x_26); +x_91 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_91, 0, x_26); +lean_ctor_set(x_91, 1, x_77); +lean_ctor_set(x_91, 2, x_90); +x_92 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_93 = l_Lean_Syntax_node5(x_26, x_92, x_76, x_78, x_91, x_80, x_82); +x_11 = x_93; +x_12 = x_73; +goto block_20; +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_94 = lean_ctor_get(x_21, 0); +x_95 = lean_ctor_get(x_21, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_21); +x_96 = 0; +x_97 = l_Lean_SourceInfo_fromRef(x_94, x_96); +lean_dec(x_94); +x_98 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_95); +lean_dec(x_8); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_100 = x_98; +} else { + lean_dec_ref(x_98); + x_100 = lean_box(0); +} +x_101 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_99); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_103 = x_101; +} else { + lean_dec_ref(x_101); + x_103 = lean_box(0); +} +x_104 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; +lean_inc(x_97); +if (lean_is_scalar(x_103)) { + x_105 = lean_alloc_ctor(2, 2, 0); +} else { + x_105 = x_103; + lean_ctor_set_tag(x_105, 2); +} +lean_ctor_set(x_105, 0, x_97); +lean_ctor_set(x_105, 1, x_104); +x_106 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_97); +x_107 = l_Lean_Syntax_node1(x_97, x_106, x_3); +x_108 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_97); +x_109 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_109, 0, x_97); +lean_ctor_set(x_109, 1, x_106); +lean_ctor_set(x_109, 2, x_108); +x_110 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +lean_inc(x_97); +if (lean_is_scalar(x_100)) { + x_111 = lean_alloc_ctor(2, 2, 0); +} else { + x_111 = x_100; + lean_ctor_set_tag(x_111, 2); +} +lean_ctor_set(x_111, 0, x_97); +lean_ctor_set(x_111, 1, x_110); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_112 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_97); +x_113 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_113, 0, x_97); +lean_ctor_set(x_113, 1, x_106); +lean_ctor_set(x_113, 2, x_112); +x_114 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_115 = l_Lean_Syntax_node5(x_97, x_114, x_105, x_107, x_113, x_109, x_111); +x_11 = x_115; +x_12 = x_102; +goto block_20; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_116 = lean_ctor_get(x_4, 0); +lean_inc(x_116); +lean_dec(x_4); +x_117 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_97); +x_118 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_118, 0, x_97); +lean_ctor_set(x_118, 1, x_117); +x_119 = l_Array_mkArray2___rarg(x_118, x_116); +x_120 = l_Array_append___rarg(x_108, x_119); +lean_dec(x_119); +lean_inc(x_97); +x_121 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_121, 0, x_97); +lean_ctor_set(x_121, 1, x_106); +lean_ctor_set(x_121, 2, x_120); +x_122 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_123 = l_Lean_Syntax_node5(x_97, x_122, x_105, x_107, x_121, x_109, x_111); +x_11 = x_123; +x_12 = x_102; +goto block_20; +} +} +} +case 1: +{ +lean_object* x_124; uint8_t x_125; +x_124 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); +x_125 = !lean_is_exclusive(x_124); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; +x_126 = lean_ctor_get(x_124, 0); +x_127 = lean_ctor_get(x_124, 1); +x_128 = 0; +x_129 = l_Lean_SourceInfo_fromRef(x_126, x_128); +lean_dec(x_126); +x_130 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_127); +lean_dec(x_8); +x_131 = !lean_is_exclusive(x_130); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; +x_132 = lean_ctor_get(x_130, 1); +x_133 = lean_ctor_get(x_130, 0); +lean_dec(x_133); +x_134 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_132); +x_135 = !lean_is_exclusive(x_134); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_136 = lean_ctor_get(x_134, 1); +x_137 = lean_ctor_get(x_134, 0); +lean_dec(x_137); +x_138 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_129); +lean_ctor_set_tag(x_134, 2); +lean_ctor_set(x_134, 1, x_138); +lean_ctor_set(x_134, 0, x_129); +x_139 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_129); +x_140 = l_Lean_Syntax_node1(x_129, x_139, x_3); +x_141 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_129); +lean_ctor_set_tag(x_130, 2); +lean_ctor_set(x_130, 1, x_141); +lean_ctor_set(x_130, 0, x_129); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_free_object(x_124); +x_142 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_129); +x_143 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_143, 0, x_129); +lean_ctor_set(x_143, 1, x_139); +lean_ctor_set(x_143, 2, x_142); +x_144 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_145 = l_Lean_Syntax_node4(x_129, x_144, x_134, x_140, x_143, x_130); +x_11 = x_145; +x_12 = x_136; +goto block_20; +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_146 = lean_ctor_get(x_4, 0); +lean_inc(x_146); +lean_dec(x_4); +x_147 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_129); +lean_ctor_set_tag(x_124, 2); +lean_ctor_set(x_124, 1, x_147); +lean_ctor_set(x_124, 0, x_129); +x_148 = l_Array_mkArray2___rarg(x_124, x_146); +x_149 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_150 = l_Array_append___rarg(x_149, x_148); +lean_dec(x_148); +lean_inc(x_129); +x_151 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_151, 0, x_129); +lean_ctor_set(x_151, 1, x_139); +lean_ctor_set(x_151, 2, x_150); +x_152 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_153 = l_Lean_Syntax_node4(x_129, x_152, x_134, x_140, x_151, x_130); +x_11 = x_153; +x_12 = x_136; +goto block_20; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_154 = lean_ctor_get(x_134, 1); +lean_inc(x_154); +lean_dec(x_134); +x_155 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_129); +x_156 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_156, 0, x_129); +lean_ctor_set(x_156, 1, x_155); +x_157 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_129); +x_158 = l_Lean_Syntax_node1(x_129, x_157, x_3); +x_159 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_129); +lean_ctor_set_tag(x_130, 2); +lean_ctor_set(x_130, 1, x_159); +lean_ctor_set(x_130, 0, x_129); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_free_object(x_124); +x_160 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_129); +x_161 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_161, 0, x_129); +lean_ctor_set(x_161, 1, x_157); +lean_ctor_set(x_161, 2, x_160); +x_162 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_163 = l_Lean_Syntax_node4(x_129, x_162, x_156, x_158, x_161, x_130); +x_11 = x_163; +x_12 = x_154; +goto block_20; +} +else +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_164 = lean_ctor_get(x_4, 0); +lean_inc(x_164); +lean_dec(x_4); +x_165 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_129); +lean_ctor_set_tag(x_124, 2); +lean_ctor_set(x_124, 1, x_165); +lean_ctor_set(x_124, 0, x_129); +x_166 = l_Array_mkArray2___rarg(x_124, x_164); +x_167 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_168 = l_Array_append___rarg(x_167, x_166); +lean_dec(x_166); +lean_inc(x_129); +x_169 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_169, 0, x_129); +lean_ctor_set(x_169, 1, x_157); +lean_ctor_set(x_169, 2, x_168); +x_170 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_171 = l_Lean_Syntax_node4(x_129, x_170, x_156, x_158, x_169, x_130); +x_11 = x_171; +x_12 = x_154; +goto block_20; +} +} +} +else +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_172 = lean_ctor_get(x_130, 1); +lean_inc(x_172); +lean_dec(x_130); +x_173 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_172); +x_174 = lean_ctor_get(x_173, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + x_175 = x_173; +} else { + lean_dec_ref(x_173); + x_175 = lean_box(0); +} +x_176 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_129); +if (lean_is_scalar(x_175)) { + x_177 = lean_alloc_ctor(2, 2, 0); +} else { + x_177 = x_175; + lean_ctor_set_tag(x_177, 2); +} +lean_ctor_set(x_177, 0, x_129); +lean_ctor_set(x_177, 1, x_176); +x_178 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_129); +x_179 = l_Lean_Syntax_node1(x_129, x_178, x_3); +x_180 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_129); +x_181 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_181, 0, x_129); +lean_ctor_set(x_181, 1, x_180); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +lean_free_object(x_124); +x_182 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_129); +x_183 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_183, 0, x_129); +lean_ctor_set(x_183, 1, x_178); +lean_ctor_set(x_183, 2, x_182); +x_184 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_185 = l_Lean_Syntax_node4(x_129, x_184, x_177, x_179, x_183, x_181); +x_11 = x_185; +x_12 = x_174; +goto block_20; +} +else +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_186 = lean_ctor_get(x_4, 0); +lean_inc(x_186); +lean_dec(x_4); +x_187 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_129); +lean_ctor_set_tag(x_124, 2); +lean_ctor_set(x_124, 1, x_187); +lean_ctor_set(x_124, 0, x_129); +x_188 = l_Array_mkArray2___rarg(x_124, x_186); +x_189 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_190 = l_Array_append___rarg(x_189, x_188); +lean_dec(x_188); +lean_inc(x_129); +x_191 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_191, 0, x_129); +lean_ctor_set(x_191, 1, x_178); +lean_ctor_set(x_191, 2, x_190); +x_192 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_193 = l_Lean_Syntax_node4(x_129, x_192, x_177, x_179, x_191, x_181); +x_11 = x_193; +x_12 = x_174; +goto block_20; +} +} +} +else +{ +lean_object* x_194; lean_object* x_195; uint8_t x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_194 = lean_ctor_get(x_124, 0); +x_195 = lean_ctor_get(x_124, 1); +lean_inc(x_195); +lean_inc(x_194); +lean_dec(x_124); +x_196 = 0; +x_197 = l_Lean_SourceInfo_fromRef(x_194, x_196); +lean_dec(x_194); +x_198 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_195); +lean_dec(x_8); +x_199 = lean_ctor_get(x_198, 1); +lean_inc(x_199); +if (lean_is_exclusive(x_198)) { + lean_ctor_release(x_198, 0); + lean_ctor_release(x_198, 1); + x_200 = x_198; +} else { + lean_dec_ref(x_198); + x_200 = lean_box(0); +} +x_201 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_199); +x_202 = lean_ctor_get(x_201, 1); +lean_inc(x_202); +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_203 = x_201; +} else { + lean_dec_ref(x_201); + x_203 = lean_box(0); +} +x_204 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_197); +if (lean_is_scalar(x_203)) { + x_205 = lean_alloc_ctor(2, 2, 0); +} else { + x_205 = x_203; + lean_ctor_set_tag(x_205, 2); +} +lean_ctor_set(x_205, 0, x_197); +lean_ctor_set(x_205, 1, x_204); +x_206 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_197); +x_207 = l_Lean_Syntax_node1(x_197, x_206, x_3); +x_208 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_197); +if (lean_is_scalar(x_200)) { + x_209 = lean_alloc_ctor(2, 2, 0); +} else { + x_209 = x_200; + lean_ctor_set_tag(x_209, 2); +} +lean_ctor_set(x_209, 0, x_197); +lean_ctor_set(x_209, 1, x_208); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_210 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_197); +x_211 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_211, 0, x_197); +lean_ctor_set(x_211, 1, x_206); +lean_ctor_set(x_211, 2, x_210); +x_212 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_213 = l_Lean_Syntax_node4(x_197, x_212, x_205, x_207, x_211, x_209); +x_11 = x_213; +x_12 = x_202; +goto block_20; +} +else +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; +x_214 = lean_ctor_get(x_4, 0); +lean_inc(x_214); +lean_dec(x_4); +x_215 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_197); +x_216 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_216, 0, x_197); +lean_ctor_set(x_216, 1, x_215); +x_217 = l_Array_mkArray2___rarg(x_216, x_214); +x_218 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_219 = l_Array_append___rarg(x_218, x_217); +lean_dec(x_217); +lean_inc(x_197); +x_220 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_220, 0, x_197); +lean_ctor_set(x_220, 1, x_206); +lean_ctor_set(x_220, 2, x_219); +x_221 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_222 = l_Lean_Syntax_node4(x_197, x_221, x_205, x_207, x_220, x_209); +x_11 = x_222; +x_12 = x_202; +goto block_20; +} +} +} +case 2: +{ +lean_object* x_223; uint8_t x_224; +x_223 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); +x_224 = !lean_is_exclusive(x_223); +if (x_224 == 0) +{ +lean_object* x_225; lean_object* x_226; uint8_t x_227; lean_object* x_228; lean_object* x_229; uint8_t x_230; +x_225 = lean_ctor_get(x_223, 0); +x_226 = lean_ctor_get(x_223, 1); +x_227 = 0; +x_228 = l_Lean_SourceInfo_fromRef(x_225, x_227); +lean_dec(x_225); +x_229 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_226); +lean_dec(x_8); +x_230 = !lean_is_exclusive(x_229); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; +x_231 = lean_ctor_get(x_229, 1); +x_232 = lean_ctor_get(x_229, 0); +lean_dec(x_232); +x_233 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_231); +x_234 = !lean_is_exclusive(x_233); +if (x_234 == 0) +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +x_235 = lean_ctor_get(x_233, 1); +x_236 = lean_ctor_get(x_233, 0); +lean_dec(x_236); +x_237 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_228); +lean_ctor_set_tag(x_233, 2); +lean_ctor_set(x_233, 1, x_237); +lean_ctor_set(x_233, 0, x_228); +x_238 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_233); +lean_inc(x_228); +x_239 = l_Lean_Syntax_node2(x_228, x_238, x_233, x_233); +x_240 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_228); +x_241 = l_Lean_Syntax_node1(x_228, x_240, x_3); +x_242 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_228); +lean_ctor_set_tag(x_229, 2); +lean_ctor_set(x_229, 1, x_242); +lean_ctor_set(x_229, 0, x_228); +lean_inc(x_229); +lean_inc(x_228); +x_243 = l_Lean_Syntax_node2(x_228, x_238, x_229, x_229); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; +lean_free_object(x_223); +x_244 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_228); +x_245 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_245, 0, x_228); +lean_ctor_set(x_245, 1, x_240); +lean_ctor_set(x_245, 2, x_244); +x_246 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_247 = l_Lean_Syntax_node4(x_228, x_246, x_239, x_241, x_245, x_243); +x_11 = x_247; +x_12 = x_235; +goto block_20; +} +else +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +x_248 = lean_ctor_get(x_4, 0); +lean_inc(x_248); +lean_dec(x_4); +x_249 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_228); +lean_ctor_set_tag(x_223, 2); +lean_ctor_set(x_223, 1, x_249); +lean_ctor_set(x_223, 0, x_228); +x_250 = l_Array_mkArray2___rarg(x_223, x_248); +x_251 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_252 = l_Array_append___rarg(x_251, x_250); +lean_dec(x_250); +lean_inc(x_228); +x_253 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_253, 0, x_228); +lean_ctor_set(x_253, 1, x_240); +lean_ctor_set(x_253, 2, x_252); +x_254 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_255 = l_Lean_Syntax_node4(x_228, x_254, x_239, x_241, x_253, x_243); +x_11 = x_255; +x_12 = x_235; +goto block_20; +} +} +else +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; +x_256 = lean_ctor_get(x_233, 1); +lean_inc(x_256); +lean_dec(x_233); +x_257 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_228); +x_258 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_258, 0, x_228); +lean_ctor_set(x_258, 1, x_257); +x_259 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_258); +lean_inc(x_228); +x_260 = l_Lean_Syntax_node2(x_228, x_259, x_258, x_258); +x_261 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_228); +x_262 = l_Lean_Syntax_node1(x_228, x_261, x_3); +x_263 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_228); +lean_ctor_set_tag(x_229, 2); +lean_ctor_set(x_229, 1, x_263); +lean_ctor_set(x_229, 0, x_228); +lean_inc(x_229); +lean_inc(x_228); +x_264 = l_Lean_Syntax_node2(x_228, x_259, x_229, x_229); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; +lean_free_object(x_223); +x_265 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_228); +x_266 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_266, 0, x_228); +lean_ctor_set(x_266, 1, x_261); +lean_ctor_set(x_266, 2, x_265); +x_267 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_268 = l_Lean_Syntax_node4(x_228, x_267, x_260, x_262, x_266, x_264); +x_11 = x_268; +x_12 = x_256; +goto block_20; +} +else +{ +lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_269 = lean_ctor_get(x_4, 0); +lean_inc(x_269); +lean_dec(x_4); +x_270 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_228); +lean_ctor_set_tag(x_223, 2); +lean_ctor_set(x_223, 1, x_270); +lean_ctor_set(x_223, 0, x_228); +x_271 = l_Array_mkArray2___rarg(x_223, x_269); +x_272 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_273 = l_Array_append___rarg(x_272, x_271); +lean_dec(x_271); +lean_inc(x_228); +x_274 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_274, 0, x_228); +lean_ctor_set(x_274, 1, x_261); +lean_ctor_set(x_274, 2, x_273); +x_275 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_276 = l_Lean_Syntax_node4(x_228, x_275, x_260, x_262, x_274, x_264); +x_11 = x_276; +x_12 = x_256; +goto block_20; +} +} +} +else +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; +x_277 = lean_ctor_get(x_229, 1); +lean_inc(x_277); +lean_dec(x_229); +x_278 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_277); +x_279 = lean_ctor_get(x_278, 1); +lean_inc(x_279); +if (lean_is_exclusive(x_278)) { + lean_ctor_release(x_278, 0); + lean_ctor_release(x_278, 1); + x_280 = x_278; +} else { + lean_dec_ref(x_278); + x_280 = lean_box(0); +} +x_281 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_228); +if (lean_is_scalar(x_280)) { + x_282 = lean_alloc_ctor(2, 2, 0); +} else { + x_282 = x_280; + lean_ctor_set_tag(x_282, 2); +} +lean_ctor_set(x_282, 0, x_228); +lean_ctor_set(x_282, 1, x_281); +x_283 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_282); +lean_inc(x_228); +x_284 = l_Lean_Syntax_node2(x_228, x_283, x_282, x_282); +x_285 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_228); +x_286 = l_Lean_Syntax_node1(x_228, x_285, x_3); +x_287 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_228); +x_288 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_288, 0, x_228); +lean_ctor_set(x_288, 1, x_287); +lean_inc(x_288); +lean_inc(x_228); +x_289 = l_Lean_Syntax_node2(x_228, x_283, x_288, x_288); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +lean_free_object(x_223); +x_290 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_228); +x_291 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_291, 0, x_228); +lean_ctor_set(x_291, 1, x_285); +lean_ctor_set(x_291, 2, x_290); +x_292 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_293 = l_Lean_Syntax_node4(x_228, x_292, x_284, x_286, x_291, x_289); +x_11 = x_293; +x_12 = x_279; +goto block_20; +} +else +{ +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_294 = lean_ctor_get(x_4, 0); +lean_inc(x_294); +lean_dec(x_4); +x_295 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_228); +lean_ctor_set_tag(x_223, 2); +lean_ctor_set(x_223, 1, x_295); +lean_ctor_set(x_223, 0, x_228); +x_296 = l_Array_mkArray2___rarg(x_223, x_294); +x_297 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_298 = l_Array_append___rarg(x_297, x_296); +lean_dec(x_296); +lean_inc(x_228); +x_299 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_299, 0, x_228); +lean_ctor_set(x_299, 1, x_285); +lean_ctor_set(x_299, 2, x_298); +x_300 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_301 = l_Lean_Syntax_node4(x_228, x_300, x_284, x_286, x_299, x_289); +x_11 = x_301; +x_12 = x_279; +goto block_20; +} +} +} +else +{ +lean_object* x_302; lean_object* x_303; uint8_t x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; +x_302 = lean_ctor_get(x_223, 0); +x_303 = lean_ctor_get(x_223, 1); +lean_inc(x_303); +lean_inc(x_302); +lean_dec(x_223); +x_304 = 0; +x_305 = l_Lean_SourceInfo_fromRef(x_302, x_304); +lean_dec(x_302); +x_306 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_303); +lean_dec(x_8); +x_307 = lean_ctor_get(x_306, 1); +lean_inc(x_307); +if (lean_is_exclusive(x_306)) { + lean_ctor_release(x_306, 0); + lean_ctor_release(x_306, 1); + x_308 = x_306; +} else { + lean_dec_ref(x_306); + x_308 = lean_box(0); +} +x_309 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_307); +x_310 = lean_ctor_get(x_309, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_309)) { + lean_ctor_release(x_309, 0); + lean_ctor_release(x_309, 1); + x_311 = x_309; +} else { + lean_dec_ref(x_309); + x_311 = lean_box(0); +} +x_312 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_305); +if (lean_is_scalar(x_311)) { + x_313 = lean_alloc_ctor(2, 2, 0); +} else { + x_313 = x_311; + lean_ctor_set_tag(x_313, 2); +} +lean_ctor_set(x_313, 0, x_305); +lean_ctor_set(x_313, 1, x_312); +x_314 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_313); +lean_inc(x_305); +x_315 = l_Lean_Syntax_node2(x_305, x_314, x_313, x_313); +x_316 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_305); +x_317 = l_Lean_Syntax_node1(x_305, x_316, x_3); +x_318 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_305); +if (lean_is_scalar(x_308)) { + x_319 = lean_alloc_ctor(2, 2, 0); +} else { + x_319 = x_308; + lean_ctor_set_tag(x_319, 2); +} +lean_ctor_set(x_319, 0, x_305); +lean_ctor_set(x_319, 1, x_318); +lean_inc(x_319); +lean_inc(x_305); +x_320 = l_Lean_Syntax_node2(x_305, x_314, x_319, x_319); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +x_321 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_305); +x_322 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_322, 0, x_305); +lean_ctor_set(x_322, 1, x_316); +lean_ctor_set(x_322, 2, x_321); +x_323 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_324 = l_Lean_Syntax_node4(x_305, x_323, x_315, x_317, x_322, x_320); +x_11 = x_324; +x_12 = x_310; +goto block_20; +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; +x_325 = lean_ctor_get(x_4, 0); +lean_inc(x_325); +lean_dec(x_4); +x_326 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_305); +x_327 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_327, 0, x_305); +lean_ctor_set(x_327, 1, x_326); +x_328 = l_Array_mkArray2___rarg(x_327, x_325); +x_329 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_330 = l_Array_append___rarg(x_329, x_328); +lean_dec(x_328); +lean_inc(x_305); +x_331 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_331, 0, x_305); +lean_ctor_set(x_331, 1, x_316); +lean_ctor_set(x_331, 2, x_330); +x_332 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_333 = l_Lean_Syntax_node4(x_305, x_332, x_315, x_317, x_331, x_320); +x_11 = x_333; +x_12 = x_310; +goto block_20; +} +} +} +default: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; uint8_t x_340; +lean_dec(x_6); +lean_dec(x_1); +x_334 = l_Lean_MessageData_ofSyntax(x_3); +x_335 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__10; +x_336 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_336, 0, x_335); +lean_ctor_set(x_336, 1, x_334); +x_337 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__12; +x_338 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_338, 0, x_336); +lean_ctor_set(x_338, 1, x_337); +x_339 = l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(x_5, x_338, x_8, x_9, x_10); +x_340 = !lean_is_exclusive(x_339); +if (x_340 == 0) +{ +return x_339; +} +else +{ +lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_341 = lean_ctor_get(x_339, 0); +x_342 = lean_ctor_get(x_339, 1); +lean_inc(x_342); +lean_inc(x_341); +lean_dec(x_339); +x_343 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_343, 0, x_341); +lean_ctor_set(x_343, 1, x_342); +return x_343; +} +} +else +{ +lean_object* x_344; lean_object* x_345; uint8_t x_346; +x_344 = lean_ctor_get(x_4, 0); +lean_inc(x_344); +lean_dec(x_4); +x_345 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); +x_346 = !lean_is_exclusive(x_345); +if (x_346 == 0) +{ +lean_object* x_347; lean_object* x_348; uint8_t x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; +x_347 = lean_ctor_get(x_345, 0); +x_348 = lean_ctor_get(x_345, 1); +x_349 = 0; +x_350 = l_Lean_SourceInfo_fromRef(x_347, x_349); +lean_dec(x_347); +x_351 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_348); +lean_dec(x_8); +x_352 = !lean_is_exclusive(x_351); +if (x_352 == 0) +{ +lean_object* x_353; lean_object* x_354; lean_object* x_355; uint8_t x_356; +x_353 = lean_ctor_get(x_351, 1); +x_354 = lean_ctor_get(x_351, 0); +lean_dec(x_354); +x_355 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_353); +x_356 = !lean_is_exclusive(x_355); +if (x_356 == 0) +{ +lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; +x_357 = lean_ctor_get(x_355, 1); +x_358 = lean_ctor_get(x_355, 0); +lean_dec(x_358); +x_359 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; +lean_inc(x_350); +lean_ctor_set_tag(x_355, 2); +lean_ctor_set(x_355, 1, x_359); +lean_ctor_set(x_355, 0, x_350); +x_360 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_350); +lean_ctor_set_tag(x_351, 2); +lean_ctor_set(x_351, 1, x_360); +lean_ctor_set(x_351, 0, x_350); +x_361 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_350); +x_362 = l_Lean_Syntax_node2(x_350, x_361, x_3, x_351); +x_363 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; +lean_inc(x_350); +lean_ctor_set_tag(x_345, 2); +lean_ctor_set(x_345, 1, x_363); +lean_ctor_set(x_345, 0, x_350); +x_364 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +x_365 = l_Lean_Syntax_node4(x_350, x_364, x_355, x_362, x_344, x_345); +x_11 = x_365; +x_12 = x_357; +goto block_20; +} +else +{ +lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; +x_366 = lean_ctor_get(x_355, 1); +lean_inc(x_366); +lean_dec(x_355); +x_367 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; +lean_inc(x_350); +x_368 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_368, 0, x_350); +lean_ctor_set(x_368, 1, x_367); +x_369 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_350); +lean_ctor_set_tag(x_351, 2); +lean_ctor_set(x_351, 1, x_369); +lean_ctor_set(x_351, 0, x_350); +x_370 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_350); +x_371 = l_Lean_Syntax_node2(x_350, x_370, x_3, x_351); +x_372 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; +lean_inc(x_350); +lean_ctor_set_tag(x_345, 2); +lean_ctor_set(x_345, 1, x_372); +lean_ctor_set(x_345, 0, x_350); +x_373 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +x_374 = l_Lean_Syntax_node4(x_350, x_373, x_368, x_371, x_344, x_345); +x_11 = x_374; +x_12 = x_366; +goto block_20; +} +} +else +{ +lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; +x_375 = lean_ctor_get(x_351, 1); +lean_inc(x_375); +lean_dec(x_351); +x_376 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_375); +x_377 = lean_ctor_get(x_376, 1); +lean_inc(x_377); +if (lean_is_exclusive(x_376)) { + lean_ctor_release(x_376, 0); + lean_ctor_release(x_376, 1); + x_378 = x_376; +} else { + lean_dec_ref(x_376); + x_378 = lean_box(0); +} +x_379 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; +lean_inc(x_350); +if (lean_is_scalar(x_378)) { + x_380 = lean_alloc_ctor(2, 2, 0); +} else { + x_380 = x_378; + lean_ctor_set_tag(x_380, 2); +} +lean_ctor_set(x_380, 0, x_350); +lean_ctor_set(x_380, 1, x_379); +x_381 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_350); +x_382 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_382, 0, x_350); +lean_ctor_set(x_382, 1, x_381); +x_383 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_350); +x_384 = l_Lean_Syntax_node2(x_350, x_383, x_3, x_382); +x_385 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; +lean_inc(x_350); +lean_ctor_set_tag(x_345, 2); +lean_ctor_set(x_345, 1, x_385); +lean_ctor_set(x_345, 0, x_350); +x_386 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +x_387 = l_Lean_Syntax_node4(x_350, x_386, x_380, x_384, x_344, x_345); +x_11 = x_387; +x_12 = x_377; +goto block_20; +} +} +else +{ +lean_object* x_388; lean_object* x_389; uint8_t x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; +x_388 = lean_ctor_get(x_345, 0); +x_389 = lean_ctor_get(x_345, 1); +lean_inc(x_389); +lean_inc(x_388); +lean_dec(x_345); +x_390 = 0; +x_391 = l_Lean_SourceInfo_fromRef(x_388, x_390); +lean_dec(x_388); +x_392 = l_Lean_Elab_Command_getCurrMacroScope(x_8, x_9, x_389); +lean_dec(x_8); +x_393 = lean_ctor_get(x_392, 1); +lean_inc(x_393); +if (lean_is_exclusive(x_392)) { + lean_ctor_release(x_392, 0); + lean_ctor_release(x_392, 1); + x_394 = x_392; +} else { + lean_dec_ref(x_392); + x_394 = lean_box(0); +} +x_395 = l_Lean_Elab_Command_getMainModule___rarg(x_9, x_393); +x_396 = lean_ctor_get(x_395, 1); +lean_inc(x_396); +if (lean_is_exclusive(x_395)) { + lean_ctor_release(x_395, 0); + lean_ctor_release(x_395, 1); + x_397 = x_395; +} else { + lean_dec_ref(x_395); + x_397 = lean_box(0); +} +x_398 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; +lean_inc(x_391); +if (lean_is_scalar(x_397)) { + x_399 = lean_alloc_ctor(2, 2, 0); +} else { + x_399 = x_397; + lean_ctor_set_tag(x_399, 2); +} +lean_ctor_set(x_399, 0, x_391); +lean_ctor_set(x_399, 1, x_398); +x_400 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_391); +if (lean_is_scalar(x_394)) { + x_401 = lean_alloc_ctor(2, 2, 0); +} else { + x_401 = x_394; + lean_ctor_set_tag(x_401, 2); +} +lean_ctor_set(x_401, 0, x_391); +lean_ctor_set(x_401, 1, x_400); +x_402 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_391); +x_403 = l_Lean_Syntax_node2(x_391, x_402, x_3, x_401); +x_404 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; +lean_inc(x_391); +x_405 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_405, 0, x_391); +lean_ctor_set(x_405, 1, x_404); +x_406 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +x_407 = l_Lean_Syntax_node4(x_391, x_406, x_399, x_403, x_344, x_405); +x_11 = x_407; +x_12 = x_396; +goto block_20; +} +} +} +} +block_20: +{ +lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_13 = lean_array_push(x_6, x_11); +x_14 = 1; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_13); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_12); +return x_19; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +return x_10; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__3___boxed), 8, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__4(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; +x_10 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__4___closed__1; +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinder___rarg), 9, 2); +lean_closure_set(x_11, 0, x_1); +lean_closure_set(x_11, 1, x_10); +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withAutoBoundImplicit___rarg), 8, 1); +lean_closure_set(x_12, 0, x_11); +x_13 = 1; +x_14 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_14; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("' to instance implicit:\n", 24, 24); +return x_1; +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4(lean_object* x_1, uint8_t x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, size_t x_8, size_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; +x_14 = lean_usize_dec_lt(x_9, x_8); +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_11); +lean_dec(x_3); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_10); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; 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_49; lean_object* x_50; lean_object* x_51; +x_16 = lean_array_uget(x_7, x_9); +x_35 = lean_ctor_get(x_10, 1); +lean_inc(x_35); +x_36 = lean_ctor_get(x_10, 0); +lean_inc(x_36); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + x_37 = x_10; +} else { + lean_dec_ref(x_10); + x_37 = lean_box(0); +} +x_38 = lean_ctor_get(x_35, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_35, 1); +lean_inc(x_39); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_40 = x_35; +} else { + lean_dec_ref(x_35); + x_40 = lean_box(0); +} +lean_inc(x_16); +x_49 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__1___boxed), 2, 1); +lean_closure_set(x_49, 0, x_16); +x_50 = lean_unsigned_to_nat(0u); +x_51 = l_Array_findFinIdx_x3f_loop___rarg(x_49, x_36, x_50); +if (lean_obj_tag(x_51) == 0) +{ +switch (x_4) { +case 0: +{ +lean_object* x_52; uint8_t x_53; +x_52 = l_Lean_Elab_Command_getRef(x_11, x_12, x_13); +x_53 = !lean_is_exclusive(x_52); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_54 = lean_ctor_get(x_52, 0); +x_55 = lean_ctor_get(x_52, 1); +x_56 = 0; +x_57 = l_Lean_SourceInfo_fromRef(x_54, x_56); +lean_dec(x_54); +x_58 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_55); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +x_60 = lean_ctor_get(x_58, 1); +x_61 = lean_ctor_get(x_58, 0); +lean_dec(x_61); +x_62 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_60); +x_63 = !lean_is_exclusive(x_62); +if (x_63 == 0) +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_64 = lean_ctor_get(x_62, 1); +x_65 = lean_ctor_get(x_62, 0); +lean_dec(x_65); +x_66 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; +lean_inc(x_57); +lean_ctor_set_tag(x_62, 2); +lean_ctor_set(x_62, 1, x_66); +lean_ctor_set(x_62, 0, x_57); +x_67 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_57); +x_68 = l_Lean_Syntax_node1(x_57, x_67, x_16); +x_69 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_57); +x_70 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_70, 0, x_57); +lean_ctor_set(x_70, 1, x_67); +lean_ctor_set(x_70, 2, x_69); +x_71 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +lean_inc(x_57); +lean_ctor_set_tag(x_58, 2); +lean_ctor_set(x_58, 1, x_71); +lean_ctor_set(x_58, 0, x_57); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +lean_free_object(x_52); +x_72 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_57); +x_73 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_73, 0, x_57); +lean_ctor_set(x_73, 1, x_67); +lean_ctor_set(x_73, 2, x_72); +x_74 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_75 = l_Lean_Syntax_node5(x_57, x_74, x_62, x_68, x_73, x_70, x_58); +x_41 = x_75; +x_42 = x_64; +goto block_48; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_76 = lean_ctor_get(x_3, 0); +lean_inc(x_76); +x_77 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_57); +lean_ctor_set_tag(x_52, 2); +lean_ctor_set(x_52, 1, x_77); +lean_ctor_set(x_52, 0, x_57); +x_78 = l_Array_mkArray2___rarg(x_52, x_76); +x_79 = l_Array_append___rarg(x_69, x_78); +lean_dec(x_78); +lean_inc(x_57); +x_80 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_80, 0, x_57); +lean_ctor_set(x_80, 1, x_67); +lean_ctor_set(x_80, 2, x_79); +x_81 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_82 = l_Lean_Syntax_node5(x_57, x_81, x_62, x_68, x_80, x_70, x_58); +x_41 = x_82; +x_42 = x_64; +goto block_48; +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_83 = lean_ctor_get(x_62, 1); +lean_inc(x_83); +lean_dec(x_62); +x_84 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; +lean_inc(x_57); +x_85 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_85, 0, x_57); +lean_ctor_set(x_85, 1, x_84); +x_86 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_57); +x_87 = l_Lean_Syntax_node1(x_57, x_86, x_16); +x_88 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_57); +x_89 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_89, 0, x_57); +lean_ctor_set(x_89, 1, x_86); +lean_ctor_set(x_89, 2, x_88); +x_90 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +lean_inc(x_57); +lean_ctor_set_tag(x_58, 2); +lean_ctor_set(x_58, 1, x_90); +lean_ctor_set(x_58, 0, x_57); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_free_object(x_52); +x_91 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_57); +x_92 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_92, 0, x_57); +lean_ctor_set(x_92, 1, x_86); +lean_ctor_set(x_92, 2, x_91); +x_93 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_94 = l_Lean_Syntax_node5(x_57, x_93, x_85, x_87, x_92, x_89, x_58); +x_41 = x_94; +x_42 = x_83; +goto block_48; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_95 = lean_ctor_get(x_3, 0); +lean_inc(x_95); +x_96 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_57); +lean_ctor_set_tag(x_52, 2); +lean_ctor_set(x_52, 1, x_96); +lean_ctor_set(x_52, 0, x_57); +x_97 = l_Array_mkArray2___rarg(x_52, x_95); +x_98 = l_Array_append___rarg(x_88, x_97); +lean_dec(x_97); +lean_inc(x_57); +x_99 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_99, 0, x_57); +lean_ctor_set(x_99, 1, x_86); +lean_ctor_set(x_99, 2, x_98); +x_100 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_101 = l_Lean_Syntax_node5(x_57, x_100, x_85, x_87, x_99, x_89, x_58); +x_41 = x_101; +x_42 = x_83; +goto block_48; +} +} +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_102 = lean_ctor_get(x_58, 1); +lean_inc(x_102); +lean_dec(x_58); +x_103 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_102); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_105 = x_103; +} else { + lean_dec_ref(x_103); + x_105 = lean_box(0); +} +x_106 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; +lean_inc(x_57); +if (lean_is_scalar(x_105)) { + x_107 = lean_alloc_ctor(2, 2, 0); +} else { + x_107 = x_105; + lean_ctor_set_tag(x_107, 2); +} +lean_ctor_set(x_107, 0, x_57); +lean_ctor_set(x_107, 1, x_106); +x_108 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_57); +x_109 = l_Lean_Syntax_node1(x_57, x_108, x_16); +x_110 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_57); +x_111 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_111, 0, x_57); +lean_ctor_set(x_111, 1, x_108); +lean_ctor_set(x_111, 2, x_110); +x_112 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +lean_inc(x_57); +x_113 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_113, 0, x_57); +lean_ctor_set(x_113, 1, x_112); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_free_object(x_52); +x_114 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_57); +x_115 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_115, 0, x_57); +lean_ctor_set(x_115, 1, x_108); +lean_ctor_set(x_115, 2, x_114); +x_116 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_117 = l_Lean_Syntax_node5(x_57, x_116, x_107, x_109, x_115, x_111, x_113); +x_41 = x_117; +x_42 = x_104; +goto block_48; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_118 = lean_ctor_get(x_3, 0); +lean_inc(x_118); +x_119 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_57); +lean_ctor_set_tag(x_52, 2); +lean_ctor_set(x_52, 1, x_119); +lean_ctor_set(x_52, 0, x_57); +x_120 = l_Array_mkArray2___rarg(x_52, x_118); +x_121 = l_Array_append___rarg(x_110, x_120); +lean_dec(x_120); +lean_inc(x_57); +x_122 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_122, 0, x_57); +lean_ctor_set(x_122, 1, x_108); +lean_ctor_set(x_122, 2, x_121); +x_123 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_124 = l_Lean_Syntax_node5(x_57, x_123, x_107, x_109, x_122, x_111, x_113); +x_41 = x_124; +x_42 = x_104; +goto block_48; +} +} +} +else +{ +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_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_125 = lean_ctor_get(x_52, 0); +x_126 = lean_ctor_get(x_52, 1); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_52); +x_127 = 0; +x_128 = l_Lean_SourceInfo_fromRef(x_125, x_127); +lean_dec(x_125); +x_129 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_126); +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_131 = x_129; +} else { + lean_dec_ref(x_129); + x_131 = lean_box(0); +} +x_132 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_130); +x_133 = lean_ctor_get(x_132, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_134 = x_132; +} else { + lean_dec_ref(x_132); + x_134 = lean_box(0); +} +x_135 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; +lean_inc(x_128); +if (lean_is_scalar(x_134)) { + x_136 = lean_alloc_ctor(2, 2, 0); +} else { + x_136 = x_134; + lean_ctor_set_tag(x_136, 2); +} +lean_ctor_set(x_136, 0, x_128); +lean_ctor_set(x_136, 1, x_135); +x_137 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_128); +x_138 = l_Lean_Syntax_node1(x_128, x_137, x_16); +x_139 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_128); +x_140 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_140, 0, x_128); +lean_ctor_set(x_140, 1, x_137); +lean_ctor_set(x_140, 2, x_139); +x_141 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +lean_inc(x_128); +if (lean_is_scalar(x_131)) { + x_142 = lean_alloc_ctor(2, 2, 0); +} else { + x_142 = x_131; + lean_ctor_set_tag(x_142, 2); +} +lean_ctor_set(x_142, 0, x_128); +lean_ctor_set(x_142, 1, x_141); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_143 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_128); +x_144 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_144, 0, x_128); +lean_ctor_set(x_144, 1, x_137); +lean_ctor_set(x_144, 2, x_143); +x_145 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_146 = l_Lean_Syntax_node5(x_128, x_145, x_136, x_138, x_144, x_140, x_142); +x_41 = x_146; +x_42 = x_133; +goto block_48; +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_147 = lean_ctor_get(x_3, 0); +lean_inc(x_147); +x_148 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_128); +x_149 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_149, 0, x_128); +lean_ctor_set(x_149, 1, x_148); +x_150 = l_Array_mkArray2___rarg(x_149, x_147); +x_151 = l_Array_append___rarg(x_139, x_150); +lean_dec(x_150); +lean_inc(x_128); +x_152 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_152, 0, x_128); +lean_ctor_set(x_152, 1, x_137); +lean_ctor_set(x_152, 2, x_151); +x_153 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_154 = l_Lean_Syntax_node5(x_128, x_153, x_136, x_138, x_152, x_140, x_142); +x_41 = x_154; +x_42 = x_133; +goto block_48; +} +} +} +case 1: +{ +lean_object* x_155; uint8_t x_156; +x_155 = l_Lean_Elab_Command_getRef(x_11, x_12, x_13); +x_156 = !lean_is_exclusive(x_155); +if (x_156 == 0) +{ +lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_157 = lean_ctor_get(x_155, 0); +x_158 = lean_ctor_get(x_155, 1); +x_159 = 0; +x_160 = l_Lean_SourceInfo_fromRef(x_157, x_159); +lean_dec(x_157); +x_161 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_158); +x_162 = !lean_is_exclusive(x_161); +if (x_162 == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; +x_163 = lean_ctor_get(x_161, 1); +x_164 = lean_ctor_get(x_161, 0); +lean_dec(x_164); +x_165 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_163); +x_166 = !lean_is_exclusive(x_165); +if (x_166 == 0) +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_167 = lean_ctor_get(x_165, 1); +x_168 = lean_ctor_get(x_165, 0); +lean_dec(x_168); +x_169 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_160); +lean_ctor_set_tag(x_165, 2); +lean_ctor_set(x_165, 1, x_169); +lean_ctor_set(x_165, 0, x_160); +x_170 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_160); +x_171 = l_Lean_Syntax_node1(x_160, x_170, x_16); +x_172 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_160); +lean_ctor_set_tag(x_161, 2); +lean_ctor_set(x_161, 1, x_172); +lean_ctor_set(x_161, 0, x_160); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +lean_free_object(x_155); +x_173 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_160); +x_174 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_174, 0, x_160); +lean_ctor_set(x_174, 1, x_170); +lean_ctor_set(x_174, 2, x_173); +x_175 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_176 = l_Lean_Syntax_node4(x_160, x_175, x_165, x_171, x_174, x_161); +x_41 = x_176; +x_42 = x_167; +goto block_48; +} +else +{ +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_177 = lean_ctor_get(x_3, 0); +lean_inc(x_177); +x_178 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_160); +lean_ctor_set_tag(x_155, 2); +lean_ctor_set(x_155, 1, x_178); +lean_ctor_set(x_155, 0, x_160); +x_179 = l_Array_mkArray2___rarg(x_155, x_177); +x_180 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_181 = l_Array_append___rarg(x_180, x_179); +lean_dec(x_179); +lean_inc(x_160); +x_182 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_182, 0, x_160); +lean_ctor_set(x_182, 1, x_170); +lean_ctor_set(x_182, 2, x_181); +x_183 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_184 = l_Lean_Syntax_node4(x_160, x_183, x_165, x_171, x_182, x_161); +x_41 = x_184; +x_42 = x_167; +goto block_48; +} +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_185 = lean_ctor_get(x_165, 1); +lean_inc(x_185); +lean_dec(x_165); +x_186 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_160); +x_187 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_187, 0, x_160); +lean_ctor_set(x_187, 1, x_186); +x_188 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_160); +x_189 = l_Lean_Syntax_node1(x_160, x_188, x_16); +x_190 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_160); +lean_ctor_set_tag(x_161, 2); +lean_ctor_set(x_161, 1, x_190); +lean_ctor_set(x_161, 0, x_160); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +lean_free_object(x_155); +x_191 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_160); +x_192 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_192, 0, x_160); +lean_ctor_set(x_192, 1, x_188); +lean_ctor_set(x_192, 2, x_191); +x_193 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_194 = l_Lean_Syntax_node4(x_160, x_193, x_187, x_189, x_192, x_161); +x_41 = x_194; +x_42 = x_185; +goto block_48; +} +else +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +x_195 = lean_ctor_get(x_3, 0); +lean_inc(x_195); +x_196 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_160); +lean_ctor_set_tag(x_155, 2); +lean_ctor_set(x_155, 1, x_196); +lean_ctor_set(x_155, 0, x_160); +x_197 = l_Array_mkArray2___rarg(x_155, x_195); +x_198 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_199 = l_Array_append___rarg(x_198, x_197); +lean_dec(x_197); +lean_inc(x_160); +x_200 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_200, 0, x_160); +lean_ctor_set(x_200, 1, x_188); +lean_ctor_set(x_200, 2, x_199); +x_201 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_202 = l_Lean_Syntax_node4(x_160, x_201, x_187, x_189, x_200, x_161); +x_41 = x_202; +x_42 = x_185; +goto block_48; +} +} +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_203 = lean_ctor_get(x_161, 1); +lean_inc(x_203); +lean_dec(x_161); +x_204 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_203); +x_205 = lean_ctor_get(x_204, 1); +lean_inc(x_205); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_206 = x_204; +} else { + lean_dec_ref(x_204); + x_206 = lean_box(0); +} +x_207 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_160); +if (lean_is_scalar(x_206)) { + x_208 = lean_alloc_ctor(2, 2, 0); +} else { + x_208 = x_206; + lean_ctor_set_tag(x_208, 2); +} +lean_ctor_set(x_208, 0, x_160); +lean_ctor_set(x_208, 1, x_207); +x_209 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_160); +x_210 = l_Lean_Syntax_node1(x_160, x_209, x_16); +x_211 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_160); +x_212 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_212, 0, x_160); +lean_ctor_set(x_212, 1, x_211); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +lean_free_object(x_155); +x_213 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_160); +x_214 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_214, 0, x_160); +lean_ctor_set(x_214, 1, x_209); +lean_ctor_set(x_214, 2, x_213); +x_215 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_216 = l_Lean_Syntax_node4(x_160, x_215, x_208, x_210, x_214, x_212); +x_41 = x_216; +x_42 = x_205; +goto block_48; +} +else +{ +lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_217 = lean_ctor_get(x_3, 0); +lean_inc(x_217); +x_218 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_160); +lean_ctor_set_tag(x_155, 2); +lean_ctor_set(x_155, 1, x_218); +lean_ctor_set(x_155, 0, x_160); +x_219 = l_Array_mkArray2___rarg(x_155, x_217); +x_220 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_221 = l_Array_append___rarg(x_220, x_219); +lean_dec(x_219); +lean_inc(x_160); +x_222 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_222, 0, x_160); +lean_ctor_set(x_222, 1, x_209); +lean_ctor_set(x_222, 2, x_221); +x_223 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_224 = l_Lean_Syntax_node4(x_160, x_223, x_208, x_210, x_222, x_212); +x_41 = x_224; +x_42 = x_205; +goto block_48; +} +} +} +else +{ +lean_object* x_225; lean_object* x_226; uint8_t x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_225 = lean_ctor_get(x_155, 0); +x_226 = lean_ctor_get(x_155, 1); +lean_inc(x_226); +lean_inc(x_225); +lean_dec(x_155); +x_227 = 0; +x_228 = l_Lean_SourceInfo_fromRef(x_225, x_227); +lean_dec(x_225); +x_229 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_226); +x_230 = lean_ctor_get(x_229, 1); +lean_inc(x_230); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + x_231 = x_229; +} else { + lean_dec_ref(x_229); + x_231 = lean_box(0); +} +x_232 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_230); +x_233 = lean_ctor_get(x_232, 1); +lean_inc(x_233); +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_234 = x_232; +} else { + lean_dec_ref(x_232); + x_234 = lean_box(0); +} +x_235 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_228); +if (lean_is_scalar(x_234)) { + x_236 = lean_alloc_ctor(2, 2, 0); +} else { + x_236 = x_234; + lean_ctor_set_tag(x_236, 2); +} +lean_ctor_set(x_236, 0, x_228); +lean_ctor_set(x_236, 1, x_235); +x_237 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_228); +x_238 = l_Lean_Syntax_node1(x_228, x_237, x_16); +x_239 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_228); +if (lean_is_scalar(x_231)) { + x_240 = lean_alloc_ctor(2, 2, 0); +} else { + x_240 = x_231; + lean_ctor_set_tag(x_240, 2); +} +lean_ctor_set(x_240, 0, x_228); +lean_ctor_set(x_240, 1, x_239); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_241 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_228); +x_242 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_242, 0, x_228); +lean_ctor_set(x_242, 1, x_237); +lean_ctor_set(x_242, 2, x_241); +x_243 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_244 = l_Lean_Syntax_node4(x_228, x_243, x_236, x_238, x_242, x_240); +x_41 = x_244; +x_42 = x_233; +goto block_48; +} +else +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_245 = lean_ctor_get(x_3, 0); +lean_inc(x_245); +x_246 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_228); +x_247 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_247, 0, x_228); +lean_ctor_set(x_247, 1, x_246); +x_248 = l_Array_mkArray2___rarg(x_247, x_245); +x_249 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_250 = l_Array_append___rarg(x_249, x_248); +lean_dec(x_248); +lean_inc(x_228); +x_251 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_251, 0, x_228); +lean_ctor_set(x_251, 1, x_237); +lean_ctor_set(x_251, 2, x_250); +x_252 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_253 = l_Lean_Syntax_node4(x_228, x_252, x_236, x_238, x_251, x_240); +x_41 = x_253; +x_42 = x_233; +goto block_48; +} +} +} +case 2: +{ +lean_object* x_254; uint8_t x_255; +x_254 = l_Lean_Elab_Command_getRef(x_11, x_12, x_13); +x_255 = !lean_is_exclusive(x_254); +if (x_255 == 0) +{ +lean_object* x_256; lean_object* x_257; uint8_t x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; +x_256 = lean_ctor_get(x_254, 0); +x_257 = lean_ctor_get(x_254, 1); +x_258 = 0; +x_259 = l_Lean_SourceInfo_fromRef(x_256, x_258); +lean_dec(x_256); +x_260 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_257); +x_261 = !lean_is_exclusive(x_260); +if (x_261 == 0) +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; uint8_t x_265; +x_262 = lean_ctor_get(x_260, 1); +x_263 = lean_ctor_get(x_260, 0); +lean_dec(x_263); +x_264 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_262); +x_265 = !lean_is_exclusive(x_264); +if (x_265 == 0) +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; +x_266 = lean_ctor_get(x_264, 1); +x_267 = lean_ctor_get(x_264, 0); +lean_dec(x_267); +x_268 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_259); +lean_ctor_set_tag(x_264, 2); +lean_ctor_set(x_264, 1, x_268); +lean_ctor_set(x_264, 0, x_259); +x_269 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_264); +lean_inc(x_259); +x_270 = l_Lean_Syntax_node2(x_259, x_269, x_264, x_264); +x_271 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_259); +x_272 = l_Lean_Syntax_node1(x_259, x_271, x_16); +x_273 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_259); +lean_ctor_set_tag(x_260, 2); +lean_ctor_set(x_260, 1, x_273); +lean_ctor_set(x_260, 0, x_259); +lean_inc(x_260); +lean_inc(x_259); +x_274 = l_Lean_Syntax_node2(x_259, x_269, x_260, x_260); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; +lean_free_object(x_254); +x_275 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_259); +x_276 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_276, 0, x_259); +lean_ctor_set(x_276, 1, x_271); +lean_ctor_set(x_276, 2, x_275); +x_277 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_278 = l_Lean_Syntax_node4(x_259, x_277, x_270, x_272, x_276, x_274); +x_41 = x_278; +x_42 = x_266; +goto block_48; +} +else +{ +lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; +x_279 = lean_ctor_get(x_3, 0); +lean_inc(x_279); +x_280 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_259); +lean_ctor_set_tag(x_254, 2); +lean_ctor_set(x_254, 1, x_280); +lean_ctor_set(x_254, 0, x_259); +x_281 = l_Array_mkArray2___rarg(x_254, x_279); +x_282 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_283 = l_Array_append___rarg(x_282, x_281); +lean_dec(x_281); +lean_inc(x_259); +x_284 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_284, 0, x_259); +lean_ctor_set(x_284, 1, x_271); +lean_ctor_set(x_284, 2, x_283); +x_285 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_286 = l_Lean_Syntax_node4(x_259, x_285, x_270, x_272, x_284, x_274); +x_41 = x_286; +x_42 = x_266; +goto block_48; +} +} +else +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; +x_287 = lean_ctor_get(x_264, 1); +lean_inc(x_287); +lean_dec(x_264); +x_288 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_259); +x_289 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_289, 0, x_259); +lean_ctor_set(x_289, 1, x_288); +x_290 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_289); +lean_inc(x_259); +x_291 = l_Lean_Syntax_node2(x_259, x_290, x_289, x_289); +x_292 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_259); +x_293 = l_Lean_Syntax_node1(x_259, x_292, x_16); +x_294 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_259); +lean_ctor_set_tag(x_260, 2); +lean_ctor_set(x_260, 1, x_294); +lean_ctor_set(x_260, 0, x_259); +lean_inc(x_260); +lean_inc(x_259); +x_295 = l_Lean_Syntax_node2(x_259, x_290, x_260, x_260); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; +lean_free_object(x_254); +x_296 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_259); +x_297 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_297, 0, x_259); +lean_ctor_set(x_297, 1, x_292); +lean_ctor_set(x_297, 2, x_296); +x_298 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_299 = l_Lean_Syntax_node4(x_259, x_298, x_291, x_293, x_297, x_295); +x_41 = x_299; +x_42 = x_287; +goto block_48; +} +else +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; +x_300 = lean_ctor_get(x_3, 0); +lean_inc(x_300); +x_301 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_259); +lean_ctor_set_tag(x_254, 2); +lean_ctor_set(x_254, 1, x_301); +lean_ctor_set(x_254, 0, x_259); +x_302 = l_Array_mkArray2___rarg(x_254, x_300); +x_303 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_304 = l_Array_append___rarg(x_303, x_302); +lean_dec(x_302); +lean_inc(x_259); +x_305 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_305, 0, x_259); +lean_ctor_set(x_305, 1, x_292); +lean_ctor_set(x_305, 2, x_304); +x_306 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_307 = l_Lean_Syntax_node4(x_259, x_306, x_291, x_293, x_305, x_295); +x_41 = x_307; +x_42 = x_287; +goto block_48; +} +} +} +else +{ +lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; +x_308 = lean_ctor_get(x_260, 1); +lean_inc(x_308); +lean_dec(x_260); +x_309 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_308); +x_310 = lean_ctor_get(x_309, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_309)) { + lean_ctor_release(x_309, 0); + lean_ctor_release(x_309, 1); + x_311 = x_309; +} else { + lean_dec_ref(x_309); + x_311 = lean_box(0); +} +x_312 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_259); +if (lean_is_scalar(x_311)) { + x_313 = lean_alloc_ctor(2, 2, 0); +} else { + x_313 = x_311; + lean_ctor_set_tag(x_313, 2); +} +lean_ctor_set(x_313, 0, x_259); +lean_ctor_set(x_313, 1, x_312); +x_314 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_313); +lean_inc(x_259); +x_315 = l_Lean_Syntax_node2(x_259, x_314, x_313, x_313); +x_316 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_259); +x_317 = l_Lean_Syntax_node1(x_259, x_316, x_16); +x_318 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_259); +x_319 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_319, 0, x_259); +lean_ctor_set(x_319, 1, x_318); +lean_inc(x_319); +lean_inc(x_259); +x_320 = l_Lean_Syntax_node2(x_259, x_314, x_319, x_319); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +lean_free_object(x_254); +x_321 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_259); +x_322 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_322, 0, x_259); +lean_ctor_set(x_322, 1, x_316); +lean_ctor_set(x_322, 2, x_321); +x_323 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_324 = l_Lean_Syntax_node4(x_259, x_323, x_315, x_317, x_322, x_320); +x_41 = x_324; +x_42 = x_310; +goto block_48; +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; +x_325 = lean_ctor_get(x_3, 0); +lean_inc(x_325); +x_326 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_259); +lean_ctor_set_tag(x_254, 2); +lean_ctor_set(x_254, 1, x_326); +lean_ctor_set(x_254, 0, x_259); +x_327 = l_Array_mkArray2___rarg(x_254, x_325); +x_328 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_329 = l_Array_append___rarg(x_328, x_327); +lean_dec(x_327); +lean_inc(x_259); +x_330 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_330, 0, x_259); +lean_ctor_set(x_330, 1, x_316); +lean_ctor_set(x_330, 2, x_329); +x_331 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_332 = l_Lean_Syntax_node4(x_259, x_331, x_315, x_317, x_330, x_320); +x_41 = x_332; +x_42 = x_310; +goto block_48; +} +} +} +else +{ +lean_object* x_333; lean_object* x_334; uint8_t x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; +x_333 = lean_ctor_get(x_254, 0); +x_334 = lean_ctor_get(x_254, 1); +lean_inc(x_334); +lean_inc(x_333); +lean_dec(x_254); +x_335 = 0; +x_336 = l_Lean_SourceInfo_fromRef(x_333, x_335); +lean_dec(x_333); +x_337 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_334); +x_338 = lean_ctor_get(x_337, 1); +lean_inc(x_338); +if (lean_is_exclusive(x_337)) { + lean_ctor_release(x_337, 0); + lean_ctor_release(x_337, 1); + x_339 = x_337; +} else { + lean_dec_ref(x_337); + x_339 = lean_box(0); +} +x_340 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_338); +x_341 = lean_ctor_get(x_340, 1); +lean_inc(x_341); +if (lean_is_exclusive(x_340)) { + lean_ctor_release(x_340, 0); + lean_ctor_release(x_340, 1); + x_342 = x_340; +} else { + lean_dec_ref(x_340); + x_342 = lean_box(0); +} +x_343 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_336); +if (lean_is_scalar(x_342)) { + x_344 = lean_alloc_ctor(2, 2, 0); +} else { + x_344 = x_342; + lean_ctor_set_tag(x_344, 2); +} +lean_ctor_set(x_344, 0, x_336); +lean_ctor_set(x_344, 1, x_343); +x_345 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_344); +lean_inc(x_336); +x_346 = l_Lean_Syntax_node2(x_336, x_345, x_344, x_344); +x_347 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_336); +x_348 = l_Lean_Syntax_node1(x_336, x_347, x_16); +x_349 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_336); +if (lean_is_scalar(x_339)) { + x_350 = lean_alloc_ctor(2, 2, 0); +} else { + x_350 = x_339; + lean_ctor_set_tag(x_350, 2); +} +lean_ctor_set(x_350, 0, x_336); +lean_ctor_set(x_350, 1, x_349); +lean_inc(x_350); +lean_inc(x_336); +x_351 = l_Lean_Syntax_node2(x_336, x_345, x_350, x_350); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; +x_352 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_336); +x_353 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_353, 0, x_336); +lean_ctor_set(x_353, 1, x_347); +lean_ctor_set(x_353, 2, x_352); +x_354 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_355 = l_Lean_Syntax_node4(x_336, x_354, x_346, x_348, x_353, x_351); +x_41 = x_355; +x_42 = x_341; +goto block_48; +} +else +{ +lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; +x_356 = lean_ctor_get(x_3, 0); +lean_inc(x_356); +x_357 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_336); +x_358 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_358, 0, x_336); +lean_ctor_set(x_358, 1, x_357); +x_359 = l_Array_mkArray2___rarg(x_358, x_356); +x_360 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_361 = l_Array_append___rarg(x_360, x_359); +lean_dec(x_359); +lean_inc(x_336); +x_362 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_362, 0, x_336); +lean_ctor_set(x_362, 1, x_347); +lean_ctor_set(x_362, 2, x_361); +x_363 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_364 = l_Lean_Syntax_node4(x_336, x_363, x_346, x_348, x_362, x_351); +x_41 = x_364; +x_42 = x_341; +goto block_48; +} +} +} +default: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_38); +lean_dec(x_37); +lean_dec(x_36); +x_365 = l_Lean_MessageData_ofSyntax(x_16); +x_366 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__10; +x_367 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_367, 0, x_366); +lean_ctor_set(x_367, 1, x_365); +x_368 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__12; +x_369 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_369, 0, x_367); +lean_ctor_set(x_369, 1, x_368); +lean_inc(x_11); +x_370 = l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(x_1, x_369, x_11, x_12, x_13); +x_371 = !lean_is_exclusive(x_370); +if (x_371 == 0) +{ +x_17 = x_370; +goto block_34; +} +else +{ +lean_object* x_372; lean_object* x_373; lean_object* x_374; +x_372 = lean_ctor_get(x_370, 0); +x_373 = lean_ctor_get(x_370, 1); +lean_inc(x_373); +lean_inc(x_372); +lean_dec(x_370); +x_374 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_374, 0, x_372); +lean_ctor_set(x_374, 1, x_373); +x_17 = x_374; +goto block_34; +} +} +else +{ +lean_object* x_375; lean_object* x_376; uint8_t x_377; +x_375 = lean_ctor_get(x_3, 0); +lean_inc(x_375); +x_376 = l_Lean_Elab_Command_getRef(x_11, x_12, x_13); +x_377 = !lean_is_exclusive(x_376); +if (x_377 == 0) +{ +lean_object* x_378; lean_object* x_379; uint8_t x_380; lean_object* x_381; lean_object* x_382; uint8_t x_383; +x_378 = lean_ctor_get(x_376, 0); +x_379 = lean_ctor_get(x_376, 1); +x_380 = 0; +x_381 = l_Lean_SourceInfo_fromRef(x_378, x_380); +lean_dec(x_378); +x_382 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_379); +x_383 = !lean_is_exclusive(x_382); +if (x_383 == 0) +{ +lean_object* x_384; lean_object* x_385; lean_object* x_386; uint8_t x_387; +x_384 = lean_ctor_get(x_382, 1); +x_385 = lean_ctor_get(x_382, 0); +lean_dec(x_385); +x_386 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_384); +x_387 = !lean_is_exclusive(x_386); +if (x_387 == 0) +{ +lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; +x_388 = lean_ctor_get(x_386, 1); +x_389 = lean_ctor_get(x_386, 0); +lean_dec(x_389); +x_390 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; +lean_inc(x_381); +lean_ctor_set_tag(x_386, 2); +lean_ctor_set(x_386, 1, x_390); +lean_ctor_set(x_386, 0, x_381); +x_391 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_381); +lean_ctor_set_tag(x_382, 2); +lean_ctor_set(x_382, 1, x_391); +lean_ctor_set(x_382, 0, x_381); +x_392 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_381); +x_393 = l_Lean_Syntax_node2(x_381, x_392, x_16, x_382); +x_394 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; +lean_inc(x_381); +lean_ctor_set_tag(x_376, 2); +lean_ctor_set(x_376, 1, x_394); +lean_ctor_set(x_376, 0, x_381); +x_395 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +x_396 = l_Lean_Syntax_node4(x_381, x_395, x_386, x_393, x_375, x_376); +x_41 = x_396; +x_42 = x_388; +goto block_48; +} +else +{ +lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; +x_397 = lean_ctor_get(x_386, 1); +lean_inc(x_397); +lean_dec(x_386); +x_398 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; +lean_inc(x_381); +x_399 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_399, 0, x_381); +lean_ctor_set(x_399, 1, x_398); +x_400 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_381); +lean_ctor_set_tag(x_382, 2); +lean_ctor_set(x_382, 1, x_400); +lean_ctor_set(x_382, 0, x_381); +x_401 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_381); +x_402 = l_Lean_Syntax_node2(x_381, x_401, x_16, x_382); +x_403 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; +lean_inc(x_381); +lean_ctor_set_tag(x_376, 2); +lean_ctor_set(x_376, 1, x_403); +lean_ctor_set(x_376, 0, x_381); +x_404 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +x_405 = l_Lean_Syntax_node4(x_381, x_404, x_399, x_402, x_375, x_376); +x_41 = x_405; +x_42 = x_397; +goto block_48; +} +} +else +{ +lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; +x_406 = lean_ctor_get(x_382, 1); +lean_inc(x_406); +lean_dec(x_382); +x_407 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_406); +x_408 = lean_ctor_get(x_407, 1); +lean_inc(x_408); +if (lean_is_exclusive(x_407)) { + lean_ctor_release(x_407, 0); + lean_ctor_release(x_407, 1); + x_409 = x_407; +} else { + lean_dec_ref(x_407); + x_409 = lean_box(0); +} +x_410 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; +lean_inc(x_381); +if (lean_is_scalar(x_409)) { + x_411 = lean_alloc_ctor(2, 2, 0); +} else { + x_411 = x_409; + lean_ctor_set_tag(x_411, 2); +} +lean_ctor_set(x_411, 0, x_381); +lean_ctor_set(x_411, 1, x_410); +x_412 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_381); +x_413 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_413, 0, x_381); +lean_ctor_set(x_413, 1, x_412); +x_414 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_381); +x_415 = l_Lean_Syntax_node2(x_381, x_414, x_16, x_413); +x_416 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; +lean_inc(x_381); +lean_ctor_set_tag(x_376, 2); +lean_ctor_set(x_376, 1, x_416); +lean_ctor_set(x_376, 0, x_381); +x_417 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +x_418 = l_Lean_Syntax_node4(x_381, x_417, x_411, x_415, x_375, x_376); +x_41 = x_418; +x_42 = x_408; +goto block_48; +} +} +else +{ +lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; +x_419 = lean_ctor_get(x_376, 0); +x_420 = lean_ctor_get(x_376, 1); +lean_inc(x_420); +lean_inc(x_419); +lean_dec(x_376); +x_421 = 0; +x_422 = l_Lean_SourceInfo_fromRef(x_419, x_421); +lean_dec(x_419); +x_423 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_420); +x_424 = lean_ctor_get(x_423, 1); +lean_inc(x_424); +if (lean_is_exclusive(x_423)) { + lean_ctor_release(x_423, 0); + lean_ctor_release(x_423, 1); + x_425 = x_423; +} else { + lean_dec_ref(x_423); + x_425 = lean_box(0); +} +x_426 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_424); +x_427 = lean_ctor_get(x_426, 1); +lean_inc(x_427); +if (lean_is_exclusive(x_426)) { + lean_ctor_release(x_426, 0); + lean_ctor_release(x_426, 1); + x_428 = x_426; +} else { + lean_dec_ref(x_426); + x_428 = lean_box(0); +} +x_429 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; +lean_inc(x_422); +if (lean_is_scalar(x_428)) { + x_430 = lean_alloc_ctor(2, 2, 0); +} else { + x_430 = x_428; + lean_ctor_set_tag(x_430, 2); +} +lean_ctor_set(x_430, 0, x_422); +lean_ctor_set(x_430, 1, x_429); +x_431 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_422); +if (lean_is_scalar(x_425)) { + x_432 = lean_alloc_ctor(2, 2, 0); +} else { + x_432 = x_425; + lean_ctor_set_tag(x_432, 2); +} +lean_ctor_set(x_432, 0, x_422); +lean_ctor_set(x_432, 1, x_431); +x_433 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_422); +x_434 = l_Lean_Syntax_node2(x_422, x_433, x_16, x_432); +x_435 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; +lean_inc(x_422); +x_436 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_436, 0, x_422); +lean_ctor_set(x_436, 1, x_435); +x_437 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +x_438 = l_Lean_Syntax_node4(x_422, x_437, x_430, x_434, x_375, x_436); +x_41 = x_438; +x_42 = x_427; +goto block_48; +} +} +} +} +} +else +{ +lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; +lean_dec(x_40); +lean_dec(x_38); +lean_dec(x_37); +x_439 = lean_ctor_get(x_51, 0); +lean_inc(x_439); +lean_dec(x_51); +x_440 = l_Array_eraseIdx___rarg(x_36, x_439, lean_box(0)); +switch (x_2) { +case 0: +{ +lean_object* x_488; uint8_t x_489; +x_488 = l_Lean_Elab_Command_getRef(x_11, x_12, x_13); +x_489 = !lean_is_exclusive(x_488); +if (x_489 == 0) +{ +lean_object* x_490; lean_object* x_491; uint8_t x_492; lean_object* x_493; lean_object* x_494; uint8_t x_495; +x_490 = lean_ctor_get(x_488, 0); +x_491 = lean_ctor_get(x_488, 1); +x_492 = 0; +x_493 = l_Lean_SourceInfo_fromRef(x_490, x_492); +lean_dec(x_490); +x_494 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_491); +x_495 = !lean_is_exclusive(x_494); +if (x_495 == 0) +{ +lean_object* x_496; lean_object* x_497; lean_object* x_498; uint8_t x_499; +x_496 = lean_ctor_get(x_494, 1); +x_497 = lean_ctor_get(x_494, 0); +lean_dec(x_497); +x_498 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_496); +x_499 = !lean_is_exclusive(x_498); +if (x_499 == 0) +{ +lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; +x_500 = lean_ctor_get(x_498, 1); +x_501 = lean_ctor_get(x_498, 0); +lean_dec(x_501); +x_502 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; +lean_inc(x_493); +lean_ctor_set_tag(x_498, 2); +lean_ctor_set(x_498, 1, x_502); +lean_ctor_set(x_498, 0, x_493); +x_503 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_493); +x_504 = l_Lean_Syntax_node1(x_493, x_503, x_16); +x_505 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_493); +x_506 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_506, 0, x_493); +lean_ctor_set(x_506, 1, x_503); +lean_ctor_set(x_506, 2, x_505); +x_507 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +lean_inc(x_493); +lean_ctor_set_tag(x_494, 2); +lean_ctor_set(x_494, 1, x_507); +lean_ctor_set(x_494, 0, x_493); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; +lean_free_object(x_488); +x_508 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_493); +x_509 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_509, 0, x_493); +lean_ctor_set(x_509, 1, x_503); +lean_ctor_set(x_509, 2, x_508); +x_510 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_511 = l_Lean_Syntax_node5(x_493, x_510, x_498, x_504, x_509, x_506, x_494); +x_441 = x_511; +x_442 = x_500; +goto block_487; +} +else +{ +lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; +x_512 = lean_ctor_get(x_3, 0); +lean_inc(x_512); +x_513 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_493); +lean_ctor_set_tag(x_488, 2); +lean_ctor_set(x_488, 1, x_513); +lean_ctor_set(x_488, 0, x_493); +x_514 = l_Array_mkArray2___rarg(x_488, x_512); +x_515 = l_Array_append___rarg(x_505, x_514); +lean_dec(x_514); +lean_inc(x_493); +x_516 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_516, 0, x_493); +lean_ctor_set(x_516, 1, x_503); +lean_ctor_set(x_516, 2, x_515); +x_517 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_518 = l_Lean_Syntax_node5(x_493, x_517, x_498, x_504, x_516, x_506, x_494); +x_441 = x_518; +x_442 = x_500; +goto block_487; +} +} +else +{ +lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; +x_519 = lean_ctor_get(x_498, 1); +lean_inc(x_519); +lean_dec(x_498); +x_520 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; +lean_inc(x_493); +x_521 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_521, 0, x_493); +lean_ctor_set(x_521, 1, x_520); +x_522 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_493); +x_523 = l_Lean_Syntax_node1(x_493, x_522, x_16); +x_524 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_493); +x_525 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_525, 0, x_493); +lean_ctor_set(x_525, 1, x_522); +lean_ctor_set(x_525, 2, x_524); +x_526 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +lean_inc(x_493); +lean_ctor_set_tag(x_494, 2); +lean_ctor_set(x_494, 1, x_526); +lean_ctor_set(x_494, 0, x_493); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; +lean_free_object(x_488); +x_527 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_493); +x_528 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_528, 0, x_493); +lean_ctor_set(x_528, 1, x_522); +lean_ctor_set(x_528, 2, x_527); +x_529 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_530 = l_Lean_Syntax_node5(x_493, x_529, x_521, x_523, x_528, x_525, x_494); +x_441 = x_530; +x_442 = x_519; +goto block_487; +} +else +{ +lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; +x_531 = lean_ctor_get(x_3, 0); +lean_inc(x_531); +x_532 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_493); +lean_ctor_set_tag(x_488, 2); +lean_ctor_set(x_488, 1, x_532); +lean_ctor_set(x_488, 0, x_493); +x_533 = l_Array_mkArray2___rarg(x_488, x_531); +x_534 = l_Array_append___rarg(x_524, x_533); +lean_dec(x_533); +lean_inc(x_493); +x_535 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_535, 0, x_493); +lean_ctor_set(x_535, 1, x_522); +lean_ctor_set(x_535, 2, x_534); +x_536 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_537 = l_Lean_Syntax_node5(x_493, x_536, x_521, x_523, x_535, x_525, x_494); +x_441 = x_537; +x_442 = x_519; +goto block_487; +} +} +} +else +{ +lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; +x_538 = lean_ctor_get(x_494, 1); +lean_inc(x_538); +lean_dec(x_494); +x_539 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_538); +x_540 = lean_ctor_get(x_539, 1); +lean_inc(x_540); +if (lean_is_exclusive(x_539)) { + lean_ctor_release(x_539, 0); + lean_ctor_release(x_539, 1); + x_541 = x_539; +} else { + lean_dec_ref(x_539); + x_541 = lean_box(0); +} +x_542 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; +lean_inc(x_493); +if (lean_is_scalar(x_541)) { + x_543 = lean_alloc_ctor(2, 2, 0); +} else { + x_543 = x_541; + lean_ctor_set_tag(x_543, 2); +} +lean_ctor_set(x_543, 0, x_493); +lean_ctor_set(x_543, 1, x_542); +x_544 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_493); +x_545 = l_Lean_Syntax_node1(x_493, x_544, x_16); +x_546 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_493); +x_547 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_547, 0, x_493); +lean_ctor_set(x_547, 1, x_544); +lean_ctor_set(x_547, 2, x_546); +x_548 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +lean_inc(x_493); +x_549 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_549, 0, x_493); +lean_ctor_set(x_549, 1, x_548); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; +lean_free_object(x_488); +x_550 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_493); +x_551 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_551, 0, x_493); +lean_ctor_set(x_551, 1, x_544); +lean_ctor_set(x_551, 2, x_550); +x_552 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_553 = l_Lean_Syntax_node5(x_493, x_552, x_543, x_545, x_551, x_547, x_549); +x_441 = x_553; +x_442 = x_540; +goto block_487; +} +else +{ +lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; +x_554 = lean_ctor_get(x_3, 0); +lean_inc(x_554); +x_555 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_493); +lean_ctor_set_tag(x_488, 2); +lean_ctor_set(x_488, 1, x_555); +lean_ctor_set(x_488, 0, x_493); +x_556 = l_Array_mkArray2___rarg(x_488, x_554); +x_557 = l_Array_append___rarg(x_546, x_556); +lean_dec(x_556); +lean_inc(x_493); +x_558 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_558, 0, x_493); +lean_ctor_set(x_558, 1, x_544); +lean_ctor_set(x_558, 2, x_557); +x_559 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_560 = l_Lean_Syntax_node5(x_493, x_559, x_543, x_545, x_558, x_547, x_549); +x_441 = x_560; +x_442 = x_540; +goto block_487; +} +} +} +else +{ +lean_object* x_561; lean_object* x_562; uint8_t x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; +x_561 = lean_ctor_get(x_488, 0); +x_562 = lean_ctor_get(x_488, 1); +lean_inc(x_562); +lean_inc(x_561); +lean_dec(x_488); +x_563 = 0; +x_564 = l_Lean_SourceInfo_fromRef(x_561, x_563); +lean_dec(x_561); +x_565 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_562); +x_566 = lean_ctor_get(x_565, 1); +lean_inc(x_566); +if (lean_is_exclusive(x_565)) { + lean_ctor_release(x_565, 0); + lean_ctor_release(x_565, 1); + x_567 = x_565; +} else { + lean_dec_ref(x_565); + x_567 = lean_box(0); +} +x_568 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_566); +x_569 = lean_ctor_get(x_568, 1); +lean_inc(x_569); +if (lean_is_exclusive(x_568)) { + lean_ctor_release(x_568, 0); + lean_ctor_release(x_568, 1); + x_570 = x_568; +} else { + lean_dec_ref(x_568); + x_570 = lean_box(0); +} +x_571 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; +lean_inc(x_564); +if (lean_is_scalar(x_570)) { + x_572 = lean_alloc_ctor(2, 2, 0); +} else { + x_572 = x_570; + lean_ctor_set_tag(x_572, 2); +} +lean_ctor_set(x_572, 0, x_564); +lean_ctor_set(x_572, 1, x_571); +x_573 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_564); +x_574 = l_Lean_Syntax_node1(x_564, x_573, x_16); +x_575 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_564); +x_576 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_576, 0, x_564); +lean_ctor_set(x_576, 1, x_573); +lean_ctor_set(x_576, 2, x_575); +x_577 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +lean_inc(x_564); +if (lean_is_scalar(x_567)) { + x_578 = lean_alloc_ctor(2, 2, 0); +} else { + x_578 = x_567; + lean_ctor_set_tag(x_578, 2); +} +lean_ctor_set(x_578, 0, x_564); +lean_ctor_set(x_578, 1, x_577); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; +x_579 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_564); +x_580 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_580, 0, x_564); +lean_ctor_set(x_580, 1, x_573); +lean_ctor_set(x_580, 2, x_579); +x_581 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_582 = l_Lean_Syntax_node5(x_564, x_581, x_572, x_574, x_580, x_576, x_578); +x_441 = x_582; +x_442 = x_569; +goto block_487; +} +else +{ +lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; +x_583 = lean_ctor_get(x_3, 0); +lean_inc(x_583); +x_584 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_564); +x_585 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_585, 0, x_564); +lean_ctor_set(x_585, 1, x_584); +x_586 = l_Array_mkArray2___rarg(x_585, x_583); +x_587 = l_Array_append___rarg(x_575, x_586); +lean_dec(x_586); +lean_inc(x_564); +x_588 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_588, 0, x_564); +lean_ctor_set(x_588, 1, x_573); +lean_ctor_set(x_588, 2, x_587); +x_589 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +x_590 = l_Lean_Syntax_node5(x_564, x_589, x_572, x_574, x_588, x_576, x_578); +x_441 = x_590; +x_442 = x_569; +goto block_487; +} +} +} +case 1: +{ +lean_object* x_591; uint8_t x_592; +x_591 = l_Lean_Elab_Command_getRef(x_11, x_12, x_13); +x_592 = !lean_is_exclusive(x_591); +if (x_592 == 0) +{ +lean_object* x_593; lean_object* x_594; uint8_t x_595; lean_object* x_596; lean_object* x_597; uint8_t x_598; +x_593 = lean_ctor_get(x_591, 0); +x_594 = lean_ctor_get(x_591, 1); +x_595 = 0; +x_596 = l_Lean_SourceInfo_fromRef(x_593, x_595); +lean_dec(x_593); +x_597 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_594); +x_598 = !lean_is_exclusive(x_597); +if (x_598 == 0) +{ +lean_object* x_599; lean_object* x_600; lean_object* x_601; uint8_t x_602; +x_599 = lean_ctor_get(x_597, 1); +x_600 = lean_ctor_get(x_597, 0); +lean_dec(x_600); +x_601 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_599); +x_602 = !lean_is_exclusive(x_601); +if (x_602 == 0) +{ +lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; +x_603 = lean_ctor_get(x_601, 1); +x_604 = lean_ctor_get(x_601, 0); +lean_dec(x_604); +x_605 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_596); +lean_ctor_set_tag(x_601, 2); +lean_ctor_set(x_601, 1, x_605); +lean_ctor_set(x_601, 0, x_596); +x_606 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_596); +x_607 = l_Lean_Syntax_node1(x_596, x_606, x_16); +x_608 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_596); +lean_ctor_set_tag(x_597, 2); +lean_ctor_set(x_597, 1, x_608); +lean_ctor_set(x_597, 0, x_596); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; +lean_free_object(x_591); +x_609 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_596); +x_610 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_610, 0, x_596); +lean_ctor_set(x_610, 1, x_606); +lean_ctor_set(x_610, 2, x_609); +x_611 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_612 = l_Lean_Syntax_node4(x_596, x_611, x_601, x_607, x_610, x_597); +x_441 = x_612; +x_442 = x_603; +goto block_487; +} +else +{ +lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; +x_613 = lean_ctor_get(x_3, 0); +lean_inc(x_613); +x_614 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_596); +lean_ctor_set_tag(x_591, 2); +lean_ctor_set(x_591, 1, x_614); +lean_ctor_set(x_591, 0, x_596); +x_615 = l_Array_mkArray2___rarg(x_591, x_613); +x_616 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_617 = l_Array_append___rarg(x_616, x_615); +lean_dec(x_615); +lean_inc(x_596); +x_618 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_618, 0, x_596); +lean_ctor_set(x_618, 1, x_606); +lean_ctor_set(x_618, 2, x_617); +x_619 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_620 = l_Lean_Syntax_node4(x_596, x_619, x_601, x_607, x_618, x_597); +x_441 = x_620; +x_442 = x_603; +goto block_487; +} +} +else +{ +lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; +x_621 = lean_ctor_get(x_601, 1); +lean_inc(x_621); +lean_dec(x_601); +x_622 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_596); +x_623 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_623, 0, x_596); +lean_ctor_set(x_623, 1, x_622); +x_624 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_596); +x_625 = l_Lean_Syntax_node1(x_596, x_624, x_16); +x_626 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_596); +lean_ctor_set_tag(x_597, 2); +lean_ctor_set(x_597, 1, x_626); +lean_ctor_set(x_597, 0, x_596); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; +lean_free_object(x_591); +x_627 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_596); +x_628 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_628, 0, x_596); +lean_ctor_set(x_628, 1, x_624); +lean_ctor_set(x_628, 2, x_627); +x_629 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_630 = l_Lean_Syntax_node4(x_596, x_629, x_623, x_625, x_628, x_597); +x_441 = x_630; +x_442 = x_621; +goto block_487; +} +else +{ +lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; +x_631 = lean_ctor_get(x_3, 0); +lean_inc(x_631); +x_632 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_596); +lean_ctor_set_tag(x_591, 2); +lean_ctor_set(x_591, 1, x_632); +lean_ctor_set(x_591, 0, x_596); +x_633 = l_Array_mkArray2___rarg(x_591, x_631); +x_634 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_635 = l_Array_append___rarg(x_634, x_633); +lean_dec(x_633); +lean_inc(x_596); +x_636 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_636, 0, x_596); +lean_ctor_set(x_636, 1, x_624); +lean_ctor_set(x_636, 2, x_635); +x_637 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_638 = l_Lean_Syntax_node4(x_596, x_637, x_623, x_625, x_636, x_597); +x_441 = x_638; +x_442 = x_621; +goto block_487; +} +} +} +else +{ +lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; +x_639 = lean_ctor_get(x_597, 1); +lean_inc(x_639); +lean_dec(x_597); +x_640 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_639); +x_641 = lean_ctor_get(x_640, 1); +lean_inc(x_641); +if (lean_is_exclusive(x_640)) { + lean_ctor_release(x_640, 0); + lean_ctor_release(x_640, 1); + x_642 = x_640; +} else { + lean_dec_ref(x_640); + x_642 = lean_box(0); +} +x_643 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_596); +if (lean_is_scalar(x_642)) { + x_644 = lean_alloc_ctor(2, 2, 0); +} else { + x_644 = x_642; + lean_ctor_set_tag(x_644, 2); +} +lean_ctor_set(x_644, 0, x_596); +lean_ctor_set(x_644, 1, x_643); +x_645 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_596); +x_646 = l_Lean_Syntax_node1(x_596, x_645, x_16); +x_647 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_596); +x_648 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_648, 0, x_596); +lean_ctor_set(x_648, 1, x_647); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; +lean_free_object(x_591); +x_649 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_596); +x_650 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_650, 0, x_596); +lean_ctor_set(x_650, 1, x_645); +lean_ctor_set(x_650, 2, x_649); +x_651 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_652 = l_Lean_Syntax_node4(x_596, x_651, x_644, x_646, x_650, x_648); +x_441 = x_652; +x_442 = x_641; +goto block_487; +} +else +{ +lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; +x_653 = lean_ctor_get(x_3, 0); +lean_inc(x_653); +x_654 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_596); +lean_ctor_set_tag(x_591, 2); +lean_ctor_set(x_591, 1, x_654); +lean_ctor_set(x_591, 0, x_596); +x_655 = l_Array_mkArray2___rarg(x_591, x_653); +x_656 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_657 = l_Array_append___rarg(x_656, x_655); +lean_dec(x_655); +lean_inc(x_596); +x_658 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_658, 0, x_596); +lean_ctor_set(x_658, 1, x_645); +lean_ctor_set(x_658, 2, x_657); +x_659 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_660 = l_Lean_Syntax_node4(x_596, x_659, x_644, x_646, x_658, x_648); +x_441 = x_660; +x_442 = x_641; +goto block_487; +} +} +} +else +{ +lean_object* x_661; lean_object* x_662; uint8_t x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; +x_661 = lean_ctor_get(x_591, 0); +x_662 = lean_ctor_get(x_591, 1); +lean_inc(x_662); +lean_inc(x_661); +lean_dec(x_591); +x_663 = 0; +x_664 = l_Lean_SourceInfo_fromRef(x_661, x_663); +lean_dec(x_661); +x_665 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_662); +x_666 = lean_ctor_get(x_665, 1); +lean_inc(x_666); +if (lean_is_exclusive(x_665)) { + lean_ctor_release(x_665, 0); + lean_ctor_release(x_665, 1); + x_667 = x_665; +} else { + lean_dec_ref(x_665); + x_667 = lean_box(0); +} +x_668 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_666); +x_669 = lean_ctor_get(x_668, 1); +lean_inc(x_669); +if (lean_is_exclusive(x_668)) { + lean_ctor_release(x_668, 0); + lean_ctor_release(x_668, 1); + x_670 = x_668; +} else { + lean_dec_ref(x_668); + x_670 = lean_box(0); +} +x_671 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_664); +if (lean_is_scalar(x_670)) { + x_672 = lean_alloc_ctor(2, 2, 0); +} else { + x_672 = x_670; + lean_ctor_set_tag(x_672, 2); +} +lean_ctor_set(x_672, 0, x_664); +lean_ctor_set(x_672, 1, x_671); +x_673 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_664); +x_674 = l_Lean_Syntax_node1(x_664, x_673, x_16); +x_675 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_664); +if (lean_is_scalar(x_667)) { + x_676 = lean_alloc_ctor(2, 2, 0); +} else { + x_676 = x_667; + lean_ctor_set_tag(x_676, 2); +} +lean_ctor_set(x_676, 0, x_664); +lean_ctor_set(x_676, 1, x_675); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; +x_677 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_664); +x_678 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_678, 0, x_664); +lean_ctor_set(x_678, 1, x_673); +lean_ctor_set(x_678, 2, x_677); +x_679 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_680 = l_Lean_Syntax_node4(x_664, x_679, x_672, x_674, x_678, x_676); +x_441 = x_680; +x_442 = x_669; +goto block_487; +} +else +{ +lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; +x_681 = lean_ctor_get(x_3, 0); +lean_inc(x_681); +x_682 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_664); +x_683 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_683, 0, x_664); +lean_ctor_set(x_683, 1, x_682); +x_684 = l_Array_mkArray2___rarg(x_683, x_681); +x_685 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_686 = l_Array_append___rarg(x_685, x_684); +lean_dec(x_684); +lean_inc(x_664); +x_687 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_687, 0, x_664); +lean_ctor_set(x_687, 1, x_673); +lean_ctor_set(x_687, 2, x_686); +x_688 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_689 = l_Lean_Syntax_node4(x_664, x_688, x_672, x_674, x_687, x_676); +x_441 = x_689; +x_442 = x_669; +goto block_487; +} +} +} +case 2: +{ +lean_object* x_690; uint8_t x_691; +x_690 = l_Lean_Elab_Command_getRef(x_11, x_12, x_13); +x_691 = !lean_is_exclusive(x_690); +if (x_691 == 0) +{ +lean_object* x_692; lean_object* x_693; uint8_t x_694; lean_object* x_695; lean_object* x_696; uint8_t x_697; +x_692 = lean_ctor_get(x_690, 0); +x_693 = lean_ctor_get(x_690, 1); +x_694 = 0; +x_695 = l_Lean_SourceInfo_fromRef(x_692, x_694); +lean_dec(x_692); +x_696 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_693); +x_697 = !lean_is_exclusive(x_696); +if (x_697 == 0) +{ +lean_object* x_698; lean_object* x_699; lean_object* x_700; uint8_t x_701; +x_698 = lean_ctor_get(x_696, 1); +x_699 = lean_ctor_get(x_696, 0); +lean_dec(x_699); +x_700 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_698); +x_701 = !lean_is_exclusive(x_700); +if (x_701 == 0) +{ +lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; +x_702 = lean_ctor_get(x_700, 1); +x_703 = lean_ctor_get(x_700, 0); +lean_dec(x_703); +x_704 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_695); +lean_ctor_set_tag(x_700, 2); +lean_ctor_set(x_700, 1, x_704); +lean_ctor_set(x_700, 0, x_695); +x_705 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_700); +lean_inc(x_695); +x_706 = l_Lean_Syntax_node2(x_695, x_705, x_700, x_700); +x_707 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_695); +x_708 = l_Lean_Syntax_node1(x_695, x_707, x_16); +x_709 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_695); +lean_ctor_set_tag(x_696, 2); +lean_ctor_set(x_696, 1, x_709); +lean_ctor_set(x_696, 0, x_695); +lean_inc(x_696); +lean_inc(x_695); +x_710 = l_Lean_Syntax_node2(x_695, x_705, x_696, x_696); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; +lean_free_object(x_690); +x_711 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_695); +x_712 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_712, 0, x_695); +lean_ctor_set(x_712, 1, x_707); +lean_ctor_set(x_712, 2, x_711); +x_713 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_714 = l_Lean_Syntax_node4(x_695, x_713, x_706, x_708, x_712, x_710); +x_441 = x_714; +x_442 = x_702; +goto block_487; +} +else +{ +lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; +x_715 = lean_ctor_get(x_3, 0); +lean_inc(x_715); +x_716 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_695); +lean_ctor_set_tag(x_690, 2); +lean_ctor_set(x_690, 1, x_716); +lean_ctor_set(x_690, 0, x_695); +x_717 = l_Array_mkArray2___rarg(x_690, x_715); +x_718 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_719 = l_Array_append___rarg(x_718, x_717); +lean_dec(x_717); +lean_inc(x_695); +x_720 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_720, 0, x_695); +lean_ctor_set(x_720, 1, x_707); +lean_ctor_set(x_720, 2, x_719); +x_721 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_722 = l_Lean_Syntax_node4(x_695, x_721, x_706, x_708, x_720, x_710); +x_441 = x_722; +x_442 = x_702; +goto block_487; +} +} +else +{ +lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; +x_723 = lean_ctor_get(x_700, 1); +lean_inc(x_723); +lean_dec(x_700); +x_724 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_695); +x_725 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_725, 0, x_695); +lean_ctor_set(x_725, 1, x_724); +x_726 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_725); +lean_inc(x_695); +x_727 = l_Lean_Syntax_node2(x_695, x_726, x_725, x_725); +x_728 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_695); +x_729 = l_Lean_Syntax_node1(x_695, x_728, x_16); +x_730 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_695); +lean_ctor_set_tag(x_696, 2); +lean_ctor_set(x_696, 1, x_730); +lean_ctor_set(x_696, 0, x_695); +lean_inc(x_696); +lean_inc(x_695); +x_731 = l_Lean_Syntax_node2(x_695, x_726, x_696, x_696); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; +lean_free_object(x_690); +x_732 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_695); +x_733 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_733, 0, x_695); +lean_ctor_set(x_733, 1, x_728); +lean_ctor_set(x_733, 2, x_732); +x_734 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_735 = l_Lean_Syntax_node4(x_695, x_734, x_727, x_729, x_733, x_731); +x_441 = x_735; +x_442 = x_723; +goto block_487; +} +else +{ +lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; +x_736 = lean_ctor_get(x_3, 0); +lean_inc(x_736); +x_737 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_695); +lean_ctor_set_tag(x_690, 2); +lean_ctor_set(x_690, 1, x_737); +lean_ctor_set(x_690, 0, x_695); +x_738 = l_Array_mkArray2___rarg(x_690, x_736); +x_739 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_740 = l_Array_append___rarg(x_739, x_738); +lean_dec(x_738); +lean_inc(x_695); +x_741 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_741, 0, x_695); +lean_ctor_set(x_741, 1, x_728); +lean_ctor_set(x_741, 2, x_740); +x_742 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_743 = l_Lean_Syntax_node4(x_695, x_742, x_727, x_729, x_741, x_731); +x_441 = x_743; +x_442 = x_723; +goto block_487; +} +} +} +else +{ +lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; +x_744 = lean_ctor_get(x_696, 1); +lean_inc(x_744); +lean_dec(x_696); +x_745 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_744); +x_746 = lean_ctor_get(x_745, 1); +lean_inc(x_746); +if (lean_is_exclusive(x_745)) { + lean_ctor_release(x_745, 0); + lean_ctor_release(x_745, 1); + x_747 = x_745; +} else { + lean_dec_ref(x_745); + x_747 = lean_box(0); +} +x_748 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_695); +if (lean_is_scalar(x_747)) { + x_749 = lean_alloc_ctor(2, 2, 0); +} else { + x_749 = x_747; + lean_ctor_set_tag(x_749, 2); +} +lean_ctor_set(x_749, 0, x_695); +lean_ctor_set(x_749, 1, x_748); +x_750 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_749); +lean_inc(x_695); +x_751 = l_Lean_Syntax_node2(x_695, x_750, x_749, x_749); +x_752 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_695); +x_753 = l_Lean_Syntax_node1(x_695, x_752, x_16); +x_754 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_695); +x_755 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_755, 0, x_695); +lean_ctor_set(x_755, 1, x_754); +lean_inc(x_755); +lean_inc(x_695); +x_756 = l_Lean_Syntax_node2(x_695, x_750, x_755, x_755); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; +lean_free_object(x_690); +x_757 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_695); +x_758 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_758, 0, x_695); +lean_ctor_set(x_758, 1, x_752); +lean_ctor_set(x_758, 2, x_757); +x_759 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_760 = l_Lean_Syntax_node4(x_695, x_759, x_751, x_753, x_758, x_756); +x_441 = x_760; +x_442 = x_746; +goto block_487; +} +else +{ +lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; +x_761 = lean_ctor_get(x_3, 0); +lean_inc(x_761); +x_762 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_695); +lean_ctor_set_tag(x_690, 2); +lean_ctor_set(x_690, 1, x_762); +lean_ctor_set(x_690, 0, x_695); +x_763 = l_Array_mkArray2___rarg(x_690, x_761); +x_764 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_765 = l_Array_append___rarg(x_764, x_763); +lean_dec(x_763); +lean_inc(x_695); +x_766 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_766, 0, x_695); +lean_ctor_set(x_766, 1, x_752); +lean_ctor_set(x_766, 2, x_765); +x_767 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_768 = l_Lean_Syntax_node4(x_695, x_767, x_751, x_753, x_766, x_756); +x_441 = x_768; +x_442 = x_746; +goto block_487; +} +} +} +else +{ +lean_object* x_769; lean_object* x_770; uint8_t x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; +x_769 = lean_ctor_get(x_690, 0); +x_770 = lean_ctor_get(x_690, 1); +lean_inc(x_770); +lean_inc(x_769); +lean_dec(x_690); +x_771 = 0; +x_772 = l_Lean_SourceInfo_fromRef(x_769, x_771); +lean_dec(x_769); +x_773 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_770); +x_774 = lean_ctor_get(x_773, 1); +lean_inc(x_774); +if (lean_is_exclusive(x_773)) { + lean_ctor_release(x_773, 0); + lean_ctor_release(x_773, 1); + x_775 = x_773; +} else { + lean_dec_ref(x_773); + x_775 = lean_box(0); +} +x_776 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_774); +x_777 = lean_ctor_get(x_776, 1); +lean_inc(x_777); +if (lean_is_exclusive(x_776)) { + lean_ctor_release(x_776, 0); + lean_ctor_release(x_776, 1); + x_778 = x_776; +} else { + lean_dec_ref(x_776); + x_778 = lean_box(0); +} +x_779 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_772); +if (lean_is_scalar(x_778)) { + x_780 = lean_alloc_ctor(2, 2, 0); +} else { + x_780 = x_778; + lean_ctor_set_tag(x_780, 2); +} +lean_ctor_set(x_780, 0, x_772); +lean_ctor_set(x_780, 1, x_779); +x_781 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_780); +lean_inc(x_772); +x_782 = l_Lean_Syntax_node2(x_772, x_781, x_780, x_780); +x_783 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_772); +x_784 = l_Lean_Syntax_node1(x_772, x_783, x_16); +x_785 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_772); +if (lean_is_scalar(x_775)) { + x_786 = lean_alloc_ctor(2, 2, 0); +} else { + x_786 = x_775; + lean_ctor_set_tag(x_786, 2); +} +lean_ctor_set(x_786, 0, x_772); +lean_ctor_set(x_786, 1, x_785); +lean_inc(x_786); +lean_inc(x_772); +x_787 = l_Lean_Syntax_node2(x_772, x_781, x_786, x_786); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; +x_788 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4; +lean_inc(x_772); +x_789 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_789, 0, x_772); +lean_ctor_set(x_789, 1, x_783); +lean_ctor_set(x_789, 2, x_788); +x_790 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_791 = l_Lean_Syntax_node4(x_772, x_790, x_782, x_784, x_789, x_787); +x_441 = x_791; +x_442 = x_777; +goto block_487; +} +else +{ +lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; +x_792 = lean_ctor_get(x_3, 0); +lean_inc(x_792); +x_793 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_772); +x_794 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_794, 0, x_772); +lean_ctor_set(x_794, 1, x_793); +x_795 = l_Array_mkArray2___rarg(x_794, x_792); +x_796 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +x_797 = l_Array_append___rarg(x_796, x_795); +lean_dec(x_795); +lean_inc(x_772); +x_798 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_798, 0, x_772); +lean_ctor_set(x_798, 1, x_783); +lean_ctor_set(x_798, 2, x_797); +x_799 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_800 = l_Lean_Syntax_node4(x_772, x_799, x_782, x_784, x_798, x_787); +x_441 = x_800; +x_442 = x_777; +goto block_487; +} +} +} +default: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; uint8_t x_807; +lean_dec(x_440); +lean_dec(x_39); +x_801 = l_Lean_MessageData_ofSyntax(x_16); +x_802 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__10; +x_803 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_803, 0, x_802); +lean_ctor_set(x_803, 1, x_801); +x_804 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__12; +x_805 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_805, 0, x_803); +lean_ctor_set(x_805, 1, x_804); +lean_inc(x_11); +x_806 = l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(x_1, x_805, x_11, x_12, x_13); +x_807 = !lean_is_exclusive(x_806); +if (x_807 == 0) +{ +x_17 = x_806; +goto block_34; +} +else +{ +lean_object* x_808; lean_object* x_809; lean_object* x_810; +x_808 = lean_ctor_get(x_806, 0); +x_809 = lean_ctor_get(x_806, 1); +lean_inc(x_809); +lean_inc(x_808); +lean_dec(x_806); +x_810 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_810, 0, x_808); +lean_ctor_set(x_810, 1, x_809); +x_17 = x_810; +goto block_34; +} +} +else +{ +lean_object* x_811; lean_object* x_812; uint8_t x_813; +x_811 = lean_ctor_get(x_3, 0); +lean_inc(x_811); +x_812 = l_Lean_Elab_Command_getRef(x_11, x_12, x_13); +x_813 = !lean_is_exclusive(x_812); +if (x_813 == 0) +{ +lean_object* x_814; lean_object* x_815; uint8_t x_816; lean_object* x_817; lean_object* x_818; uint8_t x_819; +x_814 = lean_ctor_get(x_812, 0); +x_815 = lean_ctor_get(x_812, 1); +x_816 = 0; +x_817 = l_Lean_SourceInfo_fromRef(x_814, x_816); +lean_dec(x_814); +x_818 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_815); +x_819 = !lean_is_exclusive(x_818); +if (x_819 == 0) +{ +lean_object* x_820; lean_object* x_821; lean_object* x_822; uint8_t x_823; +x_820 = lean_ctor_get(x_818, 1); +x_821 = lean_ctor_get(x_818, 0); +lean_dec(x_821); +x_822 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_820); +x_823 = !lean_is_exclusive(x_822); +if (x_823 == 0) +{ +lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; +x_824 = lean_ctor_get(x_822, 1); +x_825 = lean_ctor_get(x_822, 0); +lean_dec(x_825); +x_826 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; +lean_inc(x_817); +lean_ctor_set_tag(x_822, 2); +lean_ctor_set(x_822, 1, x_826); +lean_ctor_set(x_822, 0, x_817); +x_827 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_817); +lean_ctor_set_tag(x_818, 2); +lean_ctor_set(x_818, 1, x_827); +lean_ctor_set(x_818, 0, x_817); +x_828 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_817); +x_829 = l_Lean_Syntax_node2(x_817, x_828, x_16, x_818); +x_830 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; +lean_inc(x_817); +lean_ctor_set_tag(x_812, 2); +lean_ctor_set(x_812, 1, x_830); +lean_ctor_set(x_812, 0, x_817); +x_831 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +x_832 = l_Lean_Syntax_node4(x_817, x_831, x_822, x_829, x_811, x_812); +x_441 = x_832; +x_442 = x_824; +goto block_487; +} +else +{ +lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; +x_833 = lean_ctor_get(x_822, 1); +lean_inc(x_833); +lean_dec(x_822); +x_834 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; +lean_inc(x_817); +x_835 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_835, 0, x_817); +lean_ctor_set(x_835, 1, x_834); +x_836 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_817); +lean_ctor_set_tag(x_818, 2); +lean_ctor_set(x_818, 1, x_836); +lean_ctor_set(x_818, 0, x_817); +x_837 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_817); +x_838 = l_Lean_Syntax_node2(x_817, x_837, x_16, x_818); +x_839 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; +lean_inc(x_817); +lean_ctor_set_tag(x_812, 2); +lean_ctor_set(x_812, 1, x_839); +lean_ctor_set(x_812, 0, x_817); +x_840 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +x_841 = l_Lean_Syntax_node4(x_817, x_840, x_835, x_838, x_811, x_812); +x_441 = x_841; +x_442 = x_833; +goto block_487; +} +} +else +{ +lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; +x_842 = lean_ctor_get(x_818, 1); +lean_inc(x_842); +lean_dec(x_818); +x_843 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_842); +x_844 = lean_ctor_get(x_843, 1); +lean_inc(x_844); +if (lean_is_exclusive(x_843)) { + lean_ctor_release(x_843, 0); + lean_ctor_release(x_843, 1); + x_845 = x_843; +} else { + lean_dec_ref(x_843); + x_845 = lean_box(0); +} +x_846 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; +lean_inc(x_817); +if (lean_is_scalar(x_845)) { + x_847 = lean_alloc_ctor(2, 2, 0); +} else { + x_847 = x_845; + lean_ctor_set_tag(x_847, 2); +} +lean_ctor_set(x_847, 0, x_817); +lean_ctor_set(x_847, 1, x_846); +x_848 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_817); +x_849 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_849, 0, x_817); +lean_ctor_set(x_849, 1, x_848); +x_850 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_817); +x_851 = l_Lean_Syntax_node2(x_817, x_850, x_16, x_849); +x_852 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; +lean_inc(x_817); +lean_ctor_set_tag(x_812, 2); +lean_ctor_set(x_812, 1, x_852); +lean_ctor_set(x_812, 0, x_817); +x_853 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +x_854 = l_Lean_Syntax_node4(x_817, x_853, x_847, x_851, x_811, x_812); +x_441 = x_854; +x_442 = x_844; +goto block_487; +} +} +else +{ +lean_object* x_855; lean_object* x_856; uint8_t x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; +x_855 = lean_ctor_get(x_812, 0); +x_856 = lean_ctor_get(x_812, 1); +lean_inc(x_856); +lean_inc(x_855); +lean_dec(x_812); +x_857 = 0; +x_858 = l_Lean_SourceInfo_fromRef(x_855, x_857); +lean_dec(x_855); +x_859 = l_Lean_Elab_Command_getCurrMacroScope(x_11, x_12, x_856); +x_860 = lean_ctor_get(x_859, 1); +lean_inc(x_860); +if (lean_is_exclusive(x_859)) { + lean_ctor_release(x_859, 0); + lean_ctor_release(x_859, 1); + x_861 = x_859; +} else { + lean_dec_ref(x_859); + x_861 = lean_box(0); +} +x_862 = l_Lean_Elab_Command_getMainModule___rarg(x_12, x_860); +x_863 = lean_ctor_get(x_862, 1); +lean_inc(x_863); +if (lean_is_exclusive(x_862)) { + lean_ctor_release(x_862, 0); + lean_ctor_release(x_862, 1); + x_864 = x_862; +} else { + lean_dec_ref(x_862); + x_864 = lean_box(0); +} +x_865 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13; +lean_inc(x_858); +if (lean_is_scalar(x_864)) { + x_866 = lean_alloc_ctor(2, 2, 0); +} else { + x_866 = x_864; + lean_ctor_set_tag(x_866, 2); +} +lean_ctor_set(x_866, 0, x_858); +lean_ctor_set(x_866, 1, x_865); +x_867 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; +lean_inc(x_858); +if (lean_is_scalar(x_861)) { + x_868 = lean_alloc_ctor(2, 2, 0); +} else { + x_868 = x_861; + lean_ctor_set_tag(x_868, 2); +} +lean_ctor_set(x_868, 0, x_858); +lean_ctor_set(x_868, 1, x_867); +x_869 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_16); +lean_inc(x_858); +x_870 = l_Lean_Syntax_node2(x_858, x_869, x_16, x_868); +x_871 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14; +lean_inc(x_858); +x_872 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_872, 0, x_858); +lean_ctor_set(x_872, 1, x_871); +x_873 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +x_874 = l_Lean_Syntax_node4(x_858, x_873, x_866, x_870, x_811, x_872); +x_441 = x_874; +x_442 = x_863; +goto block_487; +} +} +} +} +block_487: +{ +uint8_t x_443; +x_443 = l_Lean_BinderInfo_isInstImplicit(x_2); +if (x_443 == 0) +{ +lean_object* x_444; lean_object* x_445; +lean_dec(x_441); +x_444 = lean_box(0); +lean_inc(x_11); +lean_inc(x_3); +x_445 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2(x_440, x_2, x_16, x_3, x_1, x_39, x_444, x_11, x_12, x_442); +x_17 = x_445; +goto block_34; +} +else +{ +lean_object* x_446; lean_object* x_447; +x_446 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__4___boxed), 9, 1); +lean_closure_set(x_446, 0, x_441); +x_447 = l_Lean_Elab_Command_runTermElabM___rarg(x_446, x_11, x_12, x_442); +if (lean_obj_tag(x_447) == 0) +{ +lean_object* x_448; lean_object* x_449; lean_object* x_450; +x_448 = lean_ctor_get(x_447, 0); +lean_inc(x_448); +x_449 = lean_ctor_get(x_447, 1); +lean_inc(x_449); +lean_dec(x_447); +lean_inc(x_11); +lean_inc(x_3); +x_450 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2(x_440, x_2, x_16, x_3, x_1, x_39, x_448, x_11, x_12, x_449); +lean_dec(x_448); +x_17 = x_450; +goto block_34; +} +else +{ +uint8_t x_451; +lean_dec(x_440); +lean_dec(x_39); +x_451 = !lean_is_exclusive(x_447); +if (x_451 == 0) +{ +lean_object* x_452; lean_object* x_453; uint8_t x_454; +x_452 = lean_ctor_get(x_447, 0); +x_453 = lean_ctor_get(x_447, 1); +x_454 = l_Lean_Exception_isInterrupt(x_452); +if (x_454 == 0) +{ +lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; +lean_free_object(x_447); +x_455 = l_Lean_MessageData_ofSyntax(x_16); +x_456 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__10; +x_457 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_457, 0, x_456); +lean_ctor_set(x_457, 1, x_455); +x_458 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__2; +x_459 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_459, 0, x_457); +lean_ctor_set(x_459, 1, x_458); +x_460 = l_Lean_Exception_toMessageData(x_452); +x_461 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_461, 0, x_459); +lean_ctor_set(x_461, 1, x_460); +x_462 = l_Lean_Elab_Command_elabModuleDoc___closed__4; +x_463 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_463, 0, x_461); +lean_ctor_set(x_463, 1, x_462); +lean_inc(x_11); +x_464 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabModuleDoc___spec__1(x_1, x_463, x_11, x_12, x_453); +x_465 = !lean_is_exclusive(x_464); +if (x_465 == 0) +{ +x_17 = x_464; +goto block_34; +} +else +{ +lean_object* x_466; lean_object* x_467; lean_object* x_468; +x_466 = lean_ctor_get(x_464, 0); +x_467 = lean_ctor_get(x_464, 1); +lean_inc(x_467); +lean_inc(x_466); +lean_dec(x_464); +x_468 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_468, 0, x_466); +lean_ctor_set(x_468, 1, x_467); +x_17 = x_468; +goto block_34; +} +} +else +{ +lean_dec(x_16); +x_17 = x_447; +goto block_34; +} +} +else +{ +lean_object* x_469; lean_object* x_470; uint8_t x_471; +x_469 = lean_ctor_get(x_447, 0); +x_470 = lean_ctor_get(x_447, 1); +lean_inc(x_470); +lean_inc(x_469); +lean_dec(x_447); +x_471 = l_Lean_Exception_isInterrupt(x_469); +if (x_471 == 0) +{ +lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; +x_472 = l_Lean_MessageData_ofSyntax(x_16); +x_473 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__10; +x_474 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_474, 0, x_473); +lean_ctor_set(x_474, 1, x_472); +x_475 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__2; +x_476 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_476, 0, x_474); +lean_ctor_set(x_476, 1, x_475); +x_477 = l_Lean_Exception_toMessageData(x_469); +x_478 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_478, 0, x_476); +lean_ctor_set(x_478, 1, x_477); +x_479 = l_Lean_Elab_Command_elabModuleDoc___closed__4; +x_480 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_480, 0, x_478); +lean_ctor_set(x_480, 1, x_479); +lean_inc(x_11); +x_481 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabModuleDoc___spec__1(x_1, x_480, x_11, x_12, x_470); +x_482 = lean_ctor_get(x_481, 0); +lean_inc(x_482); +x_483 = lean_ctor_get(x_481, 1); +lean_inc(x_483); +if (lean_is_exclusive(x_481)) { + lean_ctor_release(x_481, 0); + lean_ctor_release(x_481, 1); + x_484 = x_481; +} else { + lean_dec_ref(x_481); + x_484 = lean_box(0); +} +if (lean_is_scalar(x_484)) { + x_485 = lean_alloc_ctor(1, 2, 0); +} else { + x_485 = x_484; +} +lean_ctor_set(x_485, 0, x_482); +lean_ctor_set(x_485, 1, x_483); +x_17 = x_485; +goto block_34; +} +else +{ +lean_object* x_486; +lean_dec(x_16); +x_486 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_486, 0, x_469); +lean_ctor_set(x_486, 1, x_470); +x_17 = x_486; +goto block_34; +} +} +} +} +} +} +block_34: +{ +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +lean_dec(x_11); +lean_dec(x_3); +x_19 = !lean_is_exclusive(x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_17, 0); +lean_dec(x_20); +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +lean_dec(x_18); +lean_ctor_set(x_17, 0, x_21); +return x_17; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_17, 1); +lean_inc(x_22); +lean_dec(x_17); +x_23 = lean_ctor_get(x_18, 0); +lean_inc(x_23); +lean_dec(x_18); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +return x_24; +} +} +else +{ +lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; +x_25 = lean_ctor_get(x_17, 1); +lean_inc(x_25); +lean_dec(x_17); +x_26 = lean_ctor_get(x_18, 0); +lean_inc(x_26); +lean_dec(x_18); +x_27 = 1; +x_28 = lean_usize_add(x_9, x_27); +x_9 = x_28; +x_10 = x_26; +x_13 = x_25; +goto _start; +} +} +else +{ +uint8_t x_30; +lean_dec(x_11); +lean_dec(x_3); +x_30 = !lean_is_exclusive(x_17); +if (x_30 == 0) +{ +return x_17; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_17, 0); +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_17); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +} +block_48: +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_43 = lean_array_push(x_39, x_41); +if (lean_is_scalar(x_40)) { + x_44 = lean_alloc_ctor(0, 2, 0); +} else { + x_44 = x_40; +} +lean_ctor_set(x_44, 0, x_38); +lean_ctor_set(x_44, 1, x_43); +if (lean_is_scalar(x_37)) { + x_45 = lean_alloc_ctor(0, 2, 0); +} else { + x_45 = x_37; +} +lean_ctor_set(x_45, 0, x_36); +lean_ctor_set(x_45, 1, x_44); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_45); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_42); +x_17 = x_47; +goto block_34; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_2, 4); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); +lean_dec(x_6); +x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_2, x_3, x_7); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +x_14 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(x_12, x_8, x_2, x_3, x_13); lean_dec(x_2); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_9); -lean_ctor_set(x_14, 1, x_12); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_14, 0); +lean_ctor_set(x_10, 1, x_16); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set_tag(x_14, 1); +lean_ctor_set(x_14, 0, x_10); return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_297; lean_object* x_298; lean_object* x_299; -x_15 = lean_array_uget(x_6, x_8); -x_23 = lean_ctor_get(x_9, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_14, 0); +x_18 = lean_ctor_get(x_14, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_14); +lean_ctor_set(x_10, 1, x_17); +lean_ctor_set(x_10, 0, x_9); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_10); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +else +{ +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_20 = lean_ctor_get(x_10, 0); +x_21 = lean_ctor_get(x_10, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_10); +x_22 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(x_20, x_8, x_2, x_3, x_21); +lean_dec(x_2); +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -x_24 = lean_ctor_get(x_9, 0); +x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); -if (lean_is_exclusive(x_9)) { - lean_ctor_release(x_9, 0); - lean_ctor_release(x_9, 1); - x_25 = x_9; +if (lean_is_exclusive(x_22)) { + lean_ctor_release(x_22, 0); + lean_ctor_release(x_22, 1); + x_25 = x_22; } else { - lean_dec_ref(x_9); + lean_dec_ref(x_22); x_25 = lean_box(0); } -x_26 = lean_ctor_get(x_23, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_23, 1); -lean_inc(x_27); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_28 = x_23; +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_9); +lean_ctor_set(x_26, 1, x_23); +if (lean_is_scalar(x_25)) { + x_27 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_23); - x_28 = lean_box(0); + x_27 = x_25; + lean_ctor_set_tag(x_27, 1); } -lean_inc(x_15); -x_297 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___lambda__1___boxed), 2, 1); -lean_closure_set(x_297, 0, x_15); -x_298 = lean_unsigned_to_nat(0u); -x_299 = l_Array_findFinIdx_x3f_loop___rarg(x_297, x_24, x_298); -if (lean_obj_tag(x_299) == 0) +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_24); +return x_27; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: { -if (x_3 == 0) +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_replaceRef(x_1, x_7); +lean_dec(x_7); +x_10 = !lean_is_exclusive(x_3); +if (x_10 == 0) { -uint8_t x_300; -x_300 = 0; -x_29 = x_300; -goto block_296; +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_3, 6); +lean_dec(x_11); +lean_ctor_set(x_3, 6, x_9); +x_12 = l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6(x_2, x_3, x_4, x_8); +return x_12; } else { -uint8_t x_301; -x_301 = 1; -x_29 = x_301; -goto block_296; -} -} -else -{ -lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; -lean_dec(x_28); -lean_dec(x_26); -lean_dec(x_25); -x_302 = lean_ctor_get(x_299, 0); -lean_inc(x_302); -if (lean_is_exclusive(x_299)) { - lean_ctor_release(x_299, 0); - x_303 = x_299; -} else { - lean_dec_ref(x_299); - x_303 = lean_box(0); -} -x_304 = l_Array_eraseIdx___rarg(x_24, x_302, lean_box(0)); -if (x_1 == 0) -{ -uint8_t x_599; -x_599 = 0; -x_305 = x_599; -goto block_598; -} -else -{ -uint8_t x_600; -x_600 = 1; -x_305 = x_600; -goto block_598; -} -block_598: -{ -if (x_305 == 0) -{ -lean_object* x_306; uint8_t x_307; -x_306 = l_Lean_Elab_Command_getRef(x_10, x_11, x_12); -x_307 = !lean_is_exclusive(x_306); -if (x_307 == 0) -{ -lean_object* x_308; lean_object* x_309; uint8_t x_310; lean_object* x_311; lean_object* x_312; uint8_t x_313; -x_308 = lean_ctor_get(x_306, 0); -x_309 = lean_ctor_get(x_306, 1); -x_310 = 0; -x_311 = l_Lean_SourceInfo_fromRef(x_308, x_310); -lean_dec(x_308); -x_312 = l_Lean_Elab_Command_getCurrMacroScope(x_10, x_11, x_309); -x_313 = !lean_is_exclusive(x_312); -if (x_313 == 0) -{ -lean_object* x_314; lean_object* x_315; lean_object* x_316; uint8_t x_317; -x_314 = lean_ctor_get(x_312, 1); -x_315 = lean_ctor_get(x_312, 0); -lean_dec(x_315); -x_316 = l_Lean_Elab_Command_getMainModule___rarg(x_11, x_314); -x_317 = !lean_is_exclusive(x_316); -if (x_317 == 0) -{ -lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; -x_318 = lean_ctor_get(x_316, 1); -x_319 = lean_ctor_get(x_316, 0); -lean_dec(x_319); -x_320 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; -lean_inc(x_311); -lean_ctor_set_tag(x_316, 2); -lean_ctor_set(x_316, 1, x_320); -lean_ctor_set(x_316, 0, x_311); -x_321 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_311); -x_322 = l_Lean_Syntax_node1(x_311, x_321, x_15); -x_323 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4; -lean_inc(x_311); -lean_ctor_set_tag(x_312, 2); -lean_ctor_set(x_312, 1, x_323); -lean_ctor_set(x_312, 0, x_311); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; uint8_t x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; -x_324 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_311); -x_325 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_325, 0, x_311); -lean_ctor_set(x_325, 1, x_321); -lean_ctor_set(x_325, 2, x_324); -x_326 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_327 = l_Lean_Syntax_node4(x_311, x_326, x_316, x_322, x_325, x_312); -x_328 = lean_array_push(x_27, x_327); -x_329 = 1; -x_330 = lean_box(x_329); -lean_ctor_set(x_306, 1, x_328); -lean_ctor_set(x_306, 0, x_330); -x_331 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_331, 0, x_304); -lean_ctor_set(x_331, 1, x_306); -if (lean_is_scalar(x_303)) { - x_332 = lean_alloc_ctor(1, 1, 0); -} else { - x_332 = x_303; -} -lean_ctor_set(x_332, 0, x_331); -x_16 = x_332; -x_17 = x_318; -goto block_22; -} -else -{ -lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; uint8_t x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; -x_333 = lean_ctor_get(x_2, 0); -lean_inc(x_333); -x_334 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_311); -lean_ctor_set_tag(x_306, 2); -lean_ctor_set(x_306, 1, x_334); -lean_ctor_set(x_306, 0, x_311); -x_335 = l_Array_mkArray2___rarg(x_306, x_333); -x_336 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -x_337 = l_Array_append___rarg(x_336, x_335); -lean_dec(x_335); -lean_inc(x_311); -x_338 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_338, 0, x_311); -lean_ctor_set(x_338, 1, x_321); -lean_ctor_set(x_338, 2, x_337); -x_339 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_340 = l_Lean_Syntax_node4(x_311, x_339, x_316, x_322, x_338, x_312); -x_341 = lean_array_push(x_27, x_340); -x_342 = 1; -x_343 = lean_box(x_342); -x_344 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_344, 0, x_343); -lean_ctor_set(x_344, 1, x_341); -x_345 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_345, 0, x_304); -lean_ctor_set(x_345, 1, x_344); -if (lean_is_scalar(x_303)) { - x_346 = lean_alloc_ctor(1, 1, 0); -} else { - x_346 = x_303; -} -lean_ctor_set(x_346, 0, x_345); -x_16 = x_346; -x_17 = x_318; -goto block_22; -} -} -else -{ -lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; -x_347 = lean_ctor_get(x_316, 1); -lean_inc(x_347); -lean_dec(x_316); -x_348 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; -lean_inc(x_311); -x_349 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_349, 0, x_311); -lean_ctor_set(x_349, 1, x_348); -x_350 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_311); -x_351 = l_Lean_Syntax_node1(x_311, x_350, x_15); -x_352 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4; -lean_inc(x_311); -lean_ctor_set_tag(x_312, 2); -lean_ctor_set(x_312, 1, x_352); -lean_ctor_set(x_312, 0, x_311); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; uint8_t x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; -x_353 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_311); -x_354 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_354, 0, x_311); -lean_ctor_set(x_354, 1, x_350); -lean_ctor_set(x_354, 2, x_353); -x_355 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_356 = l_Lean_Syntax_node4(x_311, x_355, x_349, x_351, x_354, x_312); -x_357 = lean_array_push(x_27, x_356); -x_358 = 1; -x_359 = lean_box(x_358); -lean_ctor_set(x_306, 1, x_357); -lean_ctor_set(x_306, 0, x_359); -x_360 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_360, 0, x_304); -lean_ctor_set(x_360, 1, x_306); -if (lean_is_scalar(x_303)) { - x_361 = lean_alloc_ctor(1, 1, 0); -} else { - x_361 = x_303; -} -lean_ctor_set(x_361, 0, x_360); -x_16 = x_361; -x_17 = x_347; -goto block_22; -} -else -{ -lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; -x_362 = lean_ctor_get(x_2, 0); -lean_inc(x_362); -x_363 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_311); -lean_ctor_set_tag(x_306, 2); -lean_ctor_set(x_306, 1, x_363); -lean_ctor_set(x_306, 0, x_311); -x_364 = l_Array_mkArray2___rarg(x_306, x_362); -x_365 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -x_366 = l_Array_append___rarg(x_365, x_364); -lean_dec(x_364); -lean_inc(x_311); -x_367 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_367, 0, x_311); -lean_ctor_set(x_367, 1, x_350); -lean_ctor_set(x_367, 2, x_366); -x_368 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_369 = l_Lean_Syntax_node4(x_311, x_368, x_349, x_351, x_367, x_312); -x_370 = lean_array_push(x_27, x_369); -x_371 = 1; -x_372 = lean_box(x_371); -x_373 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_373, 0, x_372); -lean_ctor_set(x_373, 1, x_370); -x_374 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_374, 0, x_304); -lean_ctor_set(x_374, 1, x_373); -if (lean_is_scalar(x_303)) { - x_375 = lean_alloc_ctor(1, 1, 0); -} else { - x_375 = x_303; -} -lean_ctor_set(x_375, 0, x_374); -x_16 = x_375; -x_17 = x_347; -goto block_22; -} -} -} -else -{ -lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; -x_376 = lean_ctor_get(x_312, 1); -lean_inc(x_376); -lean_dec(x_312); -x_377 = l_Lean_Elab_Command_getMainModule___rarg(x_11, x_376); -x_378 = lean_ctor_get(x_377, 1); -lean_inc(x_378); -if (lean_is_exclusive(x_377)) { - lean_ctor_release(x_377, 0); - lean_ctor_release(x_377, 1); - x_379 = x_377; -} else { - lean_dec_ref(x_377); - x_379 = lean_box(0); -} -x_380 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; -lean_inc(x_311); -if (lean_is_scalar(x_379)) { - x_381 = lean_alloc_ctor(2, 2, 0); -} else { - x_381 = x_379; - lean_ctor_set_tag(x_381, 2); -} -lean_ctor_set(x_381, 0, x_311); -lean_ctor_set(x_381, 1, x_380); -x_382 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_311); -x_383 = l_Lean_Syntax_node1(x_311, x_382, x_15); -x_384 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4; -lean_inc(x_311); -x_385 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_385, 0, x_311); -lean_ctor_set(x_385, 1, x_384); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; uint8_t x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; -x_386 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_311); -x_387 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_387, 0, x_311); -lean_ctor_set(x_387, 1, x_382); -lean_ctor_set(x_387, 2, x_386); -x_388 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_389 = l_Lean_Syntax_node4(x_311, x_388, x_381, x_383, x_387, x_385); -x_390 = lean_array_push(x_27, x_389); -x_391 = 1; -x_392 = lean_box(x_391); -lean_ctor_set(x_306, 1, x_390); -lean_ctor_set(x_306, 0, x_392); -x_393 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_393, 0, x_304); -lean_ctor_set(x_393, 1, x_306); -if (lean_is_scalar(x_303)) { - x_394 = lean_alloc_ctor(1, 1, 0); -} else { - x_394 = x_303; -} -lean_ctor_set(x_394, 0, x_393); -x_16 = x_394; -x_17 = x_378; -goto block_22; -} -else -{ -lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; uint8_t x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; -x_395 = lean_ctor_get(x_2, 0); -lean_inc(x_395); -x_396 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_311); -lean_ctor_set_tag(x_306, 2); -lean_ctor_set(x_306, 1, x_396); -lean_ctor_set(x_306, 0, x_311); -x_397 = l_Array_mkArray2___rarg(x_306, x_395); -x_398 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -x_399 = l_Array_append___rarg(x_398, x_397); -lean_dec(x_397); -lean_inc(x_311); -x_400 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_400, 0, x_311); -lean_ctor_set(x_400, 1, x_382); -lean_ctor_set(x_400, 2, x_399); -x_401 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_402 = l_Lean_Syntax_node4(x_311, x_401, x_381, x_383, x_400, x_385); -x_403 = lean_array_push(x_27, x_402); -x_404 = 1; -x_405 = lean_box(x_404); -x_406 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_406, 0, x_405); -lean_ctor_set(x_406, 1, x_403); -x_407 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_407, 0, x_304); -lean_ctor_set(x_407, 1, x_406); -if (lean_is_scalar(x_303)) { - x_408 = lean_alloc_ctor(1, 1, 0); -} else { - x_408 = x_303; -} -lean_ctor_set(x_408, 0, x_407); -x_16 = x_408; -x_17 = x_378; -goto block_22; -} -} -} -else -{ -lean_object* x_409; lean_object* x_410; uint8_t x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; -x_409 = lean_ctor_get(x_306, 0); -x_410 = lean_ctor_get(x_306, 1); -lean_inc(x_410); -lean_inc(x_409); -lean_dec(x_306); -x_411 = 0; -x_412 = l_Lean_SourceInfo_fromRef(x_409, x_411); -lean_dec(x_409); -x_413 = l_Lean_Elab_Command_getCurrMacroScope(x_10, x_11, x_410); -x_414 = lean_ctor_get(x_413, 1); -lean_inc(x_414); -if (lean_is_exclusive(x_413)) { - lean_ctor_release(x_413, 0); - lean_ctor_release(x_413, 1); - x_415 = x_413; -} else { - lean_dec_ref(x_413); - x_415 = lean_box(0); -} -x_416 = l_Lean_Elab_Command_getMainModule___rarg(x_11, x_414); -x_417 = lean_ctor_get(x_416, 1); -lean_inc(x_417); -if (lean_is_exclusive(x_416)) { - lean_ctor_release(x_416, 0); - lean_ctor_release(x_416, 1); - x_418 = x_416; -} else { - lean_dec_ref(x_416); - x_418 = lean_box(0); -} -x_419 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; -lean_inc(x_412); -if (lean_is_scalar(x_418)) { - x_420 = lean_alloc_ctor(2, 2, 0); -} else { - x_420 = x_418; - lean_ctor_set_tag(x_420, 2); -} -lean_ctor_set(x_420, 0, x_412); -lean_ctor_set(x_420, 1, x_419); -x_421 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_412); -x_422 = l_Lean_Syntax_node1(x_412, x_421, x_15); -x_423 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4; -lean_inc(x_412); -if (lean_is_scalar(x_415)) { - x_424 = lean_alloc_ctor(2, 2, 0); -} else { - x_424 = x_415; - lean_ctor_set_tag(x_424, 2); -} -lean_ctor_set(x_424, 0, x_412); -lean_ctor_set(x_424, 1, x_423); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; uint8_t x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; -x_425 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_412); -x_426 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_426, 0, x_412); -lean_ctor_set(x_426, 1, x_421); -lean_ctor_set(x_426, 2, x_425); -x_427 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_428 = l_Lean_Syntax_node4(x_412, x_427, x_420, x_422, x_426, x_424); -x_429 = lean_array_push(x_27, x_428); -x_430 = 1; -x_431 = lean_box(x_430); -x_432 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_432, 0, x_431); -lean_ctor_set(x_432, 1, x_429); -x_433 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_433, 0, x_304); -lean_ctor_set(x_433, 1, x_432); -if (lean_is_scalar(x_303)) { - x_434 = lean_alloc_ctor(1, 1, 0); -} else { - x_434 = x_303; -} -lean_ctor_set(x_434, 0, x_433); -x_16 = x_434; -x_17 = x_417; -goto block_22; -} -else -{ -lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; uint8_t x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; -x_435 = lean_ctor_get(x_2, 0); -lean_inc(x_435); -x_436 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_412); -x_437 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_437, 0, x_412); -lean_ctor_set(x_437, 1, x_436); -x_438 = l_Array_mkArray2___rarg(x_437, x_435); -x_439 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -x_440 = l_Array_append___rarg(x_439, x_438); -lean_dec(x_438); -lean_inc(x_412); -x_441 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_441, 0, x_412); -lean_ctor_set(x_441, 1, x_421); -lean_ctor_set(x_441, 2, x_440); -x_442 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_443 = l_Lean_Syntax_node4(x_412, x_442, x_420, x_422, x_441, x_424); -x_444 = lean_array_push(x_27, x_443); -x_445 = 1; -x_446 = lean_box(x_445); -x_447 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_447, 0, x_446); -lean_ctor_set(x_447, 1, x_444); -x_448 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_448, 0, x_304); -lean_ctor_set(x_448, 1, x_447); -if (lean_is_scalar(x_303)) { - x_449 = lean_alloc_ctor(1, 1, 0); -} else { - x_449 = x_303; -} -lean_ctor_set(x_449, 0, x_448); -x_16 = x_449; -x_17 = x_417; -goto block_22; -} -} -} -else -{ -lean_object* x_450; uint8_t x_451; -x_450 = l_Lean_Elab_Command_getRef(x_10, x_11, x_12); -x_451 = !lean_is_exclusive(x_450); -if (x_451 == 0) -{ -lean_object* x_452; lean_object* x_453; uint8_t x_454; lean_object* x_455; lean_object* x_456; uint8_t x_457; -x_452 = lean_ctor_get(x_450, 0); -x_453 = lean_ctor_get(x_450, 1); -x_454 = 0; -x_455 = l_Lean_SourceInfo_fromRef(x_452, x_454); -lean_dec(x_452); -x_456 = l_Lean_Elab_Command_getCurrMacroScope(x_10, x_11, x_453); -x_457 = !lean_is_exclusive(x_456); -if (x_457 == 0) -{ -lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; -x_458 = lean_ctor_get(x_456, 1); -x_459 = lean_ctor_get(x_456, 0); -lean_dec(x_459); -x_460 = l_Lean_Elab_Command_getMainModule___rarg(x_11, x_458); -x_461 = !lean_is_exclusive(x_460); -if (x_461 == 0) -{ -lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; -x_462 = lean_ctor_get(x_460, 1); -x_463 = lean_ctor_get(x_460, 0); -lean_dec(x_463); -x_464 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6; -lean_inc(x_455); -lean_ctor_set_tag(x_460, 2); -lean_ctor_set(x_460, 1, x_464); -lean_ctor_set(x_460, 0, x_455); -x_465 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_455); -x_466 = l_Lean_Syntax_node1(x_455, x_465, x_15); -x_467 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -lean_inc(x_455); -x_468 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_468, 0, x_455); -lean_ctor_set(x_468, 1, x_465); -lean_ctor_set(x_468, 2, x_467); -x_469 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; -lean_inc(x_455); -lean_ctor_set_tag(x_456, 2); -lean_ctor_set(x_456, 1, x_469); -lean_ctor_set(x_456, 0, x_455); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; uint8_t x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; -x_470 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_455); -x_471 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_471, 0, x_455); -lean_ctor_set(x_471, 1, x_465); -lean_ctor_set(x_471, 2, x_470); -x_472 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_473 = l_Lean_Syntax_node5(x_455, x_472, x_460, x_466, x_471, x_468, x_456); -x_474 = lean_array_push(x_27, x_473); -x_475 = 1; -x_476 = lean_box(x_475); -lean_ctor_set(x_450, 1, x_474); -lean_ctor_set(x_450, 0, x_476); -x_477 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_477, 0, x_304); -lean_ctor_set(x_477, 1, x_450); -if (lean_is_scalar(x_303)) { - x_478 = lean_alloc_ctor(1, 1, 0); -} else { - x_478 = x_303; -} -lean_ctor_set(x_478, 0, x_477); -x_16 = x_478; -x_17 = x_462; -goto block_22; -} -else -{ -lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; uint8_t x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; -x_479 = lean_ctor_get(x_2, 0); -lean_inc(x_479); -x_480 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_455); -lean_ctor_set_tag(x_450, 2); -lean_ctor_set(x_450, 1, x_480); -lean_ctor_set(x_450, 0, x_455); -x_481 = l_Array_mkArray2___rarg(x_450, x_479); -x_482 = l_Array_append___rarg(x_467, x_481); -lean_dec(x_481); -lean_inc(x_455); -x_483 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_483, 0, x_455); -lean_ctor_set(x_483, 1, x_465); -lean_ctor_set(x_483, 2, x_482); -x_484 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_485 = l_Lean_Syntax_node5(x_455, x_484, x_460, x_466, x_483, x_468, x_456); -x_486 = lean_array_push(x_27, x_485); -x_487 = 1; -x_488 = lean_box(x_487); -x_489 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_489, 0, x_488); -lean_ctor_set(x_489, 1, x_486); -x_490 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_490, 0, x_304); -lean_ctor_set(x_490, 1, x_489); -if (lean_is_scalar(x_303)) { - x_491 = lean_alloc_ctor(1, 1, 0); -} else { - x_491 = x_303; -} -lean_ctor_set(x_491, 0, x_490); -x_16 = x_491; -x_17 = x_462; -goto block_22; -} -} -else -{ -lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; -x_492 = lean_ctor_get(x_460, 1); -lean_inc(x_492); -lean_dec(x_460); -x_493 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6; -lean_inc(x_455); -x_494 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_494, 0, x_455); -lean_ctor_set(x_494, 1, x_493); -x_495 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_455); -x_496 = l_Lean_Syntax_node1(x_455, x_495, x_15); -x_497 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -lean_inc(x_455); -x_498 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_498, 0, x_455); -lean_ctor_set(x_498, 1, x_495); -lean_ctor_set(x_498, 2, x_497); -x_499 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; -lean_inc(x_455); -lean_ctor_set_tag(x_456, 2); -lean_ctor_set(x_456, 1, x_499); -lean_ctor_set(x_456, 0, x_455); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; uint8_t x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; -x_500 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_455); -x_501 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_501, 0, x_455); -lean_ctor_set(x_501, 1, x_495); -lean_ctor_set(x_501, 2, x_500); -x_502 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_503 = l_Lean_Syntax_node5(x_455, x_502, x_494, x_496, x_501, x_498, x_456); -x_504 = lean_array_push(x_27, x_503); -x_505 = 1; -x_506 = lean_box(x_505); -lean_ctor_set(x_450, 1, x_504); -lean_ctor_set(x_450, 0, x_506); -x_507 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_507, 0, x_304); -lean_ctor_set(x_507, 1, x_450); -if (lean_is_scalar(x_303)) { - x_508 = lean_alloc_ctor(1, 1, 0); -} else { - x_508 = x_303; -} -lean_ctor_set(x_508, 0, x_507); -x_16 = x_508; -x_17 = x_492; -goto block_22; -} -else -{ -lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; uint8_t x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; -x_509 = lean_ctor_get(x_2, 0); -lean_inc(x_509); -x_510 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_455); -lean_ctor_set_tag(x_450, 2); -lean_ctor_set(x_450, 1, x_510); -lean_ctor_set(x_450, 0, x_455); -x_511 = l_Array_mkArray2___rarg(x_450, x_509); -x_512 = l_Array_append___rarg(x_497, x_511); -lean_dec(x_511); -lean_inc(x_455); -x_513 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_513, 0, x_455); -lean_ctor_set(x_513, 1, x_495); -lean_ctor_set(x_513, 2, x_512); -x_514 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_515 = l_Lean_Syntax_node5(x_455, x_514, x_494, x_496, x_513, x_498, x_456); -x_516 = lean_array_push(x_27, x_515); -x_517 = 1; -x_518 = lean_box(x_517); -x_519 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_519, 0, x_518); -lean_ctor_set(x_519, 1, x_516); -x_520 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_520, 0, x_304); -lean_ctor_set(x_520, 1, x_519); -if (lean_is_scalar(x_303)) { - x_521 = lean_alloc_ctor(1, 1, 0); -} else { - x_521 = x_303; -} -lean_ctor_set(x_521, 0, x_520); -x_16 = x_521; -x_17 = x_492; -goto block_22; -} -} -} -else -{ -lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; -x_522 = lean_ctor_get(x_456, 1); -lean_inc(x_522); -lean_dec(x_456); -x_523 = l_Lean_Elab_Command_getMainModule___rarg(x_11, x_522); -x_524 = lean_ctor_get(x_523, 1); -lean_inc(x_524); -if (lean_is_exclusive(x_523)) { - lean_ctor_release(x_523, 0); - lean_ctor_release(x_523, 1); - x_525 = x_523; -} else { - lean_dec_ref(x_523); - x_525 = lean_box(0); -} -x_526 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6; -lean_inc(x_455); -if (lean_is_scalar(x_525)) { - x_527 = lean_alloc_ctor(2, 2, 0); -} else { - x_527 = x_525; - lean_ctor_set_tag(x_527, 2); -} -lean_ctor_set(x_527, 0, x_455); -lean_ctor_set(x_527, 1, x_526); -x_528 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_455); -x_529 = l_Lean_Syntax_node1(x_455, x_528, x_15); -x_530 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -lean_inc(x_455); -x_531 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_531, 0, x_455); -lean_ctor_set(x_531, 1, x_528); -lean_ctor_set(x_531, 2, x_530); -x_532 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; -lean_inc(x_455); -x_533 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_533, 0, x_455); -lean_ctor_set(x_533, 1, x_532); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; uint8_t x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; -x_534 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_455); -x_535 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_535, 0, x_455); -lean_ctor_set(x_535, 1, x_528); -lean_ctor_set(x_535, 2, x_534); -x_536 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_537 = l_Lean_Syntax_node5(x_455, x_536, x_527, x_529, x_535, x_531, x_533); -x_538 = lean_array_push(x_27, x_537); -x_539 = 1; -x_540 = lean_box(x_539); -lean_ctor_set(x_450, 1, x_538); -lean_ctor_set(x_450, 0, x_540); -x_541 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_541, 0, x_304); -lean_ctor_set(x_541, 1, x_450); -if (lean_is_scalar(x_303)) { - x_542 = lean_alloc_ctor(1, 1, 0); -} else { - x_542 = x_303; -} -lean_ctor_set(x_542, 0, x_541); -x_16 = x_542; -x_17 = x_524; -goto block_22; -} -else -{ -lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; uint8_t x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; -x_543 = lean_ctor_get(x_2, 0); -lean_inc(x_543); -x_544 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_455); -lean_ctor_set_tag(x_450, 2); -lean_ctor_set(x_450, 1, x_544); -lean_ctor_set(x_450, 0, x_455); -x_545 = l_Array_mkArray2___rarg(x_450, x_543); -x_546 = l_Array_append___rarg(x_530, x_545); -lean_dec(x_545); -lean_inc(x_455); -x_547 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_547, 0, x_455); -lean_ctor_set(x_547, 1, x_528); -lean_ctor_set(x_547, 2, x_546); -x_548 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_549 = l_Lean_Syntax_node5(x_455, x_548, x_527, x_529, x_547, x_531, x_533); -x_550 = lean_array_push(x_27, x_549); -x_551 = 1; -x_552 = lean_box(x_551); -x_553 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_553, 0, x_552); -lean_ctor_set(x_553, 1, x_550); -x_554 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_554, 0, x_304); -lean_ctor_set(x_554, 1, x_553); -if (lean_is_scalar(x_303)) { - x_555 = lean_alloc_ctor(1, 1, 0); -} else { - x_555 = x_303; -} -lean_ctor_set(x_555, 0, x_554); -x_16 = x_555; -x_17 = x_524; -goto block_22; -} -} -} -else -{ -lean_object* x_556; lean_object* x_557; uint8_t x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; -x_556 = lean_ctor_get(x_450, 0); -x_557 = lean_ctor_get(x_450, 1); -lean_inc(x_557); -lean_inc(x_556); -lean_dec(x_450); -x_558 = 0; -x_559 = l_Lean_SourceInfo_fromRef(x_556, x_558); -lean_dec(x_556); -x_560 = l_Lean_Elab_Command_getCurrMacroScope(x_10, x_11, x_557); -x_561 = lean_ctor_get(x_560, 1); -lean_inc(x_561); -if (lean_is_exclusive(x_560)) { - lean_ctor_release(x_560, 0); - lean_ctor_release(x_560, 1); - x_562 = x_560; -} else { - lean_dec_ref(x_560); - x_562 = lean_box(0); -} -x_563 = l_Lean_Elab_Command_getMainModule___rarg(x_11, x_561); -x_564 = lean_ctor_get(x_563, 1); -lean_inc(x_564); -if (lean_is_exclusive(x_563)) { - lean_ctor_release(x_563, 0); - lean_ctor_release(x_563, 1); - x_565 = x_563; -} else { - lean_dec_ref(x_563); - x_565 = lean_box(0); -} -x_566 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6; -lean_inc(x_559); -if (lean_is_scalar(x_565)) { - x_567 = lean_alloc_ctor(2, 2, 0); -} else { - x_567 = x_565; - lean_ctor_set_tag(x_567, 2); -} -lean_ctor_set(x_567, 0, x_559); -lean_ctor_set(x_567, 1, x_566); -x_568 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_559); -x_569 = l_Lean_Syntax_node1(x_559, x_568, x_15); -x_570 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -lean_inc(x_559); -x_571 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_571, 0, x_559); -lean_ctor_set(x_571, 1, x_568); -lean_ctor_set(x_571, 2, x_570); -x_572 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; -lean_inc(x_559); -if (lean_is_scalar(x_562)) { - x_573 = lean_alloc_ctor(2, 2, 0); -} else { - x_573 = x_562; - lean_ctor_set_tag(x_573, 2); -} -lean_ctor_set(x_573, 0, x_559); -lean_ctor_set(x_573, 1, x_572); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; uint8_t x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; -x_574 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_559); -x_575 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_575, 0, x_559); -lean_ctor_set(x_575, 1, x_568); -lean_ctor_set(x_575, 2, x_574); -x_576 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_577 = l_Lean_Syntax_node5(x_559, x_576, x_567, x_569, x_575, x_571, x_573); -x_578 = lean_array_push(x_27, x_577); -x_579 = 1; -x_580 = lean_box(x_579); -x_581 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_581, 0, x_580); -lean_ctor_set(x_581, 1, x_578); -x_582 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_582, 0, x_304); -lean_ctor_set(x_582, 1, x_581); -if (lean_is_scalar(x_303)) { - x_583 = lean_alloc_ctor(1, 1, 0); -} else { - x_583 = x_303; -} -lean_ctor_set(x_583, 0, x_582); -x_16 = x_583; -x_17 = x_564; -goto block_22; -} -else -{ -lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; uint8_t x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; -x_584 = lean_ctor_get(x_2, 0); -lean_inc(x_584); -x_585 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_559); -x_586 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_586, 0, x_559); -lean_ctor_set(x_586, 1, x_585); -x_587 = l_Array_mkArray2___rarg(x_586, x_584); -x_588 = l_Array_append___rarg(x_570, x_587); -lean_dec(x_587); -lean_inc(x_559); -x_589 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_589, 0, x_559); -lean_ctor_set(x_589, 1, x_568); -lean_ctor_set(x_589, 2, x_588); -x_590 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_591 = l_Lean_Syntax_node5(x_559, x_590, x_567, x_569, x_589, x_571, x_573); -x_592 = lean_array_push(x_27, x_591); -x_593 = 1; -x_594 = lean_box(x_593); -x_595 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_595, 0, x_594); -lean_ctor_set(x_595, 1, x_592); -x_596 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_596, 0, x_304); -lean_ctor_set(x_596, 1, x_595); -if (lean_is_scalar(x_303)) { - x_597 = lean_alloc_ctor(1, 1, 0); -} else { - x_597 = x_303; -} -lean_ctor_set(x_597, 0, x_596); -x_16 = x_597; -x_17 = x_564; -goto block_22; -} -} -} -} -} -block_22: -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; +x_13 = lean_ctor_get(x_3, 0); +x_14 = lean_ctor_get(x_3, 1); +x_15 = lean_ctor_get(x_3, 2); +x_16 = lean_ctor_get(x_3, 3); +x_17 = lean_ctor_get(x_3, 4); +x_18 = lean_ctor_get(x_3, 5); +x_19 = lean_ctor_get(x_3, 7); +x_20 = lean_ctor_get(x_3, 8); +x_21 = lean_ctor_get(x_3, 9); +x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_8, x_19); -x_8 = x_20; -x_9 = x_18; -x_12 = x_17; -goto _start; -} -block_296: -{ -if (x_29 == 0) -{ -lean_object* x_30; uint8_t x_31; -x_30 = l_Lean_Elab_Command_getRef(x_10, x_11, x_12); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_32 = lean_ctor_get(x_30, 0); -x_33 = lean_ctor_get(x_30, 1); -x_34 = 0; -x_35 = l_Lean_SourceInfo_fromRef(x_32, x_34); -lean_dec(x_32); -x_36 = l_Lean_Elab_Command_getCurrMacroScope(x_10, x_11, x_33); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_38 = lean_ctor_get(x_36, 1); -x_39 = lean_ctor_get(x_36, 0); -lean_dec(x_39); -x_40 = l_Lean_Elab_Command_getMainModule___rarg(x_11, x_38); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_42 = lean_ctor_get(x_40, 1); -x_43 = lean_ctor_get(x_40, 0); -lean_dec(x_43); -x_44 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; -lean_inc(x_35); -lean_ctor_set_tag(x_40, 2); -lean_ctor_set(x_40, 1, x_44); -lean_ctor_set(x_40, 0, x_35); -x_45 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_35); -x_46 = l_Lean_Syntax_node1(x_35, x_45, x_15); -x_47 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4; -lean_inc(x_35); -lean_ctor_set_tag(x_36, 2); -lean_ctor_set(x_36, 1, x_47); -lean_ctor_set(x_36, 0, x_35); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_free_object(x_30); -x_48 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_35); -x_49 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_49, 0, x_35); -lean_ctor_set(x_49, 1, x_45); -lean_ctor_set(x_49, 2, x_48); -x_50 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_51 = l_Lean_Syntax_node4(x_35, x_50, x_40, x_46, x_49, x_36); -x_52 = lean_array_push(x_27, x_51); -if (lean_is_scalar(x_28)) { - x_53 = lean_alloc_ctor(0, 2, 0); -} else { - x_53 = x_28; -} -lean_ctor_set(x_53, 0, x_26); -lean_ctor_set(x_53, 1, x_52); -if (lean_is_scalar(x_25)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_25; -} -lean_ctor_set(x_54, 0, x_24); -lean_ctor_set(x_54, 1, x_53); -x_55 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_55, 0, x_54); -x_16 = x_55; -x_17 = x_42; -goto block_22; -} -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_65; lean_object* x_66; lean_object* x_67; -x_56 = lean_ctor_get(x_2, 0); -lean_inc(x_56); -x_57 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_35); -lean_ctor_set_tag(x_30, 2); -lean_ctor_set(x_30, 1, x_57); -lean_ctor_set(x_30, 0, x_35); -x_58 = l_Array_mkArray2___rarg(x_30, x_56); -x_59 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -x_60 = l_Array_append___rarg(x_59, x_58); -lean_dec(x_58); -lean_inc(x_35); -x_61 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_61, 0, x_35); -lean_ctor_set(x_61, 1, x_45); -lean_ctor_set(x_61, 2, x_60); -x_62 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_63 = l_Lean_Syntax_node4(x_35, x_62, x_40, x_46, x_61, x_36); -x_64 = lean_array_push(x_27, x_63); -if (lean_is_scalar(x_28)) { - x_65 = lean_alloc_ctor(0, 2, 0); -} else { - x_65 = x_28; -} -lean_ctor_set(x_65, 0, x_26); -lean_ctor_set(x_65, 1, x_64); -if (lean_is_scalar(x_25)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_25; -} -lean_ctor_set(x_66, 0, x_24); -lean_ctor_set(x_66, 1, x_65); -x_67 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_67, 0, x_66); -x_16 = x_67; -x_17 = x_42; -goto block_22; -} -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_68 = lean_ctor_get(x_40, 1); -lean_inc(x_68); -lean_dec(x_40); -x_69 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; -lean_inc(x_35); -x_70 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_70, 0, x_35); -lean_ctor_set(x_70, 1, x_69); -x_71 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_35); -x_72 = l_Lean_Syntax_node1(x_35, x_71, x_15); -x_73 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4; -lean_inc(x_35); -lean_ctor_set_tag(x_36, 2); -lean_ctor_set(x_36, 1, x_73); -lean_ctor_set(x_36, 0, x_35); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_free_object(x_30); -x_74 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_35); -x_75 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_75, 0, x_35); -lean_ctor_set(x_75, 1, x_71); -lean_ctor_set(x_75, 2, x_74); -x_76 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_77 = l_Lean_Syntax_node4(x_35, x_76, x_70, x_72, x_75, x_36); -x_78 = lean_array_push(x_27, x_77); -if (lean_is_scalar(x_28)) { - x_79 = lean_alloc_ctor(0, 2, 0); -} else { - x_79 = x_28; -} -lean_ctor_set(x_79, 0, x_26); -lean_ctor_set(x_79, 1, x_78); -if (lean_is_scalar(x_25)) { - x_80 = lean_alloc_ctor(0, 2, 0); -} else { - x_80 = x_25; -} -lean_ctor_set(x_80, 0, x_24); -lean_ctor_set(x_80, 1, x_79); -x_81 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_81, 0, x_80); -x_16 = x_81; -x_17 = x_68; -goto block_22; -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_82 = lean_ctor_get(x_2, 0); -lean_inc(x_82); -x_83 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_35); -lean_ctor_set_tag(x_30, 2); -lean_ctor_set(x_30, 1, x_83); -lean_ctor_set(x_30, 0, x_35); -x_84 = l_Array_mkArray2___rarg(x_30, x_82); -x_85 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -x_86 = l_Array_append___rarg(x_85, x_84); -lean_dec(x_84); -lean_inc(x_35); -x_87 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_87, 0, x_35); -lean_ctor_set(x_87, 1, x_71); -lean_ctor_set(x_87, 2, x_86); -x_88 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_89 = l_Lean_Syntax_node4(x_35, x_88, x_70, x_72, x_87, x_36); -x_90 = lean_array_push(x_27, x_89); -if (lean_is_scalar(x_28)) { - x_91 = lean_alloc_ctor(0, 2, 0); -} else { - x_91 = x_28; -} -lean_ctor_set(x_91, 0, x_26); -lean_ctor_set(x_91, 1, x_90); -if (lean_is_scalar(x_25)) { - x_92 = lean_alloc_ctor(0, 2, 0); -} else { - x_92 = x_25; -} -lean_ctor_set(x_92, 0, x_24); -lean_ctor_set(x_92, 1, x_91); -x_93 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_93, 0, x_92); -x_16 = x_93; -x_17 = x_68; -goto block_22; -} -} -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_94 = lean_ctor_get(x_36, 1); -lean_inc(x_94); -lean_dec(x_36); -x_95 = l_Lean_Elab_Command_getMainModule___rarg(x_11, x_94); -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_97 = x_95; -} else { - lean_dec_ref(x_95); - x_97 = lean_box(0); -} -x_98 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; -lean_inc(x_35); -if (lean_is_scalar(x_97)) { - x_99 = lean_alloc_ctor(2, 2, 0); -} else { - x_99 = x_97; - lean_ctor_set_tag(x_99, 2); -} -lean_ctor_set(x_99, 0, x_35); -lean_ctor_set(x_99, 1, x_98); -x_100 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_35); -x_101 = l_Lean_Syntax_node1(x_35, x_100, x_15); -x_102 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4; -lean_inc(x_35); -x_103 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_103, 0, x_35); -lean_ctor_set(x_103, 1, x_102); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -lean_free_object(x_30); -x_104 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_35); -x_105 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_105, 0, x_35); -lean_ctor_set(x_105, 1, x_100); -lean_ctor_set(x_105, 2, x_104); -x_106 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_107 = l_Lean_Syntax_node4(x_35, x_106, x_99, x_101, x_105, x_103); -x_108 = lean_array_push(x_27, x_107); -if (lean_is_scalar(x_28)) { - x_109 = lean_alloc_ctor(0, 2, 0); -} else { - x_109 = x_28; -} -lean_ctor_set(x_109, 0, x_26); -lean_ctor_set(x_109, 1, x_108); -if (lean_is_scalar(x_25)) { - x_110 = lean_alloc_ctor(0, 2, 0); -} else { - x_110 = x_25; -} -lean_ctor_set(x_110, 0, x_24); -lean_ctor_set(x_110, 1, x_109); -x_111 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_111, 0, x_110); -x_16 = x_111; -x_17 = x_96; -goto block_22; -} -else -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_112 = lean_ctor_get(x_2, 0); -lean_inc(x_112); -x_113 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_35); -lean_ctor_set_tag(x_30, 2); -lean_ctor_set(x_30, 1, x_113); -lean_ctor_set(x_30, 0, x_35); -x_114 = l_Array_mkArray2___rarg(x_30, x_112); -x_115 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -x_116 = l_Array_append___rarg(x_115, x_114); -lean_dec(x_114); -lean_inc(x_35); -x_117 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_117, 0, x_35); -lean_ctor_set(x_117, 1, x_100); -lean_ctor_set(x_117, 2, x_116); -x_118 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_119 = l_Lean_Syntax_node4(x_35, x_118, x_99, x_101, x_117, x_103); -x_120 = lean_array_push(x_27, x_119); -if (lean_is_scalar(x_28)) { - x_121 = lean_alloc_ctor(0, 2, 0); -} else { - x_121 = x_28; -} -lean_ctor_set(x_121, 0, x_26); -lean_ctor_set(x_121, 1, x_120); -if (lean_is_scalar(x_25)) { - x_122 = lean_alloc_ctor(0, 2, 0); -} else { - x_122 = x_25; -} -lean_ctor_set(x_122, 0, x_24); -lean_ctor_set(x_122, 1, x_121); -x_123 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_123, 0, x_122); -x_16 = x_123; -x_17 = x_96; -goto block_22; -} -} -} -else -{ -lean_object* x_124; lean_object* x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_124 = lean_ctor_get(x_30, 0); -x_125 = lean_ctor_get(x_30, 1); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_30); -x_126 = 0; -x_127 = l_Lean_SourceInfo_fromRef(x_124, x_126); -lean_dec(x_124); -x_128 = l_Lean_Elab_Command_getCurrMacroScope(x_10, x_11, x_125); -x_129 = lean_ctor_get(x_128, 1); -lean_inc(x_129); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_130 = x_128; -} else { - lean_dec_ref(x_128); - x_130 = lean_box(0); -} -x_131 = l_Lean_Elab_Command_getMainModule___rarg(x_11, x_129); -x_132 = lean_ctor_get(x_131, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_133 = x_131; -} else { - lean_dec_ref(x_131); - x_133 = lean_box(0); -} -x_134 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; -lean_inc(x_127); -if (lean_is_scalar(x_133)) { - x_135 = lean_alloc_ctor(2, 2, 0); -} else { - x_135 = x_133; - lean_ctor_set_tag(x_135, 2); -} -lean_ctor_set(x_135, 0, x_127); -lean_ctor_set(x_135, 1, x_134); -x_136 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_127); -x_137 = l_Lean_Syntax_node1(x_127, x_136, x_15); -x_138 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4; -lean_inc(x_127); -if (lean_is_scalar(x_130)) { - x_139 = lean_alloc_ctor(2, 2, 0); -} else { - x_139 = x_130; - lean_ctor_set_tag(x_139, 2); -} -lean_ctor_set(x_139, 0, x_127); -lean_ctor_set(x_139, 1, x_138); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_140 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_127); -x_141 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_141, 0, x_127); -lean_ctor_set(x_141, 1, x_136); -lean_ctor_set(x_141, 2, x_140); -x_142 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_143 = l_Lean_Syntax_node4(x_127, x_142, x_135, x_137, x_141, x_139); -x_144 = lean_array_push(x_27, x_143); -if (lean_is_scalar(x_28)) { - x_145 = lean_alloc_ctor(0, 2, 0); -} else { - x_145 = x_28; -} -lean_ctor_set(x_145, 0, x_26); -lean_ctor_set(x_145, 1, x_144); -if (lean_is_scalar(x_25)) { - x_146 = lean_alloc_ctor(0, 2, 0); -} else { - x_146 = x_25; -} -lean_ctor_set(x_146, 0, x_24); -lean_ctor_set(x_146, 1, x_145); -x_147 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_147, 0, x_146); -x_16 = x_147; -x_17 = x_132; -goto block_22; -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_148 = lean_ctor_get(x_2, 0); -lean_inc(x_148); -x_149 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_127); -x_150 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_150, 0, x_127); -lean_ctor_set(x_150, 1, x_149); -x_151 = l_Array_mkArray2___rarg(x_150, x_148); -x_152 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -x_153 = l_Array_append___rarg(x_152, x_151); -lean_dec(x_151); -lean_inc(x_127); -x_154 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_154, 0, x_127); -lean_ctor_set(x_154, 1, x_136); -lean_ctor_set(x_154, 2, x_153); -x_155 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_156 = l_Lean_Syntax_node4(x_127, x_155, x_135, x_137, x_154, x_139); -x_157 = lean_array_push(x_27, x_156); -if (lean_is_scalar(x_28)) { - x_158 = lean_alloc_ctor(0, 2, 0); -} else { - x_158 = x_28; -} -lean_ctor_set(x_158, 0, x_26); -lean_ctor_set(x_158, 1, x_157); -if (lean_is_scalar(x_25)) { - x_159 = lean_alloc_ctor(0, 2, 0); -} else { - x_159 = x_25; -} -lean_ctor_set(x_159, 0, x_24); -lean_ctor_set(x_159, 1, x_158); -x_160 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_160, 0, x_159); -x_16 = x_160; -x_17 = x_132; -goto block_22; -} -} -} -else -{ -lean_object* x_161; uint8_t x_162; -x_161 = l_Lean_Elab_Command_getRef(x_10, x_11, x_12); -x_162 = !lean_is_exclusive(x_161); -if (x_162 == 0) -{ -lean_object* x_163; lean_object* x_164; uint8_t x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; -x_163 = lean_ctor_get(x_161, 0); -x_164 = lean_ctor_get(x_161, 1); -x_165 = 0; -x_166 = l_Lean_SourceInfo_fromRef(x_163, x_165); -lean_dec(x_163); -x_167 = l_Lean_Elab_Command_getCurrMacroScope(x_10, x_11, x_164); -x_168 = !lean_is_exclusive(x_167); -if (x_168 == 0) -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; -x_169 = lean_ctor_get(x_167, 1); -x_170 = lean_ctor_get(x_167, 0); -lean_dec(x_170); -x_171 = l_Lean_Elab_Command_getMainModule___rarg(x_11, x_169); -x_172 = !lean_is_exclusive(x_171); -if (x_172 == 0) -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_173 = lean_ctor_get(x_171, 1); -x_174 = lean_ctor_get(x_171, 0); -lean_dec(x_174); -x_175 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6; -lean_inc(x_166); -lean_ctor_set_tag(x_171, 2); -lean_ctor_set(x_171, 1, x_175); -lean_ctor_set(x_171, 0, x_166); -x_176 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_166); -x_177 = l_Lean_Syntax_node1(x_166, x_176, x_15); -x_178 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -lean_inc(x_166); -x_179 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_179, 0, x_166); -lean_ctor_set(x_179, 1, x_176); -lean_ctor_set(x_179, 2, x_178); -x_180 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; -lean_inc(x_166); -lean_ctor_set_tag(x_167, 2); -lean_ctor_set(x_167, 1, x_180); -lean_ctor_set(x_167, 0, x_166); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -lean_free_object(x_161); -x_181 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_166); -x_182 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_182, 0, x_166); -lean_ctor_set(x_182, 1, x_176); -lean_ctor_set(x_182, 2, x_181); -x_183 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_184 = l_Lean_Syntax_node5(x_166, x_183, x_171, x_177, x_182, x_179, x_167); -x_185 = lean_array_push(x_27, x_184); -if (lean_is_scalar(x_28)) { - x_186 = lean_alloc_ctor(0, 2, 0); -} else { - x_186 = x_28; -} -lean_ctor_set(x_186, 0, x_26); -lean_ctor_set(x_186, 1, x_185); -if (lean_is_scalar(x_25)) { - x_187 = lean_alloc_ctor(0, 2, 0); -} else { - x_187 = x_25; -} -lean_ctor_set(x_187, 0, x_24); -lean_ctor_set(x_187, 1, x_186); -x_188 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_188, 0, x_187); -x_16 = x_188; -x_17 = x_173; -goto block_22; -} -else -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_189 = lean_ctor_get(x_2, 0); -lean_inc(x_189); -x_190 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_166); -lean_ctor_set_tag(x_161, 2); -lean_ctor_set(x_161, 1, x_190); -lean_ctor_set(x_161, 0, x_166); -x_191 = l_Array_mkArray2___rarg(x_161, x_189); -x_192 = l_Array_append___rarg(x_178, x_191); -lean_dec(x_191); -lean_inc(x_166); -x_193 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_193, 0, x_166); -lean_ctor_set(x_193, 1, x_176); -lean_ctor_set(x_193, 2, x_192); -x_194 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_195 = l_Lean_Syntax_node5(x_166, x_194, x_171, x_177, x_193, x_179, x_167); -x_196 = lean_array_push(x_27, x_195); -if (lean_is_scalar(x_28)) { - x_197 = lean_alloc_ctor(0, 2, 0); -} else { - x_197 = x_28; -} -lean_ctor_set(x_197, 0, x_26); -lean_ctor_set(x_197, 1, x_196); -if (lean_is_scalar(x_25)) { - x_198 = lean_alloc_ctor(0, 2, 0); -} else { - x_198 = x_25; -} -lean_ctor_set(x_198, 0, x_24); -lean_ctor_set(x_198, 1, x_197); -x_199 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_199, 0, x_198); -x_16 = x_199; -x_17 = x_173; -goto block_22; -} -} -else -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_200 = lean_ctor_get(x_171, 1); -lean_inc(x_200); -lean_dec(x_171); -x_201 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6; -lean_inc(x_166); -x_202 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_202, 0, x_166); -lean_ctor_set(x_202, 1, x_201); -x_203 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_166); -x_204 = l_Lean_Syntax_node1(x_166, x_203, x_15); -x_205 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -lean_inc(x_166); -x_206 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_206, 0, x_166); -lean_ctor_set(x_206, 1, x_203); -lean_ctor_set(x_206, 2, x_205); -x_207 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; -lean_inc(x_166); -lean_ctor_set_tag(x_167, 2); -lean_ctor_set(x_167, 1, x_207); -lean_ctor_set(x_167, 0, x_166); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -lean_free_object(x_161); -x_208 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_166); -x_209 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_209, 0, x_166); -lean_ctor_set(x_209, 1, x_203); -lean_ctor_set(x_209, 2, x_208); -x_210 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_211 = l_Lean_Syntax_node5(x_166, x_210, x_202, x_204, x_209, x_206, x_167); -x_212 = lean_array_push(x_27, x_211); -if (lean_is_scalar(x_28)) { - x_213 = lean_alloc_ctor(0, 2, 0); -} else { - x_213 = x_28; -} -lean_ctor_set(x_213, 0, x_26); -lean_ctor_set(x_213, 1, x_212); -if (lean_is_scalar(x_25)) { - x_214 = lean_alloc_ctor(0, 2, 0); -} else { - x_214 = x_25; -} -lean_ctor_set(x_214, 0, x_24); -lean_ctor_set(x_214, 1, x_213); -x_215 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_215, 0, x_214); -x_16 = x_215; -x_17 = x_200; -goto block_22; -} -else -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_216 = lean_ctor_get(x_2, 0); -lean_inc(x_216); -x_217 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_166); -lean_ctor_set_tag(x_161, 2); -lean_ctor_set(x_161, 1, x_217); -lean_ctor_set(x_161, 0, x_166); -x_218 = l_Array_mkArray2___rarg(x_161, x_216); -x_219 = l_Array_append___rarg(x_205, x_218); -lean_dec(x_218); -lean_inc(x_166); -x_220 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_220, 0, x_166); -lean_ctor_set(x_220, 1, x_203); -lean_ctor_set(x_220, 2, x_219); -x_221 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_222 = l_Lean_Syntax_node5(x_166, x_221, x_202, x_204, x_220, x_206, x_167); -x_223 = lean_array_push(x_27, x_222); -if (lean_is_scalar(x_28)) { - x_224 = lean_alloc_ctor(0, 2, 0); -} else { - x_224 = x_28; -} -lean_ctor_set(x_224, 0, x_26); -lean_ctor_set(x_224, 1, x_223); -if (lean_is_scalar(x_25)) { - x_225 = lean_alloc_ctor(0, 2, 0); -} else { - x_225 = x_25; -} -lean_ctor_set(x_225, 0, x_24); -lean_ctor_set(x_225, 1, x_224); -x_226 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_226, 0, x_225); -x_16 = x_226; -x_17 = x_200; -goto block_22; -} -} -} -else -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; -x_227 = lean_ctor_get(x_167, 1); -lean_inc(x_227); -lean_dec(x_167); -x_228 = l_Lean_Elab_Command_getMainModule___rarg(x_11, x_227); -x_229 = lean_ctor_get(x_228, 1); -lean_inc(x_229); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_230 = x_228; -} else { - lean_dec_ref(x_228); - x_230 = lean_box(0); -} -x_231 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6; -lean_inc(x_166); -if (lean_is_scalar(x_230)) { - x_232 = lean_alloc_ctor(2, 2, 0); -} else { - x_232 = x_230; - lean_ctor_set_tag(x_232, 2); -} -lean_ctor_set(x_232, 0, x_166); -lean_ctor_set(x_232, 1, x_231); -x_233 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_166); -x_234 = l_Lean_Syntax_node1(x_166, x_233, x_15); -x_235 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -lean_inc(x_166); -x_236 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_236, 0, x_166); -lean_ctor_set(x_236, 1, x_233); -lean_ctor_set(x_236, 2, x_235); -x_237 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; -lean_inc(x_166); -x_238 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_238, 0, x_166); -lean_ctor_set(x_238, 1, x_237); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; -lean_free_object(x_161); -x_239 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_166); -x_240 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_240, 0, x_166); -lean_ctor_set(x_240, 1, x_233); -lean_ctor_set(x_240, 2, x_239); -x_241 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_242 = l_Lean_Syntax_node5(x_166, x_241, x_232, x_234, x_240, x_236, x_238); -x_243 = lean_array_push(x_27, x_242); -if (lean_is_scalar(x_28)) { - x_244 = lean_alloc_ctor(0, 2, 0); -} else { - x_244 = x_28; -} -lean_ctor_set(x_244, 0, x_26); -lean_ctor_set(x_244, 1, x_243); -if (lean_is_scalar(x_25)) { - x_245 = lean_alloc_ctor(0, 2, 0); -} else { - x_245 = x_25; -} -lean_ctor_set(x_245, 0, x_24); -lean_ctor_set(x_245, 1, x_244); -x_246 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_246, 0, x_245); -x_16 = x_246; -x_17 = x_229; -goto block_22; -} -else -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; -x_247 = lean_ctor_get(x_2, 0); -lean_inc(x_247); -x_248 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_166); -lean_ctor_set_tag(x_161, 2); -lean_ctor_set(x_161, 1, x_248); -lean_ctor_set(x_161, 0, x_166); -x_249 = l_Array_mkArray2___rarg(x_161, x_247); -x_250 = l_Array_append___rarg(x_235, x_249); -lean_dec(x_249); -lean_inc(x_166); -x_251 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_251, 0, x_166); -lean_ctor_set(x_251, 1, x_233); -lean_ctor_set(x_251, 2, x_250); -x_252 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_253 = l_Lean_Syntax_node5(x_166, x_252, x_232, x_234, x_251, x_236, x_238); -x_254 = lean_array_push(x_27, x_253); -if (lean_is_scalar(x_28)) { - x_255 = lean_alloc_ctor(0, 2, 0); -} else { - x_255 = x_28; -} -lean_ctor_set(x_255, 0, x_26); -lean_ctor_set(x_255, 1, x_254); -if (lean_is_scalar(x_25)) { - x_256 = lean_alloc_ctor(0, 2, 0); -} else { - x_256 = x_25; -} -lean_ctor_set(x_256, 0, x_24); -lean_ctor_set(x_256, 1, x_255); -x_257 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_257, 0, x_256); -x_16 = x_257; -x_17 = x_229; -goto block_22; -} -} -} -else -{ -lean_object* x_258; lean_object* x_259; uint8_t x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_258 = lean_ctor_get(x_161, 0); -x_259 = lean_ctor_get(x_161, 1); -lean_inc(x_259); -lean_inc(x_258); -lean_dec(x_161); -x_260 = 0; -x_261 = l_Lean_SourceInfo_fromRef(x_258, x_260); -lean_dec(x_258); -x_262 = l_Lean_Elab_Command_getCurrMacroScope(x_10, x_11, x_259); -x_263 = lean_ctor_get(x_262, 1); -lean_inc(x_263); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_264 = x_262; -} else { - lean_dec_ref(x_262); - x_264 = lean_box(0); -} -x_265 = l_Lean_Elab_Command_getMainModule___rarg(x_11, x_263); -x_266 = lean_ctor_get(x_265, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_267 = x_265; -} else { - lean_dec_ref(x_265); - x_267 = lean_box(0); -} -x_268 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6; -lean_inc(x_261); -if (lean_is_scalar(x_267)) { - x_269 = lean_alloc_ctor(2, 2, 0); -} else { - x_269 = x_267; - lean_ctor_set_tag(x_269, 2); -} -lean_ctor_set(x_269, 0, x_261); -lean_ctor_set(x_269, 1, x_268); -x_270 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; -lean_inc(x_261); -x_271 = l_Lean_Syntax_node1(x_261, x_270, x_15); -x_272 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; -lean_inc(x_261); -x_273 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_273, 0, x_261); -lean_ctor_set(x_273, 1, x_270); -lean_ctor_set(x_273, 2, x_272); -x_274 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; -lean_inc(x_261); -if (lean_is_scalar(x_264)) { - x_275 = lean_alloc_ctor(2, 2, 0); -} else { - x_275 = x_264; - lean_ctor_set_tag(x_275, 2); -} -lean_ctor_set(x_275, 0, x_261); -lean_ctor_set(x_275, 1, x_274); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; -x_276 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5; -lean_inc(x_261); -x_277 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_277, 0, x_261); -lean_ctor_set(x_277, 1, x_270); -lean_ctor_set(x_277, 2, x_276); -x_278 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_279 = l_Lean_Syntax_node5(x_261, x_278, x_269, x_271, x_277, x_273, x_275); -x_280 = lean_array_push(x_27, x_279); -if (lean_is_scalar(x_28)) { - x_281 = lean_alloc_ctor(0, 2, 0); -} else { - x_281 = x_28; -} -lean_ctor_set(x_281, 0, x_26); -lean_ctor_set(x_281, 1, x_280); -if (lean_is_scalar(x_25)) { - x_282 = lean_alloc_ctor(0, 2, 0); -} else { - x_282 = x_25; -} -lean_ctor_set(x_282, 0, x_24); -lean_ctor_set(x_282, 1, x_281); -x_283 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_283, 0, x_282); -x_16 = x_283; -x_17 = x_266; -goto block_22; -} -else -{ -lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; -x_284 = lean_ctor_get(x_2, 0); -lean_inc(x_284); -x_285 = l_Lean_Elab_nestedExceptionToMessageData___at_Lean_Elab_Command_elabExport___spec__20___closed__1; -lean_inc(x_261); -x_286 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_286, 0, x_261); -lean_ctor_set(x_286, 1, x_285); -x_287 = l_Array_mkArray2___rarg(x_286, x_284); -x_288 = l_Array_append___rarg(x_272, x_287); -lean_dec(x_287); -lean_inc(x_261); -x_289 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_289, 0, x_261); -lean_ctor_set(x_289, 1, x_270); -lean_ctor_set(x_289, 2, x_288); -x_290 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -x_291 = l_Lean_Syntax_node5(x_261, x_290, x_269, x_271, x_289, x_273, x_275); -x_292 = lean_array_push(x_27, x_291); -if (lean_is_scalar(x_28)) { - x_293 = lean_alloc_ctor(0, 2, 0); -} else { - x_293 = x_28; -} -lean_ctor_set(x_293, 0, x_26); -lean_ctor_set(x_293, 1, x_292); -if (lean_is_scalar(x_25)) { - x_294 = lean_alloc_ctor(0, 2, 0); -} else { - x_294 = x_25; -} -lean_ctor_set(x_294, 0, x_24); -lean_ctor_set(x_294, 1, x_293); -x_295 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_295, 0, x_294); -x_16 = x_295; -x_17 = x_266; -goto block_22; -} -} -} -} -} -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("cannot change the binder annotation of the previously declared local instance `", 79, 79); -return x_1; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("`", 1, 1); -return x_1; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -uint8_t x_12; -x_12 = lean_usize_dec_lt(x_7, x_6); -if (x_12 == 0) -{ -lean_object* x_13; -lean_dec(x_9); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_8); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -else -{ -lean_object* x_14; uint8_t x_15; -lean_dec(x_8); -x_14 = lean_array_uget(x_5, x_7); -x_15 = l_Lean_Syntax_isIdent(x_14); -if (x_15 == 0) -{ -size_t x_16; size_t x_17; lean_object* x_18; -lean_dec(x_14); -x_16 = 1; -x_17 = lean_usize_add(x_7, x_16); -x_18 = lean_box(0); -x_7 = x_17; -x_8 = x_18; -goto _start; -} -else -{ -lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_20 = l_Lean_Syntax_getId(x_14); -x_21 = l_Lean_Syntax_getId(x_3); -x_22 = lean_name_eq(x_20, x_21); -lean_dec(x_20); -if (x_22 == 0) -{ -size_t x_23; size_t x_24; lean_object* x_25; -lean_dec(x_21); -lean_dec(x_14); -x_23 = 1; -x_24 = lean_usize_add(x_7, x_23); -x_25 = lean_box(0); -x_7 = x_24; -x_8 = x_25; -goto _start; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_27 = l_Lean_MessageData_ofName(x_21); -x_28 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__2; -x_29 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -x_30 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__4; -x_31 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(x_14, x_31, x_9, x_10, x_11); -lean_dec(x_14); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) -{ -return x_32; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_32, 0); -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_32); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_3); +x_23 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_23, 0, x_13); +lean_ctor_set(x_23, 1, x_14); +lean_ctor_set(x_23, 2, x_15); +lean_ctor_set(x_23, 3, x_16); +lean_ctor_set(x_23, 4, x_17); +lean_ctor_set(x_23, 5, x_18); +lean_ctor_set(x_23, 6, x_9); +lean_ctor_set(x_23, 7, x_19); +lean_ctor_set(x_23, 8, x_20); +lean_ctor_set(x_23, 9, x_21); +lean_ctor_set_uint8(x_23, sizeof(void*)*10, x_22); +x_24 = l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6(x_2, x_23, x_4, x_8); +return x_24; } } } @@ -18052,7 +20509,7 @@ static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("cannot update binder annotation of variables with default values/tactics", 72, 72); +x_1 = lean_mk_string_unchecked("redundant binder annotation update", 34, 34); return x_1; } } @@ -18100,7 +20557,7 @@ else { lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7___closed__2; -x_20 = l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(x_13, x_19, x_8, x_9, x_10); +x_20 = l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5(x_13, x_19, x_8, x_9, x_10); lean_dec(x_13); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) @@ -18124,387 +20581,895 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__1() { _start: { -lean_object* x_10; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_18 = lean_ctor_get(x_6, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_6, 1); -lean_inc(x_19); -if (lean_is_exclusive(x_6)) { - lean_ctor_release(x_6, 0); - lean_ctor_release(x_6, 1); - x_20 = x_6; -} else { - lean_dec_ref(x_6); - x_20 = lean_box(0); +lean_object* x_1; +x_1 = lean_mk_string_unchecked("cannot update binder annotation of variables with default values/tactics", 72, 72); +return x_1; } -x_46 = lean_ctor_get(x_19, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_19, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_19)) { - lean_ctor_release(x_19, 0); - lean_ctor_release(x_19, 1); - x_48 = x_19; -} else { - lean_dec_ref(x_19); - x_48 = lean_box(0); } -if (x_2 == 0) +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__2() { +_start: { -uint8_t x_96; -x_96 = lean_unbox(x_47); -if (x_96 == 0) +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: { -lean_object* x_97; -lean_dec(x_48); -lean_dec(x_47); -lean_dec(x_46); -x_97 = lean_box(0); -x_21 = x_97; -goto block_45; +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_6, x_5); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_8); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_7); +lean_ctor_set(x_12, 1, x_10); +return x_12; } else { -lean_object* x_98; +lean_object* x_13; uint8_t x_14; +lean_dec(x_7); +x_13 = lean_array_uget(x_4, x_6); +x_14 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_containsId(x_2, x_13); +if (x_14 == 0) +{ +size_t x_15; size_t x_16; lean_object* x_17; +lean_dec(x_13); +x_15 = 1; +x_16 = lean_usize_add(x_6, x_15); +x_17 = lean_box(0); +x_6 = x_16; +x_7 = x_17; +goto _start; +} +else +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__2; +x_20 = l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5(x_13, x_19, x_8, x_9, x_10); +lean_dec(x_13); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +return x_20; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_inc(x_22); lean_dec(x_20); -x_98 = lean_box(0); -x_49 = x_98; -goto block_95; +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; } } +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, uint8_t 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; uint8_t x_19; +x_19 = !lean_is_exclusive(x_7); +if (x_19 == 0) +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_7, 1); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; +x_22 = lean_ctor_get(x_7, 0); +x_23 = lean_ctor_get(x_20, 0); +x_24 = lean_ctor_get(x_20, 1); +x_25 = lean_unbox(x_24); +x_26 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_406_(x_2, x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_array_get_size(x_4); +x_28 = lean_unsigned_to_nat(0u); +x_29 = lean_nat_dec_lt(x_28, x_27); +if (x_29 == 0) +{ +lean_object* x_30; +lean_dec(x_27); +lean_free_object(x_20); +lean_dec(x_24); +lean_dec(x_23); +lean_free_object(x_7); +lean_dec(x_22); +lean_dec(x_8); +x_30 = lean_box(0); +x_11 = x_30; +goto block_18; +} else { -uint8_t x_99; -x_99 = lean_unbox(x_47); -if (x_99 == 0) +size_t x_31; size_t x_32; uint8_t x_33; +x_31 = 0; +x_32 = lean_usize_of_nat(x_27); +lean_dec(x_27); +x_33 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(x_22, x_4, x_31, x_32); +if (x_33 == 0) { -lean_object* x_100; -lean_dec(x_20); -x_100 = lean_box(0); -x_49 = x_100; -goto block_95; +lean_object* x_34; +lean_free_object(x_20); +lean_dec(x_24); +lean_dec(x_23); +lean_free_object(x_7); +lean_dec(x_22); +lean_dec(x_8); +x_34 = lean_box(0); +x_11 = x_34; +goto block_18; } else { -lean_object* x_101; -lean_dec(x_48); -lean_dec(x_47); +lean_object* x_35; lean_object* x_36; lean_object* x_37; size_t x_38; uint8_t x_39; lean_object* x_40; +lean_dec(x_1); +x_35 = l_Array_reverse___rarg(x_22); +x_36 = lean_box(0); +x_37 = lean_box(x_5); +lean_ctor_set(x_20, 1, x_6); +lean_ctor_set(x_20, 0, x_37); +lean_ctor_set(x_7, 0, x_4); +x_38 = lean_array_size(x_35); +x_39 = lean_unbox(x_24); +lean_dec(x_24); +x_40 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4(x_3, x_2, x_23, x_39, x_35, x_36, x_35, x_38, x_31, x_7, x_8, x_9, x_10); +lean_dec(x_35); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +x_43 = !lean_is_exclusive(x_40); +if (x_43 == 0) +{ +lean_object* x_44; uint8_t x_45; +x_44 = lean_ctor_get(x_40, 0); +lean_dec(x_44); +x_45 = !lean_is_exclusive(x_41); +if (x_45 == 0) +{ +lean_object* x_46; uint8_t x_47; +x_46 = lean_ctor_get(x_41, 1); lean_dec(x_46); -x_101 = lean_box(0); -x_21 = x_101; -goto block_45; -} -} -block_17: +x_47 = !lean_is_exclusive(x_42); +if (x_47 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_10); -x_11 = lean_array_push(x_5, x_1); -x_12 = lean_box(x_4); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_13); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_9); -return x_16; -} -block_45: -{ -lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_21); -x_22 = lean_box(0); -x_23 = lean_array_size(x_3); -x_24 = 0; -x_25 = lean_box(0); -x_26 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3(x_3, x_18, x_22, x_3, x_23, x_24, x_25, x_7, x_8, x_9); -lean_dec(x_18); -if (lean_obj_tag(x_26) == 0) -{ -uint8_t x_27; -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_28 = lean_ctor_get(x_26, 0); -lean_dec(x_28); -x_29 = lean_array_push(x_5, x_1); -x_30 = lean_box(x_4); -if (lean_is_scalar(x_20)) { - x_31 = lean_alloc_ctor(0, 2, 0); -} else { - x_31 = x_20; -} -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_3); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_26, 0, x_33); -return x_26; +lean_object* x_48; +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_41); +lean_ctor_set(x_40, 0, x_48); +return x_40; } else { -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; -x_34 = lean_ctor_get(x_26, 1); -lean_inc(x_34); -lean_dec(x_26); -x_35 = lean_array_push(x_5, x_1); -x_36 = lean_box(x_4); -if (lean_is_scalar(x_20)) { - x_37 = lean_alloc_ctor(0, 2, 0); -} else { - x_37 = x_20; -} -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_3); -lean_ctor_set(x_38, 1, x_37); -x_39 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_39, 0, x_38); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_34); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_42, 0); +x_50 = lean_ctor_get(x_42, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_42); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +lean_ctor_set(x_41, 1, x_51); +x_52 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_52, 0, x_41); +lean_ctor_set(x_40, 0, x_52); return x_40; } } else { -uint8_t x_41; -lean_dec(x_20); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_41 = !lean_is_exclusive(x_26); -if (x_41 == 0) -{ -return x_26; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_26, 0); -x_43 = lean_ctor_get(x_26, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_26); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -block_95: -{ -lean_object* x_50; lean_object* x_51; uint8_t x_52; -lean_dec(x_49); -x_50 = lean_array_get_size(x_3); -x_51 = lean_unsigned_to_nat(0u); -x_52 = lean_nat_dec_lt(x_51, x_50); -if (x_52 == 0) -{ -lean_object* x_53; -lean_dec(x_50); -lean_dec(x_48); -lean_dec(x_47); -lean_dec(x_46); -lean_dec(x_18); -lean_dec(x_7); -x_53 = lean_box(0); -x_10 = x_53; -goto block_17; -} -else -{ -size_t x_54; size_t x_55; uint8_t x_56; -x_54 = 0; -x_55 = lean_usize_of_nat(x_50); -lean_dec(x_50); -x_56 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4(x_18, x_3, x_54, x_55); -if (x_56 == 0) -{ -lean_object* x_57; -lean_dec(x_48); -lean_dec(x_47); -lean_dec(x_46); -lean_dec(x_18); -lean_dec(x_7); -x_57 = lean_box(0); -x_10 = x_57; -goto block_17; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; size_t x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -lean_dec(x_1); -x_58 = l_Array_reverse___rarg(x_18); -x_59 = lean_box(0); -x_60 = lean_box(x_4); -if (lean_is_scalar(x_48)) { - x_61 = lean_alloc_ctor(0, 2, 0); +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; +x_53 = lean_ctor_get(x_41, 0); +lean_inc(x_53); +lean_dec(x_41); +x_54 = lean_ctor_get(x_42, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_42, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_56 = x_42; } else { - x_61 = x_48; + lean_dec_ref(x_42); + x_56 = lean_box(0); } -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_5); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_3); -lean_ctor_set(x_62, 1, x_61); -x_63 = lean_array_size(x_58); -x_64 = lean_unbox(x_47); -lean_dec(x_47); -x_65 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5(x_2, x_46, x_64, x_58, x_59, x_58, x_63, x_54, x_62, x_7, x_8, x_9); -lean_dec(x_7); -lean_dec(x_58); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -x_68 = !lean_is_exclusive(x_65); -if (x_68 == 0) +if (lean_is_scalar(x_56)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_56; +} +lean_ctor_set(x_57, 0, x_54); +lean_ctor_set(x_57, 1, x_55); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_53); +lean_ctor_set(x_58, 1, x_57); +x_59 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_40, 0, x_59); +return x_40; +} +} +else { -lean_object* x_69; uint8_t x_70; -x_69 = lean_ctor_get(x_65, 0); -lean_dec(x_69); -x_70 = !lean_is_exclusive(x_66); +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_60 = lean_ctor_get(x_40, 1); +lean_inc(x_60); +lean_dec(x_40); +x_61 = lean_ctor_get(x_41, 0); +lean_inc(x_61); +if (lean_is_exclusive(x_41)) { + lean_ctor_release(x_41, 0); + lean_ctor_release(x_41, 1); + x_62 = x_41; +} else { + lean_dec_ref(x_41); + x_62 = lean_box(0); +} +x_63 = lean_ctor_get(x_42, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_42, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_65 = x_42; +} else { + lean_dec_ref(x_42); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(0, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +if (lean_is_scalar(x_62)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_62; +} +lean_ctor_set(x_67, 0, x_61); +lean_ctor_set(x_67, 1, x_66); +x_68 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_68, 0, x_67); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_60); +return x_69; +} +} +else +{ +uint8_t x_70; +x_70 = !lean_is_exclusive(x_40); if (x_70 == 0) { -lean_object* x_71; uint8_t x_72; -x_71 = lean_ctor_get(x_66, 1); -lean_dec(x_71); -x_72 = !lean_is_exclusive(x_67); -if (x_72 == 0) -{ -lean_object* x_73; -x_73 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_73, 0, x_66); -lean_ctor_set(x_65, 0, x_73); -return x_65; +return x_40; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_74 = lean_ctor_get(x_67, 0); -x_75 = lean_ctor_get(x_67, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_67); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -lean_ctor_set(x_66, 1, x_76); -x_77 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_77, 0, x_66); -lean_ctor_set(x_65, 0, x_77); -return x_65; +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_40, 0); +x_72 = lean_ctor_get(x_40, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_40); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} +} } } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_78 = lean_ctor_get(x_66, 0); -lean_inc(x_78); -lean_dec(x_66); -x_79 = lean_ctor_get(x_67, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_67, 1); -lean_inc(x_80); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_81 = x_67; -} else { - lean_dec_ref(x_67); - x_81 = lean_box(0); +lean_object* x_74; size_t x_75; size_t x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_24); +lean_dec(x_23); +x_74 = lean_box(0); +x_75 = lean_array_size(x_4); +x_76 = 0; +x_77 = lean_box(0); +x_78 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7(x_4, x_22, x_74, x_4, x_75, x_76, x_77, x_8, x_9, x_10); +lean_dec(x_22); +if (lean_obj_tag(x_78) == 0) +{ +uint8_t x_79; +x_79 = !lean_is_exclusive(x_78); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_80 = lean_ctor_get(x_78, 0); +lean_dec(x_80); +x_81 = lean_array_push(x_6, x_1); +x_82 = lean_box(x_5); +lean_ctor_set(x_20, 1, x_81); +lean_ctor_set(x_20, 0, x_82); +lean_ctor_set(x_7, 0, x_4); +x_83 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_83, 0, x_7); +lean_ctor_set(x_78, 0, x_83); +return x_78; } -if (lean_is_scalar(x_81)) { - x_82 = lean_alloc_ctor(0, 2, 0); -} else { - x_82 = x_81; -} -lean_ctor_set(x_82, 0, x_79); -lean_ctor_set(x_82, 1, x_80); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_78); -lean_ctor_set(x_83, 1, x_82); -x_84 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_65, 0, x_84); -return x_65; +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_84 = lean_ctor_get(x_78, 1); +lean_inc(x_84); +lean_dec(x_78); +x_85 = lean_array_push(x_6, x_1); +x_86 = lean_box(x_5); +lean_ctor_set(x_20, 1, x_85); +lean_ctor_set(x_20, 0, x_86); +lean_ctor_set(x_7, 0, x_4); +x_87 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_87, 0, x_7); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_84); +return x_88; } } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_85 = lean_ctor_get(x_65, 1); -lean_inc(x_85); -lean_dec(x_65); -x_86 = lean_ctor_get(x_66, 0); -lean_inc(x_86); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_87 = x_66; -} else { - lean_dec_ref(x_66); - x_87 = lean_box(0); +uint8_t x_89; +lean_free_object(x_20); +lean_free_object(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_89 = !lean_is_exclusive(x_78); +if (x_89 == 0) +{ +return x_78; } -x_88 = lean_ctor_get(x_67, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_67, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_90 = x_67; -} else { - lean_dec_ref(x_67); - x_90 = lean_box(0); -} -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(0, 2, 0); -} else { - x_91 = x_90; -} -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_89); -if (lean_is_scalar(x_87)) { - x_92 = lean_alloc_ctor(0, 2, 0); -} else { - x_92 = x_87; -} -lean_ctor_set(x_92, 0, x_86); +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_78, 0); +x_91 = lean_ctor_get(x_78, 1); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_78); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); lean_ctor_set(x_92, 1, x_91); -x_93 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_93, 0, x_92); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_85); -return x_94; +return x_92; } } } } +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; uint8_t x_97; +x_93 = lean_ctor_get(x_7, 0); +x_94 = lean_ctor_get(x_20, 0); +x_95 = lean_ctor_get(x_20, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_20); +x_96 = lean_unbox(x_95); +x_97 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_406_(x_2, x_96); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; uint8_t x_100; +x_98 = lean_array_get_size(x_4); +x_99 = lean_unsigned_to_nat(0u); +x_100 = lean_nat_dec_lt(x_99, x_98); +if (x_100 == 0) +{ +lean_object* x_101; +lean_dec(x_98); +lean_dec(x_95); +lean_dec(x_94); +lean_free_object(x_7); +lean_dec(x_93); +lean_dec(x_8); +x_101 = lean_box(0); +x_11 = x_101; +goto block_18; +} +else +{ +size_t x_102; size_t x_103; uint8_t x_104; +x_102 = 0; +x_103 = lean_usize_of_nat(x_98); +lean_dec(x_98); +x_104 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(x_93, x_4, x_102, x_103); +if (x_104 == 0) +{ +lean_object* x_105; +lean_dec(x_95); +lean_dec(x_94); +lean_free_object(x_7); +lean_dec(x_93); +lean_dec(x_8); +x_105 = lean_box(0); +x_11 = x_105; +goto block_18; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; size_t x_110; uint8_t x_111; lean_object* x_112; +lean_dec(x_1); +x_106 = l_Array_reverse___rarg(x_93); +x_107 = lean_box(0); +x_108 = lean_box(x_5); +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_6); +lean_ctor_set(x_7, 1, x_109); +lean_ctor_set(x_7, 0, x_4); +x_110 = lean_array_size(x_106); +x_111 = lean_unbox(x_95); +lean_dec(x_95); +x_112 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4(x_3, x_2, x_94, x_111, x_106, x_107, x_106, x_110, x_102, x_7, x_8, x_9, x_10); +lean_dec(x_106); +if (lean_obj_tag(x_112) == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_113, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_112, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_116 = x_112; +} else { + lean_dec_ref(x_112); + x_116 = lean_box(0); +} +x_117 = lean_ctor_get(x_113, 0); +lean_inc(x_117); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_118 = x_113; +} else { + lean_dec_ref(x_113); + x_118 = lean_box(0); +} +x_119 = lean_ctor_get(x_114, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_114, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_121 = x_114; +} else { + lean_dec_ref(x_114); + x_121 = lean_box(0); +} +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(0, 2, 0); +} else { + x_122 = x_121; +} +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_120); +if (lean_is_scalar(x_118)) { + x_123 = lean_alloc_ctor(0, 2, 0); +} else { + x_123 = x_118; +} +lean_ctor_set(x_123, 0, x_117); +lean_ctor_set(x_123, 1, x_122); +x_124 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_124, 0, x_123); +if (lean_is_scalar(x_116)) { + x_125 = lean_alloc_ctor(0, 2, 0); +} else { + x_125 = x_116; +} +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_115); +return x_125; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_126 = lean_ctor_get(x_112, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_112, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_128 = x_112; +} else { + lean_dec_ref(x_112); + x_128 = lean_box(0); +} +if (lean_is_scalar(x_128)) { + x_129 = lean_alloc_ctor(1, 2, 0); +} else { + x_129 = x_128; +} +lean_ctor_set(x_129, 0, x_126); +lean_ctor_set(x_129, 1, x_127); +return x_129; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +} +} +else +{ +lean_object* x_130; size_t x_131; size_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_95); +lean_dec(x_94); +x_130 = lean_box(0); +x_131 = lean_array_size(x_4); +x_132 = 0; +x_133 = lean_box(0); +x_134 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7(x_4, x_93, x_130, x_4, x_131, x_132, x_133, x_8, x_9, x_10); +lean_dec(x_93); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_135 = lean_ctor_get(x_134, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_136 = x_134; +} else { + lean_dec_ref(x_134); + x_136 = lean_box(0); +} +x_137 = lean_array_push(x_6, x_1); +x_138 = lean_box(x_5); +x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_137); +lean_ctor_set(x_7, 1, x_139); +lean_ctor_set(x_7, 0, x_4); +x_140 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_140, 0, x_7); +if (lean_is_scalar(x_136)) { + x_141 = lean_alloc_ctor(0, 2, 0); +} else { + x_141 = x_136; +} +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_135); +return x_141; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_free_object(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_142 = lean_ctor_get(x_134, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_134, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_144 = x_134; +} else { + lean_dec_ref(x_134); + x_144 = lean_box(0); +} +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(1, 2, 0); +} else { + x_145 = x_144; +} +lean_ctor_set(x_145, 0, x_142); +lean_ctor_set(x_145, 1, x_143); +return x_145; +} +} +} +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; uint8_t x_152; +x_146 = lean_ctor_get(x_7, 1); +x_147 = lean_ctor_get(x_7, 0); +lean_inc(x_146); +lean_inc(x_147); +lean_dec(x_7); +x_148 = lean_ctor_get(x_146, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_146, 1); +lean_inc(x_149); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_150 = x_146; +} else { + lean_dec_ref(x_146); + x_150 = lean_box(0); +} +x_151 = lean_unbox(x_149); +x_152 = l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_406_(x_2, x_151); +if (x_152 == 0) +{ +lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_153 = lean_array_get_size(x_4); +x_154 = lean_unsigned_to_nat(0u); +x_155 = lean_nat_dec_lt(x_154, x_153); +if (x_155 == 0) +{ +lean_object* x_156; +lean_dec(x_153); +lean_dec(x_150); +lean_dec(x_149); +lean_dec(x_148); +lean_dec(x_147); +lean_dec(x_8); +x_156 = lean_box(0); +x_11 = x_156; +goto block_18; +} +else +{ +size_t x_157; size_t x_158; uint8_t x_159; +x_157 = 0; +x_158 = lean_usize_of_nat(x_153); +lean_dec(x_153); +x_159 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(x_147, x_4, x_157, x_158); +if (x_159 == 0) +{ +lean_object* x_160; +lean_dec(x_150); +lean_dec(x_149); +lean_dec(x_148); +lean_dec(x_147); +lean_dec(x_8); +x_160 = lean_box(0); +x_11 = x_160; +goto block_18; +} +else +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; size_t x_166; uint8_t x_167; lean_object* x_168; +lean_dec(x_1); +x_161 = l_Array_reverse___rarg(x_147); +x_162 = lean_box(0); +x_163 = lean_box(x_5); +if (lean_is_scalar(x_150)) { + x_164 = lean_alloc_ctor(0, 2, 0); +} else { + x_164 = x_150; +} +lean_ctor_set(x_164, 0, x_163); +lean_ctor_set(x_164, 1, x_6); +x_165 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_165, 0, x_4); +lean_ctor_set(x_165, 1, x_164); +x_166 = lean_array_size(x_161); +x_167 = lean_unbox(x_149); +lean_dec(x_149); +x_168 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4(x_3, x_2, x_148, x_167, x_161, x_162, x_161, x_166, x_157, x_165, x_8, x_9, x_10); +lean_dec(x_161); +if (lean_obj_tag(x_168) == 0) +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_169 = lean_ctor_get(x_168, 0); +lean_inc(x_169); +x_170 = lean_ctor_get(x_169, 1); +lean_inc(x_170); +x_171 = lean_ctor_get(x_168, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_172 = x_168; +} else { + lean_dec_ref(x_168); + x_172 = lean_box(0); +} +x_173 = lean_ctor_get(x_169, 0); +lean_inc(x_173); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + lean_ctor_release(x_169, 1); + x_174 = x_169; +} else { + lean_dec_ref(x_169); + x_174 = lean_box(0); +} +x_175 = lean_ctor_get(x_170, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_170, 1); +lean_inc(x_176); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_177 = x_170; +} else { + lean_dec_ref(x_170); + x_177 = lean_box(0); +} +if (lean_is_scalar(x_177)) { + x_178 = lean_alloc_ctor(0, 2, 0); +} else { + x_178 = x_177; +} +lean_ctor_set(x_178, 0, x_175); +lean_ctor_set(x_178, 1, x_176); +if (lean_is_scalar(x_174)) { + x_179 = lean_alloc_ctor(0, 2, 0); +} else { + x_179 = x_174; +} +lean_ctor_set(x_179, 0, x_173); +lean_ctor_set(x_179, 1, x_178); +x_180 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_180, 0, x_179); +if (lean_is_scalar(x_172)) { + x_181 = lean_alloc_ctor(0, 2, 0); +} else { + x_181 = x_172; +} +lean_ctor_set(x_181, 0, x_180); +lean_ctor_set(x_181, 1, x_171); +return x_181; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_182 = lean_ctor_get(x_168, 0); +lean_inc(x_182); +x_183 = lean_ctor_get(x_168, 1); +lean_inc(x_183); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_184 = x_168; +} else { + lean_dec_ref(x_168); + x_184 = lean_box(0); +} +if (lean_is_scalar(x_184)) { + x_185 = lean_alloc_ctor(1, 2, 0); +} else { + x_185 = x_184; +} +lean_ctor_set(x_185, 0, x_182); +lean_ctor_set(x_185, 1, x_183); +return x_185; +} +} +} +} +else +{ +lean_object* x_186; size_t x_187; size_t x_188; lean_object* x_189; lean_object* x_190; +lean_dec(x_149); +lean_dec(x_148); +x_186 = lean_box(0); +x_187 = lean_array_size(x_4); +x_188 = 0; +x_189 = lean_box(0); +x_190 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7(x_4, x_147, x_186, x_4, x_187, x_188, x_189, x_8, x_9, x_10); +lean_dec(x_147); +if (lean_obj_tag(x_190) == 0) +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_191 = lean_ctor_get(x_190, 1); +lean_inc(x_191); +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + lean_ctor_release(x_190, 1); + x_192 = x_190; +} else { + lean_dec_ref(x_190); + x_192 = lean_box(0); +} +x_193 = lean_array_push(x_6, x_1); +x_194 = lean_box(x_5); +if (lean_is_scalar(x_150)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_150; +} +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_193); +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_4); +lean_ctor_set(x_196, 1, x_195); +x_197 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_197, 0, x_196); +if (lean_is_scalar(x_192)) { + x_198 = lean_alloc_ctor(0, 2, 0); +} else { + x_198 = x_192; +} +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_191); +return x_198; +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec(x_150); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_1); +x_199 = lean_ctor_get(x_190, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_190, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + lean_ctor_release(x_190, 1); + x_201 = x_190; +} else { + lean_dec_ref(x_190); + x_201 = lean_box(0); +} +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(1, 2, 0); +} else { + x_202 = x_201; +} +lean_ctor_set(x_202, 0, x_199); +lean_ctor_set(x_202, 1, x_200); +return x_202; +} +} +} +block_18: +{ +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_dec(x_11); +x_12 = lean_array_push(x_6, x_1); +x_13 = lean_box(x_5); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_4); +lean_ctor_set(x_15, 1, x_14); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_15); +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; +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_11 = l_Lean_Syntax_getArgs(x_1); -x_12 = 0; +x_12 = 2; x_13 = lean_box(x_12); x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_7); @@ -18516,11 +21481,28 @@ x_16 = lean_apply_7(x_2, x_3, x_4, x_5, x_15, x_8, x_9, x_10); return x_16; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = l_Lean_Syntax_getArgs(x_1); +x_12 = 1; +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_11); +lean_ctor_set(x_15, 1, x_14); +x_16 = lean_apply_7(x_2, x_3, x_4, x_5, x_15, x_8, x_9, x_10); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__4(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: { uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = 1; +x_11 = 0; x_12 = lean_box(x_11); x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_1); @@ -18532,7 +21514,7 @@ x_15 = lean_apply_7(x_3, x_4, x_5, x_6, x_14, x_8, x_9, x_10); return x_15; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -18545,7 +21527,7 @@ if (lean_obj_tag(x_14) == 0) { lean_object* x_16; lean_object* x_17; x_16 = lean_box(0); -x_17 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__3(x_8, x_15, x_3, x_4, x_5, x_6, x_16, x_9, x_10, x_11); +x_17 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__4(x_8, x_15, x_3, x_4, x_5, x_6, x_16, x_9, x_10, x_11); return x_17; } else @@ -18557,14 +21539,14 @@ x_19 = lean_array_size(x_4); x_20 = 0; x_21 = lean_box(0); lean_inc(x_9); -x_22 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7(x_4, x_15, x_18, x_4, x_19, x_20, x_21, x_9, x_10, x_11); +x_22 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8(x_4, x_15, x_18, x_4, x_19, x_20, x_21, x_9, x_10, x_11); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; x_23 = lean_ctor_get(x_22, 1); lean_inc(x_23); lean_dec(x_22); -x_24 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__3(x_8, x_15, x_3, x_4, x_5, x_6, x_21, x_9, x_10, x_23); +x_24 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__4(x_8, x_15, x_3, x_4, x_5, x_6, x_21, x_9, x_10, x_23); return x_24; } else @@ -18600,1333 +21582,1105 @@ return x_28; } } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__1() { +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("instBinder", 10, 10); -return x_1; +uint8_t x_12; +x_12 = lean_usize_dec_lt(x_7, x_6); +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_1); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_8); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; uint8_t x_33; +x_14 = lean_array_uget(x_5, x_7); +x_33 = !lean_is_exclusive(x_8); +if (x_33 == 0) +{ +lean_object* x_34; uint8_t x_35; +x_34 = lean_ctor_get(x_8, 1); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_36 = lean_ctor_get(x_8, 0); +x_37 = lean_ctor_get(x_34, 0); +x_38 = lean_ctor_get(x_34, 1); +x_39 = lean_box(x_2); +lean_inc(x_1); +lean_inc(x_14); +x_40 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__1___boxed), 10, 3); +lean_closure_set(x_40, 0, x_14); +lean_closure_set(x_40, 1, x_39); +lean_closure_set(x_40, 2, x_1); +x_41 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +lean_inc(x_14); +x_42 = l_Lean_Syntax_isOfKind(x_14, x_41); +if (x_42 == 0) +{ +lean_object* x_43; uint8_t x_44; +x_43 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +lean_inc(x_14); +x_44 = l_Lean_Syntax_isOfKind(x_14, x_43); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_46; +x_45 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +lean_inc(x_14); +x_46 = l_Lean_Syntax_isOfKind(x_14, x_45); +if (x_46 == 0) +{ +lean_object* x_47; uint8_t x_48; +lean_dec(x_40); +x_47 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +lean_inc(x_14); +x_48 = l_Lean_Syntax_isOfKind(x_14, x_47); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_array_push(x_38, x_14); +lean_ctor_set(x_34, 1, x_49); +x_50 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_50, 0, x_8); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_11); +x_15 = x_51; +goto block_32; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_52 = lean_unsigned_to_nat(1u); +x_53 = l_Lean_Syntax_getArg(x_14, x_52); +x_54 = lean_unsigned_to_nat(2u); +lean_inc(x_53); +x_55 = l_Lean_Syntax_matchesNull(x_53, x_54); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +lean_dec(x_53); +x_56 = lean_array_push(x_38, x_14); +lean_ctor_set(x_34, 1, x_56); +x_57 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_57, 0, x_8); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_11); +x_15 = x_58; +goto block_32; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; +lean_free_object(x_34); +lean_free_object(x_8); +x_59 = lean_unsigned_to_nat(0u); +x_60 = l_Lean_Syntax_getArg(x_53, x_59); +lean_dec(x_53); +x_61 = l_Lean_Syntax_getArg(x_14, x_54); +x_62 = lean_box(0); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_62); +x_64 = lean_array_mk(x_63); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_61); +x_66 = 3; +x_67 = lean_box(x_66); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_67); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_64); +lean_ctor_set(x_69, 1, x_68); +x_70 = lean_unbox(x_37); +lean_dec(x_37); +lean_inc(x_9); +x_71 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__1(x_14, x_2, x_1, x_36, x_70, x_38, x_69, x_9, x_10, x_11); +x_15 = x_71; +goto block_32; } } -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__2() { +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; +x_72 = lean_unsigned_to_nat(1u); +x_73 = l_Lean_Syntax_getArg(x_14, x_72); +x_74 = lean_unsigned_to_nat(2u); +x_75 = l_Lean_Syntax_getArg(x_14, x_74); +x_76 = l_Lean_Syntax_isNone(x_75); +if (x_76 == 0) +{ +uint8_t x_77; +lean_inc(x_75); +x_77 = l_Lean_Syntax_matchesNull(x_75, x_74); +if (x_77 == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +lean_dec(x_75); +lean_dec(x_73); +lean_dec(x_40); +x_78 = lean_array_push(x_38, x_14); +lean_ctor_set(x_34, 1, x_78); +x_79 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_79, 0, x_8); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_11); +x_15 = x_80; +goto block_32; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_free_object(x_34); +lean_free_object(x_8); +lean_dec(x_14); +x_81 = l_Lean_Syntax_getArg(x_75, x_72); +lean_dec(x_75); +x_82 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_82, 0, x_81); +x_83 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_84 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__2(x_73, x_40, x_36, x_37, x_38, x_83, x_82, x_9, x_10, x_11); +lean_dec(x_73); +x_15 = x_84; +goto block_32; +} +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +lean_dec(x_75); +lean_free_object(x_34); +lean_free_object(x_8); +lean_dec(x_14); +x_85 = lean_box(0); +x_86 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_87 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__2(x_73, x_40, x_36, x_37, x_38, x_86, x_85, x_9, x_10, x_11); +lean_dec(x_73); +x_15 = x_87; +goto block_32; +} +} +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; +x_88 = lean_unsigned_to_nat(1u); +x_89 = l_Lean_Syntax_getArg(x_14, x_88); +x_90 = lean_unsigned_to_nat(2u); +x_91 = l_Lean_Syntax_getArg(x_14, x_90); +x_92 = l_Lean_Syntax_isNone(x_91); +if (x_92 == 0) +{ +uint8_t x_93; +lean_inc(x_91); +x_93 = l_Lean_Syntax_matchesNull(x_91, x_90); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_91); +lean_dec(x_89); +lean_dec(x_40); +x_94 = lean_array_push(x_38, x_14); +lean_ctor_set(x_34, 1, x_94); +x_95 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_95, 0, x_8); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_11); +x_15 = x_96; +goto block_32; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +lean_free_object(x_34); +lean_free_object(x_8); +lean_dec(x_14); +x_97 = l_Lean_Syntax_getArg(x_91, x_88); +lean_dec(x_91); +x_98 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_98, 0, x_97); +x_99 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_100 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__3(x_89, x_40, x_36, x_37, x_38, x_99, x_98, x_9, x_10, x_11); +lean_dec(x_89); +x_15 = x_100; +goto block_32; +} +} +else +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_91); +lean_free_object(x_34); +lean_free_object(x_8); +lean_dec(x_14); +x_101 = lean_box(0); +x_102 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_103 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__3(x_89, x_40, x_36, x_37, x_38, x_102, x_101, x_9, x_10, x_11); +lean_dec(x_89); +x_15 = x_103; +goto block_32; +} +} +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; +x_104 = lean_unsigned_to_nat(1u); +x_105 = l_Lean_Syntax_getArg(x_14, x_104); +x_106 = lean_unsigned_to_nat(2u); +x_107 = l_Lean_Syntax_getArg(x_14, x_106); +x_108 = l_Lean_Syntax_isNone(x_107); +if (x_108 == 0) +{ +uint8_t x_109; +lean_inc(x_107); +x_109 = l_Lean_Syntax_matchesNull(x_107, x_106); +if (x_109 == 0) +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_107); +lean_dec(x_105); +lean_dec(x_40); +x_110 = lean_array_push(x_38, x_14); +lean_ctor_set(x_34, 1, x_110); +x_111 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_111, 0, x_8); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_11); +x_15 = x_112; +goto block_32; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_free_object(x_34); +lean_free_object(x_8); +x_113 = l_Lean_Syntax_getArg(x_107, x_104); +lean_dec(x_107); +x_114 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_114, 0, x_113); +x_115 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_116 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__5(x_14, x_105, x_40, x_36, x_37, x_38, x_115, x_114, x_9, x_10, x_11); +lean_dec(x_105); +lean_dec(x_14); +x_15 = x_116; +goto block_32; +} +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_107); +lean_free_object(x_34); +lean_free_object(x_8); +x_117 = lean_box(0); +x_118 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_119 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__5(x_14, x_105, x_40, x_36, x_37, x_38, x_118, x_117, x_9, x_10, x_11); +lean_dec(x_105); +lean_dec(x_14); +x_15 = x_119; +goto block_32; +} +} +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; +x_120 = lean_ctor_get(x_8, 0); +x_121 = lean_ctor_get(x_34, 0); +x_122 = lean_ctor_get(x_34, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_34); +x_123 = lean_box(x_2); +lean_inc(x_1); +lean_inc(x_14); +x_124 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__1___boxed), 10, 3); +lean_closure_set(x_124, 0, x_14); +lean_closure_set(x_124, 1, x_123); +lean_closure_set(x_124, 2, x_1); +x_125 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +lean_inc(x_14); +x_126 = l_Lean_Syntax_isOfKind(x_14, x_125); +if (x_126 == 0) +{ +lean_object* x_127; uint8_t x_128; +x_127 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +lean_inc(x_14); +x_128 = l_Lean_Syntax_isOfKind(x_14, x_127); +if (x_128 == 0) +{ +lean_object* x_129; uint8_t x_130; +x_129 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +lean_inc(x_14); +x_130 = l_Lean_Syntax_isOfKind(x_14, x_129); +if (x_130 == 0) +{ +lean_object* x_131; uint8_t x_132; +lean_dec(x_124); +x_131 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +lean_inc(x_14); +x_132 = l_Lean_Syntax_isOfKind(x_14, x_131); +if (x_132 == 0) +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_133 = lean_array_push(x_122, x_14); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_121); +lean_ctor_set(x_134, 1, x_133); +lean_ctor_set(x_8, 1, x_134); +x_135 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_135, 0, x_8); +x_136 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_11); +x_15 = x_136; +goto block_32; +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_137 = lean_unsigned_to_nat(1u); +x_138 = l_Lean_Syntax_getArg(x_14, x_137); +x_139 = lean_unsigned_to_nat(2u); +lean_inc(x_138); +x_140 = l_Lean_Syntax_matchesNull(x_138, x_139); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_138); +x_141 = lean_array_push(x_122, x_14); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_121); +lean_ctor_set(x_142, 1, x_141); +lean_ctor_set(x_8, 1, x_142); +x_143 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_143, 0, x_8); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_11); +x_15 = x_144; +goto block_32; +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; uint8_t x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; lean_object* x_157; +lean_free_object(x_8); +x_145 = lean_unsigned_to_nat(0u); +x_146 = l_Lean_Syntax_getArg(x_138, x_145); +lean_dec(x_138); +x_147 = l_Lean_Syntax_getArg(x_14, x_139); +x_148 = lean_box(0); +x_149 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_149, 0, x_146); +lean_ctor_set(x_149, 1, x_148); +x_150 = lean_array_mk(x_149); +x_151 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_151, 0, x_147); +x_152 = 3; +x_153 = lean_box(x_152); +x_154 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_154, 0, x_151); +lean_ctor_set(x_154, 1, x_153); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_150); +lean_ctor_set(x_155, 1, x_154); +x_156 = lean_unbox(x_121); +lean_dec(x_121); +lean_inc(x_9); +x_157 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__1(x_14, x_2, x_1, x_120, x_156, x_122, x_155, x_9, x_10, x_11); +x_15 = x_157; +goto block_32; +} +} +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; +x_158 = lean_unsigned_to_nat(1u); +x_159 = l_Lean_Syntax_getArg(x_14, x_158); +x_160 = lean_unsigned_to_nat(2u); +x_161 = l_Lean_Syntax_getArg(x_14, x_160); +x_162 = l_Lean_Syntax_isNone(x_161); +if (x_162 == 0) +{ +uint8_t x_163; +lean_inc(x_161); +x_163 = l_Lean_Syntax_matchesNull(x_161, x_160); +if (x_163 == 0) +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +lean_dec(x_161); +lean_dec(x_159); +lean_dec(x_124); +x_164 = lean_array_push(x_122, x_14); +x_165 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_165, 0, x_121); +lean_ctor_set(x_165, 1, x_164); +lean_ctor_set(x_8, 1, x_165); +x_166 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_166, 0, x_8); +x_167 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_11); +x_15 = x_167; +goto block_32; +} +else +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_free_object(x_8); +lean_dec(x_14); +x_168 = l_Lean_Syntax_getArg(x_161, x_158); +lean_dec(x_161); +x_169 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_169, 0, x_168); +x_170 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_171 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__2(x_159, x_124, x_120, x_121, x_122, x_170, x_169, x_9, x_10, x_11); +lean_dec(x_159); +x_15 = x_171; +goto block_32; +} +} +else +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; +lean_dec(x_161); +lean_free_object(x_8); +lean_dec(x_14); +x_172 = lean_box(0); +x_173 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_174 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__2(x_159, x_124, x_120, x_121, x_122, x_173, x_172, x_9, x_10, x_11); +lean_dec(x_159); +x_15 = x_174; +goto block_32; +} +} +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_175 = lean_unsigned_to_nat(1u); +x_176 = l_Lean_Syntax_getArg(x_14, x_175); +x_177 = lean_unsigned_to_nat(2u); +x_178 = l_Lean_Syntax_getArg(x_14, x_177); +x_179 = l_Lean_Syntax_isNone(x_178); +if (x_179 == 0) +{ +uint8_t x_180; +lean_inc(x_178); +x_180 = l_Lean_Syntax_matchesNull(x_178, x_177); +if (x_180 == 0) +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +lean_dec(x_178); +lean_dec(x_176); +lean_dec(x_124); +x_181 = lean_array_push(x_122, x_14); +x_182 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_182, 0, x_121); +lean_ctor_set(x_182, 1, x_181); +lean_ctor_set(x_8, 1, x_182); +x_183 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_183, 0, x_8); +x_184 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_11); +x_15 = x_184; +goto block_32; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +lean_free_object(x_8); +lean_dec(x_14); +x_185 = l_Lean_Syntax_getArg(x_178, x_175); +lean_dec(x_178); +x_186 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_186, 0, x_185); +x_187 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_188 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__3(x_176, x_124, x_120, x_121, x_122, x_187, x_186, x_9, x_10, x_11); +lean_dec(x_176); +x_15 = x_188; +goto block_32; +} +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; +lean_dec(x_178); +lean_free_object(x_8); +lean_dec(x_14); +x_189 = lean_box(0); +x_190 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_191 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__3(x_176, x_124, x_120, x_121, x_122, x_190, x_189, x_9, x_10, x_11); +lean_dec(x_176); +x_15 = x_191; +goto block_32; +} +} +} +else +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; uint8_t x_196; +x_192 = lean_unsigned_to_nat(1u); +x_193 = l_Lean_Syntax_getArg(x_14, x_192); +x_194 = lean_unsigned_to_nat(2u); +x_195 = l_Lean_Syntax_getArg(x_14, x_194); +x_196 = l_Lean_Syntax_isNone(x_195); +if (x_196 == 0) +{ +uint8_t x_197; +lean_inc(x_195); +x_197 = l_Lean_Syntax_matchesNull(x_195, x_194); +if (x_197 == 0) +{ +lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +lean_dec(x_195); +lean_dec(x_193); +lean_dec(x_124); +x_198 = lean_array_push(x_122, x_14); +x_199 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_199, 0, x_121); +lean_ctor_set(x_199, 1, x_198); +lean_ctor_set(x_8, 1, x_199); +x_200 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_200, 0, x_8); +x_201 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_11); +x_15 = x_201; +goto block_32; +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +lean_free_object(x_8); +x_202 = l_Lean_Syntax_getArg(x_195, x_192); +lean_dec(x_195); +x_203 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_203, 0, x_202); +x_204 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_205 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__5(x_14, x_193, x_124, x_120, x_121, x_122, x_204, x_203, x_9, x_10, x_11); +lean_dec(x_193); +lean_dec(x_14); +x_15 = x_205; +goto block_32; +} +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; +lean_dec(x_195); +lean_free_object(x_8); +x_206 = lean_box(0); +x_207 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_208 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__5(x_14, x_193, x_124, x_120, x_121, x_122, x_207, x_206, x_9, x_10, x_11); +lean_dec(x_193); +lean_dec(x_14); +x_15 = x_208; +goto block_32; +} +} +} +} +else +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; uint8_t x_217; +x_209 = lean_ctor_get(x_8, 1); +x_210 = lean_ctor_get(x_8, 0); +lean_inc(x_209); +lean_inc(x_210); +lean_dec(x_8); +x_211 = lean_ctor_get(x_209, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_209, 1); +lean_inc(x_212); +if (lean_is_exclusive(x_209)) { + lean_ctor_release(x_209, 0); + lean_ctor_release(x_209, 1); + x_213 = x_209; +} else { + lean_dec_ref(x_209); + x_213 = lean_box(0); +} +x_214 = lean_box(x_2); +lean_inc(x_1); +lean_inc(x_14); +x_215 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__1___boxed), 10, 3); +lean_closure_set(x_215, 0, x_14); +lean_closure_set(x_215, 1, x_214); +lean_closure_set(x_215, 2, x_1); +x_216 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +lean_inc(x_14); +x_217 = l_Lean_Syntax_isOfKind(x_14, x_216); +if (x_217 == 0) +{ +lean_object* x_218; uint8_t x_219; +x_218 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +lean_inc(x_14); +x_219 = l_Lean_Syntax_isOfKind(x_14, x_218); +if (x_219 == 0) +{ +lean_object* x_220; uint8_t x_221; +x_220 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +lean_inc(x_14); +x_221 = l_Lean_Syntax_isOfKind(x_14, x_220); +if (x_221 == 0) +{ +lean_object* x_222; uint8_t x_223; +lean_dec(x_215); +x_222 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; +lean_inc(x_14); +x_223 = l_Lean_Syntax_isOfKind(x_14, x_222); +if (x_223 == 0) +{ +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; +x_224 = lean_array_push(x_212, x_14); +if (lean_is_scalar(x_213)) { + x_225 = lean_alloc_ctor(0, 2, 0); +} else { + x_225 = x_213; +} +lean_ctor_set(x_225, 0, x_211); +lean_ctor_set(x_225, 1, x_224); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_210); +lean_ctor_set(x_226, 1, x_225); +x_227 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_227, 0, x_226); +x_228 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_11); +x_15 = x_228; +goto block_32; +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; +x_229 = lean_unsigned_to_nat(1u); +x_230 = l_Lean_Syntax_getArg(x_14, x_229); +x_231 = lean_unsigned_to_nat(2u); +lean_inc(x_230); +x_232 = l_Lean_Syntax_matchesNull(x_230, x_231); +if (x_232 == 0) +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; +lean_dec(x_230); +x_233 = lean_array_push(x_212, x_14); +if (lean_is_scalar(x_213)) { + x_234 = lean_alloc_ctor(0, 2, 0); +} else { + x_234 = x_213; +} +lean_ctor_set(x_234, 0, x_211); +lean_ctor_set(x_234, 1, x_233); +x_235 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_235, 0, x_210); +lean_ctor_set(x_235, 1, x_234); +x_236 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_236, 0, x_235); +x_237 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_11); +x_15 = x_237; +goto block_32; +} +else +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; uint8_t x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; uint8_t x_249; lean_object* x_250; +lean_dec(x_213); +x_238 = lean_unsigned_to_nat(0u); +x_239 = l_Lean_Syntax_getArg(x_230, x_238); +lean_dec(x_230); +x_240 = l_Lean_Syntax_getArg(x_14, x_231); +x_241 = lean_box(0); +x_242 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_242, 0, x_239); +lean_ctor_set(x_242, 1, x_241); +x_243 = lean_array_mk(x_242); +x_244 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_244, 0, x_240); +x_245 = 3; +x_246 = lean_box(x_245); +x_247 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_247, 0, x_244); +lean_ctor_set(x_247, 1, x_246); +x_248 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_248, 0, x_243); +lean_ctor_set(x_248, 1, x_247); +x_249 = lean_unbox(x_211); +lean_dec(x_211); +lean_inc(x_9); +x_250 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__1(x_14, x_2, x_1, x_210, x_249, x_212, x_248, x_9, x_10, x_11); +x_15 = x_250; +goto block_32; +} +} +} +else +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; +x_251 = lean_unsigned_to_nat(1u); +x_252 = l_Lean_Syntax_getArg(x_14, x_251); +x_253 = lean_unsigned_to_nat(2u); +x_254 = l_Lean_Syntax_getArg(x_14, x_253); +x_255 = l_Lean_Syntax_isNone(x_254); +if (x_255 == 0) +{ +uint8_t x_256; +lean_inc(x_254); +x_256 = l_Lean_Syntax_matchesNull(x_254, x_253); +if (x_256 == 0) +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +lean_dec(x_254); +lean_dec(x_252); +lean_dec(x_215); +x_257 = lean_array_push(x_212, x_14); +if (lean_is_scalar(x_213)) { + x_258 = lean_alloc_ctor(0, 2, 0); +} else { + x_258 = x_213; +} +lean_ctor_set(x_258, 0, x_211); +lean_ctor_set(x_258, 1, x_257); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_210); +lean_ctor_set(x_259, 1, x_258); +x_260 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_260, 0, x_259); +x_261 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_11); +x_15 = x_261; +goto block_32; +} +else +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_213); +lean_dec(x_14); +x_262 = l_Lean_Syntax_getArg(x_254, x_251); +lean_dec(x_254); +x_263 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_263, 0, x_262); +x_264 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_265 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__2(x_252, x_215, x_210, x_211, x_212, x_264, x_263, x_9, x_10, x_11); +lean_dec(x_252); +x_15 = x_265; +goto block_32; +} +} +else +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; +lean_dec(x_254); +lean_dec(x_213); +lean_dec(x_14); +x_266 = lean_box(0); +x_267 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_268 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__2(x_252, x_215, x_210, x_211, x_212, x_267, x_266, x_9, x_10, x_11); +lean_dec(x_252); +x_15 = x_268; +goto block_32; +} +} +} +else +{ +lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; uint8_t x_273; +x_269 = lean_unsigned_to_nat(1u); +x_270 = l_Lean_Syntax_getArg(x_14, x_269); +x_271 = lean_unsigned_to_nat(2u); +x_272 = l_Lean_Syntax_getArg(x_14, x_271); +x_273 = l_Lean_Syntax_isNone(x_272); +if (x_273 == 0) +{ +uint8_t x_274; +lean_inc(x_272); +x_274 = l_Lean_Syntax_matchesNull(x_272, x_271); +if (x_274 == 0) +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; +lean_dec(x_272); +lean_dec(x_270); +lean_dec(x_215); +x_275 = lean_array_push(x_212, x_14); +if (lean_is_scalar(x_213)) { + x_276 = lean_alloc_ctor(0, 2, 0); +} else { + x_276 = x_213; +} +lean_ctor_set(x_276, 0, x_211); +lean_ctor_set(x_276, 1, x_275); +x_277 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_277, 0, x_210); +lean_ctor_set(x_277, 1, x_276); +x_278 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_278, 0, x_277); +x_279 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_279, 0, x_278); +lean_ctor_set(x_279, 1, x_11); +x_15 = x_279; +goto block_32; +} +else +{ +lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; +lean_dec(x_213); +lean_dec(x_14); +x_280 = l_Lean_Syntax_getArg(x_272, x_269); +lean_dec(x_272); +x_281 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_281, 0, x_280); +x_282 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_283 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__3(x_270, x_215, x_210, x_211, x_212, x_282, x_281, x_9, x_10, x_11); +lean_dec(x_270); +x_15 = x_283; +goto block_32; +} +} +else +{ +lean_object* x_284; lean_object* x_285; lean_object* x_286; +lean_dec(x_272); +lean_dec(x_213); +lean_dec(x_14); +x_284 = lean_box(0); +x_285 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_286 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__3(x_270, x_215, x_210, x_211, x_212, x_285, x_284, x_9, x_10, x_11); +lean_dec(x_270); +x_15 = x_286; +goto block_32; +} +} +} +else +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; uint8_t x_291; +x_287 = lean_unsigned_to_nat(1u); +x_288 = l_Lean_Syntax_getArg(x_14, x_287); +x_289 = lean_unsigned_to_nat(2u); +x_290 = l_Lean_Syntax_getArg(x_14, x_289); +x_291 = l_Lean_Syntax_isNone(x_290); +if (x_291 == 0) +{ +uint8_t x_292; +lean_inc(x_290); +x_292 = l_Lean_Syntax_matchesNull(x_290, x_289); +if (x_292 == 0) +{ +lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +lean_dec(x_290); +lean_dec(x_288); +lean_dec(x_215); +x_293 = lean_array_push(x_212, x_14); +if (lean_is_scalar(x_213)) { + x_294 = lean_alloc_ctor(0, 2, 0); +} else { + x_294 = x_213; +} +lean_ctor_set(x_294, 0, x_211); +lean_ctor_set(x_294, 1, x_293); +x_295 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_295, 0, x_210); +lean_ctor_set(x_295, 1, x_294); +x_296 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_296, 0, x_295); +x_297 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_297, 0, x_296); +lean_ctor_set(x_297, 1, x_11); +x_15 = x_297; +goto block_32; +} +else +{ +lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +lean_dec(x_213); +x_298 = l_Lean_Syntax_getArg(x_290, x_287); +lean_dec(x_290); +x_299 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_299, 0, x_298); +x_300 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_301 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__5(x_14, x_288, x_215, x_210, x_211, x_212, x_300, x_299, x_9, x_10, x_11); +lean_dec(x_288); +lean_dec(x_14); +x_15 = x_301; +goto block_32; +} +} +else +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; +lean_dec(x_290); +lean_dec(x_213); +x_302 = lean_box(0); +x_303 = lean_box(0); +lean_inc(x_10); +lean_inc(x_9); +x_304 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__5(x_14, x_288, x_215, x_210, x_211, x_212, x_303, x_302, x_9, x_10, x_11); +lean_dec(x_288); +lean_dec(x_14); +x_15 = x_304; +goto block_32; +} +} +} +block_32: +{ +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_1); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_15, 0); +lean_dec(x_18); +x_19 = lean_ctor_get(x_16, 0); +lean_inc(x_19); +lean_dec(x_16); +lean_ctor_set(x_15, 0, x_19); +return x_15; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_15, 1); +lean_inc(x_20); +lean_dec(x_15); +x_21 = lean_ctor_get(x_16, 0); +lean_inc(x_21); +lean_dec(x_16); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; +x_23 = lean_ctor_get(x_15, 1); +lean_inc(x_23); +lean_dec(x_15); +x_24 = lean_ctor_get(x_16, 0); +lean_inc(x_24); +lean_dec(x_16); +x_25 = 1; +x_26 = lean_usize_add(x_7, x_25); +x_7 = x_26; +x_8 = x_24; +x_11 = x_23; +goto _start; +} +} +else +{ +uint8_t x_28; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_1); +x_28 = !lean_is_exclusive(x_15); +if (x_28 == 0) +{ +return x_15; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_15, 0); +x_30 = lean_ctor_get(x_15, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_15); +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; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__10___rarg(lean_object* x_1) { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l___regBuiltin_Lean_Elab_Command_elabModuleDoc__1___closed__1; -x_2 = l___regBuiltin_Lean_Elab_Command_elabModuleDoc__1___closed__2; -x_3 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__1; -x_4 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__1; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabSection___closed__4; +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__2; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__10(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_11; -x_11 = lean_usize_dec_lt(x_6, x_5); -if (x_11 == 0) -{ -lean_object* x_12; -lean_dec(x_9); -lean_dec(x_8); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_7); -lean_ctor_set(x_12, 1, x_10); -return x_12; +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__10___rarg), 1, 0); +return x_3; } -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_23; -x_13 = lean_array_uget(x_4, x_6); -x_23 = !lean_is_exclusive(x_7); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -x_24 = lean_ctor_get(x_7, 1); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_26 = lean_ctor_get(x_7, 0); -x_27 = lean_ctor_get(x_24, 0); -x_28 = lean_ctor_get(x_24, 1); -x_29 = lean_box(x_1); -lean_inc(x_13); -x_30 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__1___boxed), 9, 2); -lean_closure_set(x_30, 0, x_13); -lean_closure_set(x_30, 1, x_29); -x_31 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -lean_inc(x_13); -x_32 = l_Lean_Syntax_isOfKind(x_13, x_31); -if (x_32 == 0) -{ -lean_object* x_33; uint8_t x_34; -x_33 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -lean_inc(x_13); -x_34 = l_Lean_Syntax_isOfKind(x_13, x_33); -if (x_34 == 0) -{ -lean_object* x_35; uint8_t x_36; -lean_dec(x_30); -x_35 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__2; -lean_inc(x_13); -x_36 = l_Lean_Syntax_isOfKind(x_13, x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_array_push(x_28, x_13); -lean_ctor_set(x_24, 1, x_37); -x_38 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_38, 0, x_7); -x_14 = x_38; -x_15 = x_10; -goto block_22; } -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_39 = lean_unsigned_to_nat(1u); -x_40 = l_Lean_Syntax_getArg(x_13, x_39); -x_41 = lean_unsigned_to_nat(2u); -lean_inc(x_40); -x_42 = l_Lean_Syntax_matchesNull(x_40, x_41); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; -lean_dec(x_40); -x_43 = lean_array_push(x_28, x_13); -lean_ctor_set(x_24, 1, x_43); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_7); -x_14 = x_44; -x_15 = x_10; -goto block_22; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; size_t x_48; size_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_45 = lean_unsigned_to_nat(0u); -x_46 = l_Lean_Syntax_getArg(x_40, x_45); -lean_dec(x_40); -x_47 = lean_box(0); -x_48 = lean_array_size(x_26); -x_49 = 0; -x_50 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__3; -x_51 = lean_box(0); -lean_inc(x_8); -x_52 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6(x_26, x_50, x_46, x_47, x_26, x_48, x_49, x_51, x_8, x_9, x_10); -lean_dec(x_46); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec(x_52); -x_54 = lean_array_push(x_28, x_13); -lean_ctor_set(x_24, 1, x_54); -x_55 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_55, 0, x_7); -x_14 = x_55; -x_15 = x_53; -goto block_22; -} -else -{ -uint8_t x_56; -lean_free_object(x_24); -lean_dec(x_28); -lean_dec(x_27); -lean_free_object(x_7); -lean_dec(x_26); -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_8); -x_56 = !lean_is_exclusive(x_52); -if (x_56 == 0) -{ -return x_52; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_52, 0); -x_58 = lean_ctor_get(x_52, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_52); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} -} -} -} -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_60 = lean_unsigned_to_nat(1u); -x_61 = l_Lean_Syntax_getArg(x_13, x_60); -x_62 = lean_unsigned_to_nat(2u); -x_63 = l_Lean_Syntax_getArg(x_13, x_62); -x_64 = l_Lean_Syntax_isNone(x_63); -if (x_64 == 0) -{ -uint8_t x_65; -lean_inc(x_63); -x_65 = l_Lean_Syntax_matchesNull(x_63, x_62); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; -lean_dec(x_63); -lean_dec(x_61); -lean_dec(x_30); -x_66 = lean_array_push(x_28, x_13); -lean_ctor_set(x_24, 1, x_66); -x_67 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_67, 0, x_7); -x_14 = x_67; -x_15 = x_10; -goto block_22; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -lean_free_object(x_24); -lean_free_object(x_7); -lean_dec(x_13); -x_68 = l_Lean_Syntax_getArg(x_63, x_60); -lean_dec(x_63); -x_69 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_69, 0, x_68); -x_70 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -x_71 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__2(x_61, x_30, x_26, x_27, x_28, x_70, x_69, x_8, x_9, x_10); -lean_dec(x_61); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec(x_71); -x_14 = x_72; -x_15 = x_73; -goto block_22; -} -else -{ -uint8_t x_74; -lean_dec(x_9); -lean_dec(x_8); -x_74 = !lean_is_exclusive(x_71); -if (x_74 == 0) -{ -return x_71; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_71, 0); -x_76 = lean_ctor_get(x_71, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_71); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; -} -} -} -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_63); -lean_free_object(x_24); -lean_free_object(x_7); -lean_dec(x_13); -x_78 = lean_box(0); -x_79 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -x_80 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__2(x_61, x_30, x_26, x_27, x_28, x_79, x_78, x_8, x_9, x_10); -lean_dec(x_61); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_81; lean_object* x_82; -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -x_14 = x_81; -x_15 = x_82; -goto block_22; -} -else -{ -uint8_t x_83; -lean_dec(x_9); -lean_dec(x_8); -x_83 = !lean_is_exclusive(x_80); -if (x_83 == 0) -{ -return x_80; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_80, 0); -x_85 = lean_ctor_get(x_80, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_80); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; -} -} -} -} -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_87 = lean_unsigned_to_nat(1u); -x_88 = l_Lean_Syntax_getArg(x_13, x_87); -x_89 = lean_unsigned_to_nat(2u); -x_90 = l_Lean_Syntax_getArg(x_13, x_89); -x_91 = l_Lean_Syntax_isNone(x_90); -if (x_91 == 0) -{ -uint8_t x_92; -lean_inc(x_90); -x_92 = l_Lean_Syntax_matchesNull(x_90, x_89); -if (x_92 == 0) -{ -lean_object* x_93; lean_object* x_94; -lean_dec(x_90); -lean_dec(x_88); -lean_dec(x_30); -x_93 = lean_array_push(x_28, x_13); -lean_ctor_set(x_24, 1, x_93); -x_94 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_94, 0, x_7); -x_14 = x_94; -x_15 = x_10; -goto block_22; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -lean_free_object(x_24); -lean_free_object(x_7); -x_95 = l_Lean_Syntax_getArg(x_90, x_87); -lean_dec(x_90); -x_96 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_96, 0, x_95); -x_97 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -x_98 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__4(x_13, x_88, x_30, x_26, x_27, x_28, x_97, x_96, x_8, x_9, x_10); -lean_dec(x_88); -lean_dec(x_13); -if (lean_obj_tag(x_98) == 0) -{ -lean_object* x_99; lean_object* x_100; -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_14 = x_99; -x_15 = x_100; -goto block_22; -} -else -{ -uint8_t x_101; -lean_dec(x_9); -lean_dec(x_8); -x_101 = !lean_is_exclusive(x_98); -if (x_101 == 0) -{ -return x_98; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_98, 0); -x_103 = lean_ctor_get(x_98, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_98); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -return x_104; -} -} -} -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; -lean_dec(x_90); -lean_free_object(x_24); -lean_free_object(x_7); -x_105 = lean_box(0); -x_106 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -x_107 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__4(x_13, x_88, x_30, x_26, x_27, x_28, x_106, x_105, x_8, x_9, x_10); -lean_dec(x_88); -lean_dec(x_13); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_14 = x_108; -x_15 = x_109; -goto block_22; -} -else -{ -uint8_t x_110; -lean_dec(x_9); -lean_dec(x_8); -x_110 = !lean_is_exclusive(x_107); -if (x_110 == 0) -{ -return x_107; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_107, 0); -x_112 = lean_ctor_get(x_107, 1); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_107); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; -} -} -} -} -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; -x_114 = lean_ctor_get(x_7, 0); -x_115 = lean_ctor_get(x_24, 0); -x_116 = lean_ctor_get(x_24, 1); -lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_24); -x_117 = lean_box(x_1); -lean_inc(x_13); -x_118 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__1___boxed), 9, 2); -lean_closure_set(x_118, 0, x_13); -lean_closure_set(x_118, 1, x_117); -x_119 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -lean_inc(x_13); -x_120 = l_Lean_Syntax_isOfKind(x_13, x_119); -if (x_120 == 0) -{ -lean_object* x_121; uint8_t x_122; -x_121 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -lean_inc(x_13); -x_122 = l_Lean_Syntax_isOfKind(x_13, x_121); -if (x_122 == 0) -{ -lean_object* x_123; uint8_t x_124; -lean_dec(x_118); -x_123 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__2; -lean_inc(x_13); -x_124 = l_Lean_Syntax_isOfKind(x_13, x_123); -if (x_124 == 0) -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_array_push(x_116, x_13); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_115); -lean_ctor_set(x_126, 1, x_125); -lean_ctor_set(x_7, 1, x_126); -x_127 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_127, 0, x_7); -x_14 = x_127; -x_15 = x_10; -goto block_22; -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; -x_128 = lean_unsigned_to_nat(1u); -x_129 = l_Lean_Syntax_getArg(x_13, x_128); -x_130 = lean_unsigned_to_nat(2u); -lean_inc(x_129); -x_131 = l_Lean_Syntax_matchesNull(x_129, x_130); -if (x_131 == 0) -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; -lean_dec(x_129); -x_132 = lean_array_push(x_116, x_13); -x_133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_133, 0, x_115); -lean_ctor_set(x_133, 1, x_132); -lean_ctor_set(x_7, 1, x_133); -x_134 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_134, 0, x_7); -x_14 = x_134; -x_15 = x_10; -goto block_22; -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; size_t x_138; size_t x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_135 = lean_unsigned_to_nat(0u); -x_136 = l_Lean_Syntax_getArg(x_129, x_135); -lean_dec(x_129); -x_137 = lean_box(0); -x_138 = lean_array_size(x_114); -x_139 = 0; -x_140 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__3; -x_141 = lean_box(0); -lean_inc(x_8); -x_142 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6(x_114, x_140, x_136, x_137, x_114, x_138, x_139, x_141, x_8, x_9, x_10); -lean_dec(x_136); -if (lean_obj_tag(x_142) == 0) -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_143 = lean_ctor_get(x_142, 1); -lean_inc(x_143); -lean_dec(x_142); -x_144 = lean_array_push(x_116, x_13); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_115); -lean_ctor_set(x_145, 1, x_144); -lean_ctor_set(x_7, 1, x_145); -x_146 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_146, 0, x_7); -x_14 = x_146; -x_15 = x_143; -goto block_22; -} -else -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_116); -lean_dec(x_115); -lean_free_object(x_7); -lean_dec(x_114); -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_8); -x_147 = lean_ctor_get(x_142, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_142, 1); -lean_inc(x_148); -if (lean_is_exclusive(x_142)) { - lean_ctor_release(x_142, 0); - lean_ctor_release(x_142, 1); - x_149 = x_142; -} else { - lean_dec_ref(x_142); - x_149 = lean_box(0); -} -if (lean_is_scalar(x_149)) { - x_150 = lean_alloc_ctor(1, 2, 0); -} else { - x_150 = x_149; -} -lean_ctor_set(x_150, 0, x_147); -lean_ctor_set(x_150, 1, x_148); -return x_150; -} -} -} -} -else -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; -x_151 = lean_unsigned_to_nat(1u); -x_152 = l_Lean_Syntax_getArg(x_13, x_151); -x_153 = lean_unsigned_to_nat(2u); -x_154 = l_Lean_Syntax_getArg(x_13, x_153); -x_155 = l_Lean_Syntax_isNone(x_154); -if (x_155 == 0) -{ -uint8_t x_156; -lean_inc(x_154); -x_156 = l_Lean_Syntax_matchesNull(x_154, x_153); -if (x_156 == 0) -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; -lean_dec(x_154); -lean_dec(x_152); -lean_dec(x_118); -x_157 = lean_array_push(x_116, x_13); -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_115); -lean_ctor_set(x_158, 1, x_157); -lean_ctor_set(x_7, 1, x_158); -x_159 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_159, 0, x_7); -x_14 = x_159; -x_15 = x_10; -goto block_22; -} -else -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_free_object(x_7); -lean_dec(x_13); -x_160 = l_Lean_Syntax_getArg(x_154, x_151); -lean_dec(x_154); -x_161 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_161, 0, x_160); -x_162 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -x_163 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__2(x_152, x_118, x_114, x_115, x_116, x_162, x_161, x_8, x_9, x_10); -lean_dec(x_152); -if (lean_obj_tag(x_163) == 0) -{ -lean_object* x_164; lean_object* x_165; -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -lean_dec(x_163); -x_14 = x_164; -x_15 = x_165; -goto block_22; -} -else -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; -lean_dec(x_9); -lean_dec(x_8); -x_166 = lean_ctor_get(x_163, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_163, 1); -lean_inc(x_167); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_168 = x_163; -} else { - lean_dec_ref(x_163); - x_168 = lean_box(0); -} -if (lean_is_scalar(x_168)) { - x_169 = lean_alloc_ctor(1, 2, 0); -} else { - x_169 = x_168; -} -lean_ctor_set(x_169, 0, x_166); -lean_ctor_set(x_169, 1, x_167); -return x_169; -} -} -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; -lean_dec(x_154); -lean_free_object(x_7); -lean_dec(x_13); -x_170 = lean_box(0); -x_171 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -x_172 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__2(x_152, x_118, x_114, x_115, x_116, x_171, x_170, x_8, x_9, x_10); -lean_dec(x_152); -if (lean_obj_tag(x_172) == 0) -{ -lean_object* x_173; lean_object* x_174; -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_172, 1); -lean_inc(x_174); -lean_dec(x_172); -x_14 = x_173; -x_15 = x_174; -goto block_22; -} -else -{ -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -lean_dec(x_9); -lean_dec(x_8); -x_175 = lean_ctor_get(x_172, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_172, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_172)) { - lean_ctor_release(x_172, 0); - lean_ctor_release(x_172, 1); - x_177 = x_172; -} else { - lean_dec_ref(x_172); - x_177 = lean_box(0); -} -if (lean_is_scalar(x_177)) { - x_178 = lean_alloc_ctor(1, 2, 0); -} else { - x_178 = x_177; -} -lean_ctor_set(x_178, 0, x_175); -lean_ctor_set(x_178, 1, x_176); -return x_178; -} -} -} -} -else -{ -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; uint8_t x_183; -x_179 = lean_unsigned_to_nat(1u); -x_180 = l_Lean_Syntax_getArg(x_13, x_179); -x_181 = lean_unsigned_to_nat(2u); -x_182 = l_Lean_Syntax_getArg(x_13, x_181); -x_183 = l_Lean_Syntax_isNone(x_182); -if (x_183 == 0) -{ -uint8_t x_184; -lean_inc(x_182); -x_184 = l_Lean_Syntax_matchesNull(x_182, x_181); -if (x_184 == 0) -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; -lean_dec(x_182); -lean_dec(x_180); -lean_dec(x_118); -x_185 = lean_array_push(x_116, x_13); -x_186 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_186, 0, x_115); -lean_ctor_set(x_186, 1, x_185); -lean_ctor_set(x_7, 1, x_186); -x_187 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_187, 0, x_7); -x_14 = x_187; -x_15 = x_10; -goto block_22; -} -else -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -lean_free_object(x_7); -x_188 = l_Lean_Syntax_getArg(x_182, x_179); -lean_dec(x_182); -x_189 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_189, 0, x_188); -x_190 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -x_191 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__4(x_13, x_180, x_118, x_114, x_115, x_116, x_190, x_189, x_8, x_9, x_10); -lean_dec(x_180); -lean_dec(x_13); -if (lean_obj_tag(x_191) == 0) -{ -lean_object* x_192; lean_object* x_193; -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_14 = x_192; -x_15 = x_193; -goto block_22; -} -else -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -lean_dec(x_9); -lean_dec(x_8); -x_194 = lean_ctor_get(x_191, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_191, 1); -lean_inc(x_195); -if (lean_is_exclusive(x_191)) { - lean_ctor_release(x_191, 0); - lean_ctor_release(x_191, 1); - x_196 = x_191; -} else { - lean_dec_ref(x_191); - x_196 = lean_box(0); -} -if (lean_is_scalar(x_196)) { - x_197 = lean_alloc_ctor(1, 2, 0); -} else { - x_197 = x_196; -} -lean_ctor_set(x_197, 0, x_194); -lean_ctor_set(x_197, 1, x_195); -return x_197; -} -} -} -else -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; -lean_dec(x_182); -lean_free_object(x_7); -x_198 = lean_box(0); -x_199 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -x_200 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__4(x_13, x_180, x_118, x_114, x_115, x_116, x_199, x_198, x_8, x_9, x_10); -lean_dec(x_180); -lean_dec(x_13); -if (lean_obj_tag(x_200) == 0) -{ -lean_object* x_201; lean_object* x_202; -x_201 = lean_ctor_get(x_200, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_200, 1); -lean_inc(x_202); -lean_dec(x_200); -x_14 = x_201; -x_15 = x_202; -goto block_22; -} -else -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; -lean_dec(x_9); -lean_dec(x_8); -x_203 = lean_ctor_get(x_200, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_200, 1); -lean_inc(x_204); -if (lean_is_exclusive(x_200)) { - lean_ctor_release(x_200, 0); - lean_ctor_release(x_200, 1); - x_205 = x_200; -} else { - lean_dec_ref(x_200); - x_205 = lean_box(0); -} -if (lean_is_scalar(x_205)) { - x_206 = lean_alloc_ctor(1, 2, 0); -} else { - x_206 = x_205; -} -lean_ctor_set(x_206, 0, x_203); -lean_ctor_set(x_206, 1, x_204); -return x_206; -} -} -} -} -} -else -{ -lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; uint8_t x_215; -x_207 = lean_ctor_get(x_7, 1); -x_208 = lean_ctor_get(x_7, 0); -lean_inc(x_207); -lean_inc(x_208); -lean_dec(x_7); -x_209 = lean_ctor_get(x_207, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_207, 1); -lean_inc(x_210); -if (lean_is_exclusive(x_207)) { - lean_ctor_release(x_207, 0); - lean_ctor_release(x_207, 1); - x_211 = x_207; -} else { - lean_dec_ref(x_207); - x_211 = lean_box(0); -} -x_212 = lean_box(x_1); -lean_inc(x_13); -x_213 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__1___boxed), 9, 2); -lean_closure_set(x_213, 0, x_13); -lean_closure_set(x_213, 1, x_212); -x_214 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -lean_inc(x_13); -x_215 = l_Lean_Syntax_isOfKind(x_13, x_214); -if (x_215 == 0) -{ -lean_object* x_216; uint8_t x_217; -x_216 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -lean_inc(x_13); -x_217 = l_Lean_Syntax_isOfKind(x_13, x_216); -if (x_217 == 0) -{ -lean_object* x_218; uint8_t x_219; -lean_dec(x_213); -x_218 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__2; -lean_inc(x_13); -x_219 = l_Lean_Syntax_isOfKind(x_13, x_218); -if (x_219 == 0) -{ -lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -x_220 = lean_array_push(x_210, x_13); -if (lean_is_scalar(x_211)) { - x_221 = lean_alloc_ctor(0, 2, 0); -} else { - x_221 = x_211; -} -lean_ctor_set(x_221, 0, x_209); -lean_ctor_set(x_221, 1, x_220); -x_222 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_222, 0, x_208); -lean_ctor_set(x_222, 1, x_221); -x_223 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_223, 0, x_222); -x_14 = x_223; -x_15 = x_10; -goto block_22; -} -else -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; uint8_t x_227; -x_224 = lean_unsigned_to_nat(1u); -x_225 = l_Lean_Syntax_getArg(x_13, x_224); -x_226 = lean_unsigned_to_nat(2u); -lean_inc(x_225); -x_227 = l_Lean_Syntax_matchesNull(x_225, x_226); -if (x_227 == 0) -{ -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; -lean_dec(x_225); -x_228 = lean_array_push(x_210, x_13); -if (lean_is_scalar(x_211)) { - x_229 = lean_alloc_ctor(0, 2, 0); -} else { - x_229 = x_211; -} -lean_ctor_set(x_229, 0, x_209); -lean_ctor_set(x_229, 1, x_228); -x_230 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_230, 0, x_208); -lean_ctor_set(x_230, 1, x_229); -x_231 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_231, 0, x_230); -x_14 = x_231; -x_15 = x_10; -goto block_22; -} -else -{ -lean_object* x_232; lean_object* x_233; lean_object* x_234; size_t x_235; size_t x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; -x_232 = lean_unsigned_to_nat(0u); -x_233 = l_Lean_Syntax_getArg(x_225, x_232); -lean_dec(x_225); -x_234 = lean_box(0); -x_235 = lean_array_size(x_208); -x_236 = 0; -x_237 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__3; -x_238 = lean_box(0); -lean_inc(x_8); -x_239 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6(x_208, x_237, x_233, x_234, x_208, x_235, x_236, x_238, x_8, x_9, x_10); -lean_dec(x_233); -if (lean_obj_tag(x_239) == 0) -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; -x_240 = lean_ctor_get(x_239, 1); -lean_inc(x_240); -lean_dec(x_239); -x_241 = lean_array_push(x_210, x_13); -if (lean_is_scalar(x_211)) { - x_242 = lean_alloc_ctor(0, 2, 0); -} else { - x_242 = x_211; -} -lean_ctor_set(x_242, 0, x_209); -lean_ctor_set(x_242, 1, x_241); -x_243 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_243, 0, x_208); -lean_ctor_set(x_243, 1, x_242); -x_244 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_244, 0, x_243); -x_14 = x_244; -x_15 = x_240; -goto block_22; -} -else -{ -lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; -lean_dec(x_211); -lean_dec(x_210); -lean_dec(x_209); -lean_dec(x_208); -lean_dec(x_13); -lean_dec(x_9); -lean_dec(x_8); -x_245 = lean_ctor_get(x_239, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_239, 1); -lean_inc(x_246); -if (lean_is_exclusive(x_239)) { - lean_ctor_release(x_239, 0); - lean_ctor_release(x_239, 1); - x_247 = x_239; -} else { - lean_dec_ref(x_239); - x_247 = lean_box(0); -} -if (lean_is_scalar(x_247)) { - x_248 = lean_alloc_ctor(1, 2, 0); -} else { - x_248 = x_247; -} -lean_ctor_set(x_248, 0, x_245); -lean_ctor_set(x_248, 1, x_246); -return x_248; -} -} -} -} -else -{ -lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; uint8_t x_253; -x_249 = lean_unsigned_to_nat(1u); -x_250 = l_Lean_Syntax_getArg(x_13, x_249); -x_251 = lean_unsigned_to_nat(2u); -x_252 = l_Lean_Syntax_getArg(x_13, x_251); -x_253 = l_Lean_Syntax_isNone(x_252); -if (x_253 == 0) -{ -uint8_t x_254; -lean_inc(x_252); -x_254 = l_Lean_Syntax_matchesNull(x_252, x_251); -if (x_254 == 0) -{ -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -lean_dec(x_252); -lean_dec(x_250); -lean_dec(x_213); -x_255 = lean_array_push(x_210, x_13); -if (lean_is_scalar(x_211)) { - x_256 = lean_alloc_ctor(0, 2, 0); -} else { - x_256 = x_211; -} -lean_ctor_set(x_256, 0, x_209); -lean_ctor_set(x_256, 1, x_255); -x_257 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_257, 0, x_208); -lean_ctor_set(x_257, 1, x_256); -x_258 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_258, 0, x_257); -x_14 = x_258; -x_15 = x_10; -goto block_22; -} -else -{ -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; -lean_dec(x_211); -lean_dec(x_13); -x_259 = l_Lean_Syntax_getArg(x_252, x_249); -lean_dec(x_252); -x_260 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_260, 0, x_259); -x_261 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -x_262 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__2(x_250, x_213, x_208, x_209, x_210, x_261, x_260, x_8, x_9, x_10); -lean_dec(x_250); -if (lean_obj_tag(x_262) == 0) -{ -lean_object* x_263; lean_object* x_264; -x_263 = lean_ctor_get(x_262, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_262, 1); -lean_inc(x_264); -lean_dec(x_262); -x_14 = x_263; -x_15 = x_264; -goto block_22; -} -else -{ -lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; -lean_dec(x_9); -lean_dec(x_8); -x_265 = lean_ctor_get(x_262, 0); -lean_inc(x_265); -x_266 = lean_ctor_get(x_262, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_267 = x_262; -} else { - lean_dec_ref(x_262); - x_267 = lean_box(0); -} -if (lean_is_scalar(x_267)) { - x_268 = lean_alloc_ctor(1, 2, 0); -} else { - x_268 = x_267; -} -lean_ctor_set(x_268, 0, x_265); -lean_ctor_set(x_268, 1, x_266); -return x_268; -} -} -} -else -{ -lean_object* x_269; lean_object* x_270; lean_object* x_271; -lean_dec(x_252); -lean_dec(x_211); -lean_dec(x_13); -x_269 = lean_box(0); -x_270 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -x_271 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__2(x_250, x_213, x_208, x_209, x_210, x_270, x_269, x_8, x_9, x_10); -lean_dec(x_250); -if (lean_obj_tag(x_271) == 0) -{ -lean_object* x_272; lean_object* x_273; -x_272 = lean_ctor_get(x_271, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_271, 1); -lean_inc(x_273); -lean_dec(x_271); -x_14 = x_272; -x_15 = x_273; -goto block_22; -} -else -{ -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; -lean_dec(x_9); -lean_dec(x_8); -x_274 = lean_ctor_get(x_271, 0); -lean_inc(x_274); -x_275 = lean_ctor_get(x_271, 1); -lean_inc(x_275); -if (lean_is_exclusive(x_271)) { - lean_ctor_release(x_271, 0); - lean_ctor_release(x_271, 1); - x_276 = x_271; -} else { - lean_dec_ref(x_271); - x_276 = lean_box(0); -} -if (lean_is_scalar(x_276)) { - x_277 = lean_alloc_ctor(1, 2, 0); -} else { - x_277 = x_276; -} -lean_ctor_set(x_277, 0, x_274); -lean_ctor_set(x_277, 1, x_275); -return x_277; -} -} -} -} -else -{ -lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; uint8_t x_282; -x_278 = lean_unsigned_to_nat(1u); -x_279 = l_Lean_Syntax_getArg(x_13, x_278); -x_280 = lean_unsigned_to_nat(2u); -x_281 = l_Lean_Syntax_getArg(x_13, x_280); -x_282 = l_Lean_Syntax_isNone(x_281); -if (x_282 == 0) -{ -uint8_t x_283; -lean_inc(x_281); -x_283 = l_Lean_Syntax_matchesNull(x_281, x_280); -if (x_283 == 0) -{ -lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; -lean_dec(x_281); -lean_dec(x_279); -lean_dec(x_213); -x_284 = lean_array_push(x_210, x_13); -if (lean_is_scalar(x_211)) { - x_285 = lean_alloc_ctor(0, 2, 0); -} else { - x_285 = x_211; -} -lean_ctor_set(x_285, 0, x_209); -lean_ctor_set(x_285, 1, x_284); -x_286 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_286, 0, x_208); -lean_ctor_set(x_286, 1, x_285); -x_287 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_287, 0, x_286); -x_14 = x_287; -x_15 = x_10; -goto block_22; -} -else -{ -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; -lean_dec(x_211); -x_288 = l_Lean_Syntax_getArg(x_281, x_278); -lean_dec(x_281); -x_289 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_289, 0, x_288); -x_290 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -x_291 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__4(x_13, x_279, x_213, x_208, x_209, x_210, x_290, x_289, x_8, x_9, x_10); -lean_dec(x_279); -lean_dec(x_13); -if (lean_obj_tag(x_291) == 0) -{ -lean_object* x_292; lean_object* x_293; -x_292 = lean_ctor_get(x_291, 0); -lean_inc(x_292); -x_293 = lean_ctor_get(x_291, 1); -lean_inc(x_293); -lean_dec(x_291); -x_14 = x_292; -x_15 = x_293; -goto block_22; -} -else -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; -lean_dec(x_9); -lean_dec(x_8); -x_294 = lean_ctor_get(x_291, 0); -lean_inc(x_294); -x_295 = lean_ctor_get(x_291, 1); -lean_inc(x_295); -if (lean_is_exclusive(x_291)) { - lean_ctor_release(x_291, 0); - lean_ctor_release(x_291, 1); - x_296 = x_291; -} else { - lean_dec_ref(x_291); - x_296 = lean_box(0); -} -if (lean_is_scalar(x_296)) { - x_297 = lean_alloc_ctor(1, 2, 0); -} else { - x_297 = x_296; -} -lean_ctor_set(x_297, 0, x_294); -lean_ctor_set(x_297, 1, x_295); -return x_297; -} -} -} -else -{ -lean_object* x_298; lean_object* x_299; lean_object* x_300; -lean_dec(x_281); -lean_dec(x_211); -x_298 = lean_box(0); -x_299 = lean_box(0); -lean_inc(x_9); -lean_inc(x_8); -x_300 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__4(x_13, x_279, x_213, x_208, x_209, x_210, x_299, x_298, x_8, x_9, x_10); -lean_dec(x_279); -lean_dec(x_13); -if (lean_obj_tag(x_300) == 0) -{ -lean_object* x_301; lean_object* x_302; -x_301 = lean_ctor_get(x_300, 0); -lean_inc(x_301); -x_302 = lean_ctor_get(x_300, 1); -lean_inc(x_302); -lean_dec(x_300); -x_14 = x_301; -x_15 = x_302; -goto block_22; -} -else -{ -lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; -lean_dec(x_9); -lean_dec(x_8); -x_303 = lean_ctor_get(x_300, 0); -lean_inc(x_303); -x_304 = lean_ctor_get(x_300, 1); -lean_inc(x_304); -if (lean_is_exclusive(x_300)) { - lean_ctor_release(x_300, 0); - lean_ctor_release(x_300, 1); - x_305 = x_300; -} else { - lean_dec_ref(x_300); - x_305 = lean_box(0); -} -if (lean_is_scalar(x_305)) { - x_306 = lean_alloc_ctor(1, 2, 0); -} else { - x_306 = x_305; -} -lean_ctor_set(x_306, 0, x_303); -lean_ctor_set(x_306, 1, x_304); -return x_306; -} -} -} -} -block_22: -{ -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_16; lean_object* x_17; -lean_dec(x_9); -lean_dec(x_8); -x_16 = lean_ctor_get(x_14, 0); -lean_inc(x_16); -lean_dec(x_14); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} -else -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_14, 0); -lean_inc(x_18); -lean_dec(x_14); -x_19 = 1; -x_20 = lean_usize_add(x_6, x_19); -x_6 = x_20; -x_7 = x_18; -x_10 = x_15; -goto _start; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9(uint8_t x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__11(uint8_t x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; @@ -19945,7 +22699,8 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean x_10 = lean_array_uget(x_4, x_3); x_11 = lean_unsigned_to_nat(0u); x_12 = lean_array_uset(x_4, x_3, x_11); -if (x_1 == 0) +switch (x_1) { +case 0: { lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; x_20 = l_Lean_Elab_Command_getRef(x_5, x_6, x_7); @@ -19973,12 +22728,12 @@ lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean x_31 = lean_ctor_get(x_29, 1); x_32 = lean_ctor_get(x_29, 0); lean_dec(x_32); -x_33 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; +x_33 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; lean_inc(x_24); lean_ctor_set_tag(x_29, 2); lean_ctor_set(x_29, 1, x_33); lean_ctor_set(x_29, 0, x_24); -x_34 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_34 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_24); x_35 = l_Lean_Syntax_node1(x_24, x_34, x_10); x_36 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; @@ -19987,13 +22742,14 @@ x_37 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_37, 0, x_24); lean_ctor_set(x_37, 1, x_34); lean_ctor_set(x_37, 2, x_36); -x_38 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4; +x_38 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; lean_inc(x_24); lean_ctor_set_tag(x_25, 2); lean_ctor_set(x_25, 1, x_38); lean_ctor_set(x_25, 0, x_24); -x_39 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_40 = l_Lean_Syntax_node4(x_24, x_39, x_29, x_35, x_37, x_25); +x_39 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +lean_inc(x_37); +x_40 = l_Lean_Syntax_node5(x_24, x_39, x_29, x_35, x_37, x_37, x_25); x_13 = x_40; x_14 = x_31; goto block_19; @@ -20004,12 +22760,12 @@ lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean x_41 = lean_ctor_get(x_29, 1); lean_inc(x_41); lean_dec(x_29); -x_42 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; +x_42 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; lean_inc(x_24); x_43 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_43, 0, x_24); lean_ctor_set(x_43, 1, x_42); -x_44 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_44 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_24); x_45 = l_Lean_Syntax_node1(x_24, x_44, x_10); x_46 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; @@ -20018,13 +22774,14 @@ x_47 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_47, 0, x_24); lean_ctor_set(x_47, 1, x_44); lean_ctor_set(x_47, 2, x_46); -x_48 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4; +x_48 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; lean_inc(x_24); lean_ctor_set_tag(x_25, 2); lean_ctor_set(x_25, 1, x_48); lean_ctor_set(x_25, 0, x_24); -x_49 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_50 = l_Lean_Syntax_node4(x_24, x_49, x_43, x_45, x_47, x_25); +x_49 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +lean_inc(x_47); +x_50 = l_Lean_Syntax_node5(x_24, x_49, x_43, x_45, x_47, x_47, x_25); x_13 = x_50; x_14 = x_41; goto block_19; @@ -20047,7 +22804,7 @@ if (lean_is_exclusive(x_52)) { lean_dec_ref(x_52); x_54 = lean_box(0); } -x_55 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1; +x_55 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1; lean_inc(x_24); if (lean_is_scalar(x_54)) { x_56 = lean_alloc_ctor(2, 2, 0); @@ -20057,7 +22814,7 @@ if (lean_is_scalar(x_54)) { } lean_ctor_set(x_56, 0, x_24); lean_ctor_set(x_56, 1, x_55); -x_57 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_57 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_24); x_58 = l_Lean_Syntax_node1(x_24, x_57, x_10); x_59 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; @@ -20066,19 +22823,20 @@ x_60 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_60, 0, x_24); lean_ctor_set(x_60, 1, x_57); lean_ctor_set(x_60, 2, x_59); -x_61 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4; +x_61 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; lean_inc(x_24); x_62 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_62, 0, x_24); lean_ctor_set(x_62, 1, x_61); -x_63 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; -x_64 = l_Lean_Syntax_node4(x_24, x_63, x_56, x_58, x_60, x_62); +x_63 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; +lean_inc(x_60); +x_64 = l_Lean_Syntax_node5(x_24, x_63, x_56, x_58, x_60, x_60, x_62); x_13 = x_64; x_14 = x_53; goto block_19; } } -else +case 1: { lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; x_65 = l_Lean_Elab_Command_getRef(x_5, x_6, x_7); @@ -20106,12 +22864,12 @@ lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean x_76 = lean_ctor_get(x_74, 1); x_77 = lean_ctor_get(x_74, 0); lean_dec(x_77); -x_78 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6; +x_78 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; lean_inc(x_69); lean_ctor_set_tag(x_74, 2); lean_ctor_set(x_74, 1, x_78); lean_ctor_set(x_74, 0, x_69); -x_79 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_79 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_69); x_80 = l_Lean_Syntax_node1(x_69, x_79, x_10); x_81 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; @@ -20120,14 +22878,13 @@ x_82 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_82, 0, x_69); lean_ctor_set(x_82, 1, x_79); lean_ctor_set(x_82, 2, x_81); -x_83 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +x_83 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; lean_inc(x_69); lean_ctor_set_tag(x_70, 2); lean_ctor_set(x_70, 1, x_83); lean_ctor_set(x_70, 0, x_69); -x_84 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -lean_inc(x_82); -x_85 = l_Lean_Syntax_node5(x_69, x_84, x_74, x_80, x_82, x_82, x_70); +x_84 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_85 = l_Lean_Syntax_node4(x_69, x_84, x_74, x_80, x_82, x_70); x_13 = x_85; x_14 = x_76; goto block_19; @@ -20138,12 +22895,12 @@ lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean x_86 = lean_ctor_get(x_74, 1); lean_inc(x_86); lean_dec(x_74); -x_87 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6; +x_87 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; lean_inc(x_69); x_88 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_88, 0, x_69); lean_ctor_set(x_88, 1, x_87); -x_89 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_89 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_69); x_90 = l_Lean_Syntax_node1(x_69, x_89, x_10); x_91 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; @@ -20152,14 +22909,13 @@ x_92 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_92, 0, x_69); lean_ctor_set(x_92, 1, x_89); lean_ctor_set(x_92, 2, x_91); -x_93 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +x_93 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; lean_inc(x_69); lean_ctor_set_tag(x_70, 2); lean_ctor_set(x_70, 1, x_93); lean_ctor_set(x_70, 0, x_69); -x_94 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -lean_inc(x_92); -x_95 = l_Lean_Syntax_node5(x_69, x_94, x_88, x_90, x_92, x_92, x_70); +x_94 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_95 = l_Lean_Syntax_node4(x_69, x_94, x_88, x_90, x_92, x_70); x_13 = x_95; x_14 = x_86; goto block_19; @@ -20182,7 +22938,7 @@ if (lean_is_exclusive(x_97)) { lean_dec_ref(x_97); x_99 = lean_box(0); } -x_100 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6; +x_100 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; lean_inc(x_69); if (lean_is_scalar(x_99)) { x_101 = lean_alloc_ctor(2, 2, 0); @@ -20192,7 +22948,7 @@ if (lean_is_scalar(x_99)) { } lean_ctor_set(x_101, 0, x_69); lean_ctor_set(x_101, 1, x_100); -x_102 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_102 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_69); x_103 = l_Lean_Syntax_node1(x_69, x_102, x_10); x_104 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; @@ -20201,19 +22957,198 @@ x_105 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_105, 0, x_69); lean_ctor_set(x_105, 1, x_102); lean_ctor_set(x_105, 2, x_104); -x_106 = l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; +x_106 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; lean_inc(x_69); x_107 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_107, 0, x_69); lean_ctor_set(x_107, 1, x_106); -x_108 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__3; -lean_inc(x_105); -x_109 = l_Lean_Syntax_node5(x_69, x_108, x_101, x_103, x_105, x_105, x_107); +x_108 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; +x_109 = l_Lean_Syntax_node4(x_69, x_108, x_101, x_103, x_105, x_107); x_13 = x_109; x_14 = x_98; goto block_19; } } +case 2: +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; +x_110 = l_Lean_Elab_Command_getRef(x_5, x_6, x_7); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_113 = 0; +x_114 = l_Lean_SourceInfo_fromRef(x_111, x_113); +lean_dec(x_111); +x_115 = l_Lean_Elab_Command_getCurrMacroScope(x_5, x_6, x_112); +x_116 = !lean_is_exclusive(x_115); +if (x_116 == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; +x_117 = lean_ctor_get(x_115, 1); +x_118 = lean_ctor_get(x_115, 0); +lean_dec(x_118); +x_119 = l_Lean_Elab_Command_getMainModule___rarg(x_6, x_117); +x_120 = !lean_is_exclusive(x_119); +if (x_120 == 0) +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_121 = lean_ctor_get(x_119, 1); +x_122 = lean_ctor_get(x_119, 0); +lean_dec(x_122); +x_123 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_114); +lean_ctor_set_tag(x_119, 2); +lean_ctor_set(x_119, 1, x_123); +lean_ctor_set(x_119, 0, x_114); +x_124 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_119); +lean_inc(x_114); +x_125 = l_Lean_Syntax_node2(x_114, x_124, x_119, x_119); +x_126 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_114); +x_127 = l_Lean_Syntax_node1(x_114, x_126, x_10); +x_128 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_114); +x_129 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_129, 0, x_114); +lean_ctor_set(x_129, 1, x_126); +lean_ctor_set(x_129, 2, x_128); +x_130 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_114); +lean_ctor_set_tag(x_115, 2); +lean_ctor_set(x_115, 1, x_130); +lean_ctor_set(x_115, 0, x_114); +lean_inc(x_115); +lean_inc(x_114); +x_131 = l_Lean_Syntax_node2(x_114, x_124, x_115, x_115); +x_132 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_133 = l_Lean_Syntax_node4(x_114, x_132, x_125, x_127, x_129, x_131); +x_13 = x_133; +x_14 = x_121; +goto block_19; +} +else +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_134 = lean_ctor_get(x_119, 1); +lean_inc(x_134); +lean_dec(x_119); +x_135 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_114); +x_136 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_136, 0, x_114); +lean_ctor_set(x_136, 1, x_135); +x_137 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_136); +lean_inc(x_114); +x_138 = l_Lean_Syntax_node2(x_114, x_137, x_136, x_136); +x_139 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_114); +x_140 = l_Lean_Syntax_node1(x_114, x_139, x_10); +x_141 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_114); +x_142 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_142, 0, x_114); +lean_ctor_set(x_142, 1, x_139); +lean_ctor_set(x_142, 2, x_141); +x_143 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_114); +lean_ctor_set_tag(x_115, 2); +lean_ctor_set(x_115, 1, x_143); +lean_ctor_set(x_115, 0, x_114); +lean_inc(x_115); +lean_inc(x_114); +x_144 = l_Lean_Syntax_node2(x_114, x_137, x_115, x_115); +x_145 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_146 = l_Lean_Syntax_node4(x_114, x_145, x_138, x_140, x_142, x_144); +x_13 = x_146; +x_14 = x_134; +goto block_19; +} +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_147 = lean_ctor_get(x_115, 1); +lean_inc(x_147); +lean_dec(x_115); +x_148 = l_Lean_Elab_Command_getMainModule___rarg(x_6, x_147); +x_149 = lean_ctor_get(x_148, 1); +lean_inc(x_149); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_150 = x_148; +} else { + lean_dec_ref(x_148); + x_150 = lean_box(0); +} +x_151 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5; +lean_inc(x_114); +if (lean_is_scalar(x_150)) { + x_152 = lean_alloc_ctor(2, 2, 0); +} else { + x_152 = x_150; + lean_ctor_set_tag(x_152, 2); +} +lean_ctor_set(x_152, 0, x_114); +lean_ctor_set(x_152, 1, x_151); +x_153 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8; +lean_inc(x_152); +lean_inc(x_114); +x_154 = l_Lean_Syntax_node2(x_114, x_153, x_152, x_152); +x_155 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; +lean_inc(x_114); +x_156 = l_Lean_Syntax_node1(x_114, x_155, x_10); +x_157 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; +lean_inc(x_114); +x_158 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_158, 0, x_114); +lean_ctor_set(x_158, 1, x_155); +lean_ctor_set(x_158, 2, x_157); +x_159 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6; +lean_inc(x_114); +x_160 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_160, 0, x_114); +lean_ctor_set(x_160, 1, x_159); +lean_inc(x_160); +lean_inc(x_114); +x_161 = l_Lean_Syntax_node2(x_114, x_153, x_160, x_160); +x_162 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7; +x_163 = l_Lean_Syntax_node4(x_114, x_162, x_154, x_156, x_158, x_161); +x_13 = x_163; +x_14 = x_149; +goto block_19; +} +} +default: +{ +lean_object* x_164; uint8_t x_165; +lean_dec(x_12); +lean_dec(x_10); +x_164 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__10___rarg(x_7); +x_165 = !lean_is_exclusive(x_164); +if (x_165 == 0) +{ +return x_164; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_164, 0); +x_167 = lean_ctor_get(x_164, 1); +lean_inc(x_167); +lean_inc(x_166); +lean_dec(x_164); +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set(x_168, 1, x_167); +return x_168; +} +} +} block_19: { size_t x_15; size_t x_16; lean_object* x_17; @@ -20241,7 +23176,7 @@ size_t x_13; lean_object* x_14; lean_dec(x_6); lean_dec(x_5); x_13 = lean_array_size(x_1); -x_14 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9(x_3, x_13, x_4, x_1, x_8, x_9, x_10); +x_14 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__11(x_3, x_13, x_4, x_1, x_8, x_9, x_10); return x_14; } else @@ -20377,7 +23312,8 @@ x_24 = 0; x_25 = lean_unbox(x_12); lean_inc(x_3); lean_inc(x_2); -x_26 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8(x_25, x_20, x_21, x_20, x_23, x_24, x_13, x_2, x_3, x_16); +lean_inc(x_1); +x_26 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9(x_1, x_25, x_20, x_21, x_20, x_23, x_24, x_13, x_2, x_3, x_16); lean_dec(x_20); if (lean_obj_tag(x_26) == 0) { @@ -20491,7 +23427,8 @@ x_59 = 0; x_60 = lean_unbox(x_12); lean_inc(x_3); lean_inc(x_2); -x_61 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8(x_60, x_54, x_55, x_54, x_58, x_59, x_57, x_2, x_3, x_50); +lean_inc(x_1); +x_61 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9(x_1, x_60, x_54, x_55, x_54, x_58, x_59, x_57, x_2, x_3, x_50); lean_dec(x_54); if (lean_obj_tag(x_61) == 0) { @@ -20586,43 +23523,7 @@ return x_83; } } } -LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(x_1, x_2, x_3, x_4); -lean_dec(x_3); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -size_t x_11; size_t x_12; lean_object* x_13; -x_11 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_12 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_13 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3(x_1, x_2, x_3, x_4, x_11, x_12, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; @@ -20630,61 +23531,118 @@ x_5 = lean_unbox_usize(x_3); lean_dec(x_3); x_6 = lean_unbox_usize(x_4); lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4(x_1, x_2, x_5, x_6); +x_7 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(x_1, x_2, x_5, x_6); lean_dec(x_2); lean_dec(x_1); x_8 = lean_box(x_7); return x_8; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___lambda__1(x_1, x_2); +x_3 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___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: { -uint8_t x_13; uint8_t x_14; size_t x_15; size_t x_16; lean_object* x_17; -x_13 = lean_unbox(x_1); -lean_dec(x_1); -x_14 = lean_unbox(x_3); -lean_dec(x_3); -x_15 = lean_unbox_usize(x_7); +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_2); +lean_dec(x_2); +x_12 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); lean_dec(x_7); -x_16 = lean_unbox_usize(x_8); -lean_dec(x_8); -x_17 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5(x_13, x_2, x_14, x_4, x_5, x_6, x_15, x_16, x_9, x_10, x_11, x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -return x_17; +return x_12; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_13 = lean_unbox_usize(x_7); +lean_object* x_9; +x_9 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); -x_14 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6(x_1, x_2, x_3, x_4, x_5, x_12, x_13, x_8, x_9, x_10, x_11); -lean_dec(x_10); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_14; +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__4___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_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___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) { +_start: +{ +uint8_t x_14; uint8_t x_15; size_t x_16; size_t x_17; lean_object* x_18; +x_14 = lean_unbox(x_2); +lean_dec(x_2); +x_15 = lean_unbox(x_4); +lean_dec(x_4); +x_16 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_17 = lean_unbox_usize(x_9); +lean_dec(x_9); +x_18 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4(x_1, x_14, x_3, x_15, x_5, x_6, x_7, x_16, x_17, x_10, x_11, x_12, x_13); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_throwErrorAt___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; } } LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7___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) { @@ -20704,67 +23662,105 @@ lean_dec(x_1); return x_13; } } -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___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: -{ -uint8_t x_10; uint8_t x_11; lean_object* x_12; -x_10 = lean_unbox(x_2); -lean_dec(x_2); -x_11 = lean_unbox(x_4); -lean_dec(x_4); -x_12 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__1(x_1, x_10, x_3, x_11, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___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_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___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_6); -lean_dec(x_1); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_7); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -return x_12; -} -} LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___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: { -uint8_t x_11; size_t x_12; size_t x_13; lean_object* x_14; -x_11 = lean_unbox(x_1); -lean_dec(x_1); -x_12 = lean_unbox_usize(x_5); +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_5); lean_dec(x_5); -x_13 = lean_unbox_usize(x_6); +x_12 = lean_unbox_usize(x_6); lean_dec(x_6); -x_14 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8(x_11, x_2, x_3, x_4, x_12, x_13, x_7, x_8, x_9, x_10); +x_13 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8(x_1, x_2, x_3, x_4, x_11, x_12, x_7, x_8, x_9, x_10); +lean_dec(x_9); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_14; +lean_dec(x_1); +return x_13; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___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_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; uint8_t x_12; lean_object* x_13; +x_11 = lean_unbox(x_2); +lean_dec(x_2); +x_12 = lean_unbox(x_5); +lean_dec(x_5); +x_13 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__1(x_1, x_11, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_3); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___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_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___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_6); +lean_dec(x_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_6); +lean_dec(x_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__4___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_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_7); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; size_t x_13; size_t x_14; lean_object* x_15; +x_12 = lean_unbox(x_2); +lean_dec(x_2); +x_13 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_14 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_15 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9(x_1, x_12, x_3, x_4, x_5, x_13, x_14, x_8, x_9, x_10, x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__10___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__10(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__11___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: { uint8_t x_8; size_t x_9; size_t x_10; lean_object* x_11; @@ -20774,7 +23770,7 @@ x_9 = lean_unbox_usize(x_2); lean_dec(x_2); x_10 = lean_unbox_usize(x_3); lean_dec(x_3); -x_11 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__9(x_8, x_9, x_10, x_4, x_5, x_6, x_7); +x_11 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__11(x_8, x_9, x_10, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); return x_11; @@ -25944,7 +28940,7 @@ lean_inc(x_17); x_19 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); -x_20 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_20 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_21 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_17); x_22 = lean_alloc_ctor(1, 3, 0); @@ -27599,7 +30595,7 @@ x_21 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Command_elabInclude___spec__1 x_22 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_22, 0, x_20); lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(x_22, x_9, x_10, x_11); +x_23 = l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6(x_22, x_9, x_10, x_11); x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) { @@ -30059,7 +33055,7 @@ x_10 = lean_box(0); x_11 = l_Lean_Syntax_getArgs(x_9); lean_dec(x_9); x_12 = l_Lean_Elab_Command_elabSection___closed__4; -x_13 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__2; +x_13 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9; x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabOmit___lambda__1___boxed), 12, 4); lean_closure_set(x_14, 0, x_11); lean_closure_set(x_14, 1, x_12); @@ -31953,7 +34949,7 @@ x_129 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecl x_130 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_131 = l_Array_append___rarg(x_130, x_129); lean_dec(x_129); -x_132 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_132 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_117); x_133 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_133, 0, x_117); @@ -31990,7 +34986,7 @@ x_145 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecl x_146 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_147 = l_Array_append___rarg(x_146, x_145); lean_dec(x_145); -x_148 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_148 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_117); x_149 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_149, 0, x_117); @@ -32044,7 +35040,7 @@ x_164 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecl x_165 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_166 = l_Array_append___rarg(x_165, x_164); lean_dec(x_164); -x_167 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_167 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_117); x_168 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_168, 0, x_117); @@ -32153,7 +35149,7 @@ x_46 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecls x_47 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_48 = l_Array_append___rarg(x_47, x_46); lean_dec(x_46); -x_49 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_49 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_29); x_50 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_50, 0, x_29); @@ -32205,7 +35201,7 @@ x_69 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecls x_70 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_71 = l_Array_append___rarg(x_70, x_69); lean_dec(x_69); -x_72 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_72 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_29); x_73 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_73, 0, x_29); @@ -32274,7 +35270,7 @@ x_96 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecls x_97 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_98 = l_Array_append___rarg(x_97, x_96); lean_dec(x_96); -x_99 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_99 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_29); x_100 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_100, 0, x_29); @@ -32407,7 +35403,7 @@ x_217 = lean_mk_syntax_ident(x_187); x_218 = l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOpenDecls___spec__4___closed__4; lean_inc(x_203); x_219 = l_Lean_Syntax_node3(x_203, x_218, x_215, x_198, x_217); -x_220 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_220 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_203); x_221 = l_Lean_Syntax_node1(x_203, x_220, x_219); x_222 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__11; @@ -32457,7 +35453,7 @@ x_237 = lean_mk_syntax_ident(x_187); x_238 = l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOpenDecls___spec__4___closed__4; lean_inc(x_203); x_239 = l_Lean_Syntax_node3(x_203, x_238, x_235, x_198, x_237); -x_240 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_240 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_203); x_241 = l_Lean_Syntax_node1(x_203, x_240, x_239); x_242 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__11; @@ -32524,7 +35520,7 @@ x_261 = lean_mk_syntax_ident(x_187); x_262 = l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOpenDecls___spec__4___closed__4; lean_inc(x_203); x_263 = l_Lean_Syntax_node3(x_203, x_262, x_259, x_198, x_261); -x_264 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_264 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_203); x_265 = l_Lean_Syntax_node1(x_203, x_264, x_263); x_266 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__11; @@ -32612,7 +35608,7 @@ x_292 = lean_mk_syntax_ident(x_187); x_293 = l_List_forIn_x27_loop___at_Lean_Elab_Command_elabWhere_describeOpenDecls___spec__4___closed__4; lean_inc(x_277); x_294 = l_Lean_Syntax_node3(x_277, x_293, x_289, x_291, x_292); -x_295 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_295 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_277); x_296 = l_Lean_Syntax_node1(x_277, x_295, x_294); x_297 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__11; @@ -32678,7 +35674,7 @@ x_324 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecl x_325 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_326 = l_Array_append___rarg(x_325, x_324); lean_dec(x_324); -x_327 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_327 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_312); x_328 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_328, 0, x_312); @@ -32715,7 +35711,7 @@ x_340 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecl x_341 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_342 = l_Array_append___rarg(x_341, x_340); lean_dec(x_340); -x_343 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_343 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_312); x_344 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_344, 0, x_312); @@ -32769,7 +35765,7 @@ x_359 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecl x_360 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_361 = l_Array_append___rarg(x_360, x_359); lean_dec(x_359); -x_362 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_362 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_312); x_363 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_363, 0, x_312); @@ -32988,7 +35984,7 @@ x_54 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecls x_55 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_56 = l_Array_append___rarg(x_55, x_54); lean_dec(x_54); -x_57 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_57 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_42); x_58 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_58, 0, x_42); @@ -33024,7 +36020,7 @@ x_70 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecls x_71 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_72 = l_Array_append___rarg(x_71, x_70); lean_dec(x_70); -x_73 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_73 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_42); x_74 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_74, 0, x_42); @@ -33077,7 +36073,7 @@ x_89 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere_describeOpenDecls x_90 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_91 = l_Array_append___rarg(x_90, x_89); lean_dec(x_89); -x_92 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_92 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_42); x_93 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_93, 0, x_42); @@ -33380,7 +36376,7 @@ lean_ctor_set_tag(x_21, 2); lean_ctor_set(x_21, 1, x_25); lean_ctor_set(x_21, 0, x_18); x_26 = lean_mk_syntax_ident(x_2); -x_27 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_27 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_28 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_18); x_29 = lean_alloc_ctor(1, 3, 0); @@ -33407,7 +36403,7 @@ x_37 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_37, 0, x_18); lean_ctor_set(x_37, 1, x_36); x_38 = lean_mk_syntax_ident(x_2); -x_39 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_39 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_40 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_18); x_41 = lean_alloc_ctor(1, 3, 0); @@ -33462,7 +36458,7 @@ lean_ctor_set_tag(x_57, 2); lean_ctor_set(x_57, 1, x_61); lean_ctor_set(x_57, 0, x_52); x_62 = lean_mk_syntax_ident(x_2); -x_63 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_63 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_64 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_52); x_65 = lean_alloc_ctor(1, 3, 0); @@ -33491,7 +36487,7 @@ x_72 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_72, 0, x_52); lean_ctor_set(x_72, 1, x_71); x_73 = lean_mk_syntax_ident(x_2); -x_74 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_74 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_75 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_52); x_76 = lean_alloc_ctor(1, 3, 0); @@ -33537,7 +36533,7 @@ if (lean_is_scalar(x_84)) { lean_ctor_set(x_86, 0, x_52); lean_ctor_set(x_86, 1, x_85); x_87 = lean_mk_syntax_ident(x_2); -x_88 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_88 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_89 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_52); x_90 = lean_alloc_ctor(1, 3, 0); @@ -33589,7 +36585,7 @@ lean_ctor_set_tag(x_105, 2); lean_ctor_set(x_105, 1, x_109); lean_ctor_set(x_105, 0, x_100); x_110 = lean_mk_syntax_ident(x_2); -x_111 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_111 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_112 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_100); x_113 = lean_alloc_ctor(1, 3, 0); @@ -33618,7 +36614,7 @@ x_120 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_120, 0, x_100); lean_ctor_set(x_120, 1, x_119); x_121 = lean_mk_syntax_ident(x_2); -x_122 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_122 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_123 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_100); x_124 = lean_alloc_ctor(1, 3, 0); @@ -33664,7 +36660,7 @@ if (lean_is_scalar(x_132)) { lean_ctor_set(x_134, 0, x_100); lean_ctor_set(x_134, 1, x_133); x_135 = lean_mk_syntax_ident(x_2); -x_136 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_136 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_137 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_100); x_138 = lean_alloc_ctor(1, 3, 0); @@ -33716,7 +36712,7 @@ lean_ctor_set_tag(x_152, 2); lean_ctor_set(x_152, 1, x_156); lean_ctor_set(x_152, 0, x_149); x_157 = lean_mk_syntax_ident(x_2); -x_158 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_158 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_159 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_149); x_160 = lean_alloc_ctor(1, 3, 0); @@ -33742,7 +36738,7 @@ x_168 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_168, 0, x_149); lean_ctor_set(x_168, 1, x_167); x_169 = lean_mk_syntax_ident(x_2); -x_170 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_170 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_171 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_149); x_172 = lean_alloc_ctor(1, 3, 0); @@ -33792,7 +36788,7 @@ lean_ctor_set_tag(x_187, 2); lean_ctor_set(x_187, 1, x_191); lean_ctor_set(x_187, 0, x_182); x_192 = lean_mk_syntax_ident(x_2); -x_193 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_193 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_194 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_182); x_195 = lean_alloc_ctor(1, 3, 0); @@ -33824,7 +36820,7 @@ x_204 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_204, 0, x_182); lean_ctor_set(x_204, 1, x_203); x_205 = lean_mk_syntax_ident(x_2); -x_206 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_206 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_207 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_182); x_208 = lean_alloc_ctor(1, 3, 0); @@ -33873,7 +36869,7 @@ if (lean_is_scalar(x_218)) { lean_ctor_set(x_220, 0, x_182); lean_ctor_set(x_220, 1, x_219); x_221 = lean_mk_syntax_ident(x_2); -x_222 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_222 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_223 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_182); x_224 = lean_alloc_ctor(1, 3, 0); @@ -34352,7 +37348,7 @@ x_24 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere___spec__1(x_22, x x_25 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_26 = l_Array_append___rarg(x_25, x_24); lean_dec(x_24); -x_27 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_27 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_13); x_28 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_28, 0, x_13); @@ -34384,7 +37380,7 @@ x_41 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabWhere___spec__1(x_39, x x_42 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_43 = l_Array_append___rarg(x_42, x_41); lean_dec(x_41); -x_44 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_44 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_13); x_45 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_45, 0, x_13); @@ -34451,7 +37447,7 @@ lean_ctor_set(x_19, 0, x_16); x_24 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_25 = l_Array_append___rarg(x_24, x_11); lean_dec(x_11); -x_26 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_26 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_16); x_27 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_27, 0, x_16); @@ -34479,7 +37475,7 @@ lean_ctor_set(x_36, 1, x_35); x_37 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_38 = l_Array_append___rarg(x_37, x_11); lean_dec(x_11); -x_39 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_39 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_16); x_40 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_40, 0, x_16); @@ -34546,7 +37542,7 @@ x_24 = lean_array_mk(x_11); x_25 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_26 = l_Array_append___rarg(x_25, x_24); lean_dec(x_24); -x_27 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_27 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_16); x_28 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_28, 0, x_16); @@ -34575,7 +37571,7 @@ x_38 = lean_array_mk(x_11); x_39 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; x_40 = l_Array_append___rarg(x_39, x_38); lean_dec(x_38); -x_41 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_41 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; lean_inc(x_16); x_42 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_42, 0, x_16); @@ -34779,7 +37775,7 @@ lean_inc(x_16); lean_ctor_set_tag(x_17, 2); lean_ctor_set(x_17, 1, x_26); lean_ctor_set(x_17, 0, x_16); -x_27 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_27 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_28 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_16); x_29 = lean_alloc_ctor(1, 3, 0); @@ -34811,7 +37807,7 @@ lean_inc(x_16); lean_ctor_set_tag(x_17, 2); lean_ctor_set(x_17, 1, x_40); lean_ctor_set(x_17, 0, x_16); -x_41 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_41 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_42 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_16); x_43 = lean_alloc_ctor(1, 3, 0); @@ -34860,7 +37856,7 @@ lean_inc(x_16); x_58 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_58, 0, x_16); lean_ctor_set(x_58, 1, x_57); -x_59 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3; +x_59 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3; x_60 = l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__12; lean_inc(x_16); x_61 = lean_alloc_ctor(1, 3, 0); @@ -35553,30 +38549,48 @@ l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___c lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__4); l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5 = _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5(); lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___closed__1); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___closed__2(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__3___closed__2); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__1); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__2(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__2); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__3); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__4); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__5); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__5___closed__6); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__1); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__2(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__2); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__3(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__3); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__4(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__6___closed__4); +l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__6 = _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__6); +l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7 = _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__7); +l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__8 = _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__8); +l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9 = _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__9); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__1); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__2); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__3); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__4); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__5); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__6); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__7 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__7(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__7); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__8); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__9 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__9(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__9); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__10 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__10(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__10); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__11 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__11(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__11); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__12 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__12(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__12); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__13); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__2___closed__14); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__4___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__4___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___lambda__4___closed__1); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__1); +l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__2(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__4___closed__2); l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7___closed__1(); lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7___closed__1); l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__7___closed__2(); @@ -35585,8 +38599,6 @@ l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Ela lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__1); l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__2(); lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__2); -l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__3 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__3(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__8___closed__3); l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___closed__1 = _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___closed__1(); lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___closed__1); l_Lean_Elab_Command_elabVariable___closed__1 = _init_l_Lean_Elab_Command_elabVariable___closed__1();