// Lean compiler output
// Module: Lean.Elab.BuiltinNotation
// Imports: Lean.Compiler.BorrowedAnnotation Lean.Meta.KAbstract Lean.Meta.Closure Lean.Meta.MatchUtil Lean.Compiler.ImplementedByAttr Lean.Elab.SyntheticMVars Lean.Elab.Eval Lean.Elab.Binders
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
static lean_object* l_Lean_Elab_Term_elabHaveI___closed__1;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabShow__1(lean_object*);
lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__4;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__8(lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__4;
static lean_object* l_Lean_Elab_Term_elabShow___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__1;
LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at_Lean_Elab_Term_elabRunElab___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__12;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__25;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__3;
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__1;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__2;
lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(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_Term_elabTypeAscription__1(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__3;
static lean_object* l_Lean_Elab_Term_expandShow___closed__6;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__29;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__28;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__3;
static lean_object* l_Lean_Elab_Term_elabPanic___closed__1;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__4;
static lean_object* l_Lean_Elab_Term_mkMPairs_loop___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__7;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_mkNameLit(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__1;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoeSortNotation___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_mkPPairs_loop___closed__6;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___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_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1(lean_object*);
lean_object* l_Lean_Elab_Term_resolveId_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__5;
static lean_object* l_Lean_Elab_Term_elabSorry___closed__12;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabAnonymousCtor___spec__5(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_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__8(lean_object*, lean_object*, size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshIdent___at_Lean_Elab_Term_expandCDot_x3f_go___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__1;
static lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__2;
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__14(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Term_elabAnonymousCtor___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPairs(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab_docString__1___closed__1;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__5;
static lean_object* l_Lean_Elab_Term_elabPanic___closed__8;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPPairs___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_addBuiltinDocString(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabSubst___closed__12;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__5;
static lean_object* l_Lean_Elab_Term_elabCoeSortNotation___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__5;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__37;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__3;
lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkEqRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__8___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_EXPORT lean_object* l_panic___at_Lean_Elab_Term_elabUnsafe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__7;
static lean_object* l_Lean_Elab_Term_expandAssert___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__5;
lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_shouldVisit(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandHave___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__44;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandShow___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f_expandCDotArg_x3f(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__2;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandParen__1(lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__14;
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__7;
lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1(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_Term_expandDbgTrace___closed__14;
extern lean_object* l_Lean_maxRecDepthErrorMessage;
lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__2;
static lean_object* l_Lean_Elab_Term_mkMPairs_loop___closed__4;
static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__4;
static lean_object* l_Lean_Elab_Term_elabShow___closed__4;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__6;
static lean_object* l_Lean_Elab_Term_expandHave___lambda__2___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabSubst___lambda__6___closed__2;
lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Exception_isInterrupt(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__12;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__6;
static lean_object* l_Lean_Elab_Term_elabRunElab___lambda__1___closed__1;
static lean_object* l_Lean_Elab_Term_hasCDot___closed__6;
lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__5;
lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__3;
static lean_object* l_Lean_Elab_Term_expandAssert___closed__11;
lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabPanic___closed__12;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___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_Term_expandUnreachable__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__3;
lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandUnreachable(lean_object*);
static lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__2___closed__1;
lean_object* l_Lean_Syntax_getId(lean_object*);
lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabSorry___closed__5;
static lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2___closed__2;
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__18;
lean_object* l_Lean_Expr_sort___override(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__5;
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__14;
lean_object* lean_array_push(lean_object*, lean_object*);
lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabCoeFunNotation___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabPanic___closed__9;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__4;
lean_object* l_Lean_mkHashSetImp___rarg(lean_object*);
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__7(lean_object*, lean_object*, size_t, size_t);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___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_Elab_Term_expandAssert___closed__5;
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__7;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetI___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1(lean_object*);
static lean_object* l_Lean_Elab_Term_expandShow___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPanic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_array(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__3;
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_hasCDot___spec__1(lean_object*, size_t, size_t);
uint8_t lean_usize_dec_eq(size_t, size_t);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__4;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabAnonymousCtor___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_mkMPairs_loop___closed__8;
static lean_object* l_Lean_Elab_Term_elabCoe___closed__2;
static lean_object* l_Lean_Elab_Term_mkPairs_loop___closed__1;
lean_object* l_Lean_Syntax_getArgs(lean_object*);
static lean_object* l_Lean_Elab_Term_elabRunElab___closed__5;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__11;
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__13(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandAssert___closed__9;
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed__1(lean_object*);
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__9;
static lean_object* l_Lean_Elab_Term_expandSuffices___closed__5;
lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1(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___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t);
static lean_object* l_Lean_Elab_Term_mkPPairs_loop___closed__8;
lean_object* lean_array_fget(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPairs_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__38;
LEAN_EXPORT uint8_t l_Lean_Elab_Term_hasCDot(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabHaveI___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___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_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__1;
lean_object* l_Lean_Syntax_TSepArray_getElems___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__2;
lean_object* l_Lean_Expr_fvarId_x21(lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__42;
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__6;
lean_object* lean_environment_find(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetI___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPairs_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__1;
static lean_object* l_Lean_Elab_Term_expandShow___closed__8;
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__7;
lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*, uint8_t);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabShow___closed__6;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__4;
static lean_object* l_Lean_Elab_Term_expandHave___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__5;
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__3(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabSubst___closed__14;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__17;
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandShow___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__2;
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__17(lean_object*, lean_object*, size_t, size_t);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__5;
lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__5___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__2;
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1(lean_object*);
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__7;
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__12___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1(lean_object*);
static lean_object* l_Lean_Elab_Term_elabRunElab___closed__9;
static lean_object* l_Lean_Elab_Term_elabRunElab___closed__7;
lean_object* l_Lean_stringToMessageData(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__5;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__16;
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__8;
static lean_object* l_Lean_Elab_Term_expandShow___closed__7;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__11;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1(lean_object*);
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__3;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1(lean_object*);
static lean_object* l_Lean_Elab_Term_elabSubst___closed__6;
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__4___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__15;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__4;
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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*);
static lean_object* l_Lean_Elab_Term_expandHave___closed__12;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__4;
lean_object* l_Lean_Elab_Term_instInhabitedTermElabM(lean_object*);
static lean_object* l_Lean_Elab_Term_elabSubst___closed__11;
static lean_object* l_Lean_Elab_Term_mkPairs_loop___closed__5;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__21;
static lean_object* l_Lean_Elab_Term_expandHave___closed__11;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__17;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__7;
LEAN_EXPORT lean_object* l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPPairs_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabSorry___closed__7;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandCDot_x3f_go(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabSubst___closed__18;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPPairs(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__2;
static lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__6;
static lean_object* l_Lean_Elab_Term_expandHave___closed__14;
static lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__4;
static lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__6;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__3;
static lean_object* l_Lean_Elab_Term_hasCDot___closed__4;
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__7;
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__15(lean_object*, lean_object*, size_t, size_t);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__6;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__6;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__6;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__26;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__11;
uint8_t l_Lean_Expr_hasMVar(lean_object*);
static lean_object* l_Lean_Elab_Term_expandAssert___closed__8;
lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(size_t, size_t, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__5;
static lean_object* l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__4;
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabSorry___closed__11;
static lean_object* l_Lean_Elab_Term_expandTuple___closed__5;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab_docString__1(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__30;
static lean_object* l_Lean_Elab_Term_expandTuple___closed__6;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkMPairs(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___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_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__9;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1(lean_object*);
static lean_object* l_Lean_Elab_Term_expandSuffices___closed__6;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandUnreachable___rarg(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__2;
lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabShow___lambda__1(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_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__8;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI__1(lean_object*);
static lean_object* l_Lean_Elab_Term_expandHave___closed__4;
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(lean_object*);
size_t lean_usize_of_nat(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__2;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandHave__1(lean_object*);
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__10;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1(lean_object*);
static lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabPanic___closed__16;
static lean_object* l_Lean_Elab_Term_elabSubst___lambda__4___closed__1;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__9;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__2;
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__11(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__9;
static lean_object* l_Lean_Elab_Term_mkPPairs_loop___closed__7;
LEAN_EXPORT lean_object* l_Array_sequenceMap___at_Lean_Elab_Term_elabRunElab___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getRefPosition___at_Lean_Elab_Term_elabPanic___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__10;
static lean_object* l_Lean_Elab_Term_expandShow___closed__4;
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__7;
static lean_object* l_Lean_Elab_Term_elabSorry___closed__1;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__7;
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__12;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabCoe___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__5;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__15;
lean_object* l_Lean_Elab_Term_withExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___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_Term_expandAssert_declRange__1___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabRunElab___lambda__1___closed__2;
lean_object* lean_st_ref_take(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTypeAscription(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabPanic___closed__7;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__2;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSorry(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__6;
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabStateRefT___boxed(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_Term_elabTrailingParserMacro_declRange__1(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__3;
lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__10;
lean_object* l_Lean_Elab_Term_mkInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__7;
lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_expr_eqv(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabAnonymousCtor___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___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* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__5;
static lean_object* l_Lean_Elab_Term_expandUnreachable___rarg___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__6;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__8;
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__5(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__2;
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getRefPosition___at_Lean_Elab_Term_elabPanic___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__51;
lean_object* l_Lean_instantiateMVars___at___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___spec__7(lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__31;
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__4(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
static lean_object* l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
static lean_object* l_Lean_Elab_Term_elabSorry___closed__2;
static lean_object* l_Lean_Elab_Term_elabShow___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__6;
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__15;
static lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__3;
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(lean_object*);
static lean_object* l_Lean_Elab_Term_elabCoeFunNotation___closed__2;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__7;
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_mkPairs_loop___closed__7;
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__16;
static lean_object* l_Lean_Elab_Term_expandHave___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNoindex___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__1;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__27;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__6;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__1;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1(lean_object*);
lean_object* l_Lean_Meta_kabstract(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_exprToSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__22;
lean_object* l_Lean_Syntax_mkStrLit(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__1;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__1;
lean_object* l_Lean_Expr_abstractM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32;
static lean_object* l_Lean_Elab_Term_elabRunElab___closed__8;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__1;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabPanic___closed__11;
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__19;
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__9;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getKind(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__3;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__36;
lean_object* l_Lean_MessageData_ofFormat(lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__12;
lean_object* lean_expr_instantiate(lean_object*, lean_object*);
lean_object* l_Lean_mkCIdentFrom(lean_object*, lean_object*, uint8_t);
lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*);
uint8_t l_Lean_Expr_isMVar(lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1___boxed(lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__3;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__2;
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__3;
static lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__3;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic__1(lean_object*);
static lean_object* l_Lean_Elab_Term_elabShow___closed__8;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__9;
static lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__16;
lean_object* l_Lean_Expr_forallE___override(lean_object*, lean_object*, lean_object*, uint8_t);
lean_object* l_outOfBounds___rarg(lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__1;
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__2___boxed(lean_object*);
lean_object* l_Lean_quoteNameMk(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandShow(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabShow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__7;
lean_object* lean_st_ref_get(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_mkMPairs_loop___closed__5;
lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(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_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__35;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabShow___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__20;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__6;
static lean_object* l_Lean_Elab_Term_mkPairs_loop___closed__2;
lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__4;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___lambda__1(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_Term_expandTuple___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__4;
static lean_object* l_Lean_Elab_Term_expandTuple___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__7;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabAnonymousCtor___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabSubst___closed__19;
extern lean_object* l_Lean_Elab_Term_termElabAttribute;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__5;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__9(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_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__2;
uint8_t l_Lean_Expr_hasLooseBVars(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__1;
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_markBorrowed(lean_object*);
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_getDeclName_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkMPairs_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__7;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1(lean_object*);
lean_object* l_Lean_Meta_coerceToSort_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__4;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__2;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__20(lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__11;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__6___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__6;
static lean_object* l_Lean_Elab_Term_mkPPairs_loop___closed__2;
static lean_object* l_Lean_Elab_Term_elabCoeSortNotation___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__7;
extern lean_object* l_Lean_levelZero;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__10;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoeFunNotation(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_instInhabitedExpr;
static lean_object* l_Lean_Elab_Term_elabStateRefT___closed__2;
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__1;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshIdent___at_Lean_Elab_Term_expandCDot_x3f_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabAnonymousCtor___spec__4___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__5;
static lean_object* l_Lean_Elab_Term_hasCDot___closed__3;
lean_object* l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__6;
lean_object* l_Lean_Meta_coerceToFunction_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__9;
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__4;
lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1(lean_object*);
static lean_object* l_Lean_Elab_Term_elabShow___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__4;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__21;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoe___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*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__1;
lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__34;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabStateRefT___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_hasCDot___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__6;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_extractMacroScopes(lean_object*);
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__8;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__47;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRunElab___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_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_name_eq(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__4;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabStateRefT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabSubst___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__6;
static lean_object* l_Lean_Elab_Term_elabShow___closed__13;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_mkPairs_loop___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetI(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Elab_macroAttribute;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabShow___closed__12;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__7;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__13;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__1;
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__5;
static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__1;
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandHave___closed__16;
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandHave___closed__7;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__8;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__14(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__18(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandAssert___boxed(lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__9___boxed(lean_object**);
static lean_object* l_Lean_Elab_Term_elabSorry___closed__8;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__7;
lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__19;
static lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__5;
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__13;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable__1(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__5;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1(lean_object*);
static lean_object* l_Lean_Elab_Term_expandAssert___closed__2;
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__3;
lean_object* l_Lean_LocalDecl_fvarId(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__2;
lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_ensureType___spec__1___rarg(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandHave___lambda__2___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__6;
static lean_object* l_Lean_Elab_Term_expandShow___closed__10;
uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__6;
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__3;
static lean_object* l_Lean_Elab_Term_elabPanic___closed__2;
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__4(lean_object*, size_t, size_t);
static lean_object* l_Lean_Elab_Term_expandUnreachable___rarg___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__6(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_Term_elabLetI_declRange__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoe___lambda__1(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_Term_elabStateRefT___lambda__1___closed__2;
static lean_object* l_Lean_Elab_Term_expandSuffices___closed__4;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__6(lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Elab_Term_elabShow___closed__2;
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__9(lean_object*, lean_object*, size_t, size_t);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__5___boxed(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_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__11___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__3;
static lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___closed__1;
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__12;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__14;
static lean_object* l_Lean_Elab_Term_elabPanic___closed__13;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__2;
static lean_object* l_Lean_Elab_Term_mkPairs_loop___closed__6;
static lean_object* l_Lean_Elab_Term_elabRunElab___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRunElab___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_Term_elabAnonymousCtor___closed__9;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__3;
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
uint8_t l_Lean_Environment_contains(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_mkMPairs_loop___closed__6;
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__2(lean_object*);
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabSorry___closed__10;
lean_object* l_Lean_MessageData_ofExpr(lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__10;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__1;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__4;
static lean_object* l_Lean_Elab_Term_expandHave___closed__10;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__3;
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__8;
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__14___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__3;
static lean_object* l_Lean_Elab_Term_expandHave___closed__6;
static lean_object* l_Lean_Elab_Term_elabShow___closed__9;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
static lean_object* l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1___closed__1;
lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandSuffices___closed__3;
static lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__1;
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__5;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1(lean_object*);
static lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__6;
lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__6;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___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_object*);
LEAN_EXPORT lean_object* l_Lean_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_reprint(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__3;
static lean_object* l_Lean_Elab_Term_elabPanic___closed__10;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__5;
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Term_elabAnonymousCtor___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandAssert___closed__12;
static lean_object* l_Lean_Elab_Term_mkPairs_loop___closed__8;
lean_object* l_Lean_ParametricAttribute_setParam___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__6;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandUnreachable___boxed(lean_object*);
static lean_object* l_Lean_Elab_Term_elabSubst___lambda__4___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandUnreachable___rarg___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__1;
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__10;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__1;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__43;
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__6;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabBorrowed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_mkMPairs_loop___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__4;
static lean_object* l_Lean_Elab_Term_expandHave___closed__8;
static lean_object* l_Lean_Elab_Term_elabSorry___closed__9;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__3;
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__13;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__6;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__20;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__4;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry__1(lean_object*);
static lean_object* l_panic___at_Lean_Elab_Term_elabUnsafe___spec__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__20;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandCDot_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1(lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabStateRefT___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_Term_elabTrailingParserMacro_declRange__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandAssert___closed__10;
static lean_object* l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux(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_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandSuffices___closed__9;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__2;
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__16(lean_object*, lean_object*, size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__4;
static lean_object* l_Lean_Elab_Term_expandHave___lambda__4___closed__1;
static lean_object* l_Lean_Elab_Term_expandTuple___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__7;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoeFunNotation___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_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__3___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__3;
lean_object* l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at_Lean_Elab_Term_elabRunElab___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__18;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___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_Term_elabBorrowed___closed__2;
lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__5;
LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabAnonymousCtor___spec__4(lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabHaveI___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__4;
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__3;
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_getFVarLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__6;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__50;
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__5;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__1;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__7;
lean_object* lean_environment_main_module(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandTypeAscription(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandTuple___closed__8;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__2;
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__3___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__3;
static lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__5;
static lean_object* l_Lean_Elab_Term_mkPPairs_loop___closed__3;
LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabLetI___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_hasCDot___boxed(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___lambda__1___boxed(lean_object*);
static lean_object* l_Lean_Elab_Term_mkPPairs_loop___closed__5;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__16(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__6(lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___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*);
static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___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*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNoindex(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_isPrivateNameFromImportedModule(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabPanic___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandSuffices___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1(lean_object*);
static lean_object* l_Lean_Elab_Term_expandHave___closed__15;
static lean_object* l_Lean_Elab_Term_expandUnreachable___rarg___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__33;
lean_object* l_Lean_indentExpr(lean_object*);
uint8_t l_Lean_BinderInfo_isExplicit(uint8_t);
LEAN_EXPORT uint8_t l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___lambda__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1(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_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabAnonymousCtor___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple__1(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__3;
lean_object* l_Lean_mkSepArray(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkMPairs___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__6;
lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__4;
static lean_object* l_Lean_Elab_Term_elabSubst___lambda__6___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__13___rarg(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__2;
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__6;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__5;
static lean_object* l_Lean_Elab_Term_expandSuffices___closed__8;
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandAssert___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__5;
static lean_object* l_Lean_Elab_Term_elabShow___closed__11;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__2;
static lean_object* l_Lean_Elab_Term_mkPPairs_loop___closed__4;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__5;
uint8_t l_Lean_Syntax_isNone(lean_object*);
lean_object* lean_panic_fn(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabRunElab___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabShow___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabSubst___lambda__6___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabHaveI___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_object*);
static lean_object* l_Lean_Elab_Term_elabStateRefT___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__6;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__1;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__1(lean_object*, size_t, size_t, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___closed__1;
static lean_object* l_Lean_Elab_Term_expandTuple___closed__1;
static lean_object* l_Lean_Elab_Term_expandSuffices___closed__1;
lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_sub(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandSuffices(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Expr_getAppFn(lean_object*);
lean_object* l_Lean_Elab_Term_elabTermAndSynthesize(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_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___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*);
extern lean_object* l_Lean_levelOne;
lean_object* l_Array_mkArray1___rarg(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__6;
LEAN_EXPORT lean_object* l_Array_sequenceMap___at_Lean_Elab_Term_elabRunElab___spec__1___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandShow___closed__9;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__12(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___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_Array_anyMUnsafe_any___at_Lean_Elab_Term_hasCDot___spec__1___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabSubst___lambda__6___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__2;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert__1(lean_object*);
lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__13;
lean_object* l_Lean_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandTuple(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabRunElab___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__2;
extern lean_object* l_Lean_Parser_maxPrec;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex__1(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__2;
static lean_object* l_Lean_Elab_Term_hasCDot___closed__2;
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__6;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__15;
static lean_object* l_Lean_Elab_Term_elabUnsafe___closed__1;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f_go___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__4;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__12;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__2;
static lean_object* l_Lean_Elab_Term_elabSorry___closed__3;
lean_object* l_Array_ofSubarray___rarg(lean_object*);
uint8_t l_Lean_LocalDecl_binderInfo(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__3;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__39;
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
static lean_object* l_Lean_Elab_Term_elabShow___closed__7;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1(lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__16;
static lean_object* l_Lean_Elab_Term_expandShow___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandShow___closed__3;
lean_object* l_Array_back___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__4___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_List_reverse___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkAuxDefinitionFor(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__6;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__1;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__49;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___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* l_String_intercalate(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabAnonymousCtor___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe__1(lean_object*);
static lean_object* l_Lean_Elab_Term_elabSubst___lambda__6___closed__6;
uint8_t l_Lean_Syntax_structEq(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__1;
static lean_object* l_Lean_Elab_Term_elabSorry___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__7;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__15;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__4;
lean_object* l_Lean_Elab_Term_evalTerm___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
size_t lean_usize_add(size_t, size_t);
lean_object* l_Lean_Meta_getMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandAssert___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__6;
uint8_t l_Lean_Expr_hasFVar(lean_object*);
static lean_object* l_Lean_Elab_Term_mkPairs_loop___closed__9;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoe___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__7;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabHaveI___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabCoeFunNotation___closed__1;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__10;
static lean_object* l_Lean_Elab_Term_elabRunElab___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__12(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI__1(lean_object*);
static lean_object* l_Lean_Elab_Term_elabRunElab___closed__6;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__2;
lean_object* lean_array_uget(lean_object*, size_t);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__3;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__24;
static lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__2;
size_t lean_array_size(lean_object*);
static lean_object* l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__3;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1(lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__6;
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__10;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52;
static lean_object* l_Lean_Elab_Term_expandAssert___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__7;
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_mkPairs_loop___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRunElab(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_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__4;
static lean_object* l_Lean_Elab_Term_expandHave___lambda__2___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabHaveI(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__3;
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_mkPPairs_loop___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__21;
static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__1;
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__11;
lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabPanic___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__7;
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandDbgTrace(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__5;
static lean_object* l_Lean_Elab_Term_expandHave___lambda__1___closed__1;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices__1(lean_object*);
extern lean_object* l_Lean_Compiler_implementedByAttr;
static lean_object* l_Lean_Elab_Term_elabPanic___closed__15;
static lean_object* l_Lean_Elab_Term_expandAssert___closed__6;
static lean_object* l_Lean_Elab_Term_elabSubst___lambda__6___closed__3;
lean_object* lean_string_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__13___boxed(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro(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_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__41;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__6;
static lean_object* l_Lean_Elab_Term_expandHave___closed__17;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1(lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__3;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__6;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__1;
static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__46;
lean_object* lean_array_get_size(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__3;
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__2;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabShow___closed__10;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__45;
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__6;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__40;
extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandAssert(lean_object*, lean_object*, lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPPairs_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkMPairs_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__7;
lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___spec__1(lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_HygieneInfo_mkIdent(lean_object*, lean_object*, uint8_t);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__1;
lean_object* lean_nat_add(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__8;
static lean_object* l_Lean_Elab_Term_elabSorry___closed__6;
static lean_object* l_Lean_Elab_Term_expandTuple___closed__9;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__6;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__5;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__2;
uint8_t l_Lean_Exception_isRuntime(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__3;
static lean_object* l_Lean_Elab_Term_elabPanic___closed__14;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandShow__1(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__6;
static lean_object* l_Lean_Elab_Term_expandUnreachable___rarg___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandParen(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandSuffices___closed__7;
static lean_object* l_Lean_Elab_Term_elabPanic___closed__6;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst__1(lean_object*);
static lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__4;
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandHave___closed__1;
uint8_t l_Lean_Expr_isFVar(lean_object*);
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__9;
lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__10___boxed(lean_object**);
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__9;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
static lean_object* l_Lean_Elab_Term_expandHave___closed__13;
lean_object* l_Lean_Meta_mkOfNonempty(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_String_toSubstring_x27(lean_object*);
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabSubst___closed__1;
static lean_object* l_Lean_Elab_Term_expandTuple___closed__4;
lean_object* l_Lean_Meta_DiscrTree_mkNoindexAnnotation(lean_object*);
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
static lean_object* l_Lean_Elab_Term_elabBorrowed___closed__1;
static lean_object* l_Lean_Elab_Term_mkMPairs_loop___closed__2;
lean_object* l_Lean_MessageData_ofName(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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_Elab_Term_expandCDot_x3f___closed__3;
lean_object* lean_expr_instantiate1(lean_object*, lean_object*);
lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*);
static lean_object* l_Lean_Elab_Term_mkMPairs_loop___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__3;
lean_object* l_Lean_Elab_Term_withMacroExpansion___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__3;
static lean_object* l_Lean_Elab_Term_elabLetI___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPairs___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__3(lean_object*, size_t, size_t);
static lean_object* l_Lean_Elab_Term_elabPanic___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___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_Term_elabTrailingParserMacro_declRange__1___closed__4;
lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoeSortNotation(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_expandDbgTrace___closed__23;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__10(lean_object*, size_t, size_t, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__3;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__1;
lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRunElab___lambda__2(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandSuffices___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__2(lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__8;
lean_object* l_Lean_Meta_matchEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabHaveI___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__7;
static lean_object* l_Lean_Elab_Term_expandHave___closed__9;
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__11;
lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_mkNumLit(lean_object*, lean_object*);
lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst(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_expandHave(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_hasCDot___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__4;
static lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__48;
static lean_object* l_Lean_Elab_Term_elabSubst___closed__17;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__7___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_Term_elabRunElab_unsafe__2___closed__2;
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__13;
static lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoe___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
lean_inc(x_3);
x_12 = l_Lean_Elab_Term_ensureHasType(x_1, x_2, x_3, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
return x_12;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCoe___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid coercion notation, expected type is not known", 53, 53);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCoe___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabCoe___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoe(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; 
x_10 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_12 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; 
x_13 = lean_ctor_get(x_12, 1);
lean_inc(x_13);
lean_dec(x_12);
x_14 = lean_box(0);
x_15 = 1;
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_16 = l_Lean_Elab_Term_elabTerm(x_11, x_14, x_15, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_13);
if (lean_obj_tag(x_16) == 0)
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_17 = lean_ctor_get(x_16, 1);
lean_inc(x_17);
lean_dec(x_16);
x_18 = l_Lean_Elab_Term_elabCoe___closed__2;
x_19 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_17);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
return x_19;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_21 = lean_ctor_get(x_19, 0);
x_22 = lean_ctor_get(x_19, 1);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_19);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
return x_23;
}
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = lean_ctor_get(x_16, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_16, 1);
lean_inc(x_25);
lean_dec(x_16);
x_26 = l_Lean_Elab_Term_ensureHasType(x_2, x_24, x_14, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_25);
return x_26;
}
}
else
{
uint8_t x_27; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_27 = !lean_is_exclusive(x_16);
if (x_27 == 0)
{
return x_16;
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_28 = lean_ctor_get(x_16, 0);
x_29 = lean_ctor_get(x_16, 1);
lean_inc(x_29);
lean_inc(x_28);
lean_dec(x_16);
x_30 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_29);
return x_30;
}
}
}
else
{
uint8_t x_31; 
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_31 = !lean_is_exclusive(x_12);
if (x_31 == 0)
{
return x_12;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_12, 0);
x_33 = lean_ctor_get(x_12, 1);
lean_inc(x_33);
lean_inc(x_32);
lean_dec(x_12);
x_34 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_34, 0, x_32);
lean_ctor_set(x_34, 1, x_33);
return x_34;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoe___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l_Lean_Elab_Term_elabCoe___lambda__1(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_4);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoe___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Term_elabCoe(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_1);
return x_10;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("coeNotation", 11, 11);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Elab", 4, 4);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Term", 4, 4);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabCoe", 7, 7);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___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_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__6;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Term_termElabAttribute;
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabCoe___boxed), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__7;
x_5 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__9;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(19u);
x_2 = lean_unsigned_to_nat(33u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(25u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__3() {
_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_Term_elabCoe_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(33u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(19u);
x_2 = lean_unsigned_to_nat(37u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(19u);
x_2 = lean_unsigned_to_nat(44u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(37u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(44u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__7;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCoeFunNotation___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("cannot coerce to function", 25, 25);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCoeFunNotation___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabCoeFunNotation___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCoeFunNotation___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCoeFunNotation___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabCoeFunNotation___closed__3;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoeFunNotation(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 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
x_12 = lean_box(0);
x_13 = 1;
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_14 = l_Lean_Elab_Term_elabTerm(x_11, x_12, x_13, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec(x_14);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_15);
x_17 = l_Lean_Meta_coerceToFunction_x3f(x_15, x_5, x_6, x_7, x_8, x_16);
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)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_19 = lean_ctor_get(x_17, 1);
lean_inc(x_19);
lean_dec(x_17);
x_20 = l_Lean_indentExpr(x_15);
x_21 = l_Lean_Elab_Term_elabCoeFunNotation___closed__2;
x_22 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_20);
x_23 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_24 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_24, 0, x_22);
lean_ctor_set(x_24, 1, x_23);
x_25 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_19);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_25;
}
else
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_dec(x_27);
x_28 = lean_ctor_get(x_18, 0);
lean_inc(x_28);
lean_dec(x_18);
lean_ctor_set(x_17, 0, x_28);
return x_17;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 1);
lean_inc(x_29);
lean_dec(x_17);
x_30 = lean_ctor_get(x_18, 0);
lean_inc(x_30);
lean_dec(x_18);
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_30);
lean_ctor_set(x_31, 1, x_29);
return x_31;
}
}
}
else
{
uint8_t x_32; 
lean_dec(x_15);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_32 = !lean_is_exclusive(x_17);
if (x_32 == 0)
{
return x_17;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_17, 0);
x_34 = lean_ctor_get(x_17, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_17);
x_35 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_35, 0, x_33);
lean_ctor_set(x_35, 1, x_34);
return x_35;
}
}
}
else
{
uint8_t x_36; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_36 = !lean_is_exclusive(x_14);
if (x_36 == 0)
{
return x_14;
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_37 = lean_ctor_get(x_14, 0);
x_38 = lean_ctor_get(x_14, 1);
lean_inc(x_38);
lean_inc(x_37);
lean_dec(x_14);
x_39 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_39, 0, x_37);
lean_ctor_set(x_39, 1, x_38);
return x_39;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoeFunNotation___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Term_elabCoeFunNotation(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_2);
lean_dec(x_1);
return x_10;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("coeFunNotation", 14, 14);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabCoeFunNotation", 18, 18);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabCoeFunNotation___boxed), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__4;
x_5 = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__5;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(27u);
x_2 = lean_unsigned_to_nat(36u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_unsigned_to_nat(56u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__3() {
_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_Term_elabCoeFunNotation_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(36u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(56u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(27u);
x_2 = lean_unsigned_to_nat(40u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(27u);
x_2 = lean_unsigned_to_nat(58u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(40u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(58u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCoeSortNotation___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("cannot coerce to sort", 21, 21);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCoeSortNotation___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabCoeSortNotation___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoeSortNotation(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 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
x_12 = lean_box(0);
x_13 = 1;
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_14 = l_Lean_Elab_Term_elabTerm(x_11, x_12, x_13, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec(x_14);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_15);
x_17 = l_Lean_Meta_coerceToSort_x3f(x_15, x_5, x_6, x_7, x_8, x_16);
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)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_19 = lean_ctor_get(x_17, 1);
lean_inc(x_19);
lean_dec(x_17);
x_20 = l_Lean_indentExpr(x_15);
x_21 = l_Lean_Elab_Term_elabCoeSortNotation___closed__2;
x_22 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_20);
x_23 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_24 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_24, 0, x_22);
lean_ctor_set(x_24, 1, x_23);
x_25 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_19);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_25;
}
else
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_dec(x_27);
x_28 = lean_ctor_get(x_18, 0);
lean_inc(x_28);
lean_dec(x_18);
lean_ctor_set(x_17, 0, x_28);
return x_17;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 1);
lean_inc(x_29);
lean_dec(x_17);
x_30 = lean_ctor_get(x_18, 0);
lean_inc(x_30);
lean_dec(x_18);
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_30);
lean_ctor_set(x_31, 1, x_29);
return x_31;
}
}
}
else
{
uint8_t x_32; 
lean_dec(x_15);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_32 = !lean_is_exclusive(x_17);
if (x_32 == 0)
{
return x_17;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_17, 0);
x_34 = lean_ctor_get(x_17, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_17);
x_35 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_35, 0, x_33);
lean_ctor_set(x_35, 1, x_34);
return x_35;
}
}
}
else
{
uint8_t x_36; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_36 = !lean_is_exclusive(x_14);
if (x_36 == 0)
{
return x_14;
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_37 = lean_ctor_get(x_14, 0);
x_38 = lean_ctor_get(x_14, 1);
lean_inc(x_38);
lean_inc(x_37);
lean_dec(x_14);
x_39 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_39, 0, x_37);
lean_ctor_set(x_39, 1, x_38);
return x_39;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCoeSortNotation___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Term_elabCoeSortNotation(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_2);
lean_dec(x_1);
return x_10;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("coeSortNotation", 15, 15);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabCoeSortNotation", 19, 19);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabCoeSortNotation___boxed), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__4;
x_5 = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__5;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(34u);
x_2 = lean_unsigned_to_nat(37u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(39u);
x_2 = lean_unsigned_to_nat(52u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__3() {
_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_Term_elabCoeSortNotation_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(37u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(52u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(34u);
x_2 = lean_unsigned_to_nat(41u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(34u);
x_2 = lean_unsigned_to_nat(60u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(41u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(60u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabAnonymousCtor___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_9 = lean_ctor_get(x_6, 5);
x_10 = lean_ctor_get(x_2, 2);
lean_inc(x_10);
lean_inc(x_10);
x_11 = l_Lean_Elab_getBetterRef(x_9, x_10);
x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_14 = lean_ctor_get(x_12, 0);
x_15 = lean_ctor_get(x_12, 1);
x_16 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_14, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_15);
lean_dec(x_2);
x_17 = !lean_is_exclusive(x_16);
if (x_17 == 0)
{
lean_object* x_18; 
x_18 = lean_ctor_get(x_16, 0);
lean_ctor_set(x_12, 1, x_18);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set_tag(x_16, 1);
lean_ctor_set(x_16, 0, x_12);
return x_16;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_16, 0);
x_20 = lean_ctor_get(x_16, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_16);
lean_ctor_set(x_12, 1, x_19);
lean_ctor_set(x_12, 0, x_11);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_12);
lean_ctor_set(x_21, 1, x_20);
return x_21;
}
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_22 = lean_ctor_get(x_12, 0);
x_23 = lean_ctor_get(x_12, 1);
lean_inc(x_23);
lean_inc(x_22);
lean_dec(x_12);
x_24 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_22, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_23);
lean_dec(x_2);
x_25 = lean_ctor_get(x_24, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_24, 1);
lean_inc(x_26);
if (lean_is_exclusive(x_24)) {
 lean_ctor_release(x_24, 0);
 lean_ctor_release(x_24, 1);
 x_27 = x_24;
} else {
 lean_dec_ref(x_24);
 x_27 = lean_box(0);
}
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_11);
lean_ctor_set(x_28, 1, x_25);
if (lean_is_scalar(x_27)) {
 x_29 = lean_alloc_ctor(1, 2, 0);
} else {
 x_29 = x_27;
 lean_ctor_set_tag(x_29, 1);
}
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_26);
return x_29;
}
}
}
static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("'", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("' is not a constructor", 22, 22);
return x_1;
}
}
static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__3;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
lean_inc(x_2);
lean_inc(x_1);
x_9 = l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; 
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 6)
{
uint8_t x_11; 
lean_dec(x_2);
lean_dec(x_1);
x_11 = !lean_is_exclusive(x_9);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_9, 0);
lean_dec(x_12);
x_13 = lean_ctor_get(x_10, 0);
lean_inc(x_13);
lean_dec(x_10);
lean_ctor_set(x_9, 0, x_13);
return x_9;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_9, 1);
lean_inc(x_14);
lean_dec(x_9);
x_15 = lean_ctor_get(x_10, 0);
lean_inc(x_15);
lean_dec(x_10);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_14);
return x_16;
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_10);
x_17 = lean_ctor_get(x_9, 1);
lean_inc(x_17);
lean_dec(x_9);
x_18 = lean_box(0);
x_19 = l_Lean_Expr_const___override(x_1, x_18);
x_20 = l_Lean_MessageData_ofExpr(x_19);
x_21 = l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__2;
x_22 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_20);
x_23 = l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__4;
x_24 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_24, 0, x_22);
lean_ctor_set(x_24, 1, x_23);
x_25 = l_Lean_throwError___at_Lean_Elab_Term_elabAnonymousCtor___spec__2(x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_17);
return x_25;
}
}
else
{
uint8_t x_26; 
lean_dec(x_2);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_9);
if (x_26 == 0)
{
return x_9;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_27 = lean_ctor_get(x_9, 0);
x_28 = lean_ctor_get(x_9, 1);
lean_inc(x_28);
lean_inc(x_27);
lean_dec(x_9);
x_29 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
return x_29;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Term_elabAnonymousCtor___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
uint8_t x_15; 
x_15 = lean_nat_dec_le(x_5, x_4);
if (x_15 == 0)
{
lean_object* x_16; uint8_t x_17; 
x_16 = lean_unsigned_to_nat(0u);
x_17 = lean_nat_dec_eq(x_3, x_16);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_18 = lean_unsigned_to_nat(1u);
x_19 = lean_nat_sub(x_3, x_18);
lean_dec(x_3);
x_20 = lean_nat_dec_lt(x_4, x_2);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_21 = l_Lean_instInhabitedExpr;
x_22 = l_outOfBounds___rarg(x_21);
lean_inc(x_10);
x_23 = l_Lean_Meta_getFVarLocalDecl(x_22, x_10, x_11, x_12, x_13, x_14);
lean_dec(x_22);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; 
x_24 = lean_ctor_get(x_23, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_23, 1);
lean_inc(x_25);
lean_dec(x_23);
x_26 = l_Lean_LocalDecl_binderInfo(x_24);
lean_dec(x_24);
x_27 = l_Lean_BinderInfo_isExplicit(x_26);
if (x_27 == 0)
{
lean_object* x_28; 
x_28 = lean_nat_add(x_4, x_6);
lean_dec(x_4);
x_3 = x_19;
x_4 = x_28;
x_14 = x_25;
goto _start;
}
else
{
lean_object* x_30; lean_object* x_31; 
x_30 = lean_nat_add(x_7, x_18);
lean_dec(x_7);
x_31 = lean_nat_add(x_4, x_6);
lean_dec(x_4);
x_3 = x_19;
x_4 = x_31;
x_7 = x_30;
x_14 = x_25;
goto _start;
}
}
else
{
uint8_t x_33; 
lean_dec(x_19);
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_4);
x_33 = !lean_is_exclusive(x_23);
if (x_33 == 0)
{
return x_23;
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_34 = lean_ctor_get(x_23, 0);
x_35 = lean_ctor_get(x_23, 1);
lean_inc(x_35);
lean_inc(x_34);
lean_dec(x_23);
x_36 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_36, 0, x_34);
lean_ctor_set(x_36, 1, x_35);
return x_36;
}
}
}
else
{
lean_object* x_37; lean_object* x_38; 
x_37 = lean_array_fget(x_1, x_4);
lean_inc(x_10);
x_38 = l_Lean_Meta_getFVarLocalDecl(x_37, x_10, x_11, x_12, x_13, x_14);
lean_dec(x_37);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_39; lean_object* x_40; uint8_t x_41; uint8_t x_42; 
x_39 = lean_ctor_get(x_38, 0);
lean_inc(x_39);
x_40 = lean_ctor_get(x_38, 1);
lean_inc(x_40);
lean_dec(x_38);
x_41 = l_Lean_LocalDecl_binderInfo(x_39);
lean_dec(x_39);
x_42 = l_Lean_BinderInfo_isExplicit(x_41);
if (x_42 == 0)
{
lean_object* x_43; 
x_43 = lean_nat_add(x_4, x_6);
lean_dec(x_4);
x_3 = x_19;
x_4 = x_43;
x_14 = x_40;
goto _start;
}
else
{
lean_object* x_45; lean_object* x_46; 
x_45 = lean_nat_add(x_7, x_18);
lean_dec(x_7);
x_46 = lean_nat_add(x_4, x_6);
lean_dec(x_4);
x_3 = x_19;
x_4 = x_46;
x_7 = x_45;
x_14 = x_40;
goto _start;
}
}
else
{
uint8_t x_48; 
lean_dec(x_19);
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_4);
x_48 = !lean_is_exclusive(x_38);
if (x_48 == 0)
{
return x_38;
}
else
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_49 = lean_ctor_get(x_38, 0);
x_50 = lean_ctor_get(x_38, 1);
lean_inc(x_50);
lean_inc(x_49);
lean_dec(x_38);
x_51 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_51, 0, x_49);
lean_ctor_set(x_51, 1, x_50);
return x_51;
}
}
}
}
else
{
lean_object* x_52; 
lean_dec(x_10);
lean_dec(x_4);
lean_dec(x_3);
x_52 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_52, 0, x_7);
lean_ctor_set(x_52, 1, x_14);
return x_52;
}
}
else
{
lean_object* x_53; 
lean_dec(x_10);
lean_dec(x_4);
lean_dec(x_3);
x_53 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_53, 0, x_7);
lean_ctor_set(x_53, 1, x_14);
return x_53;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabAnonymousCtor___spec__4___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = lean_apply_9(x_1, x_4, x_5, x_2, x_3, x_6, x_7, x_8, x_9, x_10);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabAnonymousCtor___spec__4___rarg(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabAnonymousCtor___spec__4___rarg___lambda__1), 10, 3);
lean_closure_set(x_11, 0, x_2);
lean_closure_set(x_11, 1, x_4);
lean_closure_set(x_11, 2, x_5);
x_12 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___rarg(x_1, x_11, x_3, x_6, x_7, x_8, x_9, x_10);
if (lean_obj_tag(x_12) == 0)
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
return x_12;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_12, 0);
x_15 = lean_ctor_get(x_12, 1);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_12);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_14);
lean_ctor_set(x_16, 1, x_15);
return x_16;
}
}
else
{
uint8_t x_17; 
x_17 = !lean_is_exclusive(x_12);
if (x_17 == 0)
{
return x_12;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_18 = lean_ctor_get(x_12, 0);
x_19 = lean_ctor_get(x_12, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_12);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_19);
return x_20;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabAnonymousCtor___spec__4(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabAnonymousCtor___spec__4___rarg___boxed), 10, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabAnonymousCtor___spec__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) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_9 = lean_ctor_get(x_6, 5);
x_10 = lean_ctor_get(x_2, 2);
lean_inc(x_10);
lean_inc(x_10);
x_11 = l_Lean_Elab_getBetterRef(x_9, x_10);
x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_14 = lean_ctor_get(x_12, 0);
x_15 = lean_ctor_get(x_12, 1);
x_16 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_14, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_15);
lean_dec(x_2);
x_17 = !lean_is_exclusive(x_16);
if (x_17 == 0)
{
lean_object* x_18; 
x_18 = lean_ctor_get(x_16, 0);
lean_ctor_set(x_12, 1, x_18);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set_tag(x_16, 1);
lean_ctor_set(x_16, 0, x_12);
return x_16;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_16, 0);
x_20 = lean_ctor_get(x_16, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_16);
lean_ctor_set(x_12, 1, x_19);
lean_ctor_set(x_12, 0, x_11);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_12);
lean_ctor_set(x_21, 1, x_20);
return x_21;
}
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_22 = lean_ctor_get(x_12, 0);
x_23 = lean_ctor_get(x_12, 1);
lean_inc(x_23);
lean_inc(x_22);
lean_dec(x_12);
x_24 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_22, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_23);
lean_dec(x_2);
x_25 = lean_ctor_get(x_24, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_24, 1);
lean_inc(x_26);
if (lean_is_exclusive(x_24)) {
 lean_ctor_release(x_24, 0);
 lean_ctor_release(x_24, 1);
 x_27 = x_24;
} else {
 lean_dec_ref(x_24);
 x_27 = lean_box(0);
}
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_11);
lean_ctor_set(x_28, 1, x_25);
if (lean_is_scalar(x_27)) {
 x_29 = lean_alloc_ctor(1, 2, 0);
} else {
 x_29 = x_27;
 lean_ctor_set_tag(x_29, 1);
}
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_26);
return x_29;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_11 = lean_ctor_get(x_1, 3);
lean_inc(x_11);
lean_dec(x_1);
x_12 = lean_array_get_size(x_2);
x_13 = lean_unsigned_to_nat(1u);
x_14 = lean_unsigned_to_nat(0u);
lean_inc(x_12);
x_15 = l_Std_Range_forIn_loop___at_Lean_Elab_Term_elabAnonymousCtor___spec__3(x_2, x_12, x_12, x_11, x_12, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_12);
if (lean_obj_tag(x_15) == 0)
{
uint8_t x_16; 
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
return x_15;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_17 = lean_ctor_get(x_15, 0);
x_18 = lean_ctor_get(x_15, 1);
lean_inc(x_18);
lean_inc(x_17);
lean_dec(x_15);
x_19 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
return x_19;
}
}
else
{
uint8_t x_20; 
x_20 = !lean_is_exclusive(x_15);
if (x_20 == 0)
{
return x_15;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_21 = lean_ctor_get(x_15, 0);
x_22 = lean_ctor_get(x_15, 1);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_15);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
return x_23;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___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:
{
uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_11 = 1;
x_12 = lean_box(x_11);
x_13 = lean_box(x_11);
lean_inc(x_3);
x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
lean_closure_set(x_14, 0, x_3);
lean_closure_set(x_14, 1, x_1);
lean_closure_set(x_14, 2, x_12);
lean_closure_set(x_14, 3, x_13);
x_15 = l_Lean_Elab_Term_withMacroExpansion___rarg(x_2, x_3, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_15;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("⟨", 3, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___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_Term_elabAnonymousCtor___lambda__3___closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(",", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(2);
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__5;
x_3 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("⟩", 3, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("app", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__9;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid constructor ⟨...⟩, insufficient number of arguments, constructs '", 77, 73);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__11;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("' does not have explicit fields, but #", 38, 38);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__13;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" provided", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__15;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_array_get_size(x_3);
x_16 = lean_nat_dec_eq(x_15, x_4);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; 
x_17 = lean_unsigned_to_nat(0u);
x_18 = lean_nat_dec_eq(x_4, x_17);
if (x_18 == 0)
{
lean_object* x_19; 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_19 = lean_unsigned_to_nat(1u);
x_20 = lean_nat_sub(x_4, x_19);
lean_inc(x_20);
lean_inc(x_3);
x_21 = l_Array_toSubarray___rarg(x_3, x_20, x_15);
x_22 = lean_ctor_get(x_12, 5);
lean_inc(x_22);
x_23 = 0;
x_24 = l_Lean_SourceInfo_fromRef(x_22, x_23);
lean_dec(x_22);
x_25 = lean_st_ref_get(x_13, x_14);
x_26 = !lean_is_exclusive(x_25);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; size_t x_31; size_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_27 = lean_ctor_get(x_25, 1);
x_28 = lean_ctor_get(x_25, 0);
lean_dec(x_28);
x_29 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__1;
lean_inc(x_24);
lean_ctor_set_tag(x_25, 2);
lean_ctor_set(x_25, 1, x_29);
lean_ctor_set(x_25, 0, x_24);
x_30 = l_Array_ofSubarray___rarg(x_21);
lean_dec(x_21);
x_31 = lean_array_size(x_30);
x_32 = 0;
x_33 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_31, x_32, x_30);
x_34 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__6;
x_35 = l_Lean_mkSepArray(x_33, x_34);
lean_dec(x_33);
x_36 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
x_37 = l_Array_append___rarg(x_36, x_35);
lean_dec(x_35);
x_38 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_24);
x_39 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_39, 0, x_24);
lean_ctor_set(x_39, 1, x_38);
lean_ctor_set(x_39, 2, x_37);
x_40 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__7;
lean_inc(x_24);
x_41 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_41, 0, x_24);
lean_ctor_set(x_41, 1, x_40);
lean_inc(x_24);
x_42 = l_Lean_Syntax_node3(x_24, x_5, x_25, x_39, x_41);
x_43 = l_Array_toSubarray___rarg(x_3, x_17, x_20);
x_44 = l_Array_ofSubarray___rarg(x_43);
lean_dec(x_43);
x_45 = lean_array_push(x_44, x_42);
x_46 = lean_st_ref_get(x_13, x_27);
x_47 = lean_ctor_get(x_46, 1);
lean_inc(x_47);
lean_dec(x_46);
x_48 = 1;
x_49 = l_Lean_mkCIdentFrom(x_2, x_6, x_48);
x_50 = l_Array_append___rarg(x_36, x_45);
lean_dec(x_45);
lean_inc(x_24);
x_51 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_51, 0, x_24);
lean_ctor_set(x_51, 1, x_38);
lean_ctor_set(x_51, 2, x_50);
x_52 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_53 = l_Lean_Syntax_node2(x_24, x_52, x_49, x_51);
x_54 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__2(x_1, x_2, x_53, x_8, x_9, x_10, x_11, x_12, x_13, x_47);
return x_54;
}
else
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; size_t x_59; size_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t 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_55 = lean_ctor_get(x_25, 1);
lean_inc(x_55);
lean_dec(x_25);
x_56 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__1;
lean_inc(x_24);
x_57 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_57, 0, x_24);
lean_ctor_set(x_57, 1, x_56);
x_58 = l_Array_ofSubarray___rarg(x_21);
lean_dec(x_21);
x_59 = lean_array_size(x_58);
x_60 = 0;
x_61 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_59, x_60, x_58);
x_62 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__6;
x_63 = l_Lean_mkSepArray(x_61, x_62);
lean_dec(x_61);
x_64 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
x_65 = l_Array_append___rarg(x_64, x_63);
lean_dec(x_63);
x_66 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_24);
x_67 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_67, 0, x_24);
lean_ctor_set(x_67, 1, x_66);
lean_ctor_set(x_67, 2, x_65);
x_68 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__7;
lean_inc(x_24);
x_69 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_69, 0, x_24);
lean_ctor_set(x_69, 1, x_68);
lean_inc(x_24);
x_70 = l_Lean_Syntax_node3(x_24, x_5, x_57, x_67, x_69);
x_71 = l_Array_toSubarray___rarg(x_3, x_17, x_20);
x_72 = l_Array_ofSubarray___rarg(x_71);
lean_dec(x_71);
x_73 = lean_array_push(x_72, x_70);
x_74 = lean_st_ref_get(x_13, x_55);
x_75 = lean_ctor_get(x_74, 1);
lean_inc(x_75);
lean_dec(x_74);
x_76 = 1;
x_77 = l_Lean_mkCIdentFrom(x_2, x_6, x_76);
x_78 = l_Array_append___rarg(x_64, x_73);
lean_dec(x_73);
lean_inc(x_24);
x_79 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_79, 0, x_24);
lean_ctor_set(x_79, 1, x_66);
lean_ctor_set(x_79, 2, x_78);
x_80 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_81 = l_Lean_Syntax_node2(x_24, x_80, x_77, x_79);
x_82 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__2(x_1, x_2, x_81, x_8, x_9, x_10, x_11, x_12, x_13, x_75);
return x_82;
}
}
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; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; 
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_83 = l_Lean_MessageData_ofName(x_6);
x_84 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__12;
x_85 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_83);
x_86 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__14;
x_87 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_87, 0, x_85);
lean_ctor_set(x_87, 1, x_86);
x_88 = l___private_Init_Data_Repr_0__Nat_reprFast(x_15);
x_89 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_89, 0, x_88);
x_90 = l_Lean_MessageData_ofFormat(x_89);
x_91 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_91, 0, x_87);
lean_ctor_set(x_91, 1, x_90);
x_92 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__16;
x_93 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_93, 0, x_91);
lean_ctor_set(x_93, 1, x_92);
x_94 = l_Lean_throwError___at_Lean_Elab_Term_elabAnonymousCtor___spec__5(x_93, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
x_95 = !lean_is_exclusive(x_94);
if (x_95 == 0)
{
return x_94;
}
else
{
lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_96 = lean_ctor_get(x_94, 0);
x_97 = lean_ctor_get(x_94, 1);
lean_inc(x_97);
lean_inc(x_96);
lean_dec(x_94);
x_98 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_98, 0, x_96);
lean_ctor_set(x_98, 1, x_97);
return x_98;
}
}
}
else
{
lean_object* x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; 
lean_dec(x_15);
lean_dec(x_5);
x_99 = lean_ctor_get(x_12, 5);
lean_inc(x_99);
x_100 = 0;
x_101 = l_Lean_SourceInfo_fromRef(x_99, x_100);
lean_dec(x_99);
x_102 = lean_st_ref_get(x_13, x_14);
x_103 = lean_ctor_get(x_102, 1);
lean_inc(x_103);
lean_dec(x_102);
x_104 = 1;
x_105 = l_Lean_mkCIdentFrom(x_2, x_6, x_104);
x_106 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
x_107 = l_Array_append___rarg(x_106, x_3);
lean_dec(x_3);
x_108 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_101);
x_109 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_109, 0, x_101);
lean_ctor_set(x_109, 1, x_108);
lean_ctor_set(x_109, 2, x_107);
x_110 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_111 = l_Lean_Syntax_node2(x_101, x_110, x_105, x_109);
x_112 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__2(x_1, x_2, x_111, x_8, x_9, x_10, x_11, x_12, x_13, x_103);
return x_112;
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("' has #", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" explicit fields, but only #", 28, 28);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__3;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___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_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; 
lean_inc(x_7);
lean_inc(x_1);
x_14 = l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1(x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec(x_14);
x_17 = lean_ctor_get(x_15, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_17, 2);
lean_inc(x_18);
lean_dec(x_17);
x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabAnonymousCtor___lambda__1___boxed), 10, 1);
lean_closure_set(x_19, 0, x_15);
x_20 = 0;
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_21 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabAnonymousCtor___spec__4___rarg(x_18, x_19, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_16);
if (lean_obj_tag(x_21) == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; 
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
x_23 = lean_ctor_get(x_21, 1);
lean_inc(x_23);
lean_dec(x_21);
x_24 = l_Lean_Syntax_TSepArray_getElems___rarg(x_2);
x_25 = lean_array_get_size(x_24);
x_26 = lean_nat_dec_lt(x_25, x_22);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; 
lean_dec(x_25);
x_27 = lean_box(0);
x_28 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3(x_3, x_4, x_24, x_22, x_5, x_1, x_27, x_7, x_8, x_9, x_10, x_11, x_12, x_23);
lean_dec(x_22);
return x_28;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; 
lean_dec(x_24);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_29 = l_Lean_MessageData_ofName(x_1);
x_30 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__12;
x_31 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_31, 0, x_30);
lean_ctor_set(x_31, 1, x_29);
x_32 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__2;
x_33 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_33, 0, x_31);
lean_ctor_set(x_33, 1, x_32);
x_34 = l___private_Init_Data_Repr_0__Nat_reprFast(x_22);
x_35 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_35, 0, x_34);
x_36 = l_Lean_MessageData_ofFormat(x_35);
x_37 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_37, 0, x_33);
lean_ctor_set(x_37, 1, x_36);
x_38 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__4;
x_39 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_39, 0, x_37);
lean_ctor_set(x_39, 1, x_38);
x_40 = l___private_Init_Data_Repr_0__Nat_reprFast(x_25);
x_41 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_41, 0, x_40);
x_42 = l_Lean_MessageData_ofFormat(x_41);
x_43 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_43, 0, x_39);
lean_ctor_set(x_43, 1, x_42);
x_44 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__16;
x_45 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_45, 0, x_43);
lean_ctor_set(x_45, 1, x_44);
x_46 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_45, x_7, x_8, x_9, x_10, x_11, x_12, x_23);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_47 = !lean_is_exclusive(x_46);
if (x_47 == 0)
{
return x_46;
}
else
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_48 = lean_ctor_get(x_46, 0);
x_49 = lean_ctor_get(x_46, 1);
lean_inc(x_49);
lean_inc(x_48);
lean_dec(x_46);
x_50 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_50, 0, x_48);
lean_ctor_set(x_50, 1, x_49);
return x_50;
}
}
}
else
{
uint8_t x_51; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_51 = !lean_is_exclusive(x_21);
if (x_51 == 0)
{
return x_21;
}
else
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_52 = lean_ctor_get(x_21, 0);
x_53 = lean_ctor_get(x_21, 1);
lean_inc(x_53);
lean_inc(x_52);
lean_dec(x_21);
x_54 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_54, 0, x_52);
lean_ctor_set(x_54, 1, x_53);
return x_54;
}
}
}
else
{
uint8_t x_55; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_55 = !lean_is_exclusive(x_14);
if (x_55 == 0)
{
return x_14;
}
else
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; 
x_56 = lean_ctor_get(x_14, 0);
x_57 = lean_ctor_get(x_14, 1);
lean_inc(x_57);
lean_inc(x_56);
lean_dec(x_14);
x_58 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_58, 0, x_56);
lean_ctor_set(x_58, 1, x_57);
return x_58;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("anonymousCtor", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabAnonymousCtor___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid constructor ⟨...⟩, expected type must be known", 58, 54);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__3;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid constructor ⟨...⟩, expected type must be an inductive type ", 71, 67);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__5;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid constructor ⟨...⟩, expected type must be an inductive type with only one constructor ", 97, 93);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__7;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid ⟨...⟩ notation, constructor for `", 45, 41);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__9;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("` is marked as private", 22, 22);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__11;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor(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; uint8_t x_11; 
x_10 = l_Lean_Elab_Term_elabAnonymousCtor___closed__2;
lean_inc(x_1);
x_11 = l_Lean_Syntax_isOfKind(x_1, x_10);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_13 = lean_unsigned_to_nat(1u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = l_Lean_Syntax_getArgs(x_14);
lean_dec(x_14);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_16 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_16) == 0)
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; 
lean_dec(x_15);
lean_dec(x_1);
x_17 = lean_ctor_get(x_16, 1);
lean_inc(x_17);
lean_dec(x_16);
x_18 = l_Lean_Elab_Term_elabAnonymousCtor___closed__4;
x_19 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_17);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_20 = lean_ctor_get(x_16, 1);
lean_inc(x_20);
lean_dec(x_16);
x_21 = lean_ctor_get(x_2, 0);
lean_inc(x_21);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_22 = lean_whnf(x_21, x_5, x_6, x_7, x_8, x_20);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_22, 1);
lean_inc(x_24);
lean_dec(x_22);
x_25 = l_Lean_Expr_getAppFn(x_23);
if (lean_obj_tag(x_25) == 4)
{
lean_object* x_26; lean_object* x_27; uint8_t x_28; 
x_26 = lean_ctor_get(x_25, 0);
lean_inc(x_26);
lean_dec(x_25);
x_27 = lean_st_ref_get(x_8, x_24);
x_28 = !lean_is_exclusive(x_27);
if (x_28 == 0)
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_29 = lean_ctor_get(x_27, 0);
x_30 = lean_ctor_get(x_27, 1);
x_31 = lean_ctor_get(x_29, 0);
lean_inc(x_31);
lean_dec(x_29);
x_32 = lean_environment_find(x_31, x_26);
if (lean_obj_tag(x_32) == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
lean_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
x_33 = l_Lean_indentExpr(x_23);
x_34 = l_Lean_Elab_Term_elabAnonymousCtor___closed__6;
lean_ctor_set_tag(x_27, 7);
lean_ctor_set(x_27, 1, x_33);
lean_ctor_set(x_27, 0, x_34);
x_35 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_36 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_36, 0, x_27);
lean_ctor_set(x_36, 1, x_35);
x_37 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_30);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_37;
}
else
{
lean_object* x_38; 
x_38 = lean_ctor_get(x_32, 0);
lean_inc(x_38);
lean_dec(x_32);
if (lean_obj_tag(x_38) == 5)
{
lean_object* x_39; lean_object* x_40; 
x_39 = lean_ctor_get(x_38, 0);
lean_inc(x_39);
lean_dec(x_38);
x_40 = lean_ctor_get(x_39, 4);
lean_inc(x_40);
if (lean_obj_tag(x_40) == 0)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 
lean_dec(x_39);
lean_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
x_41 = l_Lean_indentExpr(x_23);
x_42 = l_Lean_Elab_Term_elabAnonymousCtor___closed__8;
lean_ctor_set_tag(x_27, 7);
lean_ctor_set(x_27, 1, x_41);
lean_ctor_set(x_27, 0, x_42);
x_43 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_44 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_44, 0, x_27);
lean_ctor_set(x_44, 1, x_43);
x_45 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_44, x_3, x_4, x_5, x_6, x_7, x_8, x_30);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_45;
}
else
{
lean_object* x_46; 
lean_free_object(x_27);
x_46 = lean_ctor_get(x_40, 1);
lean_inc(x_46);
if (lean_obj_tag(x_46) == 0)
{
uint8_t x_47; 
lean_dec(x_23);
x_47 = !lean_is_exclusive(x_40);
if (x_47 == 0)
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; 
x_48 = lean_ctor_get(x_40, 0);
x_49 = lean_ctor_get(x_40, 1);
lean_dec(x_49);
x_50 = lean_st_ref_get(x_8, x_30);
x_51 = !lean_is_exclusive(x_50);
if (x_51 == 0)
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; 
x_52 = lean_ctor_get(x_50, 0);
x_53 = lean_ctor_get(x_50, 1);
x_54 = lean_ctor_get(x_52, 0);
lean_inc(x_54);
lean_dec(x_52);
lean_inc(x_48);
x_55 = l_Lean_isPrivateNameFromImportedModule(x_54, x_48);
if (x_55 == 0)
{
lean_object* x_56; lean_object* x_57; 
lean_free_object(x_50);
lean_free_object(x_40);
lean_dec(x_39);
x_56 = lean_box(0);
x_57 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__4(x_48, x_15, x_2, x_1, x_10, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_53);
lean_dec(x_15);
return x_57;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; 
lean_dec(x_48);
lean_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
x_58 = lean_ctor_get(x_39, 0);
lean_inc(x_58);
lean_dec(x_39);
x_59 = lean_ctor_get(x_58, 0);
lean_inc(x_59);
lean_dec(x_58);
x_60 = l_Lean_MessageData_ofName(x_59);
x_61 = l_Lean_Elab_Term_elabAnonymousCtor___closed__10;
lean_ctor_set_tag(x_50, 7);
lean_ctor_set(x_50, 1, x_60);
lean_ctor_set(x_50, 0, x_61);
x_62 = l_Lean_Elab_Term_elabAnonymousCtor___closed__12;
lean_ctor_set_tag(x_40, 7);
lean_ctor_set(x_40, 1, x_62);
lean_ctor_set(x_40, 0, x_50);
x_63 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_40, x_3, x_4, x_5, x_6, x_7, x_8, x_53);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_64 = !lean_is_exclusive(x_63);
if (x_64 == 0)
{
return x_63;
}
else
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_65 = lean_ctor_get(x_63, 0);
x_66 = lean_ctor_get(x_63, 1);
lean_inc(x_66);
lean_inc(x_65);
lean_dec(x_63);
x_67 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_67, 0, x_65);
lean_ctor_set(x_67, 1, x_66);
return x_67;
}
}
}
else
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; 
x_68 = lean_ctor_get(x_50, 0);
x_69 = lean_ctor_get(x_50, 1);
lean_inc(x_69);
lean_inc(x_68);
lean_dec(x_50);
x_70 = lean_ctor_get(x_68, 0);
lean_inc(x_70);
lean_dec(x_68);
lean_inc(x_48);
x_71 = l_Lean_isPrivateNameFromImportedModule(x_70, x_48);
if (x_71 == 0)
{
lean_object* x_72; lean_object* x_73; 
lean_free_object(x_40);
lean_dec(x_39);
x_72 = lean_box(0);
x_73 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__4(x_48, x_15, x_2, x_1, x_10, x_72, x_3, x_4, x_5, x_6, x_7, x_8, x_69);
lean_dec(x_15);
return x_73;
}
else
{
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; 
lean_dec(x_48);
lean_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
x_74 = lean_ctor_get(x_39, 0);
lean_inc(x_74);
lean_dec(x_39);
x_75 = lean_ctor_get(x_74, 0);
lean_inc(x_75);
lean_dec(x_74);
x_76 = l_Lean_MessageData_ofName(x_75);
x_77 = l_Lean_Elab_Term_elabAnonymousCtor___closed__10;
x_78 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_78, 0, x_77);
lean_ctor_set(x_78, 1, x_76);
x_79 = l_Lean_Elab_Term_elabAnonymousCtor___closed__12;
lean_ctor_set_tag(x_40, 7);
lean_ctor_set(x_40, 1, x_79);
lean_ctor_set(x_40, 0, x_78);
x_80 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_40, x_3, x_4, x_5, x_6, x_7, x_8, x_69);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_81 = lean_ctor_get(x_80, 0);
lean_inc(x_81);
x_82 = lean_ctor_get(x_80, 1);
lean_inc(x_82);
if (lean_is_exclusive(x_80)) {
 lean_ctor_release(x_80, 0);
 lean_ctor_release(x_80, 1);
 x_83 = x_80;
} else {
 lean_dec_ref(x_80);
 x_83 = lean_box(0);
}
if (lean_is_scalar(x_83)) {
 x_84 = lean_alloc_ctor(1, 2, 0);
} else {
 x_84 = x_83;
}
lean_ctor_set(x_84, 0, x_81);
lean_ctor_set(x_84, 1, x_82);
return x_84;
}
}
}
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; uint8_t x_91; 
x_85 = lean_ctor_get(x_40, 0);
lean_inc(x_85);
lean_dec(x_40);
x_86 = lean_st_ref_get(x_8, x_30);
x_87 = lean_ctor_get(x_86, 0);
lean_inc(x_87);
x_88 = lean_ctor_get(x_86, 1);
lean_inc(x_88);
if (lean_is_exclusive(x_86)) {
 lean_ctor_release(x_86, 0);
 lean_ctor_release(x_86, 1);
 x_89 = x_86;
} else {
 lean_dec_ref(x_86);
 x_89 = lean_box(0);
}
x_90 = lean_ctor_get(x_87, 0);
lean_inc(x_90);
lean_dec(x_87);
lean_inc(x_85);
x_91 = l_Lean_isPrivateNameFromImportedModule(x_90, x_85);
if (x_91 == 0)
{
lean_object* x_92; lean_object* x_93; 
lean_dec(x_89);
lean_dec(x_39);
x_92 = lean_box(0);
x_93 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__4(x_85, x_15, x_2, x_1, x_10, x_92, x_3, x_4, x_5, x_6, x_7, x_8, x_88);
lean_dec(x_15);
return x_93;
}
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; lean_object* x_104; lean_object* x_105; 
lean_dec(x_85);
lean_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
x_94 = lean_ctor_get(x_39, 0);
lean_inc(x_94);
lean_dec(x_39);
x_95 = lean_ctor_get(x_94, 0);
lean_inc(x_95);
lean_dec(x_94);
x_96 = l_Lean_MessageData_ofName(x_95);
x_97 = l_Lean_Elab_Term_elabAnonymousCtor___closed__10;
if (lean_is_scalar(x_89)) {
 x_98 = lean_alloc_ctor(7, 2, 0);
} else {
 x_98 = x_89;
 lean_ctor_set_tag(x_98, 7);
}
lean_ctor_set(x_98, 0, x_97);
lean_ctor_set(x_98, 1, x_96);
x_99 = l_Lean_Elab_Term_elabAnonymousCtor___closed__12;
x_100 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_100, 0, x_98);
lean_ctor_set(x_100, 1, x_99);
x_101 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_100, x_3, x_4, x_5, x_6, x_7, x_8, x_88);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_102 = lean_ctor_get(x_101, 0);
lean_inc(x_102);
x_103 = lean_ctor_get(x_101, 1);
lean_inc(x_103);
if (lean_is_exclusive(x_101)) {
 lean_ctor_release(x_101, 0);
 lean_ctor_release(x_101, 1);
 x_104 = x_101;
} else {
 lean_dec_ref(x_101);
 x_104 = lean_box(0);
}
if (lean_is_scalar(x_104)) {
 x_105 = lean_alloc_ctor(1, 2, 0);
} else {
 x_105 = x_104;
}
lean_ctor_set(x_105, 0, x_102);
lean_ctor_set(x_105, 1, x_103);
return x_105;
}
}
}
else
{
uint8_t x_106; 
lean_dec(x_39);
lean_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
x_106 = !lean_is_exclusive(x_40);
if (x_106 == 0)
{
lean_object* x_107; lean_object* x_108; uint8_t x_109; 
x_107 = lean_ctor_get(x_40, 1);
lean_dec(x_107);
x_108 = lean_ctor_get(x_40, 0);
lean_dec(x_108);
x_109 = !lean_is_exclusive(x_46);
if (x_109 == 0)
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_110 = lean_ctor_get(x_46, 1);
lean_dec(x_110);
x_111 = lean_ctor_get(x_46, 0);
lean_dec(x_111);
x_112 = l_Lean_indentExpr(x_23);
x_113 = l_Lean_Elab_Term_elabAnonymousCtor___closed__8;
lean_ctor_set_tag(x_46, 7);
lean_ctor_set(x_46, 1, x_112);
lean_ctor_set(x_46, 0, x_113);
x_114 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
lean_ctor_set_tag(x_40, 7);
lean_ctor_set(x_40, 1, x_114);
lean_ctor_set(x_40, 0, x_46);
x_115 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_40, x_3, x_4, x_5, x_6, x_7, x_8, x_30);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_115;
}
else
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
lean_dec(x_46);
x_116 = l_Lean_indentExpr(x_23);
x_117 = l_Lean_Elab_Term_elabAnonymousCtor___closed__8;
x_118 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_116);
x_119 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
lean_ctor_set_tag(x_40, 7);
lean_ctor_set(x_40, 1, x_119);
lean_ctor_set(x_40, 0, x_118);
x_120 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_40, x_3, x_4, x_5, x_6, x_7, x_8, x_30);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_120;
}
}
else
{
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_dec(x_40);
if (lean_is_exclusive(x_46)) {
 lean_ctor_release(x_46, 0);
 lean_ctor_release(x_46, 1);
 x_121 = x_46;
} else {
 lean_dec_ref(x_46);
 x_121 = lean_box(0);
}
x_122 = l_Lean_indentExpr(x_23);
x_123 = l_Lean_Elab_Term_elabAnonymousCtor___closed__8;
if (lean_is_scalar(x_121)) {
 x_124 = lean_alloc_ctor(7, 2, 0);
} else {
 x_124 = x_121;
 lean_ctor_set_tag(x_124, 7);
}
lean_ctor_set(x_124, 0, x_123);
lean_ctor_set(x_124, 1, x_122);
x_125 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_126 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_126, 0, x_124);
lean_ctor_set(x_126, 1, x_125);
x_127 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_126, x_3, x_4, x_5, x_6, x_7, x_8, x_30);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_127;
}
}
}
}
else
{
lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; 
lean_dec(x_38);
lean_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
x_128 = l_Lean_indentExpr(x_23);
x_129 = l_Lean_Elab_Term_elabAnonymousCtor___closed__6;
lean_ctor_set_tag(x_27, 7);
lean_ctor_set(x_27, 1, x_128);
lean_ctor_set(x_27, 0, x_129);
x_130 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_131 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_131, 0, x_27);
lean_ctor_set(x_131, 1, x_130);
x_132 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_131, x_3, x_4, x_5, x_6, x_7, x_8, x_30);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_132;
}
}
}
else
{
lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; 
x_133 = lean_ctor_get(x_27, 0);
x_134 = lean_ctor_get(x_27, 1);
lean_inc(x_134);
lean_inc(x_133);
lean_dec(x_27);
x_135 = lean_ctor_get(x_133, 0);
lean_inc(x_135);
lean_dec(x_133);
x_136 = lean_environment_find(x_135, x_26);
if (lean_obj_tag(x_136) == 0)
{
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_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
x_137 = l_Lean_indentExpr(x_23);
x_138 = l_Lean_Elab_Term_elabAnonymousCtor___closed__6;
x_139 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_139, 0, x_138);
lean_ctor_set(x_139, 1, x_137);
x_140 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_141 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_141, 0, x_139);
lean_ctor_set(x_141, 1, x_140);
x_142 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_141, x_3, x_4, x_5, x_6, x_7, x_8, x_134);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_142;
}
else
{
lean_object* x_143; 
x_143 = lean_ctor_get(x_136, 0);
lean_inc(x_143);
lean_dec(x_136);
if (lean_obj_tag(x_143) == 5)
{
lean_object* x_144; lean_object* x_145; 
x_144 = lean_ctor_get(x_143, 0);
lean_inc(x_144);
lean_dec(x_143);
x_145 = lean_ctor_get(x_144, 4);
lean_inc(x_145);
if (lean_obj_tag(x_145) == 0)
{
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_dec(x_144);
lean_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
x_146 = l_Lean_indentExpr(x_23);
x_147 = l_Lean_Elab_Term_elabAnonymousCtor___closed__8;
x_148 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_148, 0, x_147);
lean_ctor_set(x_148, 1, x_146);
x_149 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_150 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_150, 0, x_148);
lean_ctor_set(x_150, 1, x_149);
x_151 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_150, x_3, x_4, x_5, x_6, x_7, x_8, x_134);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_151;
}
else
{
lean_object* x_152; 
x_152 = lean_ctor_get(x_145, 1);
lean_inc(x_152);
if (lean_obj_tag(x_152) == 0)
{
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; uint8_t x_160; 
lean_dec(x_23);
x_153 = lean_ctor_get(x_145, 0);
lean_inc(x_153);
if (lean_is_exclusive(x_145)) {
 lean_ctor_release(x_145, 0);
 lean_ctor_release(x_145, 1);
 x_154 = x_145;
} else {
 lean_dec_ref(x_145);
 x_154 = lean_box(0);
}
x_155 = lean_st_ref_get(x_8, x_134);
x_156 = lean_ctor_get(x_155, 0);
lean_inc(x_156);
x_157 = lean_ctor_get(x_155, 1);
lean_inc(x_157);
if (lean_is_exclusive(x_155)) {
 lean_ctor_release(x_155, 0);
 lean_ctor_release(x_155, 1);
 x_158 = x_155;
} else {
 lean_dec_ref(x_155);
 x_158 = lean_box(0);
}
x_159 = lean_ctor_get(x_156, 0);
lean_inc(x_159);
lean_dec(x_156);
lean_inc(x_153);
x_160 = l_Lean_isPrivateNameFromImportedModule(x_159, x_153);
if (x_160 == 0)
{
lean_object* x_161; lean_object* x_162; 
lean_dec(x_158);
lean_dec(x_154);
lean_dec(x_144);
x_161 = lean_box(0);
x_162 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__4(x_153, x_15, x_2, x_1, x_10, x_161, x_3, x_4, x_5, x_6, x_7, x_8, x_157);
lean_dec(x_15);
return x_162;
}
else
{
lean_object* x_163; 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; lean_object* x_172; lean_object* x_173; lean_object* x_174; 
lean_dec(x_153);
lean_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
x_163 = lean_ctor_get(x_144, 0);
lean_inc(x_163);
lean_dec(x_144);
x_164 = lean_ctor_get(x_163, 0);
lean_inc(x_164);
lean_dec(x_163);
x_165 = l_Lean_MessageData_ofName(x_164);
x_166 = l_Lean_Elab_Term_elabAnonymousCtor___closed__10;
if (lean_is_scalar(x_158)) {
 x_167 = lean_alloc_ctor(7, 2, 0);
} else {
 x_167 = x_158;
 lean_ctor_set_tag(x_167, 7);
}
lean_ctor_set(x_167, 0, x_166);
lean_ctor_set(x_167, 1, x_165);
x_168 = l_Lean_Elab_Term_elabAnonymousCtor___closed__12;
if (lean_is_scalar(x_154)) {
 x_169 = lean_alloc_ctor(7, 2, 0);
} else {
 x_169 = x_154;
 lean_ctor_set_tag(x_169, 7);
}
lean_ctor_set(x_169, 0, x_167);
lean_ctor_set(x_169, 1, x_168);
x_170 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_169, x_3, x_4, x_5, x_6, x_7, x_8, x_157);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_171 = lean_ctor_get(x_170, 0);
lean_inc(x_171);
x_172 = lean_ctor_get(x_170, 1);
lean_inc(x_172);
if (lean_is_exclusive(x_170)) {
 lean_ctor_release(x_170, 0);
 lean_ctor_release(x_170, 1);
 x_173 = x_170;
} else {
 lean_dec_ref(x_170);
 x_173 = lean_box(0);
}
if (lean_is_scalar(x_173)) {
 x_174 = lean_alloc_ctor(1, 2, 0);
} else {
 x_174 = x_173;
}
lean_ctor_set(x_174, 0, x_171);
lean_ctor_set(x_174, 1, x_172);
return x_174;
}
}
else
{
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; lean_object* x_182; 
lean_dec(x_144);
lean_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_exclusive(x_145)) {
 lean_ctor_release(x_145, 0);
 lean_ctor_release(x_145, 1);
 x_175 = x_145;
} else {
 lean_dec_ref(x_145);
 x_175 = lean_box(0);
}
if (lean_is_exclusive(x_152)) {
 lean_ctor_release(x_152, 0);
 lean_ctor_release(x_152, 1);
 x_176 = x_152;
} else {
 lean_dec_ref(x_152);
 x_176 = lean_box(0);
}
x_177 = l_Lean_indentExpr(x_23);
x_178 = l_Lean_Elab_Term_elabAnonymousCtor___closed__8;
if (lean_is_scalar(x_176)) {
 x_179 = lean_alloc_ctor(7, 2, 0);
} else {
 x_179 = x_176;
 lean_ctor_set_tag(x_179, 7);
}
lean_ctor_set(x_179, 0, x_178);
lean_ctor_set(x_179, 1, x_177);
x_180 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
if (lean_is_scalar(x_175)) {
 x_181 = lean_alloc_ctor(7, 2, 0);
} else {
 x_181 = x_175;
 lean_ctor_set_tag(x_181, 7);
}
lean_ctor_set(x_181, 0, x_179);
lean_ctor_set(x_181, 1, x_180);
x_182 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_181, x_3, x_4, x_5, x_6, x_7, x_8, x_134);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_182;
}
}
}
else
{
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_dec(x_143);
lean_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
x_183 = l_Lean_indentExpr(x_23);
x_184 = l_Lean_Elab_Term_elabAnonymousCtor___closed__6;
x_185 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_185, 0, x_184);
lean_ctor_set(x_185, 1, x_183);
x_186 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_187 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_187, 0, x_185);
lean_ctor_set(x_187, 1, x_186);
x_188 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_187, x_3, x_4, x_5, x_6, x_7, x_8, x_134);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_188;
}
}
}
}
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_dec(x_25);
lean_dec(x_15);
lean_dec(x_2);
lean_dec(x_1);
x_189 = l_Lean_indentExpr(x_23);
x_190 = l_Lean_Elab_Term_elabAnonymousCtor___closed__6;
x_191 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_191, 0, x_190);
lean_ctor_set(x_191, 1, x_189);
x_192 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_193 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_193, 0, x_191);
lean_ctor_set(x_193, 1, x_192);
x_194 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_193, x_3, x_4, x_5, x_6, x_7, x_8, x_24);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_194;
}
}
else
{
uint8_t x_195; 
lean_dec(x_15);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_195 = !lean_is_exclusive(x_22);
if (x_195 == 0)
{
return x_22;
}
else
{
lean_object* x_196; lean_object* x_197; lean_object* x_198; 
x_196 = lean_ctor_get(x_22, 0);
x_197 = lean_ctor_get(x_22, 1);
lean_inc(x_197);
lean_inc(x_196);
lean_dec(x_22);
x_198 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_198, 0, x_196);
lean_ctor_set(x_198, 1, x_197);
return x_198;
}
}
}
}
else
{
uint8_t x_199; 
lean_dec(x_15);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_199 = !lean_is_exclusive(x_16);
if (x_199 == 0)
{
return x_16;
}
else
{
lean_object* x_200; lean_object* x_201; lean_object* x_202; 
x_200 = lean_ctor_get(x_16, 0);
x_201 = lean_ctor_get(x_16, 1);
lean_inc(x_201);
lean_inc(x_200);
lean_dec(x_16);
x_202 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_202, 0, x_200);
lean_ctor_set(x_202, 1, x_201);
return x_202;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabAnonymousCtor___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_throwError___at_Lean_Elab_Term_elabAnonymousCtor___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Term_elabAnonymousCtor___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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; 
x_15 = l_Std_Range_forIn_loop___at_Lean_Elab_Term_elabAnonymousCtor___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabAnonymousCtor___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; 
x_11 = lean_unbox(x_3);
lean_dec(x_3);
x_12 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Term_elabAnonymousCtor___spec__4___rarg(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabAnonymousCtor___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) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_throwError___at_Lean_Elab_Term_elabAnonymousCtor___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___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:
{
lean_object* x_11; 
x_11 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; 
x_15 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
lean_dec(x_7);
lean_dec(x_4);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabAnonymousCtor___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, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; 
x_14 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
lean_dec(x_6);
lean_dec(x_2);
return x_14;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabAnonymousCtor", 17, 17);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabAnonymousCtor), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l_Lean_Elab_Term_elabAnonymousCtor___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(41u);
x_2 = lean_unsigned_to_nat(35u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(77u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__3() {
_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_Term_elabAnonymousCtor_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(35u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(41u);
x_2 = lean_unsigned_to_nat(39u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(41u);
x_2 = lean_unsigned_to_nat(56u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(39u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(56u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabBorrowed___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("borrowed", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabBorrowed___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabBorrowed___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabBorrowed(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; uint8_t x_11; 
x_10 = l_Lean_Elab_Term_elabBorrowed___closed__2;
lean_inc(x_1);
x_11 = l_Lean_Syntax_isOfKind(x_1, x_10);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; 
x_13 = lean_unsigned_to_nat(1u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
lean_dec(x_1);
x_15 = 1;
x_16 = l_Lean_Elab_Term_elabTerm(x_14, x_2, x_15, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_16) == 0)
{
uint8_t x_17; 
x_17 = !lean_is_exclusive(x_16);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; 
x_18 = lean_ctor_get(x_16, 0);
x_19 = l_Lean_markBorrowed(x_18);
lean_ctor_set(x_16, 0, x_19);
return x_16;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_20 = lean_ctor_get(x_16, 0);
x_21 = lean_ctor_get(x_16, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_16);
x_22 = l_Lean_markBorrowed(x_20);
x_23 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_23, 0, x_22);
lean_ctor_set(x_23, 1, x_21);
return x_23;
}
}
else
{
uint8_t x_24; 
x_24 = !lean_is_exclusive(x_16);
if (x_24 == 0)
{
return x_16;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_ctor_get(x_16, 0);
x_26 = lean_ctor_get(x_16, 1);
lean_inc(x_26);
lean_inc(x_25);
lean_dec(x_16);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
return x_27;
}
}
}
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabBorrowed", 12, 12);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBorrowed), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l_Lean_Elab_Term_elabBorrowed___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(79u);
x_2 = lean_unsigned_to_nat(30u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(82u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__3() {
_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_Term_elabBorrowed_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(30u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(79u);
x_2 = lean_unsigned_to_nat(34u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(79u);
x_2 = lean_unsigned_to_nat(46u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(34u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(46u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandShow___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("show", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandShow___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandShow___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandShow___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("byTactic'", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandShow___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandShow___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandShow___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("fromTerm", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandShow___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandShow___closed__5;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandShow___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("from", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandShow___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("byTactic", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandShow___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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandShow___closed__8;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandShow___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("by", 2, 2);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandShow(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_Elab_Term_expandShow___closed__2;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_8 = lean_unsigned_to_nat(1u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(2u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
lean_dec(x_1);
x_12 = l_Lean_Elab_Term_expandShow___closed__4;
lean_inc(x_11);
x_13 = l_Lean_Syntax_isOfKind(x_11, x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_11);
lean_dec(x_9);
x_14 = lean_box(1);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_3);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_16 = lean_unsigned_to_nat(0u);
x_17 = l_Lean_Syntax_getArg(x_11, x_16);
x_18 = l_Lean_Syntax_getArg(x_11, x_8);
lean_dec(x_11);
x_19 = lean_ctor_get(x_2, 5);
x_20 = 0;
x_21 = l_Lean_SourceInfo_fromRef(x_19, x_20);
x_22 = l_Lean_Elab_Term_expandShow___closed__1;
lean_inc(x_21);
x_23 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
x_24 = l_Lean_Elab_Term_expandShow___closed__7;
lean_inc(x_21);
x_25 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_25, 0, x_21);
lean_ctor_set(x_25, 1, x_24);
x_26 = 1;
x_27 = l_Lean_SourceInfo_fromRef(x_17, x_26);
lean_dec(x_17);
x_28 = l_Lean_Elab_Term_expandShow___closed__10;
x_29 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
x_30 = l_Lean_Elab_Term_expandShow___closed__9;
lean_inc(x_21);
x_31 = l_Lean_Syntax_node2(x_21, x_30, x_29, x_18);
x_32 = l_Lean_Elab_Term_expandShow___closed__6;
lean_inc(x_21);
x_33 = l_Lean_Syntax_node2(x_21, x_32, x_25, x_31);
x_34 = l_Lean_Syntax_node3(x_21, x_4, x_23, x_9, x_33);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_34);
lean_ctor_set(x_35, 1, x_3);
return x_35;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandShow___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Elab_Term_expandShow(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandShow", 10, 10);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_macroAttribute;
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandShow___boxed), 3, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandShow__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3;
x_3 = l_Lean_Elab_Term_expandShow___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__4;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(84u);
x_2 = lean_unsigned_to_nat(39u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(87u);
x_2 = lean_unsigned_to_nat(54u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__3() {
_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_Term_expandShow_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(39u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(54u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(84u);
x_2 = lean_unsigned_to_nat(43u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(84u);
x_2 = lean_unsigned_to_nat(53u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(43u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(53u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabShow___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabShow___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) {
_start:
{
lean_object* x_10; 
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_10 = l_Lean_Elab_Term_elabType(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_2) == 0)
{
uint8_t x_11; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
return x_10;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = lean_ctor_get(x_10, 1);
lean_inc(x_13);
lean_inc(x_12);
lean_dec(x_10);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set(x_14, 1, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_15 = lean_ctor_get(x_10, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_10, 1);
lean_inc(x_16);
lean_dec(x_10);
x_17 = lean_ctor_get(x_2, 0);
lean_inc(x_17);
lean_dec(x_2);
lean_inc(x_15);
x_18 = l_Lean_Meta_isExprDefEq(x_17, x_15, x_5, x_6, x_7, x_8, x_16);
if (lean_obj_tag(x_18) == 0)
{
uint8_t x_19; 
x_19 = !lean_is_exclusive(x_18);
if (x_19 == 0)
{
lean_object* x_20; 
x_20 = lean_ctor_get(x_18, 0);
lean_dec(x_20);
lean_ctor_set(x_18, 0, x_15);
return x_18;
}
else
{
lean_object* x_21; lean_object* x_22; 
x_21 = lean_ctor_get(x_18, 1);
lean_inc(x_21);
lean_dec(x_18);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_15);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
else
{
uint8_t x_23; 
lean_dec(x_15);
x_23 = !lean_is_exclusive(x_18);
if (x_23 == 0)
{
return x_18;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = lean_ctor_get(x_18, 0);
x_25 = lean_ctor_get(x_18, 1);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_18);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_24);
lean_ctor_set(x_26, 1, x_25);
return x_26;
}
}
}
}
else
{
uint8_t x_27; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
x_27 = !lean_is_exclusive(x_10);
if (x_27 == 0)
{
return x_10;
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_28 = lean_ctor_get(x_10, 0);
x_29 = lean_ctor_get(x_10, 1);
lean_inc(x_29);
lean_inc(x_28);
lean_dec(x_10);
x_30 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_29);
return x_30;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("this", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabShow___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("let_fun", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabShow___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("letDecl", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabShow___closed__5;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("letIdDecl", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__8() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabShow___closed__7;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("typeSpec", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__10() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabShow___closed__9;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":=", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabShow___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(";", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabShow(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; uint8_t x_11; 
x_10 = l_Lean_Elab_Term_expandShow___closed__2;
lean_inc(x_1);
x_11 = l_Lean_Syntax_isOfKind(x_1, x_10);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_13 = lean_unsigned_to_nat(1u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = lean_unsigned_to_nat(2u);
x_16 = l_Lean_Syntax_getArg(x_1, x_15);
x_17 = l_Lean_Elab_Term_expandShow___closed__6;
lean_inc(x_16);
x_18 = l_Lean_Syntax_isOfKind(x_16, x_17);
if (x_18 == 0)
{
lean_object* x_19; 
lean_dec(x_16);
lean_dec(x_14);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_19 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; 
x_20 = l_Lean_Syntax_getArg(x_16, x_13);
lean_dec(x_16);
lean_inc(x_2);
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabShow___lambda__2), 9, 2);
lean_closure_set(x_21, 0, x_14);
lean_closure_set(x_21, 1, x_2);
x_22 = 0;
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_23 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(x_21, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; 
x_24 = lean_ctor_get(x_23, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_23, 1);
lean_inc(x_25);
lean_dec(x_23);
x_26 = l_Lean_Elab_Term_elabShow___closed__2;
x_27 = 0;
x_28 = l_Lean_mkIdentFrom(x_1, x_26, x_27);
lean_dec(x_1);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_29 = l_Lean_Elab_Term_exprToSyntax(x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_25);
if (lean_obj_tag(x_29) == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; 
x_30 = lean_ctor_get(x_29, 0);
lean_inc(x_30);
x_31 = lean_ctor_get(x_29, 1);
lean_inc(x_31);
lean_dec(x_29);
x_32 = lean_ctor_get(x_7, 5);
lean_inc(x_32);
x_33 = l_Lean_SourceInfo_fromRef(x_32, x_27);
lean_dec(x_32);
x_34 = lean_st_ref_get(x_8, x_31);
x_35 = !lean_is_exclusive(x_34);
if (x_35 == 0)
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; 
x_36 = lean_ctor_get(x_34, 1);
x_37 = lean_ctor_get(x_34, 0);
lean_dec(x_37);
x_38 = l_Lean_Elab_Term_elabShow___closed__3;
lean_inc(x_33);
lean_ctor_set_tag(x_34, 2);
lean_ctor_set(x_34, 1, x_38);
lean_ctor_set(x_34, 0, x_33);
x_39 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
x_40 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
lean_inc(x_33);
x_41 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_41, 0, x_33);
lean_ctor_set(x_41, 1, x_39);
lean_ctor_set(x_41, 2, x_40);
x_42 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_33);
x_43 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_43, 0, x_33);
lean_ctor_set(x_43, 1, x_42);
x_44 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_33);
x_45 = l_Lean_Syntax_node2(x_33, x_44, x_43, x_30);
lean_inc(x_33);
x_46 = l_Lean_Syntax_node1(x_33, x_39, x_45);
x_47 = l_Lean_Elab_Term_elabShow___closed__12;
lean_inc(x_33);
x_48 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_48, 0, x_33);
lean_ctor_set(x_48, 1, x_47);
x_49 = l_Lean_Elab_Term_elabShow___closed__8;
lean_inc(x_28);
lean_inc(x_33);
x_50 = l_Lean_Syntax_node5(x_33, x_49, x_28, x_41, x_46, x_48, x_20);
x_51 = l_Lean_Elab_Term_elabShow___closed__6;
lean_inc(x_33);
x_52 = l_Lean_Syntax_node1(x_33, x_51, x_50);
x_53 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_33);
x_54 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_54, 0, x_33);
lean_ctor_set(x_54, 1, x_53);
x_55 = l_Lean_Elab_Term_elabShow___closed__4;
x_56 = l_Lean_Syntax_node4(x_33, x_55, x_34, x_52, x_54, x_28);
x_57 = 1;
x_58 = l_Lean_Elab_Term_elabTerm(x_56, x_2, x_57, x_57, x_3, x_4, x_5, x_6, x_7, x_8, x_36);
return x_58;
}
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; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; 
x_59 = lean_ctor_get(x_34, 1);
lean_inc(x_59);
lean_dec(x_34);
x_60 = l_Lean_Elab_Term_elabShow___closed__3;
lean_inc(x_33);
x_61 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_61, 0, x_33);
lean_ctor_set(x_61, 1, x_60);
x_62 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
x_63 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
lean_inc(x_33);
x_64 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_64, 0, x_33);
lean_ctor_set(x_64, 1, x_62);
lean_ctor_set(x_64, 2, x_63);
x_65 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_33);
x_66 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_66, 0, x_33);
lean_ctor_set(x_66, 1, x_65);
x_67 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_33);
x_68 = l_Lean_Syntax_node2(x_33, x_67, x_66, x_30);
lean_inc(x_33);
x_69 = l_Lean_Syntax_node1(x_33, x_62, x_68);
x_70 = l_Lean_Elab_Term_elabShow___closed__12;
lean_inc(x_33);
x_71 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_71, 0, x_33);
lean_ctor_set(x_71, 1, x_70);
x_72 = l_Lean_Elab_Term_elabShow___closed__8;
lean_inc(x_28);
lean_inc(x_33);
x_73 = l_Lean_Syntax_node5(x_33, x_72, x_28, x_64, x_69, x_71, x_20);
x_74 = l_Lean_Elab_Term_elabShow___closed__6;
lean_inc(x_33);
x_75 = l_Lean_Syntax_node1(x_33, x_74, x_73);
x_76 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_33);
x_77 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_77, 0, x_33);
lean_ctor_set(x_77, 1, x_76);
x_78 = l_Lean_Elab_Term_elabShow___closed__4;
x_79 = l_Lean_Syntax_node4(x_33, x_78, x_61, x_75, x_77, x_28);
x_80 = 1;
x_81 = l_Lean_Elab_Term_elabTerm(x_79, x_2, x_80, x_80, x_3, x_4, x_5, x_6, x_7, x_8, x_59);
return x_81;
}
}
else
{
uint8_t x_82; 
lean_dec(x_28);
lean_dec(x_20);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_82 = !lean_is_exclusive(x_29);
if (x_82 == 0)
{
return x_29;
}
else
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; 
x_83 = lean_ctor_get(x_29, 0);
x_84 = lean_ctor_get(x_29, 1);
lean_inc(x_84);
lean_inc(x_83);
lean_dec(x_29);
x_85 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_85, 0, x_83);
lean_ctor_set(x_85, 1, x_84);
return x_85;
}
}
}
else
{
uint8_t x_86; 
lean_dec(x_20);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_86 = !lean_is_exclusive(x_23);
if (x_86 == 0)
{
return x_23;
}
else
{
lean_object* x_87; lean_object* x_88; lean_object* x_89; 
x_87 = lean_ctor_get(x_23, 0);
x_88 = lean_ctor_get(x_23, 1);
lean_inc(x_88);
lean_inc(x_87);
lean_dec(x_23);
x_89 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_89, 0, x_87);
lean_ctor_set(x_89, 1, x_88);
return x_89;
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabShow___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Term_elabShow___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_10;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabShow", 8, 8);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabShow), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabShow__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l_Lean_Elab_Term_expandShow___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(89u);
x_2 = lean_unsigned_to_nat(43u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(122u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__3() {
_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_Term_elabShow_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(43u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(89u);
x_2 = lean_unsigned_to_nat(47u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(89u);
x_2 = lean_unsigned_to_nat(55u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(47u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(55u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___lambda__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
x_2 = l_Array_append___rarg(x_1, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_9 = lean_unsigned_to_nat(4u);
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
x_11 = lean_unsigned_to_nat(3u);
x_12 = l_Lean_Syntax_getArg(x_2, x_11);
x_13 = lean_ctor_get(x_7, 5);
x_14 = 0;
x_15 = l_Lean_SourceInfo_fromRef(x_13, x_14);
x_16 = l_Lean_Elab_Term_elabShow___closed__3;
lean_inc(x_15);
x_17 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
x_18 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
x_19 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
lean_inc(x_15);
x_20 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_20, 0, x_15);
lean_ctor_set(x_20, 1, x_18);
lean_ctor_set(x_20, 2, x_19);
x_21 = l_Lean_Elab_Term_elabShow___closed__12;
lean_inc(x_15);
x_22 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_22, 0, x_15);
lean_ctor_set(x_22, 1, x_21);
x_23 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_15);
x_24 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_24, 0, x_15);
lean_ctor_set(x_24, 1, x_23);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_25 = l_Lean_Elab_Term_expandHave___lambda__1___closed__1;
lean_inc(x_15);
x_26 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_26, 0, x_15);
lean_ctor_set(x_26, 1, x_18);
lean_ctor_set(x_26, 2, x_25);
lean_inc(x_15);
x_27 = l_Lean_Syntax_node5(x_15, x_3, x_4, x_20, x_26, x_22, x_10);
x_28 = l_Lean_Elab_Term_elabShow___closed__6;
lean_inc(x_15);
x_29 = l_Lean_Syntax_node1(x_15, x_28, x_27);
x_30 = l_Lean_Elab_Term_elabShow___closed__4;
x_31 = l_Lean_Syntax_node4(x_15, x_30, x_17, x_29, x_24, x_12);
x_32 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_32, 0, x_31);
lean_ctor_set(x_32, 1, x_8);
return x_32;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 
x_33 = lean_ctor_get(x_6, 0);
lean_inc(x_33);
lean_dec(x_6);
x_34 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_15);
x_35 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_35, 0, x_15);
lean_ctor_set(x_35, 1, x_34);
x_36 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_15);
x_37 = l_Lean_Syntax_node2(x_15, x_36, x_35, x_33);
x_38 = l_Array_mkArray1___rarg(x_37);
x_39 = l_Array_append___rarg(x_19, x_38);
lean_dec(x_38);
lean_inc(x_15);
x_40 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_40, 0, x_15);
lean_ctor_set(x_40, 1, x_18);
lean_ctor_set(x_40, 2, x_39);
lean_inc(x_15);
x_41 = l_Lean_Syntax_node5(x_15, x_3, x_4, x_20, x_40, x_22, x_10);
x_42 = l_Lean_Elab_Term_elabShow___closed__6;
lean_inc(x_15);
x_43 = l_Lean_Syntax_node1(x_15, x_42, x_41);
x_44 = l_Lean_Elab_Term_elabShow___closed__4;
x_45 = l_Lean_Syntax_node4(x_15, x_44, x_17, x_43, x_24, x_12);
x_46 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_46, 0, x_45);
lean_ctor_set(x_46, 1, x_8);
return x_46;
}
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("letEqnsDecl", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___lambda__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandHave___lambda__2___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___lambda__2___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___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) {
_start:
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_10 = lean_unsigned_to_nat(3u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
x_12 = l_Lean_Syntax_getArg(x_2, x_10);
x_13 = l_Lean_Syntax_getArgs(x_3);
x_14 = lean_ctor_get(x_8, 5);
x_15 = 0;
x_16 = l_Lean_SourceInfo_fromRef(x_14, x_15);
x_17 = l_Lean_Elab_Term_elabShow___closed__3;
lean_inc(x_16);
x_18 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_18, 0, x_16);
lean_ctor_set(x_18, 1, x_17);
x_19 = 1;
x_20 = l_Lean_SourceInfo_fromRef(x_4, x_19);
x_21 = l_Lean_Elab_Term_expandHave___lambda__2___closed__3;
x_22 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
lean_inc(x_16);
x_23 = l_Lean_Syntax_node1(x_16, x_5, x_22);
x_24 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
x_25 = l_Array_append___rarg(x_24, x_13);
lean_dec(x_13);
x_26 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_16);
x_27 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_27, 0, x_16);
lean_ctor_set(x_27, 1, x_26);
lean_ctor_set(x_27, 2, x_25);
x_28 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_16);
x_29 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_29, 0, x_16);
lean_ctor_set(x_29, 1, x_28);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_30 = l_Lean_Elab_Term_expandHave___lambda__1___closed__1;
lean_inc(x_16);
x_31 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_31, 0, x_16);
lean_ctor_set(x_31, 1, x_26);
lean_ctor_set(x_31, 2, x_30);
x_32 = l_Lean_Elab_Term_expandHave___lambda__2___closed__2;
lean_inc(x_16);
x_33 = l_Lean_Syntax_node4(x_16, x_32, x_23, x_27, x_31, x_11);
x_34 = l_Lean_Elab_Term_elabShow___closed__6;
lean_inc(x_16);
x_35 = l_Lean_Syntax_node1(x_16, x_34, x_33);
x_36 = l_Lean_Elab_Term_elabShow___closed__4;
x_37 = l_Lean_Syntax_node4(x_16, x_36, x_18, x_35, x_29, x_12);
x_38 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_38, 0, x_37);
lean_ctor_set(x_38, 1, x_9);
return x_38;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; 
x_39 = lean_ctor_get(x_7, 0);
lean_inc(x_39);
lean_dec(x_7);
x_40 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_16);
x_41 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_41, 0, x_16);
lean_ctor_set(x_41, 1, x_40);
x_42 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_16);
x_43 = l_Lean_Syntax_node2(x_16, x_42, x_41, x_39);
x_44 = l_Array_mkArray1___rarg(x_43);
x_45 = l_Array_append___rarg(x_24, x_44);
lean_dec(x_44);
lean_inc(x_16);
x_46 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_46, 0, x_16);
lean_ctor_set(x_46, 1, x_26);
lean_ctor_set(x_46, 2, x_45);
x_47 = l_Lean_Elab_Term_expandHave___lambda__2___closed__2;
lean_inc(x_16);
x_48 = l_Lean_Syntax_node4(x_16, x_47, x_23, x_27, x_46, x_11);
x_49 = l_Lean_Elab_Term_elabShow___closed__6;
lean_inc(x_16);
x_50 = l_Lean_Syntax_node1(x_16, x_49, x_48);
x_51 = l_Lean_Elab_Term_elabShow___closed__4;
x_52 = l_Lean_Syntax_node4(x_16, x_51, x_18, x_50, x_29, x_12);
x_53 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set(x_53, 1, x_9);
return x_53;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___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; lean_object* x_11; lean_object* x_12; 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_9 = lean_unsigned_to_nat(3u);
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
x_11 = l_Lean_Syntax_getArg(x_2, x_9);
x_12 = l_Lean_Syntax_getArgs(x_3);
x_13 = lean_ctor_get(x_7, 5);
x_14 = 0;
x_15 = l_Lean_SourceInfo_fromRef(x_13, x_14);
x_16 = l_Lean_Elab_Term_elabShow___closed__3;
lean_inc(x_15);
x_17 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
x_18 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
x_19 = l_Array_append___rarg(x_18, x_12);
lean_dec(x_12);
x_20 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_15);
x_21 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_21, 0, x_15);
lean_ctor_set(x_21, 1, x_20);
lean_ctor_set(x_21, 2, x_19);
x_22 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_15);
x_23 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_23, 0, x_15);
lean_ctor_set(x_23, 1, x_22);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_24 = l_Lean_Elab_Term_expandHave___lambda__1___closed__1;
lean_inc(x_15);
x_25 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_25, 0, x_15);
lean_ctor_set(x_25, 1, x_20);
lean_ctor_set(x_25, 2, x_24);
x_26 = l_Lean_Elab_Term_expandHave___lambda__2___closed__2;
lean_inc(x_15);
x_27 = l_Lean_Syntax_node4(x_15, x_26, x_4, x_21, x_25, x_10);
x_28 = l_Lean_Elab_Term_elabShow___closed__6;
lean_inc(x_15);
x_29 = l_Lean_Syntax_node1(x_15, x_28, x_27);
x_30 = l_Lean_Elab_Term_elabShow___closed__4;
x_31 = l_Lean_Syntax_node4(x_15, x_30, x_17, x_29, x_23, x_11);
x_32 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_32, 0, x_31);
lean_ctor_set(x_32, 1, x_8);
return x_32;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 
x_33 = lean_ctor_get(x_6, 0);
lean_inc(x_33);
lean_dec(x_6);
x_34 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_15);
x_35 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_35, 0, x_15);
lean_ctor_set(x_35, 1, x_34);
x_36 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_15);
x_37 = l_Lean_Syntax_node2(x_15, x_36, x_35, x_33);
x_38 = l_Array_mkArray1___rarg(x_37);
x_39 = l_Array_append___rarg(x_18, x_38);
lean_dec(x_38);
lean_inc(x_15);
x_40 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_40, 0, x_15);
lean_ctor_set(x_40, 1, x_20);
lean_ctor_set(x_40, 2, x_39);
x_41 = l_Lean_Elab_Term_expandHave___lambda__2___closed__2;
lean_inc(x_15);
x_42 = l_Lean_Syntax_node4(x_15, x_41, x_4, x_21, x_40, x_10);
x_43 = l_Lean_Elab_Term_elabShow___closed__6;
lean_inc(x_15);
x_44 = l_Lean_Syntax_node1(x_15, x_43, x_42);
x_45 = l_Lean_Elab_Term_elabShow___closed__4;
x_46 = l_Lean_Syntax_node4(x_15, x_45, x_17, x_44, x_23, x_11);
x_47 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_47, 0, x_46);
lean_ctor_set(x_47, 1, x_8);
return x_47;
}
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___lambda__4___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("have", 4, 4);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___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_object* x_12) {
_start:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_13 = lean_unsigned_to_nat(3u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = l_Lean_Syntax_getArg(x_2, x_13);
x_16 = l_Lean_Syntax_getArgs(x_3);
x_17 = lean_ctor_get(x_11, 5);
x_18 = 0;
x_19 = l_Lean_SourceInfo_fromRef(x_17, x_18);
x_20 = l_Lean_Elab_Term_expandHave___lambda__4___closed__1;
lean_inc(x_19);
x_21 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set(x_21, 1, x_20);
x_22 = l_Lean_Elab_Term_elabShow___closed__2;
x_23 = 1;
x_24 = l_Lean_HygieneInfo_mkIdent(x_4, x_22, x_23);
lean_inc(x_19);
x_25 = l_Lean_Syntax_node1(x_19, x_5, x_24);
x_26 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
x_27 = l_Array_append___rarg(x_26, x_16);
lean_dec(x_16);
x_28 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_19);
x_29 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_29, 0, x_19);
lean_ctor_set(x_29, 1, x_28);
lean_ctor_set(x_29, 2, x_27);
x_30 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_19);
x_31 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_31, 0, x_19);
lean_ctor_set(x_31, 1, x_30);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_32 = l_Lean_Elab_Term_expandHave___lambda__1___closed__1;
lean_inc(x_19);
x_33 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_33, 0, x_19);
lean_ctor_set(x_33, 1, x_28);
lean_ctor_set(x_33, 2, x_32);
lean_inc(x_19);
x_34 = l_Lean_Syntax_node4(x_19, x_6, x_25, x_29, x_33, x_14);
lean_inc(x_19);
x_35 = l_Lean_Syntax_node1(x_19, x_7, x_34);
x_36 = l_Lean_Syntax_node4(x_19, x_8, x_21, x_35, x_31, x_15);
x_37 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_37, 0, x_36);
lean_ctor_set(x_37, 1, x_12);
return x_37;
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_38 = lean_ctor_get(x_10, 0);
lean_inc(x_38);
lean_dec(x_10);
x_39 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_19);
x_40 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_40, 0, x_19);
lean_ctor_set(x_40, 1, x_39);
x_41 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_19);
x_42 = l_Lean_Syntax_node2(x_19, x_41, x_40, x_38);
x_43 = l_Array_mkArray1___rarg(x_42);
x_44 = l_Array_append___rarg(x_26, x_43);
lean_dec(x_43);
lean_inc(x_19);
x_45 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_45, 0, x_19);
lean_ctor_set(x_45, 1, x_28);
lean_ctor_set(x_45, 2, x_44);
lean_inc(x_19);
x_46 = l_Lean_Syntax_node4(x_19, x_6, x_25, x_29, x_45, x_14);
lean_inc(x_19);
x_47 = l_Lean_Syntax_node1(x_19, x_7, x_46);
x_48 = l_Lean_Syntax_node4(x_19, x_8, x_21, x_47, x_31, x_15);
x_49 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_49, 0, x_48);
lean_ctor_set(x_49, 1, x_12);
return x_49;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___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) {
_start:
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_10 = lean_unsigned_to_nat(4u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
x_12 = lean_unsigned_to_nat(3u);
x_13 = l_Lean_Syntax_getArg(x_2, x_12);
x_14 = l_Lean_Syntax_getArgs(x_3);
x_15 = lean_ctor_get(x_8, 5);
x_16 = 0;
x_17 = l_Lean_SourceInfo_fromRef(x_15, x_16);
x_18 = l_Lean_Elab_Term_elabShow___closed__3;
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 = 1;
x_21 = l_Lean_SourceInfo_fromRef(x_4, x_20);
x_22 = l_Lean_Elab_Term_expandHave___lambda__2___closed__3;
x_23 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
lean_inc(x_17);
x_24 = l_Lean_Syntax_node1(x_17, x_5, x_23);
x_25 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
x_26 = l_Array_append___rarg(x_25, x_14);
lean_dec(x_14);
x_27 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_17);
x_28 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_28, 0, x_17);
lean_ctor_set(x_28, 1, x_27);
lean_ctor_set(x_28, 2, x_26);
x_29 = l_Lean_Elab_Term_elabShow___closed__12;
lean_inc(x_17);
x_30 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_30, 0, x_17);
lean_ctor_set(x_30, 1, x_29);
x_31 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_17);
x_32 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_32, 0, x_17);
lean_ctor_set(x_32, 1, x_31);
if (lean_obj_tag(x_7) == 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; lean_object* x_41; 
x_33 = l_Lean_Elab_Term_expandHave___lambda__1___closed__1;
lean_inc(x_17);
x_34 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_34, 0, x_17);
lean_ctor_set(x_34, 1, x_27);
lean_ctor_set(x_34, 2, x_33);
x_35 = l_Lean_Elab_Term_elabShow___closed__8;
lean_inc(x_17);
x_36 = l_Lean_Syntax_node5(x_17, x_35, x_24, x_28, x_34, x_30, x_11);
x_37 = l_Lean_Elab_Term_elabShow___closed__6;
lean_inc(x_17);
x_38 = l_Lean_Syntax_node1(x_17, x_37, x_36);
x_39 = l_Lean_Elab_Term_elabShow___closed__4;
x_40 = l_Lean_Syntax_node4(x_17, x_39, x_19, x_38, x_32, x_13);
x_41 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_41, 0, x_40);
lean_ctor_set(x_41, 1, x_9);
return x_41;
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_42 = lean_ctor_get(x_7, 0);
lean_inc(x_42);
lean_dec(x_7);
x_43 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_17);
x_44 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_44, 0, x_17);
lean_ctor_set(x_44, 1, x_43);
x_45 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_17);
x_46 = l_Lean_Syntax_node2(x_17, x_45, x_44, x_42);
x_47 = l_Array_mkArray1___rarg(x_46);
x_48 = l_Array_append___rarg(x_25, x_47);
lean_dec(x_47);
lean_inc(x_17);
x_49 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_49, 0, x_17);
lean_ctor_set(x_49, 1, x_27);
lean_ctor_set(x_49, 2, x_48);
x_50 = l_Lean_Elab_Term_elabShow___closed__8;
lean_inc(x_17);
x_51 = l_Lean_Syntax_node5(x_17, x_50, x_24, x_28, x_49, x_30, x_11);
x_52 = l_Lean_Elab_Term_elabShow___closed__6;
lean_inc(x_17);
x_53 = l_Lean_Syntax_node1(x_17, x_52, x_51);
x_54 = l_Lean_Elab_Term_elabShow___closed__4;
x_55 = l_Lean_Syntax_node4(x_17, x_54, x_19, x_53, x_32, x_13);
x_56 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_56, 0, x_55);
lean_ctor_set(x_56, 1, x_9);
return x_56;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_9 = lean_unsigned_to_nat(4u);
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
x_11 = lean_unsigned_to_nat(3u);
x_12 = l_Lean_Syntax_getArg(x_2, x_11);
x_13 = l_Lean_Syntax_getArgs(x_3);
x_14 = lean_ctor_get(x_7, 5);
x_15 = 0;
x_16 = l_Lean_SourceInfo_fromRef(x_14, x_15);
x_17 = l_Lean_Elab_Term_elabShow___closed__3;
lean_inc(x_16);
x_18 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_18, 0, x_16);
lean_ctor_set(x_18, 1, x_17);
x_19 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
x_20 = l_Array_append___rarg(x_19, x_13);
lean_dec(x_13);
x_21 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_16);
x_22 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_22, 0, x_16);
lean_ctor_set(x_22, 1, x_21);
lean_ctor_set(x_22, 2, x_20);
x_23 = l_Lean_Elab_Term_elabShow___closed__12;
lean_inc(x_16);
x_24 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_24, 0, x_16);
lean_ctor_set(x_24, 1, x_23);
x_25 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_16);
x_26 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_26, 0, x_16);
lean_ctor_set(x_26, 1, x_25);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_27 = l_Lean_Elab_Term_expandHave___lambda__1___closed__1;
lean_inc(x_16);
x_28 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_28, 0, x_16);
lean_ctor_set(x_28, 1, x_21);
lean_ctor_set(x_28, 2, x_27);
x_29 = l_Lean_Elab_Term_elabShow___closed__8;
lean_inc(x_16);
x_30 = l_Lean_Syntax_node5(x_16, x_29, x_4, x_22, x_28, x_24, x_10);
x_31 = l_Lean_Elab_Term_elabShow___closed__6;
lean_inc(x_16);
x_32 = l_Lean_Syntax_node1(x_16, x_31, x_30);
x_33 = l_Lean_Elab_Term_elabShow___closed__4;
x_34 = l_Lean_Syntax_node4(x_16, x_33, x_18, x_32, x_26, x_12);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_34);
lean_ctor_set(x_35, 1, x_8);
return x_35;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_36 = lean_ctor_get(x_6, 0);
lean_inc(x_36);
lean_dec(x_6);
x_37 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_16);
x_38 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_38, 0, x_16);
lean_ctor_set(x_38, 1, x_37);
x_39 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_16);
x_40 = l_Lean_Syntax_node2(x_16, x_39, x_38, x_36);
x_41 = l_Array_mkArray1___rarg(x_40);
x_42 = l_Array_append___rarg(x_19, x_41);
lean_dec(x_41);
lean_inc(x_16);
x_43 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_43, 0, x_16);
lean_ctor_set(x_43, 1, x_21);
lean_ctor_set(x_43, 2, x_42);
x_44 = l_Lean_Elab_Term_elabShow___closed__8;
lean_inc(x_16);
x_45 = l_Lean_Syntax_node5(x_16, x_44, x_4, x_22, x_43, x_24, x_10);
x_46 = l_Lean_Elab_Term_elabShow___closed__6;
lean_inc(x_16);
x_47 = l_Lean_Syntax_node1(x_16, x_46, x_45);
x_48 = l_Lean_Elab_Term_elabShow___closed__4;
x_49 = l_Lean_Syntax_node4(x_16, x_48, x_18, x_47, x_26, x_12);
x_50 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_50, 0, x_49);
lean_ctor_set(x_50, 1, x_8);
return x_50;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; 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; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_13 = lean_unsigned_to_nat(4u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = lean_unsigned_to_nat(3u);
x_16 = l_Lean_Syntax_getArg(x_2, x_15);
x_17 = l_Lean_Syntax_getArgs(x_3);
x_18 = lean_ctor_get(x_11, 5);
x_19 = 0;
x_20 = l_Lean_SourceInfo_fromRef(x_18, x_19);
x_21 = l_Lean_Elab_Term_expandHave___lambda__4___closed__1;
lean_inc(x_20);
x_22 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
x_23 = l_Lean_Elab_Term_elabShow___closed__2;
x_24 = 1;
x_25 = l_Lean_HygieneInfo_mkIdent(x_4, x_23, x_24);
lean_inc(x_20);
x_26 = l_Lean_Syntax_node1(x_20, x_5, x_25);
x_27 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
x_28 = l_Array_append___rarg(x_27, x_17);
lean_dec(x_17);
x_29 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_20);
x_30 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_30, 0, x_20);
lean_ctor_set(x_30, 1, x_29);
lean_ctor_set(x_30, 2, x_28);
x_31 = l_Lean_Elab_Term_elabShow___closed__12;
lean_inc(x_20);
x_32 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_32, 0, x_20);
lean_ctor_set(x_32, 1, x_31);
x_33 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_20);
x_34 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_34, 0, x_20);
lean_ctor_set(x_34, 1, x_33);
if (lean_obj_tag(x_10) == 0)
{
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_35 = l_Lean_Elab_Term_expandHave___lambda__1___closed__1;
lean_inc(x_20);
x_36 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_36, 0, x_20);
lean_ctor_set(x_36, 1, x_29);
lean_ctor_set(x_36, 2, x_35);
lean_inc(x_20);
x_37 = l_Lean_Syntax_node5(x_20, x_6, x_26, x_30, x_36, x_32, x_14);
lean_inc(x_20);
x_38 = l_Lean_Syntax_node1(x_20, x_7, x_37);
x_39 = l_Lean_Syntax_node4(x_20, x_8, x_22, x_38, x_34, x_16);
x_40 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_40, 0, x_39);
lean_ctor_set(x_40, 1, x_12);
return x_40;
}
else
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_41 = lean_ctor_get(x_10, 0);
lean_inc(x_41);
lean_dec(x_10);
x_42 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_20);
x_43 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_43, 0, x_20);
lean_ctor_set(x_43, 1, x_42);
x_44 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_20);
x_45 = l_Lean_Syntax_node2(x_20, x_44, x_43, x_41);
x_46 = l_Array_mkArray1___rarg(x_45);
x_47 = l_Array_append___rarg(x_27, x_46);
lean_dec(x_46);
lean_inc(x_20);
x_48 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_48, 0, x_20);
lean_ctor_set(x_48, 1, x_29);
lean_ctor_set(x_48, 2, x_47);
lean_inc(x_20);
x_49 = l_Lean_Syntax_node5(x_20, x_6, x_26, x_30, x_48, x_32, x_14);
lean_inc(x_20);
x_50 = l_Lean_Syntax_node1(x_20, x_7, x_49);
x_51 = l_Lean_Syntax_node4(x_20, x_8, x_22, x_50, x_34, x_16);
x_52 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_52, 0, x_51);
lean_ctor_set(x_52, 1, x_12);
return x_52;
}
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandHave___lambda__4___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("haveDecl", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__3() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandHave___closed__2;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("haveIdDecl", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandHave___closed__4;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("haveEqnsDecl", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandHave___closed__6;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("letPatDecl", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandHave___closed__8;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("haveId", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__11() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandHave___closed__10;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("hygieneInfo", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandHave___closed__12;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ident", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandHave___closed__14;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("hole", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandHave___closed__17() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandHave___closed__16;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_Elab_Term_expandHave___closed__1;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_8 = lean_unsigned_to_nat(1u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = l_Lean_Elab_Term_expandHave___closed__3;
lean_inc(x_9);
x_11 = l_Lean_Syntax_isOfKind(x_9, x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_9);
lean_dec(x_1);
x_12 = lean_box(1);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_3);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_14 = lean_unsigned_to_nat(0u);
x_15 = l_Lean_Syntax_getArg(x_9, x_14);
lean_dec(x_9);
x_16 = l_Lean_Elab_Term_expandHave___closed__5;
lean_inc(x_15);
x_17 = l_Lean_Syntax_isOfKind(x_15, x_16);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19; 
x_18 = l_Lean_Elab_Term_expandHave___closed__7;
lean_inc(x_15);
x_19 = l_Lean_Syntax_isOfKind(x_15, x_18);
if (x_19 == 0)
{
lean_object* x_20; uint8_t x_21; 
x_20 = l_Lean_Elab_Term_expandHave___closed__9;
lean_inc(x_15);
x_21 = l_Lean_Syntax_isOfKind(x_15, x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; 
lean_dec(x_15);
lean_dec(x_1);
x_22 = lean_box(1);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_22);
lean_ctor_set(x_23, 1, x_3);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; uint8_t x_26; 
x_24 = l_Lean_Syntax_getArg(x_15, x_14);
x_25 = l_Lean_Syntax_getArg(x_15, x_8);
x_26 = l_Lean_Syntax_matchesNull(x_25, x_14);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_1);
x_27 = lean_box(1);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_3);
return x_28;
}
else
{
lean_object* x_29; lean_object* x_30; uint8_t x_31; 
x_29 = lean_unsigned_to_nat(2u);
x_30 = l_Lean_Syntax_getArg(x_15, x_29);
x_31 = l_Lean_Syntax_isNone(x_30);
if (x_31 == 0)
{
uint8_t x_32; 
lean_inc(x_30);
x_32 = l_Lean_Syntax_matchesNull(x_30, x_8);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; 
lean_dec(x_30);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_1);
x_33 = lean_box(1);
x_34 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_34, 0, x_33);
lean_ctor_set(x_34, 1, x_3);
return x_34;
}
else
{
lean_object* x_35; lean_object* x_36; uint8_t x_37; 
x_35 = l_Lean_Syntax_getArg(x_30, x_14);
lean_dec(x_30);
x_36 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_35);
x_37 = l_Lean_Syntax_isOfKind(x_35, x_36);
if (x_37 == 0)
{
lean_object* x_38; lean_object* x_39; 
lean_dec(x_35);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_1);
x_38 = lean_box(1);
x_39 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_39, 0, x_38);
lean_ctor_set(x_39, 1, x_3);
return x_39;
}
else
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_40 = l_Lean_Syntax_getArg(x_35, x_8);
lean_dec(x_35);
x_41 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_41, 0, x_40);
x_42 = lean_box(0);
x_43 = l_Lean_Elab_Term_expandHave___lambda__1(x_15, x_1, x_20, x_24, x_42, x_41, x_2, x_3);
lean_dec(x_1);
lean_dec(x_15);
return x_43;
}
}
}
else
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; 
lean_dec(x_30);
x_44 = lean_box(0);
x_45 = lean_box(0);
x_46 = l_Lean_Elab_Term_expandHave___lambda__1(x_15, x_1, x_20, x_24, x_45, x_44, x_2, x_3);
lean_dec(x_1);
lean_dec(x_15);
return x_46;
}
}
}
}
else
{
lean_object* x_47; lean_object* x_48; uint8_t x_49; 
x_47 = l_Lean_Syntax_getArg(x_15, x_14);
x_48 = l_Lean_Elab_Term_expandHave___closed__11;
lean_inc(x_47);
x_49 = l_Lean_Syntax_isOfKind(x_47, x_48);
if (x_49 == 0)
{
lean_object* x_50; lean_object* x_51; 
lean_dec(x_47);
lean_dec(x_15);
lean_dec(x_1);
x_50 = lean_box(1);
x_51 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_51, 0, x_50);
lean_ctor_set(x_51, 1, x_3);
return x_51;
}
else
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = l_Lean_Syntax_getArg(x_47, x_14);
lean_dec(x_47);
x_53 = l_Lean_Elab_Term_expandHave___closed__13;
lean_inc(x_52);
x_54 = l_Lean_Syntax_isOfKind(x_52, x_53);
if (x_54 == 0)
{
lean_object* x_55; uint8_t x_56; 
x_55 = l_Lean_Elab_Term_expandHave___closed__15;
lean_inc(x_52);
x_56 = l_Lean_Syntax_isOfKind(x_52, x_55);
if (x_56 == 0)
{
lean_object* x_57; uint8_t x_58; 
x_57 = l_Lean_Elab_Term_expandHave___closed__17;
lean_inc(x_52);
x_58 = l_Lean_Syntax_isOfKind(x_52, x_57);
if (x_58 == 0)
{
lean_object* x_59; lean_object* x_60; 
lean_dec(x_52);
lean_dec(x_15);
lean_dec(x_1);
x_59 = lean_box(1);
x_60 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_3);
return x_60;
}
else
{
lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; 
x_61 = l_Lean_Syntax_getArg(x_52, x_14);
lean_dec(x_52);
x_62 = l_Lean_Syntax_getArg(x_15, x_8);
x_63 = lean_unsigned_to_nat(2u);
x_64 = l_Lean_Syntax_getArg(x_15, x_63);
x_65 = l_Lean_Syntax_isNone(x_64);
if (x_65 == 0)
{
uint8_t x_66; 
lean_inc(x_64);
x_66 = l_Lean_Syntax_matchesNull(x_64, x_8);
if (x_66 == 0)
{
lean_object* x_67; lean_object* x_68; 
lean_dec(x_64);
lean_dec(x_62);
lean_dec(x_61);
lean_dec(x_15);
lean_dec(x_1);
x_67 = lean_box(1);
x_68 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_68, 0, x_67);
lean_ctor_set(x_68, 1, x_3);
return x_68;
}
else
{
lean_object* x_69; lean_object* x_70; uint8_t x_71; 
x_69 = l_Lean_Syntax_getArg(x_64, x_14);
lean_dec(x_64);
x_70 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_69);
x_71 = l_Lean_Syntax_isOfKind(x_69, x_70);
if (x_71 == 0)
{
lean_object* x_72; lean_object* x_73; 
lean_dec(x_69);
lean_dec(x_62);
lean_dec(x_61);
lean_dec(x_15);
lean_dec(x_1);
x_72 = lean_box(1);
x_73 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_73, 0, x_72);
lean_ctor_set(x_73, 1, x_3);
return x_73;
}
else
{
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_74 = l_Lean_Syntax_getArg(x_69, x_8);
lean_dec(x_69);
x_75 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_75, 0, x_74);
x_76 = lean_box(0);
x_77 = l_Lean_Elab_Term_expandHave___lambda__2(x_15, x_1, x_62, x_61, x_57, x_76, x_75, x_2, x_3);
lean_dec(x_61);
lean_dec(x_62);
lean_dec(x_1);
lean_dec(x_15);
return x_77;
}
}
}
else
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; 
lean_dec(x_64);
x_78 = lean_box(0);
x_79 = lean_box(0);
x_80 = l_Lean_Elab_Term_expandHave___lambda__2(x_15, x_1, x_62, x_61, x_57, x_79, x_78, x_2, x_3);
lean_dec(x_61);
lean_dec(x_62);
lean_dec(x_1);
lean_dec(x_15);
return x_80;
}
}
}
else
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; 
x_81 = l_Lean_Syntax_getArg(x_15, x_8);
x_82 = lean_unsigned_to_nat(2u);
x_83 = l_Lean_Syntax_getArg(x_15, x_82);
x_84 = l_Lean_Syntax_isNone(x_83);
if (x_84 == 0)
{
uint8_t x_85; 
lean_inc(x_83);
x_85 = l_Lean_Syntax_matchesNull(x_83, x_8);
if (x_85 == 0)
{
lean_object* x_86; lean_object* x_87; 
lean_dec(x_83);
lean_dec(x_81);
lean_dec(x_52);
lean_dec(x_15);
lean_dec(x_1);
x_86 = lean_box(1);
x_87 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_87, 0, x_86);
lean_ctor_set(x_87, 1, x_3);
return x_87;
}
else
{
lean_object* x_88; lean_object* x_89; uint8_t x_90; 
x_88 = l_Lean_Syntax_getArg(x_83, x_14);
lean_dec(x_83);
x_89 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_88);
x_90 = l_Lean_Syntax_isOfKind(x_88, x_89);
if (x_90 == 0)
{
lean_object* x_91; lean_object* x_92; 
lean_dec(x_88);
lean_dec(x_81);
lean_dec(x_52);
lean_dec(x_15);
lean_dec(x_1);
x_91 = lean_box(1);
x_92 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_92, 0, x_91);
lean_ctor_set(x_92, 1, x_3);
return x_92;
}
else
{
lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; 
x_93 = l_Lean_Syntax_getArg(x_88, x_8);
lean_dec(x_88);
x_94 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_94, 0, x_93);
x_95 = lean_box(0);
x_96 = l_Lean_Elab_Term_expandHave___lambda__3(x_15, x_1, x_81, x_52, x_95, x_94, x_2, x_3);
lean_dec(x_81);
lean_dec(x_1);
lean_dec(x_15);
return x_96;
}
}
}
else
{
lean_object* x_97; lean_object* x_98; lean_object* x_99; 
lean_dec(x_83);
x_97 = lean_box(0);
x_98 = lean_box(0);
x_99 = l_Lean_Elab_Term_expandHave___lambda__3(x_15, x_1, x_81, x_52, x_98, x_97, x_2, x_3);
lean_dec(x_81);
lean_dec(x_1);
lean_dec(x_15);
return x_99;
}
}
}
else
{
lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; 
x_100 = l_Lean_Syntax_getArg(x_15, x_8);
x_101 = lean_unsigned_to_nat(2u);
x_102 = l_Lean_Syntax_getArg(x_15, x_101);
x_103 = l_Lean_Syntax_isNone(x_102);
if (x_103 == 0)
{
uint8_t x_104; 
lean_inc(x_102);
x_104 = l_Lean_Syntax_matchesNull(x_102, x_8);
if (x_104 == 0)
{
lean_object* x_105; lean_object* x_106; 
lean_dec(x_102);
lean_dec(x_100);
lean_dec(x_52);
lean_dec(x_15);
lean_dec(x_1);
x_105 = lean_box(1);
x_106 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_106, 0, x_105);
lean_ctor_set(x_106, 1, x_3);
return x_106;
}
else
{
lean_object* x_107; lean_object* x_108; uint8_t x_109; 
x_107 = l_Lean_Syntax_getArg(x_102, x_14);
lean_dec(x_102);
x_108 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_107);
x_109 = l_Lean_Syntax_isOfKind(x_107, x_108);
if (x_109 == 0)
{
lean_object* x_110; lean_object* x_111; 
lean_dec(x_107);
lean_dec(x_100);
lean_dec(x_52);
lean_dec(x_15);
lean_dec(x_1);
x_110 = lean_box(1);
x_111 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_3);
return x_111;
}
else
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_112 = l_Lean_Syntax_getArg(x_107, x_8);
lean_dec(x_107);
x_113 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_113, 0, x_112);
x_114 = lean_box(0);
x_115 = l_Lean_Elab_Term_expandHave___lambda__4(x_15, x_1, x_100, x_52, x_48, x_18, x_10, x_4, x_114, x_113, x_2, x_3);
lean_dec(x_52);
lean_dec(x_100);
lean_dec(x_1);
lean_dec(x_15);
return x_115;
}
}
}
else
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
lean_dec(x_102);
x_116 = lean_box(0);
x_117 = lean_box(0);
x_118 = l_Lean_Elab_Term_expandHave___lambda__4(x_15, x_1, x_100, x_52, x_48, x_18, x_10, x_4, x_117, x_116, x_2, x_3);
lean_dec(x_52);
lean_dec(x_100);
lean_dec(x_1);
lean_dec(x_15);
return x_118;
}
}
}
}
}
else
{
lean_object* x_119; lean_object* x_120; uint8_t x_121; 
x_119 = l_Lean_Syntax_getArg(x_15, x_14);
x_120 = l_Lean_Elab_Term_expandHave___closed__11;
lean_inc(x_119);
x_121 = l_Lean_Syntax_isOfKind(x_119, x_120);
if (x_121 == 0)
{
lean_object* x_122; lean_object* x_123; 
lean_dec(x_119);
lean_dec(x_15);
lean_dec(x_1);
x_122 = lean_box(1);
x_123 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_123, 0, x_122);
lean_ctor_set(x_123, 1, x_3);
return x_123;
}
else
{
lean_object* x_124; lean_object* x_125; uint8_t x_126; 
x_124 = l_Lean_Syntax_getArg(x_119, x_14);
lean_dec(x_119);
x_125 = l_Lean_Elab_Term_expandHave___closed__13;
lean_inc(x_124);
x_126 = l_Lean_Syntax_isOfKind(x_124, x_125);
if (x_126 == 0)
{
lean_object* x_127; uint8_t x_128; 
x_127 = l_Lean_Elab_Term_expandHave___closed__15;
lean_inc(x_124);
x_128 = l_Lean_Syntax_isOfKind(x_124, x_127);
if (x_128 == 0)
{
lean_object* x_129; uint8_t x_130; 
x_129 = l_Lean_Elab_Term_expandHave___closed__17;
lean_inc(x_124);
x_130 = l_Lean_Syntax_isOfKind(x_124, x_129);
if (x_130 == 0)
{
lean_object* x_131; lean_object* x_132; 
lean_dec(x_124);
lean_dec(x_15);
lean_dec(x_1);
x_131 = lean_box(1);
x_132 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_132, 0, x_131);
lean_ctor_set(x_132, 1, x_3);
return x_132;
}
else
{
lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; 
x_133 = l_Lean_Syntax_getArg(x_124, x_14);
lean_dec(x_124);
x_134 = l_Lean_Syntax_getArg(x_15, x_8);
x_135 = lean_unsigned_to_nat(2u);
x_136 = l_Lean_Syntax_getArg(x_15, x_135);
x_137 = l_Lean_Syntax_isNone(x_136);
if (x_137 == 0)
{
uint8_t x_138; 
lean_inc(x_136);
x_138 = l_Lean_Syntax_matchesNull(x_136, x_8);
if (x_138 == 0)
{
lean_object* x_139; lean_object* x_140; 
lean_dec(x_136);
lean_dec(x_134);
lean_dec(x_133);
lean_dec(x_15);
lean_dec(x_1);
x_139 = lean_box(1);
x_140 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_140, 0, x_139);
lean_ctor_set(x_140, 1, x_3);
return x_140;
}
else
{
lean_object* x_141; lean_object* x_142; uint8_t x_143; 
x_141 = l_Lean_Syntax_getArg(x_136, x_14);
lean_dec(x_136);
x_142 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_141);
x_143 = l_Lean_Syntax_isOfKind(x_141, x_142);
if (x_143 == 0)
{
lean_object* x_144; lean_object* x_145; 
lean_dec(x_141);
lean_dec(x_134);
lean_dec(x_133);
lean_dec(x_15);
lean_dec(x_1);
x_144 = lean_box(1);
x_145 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_145, 0, x_144);
lean_ctor_set(x_145, 1, x_3);
return x_145;
}
else
{
lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; 
x_146 = l_Lean_Syntax_getArg(x_141, x_8);
lean_dec(x_141);
x_147 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_147, 0, x_146);
x_148 = lean_box(0);
x_149 = l_Lean_Elab_Term_expandHave___lambda__5(x_15, x_1, x_134, x_133, x_129, x_148, x_147, x_2, x_3);
lean_dec(x_133);
lean_dec(x_134);
lean_dec(x_1);
lean_dec(x_15);
return x_149;
}
}
}
else
{
lean_object* x_150; lean_object* x_151; lean_object* x_152; 
lean_dec(x_136);
x_150 = lean_box(0);
x_151 = lean_box(0);
x_152 = l_Lean_Elab_Term_expandHave___lambda__5(x_15, x_1, x_134, x_133, x_129, x_151, x_150, x_2, x_3);
lean_dec(x_133);
lean_dec(x_134);
lean_dec(x_1);
lean_dec(x_15);
return x_152;
}
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; 
x_153 = l_Lean_Syntax_getArg(x_15, x_8);
x_154 = lean_unsigned_to_nat(2u);
x_155 = l_Lean_Syntax_getArg(x_15, x_154);
x_156 = l_Lean_Syntax_isNone(x_155);
if (x_156 == 0)
{
uint8_t x_157; 
lean_inc(x_155);
x_157 = l_Lean_Syntax_matchesNull(x_155, x_8);
if (x_157 == 0)
{
lean_object* x_158; lean_object* x_159; 
lean_dec(x_155);
lean_dec(x_153);
lean_dec(x_124);
lean_dec(x_15);
lean_dec(x_1);
x_158 = lean_box(1);
x_159 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_3);
return x_159;
}
else
{
lean_object* x_160; lean_object* x_161; uint8_t x_162; 
x_160 = l_Lean_Syntax_getArg(x_155, x_14);
lean_dec(x_155);
x_161 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_160);
x_162 = l_Lean_Syntax_isOfKind(x_160, x_161);
if (x_162 == 0)
{
lean_object* x_163; lean_object* x_164; 
lean_dec(x_160);
lean_dec(x_153);
lean_dec(x_124);
lean_dec(x_15);
lean_dec(x_1);
x_163 = lean_box(1);
x_164 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_164, 0, x_163);
lean_ctor_set(x_164, 1, x_3);
return x_164;
}
else
{
lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; 
x_165 = l_Lean_Syntax_getArg(x_160, x_8);
lean_dec(x_160);
x_166 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_166, 0, x_165);
x_167 = lean_box(0);
x_168 = l_Lean_Elab_Term_expandHave___lambda__6(x_15, x_1, x_153, x_124, x_167, x_166, x_2, x_3);
lean_dec(x_153);
lean_dec(x_1);
lean_dec(x_15);
return x_168;
}
}
}
else
{
lean_object* x_169; lean_object* x_170; lean_object* x_171; 
lean_dec(x_155);
x_169 = lean_box(0);
x_170 = lean_box(0);
x_171 = l_Lean_Elab_Term_expandHave___lambda__6(x_15, x_1, x_153, x_124, x_170, x_169, x_2, x_3);
lean_dec(x_153);
lean_dec(x_1);
lean_dec(x_15);
return x_171;
}
}
}
else
{
lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; 
x_172 = l_Lean_Syntax_getArg(x_15, x_8);
x_173 = lean_unsigned_to_nat(2u);
x_174 = l_Lean_Syntax_getArg(x_15, x_173);
x_175 = l_Lean_Syntax_isNone(x_174);
if (x_175 == 0)
{
uint8_t x_176; 
lean_inc(x_174);
x_176 = l_Lean_Syntax_matchesNull(x_174, x_8);
if (x_176 == 0)
{
lean_object* x_177; lean_object* x_178; 
lean_dec(x_174);
lean_dec(x_172);
lean_dec(x_124);
lean_dec(x_15);
lean_dec(x_1);
x_177 = lean_box(1);
x_178 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_178, 0, x_177);
lean_ctor_set(x_178, 1, x_3);
return x_178;
}
else
{
lean_object* x_179; lean_object* x_180; uint8_t x_181; 
x_179 = l_Lean_Syntax_getArg(x_174, x_14);
lean_dec(x_174);
x_180 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_179);
x_181 = l_Lean_Syntax_isOfKind(x_179, x_180);
if (x_181 == 0)
{
lean_object* x_182; lean_object* x_183; 
lean_dec(x_179);
lean_dec(x_172);
lean_dec(x_124);
lean_dec(x_15);
lean_dec(x_1);
x_182 = lean_box(1);
x_183 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_183, 0, x_182);
lean_ctor_set(x_183, 1, x_3);
return x_183;
}
else
{
lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
x_184 = l_Lean_Syntax_getArg(x_179, x_8);
lean_dec(x_179);
x_185 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_185, 0, x_184);
x_186 = lean_box(0);
x_187 = l_Lean_Elab_Term_expandHave___lambda__7(x_15, x_1, x_172, x_124, x_120, x_16, x_10, x_4, x_186, x_185, x_2, x_3);
lean_dec(x_124);
lean_dec(x_172);
lean_dec(x_1);
lean_dec(x_15);
return x_187;
}
}
}
else
{
lean_object* x_188; lean_object* x_189; lean_object* x_190; 
lean_dec(x_174);
x_188 = lean_box(0);
x_189 = lean_box(0);
x_190 = l_Lean_Elab_Term_expandHave___lambda__7(x_15, x_1, x_172, x_124, x_120, x_16, x_10, x_4, x_189, x_188, x_2, x_3);
lean_dec(x_124);
lean_dec(x_172);
lean_dec(x_1);
lean_dec(x_15);
return x_190;
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___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) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Elab_Term_expandHave___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___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) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Term_expandHave___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___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:
{
lean_object* x_9; 
x_9 = l_Lean_Elab_Term_expandHave___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___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, lean_object* x_12) {
_start:
{
lean_object* x_13; 
x_13 = l_Lean_Elab_Term_expandHave___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_11);
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_Lean_Elab_Term_expandHave___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) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Term_expandHave___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__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) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Elab_Term_expandHave___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandHave___lambda__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, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; 
x_13 = l_Lean_Elab_Term_expandHave___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_11);
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_Lean_Elab_Term_expandHave___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Elab_Term_expandHave(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandHave", 10, 10);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandHave___boxed), 3, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandHave__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3;
x_3 = l_Lean_Elab_Term_expandHave___closed__1;
x_4 = l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(124u);
x_2 = lean_unsigned_to_nat(39u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(135u);
x_2 = lean_unsigned_to_nat(78u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__3() {
_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_Term_expandHave_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(39u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(78u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(124u);
x_2 = lean_unsigned_to_nat(43u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(124u);
x_2 = lean_unsigned_to_nat(53u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(43u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(53u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandSuffices___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("suffices", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandSuffices___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandSuffices___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandSuffices___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("sufficesDecl", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandSuffices___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandSuffices___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandSuffices___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("group", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandSuffices___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandSuffices___closed__5;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandSuffices___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Tactic", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandSuffices___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tacticSeq", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandSuffices___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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l_Lean_Elab_Term_expandSuffices___closed__7;
x_4 = l_Lean_Elab_Term_expandSuffices___closed__8;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandSuffices(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_Elab_Term_expandSuffices___closed__2;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
x_12 = l_Lean_Elab_Term_expandSuffices___closed__4;
lean_inc(x_11);
x_13 = l_Lean_Syntax_isOfKind(x_11, x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_1);
x_14 = lean_box(1);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_3);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_16 = l_Lean_Syntax_getArg(x_11, x_8);
x_17 = l_Lean_Elab_Term_expandSuffices___closed__6;
lean_inc(x_16);
x_18 = l_Lean_Syntax_isOfKind(x_16, x_17);
if (x_18 == 0)
{
lean_object* x_19; uint8_t x_20; 
x_19 = l_Lean_Elab_Term_expandHave___closed__13;
lean_inc(x_16);
x_20 = l_Lean_Syntax_isOfKind(x_16, x_19);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; 
lean_dec(x_16);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_1);
x_21 = lean_box(1);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_3);
return x_22;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 
x_23 = l_Lean_Syntax_getArg(x_11, x_10);
x_24 = lean_unsigned_to_nat(2u);
x_25 = l_Lean_Syntax_getArg(x_11, x_24);
lean_dec(x_11);
x_26 = l_Lean_Elab_Term_expandShow___closed__6;
lean_inc(x_25);
x_27 = l_Lean_Syntax_isOfKind(x_25, x_26);
if (x_27 == 0)
{
lean_object* x_28; uint8_t x_29; 
x_28 = l_Lean_Elab_Term_expandShow___closed__4;
lean_inc(x_25);
x_29 = l_Lean_Syntax_isOfKind(x_25, x_28);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; 
lean_dec(x_25);
lean_dec(x_23);
lean_dec(x_16);
lean_dec(x_9);
lean_dec(x_1);
x_30 = lean_box(1);
x_31 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_31, 0, x_30);
lean_ctor_set(x_31, 1, x_3);
return x_31;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; 
x_32 = l_Lean_Syntax_getArg(x_25, x_8);
x_33 = l_Lean_Syntax_getArg(x_25, x_10);
lean_dec(x_25);
x_34 = l_Lean_Elab_Term_expandSuffices___closed__9;
lean_inc(x_33);
x_35 = l_Lean_Syntax_isOfKind(x_33, x_34);
if (x_35 == 0)
{
lean_object* x_36; lean_object* x_37; 
lean_dec(x_33);
lean_dec(x_32);
lean_dec(x_23);
lean_dec(x_16);
lean_dec(x_9);
lean_dec(x_1);
x_36 = lean_box(1);
x_37 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_37, 0, x_36);
lean_ctor_set(x_37, 1, x_3);
return x_37;
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; 
x_38 = lean_unsigned_to_nat(3u);
x_39 = l_Lean_Syntax_getArg(x_1, x_38);
lean_dec(x_1);
x_40 = lean_ctor_get(x_2, 5);
x_41 = 0;
x_42 = l_Lean_SourceInfo_fromRef(x_40, x_41);
x_43 = 1;
x_44 = l_Lean_SourceInfo_fromRef(x_9, x_43);
lean_dec(x_9);
x_45 = l_Lean_Elab_Term_expandHave___lambda__4___closed__1;
x_46 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_46, 0, x_44);
lean_ctor_set(x_46, 1, x_45);
x_47 = l_Lean_Elab_Term_expandHave___closed__11;
lean_inc(x_42);
x_48 = l_Lean_Syntax_node1(x_42, x_47, x_16);
x_49 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
x_50 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
lean_inc(x_42);
x_51 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_51, 0, x_42);
lean_ctor_set(x_51, 1, x_49);
lean_ctor_set(x_51, 2, x_50);
x_52 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_42);
x_53 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_53, 0, x_42);
lean_ctor_set(x_53, 1, x_52);
x_54 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_42);
x_55 = l_Lean_Syntax_node2(x_42, x_54, x_53, x_23);
lean_inc(x_42);
x_56 = l_Lean_Syntax_node1(x_42, x_49, x_55);
x_57 = l_Lean_Elab_Term_elabShow___closed__12;
lean_inc(x_42);
x_58 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_58, 0, x_42);
lean_ctor_set(x_58, 1, x_57);
x_59 = l_Lean_Elab_Term_expandHave___closed__5;
lean_inc(x_42);
x_60 = l_Lean_Syntax_node5(x_42, x_59, x_48, x_51, x_56, x_58, x_39);
x_61 = l_Lean_Elab_Term_expandHave___closed__3;
lean_inc(x_42);
x_62 = l_Lean_Syntax_node1(x_42, x_61, x_60);
x_63 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_42);
x_64 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_64, 0, x_42);
lean_ctor_set(x_64, 1, x_63);
x_65 = l_Lean_SourceInfo_fromRef(x_32, x_43);
lean_dec(x_32);
x_66 = l_Lean_Elab_Term_expandShow___closed__10;
x_67 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_67, 0, x_65);
lean_ctor_set(x_67, 1, x_66);
x_68 = l_Lean_Elab_Term_expandShow___closed__9;
lean_inc(x_42);
x_69 = l_Lean_Syntax_node2(x_42, x_68, x_67, x_33);
x_70 = l_Lean_Elab_Term_expandHave___closed__1;
x_71 = l_Lean_Syntax_node4(x_42, x_70, x_46, x_62, x_64, x_69);
x_72 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_3);
return x_72;
}
}
}
else
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; 
x_73 = l_Lean_Syntax_getArg(x_25, x_10);
lean_dec(x_25);
x_74 = lean_unsigned_to_nat(3u);
x_75 = l_Lean_Syntax_getArg(x_1, x_74);
lean_dec(x_1);
x_76 = lean_ctor_get(x_2, 5);
x_77 = 0;
x_78 = l_Lean_SourceInfo_fromRef(x_76, x_77);
x_79 = 1;
x_80 = l_Lean_SourceInfo_fromRef(x_9, x_79);
lean_dec(x_9);
x_81 = l_Lean_Elab_Term_expandHave___lambda__4___closed__1;
x_82 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_82, 0, x_80);
lean_ctor_set(x_82, 1, x_81);
x_83 = l_Lean_Elab_Term_expandHave___closed__11;
lean_inc(x_78);
x_84 = l_Lean_Syntax_node1(x_78, x_83, x_16);
x_85 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
x_86 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
lean_inc(x_78);
x_87 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_87, 0, x_78);
lean_ctor_set(x_87, 1, x_85);
lean_ctor_set(x_87, 2, x_86);
x_88 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_78);
x_89 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_89, 0, x_78);
lean_ctor_set(x_89, 1, x_88);
x_90 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_78);
x_91 = l_Lean_Syntax_node2(x_78, x_90, x_89, x_23);
lean_inc(x_78);
x_92 = l_Lean_Syntax_node1(x_78, x_85, x_91);
x_93 = l_Lean_Elab_Term_elabShow___closed__12;
lean_inc(x_78);
x_94 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_94, 0, x_78);
lean_ctor_set(x_94, 1, x_93);
x_95 = l_Lean_Elab_Term_expandHave___closed__5;
lean_inc(x_78);
x_96 = l_Lean_Syntax_node5(x_78, x_95, x_84, x_87, x_92, x_94, x_75);
x_97 = l_Lean_Elab_Term_expandHave___closed__3;
lean_inc(x_78);
x_98 = l_Lean_Syntax_node1(x_78, x_97, x_96);
x_99 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_78);
x_100 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_100, 0, x_78);
lean_ctor_set(x_100, 1, x_99);
x_101 = l_Lean_Elab_Term_expandHave___closed__1;
x_102 = l_Lean_Syntax_node4(x_78, x_101, x_82, x_98, x_100, x_73);
x_103 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_3);
return x_103;
}
}
}
else
{
lean_object* x_104; lean_object* x_105; uint8_t x_106; 
x_104 = l_Lean_Syntax_getArg(x_16, x_8);
lean_dec(x_16);
x_105 = l_Lean_Elab_Term_expandHave___closed__15;
lean_inc(x_104);
x_106 = l_Lean_Syntax_isOfKind(x_104, x_105);
if (x_106 == 0)
{
lean_object* x_107; uint8_t x_108; 
x_107 = l_Lean_Elab_Term_expandHave___closed__17;
lean_inc(x_104);
x_108 = l_Lean_Syntax_isOfKind(x_104, x_107);
if (x_108 == 0)
{
lean_object* x_109; lean_object* x_110; 
lean_dec(x_104);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_1);
x_109 = lean_box(1);
x_110 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_110, 0, x_109);
lean_ctor_set(x_110, 1, x_3);
return x_110;
}
else
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; 
x_111 = l_Lean_Syntax_getArg(x_104, x_8);
lean_dec(x_104);
x_112 = l_Lean_Syntax_getArg(x_11, x_10);
x_113 = lean_unsigned_to_nat(2u);
x_114 = l_Lean_Syntax_getArg(x_11, x_113);
lean_dec(x_11);
x_115 = l_Lean_Elab_Term_expandShow___closed__6;
lean_inc(x_114);
x_116 = l_Lean_Syntax_isOfKind(x_114, x_115);
if (x_116 == 0)
{
lean_object* x_117; uint8_t x_118; 
x_117 = l_Lean_Elab_Term_expandShow___closed__4;
lean_inc(x_114);
x_118 = l_Lean_Syntax_isOfKind(x_114, x_117);
if (x_118 == 0)
{
lean_object* x_119; lean_object* x_120; 
lean_dec(x_114);
lean_dec(x_112);
lean_dec(x_111);
lean_dec(x_9);
lean_dec(x_1);
x_119 = lean_box(1);
x_120 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_120, 0, x_119);
lean_ctor_set(x_120, 1, x_3);
return x_120;
}
else
{
lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; 
x_121 = l_Lean_Syntax_getArg(x_114, x_8);
x_122 = l_Lean_Syntax_getArg(x_114, x_10);
lean_dec(x_114);
x_123 = l_Lean_Elab_Term_expandSuffices___closed__9;
lean_inc(x_122);
x_124 = l_Lean_Syntax_isOfKind(x_122, x_123);
if (x_124 == 0)
{
lean_object* x_125; lean_object* x_126; 
lean_dec(x_122);
lean_dec(x_121);
lean_dec(x_112);
lean_dec(x_111);
lean_dec(x_9);
lean_dec(x_1);
x_125 = lean_box(1);
x_126 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_126, 0, x_125);
lean_ctor_set(x_126, 1, x_3);
return x_126;
}
else
{
lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; lean_object* x_131; uint8_t 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; lean_object* x_143; lean_object* x_144; 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; 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; lean_object* x_164; lean_object* x_165; 
x_127 = lean_unsigned_to_nat(3u);
x_128 = l_Lean_Syntax_getArg(x_1, x_127);
lean_dec(x_1);
x_129 = lean_ctor_get(x_2, 5);
x_130 = 0;
x_131 = l_Lean_SourceInfo_fromRef(x_129, x_130);
x_132 = 1;
x_133 = l_Lean_SourceInfo_fromRef(x_9, x_132);
lean_dec(x_9);
x_134 = l_Lean_Elab_Term_expandHave___lambda__4___closed__1;
x_135 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_135, 0, x_133);
lean_ctor_set(x_135, 1, x_134);
x_136 = l_Lean_SourceInfo_fromRef(x_111, x_132);
lean_dec(x_111);
x_137 = l_Lean_Elab_Term_expandHave___lambda__2___closed__3;
x_138 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_138, 0, x_136);
lean_ctor_set(x_138, 1, x_137);
lean_inc(x_131);
x_139 = l_Lean_Syntax_node1(x_131, x_107, x_138);
x_140 = l_Lean_Elab_Term_expandHave___closed__11;
lean_inc(x_131);
x_141 = l_Lean_Syntax_node1(x_131, x_140, x_139);
x_142 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
x_143 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
lean_inc(x_131);
x_144 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_144, 0, x_131);
lean_ctor_set(x_144, 1, x_142);
lean_ctor_set(x_144, 2, x_143);
x_145 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_131);
x_146 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_146, 0, x_131);
lean_ctor_set(x_146, 1, x_145);
x_147 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_131);
x_148 = l_Lean_Syntax_node2(x_131, x_147, x_146, x_112);
lean_inc(x_131);
x_149 = l_Lean_Syntax_node1(x_131, x_142, x_148);
x_150 = l_Lean_Elab_Term_elabShow___closed__12;
lean_inc(x_131);
x_151 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_151, 0, x_131);
lean_ctor_set(x_151, 1, x_150);
x_152 = l_Lean_Elab_Term_expandHave___closed__5;
lean_inc(x_131);
x_153 = l_Lean_Syntax_node5(x_131, x_152, x_141, x_144, x_149, x_151, x_128);
x_154 = l_Lean_Elab_Term_expandHave___closed__3;
lean_inc(x_131);
x_155 = l_Lean_Syntax_node1(x_131, x_154, x_153);
x_156 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_131);
x_157 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_157, 0, x_131);
lean_ctor_set(x_157, 1, x_156);
x_158 = l_Lean_SourceInfo_fromRef(x_121, x_132);
lean_dec(x_121);
x_159 = l_Lean_Elab_Term_expandShow___closed__10;
x_160 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_160, 0, x_158);
lean_ctor_set(x_160, 1, x_159);
x_161 = l_Lean_Elab_Term_expandShow___closed__9;
lean_inc(x_131);
x_162 = l_Lean_Syntax_node2(x_131, x_161, x_160, x_122);
x_163 = l_Lean_Elab_Term_expandHave___closed__1;
x_164 = l_Lean_Syntax_node4(x_131, x_163, x_135, x_155, x_157, x_162);
x_165 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_165, 0, x_164);
lean_ctor_set(x_165, 1, x_3);
return x_165;
}
}
}
else
{
lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; uint8_t x_170; lean_object* x_171; uint8_t 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; 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_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; lean_object* x_200; 
x_166 = l_Lean_Syntax_getArg(x_114, x_10);
lean_dec(x_114);
x_167 = lean_unsigned_to_nat(3u);
x_168 = l_Lean_Syntax_getArg(x_1, x_167);
lean_dec(x_1);
x_169 = lean_ctor_get(x_2, 5);
x_170 = 0;
x_171 = l_Lean_SourceInfo_fromRef(x_169, x_170);
x_172 = 1;
x_173 = l_Lean_SourceInfo_fromRef(x_9, x_172);
lean_dec(x_9);
x_174 = l_Lean_Elab_Term_expandHave___lambda__4___closed__1;
x_175 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_175, 0, x_173);
lean_ctor_set(x_175, 1, x_174);
x_176 = l_Lean_SourceInfo_fromRef(x_111, x_172);
lean_dec(x_111);
x_177 = l_Lean_Elab_Term_expandHave___lambda__2___closed__3;
x_178 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_178, 0, x_176);
lean_ctor_set(x_178, 1, x_177);
lean_inc(x_171);
x_179 = l_Lean_Syntax_node1(x_171, x_107, x_178);
x_180 = l_Lean_Elab_Term_expandHave___closed__11;
lean_inc(x_171);
x_181 = l_Lean_Syntax_node1(x_171, x_180, x_179);
x_182 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
x_183 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
lean_inc(x_171);
x_184 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_184, 0, x_171);
lean_ctor_set(x_184, 1, x_182);
lean_ctor_set(x_184, 2, x_183);
x_185 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_171);
x_186 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_186, 0, x_171);
lean_ctor_set(x_186, 1, x_185);
x_187 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_171);
x_188 = l_Lean_Syntax_node2(x_171, x_187, x_186, x_112);
lean_inc(x_171);
x_189 = l_Lean_Syntax_node1(x_171, x_182, x_188);
x_190 = l_Lean_Elab_Term_elabShow___closed__12;
lean_inc(x_171);
x_191 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_191, 0, x_171);
lean_ctor_set(x_191, 1, x_190);
x_192 = l_Lean_Elab_Term_expandHave___closed__5;
lean_inc(x_171);
x_193 = l_Lean_Syntax_node5(x_171, x_192, x_181, x_184, x_189, x_191, x_168);
x_194 = l_Lean_Elab_Term_expandHave___closed__3;
lean_inc(x_171);
x_195 = l_Lean_Syntax_node1(x_171, x_194, x_193);
x_196 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_171);
x_197 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_197, 0, x_171);
lean_ctor_set(x_197, 1, x_196);
x_198 = l_Lean_Elab_Term_expandHave___closed__1;
x_199 = l_Lean_Syntax_node4(x_171, x_198, x_175, x_195, x_197, x_166);
x_200 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_200, 0, x_199);
lean_ctor_set(x_200, 1, x_3);
return x_200;
}
}
}
else
{
lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; uint8_t x_205; 
x_201 = l_Lean_Syntax_getArg(x_11, x_10);
x_202 = lean_unsigned_to_nat(2u);
x_203 = l_Lean_Syntax_getArg(x_11, x_202);
lean_dec(x_11);
x_204 = l_Lean_Elab_Term_expandShow___closed__6;
lean_inc(x_203);
x_205 = l_Lean_Syntax_isOfKind(x_203, x_204);
if (x_205 == 0)
{
lean_object* x_206; uint8_t x_207; 
x_206 = l_Lean_Elab_Term_expandShow___closed__4;
lean_inc(x_203);
x_207 = l_Lean_Syntax_isOfKind(x_203, x_206);
if (x_207 == 0)
{
lean_object* x_208; lean_object* x_209; 
lean_dec(x_203);
lean_dec(x_201);
lean_dec(x_104);
lean_dec(x_9);
lean_dec(x_1);
x_208 = lean_box(1);
x_209 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_209, 0, x_208);
lean_ctor_set(x_209, 1, x_3);
return x_209;
}
else
{
lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; 
x_210 = l_Lean_Syntax_getArg(x_203, x_8);
x_211 = l_Lean_Syntax_getArg(x_203, x_10);
lean_dec(x_203);
x_212 = l_Lean_Elab_Term_expandSuffices___closed__9;
lean_inc(x_211);
x_213 = l_Lean_Syntax_isOfKind(x_211, x_212);
if (x_213 == 0)
{
lean_object* x_214; lean_object* x_215; 
lean_dec(x_211);
lean_dec(x_210);
lean_dec(x_201);
lean_dec(x_104);
lean_dec(x_9);
lean_dec(x_1);
x_214 = lean_box(1);
x_215 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_3);
return x_215;
}
else
{
lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; lean_object* x_220; uint8_t x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; 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; 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_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; 
x_216 = lean_unsigned_to_nat(3u);
x_217 = l_Lean_Syntax_getArg(x_1, x_216);
lean_dec(x_1);
x_218 = lean_ctor_get(x_2, 5);
x_219 = 0;
x_220 = l_Lean_SourceInfo_fromRef(x_218, x_219);
x_221 = 1;
x_222 = l_Lean_SourceInfo_fromRef(x_9, x_221);
lean_dec(x_9);
x_223 = l_Lean_Elab_Term_expandHave___lambda__4___closed__1;
x_224 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_224, 0, x_222);
lean_ctor_set(x_224, 1, x_223);
x_225 = l_Lean_Elab_Term_expandHave___closed__11;
lean_inc(x_220);
x_226 = l_Lean_Syntax_node1(x_220, x_225, x_104);
x_227 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
x_228 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
lean_inc(x_220);
x_229 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_229, 0, x_220);
lean_ctor_set(x_229, 1, x_227);
lean_ctor_set(x_229, 2, x_228);
x_230 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_220);
x_231 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_231, 0, x_220);
lean_ctor_set(x_231, 1, x_230);
x_232 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_220);
x_233 = l_Lean_Syntax_node2(x_220, x_232, x_231, x_201);
lean_inc(x_220);
x_234 = l_Lean_Syntax_node1(x_220, x_227, x_233);
x_235 = l_Lean_Elab_Term_elabShow___closed__12;
lean_inc(x_220);
x_236 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_236, 0, x_220);
lean_ctor_set(x_236, 1, x_235);
x_237 = l_Lean_Elab_Term_expandHave___closed__5;
lean_inc(x_220);
x_238 = l_Lean_Syntax_node5(x_220, x_237, x_226, x_229, x_234, x_236, x_217);
x_239 = l_Lean_Elab_Term_expandHave___closed__3;
lean_inc(x_220);
x_240 = l_Lean_Syntax_node1(x_220, x_239, x_238);
x_241 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_220);
x_242 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_242, 0, x_220);
lean_ctor_set(x_242, 1, x_241);
x_243 = l_Lean_SourceInfo_fromRef(x_210, x_221);
lean_dec(x_210);
x_244 = l_Lean_Elab_Term_expandShow___closed__10;
x_245 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_245, 0, x_243);
lean_ctor_set(x_245, 1, x_244);
x_246 = l_Lean_Elab_Term_expandShow___closed__9;
lean_inc(x_220);
x_247 = l_Lean_Syntax_node2(x_220, x_246, x_245, x_211);
x_248 = l_Lean_Elab_Term_expandHave___closed__1;
x_249 = l_Lean_Syntax_node4(x_220, x_248, x_224, x_240, x_242, x_247);
x_250 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_250, 0, x_249);
lean_ctor_set(x_250, 1, x_3);
return x_250;
}
}
}
else
{
lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; lean_object* x_256; uint8_t 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; 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; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; 
x_251 = l_Lean_Syntax_getArg(x_203, x_10);
lean_dec(x_203);
x_252 = lean_unsigned_to_nat(3u);
x_253 = l_Lean_Syntax_getArg(x_1, x_252);
lean_dec(x_1);
x_254 = lean_ctor_get(x_2, 5);
x_255 = 0;
x_256 = l_Lean_SourceInfo_fromRef(x_254, x_255);
x_257 = 1;
x_258 = l_Lean_SourceInfo_fromRef(x_9, x_257);
lean_dec(x_9);
x_259 = l_Lean_Elab_Term_expandHave___lambda__4___closed__1;
x_260 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_260, 0, x_258);
lean_ctor_set(x_260, 1, x_259);
x_261 = l_Lean_Elab_Term_expandHave___closed__11;
lean_inc(x_256);
x_262 = l_Lean_Syntax_node1(x_256, x_261, x_104);
x_263 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
x_264 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
lean_inc(x_256);
x_265 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_265, 0, x_256);
lean_ctor_set(x_265, 1, x_263);
lean_ctor_set(x_265, 2, x_264);
x_266 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_256);
x_267 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_267, 0, x_256);
lean_ctor_set(x_267, 1, x_266);
x_268 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_256);
x_269 = l_Lean_Syntax_node2(x_256, x_268, x_267, x_201);
lean_inc(x_256);
x_270 = l_Lean_Syntax_node1(x_256, x_263, x_269);
x_271 = l_Lean_Elab_Term_elabShow___closed__12;
lean_inc(x_256);
x_272 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_272, 0, x_256);
lean_ctor_set(x_272, 1, x_271);
x_273 = l_Lean_Elab_Term_expandHave___closed__5;
lean_inc(x_256);
x_274 = l_Lean_Syntax_node5(x_256, x_273, x_262, x_265, x_270, x_272, x_253);
x_275 = l_Lean_Elab_Term_expandHave___closed__3;
lean_inc(x_256);
x_276 = l_Lean_Syntax_node1(x_256, x_275, x_274);
x_277 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_256);
x_278 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_278, 0, x_256);
lean_ctor_set(x_278, 1, x_277);
x_279 = l_Lean_Elab_Term_expandHave___closed__1;
x_280 = l_Lean_Syntax_node4(x_256, x_279, x_260, x_276, x_278, x_251);
x_281 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_281, 0, x_280);
lean_ctor_set(x_281, 1, x_3);
return x_281;
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandSuffices___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Elab_Term_expandSuffices(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandSuffices", 14, 14);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandSuffices___boxed), 3, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3;
x_3 = l_Lean_Elab_Term_expandSuffices___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(137u);
x_2 = lean_unsigned_to_nat(43u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(144u);
x_2 = lean_unsigned_to_nat(95u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__3() {
_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_Term_expandSuffices_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(43u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(95u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(137u);
x_2 = lean_unsigned_to_nat(47u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(137u);
x_2 = lean_unsigned_to_nat(61u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(47u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(61u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__3(lean_object* x_1, size_t x_2, size_t x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_eq(x_2, x_3);
if (x_4 == 0)
{
lean_object* x_5; uint8_t x_6; 
x_5 = lean_array_uget(x_1, x_2);
x_6 = l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__2(x_5);
lean_dec(x_5);
if (x_6 == 0)
{
size_t x_7; size_t x_8; 
x_7 = 1;
x_8 = lean_usize_add(x_2, x_7);
x_2 = x_8;
goto _start;
}
else
{
uint8_t x_10; 
x_10 = 1;
return x_10;
}
}
else
{
uint8_t x_11; 
x_11 = 0;
return x_11;
}
}
}
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__4(lean_object* x_1, size_t x_2, size_t x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_eq(x_2, x_3);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = lean_array_uget(x_1, x_2);
if (lean_obj_tag(x_5) == 0)
{
size_t x_6; size_t x_7; 
x_6 = 1;
x_7 = lean_usize_add(x_2, x_6);
x_2 = x_7;
goto _start;
}
else
{
lean_object* x_9; uint8_t x_10; 
x_9 = lean_ctor_get(x_5, 0);
lean_inc(x_9);
lean_dec(x_5);
x_10 = l_Lean_LocalDecl_isAuxDecl(x_9);
lean_dec(x_9);
if (x_10 == 0)
{
uint8_t x_11; 
x_11 = 1;
return x_11;
}
else
{
size_t x_12; size_t x_13; 
x_12 = 1;
x_13 = lean_usize_add(x_2, x_12);
x_2 = x_13;
goto _start;
}
}
}
else
{
uint8_t x_15; 
x_15 = 0;
return x_15;
}
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__2(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_array_get_size(x_2);
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_nat_dec_lt(x_4, x_3);
if (x_5 == 0)
{
uint8_t x_6; 
lean_dec(x_3);
x_6 = 0;
return x_6;
}
else
{
size_t x_7; size_t x_8; uint8_t x_9; 
x_7 = 0;
x_8 = lean_usize_of_nat(x_3);
lean_dec(x_3);
x_9 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__3(x_2, x_7, x_8);
return x_9;
}
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_10 = lean_ctor_get(x_1, 0);
x_11 = lean_array_get_size(x_10);
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_nat_dec_lt(x_12, x_11);
if (x_13 == 0)
{
uint8_t x_14; 
lean_dec(x_11);
x_14 = 0;
return x_14;
}
else
{
size_t x_15; size_t x_16; uint8_t x_17; 
x_15 = 0;
x_16 = lean_usize_of_nat(x_11);
lean_dec(x_11);
x_17 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__4(x_10, x_15, x_16);
return x_17;
}
}
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__2(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_4 = lean_ctor_get(x_1, 1);
x_5 = lean_array_get_size(x_4);
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_nat_dec_lt(x_6, x_5);
if (x_7 == 0)
{
uint8_t x_8; 
lean_dec(x_5);
x_8 = 0;
return x_8;
}
else
{
size_t x_9; size_t x_10; uint8_t x_11; 
x_9 = 0;
x_10 = lean_usize_of_nat(x_5);
lean_dec(x_5);
x_11 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__4(x_4, x_9, x_10);
return x_11;
}
}
else
{
return x_3;
}
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid `leading_parser` macro, it must be used in definitions", 62, 62);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid `leading_parser` macro, unexpected declaration name", 59, 59);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__3;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("withCache", 9, 9);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__5;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__5;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__5;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__8;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__8;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__10;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__9;
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__11;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("withAntiquot", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__13;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__13;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__13;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__16;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__16;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__18;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__17;
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__19;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("paren", 5, 5);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__21;
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_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__24() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("mkAntiquot", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__24;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__26() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__24;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__24;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__28() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__27;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__27;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__30() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__29;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__31() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__28;
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__30;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(")", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__33() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("leadingNode", 11, 11);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__34() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__33;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__35() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__33;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__36() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__33;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__37() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__36;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__38() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__36;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__39() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__38;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__40() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__37;
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__39;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__41() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Bool", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__42() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("false", 5, 5);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__43() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__41;
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__42;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__44() {
_start:
{
lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__43;
x_3 = 0;
x_4 = l_Lean_mkCIdentFrom(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__45() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("true", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__46() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__41;
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__45;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__47() {
_start:
{
lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__46;
x_3 = 0;
x_4 = l_Lean_mkCIdentFrom(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__48() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("quotedName", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__49() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__48;
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_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__50() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(".", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__51() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("`", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; lean_object* x_12; 
x_11 = l_Lean_Elab_Term_getDeclName_x3f(x_4, x_5, x_6, x_7, x_8, x_9, x_10);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
lean_dec(x_2);
lean_dec(x_1);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec(x_11);
x_14 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__2;
x_15 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__11(x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
lean_dec(x_8);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_16 = lean_ctor_get(x_11, 1);
lean_inc(x_16);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 x_17 = x_11;
} else {
 lean_dec_ref(x_11);
 x_17 = lean_box(0);
}
x_18 = lean_ctor_get(x_12, 0);
lean_inc(x_18);
lean_dec(x_12);
lean_inc(x_18);
x_19 = l_Lean_extractMacroScopes(x_18);
x_20 = lean_ctor_get(x_19, 0);
lean_inc(x_20);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 x_21 = x_19;
} else {
 lean_dec_ref(x_19);
 x_21 = lean_box(0);
}
if (lean_obj_tag(x_20) == 1)
{
lean_object* x_22; lean_object* x_23; lean_object* x_155; lean_object* x_156; 
lean_dec(x_4);
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
lean_dec(x_20);
x_155 = lean_box(0);
lean_inc(x_18);
x_156 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_155, x_18);
if (lean_obj_tag(x_156) == 0)
{
lean_object* x_157; 
x_157 = l_Lean_quoteNameMk(x_18);
x_23 = x_157;
goto block_154;
}
else
{
lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; 
lean_dec(x_18);
x_158 = lean_ctor_get(x_156, 0);
lean_inc(x_158);
lean_dec(x_156);
x_159 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__50;
x_160 = l_String_intercalate(x_159, x_158);
x_161 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__51;
x_162 = lean_string_append(x_161, x_160);
lean_dec(x_160);
x_163 = lean_box(2);
x_164 = l_Lean_Syntax_mkNameLit(x_162, x_163);
x_165 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52;
x_166 = lean_array_push(x_165, x_164);
x_167 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__49;
x_168 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_168, 0, x_163);
lean_ctor_set(x_168, 1, x_167);
lean_ctor_set(x_168, 2, x_166);
x_23 = x_168;
goto block_154;
}
block_154:
{
lean_object* x_24; lean_object* x_25; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; 
x_63 = lean_ctor_get(x_8, 5);
lean_inc(x_63);
x_64 = 0;
x_65 = l_Lean_SourceInfo_fromRef(x_63, x_64);
lean_dec(x_63);
x_66 = lean_ctor_get(x_8, 10);
lean_inc(x_66);
x_67 = lean_st_ref_get(x_9, x_16);
x_68 = !lean_is_exclusive(x_67);
if (x_68 == 0)
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_69 = lean_ctor_get(x_67, 0);
x_70 = lean_ctor_get(x_67, 1);
x_71 = lean_ctor_get(x_69, 0);
lean_inc(x_71);
lean_dec(x_69);
x_72 = lean_environment_main_module(x_71);
x_73 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__15;
lean_inc(x_66);
lean_inc(x_72);
x_74 = l_Lean_addMacroScope(x_72, x_73, x_66);
x_75 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__14;
x_76 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__20;
lean_inc(x_65);
x_77 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_77, 0, x_65);
lean_ctor_set(x_77, 1, x_75);
lean_ctor_set(x_77, 2, x_74);
lean_ctor_set(x_77, 3, x_76);
x_78 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23;
lean_inc(x_65);
lean_ctor_set_tag(x_67, 2);
lean_ctor_set(x_67, 1, x_78);
lean_ctor_set(x_67, 0, x_65);
x_79 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__26;
lean_inc(x_66);
lean_inc(x_72);
x_80 = l_Lean_addMacroScope(x_72, x_79, x_66);
x_81 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__25;
x_82 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__31;
lean_inc(x_65);
x_83 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_83, 0, x_65);
lean_ctor_set(x_83, 1, x_81);
lean_ctor_set(x_83, 2, x_80);
lean_ctor_set(x_83, 3, x_82);
x_84 = lean_box(2);
x_85 = l_Lean_Syntax_mkStrLit(x_22, x_84);
lean_dec(x_22);
x_86 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32;
lean_inc(x_65);
x_87 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_87, 0, x_65);
lean_ctor_set(x_87, 1, x_86);
x_88 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__35;
x_89 = l_Lean_addMacroScope(x_72, x_88, x_66);
x_90 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__34;
x_91 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__40;
lean_inc(x_65);
x_92 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_92, 0, x_65);
lean_ctor_set(x_92, 1, x_90);
lean_ctor_set(x_92, 2, x_89);
lean_ctor_set(x_92, 3, x_91);
x_93 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_23);
lean_inc(x_65);
x_94 = l_Lean_Syntax_node3(x_65, x_93, x_23, x_1, x_2);
x_95 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
lean_inc(x_65);
x_96 = l_Lean_Syntax_node2(x_65, x_95, x_92, x_94);
x_97 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22;
lean_inc(x_87);
lean_inc(x_67);
lean_inc(x_65);
x_98 = l_Lean_Syntax_node3(x_65, x_97, x_67, x_96, x_87);
if (x_3 == 0)
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_99 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__44;
lean_inc(x_23);
lean_inc(x_65);
x_100 = l_Lean_Syntax_node3(x_65, x_93, x_85, x_23, x_99);
lean_inc(x_65);
x_101 = l_Lean_Syntax_node2(x_65, x_95, x_83, x_100);
lean_inc(x_65);
x_102 = l_Lean_Syntax_node3(x_65, x_97, x_67, x_101, x_87);
lean_inc(x_65);
x_103 = l_Lean_Syntax_node2(x_65, x_93, x_102, x_98);
x_104 = l_Lean_Syntax_node2(x_65, x_95, x_77, x_103);
x_24 = x_104;
x_25 = x_70;
goto block_62;
}
else
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; 
x_105 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__47;
lean_inc(x_23);
lean_inc(x_65);
x_106 = l_Lean_Syntax_node3(x_65, x_93, x_85, x_23, x_105);
lean_inc(x_65);
x_107 = l_Lean_Syntax_node2(x_65, x_95, x_83, x_106);
lean_inc(x_65);
x_108 = l_Lean_Syntax_node3(x_65, x_97, x_67, x_107, x_87);
lean_inc(x_65);
x_109 = l_Lean_Syntax_node2(x_65, x_93, x_108, x_98);
x_110 = l_Lean_Syntax_node2(x_65, x_95, x_77, x_109);
x_24 = x_110;
x_25 = x_70;
goto block_62;
}
}
else
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 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; 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; 
x_111 = lean_ctor_get(x_67, 0);
x_112 = lean_ctor_get(x_67, 1);
lean_inc(x_112);
lean_inc(x_111);
lean_dec(x_67);
x_113 = lean_ctor_get(x_111, 0);
lean_inc(x_113);
lean_dec(x_111);
x_114 = lean_environment_main_module(x_113);
x_115 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__15;
lean_inc(x_66);
lean_inc(x_114);
x_116 = l_Lean_addMacroScope(x_114, x_115, x_66);
x_117 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__14;
x_118 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__20;
lean_inc(x_65);
x_119 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_119, 0, x_65);
lean_ctor_set(x_119, 1, x_117);
lean_ctor_set(x_119, 2, x_116);
lean_ctor_set(x_119, 3, x_118);
x_120 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23;
lean_inc(x_65);
x_121 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_121, 0, x_65);
lean_ctor_set(x_121, 1, x_120);
x_122 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__26;
lean_inc(x_66);
lean_inc(x_114);
x_123 = l_Lean_addMacroScope(x_114, x_122, x_66);
x_124 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__25;
x_125 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__31;
lean_inc(x_65);
x_126 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_126, 0, x_65);
lean_ctor_set(x_126, 1, x_124);
lean_ctor_set(x_126, 2, x_123);
lean_ctor_set(x_126, 3, x_125);
x_127 = lean_box(2);
x_128 = l_Lean_Syntax_mkStrLit(x_22, x_127);
lean_dec(x_22);
x_129 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32;
lean_inc(x_65);
x_130 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_130, 0, x_65);
lean_ctor_set(x_130, 1, x_129);
x_131 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__35;
x_132 = l_Lean_addMacroScope(x_114, x_131, x_66);
x_133 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__34;
x_134 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__40;
lean_inc(x_65);
x_135 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_135, 0, x_65);
lean_ctor_set(x_135, 1, x_133);
lean_ctor_set(x_135, 2, x_132);
lean_ctor_set(x_135, 3, x_134);
x_136 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_23);
lean_inc(x_65);
x_137 = l_Lean_Syntax_node3(x_65, x_136, x_23, x_1, x_2);
x_138 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
lean_inc(x_65);
x_139 = l_Lean_Syntax_node2(x_65, x_138, x_135, x_137);
x_140 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22;
lean_inc(x_130);
lean_inc(x_121);
lean_inc(x_65);
x_141 = l_Lean_Syntax_node3(x_65, x_140, x_121, x_139, x_130);
if (x_3 == 0)
{
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_142 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__44;
lean_inc(x_23);
lean_inc(x_65);
x_143 = l_Lean_Syntax_node3(x_65, x_136, x_128, x_23, x_142);
lean_inc(x_65);
x_144 = l_Lean_Syntax_node2(x_65, x_138, x_126, x_143);
lean_inc(x_65);
x_145 = l_Lean_Syntax_node3(x_65, x_140, x_121, x_144, x_130);
lean_inc(x_65);
x_146 = l_Lean_Syntax_node2(x_65, x_136, x_145, x_141);
x_147 = l_Lean_Syntax_node2(x_65, x_138, x_119, x_146);
x_24 = x_147;
x_25 = x_112;
goto block_62;
}
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; 
x_148 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__47;
lean_inc(x_23);
lean_inc(x_65);
x_149 = l_Lean_Syntax_node3(x_65, x_136, x_128, x_23, x_148);
lean_inc(x_65);
x_150 = l_Lean_Syntax_node2(x_65, x_138, x_126, x_149);
lean_inc(x_65);
x_151 = l_Lean_Syntax_node3(x_65, x_140, x_121, x_150, x_130);
lean_inc(x_65);
x_152 = l_Lean_Syntax_node2(x_65, x_136, x_151, x_141);
x_153 = l_Lean_Syntax_node2(x_65, x_138, x_119, x_152);
x_24 = x_153;
x_25 = x_112;
goto block_62;
}
}
block_62:
{
lean_object* x_26; lean_object* x_27; uint8_t x_28; 
x_26 = lean_ctor_get(x_6, 1);
x_27 = lean_ctor_get(x_26, 1);
x_28 = l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(x_27);
if (x_28 == 0)
{
lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; 
lean_dec(x_17);
x_29 = lean_ctor_get(x_8, 5);
lean_inc(x_29);
x_30 = 0;
x_31 = l_Lean_SourceInfo_fromRef(x_29, x_30);
lean_dec(x_29);
x_32 = lean_ctor_get(x_8, 10);
lean_inc(x_32);
lean_dec(x_8);
x_33 = lean_st_ref_get(x_9, x_25);
x_34 = !lean_is_exclusive(x_33);
if (x_34 == 0)
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 
x_35 = lean_ctor_get(x_33, 0);
x_36 = lean_ctor_get(x_35, 0);
lean_inc(x_36);
lean_dec(x_35);
x_37 = lean_environment_main_module(x_36);
x_38 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__7;
x_39 = l_Lean_addMacroScope(x_37, x_38, x_32);
x_40 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__6;
x_41 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__12;
lean_inc(x_31);
if (lean_is_scalar(x_21)) {
 x_42 = lean_alloc_ctor(3, 4, 0);
} else {
 x_42 = x_21;
 lean_ctor_set_tag(x_42, 3);
}
lean_ctor_set(x_42, 0, x_31);
lean_ctor_set(x_42, 1, x_40);
lean_ctor_set(x_42, 2, x_39);
lean_ctor_set(x_42, 3, x_41);
x_43 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_31);
x_44 = l_Lean_Syntax_node2(x_31, x_43, x_23, x_24);
x_45 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_46 = l_Lean_Syntax_node2(x_31, x_45, x_42, x_44);
lean_ctor_set(x_33, 0, x_46);
return x_33;
}
else
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_47 = lean_ctor_get(x_33, 0);
x_48 = lean_ctor_get(x_33, 1);
lean_inc(x_48);
lean_inc(x_47);
lean_dec(x_33);
x_49 = lean_ctor_get(x_47, 0);
lean_inc(x_49);
lean_dec(x_47);
x_50 = lean_environment_main_module(x_49);
x_51 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__7;
x_52 = l_Lean_addMacroScope(x_50, x_51, x_32);
x_53 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__6;
x_54 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__12;
lean_inc(x_31);
if (lean_is_scalar(x_21)) {
 x_55 = lean_alloc_ctor(3, 4, 0);
} else {
 x_55 = x_21;
 lean_ctor_set_tag(x_55, 3);
}
lean_ctor_set(x_55, 0, x_31);
lean_ctor_set(x_55, 1, x_53);
lean_ctor_set(x_55, 2, x_52);
lean_ctor_set(x_55, 3, x_54);
x_56 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_31);
x_57 = l_Lean_Syntax_node2(x_31, x_56, x_23, x_24);
x_58 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_59 = l_Lean_Syntax_node2(x_31, x_58, x_55, x_57);
x_60 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_48);
return x_60;
}
}
else
{
lean_object* x_61; 
lean_dec(x_23);
lean_dec(x_21);
lean_dec(x_8);
if (lean_is_scalar(x_17)) {
 x_61 = lean_alloc_ctor(0, 2, 0);
} else {
 x_61 = x_17;
}
lean_ctor_set(x_61, 0, x_24);
lean_ctor_set(x_61, 1, x_25);
return x_61;
}
}
}
}
else
{
lean_object* x_169; lean_object* x_170; 
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_2);
lean_dec(x_1);
x_169 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__4;
x_170 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__11(x_169, x_4, x_5, x_6, x_7, x_8, x_9, x_16);
lean_dec(x_8);
return x_170;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7; 
x_4 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_5 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_6 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__3(x_1, x_4, x_5);
lean_dec(x_1);
x_7 = lean_box(x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7; 
x_4 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_5 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_6 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__4(x_1, x_4, x_5);
lean_dec(x_1);
x_7 = lean_box(x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__2___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__2(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___spec__1(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___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; lean_object* x_12; 
x_11 = lean_unbox(x_3);
lean_dec(x_3);
x_12 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
return x_12;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Parser_maxPrec;
x_2 = l___private_Init_Data_Repr_0__Nat_reprFast(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__1;
x_2 = lean_box(2);
x_3 = l_Lean_Syntax_mkNumLit(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("trueVal", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_unsigned_to_nat(3u);
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
if (lean_obj_tag(x_2) == 0)
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_14; uint8_t x_15; lean_object* x_16; 
x_14 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__2;
x_15 = 1;
x_16 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux(x_14, x_13, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; 
x_17 = lean_ctor_get(x_4, 0);
lean_inc(x_17);
lean_dec(x_4);
x_18 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__4;
x_19 = l_Lean_Syntax_isOfKind(x_17, x_18);
x_20 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__2;
x_21 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux(x_20, x_13, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
return x_21;
}
}
else
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_22; uint8_t x_23; lean_object* x_24; 
x_22 = lean_ctor_get(x_2, 0);
lean_inc(x_22);
lean_dec(x_2);
x_23 = 1;
x_24 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux(x_22, x_13, x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
return x_24;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; 
x_25 = lean_ctor_get(x_2, 0);
lean_inc(x_25);
lean_dec(x_2);
x_26 = lean_ctor_get(x_4, 0);
lean_inc(x_26);
lean_dec(x_4);
x_27 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__4;
x_28 = l_Lean_Syntax_isOfKind(x_26, x_27);
x_29 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux(x_25, x_13, x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
return x_29;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("withAnonymousAntiquot", 21, 21);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___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; lean_object* x_12; uint8_t x_13; 
x_11 = lean_unsigned_to_nat(2u);
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
x_13 = l_Lean_Syntax_isNone(x_12);
if (x_13 == 0)
{
lean_object* x_14; uint8_t x_15; 
x_14 = lean_unsigned_to_nat(1u);
lean_inc(x_12);
x_15 = l_Lean_Syntax_matchesNull(x_12, x_14);
if (x_15 == 0)
{
lean_object* x_16; 
lean_dec(x_12);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_3);
x_16 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__13___rarg(x_10);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_17 = lean_unsigned_to_nat(0u);
x_18 = l_Lean_Syntax_getArg(x_12, x_17);
lean_dec(x_12);
x_19 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2___closed__2;
lean_inc(x_18);
x_20 = l_Lean_Syntax_isOfKind(x_18, x_19);
if (x_20 == 0)
{
lean_object* x_21; 
lean_dec(x_18);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_3);
x_21 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__13___rarg(x_10);
return x_21;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_22 = lean_unsigned_to_nat(3u);
x_23 = l_Lean_Syntax_getArg(x_18, x_22);
lean_dec(x_18);
x_24 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_24, 0, x_23);
x_25 = lean_box(0);
x_26 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1(x_1, x_3, x_25, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_26;
}
}
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
lean_dec(x_12);
x_27 = lean_box(0);
x_28 = lean_box(0);
x_29 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1(x_1, x_3, x_28, x_27, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_29;
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("leading_parser", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___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; uint8_t x_10; 
x_9 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__2;
lean_inc(x_1);
x_10 = l_Lean_Syntax_isOfKind(x_1, x_9);
if (x_10 == 0)
{
lean_object* x_11; 
lean_dec(x_6);
lean_dec(x_2);
lean_dec(x_1);
x_11 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__13___rarg(x_8);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_12 = lean_unsigned_to_nat(1u);
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
x_14 = l_Lean_Syntax_isNone(x_13);
if (x_14 == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_unsigned_to_nat(2u);
lean_inc(x_13);
x_16 = l_Lean_Syntax_matchesNull(x_13, x_15);
if (x_16 == 0)
{
lean_object* x_17; 
lean_dec(x_13);
lean_dec(x_6);
lean_dec(x_2);
lean_dec(x_1);
x_17 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__13___rarg(x_8);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_18 = l_Lean_Syntax_getArg(x_13, x_12);
lean_dec(x_13);
x_19 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_19, 0, x_18);
x_20 = lean_box(0);
x_21 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2(x_1, x_20, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_1);
return x_21;
}
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; 
lean_dec(x_13);
x_22 = lean_box(0);
x_23 = lean_box(0);
x_24 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2(x_1, x_23, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_1);
return x_24;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabLeadingParserMacro___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___boxed), 8, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro(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; 
x_10 = l_Lean_Elab_Term_elabLeadingParserMacro___closed__1;
x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1(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_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_1);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___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_Lean_Elab_Term_elabLeadingParserMacro___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_9);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLeadingParserMacro___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:
{
lean_object* x_9; 
x_9 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_9;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabLeadingParserMacro", 22, 22);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLeadingParserMacro), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(162u);
x_2 = lean_unsigned_to_nat(38u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(166u);
x_2 = lean_unsigned_to_nat(33u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__3() {
_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_Term_elabLeadingParserMacro_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(38u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(33u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(162u);
x_2 = lean_unsigned_to_nat(42u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(162u);
x_2 = lean_unsigned_to_nat(64u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(42u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(64u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Parser.trailingNode", 24, 24);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__1;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("trailingNode", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__3;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__4;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__4;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__5;
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid `trailing_parser` macro, it must be used in definitions", 63, 63);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__9;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux(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; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_11 = l_Lean_Elab_Term_getDeclName_x3f(x_4, x_5, x_6, x_7, x_8, x_9, x_10);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec(x_11);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_48; lean_object* x_49; 
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_48 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__10;
x_49 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__11(x_48, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
lean_dec(x_8);
return x_49;
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; 
lean_dec(x_4);
x_50 = lean_ctor_get(x_12, 0);
lean_inc(x_50);
lean_dec(x_12);
x_51 = lean_box(0);
lean_inc(x_50);
x_52 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_51, x_50);
if (lean_obj_tag(x_52) == 0)
{
lean_object* x_53; 
x_53 = l_Lean_quoteNameMk(x_50);
x_14 = x_53;
goto block_47;
}
else
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
lean_dec(x_50);
x_54 = lean_ctor_get(x_52, 0);
lean_inc(x_54);
lean_dec(x_52);
x_55 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__50;
x_56 = l_String_intercalate(x_55, x_54);
x_57 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__51;
x_58 = lean_string_append(x_57, x_56);
lean_dec(x_56);
x_59 = lean_box(2);
x_60 = l_Lean_Syntax_mkNameLit(x_58, x_59);
x_61 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52;
x_62 = lean_array_push(x_61, x_60);
x_63 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__49;
x_64 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_64, 0, x_59);
lean_ctor_set(x_64, 1, x_63);
lean_ctor_set(x_64, 2, x_62);
x_14 = x_64;
goto block_47;
}
}
block_47:
{
lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_15 = lean_ctor_get(x_8, 5);
lean_inc(x_15);
x_16 = 0;
x_17 = l_Lean_SourceInfo_fromRef(x_15, x_16);
lean_dec(x_15);
x_18 = lean_ctor_get(x_8, 10);
lean_inc(x_18);
lean_dec(x_8);
x_19 = lean_st_ref_get(x_9, x_13);
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_21 = lean_ctor_get(x_19, 0);
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
lean_dec(x_21);
x_23 = lean_environment_main_module(x_22);
x_24 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__4;
x_25 = l_Lean_addMacroScope(x_23, x_24, x_18);
x_26 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__2;
x_27 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__8;
lean_inc(x_17);
x_28 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_28, 0, x_17);
lean_ctor_set(x_28, 1, x_26);
lean_ctor_set(x_28, 2, x_25);
lean_ctor_set(x_28, 3, x_27);
x_29 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_17);
x_30 = l_Lean_Syntax_node4(x_17, x_29, x_14, x_1, x_2, x_3);
x_31 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_32 = l_Lean_Syntax_node2(x_17, x_31, x_28, x_30);
lean_ctor_set(x_19, 0, x_32);
return x_19;
}
else
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 
x_33 = lean_ctor_get(x_19, 0);
x_34 = lean_ctor_get(x_19, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_19);
x_35 = lean_ctor_get(x_33, 0);
lean_inc(x_35);
lean_dec(x_33);
x_36 = lean_environment_main_module(x_35);
x_37 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__4;
x_38 = l_Lean_addMacroScope(x_36, x_37, x_18);
x_39 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__2;
x_40 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__8;
lean_inc(x_17);
x_41 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_41, 0, x_17);
lean_ctor_set(x_41, 1, x_39);
lean_ctor_set(x_41, 2, x_38);
lean_ctor_set(x_41, 3, x_40);
x_42 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_17);
x_43 = l_Lean_Syntax_node4(x_17, x_42, x_14, x_1, x_2, x_3);
x_44 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_45 = l_Lean_Syntax_node2(x_17, x_44, x_41, x_43);
x_46 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_46, 0, x_45);
lean_ctor_set(x_46, 1, x_34);
return x_46;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
return x_11;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = l___private_Init_Data_Repr_0__Nat_reprFast(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__1;
x_2 = lean_box(2);
x_3 = l_Lean_Syntax_mkNumLit(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_unsigned_to_nat(3u);
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
if (lean_obj_tag(x_2) == 0)
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__2;
x_15 = l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__2;
x_16 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux(x_14, x_15, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_17 = lean_ctor_get(x_4, 0);
lean_inc(x_17);
lean_dec(x_4);
x_18 = l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__2;
x_19 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux(x_18, x_17, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
return x_19;
}
}
else
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_20 = lean_ctor_get(x_2, 0);
lean_inc(x_20);
lean_dec(x_2);
x_21 = l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__2;
x_22 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux(x_20, x_21, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
return x_22;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_2, 0);
lean_inc(x_23);
lean_dec(x_2);
x_24 = lean_ctor_get(x_4, 0);
lean_inc(x_24);
lean_dec(x_4);
x_25 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux(x_23, x_24, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
return x_25;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___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; lean_object* x_12; uint8_t x_13; 
x_11 = lean_unsigned_to_nat(2u);
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
x_13 = l_Lean_Syntax_isNone(x_12);
if (x_13 == 0)
{
uint8_t x_14; 
lean_inc(x_12);
x_14 = l_Lean_Syntax_matchesNull(x_12, x_11);
if (x_14 == 0)
{
lean_object* x_15; 
lean_dec(x_12);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_3);
x_15 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__13___rarg(x_10);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_16 = lean_unsigned_to_nat(1u);
x_17 = l_Lean_Syntax_getArg(x_12, x_16);
lean_dec(x_12);
x_18 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_18, 0, x_17);
x_19 = lean_box(0);
x_20 = l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1(x_1, x_3, x_19, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_20;
}
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
lean_dec(x_12);
x_21 = lean_box(0);
x_22 = lean_box(0);
x_23 = l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1(x_1, x_3, x_22, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_23;
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("trailing_parser", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___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; uint8_t x_10; 
x_9 = l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__2;
lean_inc(x_1);
x_10 = l_Lean_Syntax_isOfKind(x_1, x_9);
if (x_10 == 0)
{
lean_object* x_11; 
lean_dec(x_6);
lean_dec(x_2);
lean_dec(x_1);
x_11 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__13___rarg(x_8);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_12 = lean_unsigned_to_nat(1u);
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
x_14 = l_Lean_Syntax_isNone(x_13);
if (x_14 == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_unsigned_to_nat(2u);
lean_inc(x_13);
x_16 = l_Lean_Syntax_matchesNull(x_13, x_15);
if (x_16 == 0)
{
lean_object* x_17; 
lean_dec(x_13);
lean_dec(x_6);
lean_dec(x_2);
lean_dec(x_1);
x_17 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__13___rarg(x_8);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_18 = l_Lean_Syntax_getArg(x_13, x_12);
lean_dec(x_13);
x_19 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_19, 0, x_18);
x_20 = lean_box(0);
x_21 = l_Lean_Elab_Term_elabTrailingParserMacro___lambda__2(x_1, x_20, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_1);
return x_21;
}
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; 
lean_dec(x_13);
x_22 = lean_box(0);
x_23 = lean_box(0);
x_24 = l_Lean_Elab_Term_elabTrailingParserMacro___lambda__2(x_1, x_23, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_1);
return x_24;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabTrailingParserMacro___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___boxed), 8, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro(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; 
x_10 = l_Lean_Elab_Term_elabTrailingParserMacro___closed__1;
x_11 = l_Lean_Elab_Term_adaptExpander(x_10, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1(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_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_1);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___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_Lean_Elab_Term_elabTrailingParserMacro___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_9);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTrailingParserMacro___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:
{
lean_object* x_9; 
x_9 = l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_9;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabTrailingParserMacro", 23, 23);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTrailingParserMacro), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(174u);
x_2 = lean_unsigned_to_nat(39u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(178u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__3() {
_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_Term_elabTrailingParserMacro_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(39u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(174u);
x_2 = lean_unsigned_to_nat(43u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(174u);
x_2 = lean_unsigned_to_nat(66u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(43u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(66u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_1, 5);
x_5 = 0;
x_6 = l_Lean_Syntax_getPos_x3f(x_4, x_5);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_3);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_6, 0);
lean_inc(x_9);
lean_dec(x_6);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_10, 1, x_3);
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Lean_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Lean_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2___rarg___boxed), 3, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_getRefPosition___at_Lean_Elab_Term_elabPanic___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_8 = lean_ctor_get(x_5, 1);
lean_inc(x_8);
x_9 = l_Lean_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2___rarg(x_5, x_6, x_7);
lean_dec(x_5);
x_10 = !lean_is_exclusive(x_9);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_ctor_get(x_9, 0);
x_12 = l_Lean_FileMap_toPosition(x_8, x_11);
lean_dec(x_11);
lean_ctor_set(x_9, 0, x_12);
return x_9;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_13 = lean_ctor_get(x_9, 0);
x_14 = lean_ctor_get(x_9, 1);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_9);
x_15 = l_Lean_FileMap_toPosition(x_8, x_13);
lean_dec(x_13);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_14);
return x_16;
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("panic", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabPanic___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("panicWithPos", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabPanic___closed__3;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabPanic___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabPanic___closed__5;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabPanic___closed__5;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabPanic___closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_elabPanic___closed__6;
x_2 = l_Lean_Elab_Term_elabPanic___closed__8;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("panicWithPosWithDecl", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabPanic___closed__10;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabPanic___closed__10;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabPanic___closed__12;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabPanic___closed__12;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabPanic___closed__14;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabPanic___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_elabPanic___closed__13;
x_2 = l_Lean_Elab_Term_elabPanic___closed__15;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabPanic(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; uint8_t x_11; 
x_10 = l_Lean_Elab_Term_elabPanic___closed__2;
lean_inc(x_1);
x_11 = l_Lean_Syntax_isOfKind(x_1, x_10);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_12;
}
else
{
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; lean_object* x_22; lean_object* x_23; 
x_13 = lean_unsigned_to_nat(1u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
lean_inc(x_7);
x_15 = l_Lean_getRefPosition___at_Lean_Elab_Term_elabPanic___spec__1(x_3, x_4, x_5, x_6, x_7, x_8, x_9);
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_15, 1);
lean_inc(x_17);
lean_dec(x_15);
x_18 = lean_st_ref_get(x_8, x_17);
x_19 = lean_ctor_get(x_18, 0);
lean_inc(x_19);
x_20 = lean_ctor_get(x_18, 1);
lean_inc(x_20);
lean_dec(x_18);
x_21 = lean_ctor_get(x_19, 0);
lean_inc(x_21);
lean_dec(x_19);
x_22 = l_Lean_Elab_Term_getDeclName_x3f(x_3, x_4, x_5, x_6, x_7, x_8, x_20);
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_24 = lean_ctor_get(x_22, 1);
lean_inc(x_24);
lean_dec(x_22);
x_25 = lean_ctor_get(x_7, 5);
lean_inc(x_25);
x_26 = 0;
x_27 = l_Lean_SourceInfo_fromRef(x_25, x_26);
lean_dec(x_25);
x_28 = lean_ctor_get(x_7, 10);
lean_inc(x_28);
x_29 = lean_st_ref_get(x_8, x_24);
x_30 = lean_ctor_get(x_29, 0);
lean_inc(x_30);
x_31 = lean_ctor_get(x_29, 1);
lean_inc(x_31);
lean_dec(x_29);
x_32 = lean_ctor_get(x_30, 0);
lean_inc(x_32);
lean_dec(x_30);
x_33 = lean_environment_main_module(x_32);
x_34 = l_Lean_Elab_Term_elabPanic___closed__5;
x_35 = l_Lean_addMacroScope(x_33, x_34, x_28);
x_36 = l_Lean_Elab_Term_elabPanic___closed__4;
x_37 = l_Lean_Elab_Term_elabPanic___closed__9;
lean_inc(x_27);
x_38 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_38, 0, x_27);
lean_ctor_set(x_38, 1, x_36);
lean_ctor_set(x_38, 2, x_35);
lean_ctor_set(x_38, 3, x_37);
x_39 = lean_environment_main_module(x_21);
x_40 = 1;
x_41 = l_Lean_Name_toString(x_39, x_40);
x_42 = lean_box(2);
x_43 = l_Lean_Syntax_mkStrLit(x_41, x_42);
lean_dec(x_41);
x_44 = lean_ctor_get(x_16, 0);
lean_inc(x_44);
x_45 = l___private_Init_Data_Repr_0__Nat_reprFast(x_44);
x_46 = l_Lean_Syntax_mkNumLit(x_45, x_42);
x_47 = lean_ctor_get(x_16, 1);
lean_inc(x_47);
lean_dec(x_16);
x_48 = l___private_Init_Data_Repr_0__Nat_reprFast(x_47);
x_49 = l_Lean_Syntax_mkNumLit(x_48, x_42);
x_50 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_27);
x_51 = l_Lean_Syntax_node4(x_27, x_50, x_43, x_46, x_49, x_14);
x_52 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_53 = l_Lean_Syntax_node2(x_27, x_52, x_38, x_51);
x_54 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__2(x_2, x_1, x_53, x_3, x_4, x_5, x_6, x_7, x_8, x_31);
return x_54;
}
else
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; 
x_55 = lean_ctor_get(x_22, 1);
lean_inc(x_55);
lean_dec(x_22);
x_56 = lean_ctor_get(x_23, 0);
lean_inc(x_56);
lean_dec(x_23);
x_57 = lean_ctor_get(x_7, 5);
lean_inc(x_57);
x_58 = 0;
x_59 = l_Lean_SourceInfo_fromRef(x_57, x_58);
lean_dec(x_57);
x_60 = lean_ctor_get(x_7, 10);
lean_inc(x_60);
x_61 = lean_st_ref_get(x_8, x_55);
x_62 = lean_ctor_get(x_61, 0);
lean_inc(x_62);
x_63 = lean_ctor_get(x_61, 1);
lean_inc(x_63);
lean_dec(x_61);
x_64 = lean_ctor_get(x_62, 0);
lean_inc(x_64);
lean_dec(x_62);
x_65 = lean_environment_main_module(x_64);
x_66 = l_Lean_Elab_Term_elabPanic___closed__12;
x_67 = l_Lean_addMacroScope(x_65, x_66, x_60);
x_68 = l_Lean_Elab_Term_elabPanic___closed__11;
x_69 = l_Lean_Elab_Term_elabPanic___closed__16;
lean_inc(x_59);
x_70 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_70, 0, x_59);
lean_ctor_set(x_70, 1, x_68);
lean_ctor_set(x_70, 2, x_67);
lean_ctor_set(x_70, 3, x_69);
x_71 = lean_environment_main_module(x_21);
x_72 = 1;
x_73 = l_Lean_Name_toString(x_71, x_72);
x_74 = lean_box(2);
x_75 = l_Lean_Syntax_mkStrLit(x_73, x_74);
lean_dec(x_73);
x_76 = l_Lean_Name_toString(x_56, x_72);
x_77 = l_Lean_Syntax_mkStrLit(x_76, x_74);
lean_dec(x_76);
x_78 = lean_ctor_get(x_16, 0);
lean_inc(x_78);
x_79 = l___private_Init_Data_Repr_0__Nat_reprFast(x_78);
x_80 = l_Lean_Syntax_mkNumLit(x_79, x_74);
x_81 = lean_ctor_get(x_16, 1);
lean_inc(x_81);
lean_dec(x_16);
x_82 = l___private_Init_Data_Repr_0__Nat_reprFast(x_81);
x_83 = l_Lean_Syntax_mkNumLit(x_82, x_74);
x_84 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_59);
x_85 = l_Lean_Syntax_node5(x_59, x_84, x_75, x_77, x_80, x_83, x_14);
x_86 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_87 = l_Lean_Syntax_node2(x_59, x_86, x_70, x_85);
x_88 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__2(x_2, x_1, x_87, x_3, x_4, x_5, x_6, x_7, x_8, x_63);
return x_88;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2___rarg(x_1, x_2, x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_getRefPos___at_Lean_Elab_Term_elabPanic___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_getRefPos___at_Lean_Elab_Term_elabPanic___spec__2(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_getRefPosition___at_Lean_Elab_Term_elabPanic___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_getRefPosition___at_Lean_Elab_Term_elabPanic___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_8;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabPanic", 9, 9);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabPanic), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l_Lean_Elab_Term_elabPanic___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(180u);
x_2 = lean_unsigned_to_nat(44u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(189u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__3() {
_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_Term_elabPanic_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(44u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(180u);
x_2 = lean_unsigned_to_nat(48u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(180u);
x_2 = lean_unsigned_to_nat(57u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(48u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(57u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandUnreachable___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("panic!", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandUnreachable___rarg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("str", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandUnreachable___rarg___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_Term_expandUnreachable___rarg___closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandUnreachable___rarg___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\"unreachable code has been reached\"", 35, 35);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandUnreachable___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
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; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_3 = lean_ctor_get(x_1, 5);
x_4 = 0;
x_5 = l_Lean_SourceInfo_fromRef(x_3, x_4);
x_6 = l_Lean_Elab_Term_expandUnreachable___rarg___closed__1;
lean_inc(x_5);
x_7 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
x_8 = l_Lean_Elab_Term_expandUnreachable___rarg___closed__4;
lean_inc(x_5);
x_9 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_9, 0, x_5);
lean_ctor_set(x_9, 1, x_8);
x_10 = l_Lean_Elab_Term_expandUnreachable___rarg___closed__3;
lean_inc(x_5);
x_11 = l_Lean_Syntax_node1(x_5, x_10, x_9);
x_12 = l_Lean_Elab_Term_elabPanic___closed__2;
x_13 = l_Lean_Syntax_node2(x_5, x_12, x_7, x_11);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_2);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandUnreachable(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandUnreachable___rarg___boxed), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandUnreachable___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Elab_Term_expandUnreachable___rarg(x_1, x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandUnreachable___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Elab_Term_expandUnreachable(x_1);
lean_dec(x_1);
return x_2;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unreachable", 11, 11);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandUnreachable", 17, 17);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandUnreachable___boxed), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3;
x_3 = l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__4;
x_5 = l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__5;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(191u);
x_2 = lean_unsigned_to_nat(47u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(192u);
x_2 = lean_unsigned_to_nat(47u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(47u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__2;
x_4 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 3, x_2);
return x_4;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(191u);
x_2 = lean_unsigned_to_nat(51u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(191u);
x_2 = lean_unsigned_to_nat(68u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(51u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(68u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandAssert___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("assert", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandAssert___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandAssert___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandAssert___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("termIfThenElse", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandAssert___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandAssert___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandAssert___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("if", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandAssert___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("then", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandAssert___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("else", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandAssert___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\"assertion violation\"", 21, 21);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandAssert___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("term_++_", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandAssert___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandAssert___closed__9;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandAssert___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\"assertion violation: \"", 23, 23);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandAssert___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("++", 2, 2);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandAssert(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_Elab_Term_expandAssert___closed__2;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_8 = lean_unsigned_to_nat(1u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(3u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
lean_dec(x_1);
lean_inc(x_9);
x_12 = l_Lean_Syntax_reprint(x_9);
if (lean_obj_tag(x_12) == 0)
{
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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_13 = lean_ctor_get(x_2, 5);
x_14 = 0;
x_15 = l_Lean_SourceInfo_fromRef(x_13, x_14);
x_16 = l_Lean_Elab_Term_expandAssert___closed__5;
lean_inc(x_15);
x_17 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
x_18 = l_Lean_Elab_Term_expandAssert___closed__6;
lean_inc(x_15);
x_19 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_19, 0, x_15);
lean_ctor_set(x_19, 1, x_18);
x_20 = l_Lean_Elab_Term_expandAssert___closed__7;
lean_inc(x_15);
x_21 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_21, 0, x_15);
lean_ctor_set(x_21, 1, x_20);
x_22 = l_Lean_Elab_Term_expandUnreachable___rarg___closed__1;
lean_inc(x_15);
x_23 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_23, 0, x_15);
lean_ctor_set(x_23, 1, x_22);
x_24 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23;
lean_inc(x_15);
x_25 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_25, 0, x_15);
lean_ctor_set(x_25, 1, x_24);
x_26 = l_Lean_Elab_Term_expandAssert___closed__8;
lean_inc(x_15);
x_27 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_27, 0, x_15);
lean_ctor_set(x_27, 1, x_26);
x_28 = l_Lean_Elab_Term_expandUnreachable___rarg___closed__3;
lean_inc(x_15);
x_29 = l_Lean_Syntax_node1(x_15, x_28, x_27);
x_30 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32;
lean_inc(x_15);
x_31 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_31, 0, x_15);
lean_ctor_set(x_31, 1, x_30);
x_32 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22;
lean_inc(x_15);
x_33 = l_Lean_Syntax_node3(x_15, x_32, x_25, x_29, x_31);
x_34 = l_Lean_Elab_Term_elabPanic___closed__2;
lean_inc(x_15);
x_35 = l_Lean_Syntax_node2(x_15, x_34, x_23, x_33);
x_36 = l_Lean_Elab_Term_expandAssert___closed__4;
x_37 = l_Lean_Syntax_node6(x_15, x_36, x_17, x_9, x_19, x_11, x_21, x_35);
x_38 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_38, 0, x_37);
lean_ctor_set(x_38, 1, x_3);
return x_38;
}
else
{
lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; 
x_39 = lean_ctor_get(x_12, 0);
lean_inc(x_39);
lean_dec(x_12);
x_40 = lean_ctor_get(x_2, 5);
x_41 = 0;
x_42 = l_Lean_SourceInfo_fromRef(x_40, x_41);
x_43 = l_Lean_Elab_Term_expandAssert___closed__5;
lean_inc(x_42);
x_44 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_44, 0, x_42);
lean_ctor_set(x_44, 1, x_43);
x_45 = l_Lean_Elab_Term_expandAssert___closed__6;
lean_inc(x_42);
x_46 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_46, 0, x_42);
lean_ctor_set(x_46, 1, x_45);
x_47 = l_Lean_Elab_Term_expandAssert___closed__7;
lean_inc(x_42);
x_48 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_48, 0, x_42);
lean_ctor_set(x_48, 1, x_47);
x_49 = l_Lean_Elab_Term_expandUnreachable___rarg___closed__1;
lean_inc(x_42);
x_50 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_50, 0, x_42);
lean_ctor_set(x_50, 1, x_49);
x_51 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23;
lean_inc(x_42);
x_52 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_52, 0, x_42);
lean_ctor_set(x_52, 1, x_51);
x_53 = l_Lean_Elab_Term_expandAssert___closed__11;
lean_inc(x_42);
x_54 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_54, 0, x_42);
lean_ctor_set(x_54, 1, x_53);
x_55 = l_Lean_Elab_Term_expandUnreachable___rarg___closed__3;
lean_inc(x_42);
x_56 = l_Lean_Syntax_node1(x_42, x_55, x_54);
x_57 = l_Lean_Elab_Term_expandAssert___closed__12;
lean_inc(x_42);
x_58 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_58, 0, x_42);
lean_ctor_set(x_58, 1, x_57);
x_59 = lean_box(2);
x_60 = l_Lean_Syntax_mkStrLit(x_39, x_59);
lean_dec(x_39);
x_61 = l_Lean_Elab_Term_expandAssert___closed__10;
lean_inc(x_42);
x_62 = l_Lean_Syntax_node3(x_42, x_61, x_56, x_58, x_60);
x_63 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32;
lean_inc(x_42);
x_64 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_64, 0, x_42);
lean_ctor_set(x_64, 1, x_63);
x_65 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22;
lean_inc(x_42);
x_66 = l_Lean_Syntax_node3(x_42, x_65, x_52, x_62, x_64);
x_67 = l_Lean_Elab_Term_elabPanic___closed__2;
lean_inc(x_42);
x_68 = l_Lean_Syntax_node2(x_42, x_67, x_50, x_66);
x_69 = l_Lean_Elab_Term_expandAssert___closed__4;
x_70 = l_Lean_Syntax_node6(x_42, x_69, x_44, x_9, x_46, x_11, x_48, x_68);
x_71 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_71, 0, x_70);
lean_ctor_set(x_71, 1, x_3);
return x_71;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandAssert___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Elab_Term_expandAssert(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandAssert", 12, 12);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandAssert___boxed), 3, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3;
x_3 = l_Lean_Elab_Term_expandAssert___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(194u);
x_2 = lean_unsigned_to_nat(42u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(200u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__3() {
_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_Term_expandAssert_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(42u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(194u);
x_2 = lean_unsigned_to_nat(46u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(194u);
x_2 = lean_unsigned_to_nat(58u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(46u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(58u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("dbgTrace", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandDbgTrace___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("interpolatedStrKind", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandDbgTrace___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_expandDbgTrace___closed__1;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandDbgTrace___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandDbgTrace___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandDbgTrace___closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("toString", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_expandDbgTrace___closed__9;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandDbgTrace___closed__9;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ToString", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_expandDbgTrace___closed__12;
x_2 = l_Lean_Elab_Term_expandDbgTrace___closed__9;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandDbgTrace___closed__13;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandDbgTrace___closed__14;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("fun", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__17() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandDbgTrace___closed__16;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("basicFun", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__19() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandDbgTrace___closed__18;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("=>", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("termS!_", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandDbgTrace___closed__21;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandDbgTrace___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("s!", 2, 2);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandDbgTrace(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_Elab_Term_expandDbgTrace___closed__2;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_2);
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_8 = lean_unsigned_to_nat(1u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = l_Lean_Elab_Term_expandDbgTrace___closed__4;
lean_inc(x_9);
x_11 = l_Lean_Syntax_isOfKind(x_9, x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_12 = lean_unsigned_to_nat(3u);
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
lean_dec(x_1);
x_14 = lean_ctor_get(x_2, 5);
lean_inc(x_14);
x_15 = 0;
x_16 = l_Lean_SourceInfo_fromRef(x_14, x_15);
lean_dec(x_14);
x_17 = lean_ctor_get(x_2, 2);
lean_inc(x_17);
x_18 = lean_ctor_get(x_2, 1);
lean_inc(x_18);
lean_dec(x_2);
x_19 = l_Lean_Elab_Term_expandDbgTrace___closed__6;
lean_inc(x_17);
lean_inc(x_18);
x_20 = l_Lean_addMacroScope(x_18, x_19, x_17);
x_21 = l_Lean_Elab_Term_expandDbgTrace___closed__5;
x_22 = l_Lean_Elab_Term_expandDbgTrace___closed__8;
lean_inc(x_16);
x_23 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_23, 0, x_16);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_20);
lean_ctor_set(x_23, 3, x_22);
x_24 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23;
lean_inc(x_16);
x_25 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_25, 0, x_16);
lean_ctor_set(x_25, 1, x_24);
x_26 = l_Lean_Elab_Term_expandDbgTrace___closed__11;
x_27 = l_Lean_addMacroScope(x_18, x_26, x_17);
x_28 = l_Lean_Elab_Term_expandDbgTrace___closed__10;
x_29 = l_Lean_Elab_Term_expandDbgTrace___closed__15;
lean_inc(x_16);
x_30 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_30, 0, x_16);
lean_ctor_set(x_30, 1, x_28);
lean_ctor_set(x_30, 2, x_27);
lean_ctor_set(x_30, 3, x_29);
x_31 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_16);
x_32 = l_Lean_Syntax_node1(x_16, x_31, x_9);
x_33 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
lean_inc(x_16);
x_34 = l_Lean_Syntax_node2(x_16, x_33, x_30, x_32);
x_35 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32;
lean_inc(x_16);
x_36 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_36, 0, x_16);
lean_ctor_set(x_36, 1, x_35);
x_37 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22;
lean_inc(x_16);
x_38 = l_Lean_Syntax_node3(x_16, x_37, x_25, x_34, x_36);
x_39 = l_Lean_Elab_Term_expandDbgTrace___closed__16;
lean_inc(x_16);
x_40 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_40, 0, x_16);
lean_ctor_set(x_40, 1, x_39);
x_41 = l_Lean_Elab_Term_expandHave___lambda__2___closed__3;
lean_inc(x_16);
x_42 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_42, 0, x_16);
lean_ctor_set(x_42, 1, x_41);
x_43 = l_Lean_Elab_Term_expandHave___closed__17;
lean_inc(x_16);
x_44 = l_Lean_Syntax_node1(x_16, x_43, x_42);
lean_inc(x_16);
x_45 = l_Lean_Syntax_node1(x_16, x_31, x_44);
x_46 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
lean_inc(x_16);
x_47 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_47, 0, x_16);
lean_ctor_set(x_47, 1, x_31);
lean_ctor_set(x_47, 2, x_46);
x_48 = l_Lean_Elab_Term_expandDbgTrace___closed__20;
lean_inc(x_16);
x_49 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_49, 0, x_16);
lean_ctor_set(x_49, 1, x_48);
x_50 = l_Lean_Elab_Term_expandDbgTrace___closed__19;
lean_inc(x_16);
x_51 = l_Lean_Syntax_node4(x_16, x_50, x_45, x_47, x_49, x_13);
x_52 = l_Lean_Elab_Term_expandDbgTrace___closed__17;
lean_inc(x_16);
x_53 = l_Lean_Syntax_node2(x_16, x_52, x_40, x_51);
lean_inc(x_16);
x_54 = l_Lean_Syntax_node2(x_16, x_31, x_38, x_53);
x_55 = l_Lean_Syntax_node2(x_16, x_33, x_23, x_54);
x_56 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_56, 0, x_55);
lean_ctor_set(x_56, 1, x_3);
return x_56;
}
else
{
lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_57 = lean_unsigned_to_nat(3u);
x_58 = l_Lean_Syntax_getArg(x_1, x_57);
lean_dec(x_1);
x_59 = lean_ctor_get(x_2, 5);
lean_inc(x_59);
x_60 = 0;
x_61 = l_Lean_SourceInfo_fromRef(x_59, x_60);
lean_dec(x_59);
x_62 = lean_ctor_get(x_2, 2);
lean_inc(x_62);
x_63 = lean_ctor_get(x_2, 1);
lean_inc(x_63);
lean_dec(x_2);
x_64 = l_Lean_Elab_Term_expandDbgTrace___closed__6;
x_65 = l_Lean_addMacroScope(x_63, x_64, x_62);
x_66 = l_Lean_Elab_Term_expandDbgTrace___closed__5;
x_67 = l_Lean_Elab_Term_expandDbgTrace___closed__8;
lean_inc(x_61);
x_68 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_68, 0, x_61);
lean_ctor_set(x_68, 1, x_66);
lean_ctor_set(x_68, 2, x_65);
lean_ctor_set(x_68, 3, x_67);
x_69 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23;
lean_inc(x_61);
x_70 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_70, 0, x_61);
lean_ctor_set(x_70, 1, x_69);
x_71 = l_Lean_Elab_Term_expandDbgTrace___closed__23;
lean_inc(x_61);
x_72 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_72, 0, x_61);
lean_ctor_set(x_72, 1, x_71);
x_73 = l_Lean_Elab_Term_expandDbgTrace___closed__22;
lean_inc(x_61);
x_74 = l_Lean_Syntax_node2(x_61, x_73, x_72, x_9);
x_75 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32;
lean_inc(x_61);
x_76 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_76, 0, x_61);
lean_ctor_set(x_76, 1, x_75);
x_77 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22;
lean_inc(x_61);
x_78 = l_Lean_Syntax_node3(x_61, x_77, x_70, x_74, x_76);
x_79 = l_Lean_Elab_Term_expandDbgTrace___closed__16;
lean_inc(x_61);
x_80 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_80, 0, x_61);
lean_ctor_set(x_80, 1, x_79);
x_81 = l_Lean_Elab_Term_expandHave___lambda__2___closed__3;
lean_inc(x_61);
x_82 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_82, 0, x_61);
lean_ctor_set(x_82, 1, x_81);
x_83 = l_Lean_Elab_Term_expandHave___closed__17;
lean_inc(x_61);
x_84 = l_Lean_Syntax_node1(x_61, x_83, x_82);
x_85 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_61);
x_86 = l_Lean_Syntax_node1(x_61, x_85, x_84);
x_87 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
lean_inc(x_61);
x_88 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_88, 0, x_61);
lean_ctor_set(x_88, 1, x_85);
lean_ctor_set(x_88, 2, x_87);
x_89 = l_Lean_Elab_Term_expandDbgTrace___closed__20;
lean_inc(x_61);
x_90 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_90, 0, x_61);
lean_ctor_set(x_90, 1, x_89);
x_91 = l_Lean_Elab_Term_expandDbgTrace___closed__19;
lean_inc(x_61);
x_92 = l_Lean_Syntax_node4(x_61, x_91, x_86, x_88, x_90, x_58);
x_93 = l_Lean_Elab_Term_expandDbgTrace___closed__17;
lean_inc(x_61);
x_94 = l_Lean_Syntax_node2(x_61, x_93, x_80, x_92);
lean_inc(x_61);
x_95 = l_Lean_Syntax_node2(x_61, x_85, x_78, x_94);
x_96 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_97 = l_Lean_Syntax_node2(x_61, x_96, x_68, x_95);
x_98 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_98, 0, x_97);
lean_ctor_set(x_98, 1, x_3);
return x_98;
}
}
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandDbgTrace", 14, 14);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandDbgTrace), 3, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3;
x_3 = l_Lean_Elab_Term_expandDbgTrace___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(202u);
x_2 = lean_unsigned_to_nat(44u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(205u);
x_2 = lean_unsigned_to_nat(70u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__3() {
_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_Term_expandDbgTrace_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(44u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(70u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(202u);
x_2 = lean_unsigned_to_nat(48u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(202u);
x_2 = lean_unsigned_to_nat(62u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(48u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(62u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSorry___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("explicit", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSorry___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabSorry___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSorry___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("@", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSorry___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("sorryAx", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSorry___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabSorry___closed__4;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSorry___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabSorry___closed__4;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSorry___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabSorry___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSorry___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabSorry___closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSorry___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__42;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSorry___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__42;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSorry___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__43;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSorry___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabSorry___closed__11;
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_Lean_Elab_Term_elabSorry(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; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_10 = lean_ctor_get(x_7, 5);
lean_inc(x_10);
x_11 = 0;
x_12 = l_Lean_SourceInfo_fromRef(x_10, x_11);
lean_dec(x_10);
x_13 = lean_ctor_get(x_7, 10);
lean_inc(x_13);
x_14 = lean_st_ref_get(x_8, x_9);
x_15 = !lean_is_exclusive(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_16 = lean_ctor_get(x_14, 0);
x_17 = lean_ctor_get(x_14, 1);
x_18 = lean_ctor_get(x_16, 0);
lean_inc(x_18);
lean_dec(x_16);
x_19 = lean_environment_main_module(x_18);
x_20 = l_Lean_Elab_Term_elabSorry___closed__3;
lean_inc(x_12);
lean_ctor_set_tag(x_14, 2);
lean_ctor_set(x_14, 1, x_20);
lean_ctor_set(x_14, 0, x_12);
x_21 = l_Lean_Elab_Term_elabSorry___closed__6;
lean_inc(x_13);
lean_inc(x_19);
x_22 = l_Lean_addMacroScope(x_19, x_21, x_13);
x_23 = l_Lean_Elab_Term_elabSorry___closed__5;
x_24 = l_Lean_Elab_Term_elabSorry___closed__8;
lean_inc(x_12);
x_25 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_25, 0, x_12);
lean_ctor_set(x_25, 1, x_23);
lean_ctor_set(x_25, 2, x_22);
lean_ctor_set(x_25, 3, x_24);
x_26 = l_Lean_Elab_Term_elabSorry___closed__2;
lean_inc(x_12);
x_27 = l_Lean_Syntax_node2(x_12, x_26, x_14, x_25);
x_28 = l_Lean_Elab_Term_expandHave___lambda__2___closed__3;
lean_inc(x_12);
x_29 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_29, 0, x_12);
lean_ctor_set(x_29, 1, x_28);
x_30 = l_Lean_Elab_Term_expandHave___closed__17;
lean_inc(x_12);
x_31 = l_Lean_Syntax_node1(x_12, x_30, x_29);
x_32 = l_Lean_Elab_Term_elabSorry___closed__10;
x_33 = l_Lean_addMacroScope(x_19, x_32, x_13);
x_34 = l_Lean_Elab_Term_elabSorry___closed__9;
x_35 = l_Lean_Elab_Term_elabSorry___closed__12;
lean_inc(x_12);
x_36 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_36, 0, x_12);
lean_ctor_set(x_36, 1, x_34);
lean_ctor_set(x_36, 2, x_33);
lean_ctor_set(x_36, 3, x_35);
x_37 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_12);
x_38 = l_Lean_Syntax_node2(x_12, x_37, x_31, x_36);
x_39 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_40 = l_Lean_Syntax_node2(x_12, x_39, x_27, x_38);
x_41 = 1;
x_42 = lean_box(x_41);
x_43 = lean_box(x_41);
lean_inc(x_40);
x_44 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
lean_closure_set(x_44, 0, x_40);
lean_closure_set(x_44, 1, x_2);
lean_closure_set(x_44, 2, x_42);
lean_closure_set(x_44, 3, x_43);
x_45 = l_Lean_Elab_Term_withMacroExpansion___rarg(x_1, x_40, x_44, x_3, x_4, x_5, x_6, x_7, x_8, x_17);
return x_45;
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; 
x_46 = lean_ctor_get(x_14, 0);
x_47 = lean_ctor_get(x_14, 1);
lean_inc(x_47);
lean_inc(x_46);
lean_dec(x_14);
x_48 = lean_ctor_get(x_46, 0);
lean_inc(x_48);
lean_dec(x_46);
x_49 = lean_environment_main_module(x_48);
x_50 = l_Lean_Elab_Term_elabSorry___closed__3;
lean_inc(x_12);
x_51 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_51, 0, x_12);
lean_ctor_set(x_51, 1, x_50);
x_52 = l_Lean_Elab_Term_elabSorry___closed__6;
lean_inc(x_13);
lean_inc(x_49);
x_53 = l_Lean_addMacroScope(x_49, x_52, x_13);
x_54 = l_Lean_Elab_Term_elabSorry___closed__5;
x_55 = l_Lean_Elab_Term_elabSorry___closed__8;
lean_inc(x_12);
x_56 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_56, 0, x_12);
lean_ctor_set(x_56, 1, x_54);
lean_ctor_set(x_56, 2, x_53);
lean_ctor_set(x_56, 3, x_55);
x_57 = l_Lean_Elab_Term_elabSorry___closed__2;
lean_inc(x_12);
x_58 = l_Lean_Syntax_node2(x_12, x_57, x_51, x_56);
x_59 = l_Lean_Elab_Term_expandHave___lambda__2___closed__3;
lean_inc(x_12);
x_60 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_60, 0, x_12);
lean_ctor_set(x_60, 1, x_59);
x_61 = l_Lean_Elab_Term_expandHave___closed__17;
lean_inc(x_12);
x_62 = l_Lean_Syntax_node1(x_12, x_61, x_60);
x_63 = l_Lean_Elab_Term_elabSorry___closed__10;
x_64 = l_Lean_addMacroScope(x_49, x_63, x_13);
x_65 = l_Lean_Elab_Term_elabSorry___closed__9;
x_66 = l_Lean_Elab_Term_elabSorry___closed__12;
lean_inc(x_12);
x_67 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_67, 0, x_12);
lean_ctor_set(x_67, 1, x_65);
lean_ctor_set(x_67, 2, x_64);
lean_ctor_set(x_67, 3, x_66);
x_68 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_12);
x_69 = l_Lean_Syntax_node2(x_12, x_68, x_62, x_67);
x_70 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_71 = l_Lean_Syntax_node2(x_12, x_70, x_58, x_69);
x_72 = 1;
x_73 = lean_box(x_72);
x_74 = lean_box(x_72);
lean_inc(x_71);
x_75 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
lean_closure_set(x_75, 0, x_71);
lean_closure_set(x_75, 1, x_2);
lean_closure_set(x_75, 2, x_73);
lean_closure_set(x_75, 3, x_74);
x_76 = l_Lean_Elab_Term_withMacroExpansion___rarg(x_1, x_71, x_75, x_3, x_4, x_5, x_6, x_7, x_8, x_47);
return x_76;
}
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("sorry", 5, 5);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabSorry", 9, 9);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSorry), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__4;
x_5 = l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__5;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(207u);
x_2 = lean_unsigned_to_nat(29u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(209u);
x_2 = lean_unsigned_to_nat(64u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__3() {
_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_Term_elabSorry_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(29u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(64u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(207u);
x_2 = lean_unsigned_to_nat(33u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(207u);
x_2 = lean_unsigned_to_nat(42u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(33u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(42u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPairs_loop___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Prod.mk", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPairs_loop___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_mkPairs_loop___closed__1;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPairs_loop___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Prod", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPairs_loop___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("mk", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPairs_loop___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_mkPairs_loop___closed__3;
x_2 = l_Lean_Elab_Term_mkPairs_loop___closed__4;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPairs_loop___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_mkPairs_loop___closed__5;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPairs_loop___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_mkPairs_loop___closed__5;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPairs_loop___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_mkPairs_loop___closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPairs_loop___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_mkPairs_loop___closed__6;
x_2 = l_Lean_Elab_Term_mkPairs_loop___closed__8;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPairs_loop(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; uint8_t x_7; 
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_nat_dec_lt(x_6, x_2);
if (x_7 == 0)
{
lean_object* x_8; 
lean_dec(x_4);
lean_dec(x_2);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_5);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_9 = lean_unsigned_to_nat(1u);
x_10 = lean_nat_sub(x_2, x_9);
lean_dec(x_2);
x_11 = lean_array_get_size(x_1);
x_12 = lean_nat_dec_lt(x_10, x_11);
lean_dec(x_11);
x_13 = lean_ctor_get(x_4, 5);
lean_inc(x_13);
x_14 = 0;
x_15 = l_Lean_SourceInfo_fromRef(x_13, x_14);
lean_dec(x_13);
x_16 = lean_ctor_get(x_4, 2);
lean_inc(x_16);
x_17 = lean_ctor_get(x_4, 1);
lean_inc(x_17);
x_18 = l_Lean_Elab_Term_mkPairs_loop___closed__5;
x_19 = l_Lean_addMacroScope(x_17, x_18, x_16);
x_20 = l_Lean_Elab_Term_mkPairs_loop___closed__2;
x_21 = l_Lean_Elab_Term_mkPairs_loop___closed__9;
lean_inc(x_15);
x_22 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_22, 0, x_15);
lean_ctor_set(x_22, 1, x_20);
lean_ctor_set(x_22, 2, x_19);
lean_ctor_set(x_22, 3, x_21);
if (x_12 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_23 = lean_box(0);
x_24 = l_outOfBounds___rarg(x_23);
x_25 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_15);
x_26 = l_Lean_Syntax_node2(x_15, x_25, x_24, x_3);
x_27 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_28 = l_Lean_Syntax_node2(x_15, x_27, x_22, x_26);
x_2 = x_10;
x_3 = x_28;
goto _start;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_30 = lean_array_fget(x_1, x_10);
x_31 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_15);
x_32 = l_Lean_Syntax_node2(x_15, x_31, x_30, x_3);
x_33 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_34 = l_Lean_Syntax_node2(x_15, x_33, x_22, x_32);
x_2 = x_10;
x_3 = x_34;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPairs_loop___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_Elab_Term_mkPairs_loop(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPairs(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_4 = lean_array_get_size(x_1);
x_5 = lean_unsigned_to_nat(1u);
x_6 = lean_nat_sub(x_4, x_5);
lean_dec(x_4);
x_7 = lean_box(0);
x_8 = l_Array_back___rarg(x_7, x_1);
x_9 = l_Lean_Elab_Term_mkPairs_loop(x_1, x_6, x_8, x_2, x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPairs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Elab_Term_mkPairs(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPPairs_loop___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("PProd.mk", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPPairs_loop___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_mkPPairs_loop___closed__1;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPPairs_loop___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("PProd", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPPairs_loop___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_mkPPairs_loop___closed__3;
x_2 = l_Lean_Elab_Term_mkPairs_loop___closed__4;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPPairs_loop___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_mkPPairs_loop___closed__4;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPPairs_loop___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_mkPPairs_loop___closed__4;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPPairs_loop___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_mkPPairs_loop___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkPPairs_loop___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_mkPPairs_loop___closed__5;
x_2 = l_Lean_Elab_Term_mkPPairs_loop___closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPPairs_loop(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; uint8_t x_7; 
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_nat_dec_lt(x_6, x_2);
if (x_7 == 0)
{
lean_object* x_8; 
lean_dec(x_4);
lean_dec(x_2);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_5);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_9 = lean_unsigned_to_nat(1u);
x_10 = lean_nat_sub(x_2, x_9);
lean_dec(x_2);
x_11 = lean_array_get_size(x_1);
x_12 = lean_nat_dec_lt(x_10, x_11);
lean_dec(x_11);
x_13 = lean_ctor_get(x_4, 5);
lean_inc(x_13);
x_14 = 0;
x_15 = l_Lean_SourceInfo_fromRef(x_13, x_14);
lean_dec(x_13);
x_16 = lean_ctor_get(x_4, 2);
lean_inc(x_16);
x_17 = lean_ctor_get(x_4, 1);
lean_inc(x_17);
x_18 = l_Lean_Elab_Term_mkPPairs_loop___closed__4;
x_19 = l_Lean_addMacroScope(x_17, x_18, x_16);
x_20 = l_Lean_Elab_Term_mkPPairs_loop___closed__2;
x_21 = l_Lean_Elab_Term_mkPPairs_loop___closed__8;
lean_inc(x_15);
x_22 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_22, 0, x_15);
lean_ctor_set(x_22, 1, x_20);
lean_ctor_set(x_22, 2, x_19);
lean_ctor_set(x_22, 3, x_21);
if (x_12 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_23 = lean_box(0);
x_24 = l_outOfBounds___rarg(x_23);
x_25 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_15);
x_26 = l_Lean_Syntax_node2(x_15, x_25, x_24, x_3);
x_27 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_28 = l_Lean_Syntax_node2(x_15, x_27, x_22, x_26);
x_2 = x_10;
x_3 = x_28;
goto _start;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_30 = lean_array_fget(x_1, x_10);
x_31 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_15);
x_32 = l_Lean_Syntax_node2(x_15, x_31, x_30, x_3);
x_33 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_34 = l_Lean_Syntax_node2(x_15, x_33, x_22, x_32);
x_2 = x_10;
x_3 = x_34;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPPairs_loop___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_Elab_Term_mkPPairs_loop(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPPairs(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_4 = lean_array_get_size(x_1);
x_5 = lean_unsigned_to_nat(1u);
x_6 = lean_nat_sub(x_4, x_5);
lean_dec(x_4);
x_7 = lean_box(0);
x_8 = l_Array_back___rarg(x_7, x_1);
x_9 = l_Lean_Elab_Term_mkPPairs_loop(x_1, x_6, x_8, x_2, x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkPPairs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Elab_Term_mkPPairs(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkMPairs_loop___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("MProd.mk", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkMPairs_loop___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_mkMPairs_loop___closed__1;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkMPairs_loop___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("MProd", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkMPairs_loop___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_mkMPairs_loop___closed__3;
x_2 = l_Lean_Elab_Term_mkPairs_loop___closed__4;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkMPairs_loop___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_mkMPairs_loop___closed__4;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkMPairs_loop___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_mkMPairs_loop___closed__4;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkMPairs_loop___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_mkMPairs_loop___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkMPairs_loop___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_mkMPairs_loop___closed__5;
x_2 = l_Lean_Elab_Term_mkMPairs_loop___closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkMPairs_loop(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; uint8_t x_7; 
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_nat_dec_lt(x_6, x_2);
if (x_7 == 0)
{
lean_object* x_8; 
lean_dec(x_4);
lean_dec(x_2);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_5);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_9 = lean_unsigned_to_nat(1u);
x_10 = lean_nat_sub(x_2, x_9);
lean_dec(x_2);
x_11 = lean_array_get_size(x_1);
x_12 = lean_nat_dec_lt(x_10, x_11);
lean_dec(x_11);
x_13 = lean_ctor_get(x_4, 5);
lean_inc(x_13);
x_14 = 0;
x_15 = l_Lean_SourceInfo_fromRef(x_13, x_14);
lean_dec(x_13);
x_16 = lean_ctor_get(x_4, 2);
lean_inc(x_16);
x_17 = lean_ctor_get(x_4, 1);
lean_inc(x_17);
x_18 = l_Lean_Elab_Term_mkMPairs_loop___closed__4;
x_19 = l_Lean_addMacroScope(x_17, x_18, x_16);
x_20 = l_Lean_Elab_Term_mkMPairs_loop___closed__2;
x_21 = l_Lean_Elab_Term_mkMPairs_loop___closed__8;
lean_inc(x_15);
x_22 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_22, 0, x_15);
lean_ctor_set(x_22, 1, x_20);
lean_ctor_set(x_22, 2, x_19);
lean_ctor_set(x_22, 3, x_21);
if (x_12 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_23 = lean_box(0);
x_24 = l_outOfBounds___rarg(x_23);
x_25 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_15);
x_26 = l_Lean_Syntax_node2(x_15, x_25, x_24, x_3);
x_27 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_28 = l_Lean_Syntax_node2(x_15, x_27, x_22, x_26);
x_2 = x_10;
x_3 = x_28;
goto _start;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_30 = lean_array_fget(x_1, x_10);
x_31 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_15);
x_32 = l_Lean_Syntax_node2(x_15, x_31, x_30, x_3);
x_33 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
x_34 = l_Lean_Syntax_node2(x_15, x_33, x_22, x_32);
x_2 = x_10;
x_3 = x_34;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkMPairs_loop___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_Elab_Term_mkMPairs_loop(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkMPairs(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_4 = lean_array_get_size(x_1);
x_5 = lean_unsigned_to_nat(1u);
x_6 = lean_nat_sub(x_4, x_5);
lean_dec(x_4);
x_7 = lean_box(0);
x_8 = l_Array_back___rarg(x_7, x_1);
x_9 = l_Lean_Elab_Term_mkMPairs_loop(x_1, x_6, x_8, x_2, x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkMPairs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Elab_Term_mkMPairs(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_hasCDot___spec__1(lean_object* x_1, size_t x_2, size_t x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_eq(x_2, x_3);
if (x_4 == 0)
{
lean_object* x_5; uint8_t x_6; 
x_5 = lean_array_uget(x_1, x_2);
x_6 = l_Lean_Elab_Term_hasCDot(x_5);
lean_dec(x_5);
if (x_6 == 0)
{
size_t x_7; size_t x_8; 
x_7 = 1;
x_8 = lean_usize_add(x_2, x_7);
x_2 = x_8;
goto _start;
}
else
{
uint8_t x_10; 
x_10 = 1;
return x_10;
}
}
else
{
uint8_t x_11; 
x_11 = 0;
return x_11;
}
}
}
static lean_object* _init_l_Lean_Elab_Term_hasCDot___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("typeAscription", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_hasCDot___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_hasCDot___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_hasCDot___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tuple", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_hasCDot___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_hasCDot___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_hasCDot___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("cdot", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_hasCDot___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_hasCDot___closed__5;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT uint8_t l_Lean_Elab_Term_hasCDot(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_2 = lean_ctor_get(x_1, 1);
x_3 = lean_ctor_get(x_1, 2);
x_4 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22;
x_5 = lean_name_eq(x_2, x_4);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7; 
x_6 = l_Lean_Elab_Term_hasCDot___closed__2;
x_7 = lean_name_eq(x_2, x_6);
if (x_7 == 0)
{
lean_object* x_8; uint8_t x_9; 
x_8 = l_Lean_Elab_Term_hasCDot___closed__4;
x_9 = lean_name_eq(x_2, x_8);
if (x_9 == 0)
{
lean_object* x_10; uint8_t x_11; 
x_10 = l_Lean_Elab_Term_hasCDot___closed__6;
x_11 = lean_name_eq(x_2, x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_12 = lean_array_get_size(x_3);
x_13 = lean_unsigned_to_nat(0u);
x_14 = lean_nat_dec_lt(x_13, x_12);
if (x_14 == 0)
{
uint8_t x_15; 
lean_dec(x_12);
x_15 = 0;
return x_15;
}
else
{
size_t x_16; size_t x_17; uint8_t x_18; 
x_16 = 0;
x_17 = lean_usize_of_nat(x_12);
lean_dec(x_12);
x_18 = l_Array_anyMUnsafe_any___at_Lean_Elab_Term_hasCDot___spec__1(x_3, x_16, x_17);
return x_18;
}
}
else
{
uint8_t x_19; 
x_19 = 1;
return x_19;
}
}
else
{
uint8_t x_20; 
x_20 = 0;
return x_20;
}
}
else
{
uint8_t x_21; 
x_21 = 0;
return x_21;
}
}
else
{
uint8_t x_22; 
x_22 = 0;
return x_22;
}
}
else
{
uint8_t x_23; 
x_23 = 0;
return x_23;
}
}
}
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_hasCDot___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7; 
x_4 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_5 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_6 = l_Array_anyMUnsafe_any___at_Lean_Elab_Term_hasCDot___spec__1(x_1, x_4, x_5);
lean_dec(x_1);
x_7 = lean_box(x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_hasCDot___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_Elab_Term_hasCDot(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f_go___spec__1(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; 
x_7 = lean_usize_dec_lt(x_2, x_1);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
lean_dec(x_5);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_4);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_6);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; 
x_10 = lean_array_uget(x_3, x_2);
x_11 = lean_unsigned_to_nat(0u);
x_12 = lean_array_uset(x_3, x_2, x_11);
lean_inc(x_5);
x_13 = l_Lean_Elab_Term_expandCDot_x3f_go(x_10, x_4, x_5, x_6);
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 1);
lean_inc(x_15);
lean_dec(x_13);
x_16 = lean_ctor_get(x_14, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_14, 1);
lean_inc(x_17);
lean_dec(x_14);
x_18 = 1;
x_19 = lean_usize_add(x_2, x_18);
x_20 = lean_array_uset(x_12, x_2, x_16);
x_2 = x_19;
x_3 = x_20;
x_4 = x_17;
x_6 = x_15;
goto _start;
}
}
}
static lean_object* _init_l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("x", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
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; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_unsigned_to_nat(1u);
x_7 = lean_nat_add(x_5, x_6);
lean_ctor_set(x_3, 0, x_7);
x_8 = lean_ctor_get(x_2, 1);
lean_inc(x_8);
lean_dec(x_2);
x_9 = l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__2;
x_10 = l_Lean_addMacroScope(x_8, x_9, x_5);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_1);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_3);
return x_12;
}
else
{
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; lean_object* x_22; 
x_13 = lean_ctor_get(x_3, 0);
x_14 = lean_ctor_get(x_3, 1);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_3);
x_15 = lean_unsigned_to_nat(1u);
x_16 = lean_nat_add(x_13, 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_14);
x_18 = lean_ctor_get(x_2, 1);
lean_inc(x_18);
lean_dec(x_2);
x_19 = l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__2;
x_20 = l_Lean_addMacroScope(x_18, x_19, x_13);
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_1);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_17);
return x_22;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshIdent___at_Lean_Elab_Term_expandCDot_x3f_go___spec__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; uint8_t x_7; 
x_6 = l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3(x_3, x_4, x_5);
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; uint8_t x_9; 
x_8 = lean_ctor_get(x_6, 0);
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; 
x_10 = lean_ctor_get(x_8, 0);
x_11 = l_Lean_mkIdentFrom(x_1, x_10, x_2);
lean_ctor_set(x_8, 0, x_11);
return x_6;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_12 = lean_ctor_get(x_8, 0);
x_13 = lean_ctor_get(x_8, 1);
lean_inc(x_13);
lean_inc(x_12);
lean_dec(x_8);
x_14 = l_Lean_mkIdentFrom(x_1, x_12, x_2);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_13);
lean_ctor_set(x_6, 0, x_15);
return x_6;
}
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_16 = lean_ctor_get(x_6, 0);
x_17 = lean_ctor_get(x_6, 1);
lean_inc(x_17);
lean_inc(x_16);
lean_dec(x_6);
x_18 = lean_ctor_get(x_16, 0);
lean_inc(x_18);
x_19 = lean_ctor_get(x_16, 1);
lean_inc(x_19);
if (lean_is_exclusive(x_16)) {
 lean_ctor_release(x_16, 0);
 lean_ctor_release(x_16, 1);
 x_20 = x_16;
} else {
 lean_dec_ref(x_16);
 x_20 = lean_box(0);
}
x_21 = l_Lean_mkIdentFrom(x_1, x_18, x_2);
if (lean_is_scalar(x_20)) {
 x_22 = lean_alloc_ctor(0, 2, 0);
} else {
 x_22 = x_20;
}
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_19);
x_23 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_23, 0, x_22);
lean_ctor_set(x_23, 1, x_17);
return x_23;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandCDot_x3f_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; uint8_t x_8; 
x_7 = l_Lean_Elab_Term_hasCDot___closed__6;
lean_inc(x_1);
x_8 = l_Lean_Syntax_isOfKind(x_1, x_7);
if (x_8 == 0)
{
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; uint8_t x_14; 
x_9 = lean_ctor_get(x_1, 1);
lean_inc(x_9);
x_10 = lean_ctor_get(x_1, 2);
lean_inc(x_10);
x_11 = lean_array_size(x_10);
x_12 = 0;
x_13 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f_go___spec__1(x_11, x_12, x_10, x_2, x_3, x_4);
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_13, 0);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; lean_object* x_19; uint8_t x_20; 
x_17 = lean_ctor_get(x_15, 0);
x_18 = 1;
x_19 = l_Lean_SourceInfo_fromRef(x_1, x_18);
x_20 = !lean_is_exclusive(x_1);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_21 = lean_ctor_get(x_1, 2);
lean_dec(x_21);
x_22 = lean_ctor_get(x_1, 1);
lean_dec(x_22);
x_23 = lean_ctor_get(x_1, 0);
lean_dec(x_23);
lean_ctor_set(x_1, 2, x_17);
lean_ctor_set(x_1, 0, x_19);
lean_ctor_set(x_15, 0, x_1);
return x_13;
}
else
{
lean_object* x_24; 
lean_dec(x_1);
x_24 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_24, 0, x_19);
lean_ctor_set(x_24, 1, x_9);
lean_ctor_set(x_24, 2, x_17);
lean_ctor_set(x_15, 0, x_24);
return x_13;
}
}
else
{
lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_25 = lean_ctor_get(x_15, 0);
x_26 = lean_ctor_get(x_15, 1);
lean_inc(x_26);
lean_inc(x_25);
lean_dec(x_15);
x_27 = 1;
x_28 = l_Lean_SourceInfo_fromRef(x_1, x_27);
if (lean_is_exclusive(x_1)) {
 lean_ctor_release(x_1, 0);
 lean_ctor_release(x_1, 1);
 lean_ctor_release(x_1, 2);
 x_29 = x_1;
} else {
 lean_dec_ref(x_1);
 x_29 = lean_box(0);
}
if (lean_is_scalar(x_29)) {
 x_30 = lean_alloc_ctor(1, 3, 0);
} else {
 x_30 = x_29;
}
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_9);
lean_ctor_set(x_30, 2, x_25);
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_30);
lean_ctor_set(x_31, 1, x_26);
lean_ctor_set(x_13, 0, x_31);
return x_13;
}
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
x_32 = lean_ctor_get(x_13, 0);
x_33 = lean_ctor_get(x_13, 1);
lean_inc(x_33);
lean_inc(x_32);
lean_dec(x_13);
x_34 = lean_ctor_get(x_32, 0);
lean_inc(x_34);
x_35 = lean_ctor_get(x_32, 1);
lean_inc(x_35);
if (lean_is_exclusive(x_32)) {
 lean_ctor_release(x_32, 0);
 lean_ctor_release(x_32, 1);
 x_36 = x_32;
} else {
 lean_dec_ref(x_32);
 x_36 = lean_box(0);
}
x_37 = 1;
x_38 = l_Lean_SourceInfo_fromRef(x_1, x_37);
if (lean_is_exclusive(x_1)) {
 lean_ctor_release(x_1, 0);
 lean_ctor_release(x_1, 1);
 lean_ctor_release(x_1, 2);
 x_39 = x_1;
} else {
 lean_dec_ref(x_1);
 x_39 = lean_box(0);
}
if (lean_is_scalar(x_39)) {
 x_40 = lean_alloc_ctor(1, 3, 0);
} else {
 x_40 = x_39;
}
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_9);
lean_ctor_set(x_40, 2, x_34);
if (lean_is_scalar(x_36)) {
 x_41 = lean_alloc_ctor(0, 2, 0);
} else {
 x_41 = x_36;
}
lean_ctor_set(x_41, 0, x_40);
lean_ctor_set(x_41, 1, x_35);
x_42 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_42, 0, x_41);
lean_ctor_set(x_42, 1, x_33);
return x_42;
}
}
else
{
lean_object* x_43; lean_object* x_44; 
lean_dec(x_3);
x_43 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_43, 0, x_1);
lean_ctor_set(x_43, 1, x_2);
x_44 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_44, 0, x_43);
lean_ctor_set(x_44, 1, x_4);
return x_44;
}
}
else
{
uint8_t x_45; 
x_45 = !lean_is_exclusive(x_4);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; 
x_46 = lean_ctor_get(x_4, 0);
x_47 = lean_unsigned_to_nat(1u);
x_48 = lean_nat_add(x_46, x_47);
lean_ctor_set(x_4, 0, x_48);
x_49 = !lean_is_exclusive(x_3);
if (x_49 == 0)
{
lean_object* x_50; uint8_t x_51; lean_object* x_52; uint8_t x_53; 
x_50 = lean_ctor_get(x_3, 2);
lean_dec(x_50);
lean_ctor_set(x_3, 2, x_46);
x_51 = 1;
x_52 = l_Lean_Elab_Term_mkFreshIdent___at_Lean_Elab_Term_expandCDot_x3f_go___spec__2(x_1, x_51, x_2, x_3, x_4);
lean_dec(x_1);
x_53 = !lean_is_exclusive(x_52);
if (x_53 == 0)
{
lean_object* x_54; uint8_t x_55; 
x_54 = lean_ctor_get(x_52, 0);
x_55 = !lean_is_exclusive(x_54);
if (x_55 == 0)
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; 
x_56 = lean_ctor_get(x_54, 0);
x_57 = lean_ctor_get(x_54, 1);
lean_inc(x_56);
x_58 = lean_array_push(x_57, x_56);
lean_ctor_set(x_54, 1, x_58);
return x_52;
}
else
{
lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
x_59 = lean_ctor_get(x_54, 0);
x_60 = lean_ctor_get(x_54, 1);
lean_inc(x_60);
lean_inc(x_59);
lean_dec(x_54);
lean_inc(x_59);
x_61 = lean_array_push(x_60, x_59);
x_62 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_62, 0, x_59);
lean_ctor_set(x_62, 1, x_61);
lean_ctor_set(x_52, 0, x_62);
return x_52;
}
}
else
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; 
x_63 = lean_ctor_get(x_52, 0);
x_64 = lean_ctor_get(x_52, 1);
lean_inc(x_64);
lean_inc(x_63);
lean_dec(x_52);
x_65 = lean_ctor_get(x_63, 0);
lean_inc(x_65);
x_66 = lean_ctor_get(x_63, 1);
lean_inc(x_66);
if (lean_is_exclusive(x_63)) {
 lean_ctor_release(x_63, 0);
 lean_ctor_release(x_63, 1);
 x_67 = x_63;
} else {
 lean_dec_ref(x_63);
 x_67 = lean_box(0);
}
lean_inc(x_65);
x_68 = lean_array_push(x_66, x_65);
if (lean_is_scalar(x_67)) {
 x_69 = lean_alloc_ctor(0, 2, 0);
} else {
 x_69 = x_67;
}
lean_ctor_set(x_69, 0, x_65);
lean_ctor_set(x_69, 1, x_68);
x_70 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_70, 0, x_69);
lean_ctor_set(x_70, 1, x_64);
return x_70;
}
}
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; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_71 = lean_ctor_get(x_3, 0);
x_72 = lean_ctor_get(x_3, 1);
x_73 = lean_ctor_get(x_3, 3);
x_74 = lean_ctor_get(x_3, 4);
x_75 = lean_ctor_get(x_3, 5);
lean_inc(x_75);
lean_inc(x_74);
lean_inc(x_73);
lean_inc(x_72);
lean_inc(x_71);
lean_dec(x_3);
x_76 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_76, 0, x_71);
lean_ctor_set(x_76, 1, x_72);
lean_ctor_set(x_76, 2, x_46);
lean_ctor_set(x_76, 3, x_73);
lean_ctor_set(x_76, 4, x_74);
lean_ctor_set(x_76, 5, x_75);
x_77 = 1;
x_78 = l_Lean_Elab_Term_mkFreshIdent___at_Lean_Elab_Term_expandCDot_x3f_go___spec__2(x_1, x_77, x_2, x_76, x_4);
lean_dec(x_1);
x_79 = lean_ctor_get(x_78, 0);
lean_inc(x_79);
x_80 = lean_ctor_get(x_78, 1);
lean_inc(x_80);
if (lean_is_exclusive(x_78)) {
 lean_ctor_release(x_78, 0);
 lean_ctor_release(x_78, 1);
 x_81 = x_78;
} else {
 lean_dec_ref(x_78);
 x_81 = lean_box(0);
}
x_82 = lean_ctor_get(x_79, 0);
lean_inc(x_82);
x_83 = lean_ctor_get(x_79, 1);
lean_inc(x_83);
if (lean_is_exclusive(x_79)) {
 lean_ctor_release(x_79, 0);
 lean_ctor_release(x_79, 1);
 x_84 = x_79;
} else {
 lean_dec_ref(x_79);
 x_84 = lean_box(0);
}
lean_inc(x_82);
x_85 = lean_array_push(x_83, x_82);
if (lean_is_scalar(x_84)) {
 x_86 = lean_alloc_ctor(0, 2, 0);
} else {
 x_86 = x_84;
}
lean_ctor_set(x_86, 0, x_82);
lean_ctor_set(x_86, 1, x_85);
if (lean_is_scalar(x_81)) {
 x_87 = lean_alloc_ctor(0, 2, 0);
} else {
 x_87 = x_81;
}
lean_ctor_set(x_87, 0, x_86);
lean_ctor_set(x_87, 1, x_80);
return x_87;
}
}
else
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t 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; 
x_88 = lean_ctor_get(x_4, 0);
x_89 = lean_ctor_get(x_4, 1);
lean_inc(x_89);
lean_inc(x_88);
lean_dec(x_4);
x_90 = lean_unsigned_to_nat(1u);
x_91 = lean_nat_add(x_88, x_90);
x_92 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_92, 0, x_91);
lean_ctor_set(x_92, 1, x_89);
x_93 = lean_ctor_get(x_3, 0);
lean_inc(x_93);
x_94 = lean_ctor_get(x_3, 1);
lean_inc(x_94);
x_95 = lean_ctor_get(x_3, 3);
lean_inc(x_95);
x_96 = lean_ctor_get(x_3, 4);
lean_inc(x_96);
x_97 = lean_ctor_get(x_3, 5);
lean_inc(x_97);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 lean_ctor_release(x_3, 2);
 lean_ctor_release(x_3, 3);
 lean_ctor_release(x_3, 4);
 lean_ctor_release(x_3, 5);
 x_98 = x_3;
} else {
 lean_dec_ref(x_3);
 x_98 = lean_box(0);
}
if (lean_is_scalar(x_98)) {
 x_99 = lean_alloc_ctor(0, 6, 0);
} else {
 x_99 = x_98;
}
lean_ctor_set(x_99, 0, x_93);
lean_ctor_set(x_99, 1, x_94);
lean_ctor_set(x_99, 2, x_88);
lean_ctor_set(x_99, 3, x_95);
lean_ctor_set(x_99, 4, x_96);
lean_ctor_set(x_99, 5, x_97);
x_100 = 1;
x_101 = l_Lean_Elab_Term_mkFreshIdent___at_Lean_Elab_Term_expandCDot_x3f_go___spec__2(x_1, x_100, x_2, x_99, x_92);
lean_dec(x_1);
x_102 = lean_ctor_get(x_101, 0);
lean_inc(x_102);
x_103 = lean_ctor_get(x_101, 1);
lean_inc(x_103);
if (lean_is_exclusive(x_101)) {
 lean_ctor_release(x_101, 0);
 lean_ctor_release(x_101, 1);
 x_104 = x_101;
} else {
 lean_dec_ref(x_101);
 x_104 = lean_box(0);
}
x_105 = lean_ctor_get(x_102, 0);
lean_inc(x_105);
x_106 = lean_ctor_get(x_102, 1);
lean_inc(x_106);
if (lean_is_exclusive(x_102)) {
 lean_ctor_release(x_102, 0);
 lean_ctor_release(x_102, 1);
 x_107 = x_102;
} else {
 lean_dec_ref(x_102);
 x_107 = lean_box(0);
}
lean_inc(x_105);
x_108 = lean_array_push(x_106, x_105);
if (lean_is_scalar(x_107)) {
 x_109 = lean_alloc_ctor(0, 2, 0);
} else {
 x_109 = x_107;
}
lean_ctor_set(x_109, 0, x_105);
lean_ctor_set(x_109, 1, x_108);
if (lean_is_scalar(x_104)) {
 x_110 = lean_alloc_ctor(0, 2, 0);
} else {
 x_110 = x_104;
}
lean_ctor_set(x_110, 0, x_109);
lean_ctor_set(x_110, 1, x_103);
return x_110;
}
}
}
else
{
lean_object* x_111; lean_object* x_112; 
lean_dec(x_3);
x_111 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_111, 0, x_1);
lean_ctor_set(x_111, 1, x_2);
x_112 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_112, 0, x_111);
lean_ctor_set(x_112, 1, x_4);
return x_112;
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f_go___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
size_t x_7; size_t x_8; lean_object* x_9; 
x_7 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_8 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_9 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f_go___spec__1(x_7, x_8, x_3, x_4, x_5, x_6);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshIdent___at_Lean_Elab_Term_expandCDot_x3f_go___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_2);
lean_dec(x_2);
x_7 = l_Lean_Elab_Term_mkFreshIdent___at_Lean_Elab_Term_expandCDot_x3f_go___spec__2(x_1, x_6, x_3, x_4, x_5);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_3, x_2);
if (x_5 == 0)
{
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_6 = lean_array_uget(x_4, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_4, x_3, x_7);
x_9 = 1;
x_10 = lean_usize_add(x_3, x_9);
x_11 = lean_array_uset(x_8, x_3, x_6);
x_3 = x_10;
x_4 = x_11;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_3, x_2);
if (x_5 == 0)
{
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_6 = lean_array_uget(x_4, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_4, x_3, x_7);
x_9 = 1;
x_10 = lean_usize_add(x_3, x_9);
x_11 = lean_array_uset(x_8, x_3, x_6);
x_3 = x_10;
x_4 = x_11;
goto _start;
}
}
}
static lean_object* _init_l_Lean_Elab_Term_expandCDot_x3f___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("term", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandCDot_x3f___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandCDot_x3f___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_Term_expandCDot_x3f___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;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandCDot_x3f___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("funBinder", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandCDot_x3f___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_expandCDot_x3f___closed__4;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandCDot_x3f___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandCDot_x3f___closed__5;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandCDot_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = l_Lean_Elab_Term_hasCDot(x_1);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; 
lean_dec(x_2);
lean_dec(x_1);
x_5 = lean_box(0);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_3);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
lean_inc(x_2);
x_8 = l_Lean_Elab_Term_expandCDot_x3f_go(x_1, x_7, x_2, x_3);
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; uint8_t x_11; 
x_10 = lean_ctor_get(x_8, 0);
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; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; size_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = lean_ctor_get(x_10, 1);
x_14 = lean_ctor_get(x_2, 5);
lean_inc(x_14);
lean_dec(x_2);
x_15 = 0;
x_16 = l_Lean_SourceInfo_fromRef(x_14, x_15);
lean_dec(x_14);
x_17 = l_Lean_Elab_Term_expandDbgTrace___closed__16;
lean_inc(x_16);
lean_ctor_set_tag(x_10, 2);
lean_ctor_set(x_10, 1, x_17);
lean_ctor_set(x_10, 0, x_16);
x_18 = lean_array_size(x_13);
x_19 = 0;
x_20 = l_Lean_Elab_Term_expandCDot_x3f___closed__3;
x_21 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__1(x_20, x_18, x_19, x_13);
x_22 = lean_array_size(x_21);
x_23 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_24 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__2(x_23, x_22, x_19, x_21);
x_25 = l_Array_append___rarg(x_7, x_24);
lean_dec(x_24);
x_26 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_16);
x_27 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_27, 0, x_16);
lean_ctor_set(x_27, 1, x_26);
lean_ctor_set(x_27, 2, x_25);
lean_inc(x_16);
x_28 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_28, 0, x_16);
lean_ctor_set(x_28, 1, x_26);
lean_ctor_set(x_28, 2, x_7);
x_29 = l_Lean_Elab_Term_expandDbgTrace___closed__20;
lean_inc(x_16);
x_30 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_30, 0, x_16);
lean_ctor_set(x_30, 1, x_29);
x_31 = l_Lean_Elab_Term_expandDbgTrace___closed__19;
lean_inc(x_16);
x_32 = l_Lean_Syntax_node4(x_16, x_31, x_27, x_28, x_30, x_12);
x_33 = l_Lean_Elab_Term_expandDbgTrace___closed__17;
x_34 = l_Lean_Syntax_node2(x_16, x_33, x_10, x_32);
x_35 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_35, 0, x_34);
lean_ctor_set(x_8, 0, x_35);
return x_8;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; size_t x_43; size_t x_44; lean_object* x_45; lean_object* x_46; size_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_36 = lean_ctor_get(x_10, 0);
x_37 = lean_ctor_get(x_10, 1);
lean_inc(x_37);
lean_inc(x_36);
lean_dec(x_10);
x_38 = lean_ctor_get(x_2, 5);
lean_inc(x_38);
lean_dec(x_2);
x_39 = 0;
x_40 = l_Lean_SourceInfo_fromRef(x_38, x_39);
lean_dec(x_38);
x_41 = l_Lean_Elab_Term_expandDbgTrace___closed__16;
lean_inc(x_40);
x_42 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_42, 0, x_40);
lean_ctor_set(x_42, 1, x_41);
x_43 = lean_array_size(x_37);
x_44 = 0;
x_45 = l_Lean_Elab_Term_expandCDot_x3f___closed__3;
x_46 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__1(x_45, x_43, x_44, x_37);
x_47 = lean_array_size(x_46);
x_48 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_49 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__2(x_48, x_47, x_44, x_46);
x_50 = l_Array_append___rarg(x_7, x_49);
lean_dec(x_49);
x_51 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_40);
x_52 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_52, 0, x_40);
lean_ctor_set(x_52, 1, x_51);
lean_ctor_set(x_52, 2, x_50);
lean_inc(x_40);
x_53 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_53, 0, x_40);
lean_ctor_set(x_53, 1, x_51);
lean_ctor_set(x_53, 2, x_7);
x_54 = l_Lean_Elab_Term_expandDbgTrace___closed__20;
lean_inc(x_40);
x_55 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_55, 0, x_40);
lean_ctor_set(x_55, 1, x_54);
x_56 = l_Lean_Elab_Term_expandDbgTrace___closed__19;
lean_inc(x_40);
x_57 = l_Lean_Syntax_node4(x_40, x_56, x_52, x_53, x_55, x_36);
x_58 = l_Lean_Elab_Term_expandDbgTrace___closed__17;
x_59 = l_Lean_Syntax_node2(x_40, x_58, x_42, x_57);
x_60 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_8, 0, x_60);
return x_8;
}
}
else
{
lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; size_t x_71; size_t x_72; lean_object* x_73; lean_object* x_74; size_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; 
x_61 = lean_ctor_get(x_8, 0);
x_62 = lean_ctor_get(x_8, 1);
lean_inc(x_62);
lean_inc(x_61);
lean_dec(x_8);
x_63 = lean_ctor_get(x_61, 0);
lean_inc(x_63);
x_64 = lean_ctor_get(x_61, 1);
lean_inc(x_64);
if (lean_is_exclusive(x_61)) {
 lean_ctor_release(x_61, 0);
 lean_ctor_release(x_61, 1);
 x_65 = x_61;
} else {
 lean_dec_ref(x_61);
 x_65 = lean_box(0);
}
x_66 = lean_ctor_get(x_2, 5);
lean_inc(x_66);
lean_dec(x_2);
x_67 = 0;
x_68 = l_Lean_SourceInfo_fromRef(x_66, x_67);
lean_dec(x_66);
x_69 = l_Lean_Elab_Term_expandDbgTrace___closed__16;
lean_inc(x_68);
if (lean_is_scalar(x_65)) {
 x_70 = lean_alloc_ctor(2, 2, 0);
} else {
 x_70 = x_65;
 lean_ctor_set_tag(x_70, 2);
}
lean_ctor_set(x_70, 0, x_68);
lean_ctor_set(x_70, 1, x_69);
x_71 = lean_array_size(x_64);
x_72 = 0;
x_73 = l_Lean_Elab_Term_expandCDot_x3f___closed__3;
x_74 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__1(x_73, x_71, x_72, x_64);
x_75 = lean_array_size(x_74);
x_76 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_77 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__2(x_76, x_75, x_72, x_74);
x_78 = l_Array_append___rarg(x_7, x_77);
lean_dec(x_77);
x_79 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_68);
x_80 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_80, 0, x_68);
lean_ctor_set(x_80, 1, x_79);
lean_ctor_set(x_80, 2, x_78);
lean_inc(x_68);
x_81 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_81, 0, x_68);
lean_ctor_set(x_81, 1, x_79);
lean_ctor_set(x_81, 2, x_7);
x_82 = l_Lean_Elab_Term_expandDbgTrace___closed__20;
lean_inc(x_68);
x_83 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_83, 0, x_68);
lean_ctor_set(x_83, 1, x_82);
x_84 = l_Lean_Elab_Term_expandDbgTrace___closed__19;
lean_inc(x_68);
x_85 = l_Lean_Syntax_node4(x_68, x_84, x_80, x_81, x_83, x_63);
x_86 = l_Lean_Elab_Term_expandDbgTrace___closed__17;
x_87 = l_Lean_Syntax_node2(x_68, x_86, x_70, x_85);
x_88 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_88, 0, x_87);
x_89 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_89, 0, x_88);
lean_ctor_set(x_89, 1, x_62);
return x_89;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__1(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_expandCDot_x3f___spec__2(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f_expandCDotArg_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; 
x_6 = l_Lean_Elab_Term_expandCDot_x3f(x_1, x_2, x_3);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_unsigned_to_nat(1u);
x_8 = l_Lean_Syntax_getArg(x_1, x_7);
lean_dec(x_1);
x_9 = l_Lean_Elab_Term_expandCDot_x3f(x_8, x_2, x_3);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__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; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_9 = lean_ctor_get(x_6, 5);
x_10 = lean_ctor_get(x_2, 2);
lean_inc(x_10);
lean_inc(x_10);
x_11 = l_Lean_Elab_getBetterRef(x_9, x_10);
x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_14 = lean_ctor_get(x_12, 0);
x_15 = lean_ctor_get(x_12, 1);
x_16 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_14, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_15);
lean_dec(x_2);
x_17 = !lean_is_exclusive(x_16);
if (x_17 == 0)
{
lean_object* x_18; 
x_18 = lean_ctor_get(x_16, 0);
lean_ctor_set(x_12, 1, x_18);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set_tag(x_16, 1);
lean_ctor_set(x_16, 0, x_12);
return x_16;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_16, 0);
x_20 = lean_ctor_get(x_16, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_16);
lean_ctor_set(x_12, 1, x_19);
lean_ctor_set(x_12, 0, x_11);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_12);
lean_ctor_set(x_21, 1, x_20);
return x_21;
}
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_22 = lean_ctor_get(x_12, 0);
x_23 = lean_ctor_get(x_12, 1);
lean_inc(x_23);
lean_inc(x_22);
lean_dec(x_12);
x_24 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_22, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_23);
lean_dec(x_2);
x_25 = lean_ctor_get(x_24, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_24, 1);
lean_inc(x_26);
if (lean_is_exclusive(x_24)) {
 lean_ctor_release(x_24, 0);
 lean_ctor_release(x_24, 1);
 x_27 = x_24;
} else {
 lean_dec_ref(x_24);
 x_27 = lean_box(0);
}
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_11);
lean_ctor_set(x_28, 1, x_25);
if (lean_is_scalar(x_27)) {
 x_29 = lean_alloc_ctor(1, 2, 0);
} else {
 x_29 = x_27;
 lean_ctor_set_tag(x_29, 1);
}
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_26);
return x_29;
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
uint8_t x_10; 
x_10 = !lean_is_exclusive(x_7);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_7, 5);
x_12 = l_Lean_replaceRef(x_1, x_11);
lean_dec(x_11);
lean_ctor_set(x_7, 5, x_12);
x_13 = l_Lean_throwError___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__3(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_7);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_14 = lean_ctor_get(x_7, 0);
x_15 = lean_ctor_get(x_7, 1);
x_16 = lean_ctor_get(x_7, 2);
x_17 = lean_ctor_get(x_7, 3);
x_18 = lean_ctor_get(x_7, 4);
x_19 = lean_ctor_get(x_7, 5);
x_20 = lean_ctor_get(x_7, 6);
x_21 = lean_ctor_get(x_7, 7);
x_22 = lean_ctor_get(x_7, 8);
x_23 = lean_ctor_get(x_7, 9);
x_24 = lean_ctor_get(x_7, 10);
x_25 = lean_ctor_get_uint8(x_7, sizeof(void*)*12);
x_26 = lean_ctor_get(x_7, 11);
x_27 = lean_ctor_get_uint8(x_7, sizeof(void*)*12 + 1);
lean_inc(x_26);
lean_inc(x_24);
lean_inc(x_23);
lean_inc(x_22);
lean_inc(x_21);
lean_inc(x_20);
lean_inc(x_19);
lean_inc(x_18);
lean_inc(x_17);
lean_inc(x_16);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_7);
x_28 = l_Lean_replaceRef(x_1, x_19);
lean_dec(x_19);
x_29 = lean_alloc_ctor(0, 12, 2);
lean_ctor_set(x_29, 0, x_14);
lean_ctor_set(x_29, 1, x_15);
lean_ctor_set(x_29, 2, x_16);
lean_ctor_set(x_29, 3, x_17);
lean_ctor_set(x_29, 4, x_18);
lean_ctor_set(x_29, 5, x_28);
lean_ctor_set(x_29, 6, x_20);
lean_ctor_set(x_29, 7, x_21);
lean_ctor_set(x_29, 8, x_22);
lean_ctor_set(x_29, 9, x_23);
lean_ctor_set(x_29, 10, x_24);
lean_ctor_set(x_29, 11, x_26);
lean_ctor_set_uint8(x_29, sizeof(void*)*12, x_25);
lean_ctor_set_uint8(x_29, sizeof(void*)*12 + 1, x_27);
x_30 = l_Lean_throwError___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__3(x_2, x_3, x_4, x_5, x_6, x_29, x_8, x_9);
lean_dec(x_29);
return x_30;
}
}
}
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_maxRecDepthErrorMessage;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__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) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___closed__2;
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_9);
x_11 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_8);
return x_11;
}
}
static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_unsupportedSyntaxExceptionId;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg___closed__1;
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_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___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_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__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) {
_start:
{
lean_object* x_7; 
x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg), 1, 0);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__1(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; 
x_5 = l_Lean_Elab_expandMacroImpl_x3f(x_1, x_2, x_3, x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
if (lean_obj_tag(x_6) == 0)
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_5);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_5, 0);
lean_dec(x_8);
x_9 = lean_box(0);
lean_ctor_set(x_5, 0, x_9);
return x_5;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_5, 1);
lean_inc(x_10);
lean_dec(x_5);
x_11 = lean_box(0);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_10);
return x_12;
}
}
else
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_6);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_6, 0);
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; uint8_t x_17; 
lean_free_object(x_6);
x_16 = lean_ctor_get(x_5, 1);
lean_inc(x_16);
lean_dec(x_5);
x_17 = !lean_is_exclusive(x_15);
if (x_17 == 0)
{
lean_object* x_18; 
x_18 = l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(x_15, x_3, x_16);
lean_dec(x_15);
return x_18;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_15, 0);
lean_inc(x_19);
lean_dec(x_15);
x_20 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_20, 0, x_19);
x_21 = l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(x_20, x_3, x_16);
lean_dec(x_20);
return x_21;
}
}
else
{
lean_object* x_22; uint8_t x_23; 
x_22 = lean_ctor_get(x_5, 1);
lean_inc(x_22);
lean_dec(x_5);
x_23 = !lean_is_exclusive(x_15);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_ctor_get(x_15, 0);
lean_ctor_set(x_6, 0, x_24);
lean_ctor_set(x_15, 0, x_6);
x_25 = l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(x_15, x_3, x_22);
lean_dec(x_15);
return x_25;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_26 = lean_ctor_get(x_15, 0);
lean_inc(x_26);
lean_dec(x_15);
lean_ctor_set(x_6, 0, x_26);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_6);
x_28 = l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(x_27, x_3, x_22);
lean_dec(x_27);
return x_28;
}
}
}
else
{
lean_object* x_29; lean_object* x_30; 
x_29 = lean_ctor_get(x_6, 0);
lean_inc(x_29);
lean_dec(x_6);
x_30 = lean_ctor_get(x_29, 1);
lean_inc(x_30);
lean_dec(x_29);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_31 = lean_ctor_get(x_5, 1);
lean_inc(x_31);
lean_dec(x_5);
x_32 = lean_ctor_get(x_30, 0);
lean_inc(x_32);
if (lean_is_exclusive(x_30)) {
 lean_ctor_release(x_30, 0);
 x_33 = x_30;
} else {
 lean_dec_ref(x_30);
 x_33 = lean_box(0);
}
if (lean_is_scalar(x_33)) {
 x_34 = lean_alloc_ctor(0, 1, 0);
} else {
 x_34 = x_33;
}
lean_ctor_set(x_34, 0, x_32);
x_35 = l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(x_34, x_3, x_31);
lean_dec(x_34);
return x_35;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_36 = lean_ctor_get(x_5, 1);
lean_inc(x_36);
lean_dec(x_5);
x_37 = lean_ctor_get(x_30, 0);
lean_inc(x_37);
if (lean_is_exclusive(x_30)) {
 lean_ctor_release(x_30, 0);
 x_38 = x_30;
} else {
 lean_dec_ref(x_30);
 x_38 = lean_box(0);
}
x_39 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_39, 0, x_37);
if (lean_is_scalar(x_38)) {
 x_40 = lean_alloc_ctor(1, 1, 0);
} else {
 x_40 = x_38;
}
lean_ctor_set(x_40, 0, x_39);
x_41 = l_liftExcept___at_Lean_Elab_liftMacroM___spec__1(x_40, x_3, x_36);
lean_dec(x_40);
return x_41;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; lean_object* x_7; 
x_5 = l_Lean_Environment_contains(x_1, x_2);
x_6 = lean_box(x_5);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___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) {
_start:
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Lean_ResolveName_resolveNamespace(x_1, x_2, x_3, x_4);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___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) {
_start:
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Lean_ResolveName_resolveGlobalName(x_1, x_2, x_3, x_4);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; 
x_9 = lean_st_ref_get(x_7, x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec(x_9);
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_ctor_get(x_6, 3);
lean_inc(x_13);
x_14 = lean_ctor_get(x_6, 4);
lean_inc(x_14);
x_15 = lean_ctor_get(x_6, 5);
lean_inc(x_15);
x_16 = lean_ctor_get(x_6, 6);
lean_inc(x_16);
x_17 = lean_ctor_get(x_6, 7);
lean_inc(x_17);
x_18 = lean_ctor_get(x_6, 10);
lean_inc(x_18);
lean_inc(x_12);
x_19 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__1___boxed), 4, 1);
lean_closure_set(x_19, 0, x_12);
lean_inc(x_16);
x_20 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__2___rarg___boxed), 3, 1);
lean_closure_set(x_20, 0, x_16);
lean_inc(x_12);
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__2___boxed), 4, 1);
lean_closure_set(x_21, 0, x_12);
lean_inc(x_17);
lean_inc(x_16);
lean_inc(x_12);
x_22 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__3___boxed), 6, 3);
lean_closure_set(x_22, 0, x_12);
lean_closure_set(x_22, 1, x_16);
lean_closure_set(x_22, 2, x_17);
lean_inc(x_12);
x_23 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__4___boxed), 6, 3);
lean_closure_set(x_23, 0, x_12);
lean_closure_set(x_23, 1, x_16);
lean_closure_set(x_23, 2, x_17);
x_24 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_24, 0, x_19);
lean_ctor_set(x_24, 1, x_20);
lean_ctor_set(x_24, 2, x_21);
lean_ctor_set(x_24, 3, x_22);
lean_ctor_set(x_24, 4, x_23);
x_25 = lean_st_ref_get(x_7, x_11);
x_26 = !lean_is_exclusive(x_25);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_27 = lean_ctor_get(x_25, 0);
x_28 = lean_ctor_get(x_25, 1);
x_29 = lean_ctor_get(x_27, 1);
lean_inc(x_29);
lean_dec(x_27);
x_30 = lean_environment_main_module(x_12);
x_31 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_31, 0, x_24);
lean_ctor_set(x_31, 1, x_30);
lean_ctor_set(x_31, 2, x_18);
lean_ctor_set(x_31, 3, x_13);
lean_ctor_set(x_31, 4, x_14);
lean_ctor_set(x_31, 5, x_15);
x_32 = lean_box(0);
lean_ctor_set(x_25, 1, x_32);
lean_ctor_set(x_25, 0, x_29);
x_33 = lean_apply_2(x_1, x_31, x_25);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_34 = lean_ctor_get(x_33, 0);
lean_inc(x_34);
x_35 = lean_ctor_get(x_33, 1);
lean_inc(x_35);
lean_dec(x_33);
x_36 = lean_ctor_get(x_35, 0);
lean_inc(x_36);
x_37 = lean_st_ref_take(x_7, x_28);
x_38 = lean_ctor_get(x_37, 0);
lean_inc(x_38);
x_39 = lean_ctor_get(x_37, 1);
lean_inc(x_39);
lean_dec(x_37);
x_40 = !lean_is_exclusive(x_38);
if (x_40 == 0)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; 
x_41 = lean_ctor_get(x_38, 1);
lean_dec(x_41);
lean_ctor_set(x_38, 1, x_36);
x_42 = lean_st_ref_set(x_7, x_38, x_39);
x_43 = lean_ctor_get(x_42, 1);
lean_inc(x_43);
lean_dec(x_42);
x_44 = lean_ctor_get(x_35, 1);
lean_inc(x_44);
lean_dec(x_35);
x_45 = l_List_reverse___rarg(x_44);
x_46 = l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_45, x_2, x_3, x_4, x_5, x_6, x_7, x_43);
lean_dec(x_6);
lean_dec(x_2);
x_47 = !lean_is_exclusive(x_46);
if (x_47 == 0)
{
lean_object* x_48; 
x_48 = lean_ctor_get(x_46, 0);
lean_dec(x_48);
lean_ctor_set(x_46, 0, x_34);
return x_46;
}
else
{
lean_object* x_49; lean_object* x_50; 
x_49 = lean_ctor_get(x_46, 1);
lean_inc(x_49);
lean_dec(x_46);
x_50 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_50, 0, x_34);
lean_ctor_set(x_50, 1, x_49);
return x_50;
}
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; 
x_51 = lean_ctor_get(x_38, 0);
x_52 = lean_ctor_get(x_38, 2);
x_53 = lean_ctor_get(x_38, 3);
x_54 = lean_ctor_get(x_38, 4);
x_55 = lean_ctor_get(x_38, 5);
x_56 = lean_ctor_get(x_38, 6);
lean_inc(x_56);
lean_inc(x_55);
lean_inc(x_54);
lean_inc(x_53);
lean_inc(x_52);
lean_inc(x_51);
lean_dec(x_38);
x_57 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_57, 0, x_51);
lean_ctor_set(x_57, 1, x_36);
lean_ctor_set(x_57, 2, x_52);
lean_ctor_set(x_57, 3, x_53);
lean_ctor_set(x_57, 4, x_54);
lean_ctor_set(x_57, 5, x_55);
lean_ctor_set(x_57, 6, x_56);
x_58 = lean_st_ref_set(x_7, x_57, x_39);
x_59 = lean_ctor_get(x_58, 1);
lean_inc(x_59);
lean_dec(x_58);
x_60 = lean_ctor_get(x_35, 1);
lean_inc(x_60);
lean_dec(x_35);
x_61 = l_List_reverse___rarg(x_60);
x_62 = l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_61, x_2, x_3, x_4, x_5, x_6, x_7, x_59);
lean_dec(x_6);
lean_dec(x_2);
x_63 = lean_ctor_get(x_62, 1);
lean_inc(x_63);
if (lean_is_exclusive(x_62)) {
 lean_ctor_release(x_62, 0);
 lean_ctor_release(x_62, 1);
 x_64 = x_62;
} else {
 lean_dec_ref(x_62);
 x_64 = lean_box(0);
}
if (lean_is_scalar(x_64)) {
 x_65 = lean_alloc_ctor(0, 2, 0);
} else {
 x_65 = x_64;
}
lean_ctor_set(x_65, 0, x_34);
lean_ctor_set(x_65, 1, x_63);
return x_65;
}
}
else
{
lean_object* x_66; 
x_66 = lean_ctor_get(x_33, 0);
lean_inc(x_66);
lean_dec(x_33);
if (lean_obj_tag(x_66) == 0)
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; 
x_67 = lean_ctor_get(x_66, 0);
lean_inc(x_67);
x_68 = lean_ctor_get(x_66, 1);
lean_inc(x_68);
lean_dec(x_66);
x_69 = l_Lean_maxRecDepthErrorMessage;
x_70 = lean_string_dec_eq(x_68, x_69);
if (x_70 == 0)
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_71 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_71, 0, x_68);
x_72 = l_Lean_MessageData_ofFormat(x_71);
x_73 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__2(x_67, x_72, x_2, x_3, x_4, x_5, x_6, x_7, x_28);
lean_dec(x_67);
return x_73;
}
else
{
lean_object* x_74; 
lean_dec(x_68);
x_74 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4(x_67, x_2, x_3, x_4, x_5, x_6, x_7, x_28);
lean_dec(x_6);
lean_dec(x_2);
return x_74;
}
}
else
{
lean_object* x_75; 
lean_dec(x_6);
lean_dec(x_2);
x_75 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg(x_28);
return x_75;
}
}
}
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; lean_object* x_83; 
x_76 = lean_ctor_get(x_25, 0);
x_77 = lean_ctor_get(x_25, 1);
lean_inc(x_77);
lean_inc(x_76);
lean_dec(x_25);
x_78 = lean_ctor_get(x_76, 1);
lean_inc(x_78);
lean_dec(x_76);
x_79 = lean_environment_main_module(x_12);
x_80 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_80, 0, x_24);
lean_ctor_set(x_80, 1, x_79);
lean_ctor_set(x_80, 2, x_18);
lean_ctor_set(x_80, 3, x_13);
lean_ctor_set(x_80, 4, x_14);
lean_ctor_set(x_80, 5, x_15);
x_81 = lean_box(0);
x_82 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_82, 0, x_78);
lean_ctor_set(x_82, 1, x_81);
x_83 = lean_apply_2(x_1, x_80, x_82);
if (lean_obj_tag(x_83) == 0)
{
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_84 = lean_ctor_get(x_83, 0);
lean_inc(x_84);
x_85 = lean_ctor_get(x_83, 1);
lean_inc(x_85);
lean_dec(x_83);
x_86 = lean_ctor_get(x_85, 0);
lean_inc(x_86);
x_87 = lean_st_ref_take(x_7, x_77);
x_88 = lean_ctor_get(x_87, 0);
lean_inc(x_88);
x_89 = lean_ctor_get(x_87, 1);
lean_inc(x_89);
lean_dec(x_87);
x_90 = lean_ctor_get(x_88, 0);
lean_inc(x_90);
x_91 = lean_ctor_get(x_88, 2);
lean_inc(x_91);
x_92 = lean_ctor_get(x_88, 3);
lean_inc(x_92);
x_93 = lean_ctor_get(x_88, 4);
lean_inc(x_93);
x_94 = lean_ctor_get(x_88, 5);
lean_inc(x_94);
x_95 = lean_ctor_get(x_88, 6);
lean_inc(x_95);
if (lean_is_exclusive(x_88)) {
 lean_ctor_release(x_88, 0);
 lean_ctor_release(x_88, 1);
 lean_ctor_release(x_88, 2);
 lean_ctor_release(x_88, 3);
 lean_ctor_release(x_88, 4);
 lean_ctor_release(x_88, 5);
 lean_ctor_release(x_88, 6);
 x_96 = x_88;
} else {
 lean_dec_ref(x_88);
 x_96 = lean_box(0);
}
if (lean_is_scalar(x_96)) {
 x_97 = lean_alloc_ctor(0, 7, 0);
} else {
 x_97 = x_96;
}
lean_ctor_set(x_97, 0, x_90);
lean_ctor_set(x_97, 1, x_86);
lean_ctor_set(x_97, 2, x_91);
lean_ctor_set(x_97, 3, x_92);
lean_ctor_set(x_97, 4, x_93);
lean_ctor_set(x_97, 5, x_94);
lean_ctor_set(x_97, 6, x_95);
x_98 = lean_st_ref_set(x_7, x_97, x_89);
x_99 = lean_ctor_get(x_98, 1);
lean_inc(x_99);
lean_dec(x_98);
x_100 = lean_ctor_get(x_85, 1);
lean_inc(x_100);
lean_dec(x_85);
x_101 = l_List_reverse___rarg(x_100);
x_102 = l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_101, x_2, x_3, x_4, x_5, x_6, x_7, x_99);
lean_dec(x_6);
lean_dec(x_2);
x_103 = lean_ctor_get(x_102, 1);
lean_inc(x_103);
if (lean_is_exclusive(x_102)) {
 lean_ctor_release(x_102, 0);
 lean_ctor_release(x_102, 1);
 x_104 = x_102;
} else {
 lean_dec_ref(x_102);
 x_104 = lean_box(0);
}
if (lean_is_scalar(x_104)) {
 x_105 = lean_alloc_ctor(0, 2, 0);
} else {
 x_105 = x_104;
}
lean_ctor_set(x_105, 0, x_84);
lean_ctor_set(x_105, 1, x_103);
return x_105;
}
else
{
lean_object* x_106; 
x_106 = lean_ctor_get(x_83, 0);
lean_inc(x_106);
lean_dec(x_83);
if (lean_obj_tag(x_106) == 0)
{
lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; 
x_107 = lean_ctor_get(x_106, 0);
lean_inc(x_107);
x_108 = lean_ctor_get(x_106, 1);
lean_inc(x_108);
lean_dec(x_106);
x_109 = l_Lean_maxRecDepthErrorMessage;
x_110 = lean_string_dec_eq(x_108, x_109);
if (x_110 == 0)
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; 
x_111 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_111, 0, x_108);
x_112 = l_Lean_MessageData_ofFormat(x_111);
x_113 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__2(x_107, x_112, x_2, x_3, x_4, x_5, x_6, x_7, x_77);
lean_dec(x_107);
return x_113;
}
else
{
lean_object* x_114; 
lean_dec(x_108);
x_114 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4(x_107, x_2, x_3, x_4, x_5, x_6, x_7, x_77);
lean_dec(x_6);
lean_dec(x_2);
return x_114;
}
}
else
{
lean_object* x_115; 
lean_dec(x_6);
lean_dec(x_2);
x_115 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg(x_77);
return x_115;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__6(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_3, x_2);
if (x_5 == 0)
{
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_6 = lean_array_uget(x_4, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_4, x_3, x_7);
x_9 = 1;
x_10 = lean_usize_add(x_3, x_9);
x_11 = lean_array_uset(x_8, x_3, x_6);
x_3 = x_10;
x_4 = x_11;
goto _start;
}
}
}
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_array_get_size(x_4);
x_8 = lean_nat_dec_lt(x_6, x_7);
lean_dec(x_7);
if (x_8 == 0)
{
uint8_t x_9; 
lean_dec(x_6);
x_9 = 1;
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_array_fget(x_4, x_6);
x_11 = lean_array_fget(x_5, x_6);
x_12 = l_Lean_Syntax_structEq(x_10, x_11);
if (x_12 == 0)
{
uint8_t x_13; 
lean_dec(x_6);
x_13 = 0;
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_unsigned_to_nat(1u);
x_15 = lean_nat_add(x_6, x_14);
lean_dec(x_6);
x_3 = lean_box(0);
x_6 = x_15;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__8(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_3, x_2);
if (x_5 == 0)
{
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_6 = lean_array_uget(x_4, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_4, x_3, x_7);
x_9 = 1;
x_10 = lean_usize_add(x_3, x_9);
x_11 = lean_array_uset(x_8, x_3, x_6);
x_3 = x_10;
x_4 = x_11;
goto _start;
}
}
}
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_array_get_size(x_4);
x_8 = lean_nat_dec_lt(x_6, x_7);
lean_dec(x_7);
if (x_8 == 0)
{
uint8_t x_9; 
lean_dec(x_6);
x_9 = 1;
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_array_fget(x_4, x_6);
x_11 = lean_array_fget(x_5, x_6);
x_12 = l_Lean_Syntax_structEq(x_10, x_11);
if (x_12 == 0)
{
uint8_t x_13; 
lean_dec(x_6);
x_13 = 0;
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_unsigned_to_nat(1u);
x_15 = lean_nat_add(x_6, x_14);
lean_dec(x_6);
x_3 = lean_box(0);
x_6 = x_15;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__10(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_3, x_2);
if (x_5 == 0)
{
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_6 = lean_array_uget(x_4, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_4, x_3, x_7);
x_9 = 1;
x_10 = lean_usize_add(x_3, x_9);
x_11 = lean_array_uset(x_8, x_3, x_6);
x_3 = x_10;
x_4 = x_11;
goto _start;
}
}
}
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_array_get_size(x_4);
x_8 = lean_nat_dec_lt(x_6, x_7);
lean_dec(x_7);
if (x_8 == 0)
{
uint8_t x_9; 
lean_dec(x_6);
x_9 = 1;
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_array_fget(x_4, x_6);
x_11 = lean_array_fget(x_5, x_6);
x_12 = l_Lean_Syntax_structEq(x_10, x_11);
if (x_12 == 0)
{
uint8_t x_13; 
lean_dec(x_6);
x_13 = 0;
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_unsigned_to_nat(1u);
x_15 = lean_nat_add(x_6, x_14);
lean_dec(x_6);
x_3 = lean_box(0);
x_6 = x_15;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__12(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_3, x_2);
if (x_5 == 0)
{
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_6 = lean_array_uget(x_4, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_4, x_3, x_7);
x_9 = 1;
x_10 = lean_usize_add(x_3, x_9);
x_11 = lean_array_uset(x_8, x_3, x_6);
x_3 = x_10;
x_4 = x_11;
goto _start;
}
}
}
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_array_get_size(x_4);
x_8 = lean_nat_dec_lt(x_6, x_7);
lean_dec(x_7);
if (x_8 == 0)
{
uint8_t x_9; 
lean_dec(x_6);
x_9 = 1;
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_array_fget(x_4, x_6);
x_11 = lean_array_fget(x_5, x_6);
x_12 = l_Lean_Syntax_structEq(x_10, x_11);
if (x_12 == 0)
{
uint8_t x_13; 
lean_dec(x_6);
x_13 = 0;
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_unsigned_to_nat(1u);
x_15 = lean_nat_add(x_6, x_14);
lean_dec(x_6);
x_3 = lean_box(0);
x_6 = x_15;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__14(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_3, x_2);
if (x_5 == 0)
{
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_6 = lean_array_uget(x_4, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_4, x_3, x_7);
x_9 = 1;
x_10 = lean_usize_add(x_3, x_9);
x_11 = lean_array_uset(x_8, x_3, x_6);
x_3 = x_10;
x_4 = x_11;
goto _start;
}
}
}
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_array_get_size(x_4);
x_8 = lean_nat_dec_lt(x_6, x_7);
lean_dec(x_7);
if (x_8 == 0)
{
uint8_t x_9; 
lean_dec(x_6);
x_9 = 1;
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_array_fget(x_4, x_6);
x_11 = lean_array_fget(x_5, x_6);
x_12 = l_Lean_Syntax_structEq(x_10, x_11);
if (x_12 == 0)
{
uint8_t x_13; 
lean_dec(x_6);
x_13 = 0;
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_unsigned_to_nat(1u);
x_15 = lean_nat_add(x_6, x_14);
lean_dec(x_6);
x_3 = lean_box(0);
x_6 = x_15;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__16(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_3, x_2);
if (x_5 == 0)
{
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_6 = lean_array_uget(x_4, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_4, x_3, x_7);
x_9 = 1;
x_10 = lean_usize_add(x_3, x_9);
x_11 = lean_array_uset(x_8, x_3, x_6);
x_3 = x_10;
x_4 = x_11;
goto _start;
}
}
}
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__17(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_array_get_size(x_4);
x_8 = lean_nat_dec_lt(x_6, x_7);
lean_dec(x_7);
if (x_8 == 0)
{
uint8_t x_9; 
lean_dec(x_6);
x_9 = 1;
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_array_fget(x_4, x_6);
x_11 = lean_array_fget(x_5, x_6);
x_12 = l_Lean_Syntax_structEq(x_10, x_11);
if (x_12 == 0)
{
uint8_t x_13; 
lean_dec(x_6);
x_13 = 0;
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_unsigned_to_nat(1u);
x_15 = lean_nat_add(x_6, x_14);
lean_dec(x_6);
x_3 = lean_box(0);
x_6 = x_15;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__18(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_3, x_2);
if (x_5 == 0)
{
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_6 = lean_array_uget(x_4, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_4, x_3, x_7);
x_9 = 1;
x_10 = lean_usize_add(x_3, x_9);
x_11 = lean_array_uset(x_8, x_3, x_6);
x_3 = x_10;
x_4 = x_11;
goto _start;
}
}
}
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_array_get_size(x_4);
x_8 = lean_nat_dec_lt(x_6, x_7);
lean_dec(x_7);
if (x_8 == 0)
{
uint8_t x_9; 
lean_dec(x_6);
x_9 = 1;
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_array_fget(x_4, x_6);
x_11 = lean_array_fget(x_5, x_6);
x_12 = l_Lean_Syntax_structEq(x_10, x_11);
if (x_12 == 0)
{
uint8_t x_13; 
lean_dec(x_6);
x_13 = 0;
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_unsigned_to_nat(1u);
x_15 = lean_nat_add(x_6, x_14);
lean_dec(x_6);
x_3 = lean_box(0);
x_6 = x_15;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__20(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_lt(x_3, x_2);
if (x_5 == 0)
{
return x_4;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_6 = lean_array_uget(x_4, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_array_uset(x_4, x_3, x_7);
x_9 = 1;
x_10 = lean_usize_add(x_3, x_9);
x_11 = lean_array_uset(x_8, x_3, x_6);
x_3 = x_10;
x_4 = x_11;
goto _start;
}
}
}
LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__21(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_array_get_size(x_4);
x_8 = lean_nat_dec_lt(x_6, x_7);
lean_dec(x_7);
if (x_8 == 0)
{
uint8_t x_9; 
lean_dec(x_6);
x_9 = 1;
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_array_fget(x_4, x_6);
x_11 = lean_array_fget(x_5, x_6);
x_12 = l_Lean_Syntax_structEq(x_10, x_11);
if (x_12 == 0)
{
uint8_t x_13; 
lean_dec(x_6);
x_13 = 0;
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_unsigned_to_nat(1u);
x_15 = lean_nat_add(x_6, x_14);
lean_dec(x_6);
x_3 = lean_box(0);
x_6 = x_15;
goto _start;
}
}
}
}
LEAN_EXPORT uint8_t l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___lambda__1(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; 
x_2 = l_Lean_Elab_Term_expandShow___closed__9;
x_3 = lean_name_eq(x_1, x_2);
if (x_3 == 0)
{
uint8_t x_4; 
x_4 = 1;
return x_4;
}
else
{
uint8_t x_5; 
x_5 = 0;
return x_5;
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___lambda__1___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("binop", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__3() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__2;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("binop_lazy", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__4;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("leftact", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabCDotFunctionAlias_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_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("rightact", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__8;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("binrel", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__11() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__10;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("binrel_no_prop", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__13() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__12;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unop", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__15() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__14;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f(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_alloc_closure((void*)(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f_expandCDotArg_x3f), 3, 1);
lean_closure_set(x_9, 0, x_1);
lean_inc(x_6);
lean_inc(x_2);
x_10 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
if (lean_obj_tag(x_11) == 0)
{
uint8_t x_12; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_12 = !lean_is_exclusive(x_10);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_10, 0);
lean_dec(x_13);
x_14 = lean_box(0);
lean_ctor_set(x_10, 0, x_14);
return x_10;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_10, 1);
lean_inc(x_15);
lean_dec(x_10);
x_16 = lean_box(0);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_16);
lean_ctor_set(x_17, 1, x_15);
return x_17;
}
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_18 = lean_ctor_get(x_10, 1);
lean_inc(x_18);
lean_dec(x_10);
x_19 = lean_ctor_get(x_11, 0);
lean_inc(x_19);
lean_dec(x_11);
x_20 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__1;
x_21 = lean_alloc_closure((void*)(l_Lean_expandMacros), 4, 2);
lean_closure_set(x_21, 0, x_19);
lean_closure_set(x_21, 1, x_20);
lean_inc(x_6);
lean_inc(x_2);
x_22 = l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__9(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_18);
if (lean_obj_tag(x_22) == 0)
{
uint8_t x_23; 
x_23 = !lean_is_exclusive(x_22);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 
x_24 = lean_ctor_get(x_22, 0);
x_25 = lean_ctor_get(x_22, 1);
x_26 = l_Lean_Elab_Term_expandDbgTrace___closed__17;
lean_inc(x_24);
x_27 = l_Lean_Syntax_isOfKind(x_24, x_26);
if (x_27 == 0)
{
lean_object* x_28; 
lean_dec(x_24);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_28 = lean_box(0);
lean_ctor_set(x_22, 0, x_28);
return x_22;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
x_29 = lean_unsigned_to_nat(1u);
x_30 = l_Lean_Syntax_getArg(x_24, x_29);
x_31 = l_Lean_Elab_Term_expandDbgTrace___closed__19;
lean_inc(x_30);
x_32 = l_Lean_Syntax_isOfKind(x_30, x_31);
if (x_32 == 0)
{
lean_object* x_33; 
lean_dec(x_30);
lean_dec(x_24);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_33 = lean_box(0);
lean_ctor_set(x_22, 0, x_33);
return x_22;
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 
x_34 = lean_unsigned_to_nat(0u);
x_35 = l_Lean_Syntax_getArg(x_30, x_34);
x_36 = l_Lean_Syntax_getArg(x_30, x_29);
x_37 = l_Lean_Syntax_matchesNull(x_36, x_34);
if (x_37 == 0)
{
lean_object* x_38; 
lean_dec(x_35);
lean_dec(x_30);
lean_dec(x_24);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_38 = lean_box(0);
lean_ctor_set(x_22, 0, x_38);
return x_22;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; 
x_39 = lean_unsigned_to_nat(3u);
x_40 = l_Lean_Syntax_getArg(x_30, x_39);
lean_dec(x_30);
x_41 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
lean_inc(x_40);
x_42 = l_Lean_Syntax_isOfKind(x_40, x_41);
if (x_42 == 0)
{
lean_object* x_43; uint8_t x_44; 
x_43 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__3;
lean_inc(x_40);
x_44 = l_Lean_Syntax_isOfKind(x_40, x_43);
if (x_44 == 0)
{
lean_object* x_45; uint8_t x_46; 
x_45 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__5;
lean_inc(x_40);
x_46 = l_Lean_Syntax_isOfKind(x_40, x_45);
if (x_46 == 0)
{
lean_object* x_47; uint8_t x_48; 
x_47 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__7;
lean_inc(x_40);
x_48 = l_Lean_Syntax_isOfKind(x_40, x_47);
if (x_48 == 0)
{
lean_object* x_49; uint8_t x_50; 
x_49 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__9;
lean_inc(x_40);
x_50 = l_Lean_Syntax_isOfKind(x_40, x_49);
if (x_50 == 0)
{
lean_object* x_51; uint8_t x_52; 
x_51 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__11;
lean_inc(x_40);
x_52 = l_Lean_Syntax_isOfKind(x_40, x_51);
if (x_52 == 0)
{
lean_object* x_53; uint8_t x_54; 
x_53 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__13;
lean_inc(x_40);
x_54 = l_Lean_Syntax_isOfKind(x_40, x_53);
if (x_54 == 0)
{
lean_object* x_55; uint8_t x_56; 
x_55 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__15;
lean_inc(x_40);
x_56 = l_Lean_Syntax_isOfKind(x_40, x_55);
if (x_56 == 0)
{
lean_object* x_57; 
lean_dec(x_40);
lean_dec(x_35);
lean_dec(x_24);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_57 = lean_box(0);
lean_ctor_set(x_22, 0, x_57);
return x_22;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; size_t x_64; size_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; 
x_58 = l_Lean_Syntax_getArg(x_40, x_29);
x_59 = lean_unsigned_to_nat(2u);
x_60 = l_Lean_Syntax_getArg(x_40, x_59);
lean_dec(x_40);
x_61 = l_Lean_Syntax_getArgs(x_35);
lean_dec(x_35);
x_62 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52;
x_63 = lean_array_push(x_62, x_60);
x_64 = lean_array_size(x_63);
x_65 = 0;
x_66 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_67 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__6(x_66, x_64, x_65, x_63);
x_68 = lean_array_get_size(x_61);
x_69 = lean_array_get_size(x_67);
x_70 = lean_nat_dec_eq(x_68, x_69);
lean_dec(x_69);
lean_dec(x_68);
if (x_70 == 0)
{
lean_object* x_71; 
lean_dec(x_67);
lean_dec(x_61);
lean_dec(x_58);
lean_dec(x_24);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_71 = lean_box(0);
lean_ctor_set(x_22, 0, x_71);
return x_22;
}
else
{
uint8_t x_72; 
x_72 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__7(x_24, x_66, lean_box(0), x_61, x_67, x_34);
lean_dec(x_67);
lean_dec(x_61);
lean_dec(x_24);
if (x_72 == 0)
{
lean_object* x_73; 
lean_dec(x_58);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_73 = lean_box(0);
lean_ctor_set(x_22, 0, x_73);
return x_22;
}
else
{
lean_object* x_74; uint8_t x_75; lean_object* x_76; 
lean_free_object(x_22);
x_74 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_75 = 0;
x_76 = l_Lean_Elab_Term_resolveId_x3f(x_58, x_74, x_75, x_2, x_3, x_4, x_5, x_6, x_7, x_25);
if (lean_obj_tag(x_76) == 0)
{
uint8_t x_77; 
x_77 = !lean_is_exclusive(x_76);
if (x_77 == 0)
{
return x_76;
}
else
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; 
x_78 = lean_ctor_get(x_76, 0);
x_79 = lean_ctor_get(x_76, 1);
lean_inc(x_79);
lean_inc(x_78);
lean_dec(x_76);
x_80 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_80, 0, x_78);
lean_ctor_set(x_80, 1, x_79);
return x_80;
}
}
else
{
uint8_t x_81; 
x_81 = !lean_is_exclusive(x_76);
if (x_81 == 0)
{
lean_object* x_82; uint8_t x_83; 
x_82 = lean_ctor_get(x_76, 0);
x_83 = l_Lean_Exception_isInterrupt(x_82);
if (x_83 == 0)
{
uint8_t x_84; 
x_84 = l_Lean_Exception_isRuntime(x_82);
if (x_84 == 0)
{
lean_object* x_85; 
lean_dec(x_82);
x_85 = lean_box(0);
lean_ctor_set_tag(x_76, 0);
lean_ctor_set(x_76, 0, x_85);
return x_76;
}
else
{
return x_76;
}
}
else
{
return x_76;
}
}
else
{
lean_object* x_86; lean_object* x_87; uint8_t x_88; 
x_86 = lean_ctor_get(x_76, 0);
x_87 = lean_ctor_get(x_76, 1);
lean_inc(x_87);
lean_inc(x_86);
lean_dec(x_76);
x_88 = l_Lean_Exception_isInterrupt(x_86);
if (x_88 == 0)
{
uint8_t x_89; 
x_89 = l_Lean_Exception_isRuntime(x_86);
if (x_89 == 0)
{
lean_object* x_90; lean_object* x_91; 
lean_dec(x_86);
x_90 = lean_box(0);
x_91 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_91, 0, x_90);
lean_ctor_set(x_91, 1, x_87);
return x_91;
}
else
{
lean_object* x_92; 
x_92 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_92, 0, x_86);
lean_ctor_set(x_92, 1, x_87);
return x_92;
}
}
else
{
lean_object* x_93; 
x_93 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_93, 0, x_86);
lean_ctor_set(x_93, 1, x_87);
return x_93;
}
}
}
}
}
}
}
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; size_t x_102; size_t x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; 
x_94 = l_Lean_Syntax_getArg(x_40, x_29);
x_95 = lean_unsigned_to_nat(2u);
x_96 = l_Lean_Syntax_getArg(x_40, x_95);
x_97 = l_Lean_Syntax_getArg(x_40, x_39);
lean_dec(x_40);
x_98 = l_Lean_Syntax_getArgs(x_35);
lean_dec(x_35);
x_99 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
x_100 = lean_array_push(x_99, x_96);
x_101 = lean_array_push(x_100, x_97);
x_102 = lean_array_size(x_101);
x_103 = 0;
x_104 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_105 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__8(x_104, x_102, x_103, x_101);
x_106 = lean_array_get_size(x_98);
x_107 = lean_array_get_size(x_105);
x_108 = lean_nat_dec_eq(x_106, x_107);
lean_dec(x_107);
lean_dec(x_106);
if (x_108 == 0)
{
lean_object* x_109; 
lean_dec(x_105);
lean_dec(x_98);
lean_dec(x_94);
lean_dec(x_24);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_109 = lean_box(0);
lean_ctor_set(x_22, 0, x_109);
return x_22;
}
else
{
uint8_t x_110; 
x_110 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__9(x_24, x_104, lean_box(0), x_98, x_105, x_34);
lean_dec(x_105);
lean_dec(x_98);
lean_dec(x_24);
if (x_110 == 0)
{
lean_object* x_111; 
lean_dec(x_94);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_111 = lean_box(0);
lean_ctor_set(x_22, 0, x_111);
return x_22;
}
else
{
lean_object* x_112; uint8_t x_113; lean_object* x_114; 
lean_free_object(x_22);
x_112 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_113 = 0;
x_114 = l_Lean_Elab_Term_resolveId_x3f(x_94, x_112, x_113, x_2, x_3, x_4, x_5, x_6, x_7, x_25);
if (lean_obj_tag(x_114) == 0)
{
uint8_t x_115; 
x_115 = !lean_is_exclusive(x_114);
if (x_115 == 0)
{
return x_114;
}
else
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
x_116 = lean_ctor_get(x_114, 0);
x_117 = lean_ctor_get(x_114, 1);
lean_inc(x_117);
lean_inc(x_116);
lean_dec(x_114);
x_118 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_118, 0, x_116);
lean_ctor_set(x_118, 1, x_117);
return x_118;
}
}
else
{
uint8_t x_119; 
x_119 = !lean_is_exclusive(x_114);
if (x_119 == 0)
{
lean_object* x_120; uint8_t x_121; 
x_120 = lean_ctor_get(x_114, 0);
x_121 = l_Lean_Exception_isInterrupt(x_120);
if (x_121 == 0)
{
uint8_t x_122; 
x_122 = l_Lean_Exception_isRuntime(x_120);
if (x_122 == 0)
{
lean_object* x_123; 
lean_dec(x_120);
x_123 = lean_box(0);
lean_ctor_set_tag(x_114, 0);
lean_ctor_set(x_114, 0, x_123);
return x_114;
}
else
{
return x_114;
}
}
else
{
return x_114;
}
}
else
{
lean_object* x_124; lean_object* x_125; uint8_t x_126; 
x_124 = lean_ctor_get(x_114, 0);
x_125 = lean_ctor_get(x_114, 1);
lean_inc(x_125);
lean_inc(x_124);
lean_dec(x_114);
x_126 = l_Lean_Exception_isInterrupt(x_124);
if (x_126 == 0)
{
uint8_t x_127; 
x_127 = l_Lean_Exception_isRuntime(x_124);
if (x_127 == 0)
{
lean_object* x_128; lean_object* x_129; 
lean_dec(x_124);
x_128 = lean_box(0);
x_129 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_129, 0, x_128);
lean_ctor_set(x_129, 1, x_125);
return x_129;
}
else
{
lean_object* x_130; 
x_130 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_130, 0, x_124);
lean_ctor_set(x_130, 1, x_125);
return x_130;
}
}
else
{
lean_object* x_131; 
x_131 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_131, 0, x_124);
lean_ctor_set(x_131, 1, x_125);
return x_131;
}
}
}
}
}
}
}
else
{
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; size_t x_140; size_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; 
x_132 = l_Lean_Syntax_getArg(x_40, x_29);
x_133 = lean_unsigned_to_nat(2u);
x_134 = l_Lean_Syntax_getArg(x_40, x_133);
x_135 = l_Lean_Syntax_getArg(x_40, x_39);
lean_dec(x_40);
x_136 = l_Lean_Syntax_getArgs(x_35);
lean_dec(x_35);
x_137 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
x_138 = lean_array_push(x_137, x_134);
x_139 = lean_array_push(x_138, x_135);
x_140 = lean_array_size(x_139);
x_141 = 0;
x_142 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_143 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__10(x_142, x_140, x_141, x_139);
x_144 = lean_array_get_size(x_136);
x_145 = lean_array_get_size(x_143);
x_146 = lean_nat_dec_eq(x_144, x_145);
lean_dec(x_145);
lean_dec(x_144);
if (x_146 == 0)
{
lean_object* x_147; 
lean_dec(x_143);
lean_dec(x_136);
lean_dec(x_132);
lean_dec(x_24);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_147 = lean_box(0);
lean_ctor_set(x_22, 0, x_147);
return x_22;
}
else
{
uint8_t x_148; 
x_148 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__11(x_24, x_142, lean_box(0), x_136, x_143, x_34);
lean_dec(x_143);
lean_dec(x_136);
lean_dec(x_24);
if (x_148 == 0)
{
lean_object* x_149; 
lean_dec(x_132);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_149 = lean_box(0);
lean_ctor_set(x_22, 0, x_149);
return x_22;
}
else
{
lean_object* x_150; uint8_t x_151; lean_object* x_152; 
lean_free_object(x_22);
x_150 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_151 = 0;
x_152 = l_Lean_Elab_Term_resolveId_x3f(x_132, x_150, x_151, x_2, x_3, x_4, x_5, x_6, x_7, x_25);
if (lean_obj_tag(x_152) == 0)
{
uint8_t x_153; 
x_153 = !lean_is_exclusive(x_152);
if (x_153 == 0)
{
return x_152;
}
else
{
lean_object* x_154; lean_object* x_155; lean_object* x_156; 
x_154 = lean_ctor_get(x_152, 0);
x_155 = lean_ctor_get(x_152, 1);
lean_inc(x_155);
lean_inc(x_154);
lean_dec(x_152);
x_156 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_156, 0, x_154);
lean_ctor_set(x_156, 1, x_155);
return x_156;
}
}
else
{
uint8_t x_157; 
x_157 = !lean_is_exclusive(x_152);
if (x_157 == 0)
{
lean_object* x_158; uint8_t x_159; 
x_158 = lean_ctor_get(x_152, 0);
x_159 = l_Lean_Exception_isInterrupt(x_158);
if (x_159 == 0)
{
uint8_t x_160; 
x_160 = l_Lean_Exception_isRuntime(x_158);
if (x_160 == 0)
{
lean_object* x_161; 
lean_dec(x_158);
x_161 = lean_box(0);
lean_ctor_set_tag(x_152, 0);
lean_ctor_set(x_152, 0, x_161);
return x_152;
}
else
{
return x_152;
}
}
else
{
return x_152;
}
}
else
{
lean_object* x_162; lean_object* x_163; uint8_t x_164; 
x_162 = lean_ctor_get(x_152, 0);
x_163 = lean_ctor_get(x_152, 1);
lean_inc(x_163);
lean_inc(x_162);
lean_dec(x_152);
x_164 = l_Lean_Exception_isInterrupt(x_162);
if (x_164 == 0)
{
uint8_t x_165; 
x_165 = l_Lean_Exception_isRuntime(x_162);
if (x_165 == 0)
{
lean_object* x_166; lean_object* x_167; 
lean_dec(x_162);
x_166 = lean_box(0);
x_167 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_167, 0, x_166);
lean_ctor_set(x_167, 1, x_163);
return x_167;
}
else
{
lean_object* x_168; 
x_168 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_168, 0, x_162);
lean_ctor_set(x_168, 1, x_163);
return x_168;
}
}
else
{
lean_object* x_169; 
x_169 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_169, 0, x_162);
lean_ctor_set(x_169, 1, x_163);
return x_169;
}
}
}
}
}
}
}
else
{
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; size_t x_178; size_t x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t x_184; 
x_170 = l_Lean_Syntax_getArg(x_40, x_29);
x_171 = lean_unsigned_to_nat(2u);
x_172 = l_Lean_Syntax_getArg(x_40, x_171);
x_173 = l_Lean_Syntax_getArg(x_40, x_39);
lean_dec(x_40);
x_174 = l_Lean_Syntax_getArgs(x_35);
lean_dec(x_35);
x_175 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
x_176 = lean_array_push(x_175, x_172);
x_177 = lean_array_push(x_176, x_173);
x_178 = lean_array_size(x_177);
x_179 = 0;
x_180 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_181 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__12(x_180, x_178, x_179, x_177);
x_182 = lean_array_get_size(x_174);
x_183 = lean_array_get_size(x_181);
x_184 = lean_nat_dec_eq(x_182, x_183);
lean_dec(x_183);
lean_dec(x_182);
if (x_184 == 0)
{
lean_object* x_185; 
lean_dec(x_181);
lean_dec(x_174);
lean_dec(x_170);
lean_dec(x_24);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_185 = lean_box(0);
lean_ctor_set(x_22, 0, x_185);
return x_22;
}
else
{
uint8_t x_186; 
x_186 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__13(x_24, x_180, lean_box(0), x_174, x_181, x_34);
lean_dec(x_181);
lean_dec(x_174);
lean_dec(x_24);
if (x_186 == 0)
{
lean_object* x_187; 
lean_dec(x_170);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_187 = lean_box(0);
lean_ctor_set(x_22, 0, x_187);
return x_22;
}
else
{
lean_object* x_188; uint8_t x_189; lean_object* x_190; 
lean_free_object(x_22);
x_188 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_189 = 0;
x_190 = l_Lean_Elab_Term_resolveId_x3f(x_170, x_188, x_189, x_2, x_3, x_4, x_5, x_6, x_7, x_25);
if (lean_obj_tag(x_190) == 0)
{
uint8_t x_191; 
x_191 = !lean_is_exclusive(x_190);
if (x_191 == 0)
{
return x_190;
}
else
{
lean_object* x_192; lean_object* x_193; lean_object* x_194; 
x_192 = lean_ctor_get(x_190, 0);
x_193 = lean_ctor_get(x_190, 1);
lean_inc(x_193);
lean_inc(x_192);
lean_dec(x_190);
x_194 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_194, 0, x_192);
lean_ctor_set(x_194, 1, x_193);
return x_194;
}
}
else
{
uint8_t x_195; 
x_195 = !lean_is_exclusive(x_190);
if (x_195 == 0)
{
lean_object* x_196; uint8_t x_197; 
x_196 = lean_ctor_get(x_190, 0);
x_197 = l_Lean_Exception_isInterrupt(x_196);
if (x_197 == 0)
{
uint8_t x_198; 
x_198 = l_Lean_Exception_isRuntime(x_196);
if (x_198 == 0)
{
lean_object* x_199; 
lean_dec(x_196);
x_199 = lean_box(0);
lean_ctor_set_tag(x_190, 0);
lean_ctor_set(x_190, 0, x_199);
return x_190;
}
else
{
return x_190;
}
}
else
{
return x_190;
}
}
else
{
lean_object* x_200; lean_object* x_201; uint8_t x_202; 
x_200 = lean_ctor_get(x_190, 0);
x_201 = lean_ctor_get(x_190, 1);
lean_inc(x_201);
lean_inc(x_200);
lean_dec(x_190);
x_202 = l_Lean_Exception_isInterrupt(x_200);
if (x_202 == 0)
{
uint8_t x_203; 
x_203 = l_Lean_Exception_isRuntime(x_200);
if (x_203 == 0)
{
lean_object* x_204; lean_object* x_205; 
lean_dec(x_200);
x_204 = lean_box(0);
x_205 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_205, 0, x_204);
lean_ctor_set(x_205, 1, x_201);
return x_205;
}
else
{
lean_object* x_206; 
x_206 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_206, 0, x_200);
lean_ctor_set(x_206, 1, x_201);
return x_206;
}
}
else
{
lean_object* x_207; 
x_207 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_207, 0, x_200);
lean_ctor_set(x_207, 1, x_201);
return x_207;
}
}
}
}
}
}
}
else
{
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; size_t x_216; size_t x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; 
x_208 = l_Lean_Syntax_getArg(x_40, x_29);
x_209 = lean_unsigned_to_nat(2u);
x_210 = l_Lean_Syntax_getArg(x_40, x_209);
x_211 = l_Lean_Syntax_getArg(x_40, x_39);
lean_dec(x_40);
x_212 = l_Lean_Syntax_getArgs(x_35);
lean_dec(x_35);
x_213 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
x_214 = lean_array_push(x_213, x_210);
x_215 = lean_array_push(x_214, x_211);
x_216 = lean_array_size(x_215);
x_217 = 0;
x_218 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_219 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__14(x_218, x_216, x_217, x_215);
x_220 = lean_array_get_size(x_212);
x_221 = lean_array_get_size(x_219);
x_222 = lean_nat_dec_eq(x_220, x_221);
lean_dec(x_221);
lean_dec(x_220);
if (x_222 == 0)
{
lean_object* x_223; 
lean_dec(x_219);
lean_dec(x_212);
lean_dec(x_208);
lean_dec(x_24);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_223 = lean_box(0);
lean_ctor_set(x_22, 0, x_223);
return x_22;
}
else
{
uint8_t x_224; 
x_224 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__15(x_24, x_218, lean_box(0), x_212, x_219, x_34);
lean_dec(x_219);
lean_dec(x_212);
lean_dec(x_24);
if (x_224 == 0)
{
lean_object* x_225; 
lean_dec(x_208);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_225 = lean_box(0);
lean_ctor_set(x_22, 0, x_225);
return x_22;
}
else
{
lean_object* x_226; uint8_t x_227; lean_object* x_228; 
lean_free_object(x_22);
x_226 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_227 = 0;
x_228 = l_Lean_Elab_Term_resolveId_x3f(x_208, x_226, x_227, x_2, x_3, x_4, x_5, x_6, x_7, x_25);
if (lean_obj_tag(x_228) == 0)
{
uint8_t x_229; 
x_229 = !lean_is_exclusive(x_228);
if (x_229 == 0)
{
return x_228;
}
else
{
lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_230 = lean_ctor_get(x_228, 0);
x_231 = lean_ctor_get(x_228, 1);
lean_inc(x_231);
lean_inc(x_230);
lean_dec(x_228);
x_232 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_232, 0, x_230);
lean_ctor_set(x_232, 1, x_231);
return x_232;
}
}
else
{
uint8_t x_233; 
x_233 = !lean_is_exclusive(x_228);
if (x_233 == 0)
{
lean_object* x_234; uint8_t x_235; 
x_234 = lean_ctor_get(x_228, 0);
x_235 = l_Lean_Exception_isInterrupt(x_234);
if (x_235 == 0)
{
uint8_t x_236; 
x_236 = l_Lean_Exception_isRuntime(x_234);
if (x_236 == 0)
{
lean_object* x_237; 
lean_dec(x_234);
x_237 = lean_box(0);
lean_ctor_set_tag(x_228, 0);
lean_ctor_set(x_228, 0, x_237);
return x_228;
}
else
{
return x_228;
}
}
else
{
return x_228;
}
}
else
{
lean_object* x_238; lean_object* x_239; uint8_t x_240; 
x_238 = lean_ctor_get(x_228, 0);
x_239 = lean_ctor_get(x_228, 1);
lean_inc(x_239);
lean_inc(x_238);
lean_dec(x_228);
x_240 = l_Lean_Exception_isInterrupt(x_238);
if (x_240 == 0)
{
uint8_t x_241; 
x_241 = l_Lean_Exception_isRuntime(x_238);
if (x_241 == 0)
{
lean_object* x_242; lean_object* x_243; 
lean_dec(x_238);
x_242 = lean_box(0);
x_243 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_243, 0, x_242);
lean_ctor_set(x_243, 1, x_239);
return x_243;
}
else
{
lean_object* x_244; 
x_244 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_244, 0, x_238);
lean_ctor_set(x_244, 1, x_239);
return x_244;
}
}
else
{
lean_object* x_245; 
x_245 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_245, 0, x_238);
lean_ctor_set(x_245, 1, x_239);
return x_245;
}
}
}
}
}
}
}
else
{
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; size_t x_254; size_t x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; uint8_t x_260; 
x_246 = l_Lean_Syntax_getArg(x_40, x_29);
x_247 = lean_unsigned_to_nat(2u);
x_248 = l_Lean_Syntax_getArg(x_40, x_247);
x_249 = l_Lean_Syntax_getArg(x_40, x_39);
lean_dec(x_40);
x_250 = l_Lean_Syntax_getArgs(x_35);
lean_dec(x_35);
x_251 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
x_252 = lean_array_push(x_251, x_248);
x_253 = lean_array_push(x_252, x_249);
x_254 = lean_array_size(x_253);
x_255 = 0;
x_256 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_257 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__16(x_256, x_254, x_255, x_253);
x_258 = lean_array_get_size(x_250);
x_259 = lean_array_get_size(x_257);
x_260 = lean_nat_dec_eq(x_258, x_259);
lean_dec(x_259);
lean_dec(x_258);
if (x_260 == 0)
{
lean_object* x_261; 
lean_dec(x_257);
lean_dec(x_250);
lean_dec(x_246);
lean_dec(x_24);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_261 = lean_box(0);
lean_ctor_set(x_22, 0, x_261);
return x_22;
}
else
{
uint8_t x_262; 
x_262 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__17(x_24, x_256, lean_box(0), x_250, x_257, x_34);
lean_dec(x_257);
lean_dec(x_250);
lean_dec(x_24);
if (x_262 == 0)
{
lean_object* x_263; 
lean_dec(x_246);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_263 = lean_box(0);
lean_ctor_set(x_22, 0, x_263);
return x_22;
}
else
{
lean_object* x_264; uint8_t x_265; lean_object* x_266; 
lean_free_object(x_22);
x_264 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_265 = 0;
x_266 = l_Lean_Elab_Term_resolveId_x3f(x_246, x_264, x_265, x_2, x_3, x_4, x_5, x_6, x_7, x_25);
if (lean_obj_tag(x_266) == 0)
{
uint8_t x_267; 
x_267 = !lean_is_exclusive(x_266);
if (x_267 == 0)
{
return x_266;
}
else
{
lean_object* x_268; lean_object* x_269; lean_object* x_270; 
x_268 = lean_ctor_get(x_266, 0);
x_269 = lean_ctor_get(x_266, 1);
lean_inc(x_269);
lean_inc(x_268);
lean_dec(x_266);
x_270 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_270, 0, x_268);
lean_ctor_set(x_270, 1, x_269);
return x_270;
}
}
else
{
uint8_t x_271; 
x_271 = !lean_is_exclusive(x_266);
if (x_271 == 0)
{
lean_object* x_272; uint8_t x_273; 
x_272 = lean_ctor_get(x_266, 0);
x_273 = l_Lean_Exception_isInterrupt(x_272);
if (x_273 == 0)
{
uint8_t x_274; 
x_274 = l_Lean_Exception_isRuntime(x_272);
if (x_274 == 0)
{
lean_object* x_275; 
lean_dec(x_272);
x_275 = lean_box(0);
lean_ctor_set_tag(x_266, 0);
lean_ctor_set(x_266, 0, x_275);
return x_266;
}
else
{
return x_266;
}
}
else
{
return x_266;
}
}
else
{
lean_object* x_276; lean_object* x_277; uint8_t x_278; 
x_276 = lean_ctor_get(x_266, 0);
x_277 = lean_ctor_get(x_266, 1);
lean_inc(x_277);
lean_inc(x_276);
lean_dec(x_266);
x_278 = l_Lean_Exception_isInterrupt(x_276);
if (x_278 == 0)
{
uint8_t x_279; 
x_279 = l_Lean_Exception_isRuntime(x_276);
if (x_279 == 0)
{
lean_object* x_280; lean_object* x_281; 
lean_dec(x_276);
x_280 = lean_box(0);
x_281 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_281, 0, x_280);
lean_ctor_set(x_281, 1, x_277);
return x_281;
}
else
{
lean_object* x_282; 
x_282 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_282, 0, x_276);
lean_ctor_set(x_282, 1, x_277);
return x_282;
}
}
else
{
lean_object* x_283; 
x_283 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_283, 0, x_276);
lean_ctor_set(x_283, 1, x_277);
return x_283;
}
}
}
}
}
}
}
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; size_t x_292; size_t x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; uint8_t x_298; 
x_284 = l_Lean_Syntax_getArg(x_40, x_29);
x_285 = lean_unsigned_to_nat(2u);
x_286 = l_Lean_Syntax_getArg(x_40, x_285);
x_287 = l_Lean_Syntax_getArg(x_40, x_39);
lean_dec(x_40);
x_288 = l_Lean_Syntax_getArgs(x_35);
lean_dec(x_35);
x_289 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
x_290 = lean_array_push(x_289, x_286);
x_291 = lean_array_push(x_290, x_287);
x_292 = lean_array_size(x_291);
x_293 = 0;
x_294 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_295 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__18(x_294, x_292, x_293, x_291);
x_296 = lean_array_get_size(x_288);
x_297 = lean_array_get_size(x_295);
x_298 = lean_nat_dec_eq(x_296, x_297);
lean_dec(x_297);
lean_dec(x_296);
if (x_298 == 0)
{
lean_object* x_299; 
lean_dec(x_295);
lean_dec(x_288);
lean_dec(x_284);
lean_dec(x_24);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_299 = lean_box(0);
lean_ctor_set(x_22, 0, x_299);
return x_22;
}
else
{
uint8_t x_300; 
x_300 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__19(x_24, x_294, lean_box(0), x_288, x_295, x_34);
lean_dec(x_295);
lean_dec(x_288);
lean_dec(x_24);
if (x_300 == 0)
{
lean_object* x_301; 
lean_dec(x_284);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_301 = lean_box(0);
lean_ctor_set(x_22, 0, x_301);
return x_22;
}
else
{
lean_object* x_302; uint8_t x_303; lean_object* x_304; 
lean_free_object(x_22);
x_302 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_303 = 0;
x_304 = l_Lean_Elab_Term_resolveId_x3f(x_284, x_302, x_303, x_2, x_3, x_4, x_5, x_6, x_7, x_25);
if (lean_obj_tag(x_304) == 0)
{
uint8_t x_305; 
x_305 = !lean_is_exclusive(x_304);
if (x_305 == 0)
{
return x_304;
}
else
{
lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_306 = lean_ctor_get(x_304, 0);
x_307 = lean_ctor_get(x_304, 1);
lean_inc(x_307);
lean_inc(x_306);
lean_dec(x_304);
x_308 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_308, 0, x_306);
lean_ctor_set(x_308, 1, x_307);
return x_308;
}
}
else
{
uint8_t x_309; 
x_309 = !lean_is_exclusive(x_304);
if (x_309 == 0)
{
lean_object* x_310; uint8_t x_311; 
x_310 = lean_ctor_get(x_304, 0);
x_311 = l_Lean_Exception_isInterrupt(x_310);
if (x_311 == 0)
{
uint8_t x_312; 
x_312 = l_Lean_Exception_isRuntime(x_310);
if (x_312 == 0)
{
lean_object* x_313; 
lean_dec(x_310);
x_313 = lean_box(0);
lean_ctor_set_tag(x_304, 0);
lean_ctor_set(x_304, 0, x_313);
return x_304;
}
else
{
return x_304;
}
}
else
{
return x_304;
}
}
else
{
lean_object* x_314; lean_object* x_315; uint8_t x_316; 
x_314 = lean_ctor_get(x_304, 0);
x_315 = lean_ctor_get(x_304, 1);
lean_inc(x_315);
lean_inc(x_314);
lean_dec(x_304);
x_316 = l_Lean_Exception_isInterrupt(x_314);
if (x_316 == 0)
{
uint8_t x_317; 
x_317 = l_Lean_Exception_isRuntime(x_314);
if (x_317 == 0)
{
lean_object* x_318; lean_object* x_319; 
lean_dec(x_314);
x_318 = lean_box(0);
x_319 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_319, 0, x_318);
lean_ctor_set(x_319, 1, x_315);
return x_319;
}
else
{
lean_object* x_320; 
x_320 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_320, 0, x_314);
lean_ctor_set(x_320, 1, x_315);
return x_320;
}
}
else
{
lean_object* x_321; 
x_321 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_321, 0, x_314);
lean_ctor_set(x_321, 1, x_315);
return x_321;
}
}
}
}
}
}
}
else
{
lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; size_t x_326; size_t x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; 
x_322 = l_Lean_Syntax_getArg(x_40, x_34);
x_323 = l_Lean_Syntax_getArg(x_40, x_29);
lean_dec(x_40);
x_324 = l_Lean_Syntax_getArgs(x_323);
lean_dec(x_323);
x_325 = l_Lean_Syntax_getArgs(x_35);
lean_dec(x_35);
x_326 = lean_array_size(x_324);
x_327 = 0;
x_328 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_329 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__20(x_328, x_326, x_327, x_324);
x_330 = lean_array_get_size(x_325);
x_331 = lean_array_get_size(x_329);
x_332 = lean_nat_dec_eq(x_330, x_331);
lean_dec(x_331);
lean_dec(x_330);
if (x_332 == 0)
{
lean_object* x_333; 
lean_dec(x_329);
lean_dec(x_325);
lean_dec(x_322);
lean_dec(x_24);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_333 = lean_box(0);
lean_ctor_set(x_22, 0, x_333);
return x_22;
}
else
{
uint8_t x_334; 
x_334 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__21(x_24, x_328, lean_box(0), x_325, x_329, x_34);
lean_dec(x_329);
lean_dec(x_325);
lean_dec(x_24);
if (x_334 == 0)
{
lean_object* x_335; 
lean_dec(x_322);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_335 = lean_box(0);
lean_ctor_set(x_22, 0, x_335);
return x_22;
}
else
{
lean_object* x_336; uint8_t x_337; lean_object* x_338; 
lean_free_object(x_22);
x_336 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_337 = 0;
x_338 = l_Lean_Elab_Term_resolveId_x3f(x_322, x_336, x_337, x_2, x_3, x_4, x_5, x_6, x_7, x_25);
if (lean_obj_tag(x_338) == 0)
{
uint8_t x_339; 
x_339 = !lean_is_exclusive(x_338);
if (x_339 == 0)
{
return x_338;
}
else
{
lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_340 = lean_ctor_get(x_338, 0);
x_341 = lean_ctor_get(x_338, 1);
lean_inc(x_341);
lean_inc(x_340);
lean_dec(x_338);
x_342 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_342, 0, x_340);
lean_ctor_set(x_342, 1, x_341);
return x_342;
}
}
else
{
uint8_t x_343; 
x_343 = !lean_is_exclusive(x_338);
if (x_343 == 0)
{
lean_object* x_344; uint8_t x_345; 
x_344 = lean_ctor_get(x_338, 0);
x_345 = l_Lean_Exception_isInterrupt(x_344);
if (x_345 == 0)
{
uint8_t x_346; 
x_346 = l_Lean_Exception_isRuntime(x_344);
if (x_346 == 0)
{
lean_object* x_347; 
lean_dec(x_344);
x_347 = lean_box(0);
lean_ctor_set_tag(x_338, 0);
lean_ctor_set(x_338, 0, x_347);
return x_338;
}
else
{
return x_338;
}
}
else
{
return x_338;
}
}
else
{
lean_object* x_348; lean_object* x_349; uint8_t x_350; 
x_348 = lean_ctor_get(x_338, 0);
x_349 = lean_ctor_get(x_338, 1);
lean_inc(x_349);
lean_inc(x_348);
lean_dec(x_338);
x_350 = l_Lean_Exception_isInterrupt(x_348);
if (x_350 == 0)
{
uint8_t x_351; 
x_351 = l_Lean_Exception_isRuntime(x_348);
if (x_351 == 0)
{
lean_object* x_352; lean_object* x_353; 
lean_dec(x_348);
x_352 = lean_box(0);
x_353 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_353, 0, x_352);
lean_ctor_set(x_353, 1, x_349);
return x_353;
}
else
{
lean_object* x_354; 
x_354 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_354, 0, x_348);
lean_ctor_set(x_354, 1, x_349);
return x_354;
}
}
else
{
lean_object* x_355; 
x_355 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_355, 0, x_348);
lean_ctor_set(x_355, 1, x_349);
return x_355;
}
}
}
}
}
}
}
}
}
}
else
{
lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; 
x_356 = lean_ctor_get(x_22, 0);
x_357 = lean_ctor_get(x_22, 1);
lean_inc(x_357);
lean_inc(x_356);
lean_dec(x_22);
x_358 = l_Lean_Elab_Term_expandDbgTrace___closed__17;
lean_inc(x_356);
x_359 = l_Lean_Syntax_isOfKind(x_356, x_358);
if (x_359 == 0)
{
lean_object* x_360; lean_object* x_361; 
lean_dec(x_356);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_360 = lean_box(0);
x_361 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_361, 0, x_360);
lean_ctor_set(x_361, 1, x_357);
return x_361;
}
else
{
lean_object* x_362; lean_object* x_363; lean_object* x_364; uint8_t x_365; 
x_362 = lean_unsigned_to_nat(1u);
x_363 = l_Lean_Syntax_getArg(x_356, x_362);
x_364 = l_Lean_Elab_Term_expandDbgTrace___closed__19;
lean_inc(x_363);
x_365 = l_Lean_Syntax_isOfKind(x_363, x_364);
if (x_365 == 0)
{
lean_object* x_366; lean_object* x_367; 
lean_dec(x_363);
lean_dec(x_356);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_366 = lean_box(0);
x_367 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_367, 0, x_366);
lean_ctor_set(x_367, 1, x_357);
return x_367;
}
else
{
lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_368 = lean_unsigned_to_nat(0u);
x_369 = l_Lean_Syntax_getArg(x_363, x_368);
x_370 = l_Lean_Syntax_getArg(x_363, x_362);
x_371 = l_Lean_Syntax_matchesNull(x_370, x_368);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; 
lean_dec(x_369);
lean_dec(x_363);
lean_dec(x_356);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_372 = lean_box(0);
x_373 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_373, 0, x_372);
lean_ctor_set(x_373, 1, x_357);
return x_373;
}
else
{
lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; 
x_374 = lean_unsigned_to_nat(3u);
x_375 = l_Lean_Syntax_getArg(x_363, x_374);
lean_dec(x_363);
x_376 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10;
lean_inc(x_375);
x_377 = l_Lean_Syntax_isOfKind(x_375, x_376);
if (x_377 == 0)
{
lean_object* x_378; uint8_t x_379; 
x_378 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__3;
lean_inc(x_375);
x_379 = l_Lean_Syntax_isOfKind(x_375, x_378);
if (x_379 == 0)
{
lean_object* x_380; uint8_t x_381; 
x_380 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__5;
lean_inc(x_375);
x_381 = l_Lean_Syntax_isOfKind(x_375, x_380);
if (x_381 == 0)
{
lean_object* x_382; uint8_t x_383; 
x_382 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__7;
lean_inc(x_375);
x_383 = l_Lean_Syntax_isOfKind(x_375, x_382);
if (x_383 == 0)
{
lean_object* x_384; uint8_t x_385; 
x_384 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__9;
lean_inc(x_375);
x_385 = l_Lean_Syntax_isOfKind(x_375, x_384);
if (x_385 == 0)
{
lean_object* x_386; uint8_t x_387; 
x_386 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__11;
lean_inc(x_375);
x_387 = l_Lean_Syntax_isOfKind(x_375, x_386);
if (x_387 == 0)
{
lean_object* x_388; uint8_t x_389; 
x_388 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__13;
lean_inc(x_375);
x_389 = l_Lean_Syntax_isOfKind(x_375, x_388);
if (x_389 == 0)
{
lean_object* x_390; uint8_t x_391; 
x_390 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__15;
lean_inc(x_375);
x_391 = l_Lean_Syntax_isOfKind(x_375, x_390);
if (x_391 == 0)
{
lean_object* x_392; lean_object* x_393; 
lean_dec(x_375);
lean_dec(x_369);
lean_dec(x_356);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_392 = lean_box(0);
x_393 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_393, 0, x_392);
lean_ctor_set(x_393, 1, x_357);
return x_393;
}
else
{
lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; size_t x_400; size_t x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; uint8_t x_406; 
x_394 = l_Lean_Syntax_getArg(x_375, x_362);
x_395 = lean_unsigned_to_nat(2u);
x_396 = l_Lean_Syntax_getArg(x_375, x_395);
lean_dec(x_375);
x_397 = l_Lean_Syntax_getArgs(x_369);
lean_dec(x_369);
x_398 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52;
x_399 = lean_array_push(x_398, x_396);
x_400 = lean_array_size(x_399);
x_401 = 0;
x_402 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_403 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__6(x_402, x_400, x_401, x_399);
x_404 = lean_array_get_size(x_397);
x_405 = lean_array_get_size(x_403);
x_406 = lean_nat_dec_eq(x_404, x_405);
lean_dec(x_405);
lean_dec(x_404);
if (x_406 == 0)
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_403);
lean_dec(x_397);
lean_dec(x_394);
lean_dec(x_356);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_407 = lean_box(0);
x_408 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_408, 0, x_407);
lean_ctor_set(x_408, 1, x_357);
return x_408;
}
else
{
uint8_t x_409; 
x_409 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__7(x_356, x_402, lean_box(0), x_397, x_403, x_368);
lean_dec(x_403);
lean_dec(x_397);
lean_dec(x_356);
if (x_409 == 0)
{
lean_object* x_410; lean_object* x_411; 
lean_dec(x_394);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_410 = lean_box(0);
x_411 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_411, 0, x_410);
lean_ctor_set(x_411, 1, x_357);
return x_411;
}
else
{
lean_object* x_412; uint8_t x_413; lean_object* x_414; 
x_412 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_413 = 0;
x_414 = l_Lean_Elab_Term_resolveId_x3f(x_394, x_412, x_413, x_2, x_3, x_4, x_5, x_6, x_7, x_357);
if (lean_obj_tag(x_414) == 0)
{
lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; 
x_415 = lean_ctor_get(x_414, 0);
lean_inc(x_415);
x_416 = lean_ctor_get(x_414, 1);
lean_inc(x_416);
if (lean_is_exclusive(x_414)) {
 lean_ctor_release(x_414, 0);
 lean_ctor_release(x_414, 1);
 x_417 = x_414;
} else {
 lean_dec_ref(x_414);
 x_417 = lean_box(0);
}
if (lean_is_scalar(x_417)) {
 x_418 = lean_alloc_ctor(0, 2, 0);
} else {
 x_418 = x_417;
}
lean_ctor_set(x_418, 0, x_415);
lean_ctor_set(x_418, 1, x_416);
return x_418;
}
else
{
lean_object* x_419; lean_object* x_420; lean_object* x_421; uint8_t x_422; 
x_419 = lean_ctor_get(x_414, 0);
lean_inc(x_419);
x_420 = lean_ctor_get(x_414, 1);
lean_inc(x_420);
if (lean_is_exclusive(x_414)) {
 lean_ctor_release(x_414, 0);
 lean_ctor_release(x_414, 1);
 x_421 = x_414;
} else {
 lean_dec_ref(x_414);
 x_421 = lean_box(0);
}
x_422 = l_Lean_Exception_isInterrupt(x_419);
if (x_422 == 0)
{
uint8_t x_423; 
x_423 = l_Lean_Exception_isRuntime(x_419);
if (x_423 == 0)
{
lean_object* x_424; lean_object* x_425; 
lean_dec(x_419);
x_424 = lean_box(0);
if (lean_is_scalar(x_421)) {
 x_425 = lean_alloc_ctor(0, 2, 0);
} else {
 x_425 = x_421;
 lean_ctor_set_tag(x_425, 0);
}
lean_ctor_set(x_425, 0, x_424);
lean_ctor_set(x_425, 1, x_420);
return x_425;
}
else
{
lean_object* x_426; 
if (lean_is_scalar(x_421)) {
 x_426 = lean_alloc_ctor(1, 2, 0);
} else {
 x_426 = x_421;
}
lean_ctor_set(x_426, 0, x_419);
lean_ctor_set(x_426, 1, x_420);
return x_426;
}
}
else
{
lean_object* x_427; 
if (lean_is_scalar(x_421)) {
 x_427 = lean_alloc_ctor(1, 2, 0);
} else {
 x_427 = x_421;
}
lean_ctor_set(x_427, 0, x_419);
lean_ctor_set(x_427, 1, x_420);
return x_427;
}
}
}
}
}
}
else
{
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; size_t x_436; size_t x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; uint8_t x_442; 
x_428 = l_Lean_Syntax_getArg(x_375, x_362);
x_429 = lean_unsigned_to_nat(2u);
x_430 = l_Lean_Syntax_getArg(x_375, x_429);
x_431 = l_Lean_Syntax_getArg(x_375, x_374);
lean_dec(x_375);
x_432 = l_Lean_Syntax_getArgs(x_369);
lean_dec(x_369);
x_433 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
x_434 = lean_array_push(x_433, x_430);
x_435 = lean_array_push(x_434, x_431);
x_436 = lean_array_size(x_435);
x_437 = 0;
x_438 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_439 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__8(x_438, x_436, x_437, x_435);
x_440 = lean_array_get_size(x_432);
x_441 = lean_array_get_size(x_439);
x_442 = lean_nat_dec_eq(x_440, x_441);
lean_dec(x_441);
lean_dec(x_440);
if (x_442 == 0)
{
lean_object* x_443; lean_object* x_444; 
lean_dec(x_439);
lean_dec(x_432);
lean_dec(x_428);
lean_dec(x_356);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_443 = lean_box(0);
x_444 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_444, 0, x_443);
lean_ctor_set(x_444, 1, x_357);
return x_444;
}
else
{
uint8_t x_445; 
x_445 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__9(x_356, x_438, lean_box(0), x_432, x_439, x_368);
lean_dec(x_439);
lean_dec(x_432);
lean_dec(x_356);
if (x_445 == 0)
{
lean_object* x_446; lean_object* x_447; 
lean_dec(x_428);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_446 = lean_box(0);
x_447 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_447, 0, x_446);
lean_ctor_set(x_447, 1, x_357);
return x_447;
}
else
{
lean_object* x_448; uint8_t x_449; lean_object* x_450; 
x_448 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_449 = 0;
x_450 = l_Lean_Elab_Term_resolveId_x3f(x_428, x_448, x_449, x_2, x_3, x_4, x_5, x_6, x_7, x_357);
if (lean_obj_tag(x_450) == 0)
{
lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; 
x_451 = lean_ctor_get(x_450, 0);
lean_inc(x_451);
x_452 = lean_ctor_get(x_450, 1);
lean_inc(x_452);
if (lean_is_exclusive(x_450)) {
 lean_ctor_release(x_450, 0);
 lean_ctor_release(x_450, 1);
 x_453 = x_450;
} else {
 lean_dec_ref(x_450);
 x_453 = lean_box(0);
}
if (lean_is_scalar(x_453)) {
 x_454 = lean_alloc_ctor(0, 2, 0);
} else {
 x_454 = x_453;
}
lean_ctor_set(x_454, 0, x_451);
lean_ctor_set(x_454, 1, x_452);
return x_454;
}
else
{
lean_object* x_455; lean_object* x_456; lean_object* x_457; uint8_t x_458; 
x_455 = lean_ctor_get(x_450, 0);
lean_inc(x_455);
x_456 = lean_ctor_get(x_450, 1);
lean_inc(x_456);
if (lean_is_exclusive(x_450)) {
 lean_ctor_release(x_450, 0);
 lean_ctor_release(x_450, 1);
 x_457 = x_450;
} else {
 lean_dec_ref(x_450);
 x_457 = lean_box(0);
}
x_458 = l_Lean_Exception_isInterrupt(x_455);
if (x_458 == 0)
{
uint8_t x_459; 
x_459 = l_Lean_Exception_isRuntime(x_455);
if (x_459 == 0)
{
lean_object* x_460; lean_object* x_461; 
lean_dec(x_455);
x_460 = lean_box(0);
if (lean_is_scalar(x_457)) {
 x_461 = lean_alloc_ctor(0, 2, 0);
} else {
 x_461 = x_457;
 lean_ctor_set_tag(x_461, 0);
}
lean_ctor_set(x_461, 0, x_460);
lean_ctor_set(x_461, 1, x_456);
return x_461;
}
else
{
lean_object* x_462; 
if (lean_is_scalar(x_457)) {
 x_462 = lean_alloc_ctor(1, 2, 0);
} else {
 x_462 = x_457;
}
lean_ctor_set(x_462, 0, x_455);
lean_ctor_set(x_462, 1, x_456);
return x_462;
}
}
else
{
lean_object* x_463; 
if (lean_is_scalar(x_457)) {
 x_463 = lean_alloc_ctor(1, 2, 0);
} else {
 x_463 = x_457;
}
lean_ctor_set(x_463, 0, x_455);
lean_ctor_set(x_463, 1, x_456);
return x_463;
}
}
}
}
}
}
else
{
lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; size_t x_472; size_t x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; 
x_464 = l_Lean_Syntax_getArg(x_375, x_362);
x_465 = lean_unsigned_to_nat(2u);
x_466 = l_Lean_Syntax_getArg(x_375, x_465);
x_467 = l_Lean_Syntax_getArg(x_375, x_374);
lean_dec(x_375);
x_468 = l_Lean_Syntax_getArgs(x_369);
lean_dec(x_369);
x_469 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
x_470 = lean_array_push(x_469, x_466);
x_471 = lean_array_push(x_470, x_467);
x_472 = lean_array_size(x_471);
x_473 = 0;
x_474 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_475 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__10(x_474, x_472, x_473, x_471);
x_476 = lean_array_get_size(x_468);
x_477 = lean_array_get_size(x_475);
x_478 = lean_nat_dec_eq(x_476, x_477);
lean_dec(x_477);
lean_dec(x_476);
if (x_478 == 0)
{
lean_object* x_479; lean_object* x_480; 
lean_dec(x_475);
lean_dec(x_468);
lean_dec(x_464);
lean_dec(x_356);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_479 = lean_box(0);
x_480 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_357);
return x_480;
}
else
{
uint8_t x_481; 
x_481 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__11(x_356, x_474, lean_box(0), x_468, x_475, x_368);
lean_dec(x_475);
lean_dec(x_468);
lean_dec(x_356);
if (x_481 == 0)
{
lean_object* x_482; lean_object* x_483; 
lean_dec(x_464);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_482 = lean_box(0);
x_483 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_483, 0, x_482);
lean_ctor_set(x_483, 1, x_357);
return x_483;
}
else
{
lean_object* x_484; uint8_t x_485; lean_object* x_486; 
x_484 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_485 = 0;
x_486 = l_Lean_Elab_Term_resolveId_x3f(x_464, x_484, x_485, x_2, x_3, x_4, x_5, x_6, x_7, x_357);
if (lean_obj_tag(x_486) == 0)
{
lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; 
x_487 = lean_ctor_get(x_486, 0);
lean_inc(x_487);
x_488 = lean_ctor_get(x_486, 1);
lean_inc(x_488);
if (lean_is_exclusive(x_486)) {
 lean_ctor_release(x_486, 0);
 lean_ctor_release(x_486, 1);
 x_489 = x_486;
} else {
 lean_dec_ref(x_486);
 x_489 = lean_box(0);
}
if (lean_is_scalar(x_489)) {
 x_490 = lean_alloc_ctor(0, 2, 0);
} else {
 x_490 = x_489;
}
lean_ctor_set(x_490, 0, x_487);
lean_ctor_set(x_490, 1, x_488);
return x_490;
}
else
{
lean_object* x_491; lean_object* x_492; lean_object* x_493; uint8_t x_494; 
x_491 = lean_ctor_get(x_486, 0);
lean_inc(x_491);
x_492 = lean_ctor_get(x_486, 1);
lean_inc(x_492);
if (lean_is_exclusive(x_486)) {
 lean_ctor_release(x_486, 0);
 lean_ctor_release(x_486, 1);
 x_493 = x_486;
} else {
 lean_dec_ref(x_486);
 x_493 = lean_box(0);
}
x_494 = l_Lean_Exception_isInterrupt(x_491);
if (x_494 == 0)
{
uint8_t x_495; 
x_495 = l_Lean_Exception_isRuntime(x_491);
if (x_495 == 0)
{
lean_object* x_496; lean_object* x_497; 
lean_dec(x_491);
x_496 = lean_box(0);
if (lean_is_scalar(x_493)) {
 x_497 = lean_alloc_ctor(0, 2, 0);
} else {
 x_497 = x_493;
 lean_ctor_set_tag(x_497, 0);
}
lean_ctor_set(x_497, 0, x_496);
lean_ctor_set(x_497, 1, x_492);
return x_497;
}
else
{
lean_object* x_498; 
if (lean_is_scalar(x_493)) {
 x_498 = lean_alloc_ctor(1, 2, 0);
} else {
 x_498 = x_493;
}
lean_ctor_set(x_498, 0, x_491);
lean_ctor_set(x_498, 1, x_492);
return x_498;
}
}
else
{
lean_object* x_499; 
if (lean_is_scalar(x_493)) {
 x_499 = lean_alloc_ctor(1, 2, 0);
} else {
 x_499 = x_493;
}
lean_ctor_set(x_499, 0, x_491);
lean_ctor_set(x_499, 1, x_492);
return x_499;
}
}
}
}
}
}
else
{
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; size_t x_508; size_t x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; uint8_t x_514; 
x_500 = l_Lean_Syntax_getArg(x_375, x_362);
x_501 = lean_unsigned_to_nat(2u);
x_502 = l_Lean_Syntax_getArg(x_375, x_501);
x_503 = l_Lean_Syntax_getArg(x_375, x_374);
lean_dec(x_375);
x_504 = l_Lean_Syntax_getArgs(x_369);
lean_dec(x_369);
x_505 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
x_506 = lean_array_push(x_505, x_502);
x_507 = lean_array_push(x_506, x_503);
x_508 = lean_array_size(x_507);
x_509 = 0;
x_510 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_511 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__12(x_510, x_508, x_509, x_507);
x_512 = lean_array_get_size(x_504);
x_513 = lean_array_get_size(x_511);
x_514 = lean_nat_dec_eq(x_512, x_513);
lean_dec(x_513);
lean_dec(x_512);
if (x_514 == 0)
{
lean_object* x_515; lean_object* x_516; 
lean_dec(x_511);
lean_dec(x_504);
lean_dec(x_500);
lean_dec(x_356);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_515 = lean_box(0);
x_516 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_516, 0, x_515);
lean_ctor_set(x_516, 1, x_357);
return x_516;
}
else
{
uint8_t x_517; 
x_517 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__13(x_356, x_510, lean_box(0), x_504, x_511, x_368);
lean_dec(x_511);
lean_dec(x_504);
lean_dec(x_356);
if (x_517 == 0)
{
lean_object* x_518; lean_object* x_519; 
lean_dec(x_500);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_518 = lean_box(0);
x_519 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_519, 0, x_518);
lean_ctor_set(x_519, 1, x_357);
return x_519;
}
else
{
lean_object* x_520; uint8_t x_521; lean_object* x_522; 
x_520 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_521 = 0;
x_522 = l_Lean_Elab_Term_resolveId_x3f(x_500, x_520, x_521, x_2, x_3, x_4, x_5, x_6, x_7, x_357);
if (lean_obj_tag(x_522) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; 
x_523 = lean_ctor_get(x_522, 0);
lean_inc(x_523);
x_524 = lean_ctor_get(x_522, 1);
lean_inc(x_524);
if (lean_is_exclusive(x_522)) {
 lean_ctor_release(x_522, 0);
 lean_ctor_release(x_522, 1);
 x_525 = x_522;
} else {
 lean_dec_ref(x_522);
 x_525 = lean_box(0);
}
if (lean_is_scalar(x_525)) {
 x_526 = lean_alloc_ctor(0, 2, 0);
} else {
 x_526 = x_525;
}
lean_ctor_set(x_526, 0, x_523);
lean_ctor_set(x_526, 1, x_524);
return x_526;
}
else
{
lean_object* x_527; lean_object* x_528; lean_object* x_529; uint8_t x_530; 
x_527 = lean_ctor_get(x_522, 0);
lean_inc(x_527);
x_528 = lean_ctor_get(x_522, 1);
lean_inc(x_528);
if (lean_is_exclusive(x_522)) {
 lean_ctor_release(x_522, 0);
 lean_ctor_release(x_522, 1);
 x_529 = x_522;
} else {
 lean_dec_ref(x_522);
 x_529 = lean_box(0);
}
x_530 = l_Lean_Exception_isInterrupt(x_527);
if (x_530 == 0)
{
uint8_t x_531; 
x_531 = l_Lean_Exception_isRuntime(x_527);
if (x_531 == 0)
{
lean_object* x_532; lean_object* x_533; 
lean_dec(x_527);
x_532 = lean_box(0);
if (lean_is_scalar(x_529)) {
 x_533 = lean_alloc_ctor(0, 2, 0);
} else {
 x_533 = x_529;
 lean_ctor_set_tag(x_533, 0);
}
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_528);
return x_533;
}
else
{
lean_object* x_534; 
if (lean_is_scalar(x_529)) {
 x_534 = lean_alloc_ctor(1, 2, 0);
} else {
 x_534 = x_529;
}
lean_ctor_set(x_534, 0, x_527);
lean_ctor_set(x_534, 1, x_528);
return x_534;
}
}
else
{
lean_object* x_535; 
if (lean_is_scalar(x_529)) {
 x_535 = lean_alloc_ctor(1, 2, 0);
} else {
 x_535 = x_529;
}
lean_ctor_set(x_535, 0, x_527);
lean_ctor_set(x_535, 1, x_528);
return x_535;
}
}
}
}
}
}
else
{
lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; size_t x_544; size_t x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; uint8_t x_550; 
x_536 = l_Lean_Syntax_getArg(x_375, x_362);
x_537 = lean_unsigned_to_nat(2u);
x_538 = l_Lean_Syntax_getArg(x_375, x_537);
x_539 = l_Lean_Syntax_getArg(x_375, x_374);
lean_dec(x_375);
x_540 = l_Lean_Syntax_getArgs(x_369);
lean_dec(x_369);
x_541 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
x_542 = lean_array_push(x_541, x_538);
x_543 = lean_array_push(x_542, x_539);
x_544 = lean_array_size(x_543);
x_545 = 0;
x_546 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_547 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__14(x_546, x_544, x_545, x_543);
x_548 = lean_array_get_size(x_540);
x_549 = lean_array_get_size(x_547);
x_550 = lean_nat_dec_eq(x_548, x_549);
lean_dec(x_549);
lean_dec(x_548);
if (x_550 == 0)
{
lean_object* x_551; lean_object* x_552; 
lean_dec(x_547);
lean_dec(x_540);
lean_dec(x_536);
lean_dec(x_356);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_551 = lean_box(0);
x_552 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_552, 0, x_551);
lean_ctor_set(x_552, 1, x_357);
return x_552;
}
else
{
uint8_t x_553; 
x_553 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__15(x_356, x_546, lean_box(0), x_540, x_547, x_368);
lean_dec(x_547);
lean_dec(x_540);
lean_dec(x_356);
if (x_553 == 0)
{
lean_object* x_554; lean_object* x_555; 
lean_dec(x_536);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_554 = lean_box(0);
x_555 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_555, 0, x_554);
lean_ctor_set(x_555, 1, x_357);
return x_555;
}
else
{
lean_object* x_556; uint8_t x_557; lean_object* x_558; 
x_556 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_557 = 0;
x_558 = l_Lean_Elab_Term_resolveId_x3f(x_536, x_556, x_557, x_2, x_3, x_4, x_5, x_6, x_7, x_357);
if (lean_obj_tag(x_558) == 0)
{
lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_559 = lean_ctor_get(x_558, 0);
lean_inc(x_559);
x_560 = lean_ctor_get(x_558, 1);
lean_inc(x_560);
if (lean_is_exclusive(x_558)) {
 lean_ctor_release(x_558, 0);
 lean_ctor_release(x_558, 1);
 x_561 = x_558;
} else {
 lean_dec_ref(x_558);
 x_561 = lean_box(0);
}
if (lean_is_scalar(x_561)) {
 x_562 = lean_alloc_ctor(0, 2, 0);
} else {
 x_562 = x_561;
}
lean_ctor_set(x_562, 0, x_559);
lean_ctor_set(x_562, 1, x_560);
return x_562;
}
else
{
lean_object* x_563; lean_object* x_564; lean_object* x_565; uint8_t x_566; 
x_563 = lean_ctor_get(x_558, 0);
lean_inc(x_563);
x_564 = lean_ctor_get(x_558, 1);
lean_inc(x_564);
if (lean_is_exclusive(x_558)) {
 lean_ctor_release(x_558, 0);
 lean_ctor_release(x_558, 1);
 x_565 = x_558;
} else {
 lean_dec_ref(x_558);
 x_565 = lean_box(0);
}
x_566 = l_Lean_Exception_isInterrupt(x_563);
if (x_566 == 0)
{
uint8_t x_567; 
x_567 = l_Lean_Exception_isRuntime(x_563);
if (x_567 == 0)
{
lean_object* x_568; lean_object* x_569; 
lean_dec(x_563);
x_568 = lean_box(0);
if (lean_is_scalar(x_565)) {
 x_569 = lean_alloc_ctor(0, 2, 0);
} else {
 x_569 = x_565;
 lean_ctor_set_tag(x_569, 0);
}
lean_ctor_set(x_569, 0, x_568);
lean_ctor_set(x_569, 1, x_564);
return x_569;
}
else
{
lean_object* x_570; 
if (lean_is_scalar(x_565)) {
 x_570 = lean_alloc_ctor(1, 2, 0);
} else {
 x_570 = x_565;
}
lean_ctor_set(x_570, 0, x_563);
lean_ctor_set(x_570, 1, x_564);
return x_570;
}
}
else
{
lean_object* x_571; 
if (lean_is_scalar(x_565)) {
 x_571 = lean_alloc_ctor(1, 2, 0);
} else {
 x_571 = x_565;
}
lean_ctor_set(x_571, 0, x_563);
lean_ctor_set(x_571, 1, x_564);
return x_571;
}
}
}
}
}
}
else
{
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; lean_object* x_579; size_t x_580; size_t x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; uint8_t x_586; 
x_572 = l_Lean_Syntax_getArg(x_375, x_362);
x_573 = lean_unsigned_to_nat(2u);
x_574 = l_Lean_Syntax_getArg(x_375, x_573);
x_575 = l_Lean_Syntax_getArg(x_375, x_374);
lean_dec(x_375);
x_576 = l_Lean_Syntax_getArgs(x_369);
lean_dec(x_369);
x_577 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
x_578 = lean_array_push(x_577, x_574);
x_579 = lean_array_push(x_578, x_575);
x_580 = lean_array_size(x_579);
x_581 = 0;
x_582 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_583 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__16(x_582, x_580, x_581, x_579);
x_584 = lean_array_get_size(x_576);
x_585 = lean_array_get_size(x_583);
x_586 = lean_nat_dec_eq(x_584, x_585);
lean_dec(x_585);
lean_dec(x_584);
if (x_586 == 0)
{
lean_object* x_587; lean_object* x_588; 
lean_dec(x_583);
lean_dec(x_576);
lean_dec(x_572);
lean_dec(x_356);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_587 = lean_box(0);
x_588 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_588, 0, x_587);
lean_ctor_set(x_588, 1, x_357);
return x_588;
}
else
{
uint8_t x_589; 
x_589 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__17(x_356, x_582, lean_box(0), x_576, x_583, x_368);
lean_dec(x_583);
lean_dec(x_576);
lean_dec(x_356);
if (x_589 == 0)
{
lean_object* x_590; lean_object* x_591; 
lean_dec(x_572);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_590 = lean_box(0);
x_591 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_591, 0, x_590);
lean_ctor_set(x_591, 1, x_357);
return x_591;
}
else
{
lean_object* x_592; uint8_t x_593; lean_object* x_594; 
x_592 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_593 = 0;
x_594 = l_Lean_Elab_Term_resolveId_x3f(x_572, x_592, x_593, x_2, x_3, x_4, x_5, x_6, x_7, x_357);
if (lean_obj_tag(x_594) == 0)
{
lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; 
x_595 = lean_ctor_get(x_594, 0);
lean_inc(x_595);
x_596 = lean_ctor_get(x_594, 1);
lean_inc(x_596);
if (lean_is_exclusive(x_594)) {
 lean_ctor_release(x_594, 0);
 lean_ctor_release(x_594, 1);
 x_597 = x_594;
} else {
 lean_dec_ref(x_594);
 x_597 = lean_box(0);
}
if (lean_is_scalar(x_597)) {
 x_598 = lean_alloc_ctor(0, 2, 0);
} else {
 x_598 = x_597;
}
lean_ctor_set(x_598, 0, x_595);
lean_ctor_set(x_598, 1, x_596);
return x_598;
}
else
{
lean_object* x_599; lean_object* x_600; lean_object* x_601; uint8_t x_602; 
x_599 = lean_ctor_get(x_594, 0);
lean_inc(x_599);
x_600 = lean_ctor_get(x_594, 1);
lean_inc(x_600);
if (lean_is_exclusive(x_594)) {
 lean_ctor_release(x_594, 0);
 lean_ctor_release(x_594, 1);
 x_601 = x_594;
} else {
 lean_dec_ref(x_594);
 x_601 = lean_box(0);
}
x_602 = l_Lean_Exception_isInterrupt(x_599);
if (x_602 == 0)
{
uint8_t x_603; 
x_603 = l_Lean_Exception_isRuntime(x_599);
if (x_603 == 0)
{
lean_object* x_604; lean_object* x_605; 
lean_dec(x_599);
x_604 = lean_box(0);
if (lean_is_scalar(x_601)) {
 x_605 = lean_alloc_ctor(0, 2, 0);
} else {
 x_605 = x_601;
 lean_ctor_set_tag(x_605, 0);
}
lean_ctor_set(x_605, 0, x_604);
lean_ctor_set(x_605, 1, x_600);
return x_605;
}
else
{
lean_object* x_606; 
if (lean_is_scalar(x_601)) {
 x_606 = lean_alloc_ctor(1, 2, 0);
} else {
 x_606 = x_601;
}
lean_ctor_set(x_606, 0, x_599);
lean_ctor_set(x_606, 1, x_600);
return x_606;
}
}
else
{
lean_object* x_607; 
if (lean_is_scalar(x_601)) {
 x_607 = lean_alloc_ctor(1, 2, 0);
} else {
 x_607 = x_601;
}
lean_ctor_set(x_607, 0, x_599);
lean_ctor_set(x_607, 1, x_600);
return x_607;
}
}
}
}
}
}
else
{
lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; size_t x_616; size_t x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; uint8_t x_622; 
x_608 = l_Lean_Syntax_getArg(x_375, x_362);
x_609 = lean_unsigned_to_nat(2u);
x_610 = l_Lean_Syntax_getArg(x_375, x_609);
x_611 = l_Lean_Syntax_getArg(x_375, x_374);
lean_dec(x_375);
x_612 = l_Lean_Syntax_getArgs(x_369);
lean_dec(x_369);
x_613 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
x_614 = lean_array_push(x_613, x_610);
x_615 = lean_array_push(x_614, x_611);
x_616 = lean_array_size(x_615);
x_617 = 0;
x_618 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_619 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__18(x_618, x_616, x_617, x_615);
x_620 = lean_array_get_size(x_612);
x_621 = lean_array_get_size(x_619);
x_622 = lean_nat_dec_eq(x_620, x_621);
lean_dec(x_621);
lean_dec(x_620);
if (x_622 == 0)
{
lean_object* x_623; lean_object* x_624; 
lean_dec(x_619);
lean_dec(x_612);
lean_dec(x_608);
lean_dec(x_356);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_623 = lean_box(0);
x_624 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_624, 0, x_623);
lean_ctor_set(x_624, 1, x_357);
return x_624;
}
else
{
uint8_t x_625; 
x_625 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__19(x_356, x_618, lean_box(0), x_612, x_619, x_368);
lean_dec(x_619);
lean_dec(x_612);
lean_dec(x_356);
if (x_625 == 0)
{
lean_object* x_626; lean_object* x_627; 
lean_dec(x_608);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_626 = lean_box(0);
x_627 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_627, 0, x_626);
lean_ctor_set(x_627, 1, x_357);
return x_627;
}
else
{
lean_object* x_628; uint8_t x_629; lean_object* x_630; 
x_628 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_629 = 0;
x_630 = l_Lean_Elab_Term_resolveId_x3f(x_608, x_628, x_629, x_2, x_3, x_4, x_5, x_6, x_7, x_357);
if (lean_obj_tag(x_630) == 0)
{
lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; 
x_631 = lean_ctor_get(x_630, 0);
lean_inc(x_631);
x_632 = lean_ctor_get(x_630, 1);
lean_inc(x_632);
if (lean_is_exclusive(x_630)) {
 lean_ctor_release(x_630, 0);
 lean_ctor_release(x_630, 1);
 x_633 = x_630;
} else {
 lean_dec_ref(x_630);
 x_633 = lean_box(0);
}
if (lean_is_scalar(x_633)) {
 x_634 = lean_alloc_ctor(0, 2, 0);
} else {
 x_634 = x_633;
}
lean_ctor_set(x_634, 0, x_631);
lean_ctor_set(x_634, 1, x_632);
return x_634;
}
else
{
lean_object* x_635; lean_object* x_636; lean_object* x_637; uint8_t x_638; 
x_635 = lean_ctor_get(x_630, 0);
lean_inc(x_635);
x_636 = lean_ctor_get(x_630, 1);
lean_inc(x_636);
if (lean_is_exclusive(x_630)) {
 lean_ctor_release(x_630, 0);
 lean_ctor_release(x_630, 1);
 x_637 = x_630;
} else {
 lean_dec_ref(x_630);
 x_637 = lean_box(0);
}
x_638 = l_Lean_Exception_isInterrupt(x_635);
if (x_638 == 0)
{
uint8_t x_639; 
x_639 = l_Lean_Exception_isRuntime(x_635);
if (x_639 == 0)
{
lean_object* x_640; lean_object* x_641; 
lean_dec(x_635);
x_640 = lean_box(0);
if (lean_is_scalar(x_637)) {
 x_641 = lean_alloc_ctor(0, 2, 0);
} else {
 x_641 = x_637;
 lean_ctor_set_tag(x_641, 0);
}
lean_ctor_set(x_641, 0, x_640);
lean_ctor_set(x_641, 1, x_636);
return x_641;
}
else
{
lean_object* x_642; 
if (lean_is_scalar(x_637)) {
 x_642 = lean_alloc_ctor(1, 2, 0);
} else {
 x_642 = x_637;
}
lean_ctor_set(x_642, 0, x_635);
lean_ctor_set(x_642, 1, x_636);
return x_642;
}
}
else
{
lean_object* x_643; 
if (lean_is_scalar(x_637)) {
 x_643 = lean_alloc_ctor(1, 2, 0);
} else {
 x_643 = x_637;
}
lean_ctor_set(x_643, 0, x_635);
lean_ctor_set(x_643, 1, x_636);
return x_643;
}
}
}
}
}
}
else
{
lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; size_t x_648; size_t x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; uint8_t x_654; 
x_644 = l_Lean_Syntax_getArg(x_375, x_368);
x_645 = l_Lean_Syntax_getArg(x_375, x_362);
lean_dec(x_375);
x_646 = l_Lean_Syntax_getArgs(x_645);
lean_dec(x_645);
x_647 = l_Lean_Syntax_getArgs(x_369);
lean_dec(x_369);
x_648 = lean_array_size(x_646);
x_649 = 0;
x_650 = l_Lean_Elab_Term_expandCDot_x3f___closed__6;
x_651 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__20(x_650, x_648, x_649, x_646);
x_652 = lean_array_get_size(x_647);
x_653 = lean_array_get_size(x_651);
x_654 = lean_nat_dec_eq(x_652, x_653);
lean_dec(x_653);
lean_dec(x_652);
if (x_654 == 0)
{
lean_object* x_655; lean_object* x_656; 
lean_dec(x_651);
lean_dec(x_647);
lean_dec(x_644);
lean_dec(x_356);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_655 = lean_box(0);
x_656 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_656, 0, x_655);
lean_ctor_set(x_656, 1, x_357);
return x_656;
}
else
{
uint8_t x_657; 
x_657 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__21(x_356, x_650, lean_box(0), x_647, x_651, x_368);
lean_dec(x_651);
lean_dec(x_647);
lean_dec(x_356);
if (x_657 == 0)
{
lean_object* x_658; lean_object* x_659; 
lean_dec(x_644);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_658 = lean_box(0);
x_659 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_659, 0, x_658);
lean_ctor_set(x_659, 1, x_357);
return x_659;
}
else
{
lean_object* x_660; uint8_t x_661; lean_object* x_662; 
x_660 = l_Lean_Elab_Term_expandCDot_x3f___closed__1;
x_661 = 0;
x_662 = l_Lean_Elab_Term_resolveId_x3f(x_644, x_660, x_661, x_2, x_3, x_4, x_5, x_6, x_7, x_357);
if (lean_obj_tag(x_662) == 0)
{
lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; 
x_663 = lean_ctor_get(x_662, 0);
lean_inc(x_663);
x_664 = lean_ctor_get(x_662, 1);
lean_inc(x_664);
if (lean_is_exclusive(x_662)) {
 lean_ctor_release(x_662, 0);
 lean_ctor_release(x_662, 1);
 x_665 = x_662;
} else {
 lean_dec_ref(x_662);
 x_665 = lean_box(0);
}
if (lean_is_scalar(x_665)) {
 x_666 = lean_alloc_ctor(0, 2, 0);
} else {
 x_666 = x_665;
}
lean_ctor_set(x_666, 0, x_663);
lean_ctor_set(x_666, 1, x_664);
return x_666;
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; uint8_t x_670; 
x_667 = lean_ctor_get(x_662, 0);
lean_inc(x_667);
x_668 = lean_ctor_get(x_662, 1);
lean_inc(x_668);
if (lean_is_exclusive(x_662)) {
 lean_ctor_release(x_662, 0);
 lean_ctor_release(x_662, 1);
 x_669 = x_662;
} else {
 lean_dec_ref(x_662);
 x_669 = lean_box(0);
}
x_670 = l_Lean_Exception_isInterrupt(x_667);
if (x_670 == 0)
{
uint8_t x_671; 
x_671 = l_Lean_Exception_isRuntime(x_667);
if (x_671 == 0)
{
lean_object* x_672; lean_object* x_673; 
lean_dec(x_667);
x_672 = lean_box(0);
if (lean_is_scalar(x_669)) {
 x_673 = lean_alloc_ctor(0, 2, 0);
} else {
 x_673 = x_669;
 lean_ctor_set_tag(x_673, 0);
}
lean_ctor_set(x_673, 0, x_672);
lean_ctor_set(x_673, 1, x_668);
return x_673;
}
else
{
lean_object* x_674; 
if (lean_is_scalar(x_669)) {
 x_674 = lean_alloc_ctor(1, 2, 0);
} else {
 x_674 = x_669;
}
lean_ctor_set(x_674, 0, x_667);
lean_ctor_set(x_674, 1, x_668);
return x_674;
}
}
else
{
lean_object* x_675; 
if (lean_is_scalar(x_669)) {
 x_675 = lean_alloc_ctor(1, 2, 0);
} else {
 x_675 = x_669;
}
lean_ctor_set(x_675, 0, x_667);
lean_ctor_set(x_675, 1, x_668);
return x_675;
}
}
}
}
}
}
}
}
}
}
else
{
uint8_t x_676; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_676 = !lean_is_exclusive(x_22);
if (x_676 == 0)
{
return x_22;
}
else
{
lean_object* x_677; lean_object* x_678; lean_object* x_679; 
x_677 = lean_ctor_get(x_22, 0);
x_678 = lean_ctor_get(x_22, 1);
lean_inc(x_678);
lean_inc(x_677);
lean_dec(x_22);
x_679 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_679, 0, x_677);
lean_ctor_set(x_679, 1, x_678);
return x_679;
}
}
}
}
else
{
uint8_t x_680; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_680 = !lean_is_exclusive(x_10);
if (x_680 == 0)
{
return x_10;
}
else
{
lean_object* x_681; lean_object* x_682; lean_object* x_683; 
x_681 = lean_ctor_get(x_10, 0);
x_682 = lean_ctor_get(x_10, 1);
lean_inc(x_682);
lean_inc(x_681);
lean_dec(x_10);
x_683 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_683, 0, x_681);
lean_ctor_set(x_683, 1, x_682);
return x_683;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___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) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_throwError___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_throwErrorAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___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) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___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) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5(x_1, x_2, x_3, x_4, x_5, x_6);
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_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__1(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__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_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__2(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___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) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___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) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__6(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___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) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__7(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__8(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___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) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__9(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__10(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___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) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__11(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__12(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__13(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__14(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__15(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__16(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__17(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__18___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__18(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__19(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l_Array_mapMUnsafe_map___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__20(x_1, x_5, x_6, x_4);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = l_Array_isEqvAux___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__21(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___lambda__1___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___lambda__1(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandParen(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_2);
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_unsigned_to_nat(1u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
lean_dec(x_1);
lean_inc(x_9);
x_10 = l_Lean_Elab_Term_expandCDot_x3f(x_9, x_2, x_3);
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
if (lean_obj_tag(x_11) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_10);
if (x_12 == 0)
{
lean_object* x_13; 
x_13 = lean_ctor_get(x_10, 0);
lean_dec(x_13);
lean_ctor_set(x_10, 0, x_9);
return x_10;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_10, 1);
lean_inc(x_14);
lean_dec(x_10);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_9);
lean_ctor_set(x_15, 1, x_14);
return x_15;
}
}
else
{
uint8_t x_16; 
lean_dec(x_9);
x_16 = !lean_is_exclusive(x_10);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_ctor_get(x_10, 0);
lean_dec(x_17);
x_18 = lean_ctor_get(x_11, 0);
lean_inc(x_18);
lean_dec(x_11);
lean_ctor_set(x_10, 0, x_18);
return x_10;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_10, 1);
lean_inc(x_19);
lean_dec(x_10);
x_20 = lean_ctor_get(x_11, 0);
lean_inc(x_20);
lean_dec(x_11);
x_21 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_19);
return x_21;
}
}
}
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandParen", 11, 11);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandParen), 3, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandParen__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3;
x_3 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22;
x_4 = l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(297u);
x_2 = lean_unsigned_to_nat(40u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(299u);
x_2 = lean_unsigned_to_nat(37u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__3() {
_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_Term_expandParen_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(40u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(37u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(297u);
x_2 = lean_unsigned_to_nat(44u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(297u);
x_2 = lean_unsigned_to_nat(55u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(44u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(55u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandTuple___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Unit.unit", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandTuple___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_expandTuple___closed__1;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandTuple___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Unit", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandTuple___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unit", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandTuple___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_expandTuple___closed__3;
x_2 = l_Lean_Elab_Term_expandTuple___closed__4;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandTuple___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandTuple___closed__5;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandTuple___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_expandTuple___closed__5;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandTuple___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_expandTuple___closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_expandTuple___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_expandTuple___closed__6;
x_2 = l_Lean_Elab_Term_expandTuple___closed__8;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandTuple(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_Elab_Term_hasCDot___closed__4;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_2);
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_8 = lean_unsigned_to_nat(1u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
lean_dec(x_1);
x_10 = lean_unsigned_to_nat(0u);
lean_inc(x_9);
x_11 = l_Lean_Syntax_matchesNull(x_9, x_10);
if (x_11 == 0)
{
lean_object* x_12; uint8_t x_13; 
x_12 = lean_unsigned_to_nat(3u);
lean_inc(x_9);
x_13 = l_Lean_Syntax_matchesNull(x_9, x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_9);
lean_dec(x_2);
x_14 = lean_box(1);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_3);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_16 = l_Lean_Syntax_getArg(x_9, x_10);
x_17 = lean_unsigned_to_nat(2u);
x_18 = l_Lean_Syntax_getArg(x_9, x_17);
lean_dec(x_9);
x_19 = l_Lean_Syntax_getArgs(x_18);
lean_dec(x_18);
x_20 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52;
x_21 = lean_array_push(x_20, x_16);
x_22 = l_Lean_Syntax_TSepArray_getElems___rarg(x_19);
lean_dec(x_19);
x_23 = l_Array_append___rarg(x_21, x_22);
lean_dec(x_22);
lean_inc(x_2);
x_24 = l_Lean_Elab_Term_mkPairs(x_23, x_2, x_3);
lean_dec(x_23);
x_25 = lean_ctor_get(x_24, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_24, 1);
lean_inc(x_26);
lean_dec(x_24);
lean_inc(x_25);
x_27 = l_Lean_Elab_Term_expandCDot_x3f(x_25, x_2, x_26);
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
if (lean_obj_tag(x_28) == 0)
{
uint8_t x_29; 
x_29 = !lean_is_exclusive(x_27);
if (x_29 == 0)
{
lean_object* x_30; 
x_30 = lean_ctor_get(x_27, 0);
lean_dec(x_30);
lean_ctor_set(x_27, 0, x_25);
return x_27;
}
else
{
lean_object* x_31; lean_object* x_32; 
x_31 = lean_ctor_get(x_27, 1);
lean_inc(x_31);
lean_dec(x_27);
x_32 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_32, 0, x_25);
lean_ctor_set(x_32, 1, x_31);
return x_32;
}
}
else
{
uint8_t x_33; 
lean_dec(x_25);
x_33 = !lean_is_exclusive(x_27);
if (x_33 == 0)
{
lean_object* x_34; lean_object* x_35; 
x_34 = lean_ctor_get(x_27, 0);
lean_dec(x_34);
x_35 = lean_ctor_get(x_28, 0);
lean_inc(x_35);
lean_dec(x_28);
lean_ctor_set(x_27, 0, x_35);
return x_27;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_36 = lean_ctor_get(x_27, 1);
lean_inc(x_36);
lean_dec(x_27);
x_37 = lean_ctor_get(x_28, 0);
lean_inc(x_37);
lean_dec(x_28);
x_38 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_38, 0, x_37);
lean_ctor_set(x_38, 1, x_36);
return x_38;
}
}
}
}
else
{
lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
lean_dec(x_9);
x_39 = lean_ctor_get(x_2, 5);
lean_inc(x_39);
x_40 = 0;
x_41 = l_Lean_SourceInfo_fromRef(x_39, x_40);
lean_dec(x_39);
x_42 = lean_ctor_get(x_2, 2);
lean_inc(x_42);
x_43 = lean_ctor_get(x_2, 1);
lean_inc(x_43);
lean_dec(x_2);
x_44 = l_Lean_Elab_Term_expandTuple___closed__5;
x_45 = l_Lean_addMacroScope(x_43, x_44, x_42);
x_46 = l_Lean_Elab_Term_expandTuple___closed__2;
x_47 = l_Lean_Elab_Term_expandTuple___closed__9;
x_48 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_48, 0, x_41);
lean_ctor_set(x_48, 1, x_46);
lean_ctor_set(x_48, 2, x_45);
lean_ctor_set(x_48, 3, x_47);
x_49 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_49, 0, x_48);
lean_ctor_set(x_49, 1, x_3);
return x_49;
}
}
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandTuple", 11, 11);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandTuple), 3, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3;
x_3 = l_Lean_Elab_Term_hasCDot___closed__4;
x_4 = l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(301u);
x_2 = lean_unsigned_to_nat(40u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(306u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__3() {
_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_Term_expandTuple_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(40u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(301u);
x_2 = lean_unsigned_to_nat(44u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(301u);
x_2 = lean_unsigned_to_nat(55u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(44u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(55u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_expandTypeAscription(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_Elab_Term_hasCDot___closed__2;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_2);
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_8 = lean_unsigned_to_nat(1u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(3u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
lean_dec(x_1);
x_12 = l_Lean_Syntax_getOptional_x3f(x_11);
lean_dec(x_11);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_70; 
x_70 = lean_box(0);
x_13 = x_70;
goto block_69;
}
else
{
uint8_t x_71; 
x_71 = !lean_is_exclusive(x_12);
if (x_71 == 0)
{
x_13 = x_12;
goto block_69;
}
else
{
lean_object* x_72; lean_object* x_73; 
x_72 = lean_ctor_get(x_12, 0);
lean_inc(x_72);
lean_dec(x_12);
x_73 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_73, 0, x_72);
x_13 = x_73;
goto block_69;
}
}
block_69:
{
lean_object* x_14; lean_object* x_15; 
lean_inc(x_2);
x_14 = l_Lean_Elab_Term_expandCDot_x3f(x_9, x_2, x_3);
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
if (lean_obj_tag(x_15) == 0)
{
uint8_t x_16; 
lean_dec(x_13);
lean_dec(x_2);
x_16 = !lean_is_exclusive(x_14);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_ctor_get(x_14, 0);
lean_dec(x_17);
x_18 = lean_box(1);
lean_ctor_set_tag(x_14, 1);
lean_ctor_set(x_14, 0, x_18);
return x_14;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_14, 1);
lean_inc(x_19);
lean_dec(x_14);
x_20 = lean_box(1);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_19);
return x_21;
}
}
else
{
uint8_t x_22; 
x_22 = !lean_is_exclusive(x_14);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_23 = lean_ctor_get(x_14, 0);
lean_dec(x_23);
x_24 = lean_ctor_get(x_15, 0);
lean_inc(x_24);
lean_dec(x_15);
x_25 = lean_ctor_get(x_2, 5);
lean_inc(x_25);
lean_dec(x_2);
x_26 = 0;
x_27 = l_Lean_SourceInfo_fromRef(x_25, x_26);
lean_dec(x_25);
x_28 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23;
lean_inc(x_27);
x_29 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
x_30 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_27);
x_31 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_31, 0, x_27);
lean_ctor_set(x_31, 1, x_30);
x_32 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32;
lean_inc(x_27);
x_33 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_33, 0, x_27);
lean_ctor_set(x_33, 1, x_32);
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_34 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
x_35 = l_Lean_Elab_Term_expandHave___lambda__1___closed__1;
lean_inc(x_27);
x_36 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_36, 0, x_27);
lean_ctor_set(x_36, 1, x_34);
lean_ctor_set(x_36, 2, x_35);
x_37 = l_Lean_Syntax_node5(x_27, x_4, x_29, x_24, x_31, x_36, x_33);
lean_ctor_set(x_14, 0, x_37);
return x_14;
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_38 = lean_ctor_get(x_13, 0);
lean_inc(x_38);
lean_dec(x_13);
x_39 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
x_40 = lean_array_push(x_39, x_38);
x_41 = l_Array_append___rarg(x_39, x_40);
lean_dec(x_40);
x_42 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_27);
x_43 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_43, 0, x_27);
lean_ctor_set(x_43, 1, x_42);
lean_ctor_set(x_43, 2, x_41);
x_44 = l_Lean_Syntax_node5(x_27, x_4, x_29, x_24, x_31, x_43, x_33);
lean_ctor_set(x_14, 0, x_44);
return x_14;
}
}
else
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
x_45 = lean_ctor_get(x_14, 1);
lean_inc(x_45);
lean_dec(x_14);
x_46 = lean_ctor_get(x_15, 0);
lean_inc(x_46);
lean_dec(x_15);
x_47 = lean_ctor_get(x_2, 5);
lean_inc(x_47);
lean_dec(x_2);
x_48 = 0;
x_49 = l_Lean_SourceInfo_fromRef(x_47, x_48);
lean_dec(x_47);
x_50 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23;
lean_inc(x_49);
x_51 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_51, 0, x_49);
lean_ctor_set(x_51, 1, x_50);
x_52 = l_Lean_Elab_Term_elabShow___closed__11;
lean_inc(x_49);
x_53 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_53, 0, x_49);
lean_ctor_set(x_53, 1, x_52);
x_54 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32;
lean_inc(x_49);
x_55 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_55, 0, x_49);
lean_ctor_set(x_55, 1, x_54);
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_56 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
x_57 = l_Lean_Elab_Term_expandHave___lambda__1___closed__1;
lean_inc(x_49);
x_58 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_58, 0, x_49);
lean_ctor_set(x_58, 1, x_56);
lean_ctor_set(x_58, 2, x_57);
x_59 = l_Lean_Syntax_node5(x_49, x_4, x_51, x_46, x_53, x_58, x_55);
x_60 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_45);
return x_60;
}
else
{
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; 
x_61 = lean_ctor_get(x_13, 0);
lean_inc(x_61);
lean_dec(x_13);
x_62 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4;
x_63 = lean_array_push(x_62, x_61);
x_64 = l_Array_append___rarg(x_62, x_63);
lean_dec(x_63);
x_65 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_49);
x_66 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_66, 0, x_49);
lean_ctor_set(x_66, 1, x_65);
lean_ctor_set(x_66, 2, x_64);
x_67 = l_Lean_Syntax_node5(x_49, x_4, x_51, x_46, x_53, x_66, x_55);
x_68 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_68, 0, x_67);
lean_ctor_set(x_68, 1, x_45);
return x_68;
}
}
}
}
}
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("expandTypeAscription", 20, 20);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandTypeAscription), 3, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3;
x_3 = l_Lean_Elab_Term_hasCDot___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(308u);
x_2 = lean_unsigned_to_nat(49u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(313u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__3() {
_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_Term_expandTypeAscription_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(49u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(308u);
x_2 = lean_unsigned_to_nat(53u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(308u);
x_2 = lean_unsigned_to_nat(73u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(53u);
x_3 = l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(73u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTypeAscription(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; uint8_t x_11; 
x_10 = l_Lean_Elab_Term_hasCDot___closed__2;
lean_inc(x_1);
x_11 = l_Lean_Syntax_isOfKind(x_1, x_10);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_13 = lean_unsigned_to_nat(1u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = lean_unsigned_to_nat(3u);
x_16 = l_Lean_Syntax_getArg(x_1, x_15);
lean_dec(x_1);
lean_inc(x_16);
x_17 = l_Lean_Syntax_matchesNull(x_16, x_13);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19; 
x_18 = lean_unsigned_to_nat(0u);
x_19 = l_Lean_Syntax_matchesNull(x_16, x_18);
if (x_19 == 0)
{
lean_object* x_20; 
lean_dec(x_14);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_20 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_20;
}
else
{
lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; 
x_21 = lean_box(0);
x_22 = 1;
x_23 = lean_box(x_22);
x_24 = lean_box(x_22);
x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
lean_closure_set(x_25, 0, x_14);
lean_closure_set(x_25, 1, x_21);
lean_closure_set(x_25, 2, x_23);
lean_closure_set(x_25, 3, x_24);
x_26 = 1;
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_27 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(x_25, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
x_29 = lean_ctor_get(x_27, 1);
lean_inc(x_29);
lean_dec(x_27);
x_30 = l_Lean_Elab_Term_ensureHasType(x_2, x_28, x_21, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_29);
return x_30;
}
else
{
uint8_t x_31; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_31 = !lean_is_exclusive(x_27);
if (x_31 == 0)
{
return x_27;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_27, 0);
x_33 = lean_ctor_get(x_27, 1);
lean_inc(x_33);
lean_inc(x_32);
lean_dec(x_27);
x_34 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_34, 0, x_32);
lean_ctor_set(x_34, 1, x_33);
return x_34;
}
}
}
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; 
lean_dec(x_2);
x_35 = lean_unsigned_to_nat(0u);
x_36 = l_Lean_Syntax_getArg(x_16, x_35);
lean_dec(x_16);
x_37 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabType), 8, 1);
lean_closure_set(x_37, 0, x_36);
x_38 = 0;
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_39 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(x_37, x_38, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_39) == 0)
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; 
x_40 = lean_ctor_get(x_39, 0);
lean_inc(x_40);
x_41 = lean_ctor_get(x_39, 1);
lean_inc(x_41);
lean_dec(x_39);
x_42 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_42, 0, x_40);
x_43 = 1;
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_42);
x_44 = l_Lean_Elab_Term_elabTerm(x_14, x_42, x_43, x_43, x_3, x_4, x_5, x_6, x_7, x_8, x_41);
if (lean_obj_tag(x_44) == 0)
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_45 = lean_ctor_get(x_44, 0);
lean_inc(x_45);
x_46 = lean_ctor_get(x_44, 1);
lean_inc(x_46);
lean_dec(x_44);
x_47 = lean_box(0);
x_48 = l_Lean_Elab_Term_ensureHasType(x_42, x_45, x_47, x_47, x_3, x_4, x_5, x_6, x_7, x_8, x_46);
return x_48;
}
else
{
uint8_t x_49; 
lean_dec(x_42);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_49 = !lean_is_exclusive(x_44);
if (x_49 == 0)
{
return x_44;
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_50 = lean_ctor_get(x_44, 0);
x_51 = lean_ctor_get(x_44, 1);
lean_inc(x_51);
lean_inc(x_50);
lean_dec(x_44);
x_52 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_52, 0, x_50);
lean_ctor_set(x_52, 1, x_51);
return x_52;
}
}
}
else
{
uint8_t x_53; 
lean_dec(x_14);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_53 = !lean_is_exclusive(x_39);
if (x_53 == 0)
{
return x_39;
}
else
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_54 = lean_ctor_get(x_39, 0);
x_55 = lean_ctor_get(x_39, 1);
lean_inc(x_55);
lean_inc(x_54);
lean_dec(x_39);
x_56 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_56, 0, x_54);
lean_ctor_set(x_56, 1, x_55);
return x_56;
}
}
}
}
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabTypeAscription", 18, 18);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTypeAscription), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l_Lean_Elab_Term_hasCDot___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(315u);
x_2 = lean_unsigned_to_nat(36u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(323u);
x_2 = lean_unsigned_to_nat(34u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__3() {
_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_Term_elabTypeAscription_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(36u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(34u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(315u);
x_2 = lean_unsigned_to_nat(40u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(315u);
x_2 = lean_unsigned_to_nat(58u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(40u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(58u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_2) == 5)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
lean_dec(x_2);
x_6 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__4(x_1, x_4, x_3);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_unbox(x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; 
lean_dec(x_7);
x_9 = lean_ctor_get(x_6, 1);
lean_inc(x_9);
lean_dec(x_6);
x_10 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_5, x_9);
return x_10;
}
else
{
uint8_t x_11; 
lean_dec(x_5);
x_11 = !lean_is_exclusive(x_6);
if (x_11 == 0)
{
lean_object* x_12; 
x_12 = lean_ctor_get(x_6, 0);
lean_dec(x_12);
return x_6;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_6, 1);
lean_inc(x_13);
lean_dec(x_6);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_7);
lean_ctor_set(x_14, 1, x_13);
return x_14;
}
}
}
else
{
lean_object* x_15; 
x_15 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_2, x_3);
return x_15;
}
}
}
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__7(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_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__6(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_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__8(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; 
x_6 = lean_array_uget(x_2, x_3);
if (lean_obj_tag(x_6) == 0)
{
size_t x_7; size_t x_8; 
x_7 = 1;
x_8 = lean_usize_add(x_3, x_7);
x_3 = x_8;
goto _start;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_ctor_get(x_6, 0);
lean_inc(x_10);
lean_dec(x_6);
x_11 = l_Lean_LocalDecl_fvarId(x_10);
lean_dec(x_10);
x_12 = lean_name_eq(x_1, x_11);
lean_dec(x_11);
if (x_12 == 0)
{
size_t x_13; size_t x_14; 
x_13 = 1;
x_14 = lean_usize_add(x_3, x_13);
x_3 = x_14;
goto _start;
}
else
{
uint8_t x_16; 
x_16 = 1;
return x_16;
}
}
}
else
{
uint8_t x_17; 
x_17 = 0;
return x_17;
}
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__6(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_array_get_size(x_3);
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_nat_dec_lt(x_5, x_4);
if (x_6 == 0)
{
uint8_t x_7; 
lean_dec(x_4);
x_7 = 0;
return x_7;
}
else
{
size_t x_8; size_t x_9; uint8_t x_10; 
x_8 = 0;
x_9 = lean_usize_of_nat(x_4);
lean_dec(x_4);
x_10 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__7(x_1, x_3, x_8, x_9);
return x_10;
}
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_11 = lean_ctor_get(x_2, 0);
x_12 = lean_array_get_size(x_11);
x_13 = lean_unsigned_to_nat(0u);
x_14 = lean_nat_dec_lt(x_13, x_12);
if (x_14 == 0)
{
uint8_t x_15; 
lean_dec(x_12);
x_15 = 0;
return x_15;
}
else
{
size_t x_16; size_t x_17; uint8_t x_18; 
x_16 = 0;
x_17 = lean_usize_of_nat(x_12);
lean_dec(x_12);
x_18 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__8(x_1, x_11, x_16, x_17);
return x_18;
}
}
}
}
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__9(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; 
x_6 = lean_array_uget(x_2, x_3);
if (lean_obj_tag(x_6) == 0)
{
size_t x_7; size_t x_8; 
x_7 = 1;
x_8 = lean_usize_add(x_3, x_7);
x_3 = x_8;
goto _start;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_ctor_get(x_6, 0);
lean_inc(x_10);
lean_dec(x_6);
x_11 = l_Lean_LocalDecl_fvarId(x_10);
lean_dec(x_10);
x_12 = lean_name_eq(x_1, x_11);
lean_dec(x_11);
if (x_12 == 0)
{
size_t x_13; size_t x_14; 
x_13 = 1;
x_14 = lean_usize_add(x_3, x_13);
x_3 = x_14;
goto _start;
}
else
{
uint8_t x_16; 
x_16 = 1;
return x_16;
}
}
}
else
{
uint8_t x_17; 
x_17 = 0;
return x_17;
}
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; uint8_t x_4; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__6(x_1, x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_5 = lean_ctor_get(x_2, 1);
x_6 = lean_array_get_size(x_5);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_nat_dec_lt(x_7, x_6);
if (x_8 == 0)
{
uint8_t x_9; 
lean_dec(x_6);
x_9 = 0;
return x_9;
}
else
{
size_t x_10; size_t x_11; uint8_t x_12; 
x_10 = 0;
x_11 = lean_usize_of_nat(x_6);
lean_dec(x_6);
x_12 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__9(x_1, x_5, x_10, x_11);
return x_12;
}
}
else
{
return x_4;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
switch (lean_obj_tag(x_2)) {
case 1:
{
lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec(x_2);
x_5 = lean_name_eq(x_1, x_4);
lean_dec(x_4);
x_6 = lean_box(x_5);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
case 2:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = lean_ctor_get(x_2, 0);
lean_inc(x_8);
lean_dec(x_2);
x_9 = l_Lean_getExprMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___spec__1(x_8, x_3);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_9);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; 
x_12 = lean_ctor_get(x_9, 1);
x_13 = lean_ctor_get(x_9, 0);
lean_dec(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
x_15 = l_Lean_MetavarContext_getDecl(x_14, x_8);
lean_dec(x_8);
x_16 = lean_ctor_get(x_15, 1);
lean_inc(x_16);
lean_dec(x_15);
x_17 = lean_ctor_get(x_16, 1);
lean_inc(x_17);
lean_dec(x_16);
x_18 = l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__5(x_1, x_17);
lean_dec(x_17);
x_19 = lean_box(x_18);
lean_ctor_set(x_9, 0, x_19);
return x_9;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; 
x_20 = lean_ctor_get(x_9, 1);
lean_inc(x_20);
lean_dec(x_9);
x_21 = lean_ctor_get(x_20, 1);
lean_inc(x_21);
x_22 = l_Lean_MetavarContext_getDecl(x_21, x_8);
lean_dec(x_8);
x_23 = lean_ctor_get(x_22, 1);
lean_inc(x_23);
lean_dec(x_22);
x_24 = lean_ctor_get(x_23, 1);
lean_inc(x_24);
lean_dec(x_23);
x_25 = l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__5(x_1, x_24);
lean_dec(x_24);
x_26 = lean_box(x_25);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_20);
return x_27;
}
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
lean_dec(x_8);
x_28 = lean_ctor_get(x_9, 1);
lean_inc(x_28);
lean_dec(x_9);
x_29 = lean_ctor_get(x_10, 0);
lean_inc(x_29);
lean_dec(x_10);
x_30 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_29, x_28);
return x_30;
}
}
case 5:
{
lean_object* x_31; uint8_t x_32; 
x_31 = l_Lean_Expr_getAppFn(x_2);
x_32 = l_Lean_Expr_isMVar(x_31);
if (x_32 == 0)
{
lean_object* x_33; 
lean_dec(x_31);
x_33 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__4(x_1, x_2, x_3);
return x_33;
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; 
lean_inc(x_2);
x_34 = l_Lean_instantiateMVars___at___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___spec__7(x_2, x_3);
x_35 = lean_ctor_get(x_34, 0);
lean_inc(x_35);
x_36 = lean_ctor_get(x_34, 1);
lean_inc(x_36);
lean_dec(x_34);
x_37 = l_Lean_Expr_getAppFn(x_35);
x_38 = lean_expr_eqv(x_37, x_31);
lean_dec(x_31);
lean_dec(x_37);
if (x_38 == 0)
{
lean_dec(x_2);
x_2 = x_35;
x_3 = x_36;
goto _start;
}
else
{
lean_object* x_40; 
lean_dec(x_35);
x_40 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__4(x_1, x_2, x_36);
return x_40;
}
}
}
case 6:
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_41 = lean_ctor_get(x_2, 1);
lean_inc(x_41);
x_42 = lean_ctor_get(x_2, 2);
lean_inc(x_42);
lean_dec(x_2);
x_43 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_41, x_3);
x_44 = lean_ctor_get(x_43, 0);
lean_inc(x_44);
x_45 = lean_unbox(x_44);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; 
lean_dec(x_44);
x_46 = lean_ctor_get(x_43, 1);
lean_inc(x_46);
lean_dec(x_43);
x_47 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_42, x_46);
return x_47;
}
else
{
uint8_t x_48; 
lean_dec(x_42);
x_48 = !lean_is_exclusive(x_43);
if (x_48 == 0)
{
lean_object* x_49; 
x_49 = lean_ctor_get(x_43, 0);
lean_dec(x_49);
return x_43;
}
else
{
lean_object* x_50; lean_object* x_51; 
x_50 = lean_ctor_get(x_43, 1);
lean_inc(x_50);
lean_dec(x_43);
x_51 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_51, 0, x_44);
lean_ctor_set(x_51, 1, x_50);
return x_51;
}
}
}
case 7:
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; 
x_52 = lean_ctor_get(x_2, 1);
lean_inc(x_52);
x_53 = lean_ctor_get(x_2, 2);
lean_inc(x_53);
lean_dec(x_2);
x_54 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_52, x_3);
x_55 = lean_ctor_get(x_54, 0);
lean_inc(x_55);
x_56 = lean_unbox(x_55);
if (x_56 == 0)
{
lean_object* x_57; lean_object* x_58; 
lean_dec(x_55);
x_57 = lean_ctor_get(x_54, 1);
lean_inc(x_57);
lean_dec(x_54);
x_58 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_53, x_57);
return x_58;
}
else
{
uint8_t x_59; 
lean_dec(x_53);
x_59 = !lean_is_exclusive(x_54);
if (x_59 == 0)
{
lean_object* x_60; 
x_60 = lean_ctor_get(x_54, 0);
lean_dec(x_60);
return x_54;
}
else
{
lean_object* x_61; lean_object* x_62; 
x_61 = lean_ctor_get(x_54, 1);
lean_inc(x_61);
lean_dec(x_54);
x_62 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_62, 0, x_55);
lean_ctor_set(x_62, 1, x_61);
return x_62;
}
}
}
case 8:
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; 
x_63 = lean_ctor_get(x_2, 1);
lean_inc(x_63);
x_64 = lean_ctor_get(x_2, 2);
lean_inc(x_64);
x_65 = lean_ctor_get(x_2, 3);
lean_inc(x_65);
lean_dec(x_2);
x_66 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_63, x_3);
x_67 = lean_ctor_get(x_66, 0);
lean_inc(x_67);
x_68 = lean_unbox(x_67);
if (x_68 == 0)
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; 
lean_dec(x_67);
x_69 = lean_ctor_get(x_66, 1);
lean_inc(x_69);
lean_dec(x_66);
x_70 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_64, x_69);
x_71 = lean_ctor_get(x_70, 0);
lean_inc(x_71);
x_72 = lean_unbox(x_71);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; 
lean_dec(x_71);
x_73 = lean_ctor_get(x_70, 1);
lean_inc(x_73);
lean_dec(x_70);
x_74 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_65, x_73);
return x_74;
}
else
{
uint8_t x_75; 
lean_dec(x_65);
x_75 = !lean_is_exclusive(x_70);
if (x_75 == 0)
{
lean_object* x_76; 
x_76 = lean_ctor_get(x_70, 0);
lean_dec(x_76);
return x_70;
}
else
{
lean_object* x_77; lean_object* x_78; 
x_77 = lean_ctor_get(x_70, 1);
lean_inc(x_77);
lean_dec(x_70);
x_78 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_78, 0, x_71);
lean_ctor_set(x_78, 1, x_77);
return x_78;
}
}
}
else
{
uint8_t x_79; 
lean_dec(x_65);
lean_dec(x_64);
x_79 = !lean_is_exclusive(x_66);
if (x_79 == 0)
{
lean_object* x_80; 
x_80 = lean_ctor_get(x_66, 0);
lean_dec(x_80);
return x_66;
}
else
{
lean_object* x_81; lean_object* x_82; 
x_81 = lean_ctor_get(x_66, 1);
lean_inc(x_81);
lean_dec(x_66);
x_82 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_82, 0, x_67);
lean_ctor_set(x_82, 1, x_81);
return x_82;
}
}
}
case 10:
{
lean_object* x_83; lean_object* x_84; 
x_83 = lean_ctor_get(x_2, 1);
lean_inc(x_83);
lean_dec(x_2);
x_84 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_83, x_3);
return x_84;
}
case 11:
{
lean_object* x_85; lean_object* x_86; 
x_85 = lean_ctor_get(x_2, 2);
lean_inc(x_85);
lean_dec(x_2);
x_86 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_85, x_3);
return x_86;
}
default: 
{
uint8_t x_87; lean_object* x_88; lean_object* x_89; 
lean_dec(x_2);
x_87 = 0;
x_88 = lean_box(x_87);
x_89 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_89, 0, x_88);
lean_ctor_set(x_89, 1, x_3);
return x_89;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; 
lean_inc(x_2);
x_4 = l___private_Lean_MetavarContext_0__Lean_DependsOn_shouldVisit(x_2, x_3);
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
x_6 = lean_unbox(x_5);
lean_dec(x_5);
if (x_6 == 0)
{
uint8_t x_7; 
lean_dec(x_2);
x_7 = !lean_is_exclusive(x_4);
if (x_7 == 0)
{
lean_object* x_8; uint8_t x_9; lean_object* x_10; 
x_8 = lean_ctor_get(x_4, 0);
lean_dec(x_8);
x_9 = 0;
x_10 = lean_box(x_9);
lean_ctor_set(x_4, 0, x_10);
return x_4;
}
else
{
lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; 
x_11 = lean_ctor_get(x_4, 1);
lean_inc(x_11);
lean_dec(x_4);
x_12 = 0;
x_13 = lean_box(x_12);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_11);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_4, 1);
lean_inc(x_15);
lean_dec(x_4);
x_16 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__3(x_1, x_2, x_15);
return x_16;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_2) == 5)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
lean_dec(x_2);
x_6 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__12(x_1, x_4, x_3);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_unbox(x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; 
lean_dec(x_7);
x_9 = lean_ctor_get(x_6, 1);
lean_inc(x_9);
lean_dec(x_6);
x_10 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_5, x_9);
return x_10;
}
else
{
uint8_t x_11; 
lean_dec(x_5);
x_11 = !lean_is_exclusive(x_6);
if (x_11 == 0)
{
lean_object* x_12; 
x_12 = lean_ctor_get(x_6, 0);
lean_dec(x_12);
return x_6;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_6, 1);
lean_inc(x_13);
lean_dec(x_6);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_7);
lean_ctor_set(x_14, 1, x_13);
return x_14;
}
}
}
else
{
lean_object* x_15; 
x_15 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_2, x_3);
return x_15;
}
}
}
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__15(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_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__14(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_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__16(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; 
x_6 = lean_array_uget(x_2, x_3);
if (lean_obj_tag(x_6) == 0)
{
size_t x_7; size_t x_8; 
x_7 = 1;
x_8 = lean_usize_add(x_3, x_7);
x_3 = x_8;
goto _start;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_ctor_get(x_6, 0);
lean_inc(x_10);
lean_dec(x_6);
x_11 = l_Lean_LocalDecl_fvarId(x_10);
lean_dec(x_10);
x_12 = lean_name_eq(x_1, x_11);
lean_dec(x_11);
if (x_12 == 0)
{
size_t x_13; size_t x_14; 
x_13 = 1;
x_14 = lean_usize_add(x_3, x_13);
x_3 = x_14;
goto _start;
}
else
{
uint8_t x_16; 
x_16 = 1;
return x_16;
}
}
}
else
{
uint8_t x_17; 
x_17 = 0;
return x_17;
}
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__14(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_array_get_size(x_3);
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_nat_dec_lt(x_5, x_4);
if (x_6 == 0)
{
uint8_t x_7; 
lean_dec(x_4);
x_7 = 0;
return x_7;
}
else
{
size_t x_8; size_t x_9; uint8_t x_10; 
x_8 = 0;
x_9 = lean_usize_of_nat(x_4);
lean_dec(x_4);
x_10 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__15(x_1, x_3, x_8, x_9);
return x_10;
}
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_11 = lean_ctor_get(x_2, 0);
x_12 = lean_array_get_size(x_11);
x_13 = lean_unsigned_to_nat(0u);
x_14 = lean_nat_dec_lt(x_13, x_12);
if (x_14 == 0)
{
uint8_t x_15; 
lean_dec(x_12);
x_15 = 0;
return x_15;
}
else
{
size_t x_16; size_t x_17; uint8_t x_18; 
x_16 = 0;
x_17 = lean_usize_of_nat(x_12);
lean_dec(x_12);
x_18 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__16(x_1, x_11, x_16, x_17);
return x_18;
}
}
}
}
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__17(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; 
x_6 = lean_array_uget(x_2, x_3);
if (lean_obj_tag(x_6) == 0)
{
size_t x_7; size_t x_8; 
x_7 = 1;
x_8 = lean_usize_add(x_3, x_7);
x_3 = x_8;
goto _start;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_ctor_get(x_6, 0);
lean_inc(x_10);
lean_dec(x_6);
x_11 = l_Lean_LocalDecl_fvarId(x_10);
lean_dec(x_10);
x_12 = lean_name_eq(x_1, x_11);
lean_dec(x_11);
if (x_12 == 0)
{
size_t x_13; size_t x_14; 
x_13 = 1;
x_14 = lean_usize_add(x_3, x_13);
x_3 = x_14;
goto _start;
}
else
{
uint8_t x_16; 
x_16 = 1;
return x_16;
}
}
}
else
{
uint8_t x_17; 
x_17 = 0;
return x_17;
}
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__13(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; uint8_t x_4; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__14(x_1, x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_5 = lean_ctor_get(x_2, 1);
x_6 = lean_array_get_size(x_5);
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_nat_dec_lt(x_7, x_6);
if (x_8 == 0)
{
uint8_t x_9; 
lean_dec(x_6);
x_9 = 0;
return x_9;
}
else
{
size_t x_10; size_t x_11; uint8_t x_12; 
x_10 = 0;
x_11 = lean_usize_of_nat(x_6);
lean_dec(x_6);
x_12 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__17(x_1, x_5, x_10, x_11);
return x_12;
}
}
else
{
return x_4;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
switch (lean_obj_tag(x_2)) {
case 1:
{
lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec(x_2);
x_5 = lean_name_eq(x_1, x_4);
lean_dec(x_4);
x_6 = lean_box(x_5);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
case 2:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = lean_ctor_get(x_2, 0);
lean_inc(x_8);
lean_dec(x_2);
x_9 = l_Lean_getExprMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___spec__1(x_8, x_3);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_9);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; 
x_12 = lean_ctor_get(x_9, 1);
x_13 = lean_ctor_get(x_9, 0);
lean_dec(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
x_15 = l_Lean_MetavarContext_getDecl(x_14, x_8);
lean_dec(x_8);
x_16 = lean_ctor_get(x_15, 1);
lean_inc(x_16);
lean_dec(x_15);
x_17 = lean_ctor_get(x_16, 1);
lean_inc(x_17);
lean_dec(x_16);
x_18 = l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__13(x_1, x_17);
lean_dec(x_17);
x_19 = lean_box(x_18);
lean_ctor_set(x_9, 0, x_19);
return x_9;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; 
x_20 = lean_ctor_get(x_9, 1);
lean_inc(x_20);
lean_dec(x_9);
x_21 = lean_ctor_get(x_20, 1);
lean_inc(x_21);
x_22 = l_Lean_MetavarContext_getDecl(x_21, x_8);
lean_dec(x_8);
x_23 = lean_ctor_get(x_22, 1);
lean_inc(x_23);
lean_dec(x_22);
x_24 = lean_ctor_get(x_23, 1);
lean_inc(x_24);
lean_dec(x_23);
x_25 = l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__13(x_1, x_24);
lean_dec(x_24);
x_26 = lean_box(x_25);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_20);
return x_27;
}
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
lean_dec(x_8);
x_28 = lean_ctor_get(x_9, 1);
lean_inc(x_28);
lean_dec(x_9);
x_29 = lean_ctor_get(x_10, 0);
lean_inc(x_29);
lean_dec(x_10);
x_30 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_29, x_28);
return x_30;
}
}
case 5:
{
lean_object* x_31; uint8_t x_32; 
x_31 = l_Lean_Expr_getAppFn(x_2);
x_32 = l_Lean_Expr_isMVar(x_31);
if (x_32 == 0)
{
lean_object* x_33; 
lean_dec(x_31);
x_33 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__12(x_1, x_2, x_3);
return x_33;
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; 
lean_inc(x_2);
x_34 = l_Lean_instantiateMVars___at___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___spec__7(x_2, x_3);
x_35 = lean_ctor_get(x_34, 0);
lean_inc(x_35);
x_36 = lean_ctor_get(x_34, 1);
lean_inc(x_36);
lean_dec(x_34);
x_37 = l_Lean_Expr_getAppFn(x_35);
x_38 = lean_expr_eqv(x_37, x_31);
lean_dec(x_31);
lean_dec(x_37);
if (x_38 == 0)
{
lean_dec(x_2);
x_2 = x_35;
x_3 = x_36;
goto _start;
}
else
{
lean_object* x_40; 
lean_dec(x_35);
x_40 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__12(x_1, x_2, x_36);
return x_40;
}
}
}
case 6:
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_41 = lean_ctor_get(x_2, 1);
lean_inc(x_41);
x_42 = lean_ctor_get(x_2, 2);
lean_inc(x_42);
lean_dec(x_2);
x_43 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_41, x_3);
x_44 = lean_ctor_get(x_43, 0);
lean_inc(x_44);
x_45 = lean_unbox(x_44);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; 
lean_dec(x_44);
x_46 = lean_ctor_get(x_43, 1);
lean_inc(x_46);
lean_dec(x_43);
x_47 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_42, x_46);
return x_47;
}
else
{
uint8_t x_48; 
lean_dec(x_42);
x_48 = !lean_is_exclusive(x_43);
if (x_48 == 0)
{
lean_object* x_49; 
x_49 = lean_ctor_get(x_43, 0);
lean_dec(x_49);
return x_43;
}
else
{
lean_object* x_50; lean_object* x_51; 
x_50 = lean_ctor_get(x_43, 1);
lean_inc(x_50);
lean_dec(x_43);
x_51 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_51, 0, x_44);
lean_ctor_set(x_51, 1, x_50);
return x_51;
}
}
}
case 7:
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; 
x_52 = lean_ctor_get(x_2, 1);
lean_inc(x_52);
x_53 = lean_ctor_get(x_2, 2);
lean_inc(x_53);
lean_dec(x_2);
x_54 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_52, x_3);
x_55 = lean_ctor_get(x_54, 0);
lean_inc(x_55);
x_56 = lean_unbox(x_55);
if (x_56 == 0)
{
lean_object* x_57; lean_object* x_58; 
lean_dec(x_55);
x_57 = lean_ctor_get(x_54, 1);
lean_inc(x_57);
lean_dec(x_54);
x_58 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_53, x_57);
return x_58;
}
else
{
uint8_t x_59; 
lean_dec(x_53);
x_59 = !lean_is_exclusive(x_54);
if (x_59 == 0)
{
lean_object* x_60; 
x_60 = lean_ctor_get(x_54, 0);
lean_dec(x_60);
return x_54;
}
else
{
lean_object* x_61; lean_object* x_62; 
x_61 = lean_ctor_get(x_54, 1);
lean_inc(x_61);
lean_dec(x_54);
x_62 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_62, 0, x_55);
lean_ctor_set(x_62, 1, x_61);
return x_62;
}
}
}
case 8:
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; 
x_63 = lean_ctor_get(x_2, 1);
lean_inc(x_63);
x_64 = lean_ctor_get(x_2, 2);
lean_inc(x_64);
x_65 = lean_ctor_get(x_2, 3);
lean_inc(x_65);
lean_dec(x_2);
x_66 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_63, x_3);
x_67 = lean_ctor_get(x_66, 0);
lean_inc(x_67);
x_68 = lean_unbox(x_67);
if (x_68 == 0)
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; 
lean_dec(x_67);
x_69 = lean_ctor_get(x_66, 1);
lean_inc(x_69);
lean_dec(x_66);
x_70 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_64, x_69);
x_71 = lean_ctor_get(x_70, 0);
lean_inc(x_71);
x_72 = lean_unbox(x_71);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; 
lean_dec(x_71);
x_73 = lean_ctor_get(x_70, 1);
lean_inc(x_73);
lean_dec(x_70);
x_74 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_65, x_73);
return x_74;
}
else
{
uint8_t x_75; 
lean_dec(x_65);
x_75 = !lean_is_exclusive(x_70);
if (x_75 == 0)
{
lean_object* x_76; 
x_76 = lean_ctor_get(x_70, 0);
lean_dec(x_76);
return x_70;
}
else
{
lean_object* x_77; lean_object* x_78; 
x_77 = lean_ctor_get(x_70, 1);
lean_inc(x_77);
lean_dec(x_70);
x_78 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_78, 0, x_71);
lean_ctor_set(x_78, 1, x_77);
return x_78;
}
}
}
else
{
uint8_t x_79; 
lean_dec(x_65);
lean_dec(x_64);
x_79 = !lean_is_exclusive(x_66);
if (x_79 == 0)
{
lean_object* x_80; 
x_80 = lean_ctor_get(x_66, 0);
lean_dec(x_80);
return x_66;
}
else
{
lean_object* x_81; lean_object* x_82; 
x_81 = lean_ctor_get(x_66, 1);
lean_inc(x_81);
lean_dec(x_66);
x_82 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_82, 0, x_67);
lean_ctor_set(x_82, 1, x_81);
return x_82;
}
}
}
case 10:
{
lean_object* x_83; lean_object* x_84; 
x_83 = lean_ctor_get(x_2, 1);
lean_inc(x_83);
lean_dec(x_2);
x_84 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_83, x_3);
return x_84;
}
case 11:
{
lean_object* x_85; lean_object* x_86; 
x_85 = lean_ctor_get(x_2, 2);
lean_inc(x_85);
lean_dec(x_2);
x_86 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_85, x_3);
return x_86;
}
default: 
{
uint8_t x_87; lean_object* x_88; lean_object* x_89; 
lean_dec(x_2);
x_87 = 0;
x_88 = lean_box(x_87);
x_89 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_89, 0, x_88);
lean_ctor_set(x_89, 1, x_3);
return x_89;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; 
lean_inc(x_2);
x_4 = l___private_Lean_MetavarContext_0__Lean_DependsOn_shouldVisit(x_2, x_3);
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
x_6 = lean_unbox(x_5);
lean_dec(x_5);
if (x_6 == 0)
{
uint8_t x_7; 
lean_dec(x_2);
x_7 = !lean_is_exclusive(x_4);
if (x_7 == 0)
{
lean_object* x_8; uint8_t x_9; lean_object* x_10; 
x_8 = lean_ctor_get(x_4, 0);
lean_dec(x_8);
x_9 = 0;
x_10 = lean_box(x_9);
lean_ctor_set(x_4, 0, x_10);
return x_4;
}
else
{
lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; 
x_11 = lean_ctor_get(x_4, 1);
lean_inc(x_11);
lean_dec(x_4);
x_12 = 0;
x_13 = lean_box(x_12);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_11);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_4, 1);
lean_inc(x_15);
lean_dec(x_4);
x_16 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__11(x_1, x_2, x_15);
return x_16;
}
}
}
static lean_object* _init_l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(8u);
x_2 = l_Lean_mkHashSetImp___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; uint8_t x_9; 
x_8 = lean_st_ref_get(x_4, x_7);
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_10 = lean_ctor_get(x_8, 0);
x_11 = lean_ctor_get(x_8, 1);
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
lean_dec(x_10);
x_13 = l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1___closed__1;
lean_inc(x_12);
lean_ctor_set(x_8, 1, x_12);
lean_ctor_set(x_8, 0, x_13);
x_14 = l_Lean_Expr_hasFVar(x_1);
if (x_14 == 0)
{
uint8_t x_15; 
x_15 = l_Lean_Expr_hasMVar(x_1);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; 
lean_dec(x_8);
lean_dec(x_1);
x_16 = lean_st_ref_take(x_4, x_11);
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_16, 1);
lean_inc(x_18);
lean_dec(x_16);
x_19 = !lean_is_exclusive(x_17);
if (x_19 == 0)
{
lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_20 = lean_ctor_get(x_17, 0);
lean_dec(x_20);
lean_ctor_set(x_17, 0, x_12);
x_21 = lean_st_ref_set(x_4, x_17, x_18);
x_22 = !lean_is_exclusive(x_21);
if (x_22 == 0)
{
lean_object* x_23; uint8_t x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_21, 0);
lean_dec(x_23);
x_24 = 0;
x_25 = lean_box(x_24);
lean_ctor_set(x_21, 0, x_25);
return x_21;
}
else
{
lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; 
x_26 = lean_ctor_get(x_21, 1);
lean_inc(x_26);
lean_dec(x_21);
x_27 = 0;
x_28 = lean_box(x_27);
x_29 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_26);
return x_29;
}
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; 
x_30 = lean_ctor_get(x_17, 1);
x_31 = lean_ctor_get(x_17, 2);
x_32 = lean_ctor_get(x_17, 3);
x_33 = lean_ctor_get(x_17, 4);
lean_inc(x_33);
lean_inc(x_32);
lean_inc(x_31);
lean_inc(x_30);
lean_dec(x_17);
x_34 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_34, 0, x_12);
lean_ctor_set(x_34, 1, x_30);
lean_ctor_set(x_34, 2, x_31);
lean_ctor_set(x_34, 3, x_32);
lean_ctor_set(x_34, 4, x_33);
x_35 = lean_st_ref_set(x_4, x_34, x_18);
x_36 = lean_ctor_get(x_35, 1);
lean_inc(x_36);
if (lean_is_exclusive(x_35)) {
 lean_ctor_release(x_35, 0);
 lean_ctor_release(x_35, 1);
 x_37 = x_35;
} else {
 lean_dec_ref(x_35);
 x_37 = lean_box(0);
}
x_38 = 0;
x_39 = lean_box(x_38);
if (lean_is_scalar(x_37)) {
 x_40 = lean_alloc_ctor(0, 2, 0);
} else {
 x_40 = x_37;
}
lean_ctor_set(x_40, 0, x_39);
lean_ctor_set(x_40, 1, x_36);
return x_40;
}
}
else
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; 
lean_dec(x_12);
x_41 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_2, x_1, x_8);
x_42 = lean_ctor_get(x_41, 1);
lean_inc(x_42);
x_43 = lean_ctor_get(x_41, 0);
lean_inc(x_43);
lean_dec(x_41);
x_44 = lean_ctor_get(x_42, 1);
lean_inc(x_44);
lean_dec(x_42);
x_45 = lean_st_ref_take(x_4, x_11);
x_46 = lean_ctor_get(x_45, 0);
lean_inc(x_46);
x_47 = lean_ctor_get(x_45, 1);
lean_inc(x_47);
lean_dec(x_45);
x_48 = !lean_is_exclusive(x_46);
if (x_48 == 0)
{
lean_object* x_49; lean_object* x_50; uint8_t x_51; 
x_49 = lean_ctor_get(x_46, 0);
lean_dec(x_49);
lean_ctor_set(x_46, 0, x_44);
x_50 = lean_st_ref_set(x_4, x_46, x_47);
x_51 = !lean_is_exclusive(x_50);
if (x_51 == 0)
{
lean_object* x_52; 
x_52 = lean_ctor_get(x_50, 0);
lean_dec(x_52);
lean_ctor_set(x_50, 0, x_43);
return x_50;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = lean_ctor_get(x_50, 1);
lean_inc(x_53);
lean_dec(x_50);
x_54 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_54, 0, x_43);
lean_ctor_set(x_54, 1, x_53);
return x_54;
}
}
else
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; 
x_55 = lean_ctor_get(x_46, 1);
x_56 = lean_ctor_get(x_46, 2);
x_57 = lean_ctor_get(x_46, 3);
x_58 = lean_ctor_get(x_46, 4);
lean_inc(x_58);
lean_inc(x_57);
lean_inc(x_56);
lean_inc(x_55);
lean_dec(x_46);
x_59 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_59, 0, x_44);
lean_ctor_set(x_59, 1, x_55);
lean_ctor_set(x_59, 2, x_56);
lean_ctor_set(x_59, 3, x_57);
lean_ctor_set(x_59, 4, x_58);
x_60 = lean_st_ref_set(x_4, x_59, x_47);
x_61 = lean_ctor_get(x_60, 1);
lean_inc(x_61);
if (lean_is_exclusive(x_60)) {
 lean_ctor_release(x_60, 0);
 lean_ctor_release(x_60, 1);
 x_62 = x_60;
} else {
 lean_dec_ref(x_60);
 x_62 = lean_box(0);
}
if (lean_is_scalar(x_62)) {
 x_63 = lean_alloc_ctor(0, 2, 0);
} else {
 x_63 = x_62;
}
lean_ctor_set(x_63, 0, x_43);
lean_ctor_set(x_63, 1, x_61);
return x_63;
}
}
}
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; uint8_t x_71; 
lean_dec(x_12);
x_64 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_2, x_1, x_8);
x_65 = lean_ctor_get(x_64, 1);
lean_inc(x_65);
x_66 = lean_ctor_get(x_64, 0);
lean_inc(x_66);
lean_dec(x_64);
x_67 = lean_ctor_get(x_65, 1);
lean_inc(x_67);
lean_dec(x_65);
x_68 = lean_st_ref_take(x_4, x_11);
x_69 = lean_ctor_get(x_68, 0);
lean_inc(x_69);
x_70 = lean_ctor_get(x_68, 1);
lean_inc(x_70);
lean_dec(x_68);
x_71 = !lean_is_exclusive(x_69);
if (x_71 == 0)
{
lean_object* x_72; lean_object* x_73; uint8_t x_74; 
x_72 = lean_ctor_get(x_69, 0);
lean_dec(x_72);
lean_ctor_set(x_69, 0, x_67);
x_73 = lean_st_ref_set(x_4, x_69, x_70);
x_74 = !lean_is_exclusive(x_73);
if (x_74 == 0)
{
lean_object* x_75; 
x_75 = lean_ctor_get(x_73, 0);
lean_dec(x_75);
lean_ctor_set(x_73, 0, x_66);
return x_73;
}
else
{
lean_object* x_76; lean_object* x_77; 
x_76 = lean_ctor_get(x_73, 1);
lean_inc(x_76);
lean_dec(x_73);
x_77 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_77, 0, x_66);
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_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; 
x_78 = lean_ctor_get(x_69, 1);
x_79 = lean_ctor_get(x_69, 2);
x_80 = lean_ctor_get(x_69, 3);
x_81 = lean_ctor_get(x_69, 4);
lean_inc(x_81);
lean_inc(x_80);
lean_inc(x_79);
lean_inc(x_78);
lean_dec(x_69);
x_82 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_82, 0, x_67);
lean_ctor_set(x_82, 1, x_78);
lean_ctor_set(x_82, 2, x_79);
lean_ctor_set(x_82, 3, x_80);
lean_ctor_set(x_82, 4, x_81);
x_83 = lean_st_ref_set(x_4, x_82, x_70);
x_84 = lean_ctor_get(x_83, 1);
lean_inc(x_84);
if (lean_is_exclusive(x_83)) {
 lean_ctor_release(x_83, 0);
 lean_ctor_release(x_83, 1);
 x_85 = x_83;
} else {
 lean_dec_ref(x_83);
 x_85 = lean_box(0);
}
if (lean_is_scalar(x_85)) {
 x_86 = lean_alloc_ctor(0, 2, 0);
} else {
 x_86 = x_85;
}
lean_ctor_set(x_86, 0, x_66);
lean_ctor_set(x_86, 1, x_84);
return x_86;
}
}
}
else
{
lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; 
x_87 = lean_ctor_get(x_8, 0);
x_88 = lean_ctor_get(x_8, 1);
lean_inc(x_88);
lean_inc(x_87);
lean_dec(x_8);
x_89 = lean_ctor_get(x_87, 0);
lean_inc(x_89);
lean_dec(x_87);
x_90 = l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1___closed__1;
lean_inc(x_89);
x_91 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_91, 0, x_90);
lean_ctor_set(x_91, 1, x_89);
x_92 = l_Lean_Expr_hasFVar(x_1);
if (x_92 == 0)
{
uint8_t x_93; 
x_93 = l_Lean_Expr_hasMVar(x_1);
if (x_93 == 0)
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; 
lean_dec(x_91);
lean_dec(x_1);
x_94 = lean_st_ref_take(x_4, x_88);
x_95 = lean_ctor_get(x_94, 0);
lean_inc(x_95);
x_96 = lean_ctor_get(x_94, 1);
lean_inc(x_96);
lean_dec(x_94);
x_97 = lean_ctor_get(x_95, 1);
lean_inc(x_97);
x_98 = lean_ctor_get(x_95, 2);
lean_inc(x_98);
x_99 = lean_ctor_get(x_95, 3);
lean_inc(x_99);
x_100 = lean_ctor_get(x_95, 4);
lean_inc(x_100);
if (lean_is_exclusive(x_95)) {
 lean_ctor_release(x_95, 0);
 lean_ctor_release(x_95, 1);
 lean_ctor_release(x_95, 2);
 lean_ctor_release(x_95, 3);
 lean_ctor_release(x_95, 4);
 x_101 = x_95;
} else {
 lean_dec_ref(x_95);
 x_101 = lean_box(0);
}
if (lean_is_scalar(x_101)) {
 x_102 = lean_alloc_ctor(0, 5, 0);
} else {
 x_102 = x_101;
}
lean_ctor_set(x_102, 0, x_89);
lean_ctor_set(x_102, 1, x_97);
lean_ctor_set(x_102, 2, x_98);
lean_ctor_set(x_102, 3, x_99);
lean_ctor_set(x_102, 4, x_100);
x_103 = lean_st_ref_set(x_4, x_102, x_96);
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 = 0;
x_107 = lean_box(x_106);
if (lean_is_scalar(x_105)) {
 x_108 = lean_alloc_ctor(0, 2, 0);
} else {
 x_108 = x_105;
}
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_104);
return x_108;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; 
lean_dec(x_89);
x_109 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_2, x_1, x_91);
x_110 = lean_ctor_get(x_109, 1);
lean_inc(x_110);
x_111 = lean_ctor_get(x_109, 0);
lean_inc(x_111);
lean_dec(x_109);
x_112 = lean_ctor_get(x_110, 1);
lean_inc(x_112);
lean_dec(x_110);
x_113 = lean_st_ref_take(x_4, x_88);
x_114 = lean_ctor_get(x_113, 0);
lean_inc(x_114);
x_115 = lean_ctor_get(x_113, 1);
lean_inc(x_115);
lean_dec(x_113);
x_116 = lean_ctor_get(x_114, 1);
lean_inc(x_116);
x_117 = lean_ctor_get(x_114, 2);
lean_inc(x_117);
x_118 = lean_ctor_get(x_114, 3);
lean_inc(x_118);
x_119 = lean_ctor_get(x_114, 4);
lean_inc(x_119);
if (lean_is_exclusive(x_114)) {
 lean_ctor_release(x_114, 0);
 lean_ctor_release(x_114, 1);
 lean_ctor_release(x_114, 2);
 lean_ctor_release(x_114, 3);
 lean_ctor_release(x_114, 4);
 x_120 = x_114;
} else {
 lean_dec_ref(x_114);
 x_120 = lean_box(0);
}
if (lean_is_scalar(x_120)) {
 x_121 = lean_alloc_ctor(0, 5, 0);
} else {
 x_121 = x_120;
}
lean_ctor_set(x_121, 0, x_112);
lean_ctor_set(x_121, 1, x_116);
lean_ctor_set(x_121, 2, x_117);
lean_ctor_set(x_121, 3, x_118);
lean_ctor_set(x_121, 4, x_119);
x_122 = lean_st_ref_set(x_4, x_121, x_115);
x_123 = lean_ctor_get(x_122, 1);
lean_inc(x_123);
if (lean_is_exclusive(x_122)) {
 lean_ctor_release(x_122, 0);
 lean_ctor_release(x_122, 1);
 x_124 = x_122;
} else {
 lean_dec_ref(x_122);
 x_124 = lean_box(0);
}
if (lean_is_scalar(x_124)) {
 x_125 = lean_alloc_ctor(0, 2, 0);
} else {
 x_125 = x_124;
}
lean_ctor_set(x_125, 0, x_111);
lean_ctor_set(x_125, 1, x_123);
return x_125;
}
}
else
{
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; 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_dec(x_89);
x_126 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_2, x_1, x_91);
x_127 = lean_ctor_get(x_126, 1);
lean_inc(x_127);
x_128 = lean_ctor_get(x_126, 0);
lean_inc(x_128);
lean_dec(x_126);
x_129 = lean_ctor_get(x_127, 1);
lean_inc(x_129);
lean_dec(x_127);
x_130 = lean_st_ref_take(x_4, x_88);
x_131 = lean_ctor_get(x_130, 0);
lean_inc(x_131);
x_132 = lean_ctor_get(x_130, 1);
lean_inc(x_132);
lean_dec(x_130);
x_133 = lean_ctor_get(x_131, 1);
lean_inc(x_133);
x_134 = lean_ctor_get(x_131, 2);
lean_inc(x_134);
x_135 = lean_ctor_get(x_131, 3);
lean_inc(x_135);
x_136 = lean_ctor_get(x_131, 4);
lean_inc(x_136);
if (lean_is_exclusive(x_131)) {
 lean_ctor_release(x_131, 0);
 lean_ctor_release(x_131, 1);
 lean_ctor_release(x_131, 2);
 lean_ctor_release(x_131, 3);
 lean_ctor_release(x_131, 4);
 x_137 = x_131;
} else {
 lean_dec_ref(x_131);
 x_137 = lean_box(0);
}
if (lean_is_scalar(x_137)) {
 x_138 = lean_alloc_ctor(0, 5, 0);
} else {
 x_138 = x_137;
}
lean_ctor_set(x_138, 0, x_129);
lean_ctor_set(x_138, 1, x_133);
lean_ctor_set(x_138, 2, x_134);
lean_ctor_set(x_138, 3, x_135);
lean_ctor_set(x_138, 4, x_136);
x_139 = lean_st_ref_set(x_4, x_138, x_132);
x_140 = lean_ctor_get(x_139, 1);
lean_inc(x_140);
if (lean_is_exclusive(x_139)) {
 lean_ctor_release(x_139, 0);
 lean_ctor_release(x_139, 1);
 x_141 = x_139;
} else {
 lean_dec_ref(x_139);
 x_141 = lean_box(0);
}
if (lean_is_scalar(x_141)) {
 x_142 = lean_alloc_ctor(0, 2, 0);
} else {
 x_142 = x_141;
}
lean_ctor_set(x_142, 0, x_128);
lean_ctor_set(x_142, 1, x_140);
return x_142;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate(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; 
x_8 = l_Lean_Expr_isFVar(x_1);
if (x_8 == 0)
{
uint8_t x_9; lean_object* x_10; lean_object* x_11; 
lean_dec(x_2);
x_9 = 0;
x_10 = lean_box(x_9);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_7);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_12 = l_Lean_Expr_fvarId_x21(x_1);
x_13 = l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1(x_2, x_12, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_12);
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
x_15 = lean_unbox(x_14);
lean_dec(x_14);
if (x_15 == 0)
{
uint8_t x_16; 
x_16 = !lean_is_exclusive(x_13);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; lean_object* x_19; 
x_17 = lean_ctor_get(x_13, 0);
lean_dec(x_17);
x_18 = 1;
x_19 = lean_box(x_18);
lean_ctor_set(x_13, 0, x_19);
return x_13;
}
else
{
lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; 
x_20 = lean_ctor_get(x_13, 1);
lean_inc(x_20);
lean_dec(x_13);
x_21 = 1;
x_22 = lean_box(x_21);
x_23 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_23, 0, x_22);
lean_ctor_set(x_23, 1, x_20);
return x_23;
}
}
else
{
uint8_t x_24; 
x_24 = !lean_is_exclusive(x_13);
if (x_24 == 0)
{
lean_object* x_25; uint8_t x_26; lean_object* x_27; 
x_25 = lean_ctor_get(x_13, 0);
lean_dec(x_25);
x_26 = 0;
x_27 = lean_box(x_26);
lean_ctor_set(x_13, 0, x_27);
return x_13;
}
else
{
lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; 
x_28 = lean_ctor_get(x_13, 1);
lean_inc(x_28);
lean_dec(x_13);
x_29 = 0;
x_30 = lean_box(x_29);
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_30);
lean_ctor_set(x_31, 1, x_28);
return x_31;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__4(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__7___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; 
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_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__7(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_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__8___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; 
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_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__8(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_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__6___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__6(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_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__9___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; 
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_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__9(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_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__5___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__5(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___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__3(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__2(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__12(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__15___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; 
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_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__15(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_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__16___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; 
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_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__16(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_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__14___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_PersistentArray_anyMAux___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__14(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_anyMUnsafe_any___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__17___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; 
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_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__17(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_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__13___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_PersistentArray_anyM___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__13(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___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__11(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__10(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
uint8_t x_12; lean_object* x_13; lean_object* x_14; 
x_12 = 0;
x_13 = l_Lean_mkIdentFrom(x_1, x_2, x_12);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_14 = lean_apply_8(x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec(x_14);
x_17 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52;
x_18 = lean_array_push(x_17, x_4);
x_19 = 1;
x_20 = 1;
x_21 = l_Lean_Meta_mkLambdaFVars(x_18, x_15, x_12, x_19, x_12, x_20, x_7, x_8, x_9, x_10, x_16);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
return x_21;
}
else
{
uint8_t x_22; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_4);
x_22 = !lean_is_exclusive(x_14);
if (x_22 == 0)
{
return x_14;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_14, 0);
x_24 = lean_ctor_get(x_14, 1);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_14);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set(x_25, 1, x_24);
return x_25;
}
}
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("h", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor(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; 
x_11 = l_Lean_Expr_isFVar(x_2);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_12 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__2;
x_13 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_12, x_8, x_9, x_10);
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 1);
lean_inc(x_15);
lean_dec(x_13);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_2);
x_16 = lean_infer_type(x_2, x_6, x_7, x_8, x_9, x_15);
if (lean_obj_tag(x_16) == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; 
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_16, 1);
lean_inc(x_18);
lean_dec(x_16);
lean_inc(x_14);
x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___lambda__1___boxed), 11, 3);
lean_closure_set(x_19, 0, x_1);
lean_closure_set(x_19, 1, x_14);
lean_closure_set(x_19, 2, x_3);
x_20 = 0;
x_21 = 0;
x_22 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_14, x_20, x_17, x_19, x_21, x_4, x_5, x_6, x_7, x_8, x_9, x_18);
if (lean_obj_tag(x_22) == 0)
{
uint8_t x_23; 
x_23 = !lean_is_exclusive(x_22);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_ctor_get(x_22, 0);
x_25 = l_Lean_Expr_app___override(x_24, x_2);
lean_ctor_set(x_22, 0, x_25);
return x_22;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_26 = lean_ctor_get(x_22, 0);
x_27 = lean_ctor_get(x_22, 1);
lean_inc(x_27);
lean_inc(x_26);
lean_dec(x_22);
x_28 = l_Lean_Expr_app___override(x_26, x_2);
x_29 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_27);
return x_29;
}
}
else
{
uint8_t x_30; 
lean_dec(x_2);
x_30 = !lean_is_exclusive(x_22);
if (x_30 == 0)
{
return x_22;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_22, 0);
x_32 = lean_ctor_get(x_22, 1);
lean_inc(x_32);
lean_inc(x_31);
lean_dec(x_22);
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;
}
}
}
else
{
uint8_t x_34; 
lean_dec(x_14);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_34 = !lean_is_exclusive(x_16);
if (x_34 == 0)
{
return x_16;
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_35 = lean_ctor_get(x_16, 0);
x_36 = lean_ctor_get(x_16, 1);
lean_inc(x_36);
lean_inc(x_35);
lean_dec(x_16);
x_37 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_37, 0, x_35);
lean_ctor_set(x_37, 1, x_36);
return x_37;
}
}
}
else
{
lean_object* x_38; 
lean_dec(x_2);
x_38 = lean_apply_8(x_3, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_38;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___lambda__1(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_1);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; 
x_11 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
lean_inc(x_1);
x_12 = lean_array_push(x_11, x_1);
x_13 = lean_array_push(x_12, x_3);
x_14 = lean_expr_instantiate1(x_2, x_1);
lean_dec(x_1);
x_15 = 0;
x_16 = 1;
x_17 = 1;
x_18 = l_Lean_Meta_mkLambdaFVars(x_13, x_14, x_15, x_16, x_15, x_17, x_6, x_7, x_8, x_9, x_10);
return x_18;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_11 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__2;
x_12 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_11, x_8, x_9, x_10);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_3);
x_15 = l_Lean_Meta_mkEq(x_1, x_3, x_6, x_7, x_8, x_9, x_14);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; 
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_15, 1);
lean_inc(x_17);
lean_dec(x_15);
x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__1___boxed), 10, 2);
lean_closure_set(x_18, 0, x_3);
lean_closure_set(x_18, 1, x_2);
x_19 = 0;
x_20 = 0;
x_21 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_13, x_19, x_16, x_18, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_17);
return x_21;
}
else
{
uint8_t x_22; 
lean_dec(x_13);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_22 = !lean_is_exclusive(x_15);
if (x_22 == 0)
{
return x_15;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_15, 0);
x_24 = lean_ctor_get(x_15, 1);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_15);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set(x_25, 1, x_24);
return x_25;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l_Lean_Meta_mkEqRec(x_1, x_2, x_3, x_7, x_8, x_9, x_10, x_11);
return x_12;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___lambda__4___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid `▸` notation, failed to compute motive for the substitution", 69, 67);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___lambda__4___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabSubst___lambda__4___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; 
x_15 = l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__2;
x_16 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_15, x_12, x_13, x_14);
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_16, 1);
lean_inc(x_18);
lean_dec(x_16);
x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__2), 10, 2);
lean_closure_set(x_19, 0, x_5);
lean_closure_set(x_19, 1, x_3);
x_20 = 0;
x_21 = 0;
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
x_22 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_17, x_20, x_1, x_19, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_18);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_22, 1);
lean_inc(x_24);
lean_dec(x_22);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_23);
x_25 = l_Lean_Meta_isTypeCorrect(x_23, x_10, x_11, x_12, x_13, x_24);
if (lean_obj_tag(x_25) == 0)
{
lean_object* x_26; uint8_t x_27; 
x_26 = lean_ctor_get(x_25, 0);
lean_inc(x_26);
x_27 = lean_unbox(x_26);
lean_dec(x_26);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; 
lean_dec(x_23);
lean_dec(x_4);
lean_dec(x_2);
x_28 = lean_ctor_get(x_25, 1);
lean_inc(x_28);
lean_dec(x_25);
x_29 = l_Lean_Elab_Term_elabSubst___lambda__4___closed__2;
x_30 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_29, x_8, x_9, x_10, x_11, x_12, x_13, x_28);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
x_31 = !lean_is_exclusive(x_30);
if (x_31 == 0)
{
return x_30;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_30, 0);
x_33 = lean_ctor_get(x_30, 1);
lean_inc(x_33);
lean_inc(x_32);
lean_dec(x_30);
x_34 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_34, 0, x_32);
lean_ctor_set(x_34, 1, x_33);
return x_34;
}
}
else
{
lean_object* x_35; lean_object* x_36; 
lean_dec(x_9);
lean_dec(x_8);
x_35 = lean_ctor_get(x_25, 1);
lean_inc(x_35);
lean_dec(x_25);
x_36 = l_Lean_Meta_mkEqRec(x_23, x_2, x_4, x_10, x_11, x_12, x_13, x_35);
return x_36;
}
}
else
{
uint8_t x_37; 
lean_dec(x_23);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_2);
x_37 = !lean_is_exclusive(x_25);
if (x_37 == 0)
{
return x_25;
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_38 = lean_ctor_get(x_25, 0);
x_39 = lean_ctor_get(x_25, 1);
lean_inc(x_39);
lean_inc(x_38);
lean_dec(x_25);
x_40 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_39);
return x_40;
}
}
}
else
{
uint8_t x_41; 
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_2);
x_41 = !lean_is_exclusive(x_22);
if (x_41 == 0)
{
return x_22;
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_42 = lean_ctor_get(x_22, 0);
x_43 = lean_ctor_get(x_22, 1);
lean_inc(x_43);
lean_inc(x_42);
lean_dec(x_22);
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;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; 
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
x_14 = l_Lean_Meta_mkEqSymm(x_3, x_9, x_10, x_11, x_12, x_13);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec(x_14);
x_17 = lean_box(0);
x_18 = lean_apply_12(x_1, x_2, x_15, x_5, x_4, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_16);
return x_18;
}
else
{
uint8_t x_19; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_19 = !lean_is_exclusive(x_14);
if (x_19 == 0)
{
return x_14;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_20 = lean_ctor_get(x_14, 0);
x_21 = lean_ctor_get(x_14, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_14);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___lambda__6___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tacticSeq1Indented", 18, 18);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___lambda__6___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l_Lean_Elab_Term_expandSuffices___closed__7;
x_4 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___lambda__6___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("subst", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___lambda__6___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l_Lean_Elab_Term_expandSuffices___closed__7;
x_4 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___lambda__6___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("exact", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___lambda__6___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l_Lean_Elab_Term_expandSuffices___closed__7;
x_4 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__5;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_12 = lean_ctor_get(x_9, 5);
lean_inc(x_12);
x_13 = 0;
x_14 = l_Lean_SourceInfo_fromRef(x_12, x_13);
lean_dec(x_12);
x_15 = lean_st_ref_get(x_10, x_11);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_17 = lean_ctor_get(x_15, 1);
x_18 = lean_ctor_get(x_15, 0);
lean_dec(x_18);
x_19 = l_Lean_Elab_Term_expandShow___closed__10;
lean_inc(x_14);
lean_ctor_set_tag(x_15, 2);
lean_ctor_set(x_15, 1, x_19);
lean_ctor_set(x_15, 0, x_14);
x_20 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__3;
lean_inc(x_14);
x_21 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_21, 0, x_14);
lean_ctor_set(x_21, 1, x_20);
x_22 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_14);
x_23 = l_Lean_Syntax_node1(x_14, x_22, x_1);
x_24 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__4;
lean_inc(x_14);
x_25 = l_Lean_Syntax_node2(x_14, x_24, x_21, x_23);
x_26 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_14);
x_27 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_27, 0, x_14);
lean_ctor_set(x_27, 1, x_26);
x_28 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__5;
lean_inc(x_14);
x_29 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_29, 0, x_14);
lean_ctor_set(x_29, 1, x_28);
x_30 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__6;
lean_inc(x_14);
x_31 = l_Lean_Syntax_node2(x_14, x_30, x_29, x_4);
lean_inc(x_14);
x_32 = l_Lean_Syntax_node3(x_14, x_22, x_25, x_27, x_31);
x_33 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__2;
lean_inc(x_14);
x_34 = l_Lean_Syntax_node1(x_14, x_33, x_32);
x_35 = l_Lean_Elab_Term_expandSuffices___closed__9;
lean_inc(x_14);
x_36 = l_Lean_Syntax_node1(x_14, x_35, x_34);
x_37 = l_Lean_Elab_Term_expandShow___closed__9;
x_38 = l_Lean_Syntax_node2(x_14, x_37, x_15, x_36);
x_39 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_39, 0, x_2);
x_40 = 1;
x_41 = lean_box(x_40);
x_42 = lean_box(x_40);
lean_inc(x_38);
x_43 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
lean_closure_set(x_43, 0, x_38);
lean_closure_set(x_43, 1, x_39);
lean_closure_set(x_43, 2, x_41);
lean_closure_set(x_43, 3, x_42);
x_44 = l_Lean_Elab_Term_withMacroExpansion___rarg(x_3, x_38, x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_17);
return x_44;
}
else
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 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; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; 
x_45 = lean_ctor_get(x_15, 1);
lean_inc(x_45);
lean_dec(x_15);
x_46 = l_Lean_Elab_Term_expandShow___closed__10;
lean_inc(x_14);
x_47 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_47, 0, x_14);
lean_ctor_set(x_47, 1, x_46);
x_48 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__3;
lean_inc(x_14);
x_49 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_49, 0, x_14);
lean_ctor_set(x_49, 1, x_48);
x_50 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_14);
x_51 = l_Lean_Syntax_node1(x_14, x_50, x_1);
x_52 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__4;
lean_inc(x_14);
x_53 = l_Lean_Syntax_node2(x_14, x_52, x_49, x_51);
x_54 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_14);
x_55 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_55, 0, x_14);
lean_ctor_set(x_55, 1, x_54);
x_56 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__5;
lean_inc(x_14);
x_57 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_57, 0, x_14);
lean_ctor_set(x_57, 1, x_56);
x_58 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__6;
lean_inc(x_14);
x_59 = l_Lean_Syntax_node2(x_14, x_58, x_57, x_4);
lean_inc(x_14);
x_60 = l_Lean_Syntax_node3(x_14, x_50, x_53, x_55, x_59);
x_61 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__2;
lean_inc(x_14);
x_62 = l_Lean_Syntax_node1(x_14, x_61, x_60);
x_63 = l_Lean_Elab_Term_expandSuffices___closed__9;
lean_inc(x_14);
x_64 = l_Lean_Syntax_node1(x_14, x_63, x_62);
x_65 = l_Lean_Elab_Term_expandShow___closed__9;
x_66 = l_Lean_Syntax_node2(x_14, x_65, x_47, x_64);
x_67 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_67, 0, x_2);
x_68 = 1;
x_69 = lean_box(x_68);
x_70 = lean_box(x_68);
lean_inc(x_66);
x_71 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
lean_closure_set(x_71, 0, x_66);
lean_closure_set(x_71, 1, x_67);
lean_closure_set(x_71, 2, x_69);
lean_closure_set(x_71, 3, x_70);
x_72 = l_Lean_Elab_Term_withMacroExpansion___rarg(x_3, x_66, x_71, x_5, x_6, x_7, x_8, x_9, x_10, x_45);
return x_72;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; uint8_t x_14; 
x_13 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_15 = lean_ctor_get(x_13, 0);
x_16 = lean_ctor_get(x_13, 1);
x_17 = l_Lean_Expr_hasMVar(x_15);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; 
lean_free_object(x_13);
x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__6), 11, 3);
lean_closure_set(x_18, 0, x_5);
lean_closure_set(x_18, 1, x_2);
lean_closure_set(x_18, 2, x_3);
x_19 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor(x_4, x_15, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_16);
return x_19;
}
else
{
lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
lean_dec(x_15);
x_20 = lean_ctor_get(x_10, 5);
lean_inc(x_20);
x_21 = 0;
x_22 = l_Lean_SourceInfo_fromRef(x_20, x_21);
lean_dec(x_20);
x_23 = lean_st_ref_get(x_11, x_16);
x_24 = !lean_is_exclusive(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_25 = lean_ctor_get(x_23, 1);
x_26 = lean_ctor_get(x_23, 0);
lean_dec(x_26);
x_27 = l_Lean_Elab_Term_expandShow___closed__10;
lean_inc(x_22);
lean_ctor_set_tag(x_23, 2);
lean_ctor_set(x_23, 1, x_27);
lean_ctor_set(x_23, 0, x_22);
x_28 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__3;
lean_inc(x_22);
lean_ctor_set_tag(x_13, 2);
lean_ctor_set(x_13, 1, x_28);
lean_ctor_set(x_13, 0, x_22);
x_29 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_22);
x_30 = l_Lean_Syntax_node1(x_22, x_29, x_5);
x_31 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__4;
lean_inc(x_22);
x_32 = l_Lean_Syntax_node2(x_22, x_31, x_13, x_30);
x_33 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_22);
x_34 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_34, 0, x_22);
lean_ctor_set(x_34, 1, x_33);
x_35 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__5;
lean_inc(x_22);
x_36 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_36, 0, x_22);
lean_ctor_set(x_36, 1, x_35);
x_37 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__6;
lean_inc(x_22);
x_38 = l_Lean_Syntax_node2(x_22, x_37, x_36, x_4);
lean_inc(x_22);
x_39 = l_Lean_Syntax_node3(x_22, x_29, x_32, x_34, x_38);
x_40 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__2;
lean_inc(x_22);
x_41 = l_Lean_Syntax_node1(x_22, x_40, x_39);
x_42 = l_Lean_Elab_Term_expandSuffices___closed__9;
lean_inc(x_22);
x_43 = l_Lean_Syntax_node1(x_22, x_42, x_41);
x_44 = l_Lean_Elab_Term_expandShow___closed__9;
x_45 = l_Lean_Syntax_node2(x_22, x_44, x_23, x_43);
x_46 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_46, 0, x_2);
x_47 = 1;
x_48 = lean_box(x_47);
x_49 = lean_box(x_47);
lean_inc(x_45);
x_50 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
lean_closure_set(x_50, 0, x_45);
lean_closure_set(x_50, 1, x_46);
lean_closure_set(x_50, 2, x_48);
lean_closure_set(x_50, 3, x_49);
x_51 = l_Lean_Elab_Term_withMacroExpansion___rarg(x_3, x_45, x_50, x_6, x_7, x_8, x_9, x_10, x_11, x_25);
return x_51;
}
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; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; 
x_52 = lean_ctor_get(x_23, 1);
lean_inc(x_52);
lean_dec(x_23);
x_53 = l_Lean_Elab_Term_expandShow___closed__10;
lean_inc(x_22);
x_54 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_54, 0, x_22);
lean_ctor_set(x_54, 1, x_53);
x_55 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__3;
lean_inc(x_22);
lean_ctor_set_tag(x_13, 2);
lean_ctor_set(x_13, 1, x_55);
lean_ctor_set(x_13, 0, x_22);
x_56 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_22);
x_57 = l_Lean_Syntax_node1(x_22, x_56, x_5);
x_58 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__4;
lean_inc(x_22);
x_59 = l_Lean_Syntax_node2(x_22, x_58, x_13, x_57);
x_60 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_22);
x_61 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_61, 0, x_22);
lean_ctor_set(x_61, 1, x_60);
x_62 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__5;
lean_inc(x_22);
x_63 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_63, 0, x_22);
lean_ctor_set(x_63, 1, x_62);
x_64 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__6;
lean_inc(x_22);
x_65 = l_Lean_Syntax_node2(x_22, x_64, x_63, x_4);
lean_inc(x_22);
x_66 = l_Lean_Syntax_node3(x_22, x_56, x_59, x_61, x_65);
x_67 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__2;
lean_inc(x_22);
x_68 = l_Lean_Syntax_node1(x_22, x_67, x_66);
x_69 = l_Lean_Elab_Term_expandSuffices___closed__9;
lean_inc(x_22);
x_70 = l_Lean_Syntax_node1(x_22, x_69, x_68);
x_71 = l_Lean_Elab_Term_expandShow___closed__9;
x_72 = l_Lean_Syntax_node2(x_22, x_71, x_54, x_70);
x_73 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_73, 0, x_2);
x_74 = 1;
x_75 = lean_box(x_74);
x_76 = lean_box(x_74);
lean_inc(x_72);
x_77 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
lean_closure_set(x_77, 0, x_72);
lean_closure_set(x_77, 1, x_73);
lean_closure_set(x_77, 2, x_75);
lean_closure_set(x_77, 3, x_76);
x_78 = l_Lean_Elab_Term_withMacroExpansion___rarg(x_3, x_72, x_77, x_6, x_7, x_8, x_9, x_10, x_11, x_52);
return x_78;
}
}
}
else
{
lean_object* x_79; lean_object* x_80; uint8_t x_81; 
x_79 = lean_ctor_get(x_13, 0);
x_80 = lean_ctor_get(x_13, 1);
lean_inc(x_80);
lean_inc(x_79);
lean_dec(x_13);
x_81 = l_Lean_Expr_hasMVar(x_79);
if (x_81 == 0)
{
lean_object* x_82; lean_object* x_83; 
x_82 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__6), 11, 3);
lean_closure_set(x_82, 0, x_5);
lean_closure_set(x_82, 1, x_2);
lean_closure_set(x_82, 2, x_3);
x_83 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor(x_4, x_79, x_82, x_6, x_7, x_8, x_9, x_10, x_11, x_80);
return x_83;
}
else
{
lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; 
lean_dec(x_79);
x_84 = lean_ctor_get(x_10, 5);
lean_inc(x_84);
x_85 = 0;
x_86 = l_Lean_SourceInfo_fromRef(x_84, x_85);
lean_dec(x_84);
x_87 = lean_st_ref_get(x_11, x_80);
x_88 = lean_ctor_get(x_87, 1);
lean_inc(x_88);
if (lean_is_exclusive(x_87)) {
 lean_ctor_release(x_87, 0);
 lean_ctor_release(x_87, 1);
 x_89 = x_87;
} else {
 lean_dec_ref(x_87);
 x_89 = lean_box(0);
}
x_90 = l_Lean_Elab_Term_expandShow___closed__10;
lean_inc(x_86);
if (lean_is_scalar(x_89)) {
 x_91 = lean_alloc_ctor(2, 2, 0);
} else {
 x_91 = x_89;
 lean_ctor_set_tag(x_91, 2);
}
lean_ctor_set(x_91, 0, x_86);
lean_ctor_set(x_91, 1, x_90);
x_92 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__3;
lean_inc(x_86);
x_93 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_93, 0, x_86);
lean_ctor_set(x_93, 1, x_92);
x_94 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3;
lean_inc(x_86);
x_95 = l_Lean_Syntax_node1(x_86, x_94, x_5);
x_96 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__4;
lean_inc(x_86);
x_97 = l_Lean_Syntax_node2(x_86, x_96, x_93, x_95);
x_98 = l_Lean_Elab_Term_elabShow___closed__13;
lean_inc(x_86);
x_99 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_99, 0, x_86);
lean_ctor_set(x_99, 1, x_98);
x_100 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__5;
lean_inc(x_86);
x_101 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_101, 0, x_86);
lean_ctor_set(x_101, 1, x_100);
x_102 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__6;
lean_inc(x_86);
x_103 = l_Lean_Syntax_node2(x_86, x_102, x_101, x_4);
lean_inc(x_86);
x_104 = l_Lean_Syntax_node3(x_86, x_94, x_97, x_99, x_103);
x_105 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__2;
lean_inc(x_86);
x_106 = l_Lean_Syntax_node1(x_86, x_105, x_104);
x_107 = l_Lean_Elab_Term_expandSuffices___closed__9;
lean_inc(x_86);
x_108 = l_Lean_Syntax_node1(x_86, x_107, x_106);
x_109 = l_Lean_Elab_Term_expandShow___closed__9;
x_110 = l_Lean_Syntax_node2(x_86, x_109, x_91, x_108);
x_111 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_111, 0, x_2);
x_112 = 1;
x_113 = lean_box(x_112);
x_114 = lean_box(x_112);
lean_inc(x_110);
x_115 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
lean_closure_set(x_115, 0, x_110);
lean_closure_set(x_115, 1, x_111);
lean_closure_set(x_115, 2, x_113);
lean_closure_set(x_115, 3, x_114);
x_116 = l_Lean_Elab_Term_withMacroExpansion___rarg(x_3, x_110, x_115, x_6, x_7, x_8, x_9, x_10, x_11, x_88);
return x_116;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_15 = l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__2;
x_16 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_15, x_12, x_13, x_14);
x_17 = !lean_is_exclusive(x_16);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; 
x_18 = lean_ctor_get(x_16, 0);
x_19 = lean_ctor_get(x_16, 1);
x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__2), 10, 2);
lean_closure_set(x_20, 0, x_1);
lean_closure_set(x_20, 1, x_2);
x_21 = 0;
x_22 = 0;
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
x_23 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_18, x_21, x_3, x_20, x_22, x_8, x_9, x_10, x_11, x_12, x_13, x_19);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = lean_ctor_get(x_23, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_23, 1);
lean_inc(x_25);
lean_dec(x_23);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_24);
x_26 = l_Lean_Meta_isTypeCorrect(x_24, x_10, x_11, x_12, x_13, x_25);
if (lean_obj_tag(x_26) == 0)
{
lean_object* x_27; uint8_t x_28; 
x_27 = lean_ctor_get(x_26, 0);
lean_inc(x_27);
x_28 = lean_unbox(x_27);
lean_dec(x_27);
if (x_28 == 0)
{
uint8_t x_29; 
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
x_29 = !lean_is_exclusive(x_26);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; 
x_30 = lean_ctor_get(x_26, 0);
lean_dec(x_30);
x_31 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_31, 0, x_24);
lean_ctor_set(x_16, 1, x_31);
lean_ctor_set(x_16, 0, x_4);
lean_ctor_set(x_26, 0, x_16);
return x_26;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_32 = lean_ctor_get(x_26, 1);
lean_inc(x_32);
lean_dec(x_26);
x_33 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_33, 0, x_24);
lean_ctor_set(x_16, 1, x_33);
lean_ctor_set(x_16, 0, x_4);
x_34 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_34, 0, x_16);
lean_ctor_set(x_34, 1, x_32);
return x_34;
}
}
else
{
lean_object* x_35; lean_object* x_36; 
x_35 = lean_ctor_get(x_26, 1);
lean_inc(x_35);
lean_dec(x_26);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
x_36 = l_Lean_Meta_mkEqSymm(x_5, x_10, x_11, x_12, x_13, x_35);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_37 = lean_ctor_get(x_36, 0);
lean_inc(x_37);
x_38 = lean_ctor_get(x_36, 1);
lean_inc(x_38);
lean_dec(x_36);
x_39 = l_Lean_Meta_mkEqRec(x_24, x_4, x_37, x_10, x_11, x_12, x_13, x_38);
if (lean_obj_tag(x_39) == 0)
{
uint8_t x_40; 
x_40 = !lean_is_exclusive(x_39);
if (x_40 == 0)
{
lean_object* x_41; 
x_41 = lean_ctor_get(x_39, 0);
lean_ctor_set(x_16, 1, x_6);
lean_ctor_set(x_16, 0, x_41);
lean_ctor_set(x_39, 0, x_16);
return x_39;
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_42 = lean_ctor_get(x_39, 0);
x_43 = lean_ctor_get(x_39, 1);
lean_inc(x_43);
lean_inc(x_42);
lean_dec(x_39);
lean_ctor_set(x_16, 1, x_6);
lean_ctor_set(x_16, 0, x_42);
x_44 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_44, 0, x_16);
lean_ctor_set(x_44, 1, x_43);
return x_44;
}
}
else
{
uint8_t x_45; 
lean_free_object(x_16);
lean_dec(x_6);
x_45 = !lean_is_exclusive(x_39);
if (x_45 == 0)
{
return x_39;
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = lean_ctor_get(x_39, 0);
x_47 = lean_ctor_get(x_39, 1);
lean_inc(x_47);
lean_inc(x_46);
lean_dec(x_39);
x_48 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_48, 0, x_46);
lean_ctor_set(x_48, 1, x_47);
return x_48;
}
}
}
else
{
uint8_t x_49; 
lean_dec(x_24);
lean_free_object(x_16);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_4);
x_49 = !lean_is_exclusive(x_36);
if (x_49 == 0)
{
return x_36;
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_50 = lean_ctor_get(x_36, 0);
x_51 = lean_ctor_get(x_36, 1);
lean_inc(x_51);
lean_inc(x_50);
lean_dec(x_36);
x_52 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_52, 0, x_50);
lean_ctor_set(x_52, 1, x_51);
return x_52;
}
}
}
}
else
{
uint8_t x_53; 
lean_dec(x_24);
lean_free_object(x_16);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_53 = !lean_is_exclusive(x_26);
if (x_53 == 0)
{
return x_26;
}
else
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_54 = lean_ctor_get(x_26, 0);
x_55 = lean_ctor_get(x_26, 1);
lean_inc(x_55);
lean_inc(x_54);
lean_dec(x_26);
x_56 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_56, 0, x_54);
lean_ctor_set(x_56, 1, x_55);
return x_56;
}
}
}
else
{
uint8_t x_57; 
lean_free_object(x_16);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_57 = !lean_is_exclusive(x_23);
if (x_57 == 0)
{
return x_23;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_58 = lean_ctor_get(x_23, 0);
x_59 = lean_ctor_get(x_23, 1);
lean_inc(x_59);
lean_inc(x_58);
lean_dec(x_23);
x_60 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_60, 0, x_58);
lean_ctor_set(x_60, 1, x_59);
return x_60;
}
}
}
else
{
lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; uint8_t x_65; lean_object* x_66; 
x_61 = lean_ctor_get(x_16, 0);
x_62 = lean_ctor_get(x_16, 1);
lean_inc(x_62);
lean_inc(x_61);
lean_dec(x_16);
x_63 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__2), 10, 2);
lean_closure_set(x_63, 0, x_1);
lean_closure_set(x_63, 1, x_2);
x_64 = 0;
x_65 = 0;
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
x_66 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_61, x_64, x_3, x_63, x_65, x_8, x_9, x_10, x_11, x_12, x_13, x_62);
if (lean_obj_tag(x_66) == 0)
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_ctor_get(x_66, 0);
lean_inc(x_67);
x_68 = lean_ctor_get(x_66, 1);
lean_inc(x_68);
lean_dec(x_66);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_67);
x_69 = l_Lean_Meta_isTypeCorrect(x_67, x_10, x_11, x_12, x_13, x_68);
if (lean_obj_tag(x_69) == 0)
{
lean_object* x_70; uint8_t x_71; 
x_70 = lean_ctor_get(x_69, 0);
lean_inc(x_70);
x_71 = lean_unbox(x_70);
lean_dec(x_70);
if (x_71 == 0)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; 
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
x_72 = lean_ctor_get(x_69, 1);
lean_inc(x_72);
if (lean_is_exclusive(x_69)) {
 lean_ctor_release(x_69, 0);
 lean_ctor_release(x_69, 1);
 x_73 = x_69;
} else {
 lean_dec_ref(x_69);
 x_73 = lean_box(0);
}
x_74 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_74, 0, x_67);
x_75 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_75, 0, x_4);
lean_ctor_set(x_75, 1, x_74);
if (lean_is_scalar(x_73)) {
 x_76 = lean_alloc_ctor(0, 2, 0);
} else {
 x_76 = x_73;
}
lean_ctor_set(x_76, 0, x_75);
lean_ctor_set(x_76, 1, x_72);
return x_76;
}
else
{
lean_object* x_77; lean_object* x_78; 
x_77 = lean_ctor_get(x_69, 1);
lean_inc(x_77);
lean_dec(x_69);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
x_78 = l_Lean_Meta_mkEqSymm(x_5, x_10, x_11, x_12, x_13, x_77);
if (lean_obj_tag(x_78) == 0)
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; 
x_79 = lean_ctor_get(x_78, 0);
lean_inc(x_79);
x_80 = lean_ctor_get(x_78, 1);
lean_inc(x_80);
lean_dec(x_78);
x_81 = l_Lean_Meta_mkEqRec(x_67, x_4, x_79, x_10, x_11, x_12, x_13, x_80);
if (lean_obj_tag(x_81) == 0)
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; 
x_82 = lean_ctor_get(x_81, 0);
lean_inc(x_82);
x_83 = lean_ctor_get(x_81, 1);
lean_inc(x_83);
if (lean_is_exclusive(x_81)) {
 lean_ctor_release(x_81, 0);
 lean_ctor_release(x_81, 1);
 x_84 = x_81;
} else {
 lean_dec_ref(x_81);
 x_84 = lean_box(0);
}
x_85 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_85, 0, x_82);
lean_ctor_set(x_85, 1, x_6);
if (lean_is_scalar(x_84)) {
 x_86 = lean_alloc_ctor(0, 2, 0);
} else {
 x_86 = x_84;
}
lean_ctor_set(x_86, 0, x_85);
lean_ctor_set(x_86, 1, x_83);
return x_86;
}
else
{
lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_6);
x_87 = lean_ctor_get(x_81, 0);
lean_inc(x_87);
x_88 = lean_ctor_get(x_81, 1);
lean_inc(x_88);
if (lean_is_exclusive(x_81)) {
 lean_ctor_release(x_81, 0);
 lean_ctor_release(x_81, 1);
 x_89 = x_81;
} else {
 lean_dec_ref(x_81);
 x_89 = lean_box(0);
}
if (lean_is_scalar(x_89)) {
 x_90 = lean_alloc_ctor(1, 2, 0);
} else {
 x_90 = x_89;
}
lean_ctor_set(x_90, 0, x_87);
lean_ctor_set(x_90, 1, x_88);
return x_90;
}
}
else
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
lean_dec(x_67);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_4);
x_91 = lean_ctor_get(x_78, 0);
lean_inc(x_91);
x_92 = lean_ctor_get(x_78, 1);
lean_inc(x_92);
if (lean_is_exclusive(x_78)) {
 lean_ctor_release(x_78, 0);
 lean_ctor_release(x_78, 1);
 x_93 = x_78;
} else {
 lean_dec_ref(x_78);
 x_93 = lean_box(0);
}
if (lean_is_scalar(x_93)) {
 x_94 = lean_alloc_ctor(1, 2, 0);
} else {
 x_94 = x_93;
}
lean_ctor_set(x_94, 0, x_91);
lean_ctor_set(x_94, 1, x_92);
return x_94;
}
}
}
else
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
lean_dec(x_67);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_95 = lean_ctor_get(x_69, 0);
lean_inc(x_95);
x_96 = lean_ctor_get(x_69, 1);
lean_inc(x_96);
if (lean_is_exclusive(x_69)) {
 lean_ctor_release(x_69, 0);
 lean_ctor_release(x_69, 1);
 x_97 = x_69;
} else {
 lean_dec_ref(x_69);
 x_97 = lean_box(0);
}
if (lean_is_scalar(x_97)) {
 x_98 = lean_alloc_ctor(1, 2, 0);
} else {
 x_98 = x_97;
}
lean_ctor_set(x_98, 0, x_95);
lean_ctor_set(x_98, 1, x_96);
return x_98;
}
}
else
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; 
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_99 = lean_ctor_get(x_66, 0);
lean_inc(x_99);
x_100 = lean_ctor_get(x_66, 1);
lean_inc(x_100);
if (lean_is_exclusive(x_66)) {
 lean_ctor_release(x_66, 0);
 lean_ctor_release(x_66, 1);
 x_101 = x_66;
} else {
 lean_dec_ref(x_66);
 x_101 = lean_box(0);
}
if (lean_is_scalar(x_101)) {
 x_102 = lean_alloc_ctor(1, 2, 0);
} else {
 x_102 = x_101;
}
lean_ctor_set(x_102, 0, x_99);
lean_ctor_set(x_102, 1, x_100);
return x_102;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) {
_start:
{
lean_object* x_18; lean_object* x_19; 
x_18 = lean_expr_instantiate1(x_1, x_2);
lean_inc(x_16);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
x_19 = l_Lean_Meta_isExprDefEq(x_3, x_18, x_13, x_14, x_15, x_16, x_17);
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_20; uint8_t x_21; 
x_20 = lean_ctor_get(x_19, 0);
lean_inc(x_20);
x_21 = lean_unbox(x_20);
lean_dec(x_20);
if (x_21 == 0)
{
uint8_t x_22; 
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_1);
x_22 = !lean_is_exclusive(x_19);
if (x_22 == 0)
{
lean_object* x_23; 
x_23 = lean_ctor_get(x_19, 0);
lean_dec(x_23);
lean_ctor_set_tag(x_19, 1);
lean_ctor_set(x_19, 0, x_4);
return x_19;
}
else
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_ctor_get(x_19, 1);
lean_inc(x_24);
lean_dec(x_19);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_4);
lean_ctor_set(x_25, 1, x_24);
return x_25;
}
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
lean_dec(x_4);
x_26 = lean_ctor_get(x_19, 1);
lean_inc(x_26);
lean_dec(x_19);
x_27 = lean_box(0);
x_28 = l_Lean_Elab_Term_elabSubst___lambda__8(x_5, x_1, x_6, x_7, x_8, x_9, x_27, x_11, x_12, x_13, x_14, x_15, x_16, x_26);
return x_28;
}
}
else
{
uint8_t x_29; 
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_29 = !lean_is_exclusive(x_19);
if (x_29 == 0)
{
return x_19;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_19, 0);
x_31 = lean_ctor_get(x_19, 1);
lean_inc(x_31);
lean_inc(x_30);
lean_dec(x_19);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
return x_32;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) {
_start:
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; 
x_19 = lean_expr_instantiate1(x_7, x_9);
lean_inc(x_19);
x_20 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_20, 0, x_19);
x_70 = lean_ctor_get(x_16, 0);
lean_inc(x_70);
x_71 = lean_ctor_get(x_16, 1);
lean_inc(x_71);
x_72 = lean_ctor_get(x_16, 2);
lean_inc(x_72);
x_73 = lean_ctor_get(x_16, 3);
lean_inc(x_73);
x_74 = lean_ctor_get(x_16, 4);
lean_inc(x_74);
x_75 = lean_ctor_get(x_16, 5);
lean_inc(x_75);
x_76 = lean_ctor_get(x_16, 6);
lean_inc(x_76);
x_77 = lean_ctor_get(x_16, 7);
lean_inc(x_77);
x_78 = lean_ctor_get(x_16, 8);
lean_inc(x_78);
x_79 = lean_ctor_get(x_16, 9);
lean_inc(x_79);
x_80 = lean_ctor_get(x_16, 10);
lean_inc(x_80);
x_81 = lean_ctor_get_uint8(x_16, sizeof(void*)*12);
x_82 = lean_ctor_get(x_16, 11);
lean_inc(x_82);
x_83 = lean_ctor_get_uint8(x_16, sizeof(void*)*12 + 1);
x_84 = l_Lean_replaceRef(x_4, x_75);
lean_dec(x_75);
x_85 = lean_alloc_ctor(0, 12, 2);
lean_ctor_set(x_85, 0, x_70);
lean_ctor_set(x_85, 1, x_71);
lean_ctor_set(x_85, 2, x_72);
lean_ctor_set(x_85, 3, x_73);
lean_ctor_set(x_85, 4, x_74);
lean_ctor_set(x_85, 5, x_84);
lean_ctor_set(x_85, 6, x_76);
lean_ctor_set(x_85, 7, x_77);
lean_ctor_set(x_85, 8, x_78);
lean_ctor_set(x_85, 9, x_79);
lean_ctor_set(x_85, 10, x_80);
lean_ctor_set(x_85, 11, x_82);
lean_ctor_set_uint8(x_85, sizeof(void*)*12, x_81);
lean_ctor_set_uint8(x_85, sizeof(void*)*12 + 1, x_83);
x_86 = 1;
lean_inc(x_17);
lean_inc(x_85);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_20);
lean_inc(x_4);
x_87 = l_Lean_Elab_Term_elabTerm(x_4, x_20, x_86, x_86, x_12, x_13, x_14, x_15, x_85, x_17, x_18);
if (lean_obj_tag(x_87) == 0)
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; 
x_88 = lean_ctor_get(x_87, 0);
lean_inc(x_88);
x_89 = lean_ctor_get(x_87, 1);
lean_inc(x_89);
lean_dec(x_87);
lean_inc(x_17);
lean_inc(x_85);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
lean_inc_n(x_6, 2);
lean_inc(x_88);
x_90 = l_Lean_Elab_Term_ensureHasType(x_20, x_88, x_6, x_6, x_12, x_13, x_14, x_15, x_85, x_17, x_89);
if (lean_obj_tag(x_90) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; 
lean_dec(x_88);
lean_dec(x_85);
lean_dec(x_19);
x_91 = lean_ctor_get(x_90, 0);
lean_inc(x_91);
x_92 = lean_ctor_get(x_90, 1);
lean_inc(x_92);
lean_dec(x_90);
x_93 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_93, 0, x_91);
lean_ctor_set(x_93, 1, x_6);
x_21 = x_93;
x_22 = x_92;
goto block_69;
}
else
{
uint8_t x_94; 
x_94 = !lean_is_exclusive(x_90);
if (x_94 == 0)
{
lean_object* x_95; lean_object* x_96; uint8_t x_97; 
x_95 = lean_ctor_get(x_90, 0);
x_96 = lean_ctor_get(x_90, 1);
x_97 = l_Lean_Exception_isInterrupt(x_95);
if (x_97 == 0)
{
uint8_t x_98; 
x_98 = l_Lean_Exception_isRuntime(x_95);
if (x_98 == 0)
{
lean_object* x_99; 
lean_free_object(x_90);
lean_inc(x_17);
lean_inc(x_85);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_88);
x_99 = lean_infer_type(x_88, x_14, x_15, x_85, x_17, x_96);
if (lean_obj_tag(x_99) == 0)
{
lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; 
x_100 = lean_ctor_get(x_99, 0);
lean_inc(x_100);
x_101 = lean_ctor_get(x_99, 1);
lean_inc(x_101);
lean_dec(x_99);
x_102 = lean_box(0);
lean_inc(x_17);
lean_inc(x_85);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_10);
x_103 = l_Lean_Meta_kabstract(x_100, x_10, x_102, x_14, x_15, x_85, x_17, x_101);
if (lean_obj_tag(x_103) == 0)
{
uint8_t x_104; 
x_104 = !lean_is_exclusive(x_103);
if (x_104 == 0)
{
lean_object* x_105; lean_object* x_106; uint8_t x_107; 
x_105 = lean_ctor_get(x_103, 0);
x_106 = lean_ctor_get(x_103, 1);
x_107 = l_Lean_Expr_hasLooseBVars(x_105);
if (x_107 == 0)
{
lean_dec(x_105);
lean_dec(x_88);
lean_dec(x_85);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
lean_ctor_set_tag(x_103, 1);
lean_ctor_set(x_103, 0, x_95);
return x_103;
}
else
{
lean_object* x_108; lean_object* x_109; 
lean_free_object(x_103);
x_108 = lean_box(0);
lean_inc(x_17);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_8);
lean_inc(x_1);
lean_inc(x_10);
x_109 = l_Lean_Elab_Term_elabSubst___lambda__9(x_105, x_9, x_19, x_95, x_10, x_1, x_88, x_8, x_6, x_108, x_12, x_13, x_14, x_15, x_85, x_17, x_106);
if (lean_obj_tag(x_109) == 0)
{
lean_object* x_110; lean_object* x_111; 
x_110 = lean_ctor_get(x_109, 0);
lean_inc(x_110);
x_111 = lean_ctor_get(x_109, 1);
lean_inc(x_111);
lean_dec(x_109);
x_21 = x_110;
x_22 = x_111;
goto block_69;
}
else
{
uint8_t x_112; 
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_112 = !lean_is_exclusive(x_109);
if (x_112 == 0)
{
return x_109;
}
else
{
lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_113 = lean_ctor_get(x_109, 0);
x_114 = lean_ctor_get(x_109, 1);
lean_inc(x_114);
lean_inc(x_113);
lean_dec(x_109);
x_115 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_115, 0, x_113);
lean_ctor_set(x_115, 1, x_114);
return x_115;
}
}
}
}
else
{
lean_object* x_116; lean_object* x_117; uint8_t x_118; 
x_116 = lean_ctor_get(x_103, 0);
x_117 = lean_ctor_get(x_103, 1);
lean_inc(x_117);
lean_inc(x_116);
lean_dec(x_103);
x_118 = l_Lean_Expr_hasLooseBVars(x_116);
if (x_118 == 0)
{
lean_object* x_119; 
lean_dec(x_116);
lean_dec(x_88);
lean_dec(x_85);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_119 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_119, 0, x_95);
lean_ctor_set(x_119, 1, x_117);
return x_119;
}
else
{
lean_object* x_120; lean_object* x_121; 
x_120 = lean_box(0);
lean_inc(x_17);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_8);
lean_inc(x_1);
lean_inc(x_10);
x_121 = l_Lean_Elab_Term_elabSubst___lambda__9(x_116, x_9, x_19, x_95, x_10, x_1, x_88, x_8, x_6, x_120, x_12, x_13, x_14, x_15, x_85, x_17, x_117);
if (lean_obj_tag(x_121) == 0)
{
lean_object* x_122; lean_object* x_123; 
x_122 = lean_ctor_get(x_121, 0);
lean_inc(x_122);
x_123 = lean_ctor_get(x_121, 1);
lean_inc(x_123);
lean_dec(x_121);
x_21 = x_122;
x_22 = x_123;
goto block_69;
}
else
{
lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; 
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_124 = lean_ctor_get(x_121, 0);
lean_inc(x_124);
x_125 = lean_ctor_get(x_121, 1);
lean_inc(x_125);
if (lean_is_exclusive(x_121)) {
 lean_ctor_release(x_121, 0);
 lean_ctor_release(x_121, 1);
 x_126 = x_121;
} else {
 lean_dec_ref(x_121);
 x_126 = lean_box(0);
}
if (lean_is_scalar(x_126)) {
 x_127 = lean_alloc_ctor(1, 2, 0);
} else {
 x_127 = x_126;
}
lean_ctor_set(x_127, 0, x_124);
lean_ctor_set(x_127, 1, x_125);
return x_127;
}
}
}
}
else
{
uint8_t x_128; 
lean_dec(x_95);
lean_dec(x_88);
lean_dec(x_85);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_128 = !lean_is_exclusive(x_103);
if (x_128 == 0)
{
return x_103;
}
else
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; 
x_129 = lean_ctor_get(x_103, 0);
x_130 = lean_ctor_get(x_103, 1);
lean_inc(x_130);
lean_inc(x_129);
lean_dec(x_103);
x_131 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_131, 0, x_129);
lean_ctor_set(x_131, 1, x_130);
return x_131;
}
}
}
else
{
uint8_t x_132; 
lean_dec(x_95);
lean_dec(x_88);
lean_dec(x_85);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_132 = !lean_is_exclusive(x_99);
if (x_132 == 0)
{
return x_99;
}
else
{
lean_object* x_133; lean_object* x_134; lean_object* x_135; 
x_133 = lean_ctor_get(x_99, 0);
x_134 = lean_ctor_get(x_99, 1);
lean_inc(x_134);
lean_inc(x_133);
lean_dec(x_99);
x_135 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_135, 0, x_133);
lean_ctor_set(x_135, 1, x_134);
return x_135;
}
}
}
else
{
lean_dec(x_88);
lean_dec(x_85);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_90;
}
}
else
{
lean_dec(x_88);
lean_dec(x_85);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_90;
}
}
else
{
lean_object* x_136; lean_object* x_137; uint8_t x_138; 
x_136 = lean_ctor_get(x_90, 0);
x_137 = lean_ctor_get(x_90, 1);
lean_inc(x_137);
lean_inc(x_136);
lean_dec(x_90);
x_138 = l_Lean_Exception_isInterrupt(x_136);
if (x_138 == 0)
{
uint8_t x_139; 
x_139 = l_Lean_Exception_isRuntime(x_136);
if (x_139 == 0)
{
lean_object* x_140; 
lean_inc(x_17);
lean_inc(x_85);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_88);
x_140 = lean_infer_type(x_88, x_14, x_15, x_85, x_17, x_137);
if (lean_obj_tag(x_140) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_141 = lean_ctor_get(x_140, 0);
lean_inc(x_141);
x_142 = lean_ctor_get(x_140, 1);
lean_inc(x_142);
lean_dec(x_140);
x_143 = lean_box(0);
lean_inc(x_17);
lean_inc(x_85);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_10);
x_144 = l_Lean_Meta_kabstract(x_141, x_10, x_143, x_14, x_15, x_85, x_17, x_142);
if (lean_obj_tag(x_144) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; 
x_145 = lean_ctor_get(x_144, 0);
lean_inc(x_145);
x_146 = lean_ctor_get(x_144, 1);
lean_inc(x_146);
if (lean_is_exclusive(x_144)) {
 lean_ctor_release(x_144, 0);
 lean_ctor_release(x_144, 1);
 x_147 = x_144;
} else {
 lean_dec_ref(x_144);
 x_147 = lean_box(0);
}
x_148 = l_Lean_Expr_hasLooseBVars(x_145);
if (x_148 == 0)
{
lean_object* x_149; 
lean_dec(x_145);
lean_dec(x_88);
lean_dec(x_85);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_147)) {
 x_149 = lean_alloc_ctor(1, 2, 0);
} else {
 x_149 = x_147;
 lean_ctor_set_tag(x_149, 1);
}
lean_ctor_set(x_149, 0, x_136);
lean_ctor_set(x_149, 1, x_146);
return x_149;
}
else
{
lean_object* x_150; lean_object* x_151; 
lean_dec(x_147);
x_150 = lean_box(0);
lean_inc(x_17);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_8);
lean_inc(x_1);
lean_inc(x_10);
x_151 = l_Lean_Elab_Term_elabSubst___lambda__9(x_145, x_9, x_19, x_136, x_10, x_1, x_88, x_8, x_6, x_150, x_12, x_13, x_14, x_15, x_85, x_17, x_146);
if (lean_obj_tag(x_151) == 0)
{
lean_object* x_152; lean_object* x_153; 
x_152 = lean_ctor_get(x_151, 0);
lean_inc(x_152);
x_153 = lean_ctor_get(x_151, 1);
lean_inc(x_153);
lean_dec(x_151);
x_21 = x_152;
x_22 = x_153;
goto block_69;
}
else
{
lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; 
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_154 = lean_ctor_get(x_151, 0);
lean_inc(x_154);
x_155 = lean_ctor_get(x_151, 1);
lean_inc(x_155);
if (lean_is_exclusive(x_151)) {
 lean_ctor_release(x_151, 0);
 lean_ctor_release(x_151, 1);
 x_156 = x_151;
} else {
 lean_dec_ref(x_151);
 x_156 = lean_box(0);
}
if (lean_is_scalar(x_156)) {
 x_157 = lean_alloc_ctor(1, 2, 0);
} else {
 x_157 = x_156;
}
lean_ctor_set(x_157, 0, x_154);
lean_ctor_set(x_157, 1, x_155);
return x_157;
}
}
}
else
{
lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; 
lean_dec(x_136);
lean_dec(x_88);
lean_dec(x_85);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_158 = lean_ctor_get(x_144, 0);
lean_inc(x_158);
x_159 = lean_ctor_get(x_144, 1);
lean_inc(x_159);
if (lean_is_exclusive(x_144)) {
 lean_ctor_release(x_144, 0);
 lean_ctor_release(x_144, 1);
 x_160 = x_144;
} else {
 lean_dec_ref(x_144);
 x_160 = lean_box(0);
}
if (lean_is_scalar(x_160)) {
 x_161 = lean_alloc_ctor(1, 2, 0);
} else {
 x_161 = x_160;
}
lean_ctor_set(x_161, 0, x_158);
lean_ctor_set(x_161, 1, x_159);
return x_161;
}
}
else
{
lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; 
lean_dec(x_136);
lean_dec(x_88);
lean_dec(x_85);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_162 = lean_ctor_get(x_140, 0);
lean_inc(x_162);
x_163 = lean_ctor_get(x_140, 1);
lean_inc(x_163);
if (lean_is_exclusive(x_140)) {
 lean_ctor_release(x_140, 0);
 lean_ctor_release(x_140, 1);
 x_164 = x_140;
} else {
 lean_dec_ref(x_140);
 x_164 = lean_box(0);
}
if (lean_is_scalar(x_164)) {
 x_165 = lean_alloc_ctor(1, 2, 0);
} else {
 x_165 = x_164;
}
lean_ctor_set(x_165, 0, x_162);
lean_ctor_set(x_165, 1, x_163);
return x_165;
}
}
else
{
lean_object* x_166; 
lean_dec(x_88);
lean_dec(x_85);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_166 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_166, 0, x_136);
lean_ctor_set(x_166, 1, x_137);
return x_166;
}
}
else
{
lean_object* x_167; 
lean_dec(x_88);
lean_dec(x_85);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_167 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_167, 0, x_136);
lean_ctor_set(x_167, 1, x_137);
return x_167;
}
}
}
}
else
{
uint8_t x_168; 
lean_dec(x_85);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_168 = !lean_is_exclusive(x_87);
if (x_168 == 0)
{
return x_87;
}
else
{
lean_object* x_169; lean_object* x_170; lean_object* x_171; 
x_169 = lean_ctor_get(x_87, 0);
x_170 = lean_ctor_get(x_87, 1);
lean_inc(x_170);
lean_inc(x_169);
lean_dec(x_87);
x_171 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_171, 0, x_169);
lean_ctor_set(x_171, 1, x_170);
return x_171;
}
}
block_69:
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; 
x_23 = lean_ctor_get(x_21, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_21, 1);
lean_inc(x_24);
lean_dec(x_21);
x_25 = l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__2;
x_26 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_25, x_16, x_17, x_22);
x_27 = lean_ctor_get(x_26, 0);
lean_inc(x_27);
x_28 = lean_ctor_get(x_26, 1);
lean_inc(x_28);
lean_dec(x_26);
lean_inc(x_9);
x_29 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__2), 10, 2);
lean_closure_set(x_29, 0, x_9);
lean_closure_set(x_29, 1, x_7);
x_30 = 0;
x_31 = 0;
lean_inc(x_17);
lean_inc(x_16);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
x_32 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_27, x_30, x_1, x_29, x_31, x_12, x_13, x_14, x_15, x_16, x_17, x_28);
if (lean_obj_tag(x_32) == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_32, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_32, 1);
lean_inc(x_34);
lean_dec(x_32);
lean_inc(x_17);
lean_inc(x_16);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_33);
x_35 = l_Lean_Meta_isTypeCorrect(x_33, x_14, x_15, x_16, x_17, x_34);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_36 = lean_ctor_get(x_35, 0);
lean_inc(x_36);
x_37 = lean_ctor_get(x_35, 1);
lean_inc(x_37);
lean_dec(x_35);
if (lean_obj_tag(x_24) == 0)
{
uint8_t x_57; 
x_57 = lean_unbox(x_36);
lean_dec(x_36);
if (x_57 == 0)
{
lean_object* x_58; 
lean_dec(x_33);
x_58 = lean_box(0);
x_38 = x_58;
goto block_56;
}
else
{
lean_object* x_59; 
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_59 = l_Lean_Meta_mkEqRec(x_33, x_23, x_8, x_14, x_15, x_16, x_17, x_37);
return x_59;
}
}
else
{
lean_object* x_60; 
lean_dec(x_36);
lean_dec(x_33);
lean_dec(x_24);
x_60 = lean_box(0);
x_38 = x_60;
goto block_56;
}
block_56:
{
uint8_t x_39; lean_object* x_40; lean_object* x_46; lean_object* x_47; uint8_t x_48; 
lean_dec(x_38);
lean_inc(x_10);
x_46 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate(x_9, x_10, x_14, x_15, x_16, x_17, x_37);
x_47 = lean_ctor_get(x_46, 0);
lean_inc(x_47);
x_48 = lean_unbox(x_47);
if (x_48 == 0)
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; 
lean_dec(x_47);
x_49 = lean_ctor_get(x_46, 1);
lean_inc(x_49);
lean_dec(x_46);
x_50 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate(x_10, x_9, x_14, x_15, x_16, x_17, x_49);
lean_dec(x_10);
x_51 = lean_ctor_get(x_50, 0);
lean_inc(x_51);
x_52 = lean_ctor_get(x_50, 1);
lean_inc(x_52);
lean_dec(x_50);
x_53 = lean_unbox(x_51);
lean_dec(x_51);
x_39 = x_53;
x_40 = x_52;
goto block_45;
}
else
{
lean_object* x_54; uint8_t x_55; 
lean_dec(x_10);
lean_dec(x_9);
x_54 = lean_ctor_get(x_46, 1);
lean_inc(x_54);
lean_dec(x_46);
x_55 = lean_unbox(x_47);
lean_dec(x_47);
x_39 = x_55;
x_40 = x_54;
goto block_45;
}
block_45:
{
if (x_39 == 0)
{
lean_object* x_41; lean_object* x_42; 
lean_dec(x_23);
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_41 = l_Lean_Elab_Term_elabSubst___lambda__4___closed__2;
x_42 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_41, x_12, x_13, x_14, x_15, x_16, x_17, x_40);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
return x_42;
}
else
{
lean_object* x_43; lean_object* x_44; 
x_43 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__7), 12, 4);
lean_closure_set(x_43, 0, x_23);
lean_closure_set(x_43, 1, x_2);
lean_closure_set(x_43, 2, x_3);
lean_closure_set(x_43, 3, x_4);
x_44 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor(x_5, x_8, x_43, x_12, x_13, x_14, x_15, x_16, x_17, x_40);
return x_44;
}
}
}
}
else
{
uint8_t x_61; 
lean_dec(x_33);
lean_dec(x_24);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_61 = !lean_is_exclusive(x_35);
if (x_61 == 0)
{
return x_35;
}
else
{
lean_object* x_62; lean_object* x_63; lean_object* x_64; 
x_62 = lean_ctor_get(x_35, 0);
x_63 = lean_ctor_get(x_35, 1);
lean_inc(x_63);
lean_inc(x_62);
lean_dec(x_35);
x_64 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_64, 0, x_62);
lean_ctor_set(x_64, 1, x_63);
return x_64;
}
}
}
else
{
uint8_t x_65; 
lean_dec(x_24);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_65 = !lean_is_exclusive(x_32);
if (x_65 == 0)
{
return x_32;
}
else
{
lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_66 = lean_ctor_get(x_32, 0);
x_67 = lean_ctor_get(x_32, 1);
lean_inc(x_67);
lean_inc(x_66);
lean_dec(x_32);
x_68 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_68, 0, x_66);
lean_ctor_set(x_68, 1, x_67);
return x_68;
}
}
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabSubst___lambda__6___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid `▸` notation, argument", 32, 30);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabSubst___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\nhas type", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabSubst___closed__4;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\nequality expected", 18, 18);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabSubst___closed__6;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid `▸` notation, the equality", 36, 34);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabSubst___closed__8;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\nhas type ", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabSubst___closed__10;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\nbut neither side of the equality is mentioned in the type", 58, 58);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabSubst___closed__12;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid `▸` notation, expected result type of cast is ", 56, 54);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabSubst___closed__14;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\nhowever, the equality ", 23, 23);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabSubst___closed__16;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\nof type ", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabSubst___closed__18;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\ndoes not contain the expected result type on either the left or the right hand side", 84, 84);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabSubst___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabSubst___closed__20;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst(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_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_10 = l_Lean_Elab_Term_tryPostponeIfHasMVars_x3f(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
x_13 = l_Lean_Elab_Term_elabSubst___closed__1;
lean_inc(x_1);
x_14 = l_Lean_Syntax_isOfKind(x_1, x_13);
if (x_14 == 0)
{
lean_object* x_15; 
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_15 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_12);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_16 = lean_unsigned_to_nat(0u);
x_17 = l_Lean_Syntax_getArg(x_1, x_16);
x_18 = lean_unsigned_to_nat(2u);
x_19 = l_Lean_Syntax_getArg(x_1, x_18);
x_20 = lean_unsigned_to_nat(1u);
lean_inc(x_19);
x_21 = l_Lean_Syntax_matchesNull(x_19, x_20);
if (x_21 == 0)
{
lean_object* x_22; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_22 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_12);
return x_22;
}
else
{
lean_object* x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; 
x_23 = l_Lean_Syntax_getArg(x_19, x_16);
lean_dec(x_19);
x_24 = 0;
x_25 = 0;
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_26 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_24, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
if (lean_obj_tag(x_26) == 0)
{
lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; 
x_27 = lean_ctor_get(x_26, 1);
lean_inc(x_27);
lean_dec(x_26);
x_28 = lean_box(0);
x_29 = 1;
x_30 = lean_box(x_29);
x_31 = lean_box(x_29);
lean_inc(x_17);
x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
lean_closure_set(x_32, 0, x_17);
lean_closure_set(x_32, 1, x_28);
lean_closure_set(x_32, 2, x_30);
lean_closure_set(x_32, 3, x_31);
x_33 = 1;
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_34 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(x_32, x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_27);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_35 = lean_ctor_get(x_34, 0);
lean_inc(x_35);
x_36 = lean_ctor_get(x_34, 1);
lean_inc(x_36);
lean_dec(x_34);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_35);
x_37 = lean_infer_type(x_35, x_5, x_6, x_7, x_8, x_36);
if (lean_obj_tag(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_37, 0);
lean_inc(x_38);
x_39 = lean_ctor_get(x_37, 1);
lean_inc(x_39);
lean_dec(x_37);
x_40 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_38, x_3, x_4, x_5, x_6, x_7, x_8, x_39);
x_41 = !lean_is_exclusive(x_40);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_42 = lean_ctor_get(x_40, 0);
x_43 = lean_ctor_get(x_40, 1);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_42);
x_44 = l_Lean_Meta_matchEq_x3f(x_42, x_5, x_6, x_7, x_8, x_43);
if (lean_obj_tag(x_44) == 0)
{
lean_object* x_45; 
x_45 = lean_ctor_get(x_44, 0);
lean_inc(x_45);
if (lean_obj_tag(x_45) == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_11);
lean_dec(x_1);
x_46 = lean_ctor_get(x_44, 1);
lean_inc(x_46);
lean_dec(x_44);
x_47 = l_Lean_indentExpr(x_35);
x_48 = l_Lean_Elab_Term_elabSubst___closed__3;
lean_ctor_set_tag(x_40, 7);
lean_ctor_set(x_40, 1, x_47);
lean_ctor_set(x_40, 0, x_48);
x_49 = l_Lean_Elab_Term_elabSubst___closed__5;
x_50 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_50, 0, x_40);
lean_ctor_set(x_50, 1, x_49);
x_51 = l_Lean_indentExpr(x_42);
x_52 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_52, 0, x_50);
lean_ctor_set(x_52, 1, x_51);
x_53 = l_Lean_Elab_Term_elabSubst___closed__7;
x_54 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_54, 0, x_52);
lean_ctor_set(x_54, 1, x_53);
x_55 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_54, x_3, x_4, x_5, x_6, x_7, x_8, x_46);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_55;
}
else
{
lean_object* x_56; lean_object* x_57; 
x_56 = lean_ctor_get(x_45, 0);
lean_inc(x_56);
lean_dec(x_45);
x_57 = lean_ctor_get(x_56, 1);
lean_inc(x_57);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_58; uint8_t x_59; 
lean_dec(x_17);
lean_dec(x_1);
x_58 = lean_ctor_get(x_44, 1);
lean_inc(x_58);
lean_dec(x_44);
x_59 = !lean_is_exclusive(x_56);
if (x_59 == 0)
{
lean_object* x_60; lean_object* x_61; uint8_t x_62; 
x_60 = lean_ctor_get(x_56, 0);
x_61 = lean_ctor_get(x_56, 1);
lean_dec(x_61);
x_62 = !lean_is_exclusive(x_57);
if (x_62 == 0)
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; 
x_63 = lean_ctor_get(x_57, 0);
x_64 = lean_ctor_get(x_57, 1);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_65 = l_Lean_Elab_Term_elabTerm(x_23, x_28, x_29, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_58);
if (lean_obj_tag(x_65) == 0)
{
lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_66 = lean_ctor_get(x_65, 0);
lean_inc(x_66);
x_67 = lean_ctor_get(x_65, 1);
lean_inc(x_67);
lean_dec(x_65);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_66);
x_68 = lean_infer_type(x_66, x_5, x_6, x_7, x_8, x_67);
if (lean_obj_tag(x_68) == 0)
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; 
x_69 = lean_ctor_get(x_68, 0);
lean_inc(x_69);
x_70 = lean_ctor_get(x_68, 1);
lean_inc(x_70);
lean_dec(x_68);
x_71 = lean_box(0);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_63);
lean_inc(x_69);
x_72 = l_Lean_Meta_kabstract(x_69, x_63, x_71, x_5, x_6, x_7, x_8, x_70);
if (lean_obj_tag(x_72) == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; 
x_73 = lean_ctor_get(x_72, 0);
lean_inc(x_73);
x_74 = lean_ctor_get(x_72, 1);
lean_inc(x_74);
lean_dec(x_72);
lean_inc(x_66);
lean_inc(x_60);
x_75 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__4___boxed), 14, 2);
lean_closure_set(x_75, 0, x_60);
lean_closure_set(x_75, 1, x_66);
x_76 = l_Lean_Expr_hasLooseBVars(x_73);
if (x_76 == 0)
{
lean_object* x_77; 
lean_dec(x_73);
lean_dec(x_66);
lean_dec(x_60);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_64);
lean_inc(x_69);
x_77 = l_Lean_Meta_kabstract(x_69, x_64, x_71, x_5, x_6, x_7, x_8, x_74);
if (lean_obj_tag(x_77) == 0)
{
lean_object* x_78; lean_object* x_79; uint8_t x_80; 
x_78 = lean_ctor_get(x_77, 0);
lean_inc(x_78);
x_79 = lean_ctor_get(x_77, 1);
lean_inc(x_79);
lean_dec(x_77);
x_80 = l_Lean_Expr_hasLooseBVars(x_78);
if (x_80 == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; 
lean_dec(x_78);
lean_dec(x_75);
lean_dec(x_64);
lean_dec(x_63);
x_81 = l_Lean_indentExpr(x_35);
x_82 = l_Lean_Elab_Term_elabSubst___closed__9;
lean_ctor_set_tag(x_57, 7);
lean_ctor_set(x_57, 1, x_81);
lean_ctor_set(x_57, 0, x_82);
x_83 = l_Lean_Elab_Term_elabSubst___closed__11;
lean_ctor_set_tag(x_56, 7);
lean_ctor_set(x_56, 1, x_83);
lean_ctor_set(x_56, 0, x_57);
x_84 = l_Lean_indentExpr(x_42);
lean_ctor_set_tag(x_40, 7);
lean_ctor_set(x_40, 1, x_84);
lean_ctor_set(x_40, 0, x_56);
x_85 = l_Lean_Elab_Term_elabSubst___closed__13;
x_86 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_86, 0, x_40);
lean_ctor_set(x_86, 1, x_85);
x_87 = l_Lean_indentExpr(x_69);
x_88 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_88, 0, x_86);
lean_ctor_set(x_88, 1, x_87);
x_89 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_90 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_90, 0, x_88);
lean_ctor_set(x_90, 1, x_89);
x_91 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_90, x_3, x_4, x_5, x_6, x_7, x_8, x_79);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_92 = !lean_is_exclusive(x_91);
if (x_92 == 0)
{
return x_91;
}
else
{
lean_object* x_93; lean_object* x_94; lean_object* x_95; 
x_93 = lean_ctor_get(x_91, 0);
x_94 = lean_ctor_get(x_91, 1);
lean_inc(x_94);
lean_inc(x_93);
lean_dec(x_91);
x_95 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_95, 0, x_93);
lean_ctor_set(x_95, 1, x_94);
return x_95;
}
}
else
{
lean_object* x_96; lean_object* x_97; 
lean_dec(x_69);
lean_free_object(x_57);
lean_free_object(x_56);
lean_free_object(x_40);
lean_dec(x_42);
x_96 = lean_box(0);
x_97 = l_Lean_Elab_Term_elabSubst___lambda__5(x_75, x_78, x_35, x_63, x_64, x_96, x_3, x_4, x_5, x_6, x_7, x_8, x_79);
return x_97;
}
}
else
{
uint8_t x_98; 
lean_dec(x_75);
lean_dec(x_69);
lean_free_object(x_57);
lean_dec(x_64);
lean_dec(x_63);
lean_free_object(x_56);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_98 = !lean_is_exclusive(x_77);
if (x_98 == 0)
{
return x_77;
}
else
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; 
x_99 = lean_ctor_get(x_77, 0);
x_100 = lean_ctor_get(x_77, 1);
lean_inc(x_100);
lean_inc(x_99);
lean_dec(x_77);
x_101 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_101, 0, x_99);
lean_ctor_set(x_101, 1, x_100);
return x_101;
}
}
}
else
{
lean_object* x_102; lean_object* x_103; 
lean_dec(x_75);
lean_dec(x_69);
lean_free_object(x_57);
lean_free_object(x_56);
lean_free_object(x_40);
lean_dec(x_42);
x_102 = lean_box(0);
x_103 = l_Lean_Elab_Term_elabSubst___lambda__4(x_60, x_66, x_73, x_35, x_63, x_64, x_102, x_3, x_4, x_5, x_6, x_7, x_8, x_74);
lean_dec(x_64);
return x_103;
}
}
else
{
uint8_t x_104; 
lean_dec(x_69);
lean_dec(x_66);
lean_free_object(x_57);
lean_dec(x_64);
lean_dec(x_63);
lean_free_object(x_56);
lean_dec(x_60);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_104 = !lean_is_exclusive(x_72);
if (x_104 == 0)
{
return x_72;
}
else
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_72, 0);
x_106 = lean_ctor_get(x_72, 1);
lean_inc(x_106);
lean_inc(x_105);
lean_dec(x_72);
x_107 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_107, 0, x_105);
lean_ctor_set(x_107, 1, x_106);
return x_107;
}
}
}
else
{
uint8_t x_108; 
lean_dec(x_66);
lean_free_object(x_57);
lean_dec(x_64);
lean_dec(x_63);
lean_free_object(x_56);
lean_dec(x_60);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_108 = !lean_is_exclusive(x_68);
if (x_108 == 0)
{
return x_68;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_109 = lean_ctor_get(x_68, 0);
x_110 = lean_ctor_get(x_68, 1);
lean_inc(x_110);
lean_inc(x_109);
lean_dec(x_68);
x_111 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_111, 0, x_109);
lean_ctor_set(x_111, 1, x_110);
return x_111;
}
}
}
else
{
uint8_t x_112; 
lean_free_object(x_57);
lean_dec(x_64);
lean_dec(x_63);
lean_free_object(x_56);
lean_dec(x_60);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_112 = !lean_is_exclusive(x_65);
if (x_112 == 0)
{
return x_65;
}
else
{
lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_113 = lean_ctor_get(x_65, 0);
x_114 = lean_ctor_get(x_65, 1);
lean_inc(x_114);
lean_inc(x_113);
lean_dec(x_65);
x_115 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_115, 0, x_113);
lean_ctor_set(x_115, 1, x_114);
return x_115;
}
}
}
else
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
x_116 = lean_ctor_get(x_57, 0);
x_117 = lean_ctor_get(x_57, 1);
lean_inc(x_117);
lean_inc(x_116);
lean_dec(x_57);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_118 = l_Lean_Elab_Term_elabTerm(x_23, x_28, x_29, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_58);
if (lean_obj_tag(x_118) == 0)
{
lean_object* x_119; lean_object* x_120; lean_object* x_121; 
x_119 = lean_ctor_get(x_118, 0);
lean_inc(x_119);
x_120 = lean_ctor_get(x_118, 1);
lean_inc(x_120);
lean_dec(x_118);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_119);
x_121 = lean_infer_type(x_119, x_5, x_6, x_7, x_8, x_120);
if (lean_obj_tag(x_121) == 0)
{
lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; 
x_122 = lean_ctor_get(x_121, 0);
lean_inc(x_122);
x_123 = lean_ctor_get(x_121, 1);
lean_inc(x_123);
lean_dec(x_121);
x_124 = lean_box(0);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_116);
lean_inc(x_122);
x_125 = l_Lean_Meta_kabstract(x_122, x_116, x_124, x_5, x_6, x_7, x_8, x_123);
if (lean_obj_tag(x_125) == 0)
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; 
x_126 = lean_ctor_get(x_125, 0);
lean_inc(x_126);
x_127 = lean_ctor_get(x_125, 1);
lean_inc(x_127);
lean_dec(x_125);
lean_inc(x_119);
lean_inc(x_60);
x_128 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__4___boxed), 14, 2);
lean_closure_set(x_128, 0, x_60);
lean_closure_set(x_128, 1, x_119);
x_129 = l_Lean_Expr_hasLooseBVars(x_126);
if (x_129 == 0)
{
lean_object* x_130; 
lean_dec(x_126);
lean_dec(x_119);
lean_dec(x_60);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_117);
lean_inc(x_122);
x_130 = l_Lean_Meta_kabstract(x_122, x_117, x_124, x_5, x_6, x_7, x_8, x_127);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_131; lean_object* x_132; uint8_t x_133; 
x_131 = lean_ctor_get(x_130, 0);
lean_inc(x_131);
x_132 = lean_ctor_get(x_130, 1);
lean_inc(x_132);
lean_dec(x_130);
x_133 = l_Lean_Expr_hasLooseBVars(x_131);
if (x_133 == 0)
{
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; lean_object* x_147; lean_object* x_148; lean_object* x_149; 
lean_dec(x_131);
lean_dec(x_128);
lean_dec(x_117);
lean_dec(x_116);
x_134 = l_Lean_indentExpr(x_35);
x_135 = l_Lean_Elab_Term_elabSubst___closed__9;
x_136 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_136, 0, x_135);
lean_ctor_set(x_136, 1, x_134);
x_137 = l_Lean_Elab_Term_elabSubst___closed__11;
lean_ctor_set_tag(x_56, 7);
lean_ctor_set(x_56, 1, x_137);
lean_ctor_set(x_56, 0, x_136);
x_138 = l_Lean_indentExpr(x_42);
lean_ctor_set_tag(x_40, 7);
lean_ctor_set(x_40, 1, x_138);
lean_ctor_set(x_40, 0, x_56);
x_139 = l_Lean_Elab_Term_elabSubst___closed__13;
x_140 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_140, 0, x_40);
lean_ctor_set(x_140, 1, x_139);
x_141 = l_Lean_indentExpr(x_122);
x_142 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_142, 0, x_140);
lean_ctor_set(x_142, 1, x_141);
x_143 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_144 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_144, 0, x_142);
lean_ctor_set(x_144, 1, x_143);
x_145 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_144, x_3, x_4, x_5, x_6, x_7, x_8, x_132);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_146 = lean_ctor_get(x_145, 0);
lean_inc(x_146);
x_147 = lean_ctor_get(x_145, 1);
lean_inc(x_147);
if (lean_is_exclusive(x_145)) {
 lean_ctor_release(x_145, 0);
 lean_ctor_release(x_145, 1);
 x_148 = x_145;
} else {
 lean_dec_ref(x_145);
 x_148 = lean_box(0);
}
if (lean_is_scalar(x_148)) {
 x_149 = lean_alloc_ctor(1, 2, 0);
} else {
 x_149 = x_148;
}
lean_ctor_set(x_149, 0, x_146);
lean_ctor_set(x_149, 1, x_147);
return x_149;
}
else
{
lean_object* x_150; lean_object* x_151; 
lean_dec(x_122);
lean_free_object(x_56);
lean_free_object(x_40);
lean_dec(x_42);
x_150 = lean_box(0);
x_151 = l_Lean_Elab_Term_elabSubst___lambda__5(x_128, x_131, x_35, x_116, x_117, x_150, x_3, x_4, x_5, x_6, x_7, x_8, x_132);
return x_151;
}
}
else
{
lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; 
lean_dec(x_128);
lean_dec(x_122);
lean_dec(x_117);
lean_dec(x_116);
lean_free_object(x_56);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_152 = lean_ctor_get(x_130, 0);
lean_inc(x_152);
x_153 = lean_ctor_get(x_130, 1);
lean_inc(x_153);
if (lean_is_exclusive(x_130)) {
 lean_ctor_release(x_130, 0);
 lean_ctor_release(x_130, 1);
 x_154 = x_130;
} else {
 lean_dec_ref(x_130);
 x_154 = lean_box(0);
}
if (lean_is_scalar(x_154)) {
 x_155 = lean_alloc_ctor(1, 2, 0);
} else {
 x_155 = x_154;
}
lean_ctor_set(x_155, 0, x_152);
lean_ctor_set(x_155, 1, x_153);
return x_155;
}
}
else
{
lean_object* x_156; lean_object* x_157; 
lean_dec(x_128);
lean_dec(x_122);
lean_free_object(x_56);
lean_free_object(x_40);
lean_dec(x_42);
x_156 = lean_box(0);
x_157 = l_Lean_Elab_Term_elabSubst___lambda__4(x_60, x_119, x_126, x_35, x_116, x_117, x_156, x_3, x_4, x_5, x_6, x_7, x_8, x_127);
lean_dec(x_117);
return x_157;
}
}
else
{
lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; 
lean_dec(x_122);
lean_dec(x_119);
lean_dec(x_117);
lean_dec(x_116);
lean_free_object(x_56);
lean_dec(x_60);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_158 = lean_ctor_get(x_125, 0);
lean_inc(x_158);
x_159 = lean_ctor_get(x_125, 1);
lean_inc(x_159);
if (lean_is_exclusive(x_125)) {
 lean_ctor_release(x_125, 0);
 lean_ctor_release(x_125, 1);
 x_160 = x_125;
} else {
 lean_dec_ref(x_125);
 x_160 = lean_box(0);
}
if (lean_is_scalar(x_160)) {
 x_161 = lean_alloc_ctor(1, 2, 0);
} else {
 x_161 = x_160;
}
lean_ctor_set(x_161, 0, x_158);
lean_ctor_set(x_161, 1, x_159);
return x_161;
}
}
else
{
lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; 
lean_dec(x_119);
lean_dec(x_117);
lean_dec(x_116);
lean_free_object(x_56);
lean_dec(x_60);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_162 = lean_ctor_get(x_121, 0);
lean_inc(x_162);
x_163 = lean_ctor_get(x_121, 1);
lean_inc(x_163);
if (lean_is_exclusive(x_121)) {
 lean_ctor_release(x_121, 0);
 lean_ctor_release(x_121, 1);
 x_164 = x_121;
} else {
 lean_dec_ref(x_121);
 x_164 = lean_box(0);
}
if (lean_is_scalar(x_164)) {
 x_165 = lean_alloc_ctor(1, 2, 0);
} else {
 x_165 = x_164;
}
lean_ctor_set(x_165, 0, x_162);
lean_ctor_set(x_165, 1, x_163);
return x_165;
}
}
else
{
lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; 
lean_dec(x_117);
lean_dec(x_116);
lean_free_object(x_56);
lean_dec(x_60);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_166 = lean_ctor_get(x_118, 0);
lean_inc(x_166);
x_167 = lean_ctor_get(x_118, 1);
lean_inc(x_167);
if (lean_is_exclusive(x_118)) {
 lean_ctor_release(x_118, 0);
 lean_ctor_release(x_118, 1);
 x_168 = x_118;
} else {
 lean_dec_ref(x_118);
 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_object* x_173; lean_object* x_174; 
x_170 = lean_ctor_get(x_56, 0);
lean_inc(x_170);
lean_dec(x_56);
x_171 = lean_ctor_get(x_57, 0);
lean_inc(x_171);
x_172 = lean_ctor_get(x_57, 1);
lean_inc(x_172);
if (lean_is_exclusive(x_57)) {
 lean_ctor_release(x_57, 0);
 lean_ctor_release(x_57, 1);
 x_173 = x_57;
} else {
 lean_dec_ref(x_57);
 x_173 = lean_box(0);
}
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_174 = l_Lean_Elab_Term_elabTerm(x_23, x_28, x_29, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_58);
if (lean_obj_tag(x_174) == 0)
{
lean_object* x_175; lean_object* x_176; lean_object* x_177; 
x_175 = lean_ctor_get(x_174, 0);
lean_inc(x_175);
x_176 = lean_ctor_get(x_174, 1);
lean_inc(x_176);
lean_dec(x_174);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_175);
x_177 = lean_infer_type(x_175, x_5, x_6, x_7, x_8, x_176);
if (lean_obj_tag(x_177) == 0)
{
lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; 
x_178 = lean_ctor_get(x_177, 0);
lean_inc(x_178);
x_179 = lean_ctor_get(x_177, 1);
lean_inc(x_179);
lean_dec(x_177);
x_180 = lean_box(0);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_171);
lean_inc(x_178);
x_181 = l_Lean_Meta_kabstract(x_178, x_171, x_180, x_5, x_6, x_7, x_8, x_179);
if (lean_obj_tag(x_181) == 0)
{
lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; 
x_182 = lean_ctor_get(x_181, 0);
lean_inc(x_182);
x_183 = lean_ctor_get(x_181, 1);
lean_inc(x_183);
lean_dec(x_181);
lean_inc(x_175);
lean_inc(x_170);
x_184 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__4___boxed), 14, 2);
lean_closure_set(x_184, 0, x_170);
lean_closure_set(x_184, 1, x_175);
x_185 = l_Lean_Expr_hasLooseBVars(x_182);
if (x_185 == 0)
{
lean_object* x_186; 
lean_dec(x_182);
lean_dec(x_175);
lean_dec(x_170);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_172);
lean_inc(x_178);
x_186 = l_Lean_Meta_kabstract(x_178, x_172, x_180, x_5, x_6, x_7, x_8, x_183);
if (lean_obj_tag(x_186) == 0)
{
lean_object* x_187; lean_object* x_188; uint8_t x_189; 
x_187 = lean_ctor_get(x_186, 0);
lean_inc(x_187);
x_188 = lean_ctor_get(x_186, 1);
lean_inc(x_188);
lean_dec(x_186);
x_189 = l_Lean_Expr_hasLooseBVars(x_187);
if (x_189 == 0)
{
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; 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_dec(x_187);
lean_dec(x_184);
lean_dec(x_172);
lean_dec(x_171);
x_190 = l_Lean_indentExpr(x_35);
x_191 = l_Lean_Elab_Term_elabSubst___closed__9;
if (lean_is_scalar(x_173)) {
 x_192 = lean_alloc_ctor(7, 2, 0);
} else {
 x_192 = x_173;
 lean_ctor_set_tag(x_192, 7);
}
lean_ctor_set(x_192, 0, x_191);
lean_ctor_set(x_192, 1, x_190);
x_193 = l_Lean_Elab_Term_elabSubst___closed__11;
x_194 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_194, 0, x_192);
lean_ctor_set(x_194, 1, x_193);
x_195 = l_Lean_indentExpr(x_42);
lean_ctor_set_tag(x_40, 7);
lean_ctor_set(x_40, 1, x_195);
lean_ctor_set(x_40, 0, x_194);
x_196 = l_Lean_Elab_Term_elabSubst___closed__13;
x_197 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_197, 0, x_40);
lean_ctor_set(x_197, 1, x_196);
x_198 = l_Lean_indentExpr(x_178);
x_199 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_199, 0, x_197);
lean_ctor_set(x_199, 1, x_198);
x_200 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_201 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_200);
x_202 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_201, x_3, x_4, x_5, x_6, x_7, x_8, x_188);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_203 = lean_ctor_get(x_202, 0);
lean_inc(x_203);
x_204 = lean_ctor_get(x_202, 1);
lean_inc(x_204);
if (lean_is_exclusive(x_202)) {
 lean_ctor_release(x_202, 0);
 lean_ctor_release(x_202, 1);
 x_205 = x_202;
} else {
 lean_dec_ref(x_202);
 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_dec(x_178);
lean_dec(x_173);
lean_free_object(x_40);
lean_dec(x_42);
x_207 = lean_box(0);
x_208 = l_Lean_Elab_Term_elabSubst___lambda__5(x_184, x_187, x_35, x_171, x_172, x_207, x_3, x_4, x_5, x_6, x_7, x_8, x_188);
return x_208;
}
}
else
{
lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; 
lean_dec(x_184);
lean_dec(x_178);
lean_dec(x_173);
lean_dec(x_172);
lean_dec(x_171);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_209 = lean_ctor_get(x_186, 0);
lean_inc(x_209);
x_210 = lean_ctor_get(x_186, 1);
lean_inc(x_210);
if (lean_is_exclusive(x_186)) {
 lean_ctor_release(x_186, 0);
 lean_ctor_release(x_186, 1);
 x_211 = x_186;
} else {
 lean_dec_ref(x_186);
 x_211 = lean_box(0);
}
if (lean_is_scalar(x_211)) {
 x_212 = lean_alloc_ctor(1, 2, 0);
} else {
 x_212 = x_211;
}
lean_ctor_set(x_212, 0, x_209);
lean_ctor_set(x_212, 1, x_210);
return x_212;
}
}
else
{
lean_object* x_213; lean_object* x_214; 
lean_dec(x_184);
lean_dec(x_178);
lean_dec(x_173);
lean_free_object(x_40);
lean_dec(x_42);
x_213 = lean_box(0);
x_214 = l_Lean_Elab_Term_elabSubst___lambda__4(x_170, x_175, x_182, x_35, x_171, x_172, x_213, x_3, x_4, x_5, x_6, x_7, x_8, x_183);
lean_dec(x_172);
return x_214;
}
}
else
{
lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; 
lean_dec(x_178);
lean_dec(x_175);
lean_dec(x_173);
lean_dec(x_172);
lean_dec(x_171);
lean_dec(x_170);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_215 = lean_ctor_get(x_181, 0);
lean_inc(x_215);
x_216 = lean_ctor_get(x_181, 1);
lean_inc(x_216);
if (lean_is_exclusive(x_181)) {
 lean_ctor_release(x_181, 0);
 lean_ctor_release(x_181, 1);
 x_217 = x_181;
} else {
 lean_dec_ref(x_181);
 x_217 = lean_box(0);
}
if (lean_is_scalar(x_217)) {
 x_218 = lean_alloc_ctor(1, 2, 0);
} else {
 x_218 = x_217;
}
lean_ctor_set(x_218, 0, x_215);
lean_ctor_set(x_218, 1, x_216);
return x_218;
}
}
else
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; 
lean_dec(x_175);
lean_dec(x_173);
lean_dec(x_172);
lean_dec(x_171);
lean_dec(x_170);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_219 = lean_ctor_get(x_177, 0);
lean_inc(x_219);
x_220 = lean_ctor_get(x_177, 1);
lean_inc(x_220);
if (lean_is_exclusive(x_177)) {
 lean_ctor_release(x_177, 0);
 lean_ctor_release(x_177, 1);
 x_221 = x_177;
} else {
 lean_dec_ref(x_177);
 x_221 = lean_box(0);
}
if (lean_is_scalar(x_221)) {
 x_222 = lean_alloc_ctor(1, 2, 0);
} else {
 x_222 = x_221;
}
lean_ctor_set(x_222, 0, x_219);
lean_ctor_set(x_222, 1, x_220);
return x_222;
}
}
else
{
lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; 
lean_dec(x_173);
lean_dec(x_172);
lean_dec(x_171);
lean_dec(x_170);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_223 = lean_ctor_get(x_174, 0);
lean_inc(x_223);
x_224 = lean_ctor_get(x_174, 1);
lean_inc(x_224);
if (lean_is_exclusive(x_174)) {
 lean_ctor_release(x_174, 0);
 lean_ctor_release(x_174, 1);
 x_225 = x_174;
} else {
 lean_dec_ref(x_174);
 x_225 = lean_box(0);
}
if (lean_is_scalar(x_225)) {
 x_226 = lean_alloc_ctor(1, 2, 0);
} else {
 x_226 = x_225;
}
lean_ctor_set(x_226, 0, x_223);
lean_ctor_set(x_226, 1, x_224);
return x_226;
}
}
}
else
{
lean_object* x_227; uint8_t x_228; 
x_227 = lean_ctor_get(x_44, 1);
lean_inc(x_227);
lean_dec(x_44);
x_228 = !lean_is_exclusive(x_56);
if (x_228 == 0)
{
lean_object* x_229; lean_object* x_230; uint8_t x_231; 
x_229 = lean_ctor_get(x_56, 0);
x_230 = lean_ctor_get(x_56, 1);
lean_dec(x_230);
x_231 = !lean_is_exclusive(x_57);
if (x_231 == 0)
{
lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; 
x_232 = lean_ctor_get(x_57, 0);
x_233 = lean_ctor_get(x_57, 1);
x_234 = lean_ctor_get(x_11, 0);
lean_inc(x_234);
lean_dec(x_11);
x_235 = lean_box(0);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_233);
lean_inc(x_234);
x_236 = l_Lean_Meta_kabstract(x_234, x_233, x_235, x_5, x_6, x_7, x_8, x_227);
if (lean_obj_tag(x_236) == 0)
{
lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; 
x_237 = lean_ctor_get(x_236, 0);
lean_inc(x_237);
x_238 = lean_ctor_get(x_236, 1);
lean_inc(x_238);
lean_dec(x_236);
lean_inc(x_17);
lean_inc(x_23);
lean_inc(x_1);
lean_inc(x_234);
lean_inc(x_229);
x_239 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__10___boxed), 18, 6);
lean_closure_set(x_239, 0, x_229);
lean_closure_set(x_239, 1, x_234);
lean_closure_set(x_239, 2, x_1);
lean_closure_set(x_239, 3, x_23);
lean_closure_set(x_239, 4, x_17);
lean_closure_set(x_239, 5, x_28);
x_240 = l_Lean_Expr_hasLooseBVars(x_237);
if (x_240 == 0)
{
lean_object* x_241; 
lean_dec(x_237);
lean_dec(x_229);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_1);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_232);
lean_inc(x_234);
x_241 = l_Lean_Meta_kabstract(x_234, x_232, x_235, x_5, x_6, x_7, x_8, x_238);
if (lean_obj_tag(x_241) == 0)
{
lean_object* x_242; lean_object* x_243; uint8_t x_244; 
x_242 = lean_ctor_get(x_241, 0);
lean_inc(x_242);
x_243 = lean_ctor_get(x_241, 1);
lean_inc(x_243);
lean_dec(x_241);
x_244 = l_Lean_Expr_hasLooseBVars(x_242);
if (x_244 == 0)
{
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; lean_object* x_254; lean_object* x_255; uint8_t x_256; 
lean_dec(x_242);
lean_dec(x_239);
lean_dec(x_233);
lean_dec(x_232);
x_245 = l_Lean_indentExpr(x_234);
x_246 = l_Lean_Elab_Term_elabSubst___closed__15;
lean_ctor_set_tag(x_57, 7);
lean_ctor_set(x_57, 1, x_245);
lean_ctor_set(x_57, 0, x_246);
x_247 = l_Lean_Elab_Term_elabSubst___closed__17;
lean_ctor_set_tag(x_56, 7);
lean_ctor_set(x_56, 1, x_247);
lean_ctor_set(x_56, 0, x_57);
x_248 = l_Lean_indentExpr(x_35);
lean_ctor_set_tag(x_40, 7);
lean_ctor_set(x_40, 1, x_248);
lean_ctor_set(x_40, 0, x_56);
x_249 = l_Lean_Elab_Term_elabSubst___closed__19;
x_250 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_250, 0, x_40);
lean_ctor_set(x_250, 1, x_249);
x_251 = l_Lean_indentExpr(x_42);
x_252 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_252, 0, x_250);
lean_ctor_set(x_252, 1, x_251);
x_253 = l_Lean_Elab_Term_elabSubst___closed__21;
x_254 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_254, 0, x_252);
lean_ctor_set(x_254, 1, x_253);
x_255 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_254, x_3, x_4, x_5, x_6, x_7, x_8, x_243);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_256 = !lean_is_exclusive(x_255);
if (x_256 == 0)
{
return x_255;
}
else
{
lean_object* x_257; lean_object* x_258; lean_object* x_259; 
x_257 = lean_ctor_get(x_255, 0);
x_258 = lean_ctor_get(x_255, 1);
lean_inc(x_258);
lean_inc(x_257);
lean_dec(x_255);
x_259 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_259, 0, x_257);
lean_ctor_set(x_259, 1, x_258);
return x_259;
}
}
else
{
lean_object* x_260; lean_object* x_261; 
lean_dec(x_234);
lean_free_object(x_57);
lean_free_object(x_56);
lean_free_object(x_40);
lean_dec(x_42);
x_260 = lean_box(0);
x_261 = l_Lean_Elab_Term_elabSubst___lambda__5(x_239, x_242, x_35, x_232, x_233, x_260, x_3, x_4, x_5, x_6, x_7, x_8, x_243);
return x_261;
}
}
else
{
uint8_t x_262; 
lean_dec(x_239);
lean_dec(x_234);
lean_free_object(x_57);
lean_dec(x_233);
lean_dec(x_232);
lean_free_object(x_56);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_262 = !lean_is_exclusive(x_241);
if (x_262 == 0)
{
return x_241;
}
else
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; 
x_263 = lean_ctor_get(x_241, 0);
x_264 = lean_ctor_get(x_241, 1);
lean_inc(x_264);
lean_inc(x_263);
lean_dec(x_241);
x_265 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_265, 0, x_263);
lean_ctor_set(x_265, 1, x_264);
return x_265;
}
}
}
else
{
lean_object* x_266; lean_object* x_267; 
lean_dec(x_239);
lean_free_object(x_57);
lean_free_object(x_56);
lean_free_object(x_40);
lean_dec(x_42);
x_266 = lean_box(0);
x_267 = l_Lean_Elab_Term_elabSubst___lambda__10(x_229, x_234, x_1, x_23, x_17, x_28, x_237, x_35, x_232, x_233, x_266, x_3, x_4, x_5, x_6, x_7, x_8, x_238);
return x_267;
}
}
else
{
uint8_t x_268; 
lean_dec(x_234);
lean_free_object(x_57);
lean_dec(x_233);
lean_dec(x_232);
lean_free_object(x_56);
lean_dec(x_229);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_268 = !lean_is_exclusive(x_236);
if (x_268 == 0)
{
return x_236;
}
else
{
lean_object* x_269; lean_object* x_270; lean_object* x_271; 
x_269 = lean_ctor_get(x_236, 0);
x_270 = lean_ctor_get(x_236, 1);
lean_inc(x_270);
lean_inc(x_269);
lean_dec(x_236);
x_271 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_271, 0, x_269);
lean_ctor_set(x_271, 1, x_270);
return x_271;
}
}
}
else
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; 
x_272 = lean_ctor_get(x_57, 0);
x_273 = lean_ctor_get(x_57, 1);
lean_inc(x_273);
lean_inc(x_272);
lean_dec(x_57);
x_274 = lean_ctor_get(x_11, 0);
lean_inc(x_274);
lean_dec(x_11);
x_275 = lean_box(0);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_273);
lean_inc(x_274);
x_276 = l_Lean_Meta_kabstract(x_274, x_273, x_275, x_5, x_6, x_7, x_8, x_227);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; 
x_277 = lean_ctor_get(x_276, 0);
lean_inc(x_277);
x_278 = lean_ctor_get(x_276, 1);
lean_inc(x_278);
lean_dec(x_276);
lean_inc(x_17);
lean_inc(x_23);
lean_inc(x_1);
lean_inc(x_274);
lean_inc(x_229);
x_279 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__10___boxed), 18, 6);
lean_closure_set(x_279, 0, x_229);
lean_closure_set(x_279, 1, x_274);
lean_closure_set(x_279, 2, x_1);
lean_closure_set(x_279, 3, x_23);
lean_closure_set(x_279, 4, x_17);
lean_closure_set(x_279, 5, x_28);
x_280 = l_Lean_Expr_hasLooseBVars(x_277);
if (x_280 == 0)
{
lean_object* x_281; 
lean_dec(x_277);
lean_dec(x_229);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_1);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_272);
lean_inc(x_274);
x_281 = l_Lean_Meta_kabstract(x_274, x_272, x_275, x_5, x_6, x_7, x_8, x_278);
if (lean_obj_tag(x_281) == 0)
{
lean_object* x_282; lean_object* x_283; uint8_t x_284; 
x_282 = lean_ctor_get(x_281, 0);
lean_inc(x_282);
x_283 = lean_ctor_get(x_281, 1);
lean_inc(x_283);
lean_dec(x_281);
x_284 = l_Lean_Expr_hasLooseBVars(x_282);
if (x_284 == 0)
{
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; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; 
lean_dec(x_282);
lean_dec(x_279);
lean_dec(x_273);
lean_dec(x_272);
x_285 = l_Lean_indentExpr(x_274);
x_286 = l_Lean_Elab_Term_elabSubst___closed__15;
x_287 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_287, 0, x_286);
lean_ctor_set(x_287, 1, x_285);
x_288 = l_Lean_Elab_Term_elabSubst___closed__17;
lean_ctor_set_tag(x_56, 7);
lean_ctor_set(x_56, 1, x_288);
lean_ctor_set(x_56, 0, x_287);
x_289 = l_Lean_indentExpr(x_35);
lean_ctor_set_tag(x_40, 7);
lean_ctor_set(x_40, 1, x_289);
lean_ctor_set(x_40, 0, x_56);
x_290 = l_Lean_Elab_Term_elabSubst___closed__19;
x_291 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_291, 0, x_40);
lean_ctor_set(x_291, 1, x_290);
x_292 = l_Lean_indentExpr(x_42);
x_293 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_293, 0, x_291);
lean_ctor_set(x_293, 1, x_292);
x_294 = l_Lean_Elab_Term_elabSubst___closed__21;
x_295 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_295, 0, x_293);
lean_ctor_set(x_295, 1, x_294);
x_296 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_295, x_3, x_4, x_5, x_6, x_7, x_8, x_283);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_297 = lean_ctor_get(x_296, 0);
lean_inc(x_297);
x_298 = lean_ctor_get(x_296, 1);
lean_inc(x_298);
if (lean_is_exclusive(x_296)) {
 lean_ctor_release(x_296, 0);
 lean_ctor_release(x_296, 1);
 x_299 = x_296;
} else {
 lean_dec_ref(x_296);
 x_299 = lean_box(0);
}
if (lean_is_scalar(x_299)) {
 x_300 = lean_alloc_ctor(1, 2, 0);
} else {
 x_300 = x_299;
}
lean_ctor_set(x_300, 0, x_297);
lean_ctor_set(x_300, 1, x_298);
return x_300;
}
else
{
lean_object* x_301; lean_object* x_302; 
lean_dec(x_274);
lean_free_object(x_56);
lean_free_object(x_40);
lean_dec(x_42);
x_301 = lean_box(0);
x_302 = l_Lean_Elab_Term_elabSubst___lambda__5(x_279, x_282, x_35, x_272, x_273, x_301, x_3, x_4, x_5, x_6, x_7, x_8, x_283);
return x_302;
}
}
else
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; 
lean_dec(x_279);
lean_dec(x_274);
lean_dec(x_273);
lean_dec(x_272);
lean_free_object(x_56);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_303 = lean_ctor_get(x_281, 0);
lean_inc(x_303);
x_304 = lean_ctor_get(x_281, 1);
lean_inc(x_304);
if (lean_is_exclusive(x_281)) {
 lean_ctor_release(x_281, 0);
 lean_ctor_release(x_281, 1);
 x_305 = x_281;
} else {
 lean_dec_ref(x_281);
 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;
}
}
else
{
lean_object* x_307; lean_object* x_308; 
lean_dec(x_279);
lean_free_object(x_56);
lean_free_object(x_40);
lean_dec(x_42);
x_307 = lean_box(0);
x_308 = l_Lean_Elab_Term_elabSubst___lambda__10(x_229, x_274, x_1, x_23, x_17, x_28, x_277, x_35, x_272, x_273, x_307, x_3, x_4, x_5, x_6, x_7, x_8, x_278);
return x_308;
}
}
else
{
lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; 
lean_dec(x_274);
lean_dec(x_273);
lean_dec(x_272);
lean_free_object(x_56);
lean_dec(x_229);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_309 = lean_ctor_get(x_276, 0);
lean_inc(x_309);
x_310 = lean_ctor_get(x_276, 1);
lean_inc(x_310);
if (lean_is_exclusive(x_276)) {
 lean_ctor_release(x_276, 0);
 lean_ctor_release(x_276, 1);
 x_311 = x_276;
} else {
 lean_dec_ref(x_276);
 x_311 = lean_box(0);
}
if (lean_is_scalar(x_311)) {
 x_312 = lean_alloc_ctor(1, 2, 0);
} else {
 x_312 = x_311;
}
lean_ctor_set(x_312, 0, x_309);
lean_ctor_set(x_312, 1, x_310);
return x_312;
}
}
}
else
{
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; 
x_313 = lean_ctor_get(x_56, 0);
lean_inc(x_313);
lean_dec(x_56);
x_314 = lean_ctor_get(x_57, 0);
lean_inc(x_314);
x_315 = lean_ctor_get(x_57, 1);
lean_inc(x_315);
if (lean_is_exclusive(x_57)) {
 lean_ctor_release(x_57, 0);
 lean_ctor_release(x_57, 1);
 x_316 = x_57;
} else {
 lean_dec_ref(x_57);
 x_316 = lean_box(0);
}
x_317 = lean_ctor_get(x_11, 0);
lean_inc(x_317);
lean_dec(x_11);
x_318 = lean_box(0);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_315);
lean_inc(x_317);
x_319 = l_Lean_Meta_kabstract(x_317, x_315, x_318, x_5, x_6, x_7, x_8, x_227);
if (lean_obj_tag(x_319) == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; uint8_t x_323; 
x_320 = lean_ctor_get(x_319, 0);
lean_inc(x_320);
x_321 = lean_ctor_get(x_319, 1);
lean_inc(x_321);
lean_dec(x_319);
lean_inc(x_17);
lean_inc(x_23);
lean_inc(x_1);
lean_inc(x_317);
lean_inc(x_313);
x_322 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__10___boxed), 18, 6);
lean_closure_set(x_322, 0, x_313);
lean_closure_set(x_322, 1, x_317);
lean_closure_set(x_322, 2, x_1);
lean_closure_set(x_322, 3, x_23);
lean_closure_set(x_322, 4, x_17);
lean_closure_set(x_322, 5, x_28);
x_323 = l_Lean_Expr_hasLooseBVars(x_320);
if (x_323 == 0)
{
lean_object* x_324; 
lean_dec(x_320);
lean_dec(x_313);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_1);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_314);
lean_inc(x_317);
x_324 = l_Lean_Meta_kabstract(x_317, x_314, x_318, x_5, x_6, x_7, x_8, x_321);
if (lean_obj_tag(x_324) == 0)
{
lean_object* x_325; lean_object* x_326; uint8_t x_327; 
x_325 = lean_ctor_get(x_324, 0);
lean_inc(x_325);
x_326 = lean_ctor_get(x_324, 1);
lean_inc(x_326);
lean_dec(x_324);
x_327 = l_Lean_Expr_hasLooseBVars(x_325);
if (x_327 == 0)
{
lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 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; lean_object* x_342; lean_object* x_343; lean_object* x_344; 
lean_dec(x_325);
lean_dec(x_322);
lean_dec(x_315);
lean_dec(x_314);
x_328 = l_Lean_indentExpr(x_317);
x_329 = l_Lean_Elab_Term_elabSubst___closed__15;
if (lean_is_scalar(x_316)) {
 x_330 = lean_alloc_ctor(7, 2, 0);
} else {
 x_330 = x_316;
 lean_ctor_set_tag(x_330, 7);
}
lean_ctor_set(x_330, 0, x_329);
lean_ctor_set(x_330, 1, x_328);
x_331 = l_Lean_Elab_Term_elabSubst___closed__17;
x_332 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_332, 0, x_330);
lean_ctor_set(x_332, 1, x_331);
x_333 = l_Lean_indentExpr(x_35);
lean_ctor_set_tag(x_40, 7);
lean_ctor_set(x_40, 1, x_333);
lean_ctor_set(x_40, 0, x_332);
x_334 = l_Lean_Elab_Term_elabSubst___closed__19;
x_335 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_335, 0, x_40);
lean_ctor_set(x_335, 1, x_334);
x_336 = l_Lean_indentExpr(x_42);
x_337 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_337, 0, x_335);
lean_ctor_set(x_337, 1, x_336);
x_338 = l_Lean_Elab_Term_elabSubst___closed__21;
x_339 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_339, 0, x_337);
lean_ctor_set(x_339, 1, x_338);
x_340 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_339, x_3, x_4, x_5, x_6, x_7, x_8, x_326);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_341 = lean_ctor_get(x_340, 0);
lean_inc(x_341);
x_342 = lean_ctor_get(x_340, 1);
lean_inc(x_342);
if (lean_is_exclusive(x_340)) {
 lean_ctor_release(x_340, 0);
 lean_ctor_release(x_340, 1);
 x_343 = x_340;
} else {
 lean_dec_ref(x_340);
 x_343 = lean_box(0);
}
if (lean_is_scalar(x_343)) {
 x_344 = lean_alloc_ctor(1, 2, 0);
} else {
 x_344 = x_343;
}
lean_ctor_set(x_344, 0, x_341);
lean_ctor_set(x_344, 1, x_342);
return x_344;
}
else
{
lean_object* x_345; lean_object* x_346; 
lean_dec(x_317);
lean_dec(x_316);
lean_free_object(x_40);
lean_dec(x_42);
x_345 = lean_box(0);
x_346 = l_Lean_Elab_Term_elabSubst___lambda__5(x_322, x_325, x_35, x_314, x_315, x_345, x_3, x_4, x_5, x_6, x_7, x_8, x_326);
return x_346;
}
}
else
{
lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; 
lean_dec(x_322);
lean_dec(x_317);
lean_dec(x_316);
lean_dec(x_315);
lean_dec(x_314);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_347 = lean_ctor_get(x_324, 0);
lean_inc(x_347);
x_348 = lean_ctor_get(x_324, 1);
lean_inc(x_348);
if (lean_is_exclusive(x_324)) {
 lean_ctor_release(x_324, 0);
 lean_ctor_release(x_324, 1);
 x_349 = x_324;
} else {
 lean_dec_ref(x_324);
 x_349 = lean_box(0);
}
if (lean_is_scalar(x_349)) {
 x_350 = lean_alloc_ctor(1, 2, 0);
} else {
 x_350 = x_349;
}
lean_ctor_set(x_350, 0, x_347);
lean_ctor_set(x_350, 1, x_348);
return x_350;
}
}
else
{
lean_object* x_351; lean_object* x_352; 
lean_dec(x_322);
lean_dec(x_316);
lean_free_object(x_40);
lean_dec(x_42);
x_351 = lean_box(0);
x_352 = l_Lean_Elab_Term_elabSubst___lambda__10(x_313, x_317, x_1, x_23, x_17, x_28, x_320, x_35, x_314, x_315, x_351, x_3, x_4, x_5, x_6, x_7, x_8, x_321);
return x_352;
}
}
else
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; 
lean_dec(x_317);
lean_dec(x_316);
lean_dec(x_315);
lean_dec(x_314);
lean_dec(x_313);
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_353 = lean_ctor_get(x_319, 0);
lean_inc(x_353);
x_354 = lean_ctor_get(x_319, 1);
lean_inc(x_354);
if (lean_is_exclusive(x_319)) {
 lean_ctor_release(x_319, 0);
 lean_ctor_release(x_319, 1);
 x_355 = x_319;
} else {
 lean_dec_ref(x_319);
 x_355 = lean_box(0);
}
if (lean_is_scalar(x_355)) {
 x_356 = lean_alloc_ctor(1, 2, 0);
} else {
 x_356 = x_355;
}
lean_ctor_set(x_356, 0, x_353);
lean_ctor_set(x_356, 1, x_354);
return x_356;
}
}
}
}
}
else
{
uint8_t x_357; 
lean_free_object(x_40);
lean_dec(x_42);
lean_dec(x_35);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_357 = !lean_is_exclusive(x_44);
if (x_357 == 0)
{
return x_44;
}
else
{
lean_object* x_358; lean_object* x_359; lean_object* x_360; 
x_358 = lean_ctor_get(x_44, 0);
x_359 = lean_ctor_get(x_44, 1);
lean_inc(x_359);
lean_inc(x_358);
lean_dec(x_44);
x_360 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_360, 0, x_358);
lean_ctor_set(x_360, 1, x_359);
return x_360;
}
}
}
else
{
lean_object* x_361; lean_object* x_362; lean_object* x_363; 
x_361 = lean_ctor_get(x_40, 0);
x_362 = lean_ctor_get(x_40, 1);
lean_inc(x_362);
lean_inc(x_361);
lean_dec(x_40);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_361);
x_363 = l_Lean_Meta_matchEq_x3f(x_361, x_5, x_6, x_7, x_8, x_362);
if (lean_obj_tag(x_363) == 0)
{
lean_object* x_364; 
x_364 = lean_ctor_get(x_363, 0);
lean_inc(x_364);
if (lean_obj_tag(x_364) == 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; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; 
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_11);
lean_dec(x_1);
x_365 = lean_ctor_get(x_363, 1);
lean_inc(x_365);
lean_dec(x_363);
x_366 = l_Lean_indentExpr(x_35);
x_367 = l_Lean_Elab_Term_elabSubst___closed__3;
x_368 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_368, 0, x_367);
lean_ctor_set(x_368, 1, x_366);
x_369 = l_Lean_Elab_Term_elabSubst___closed__5;
x_370 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_370, 0, x_368);
lean_ctor_set(x_370, 1, x_369);
x_371 = l_Lean_indentExpr(x_361);
x_372 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_372, 0, x_370);
lean_ctor_set(x_372, 1, x_371);
x_373 = l_Lean_Elab_Term_elabSubst___closed__7;
x_374 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_374, 0, x_372);
lean_ctor_set(x_374, 1, x_373);
x_375 = l_Lean_throwError___at_Lean_Elab_Term_tryPostponeIfHasMVars___spec__1(x_374, x_3, x_4, x_5, x_6, x_7, x_8, x_365);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_375;
}
else
{
lean_object* x_376; lean_object* x_377; 
x_376 = lean_ctor_get(x_364, 0);
lean_inc(x_376);
lean_dec(x_364);
x_377 = lean_ctor_get(x_376, 1);
lean_inc(x_377);
if (lean_obj_tag(x_11) == 0)
{
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_dec(x_17);
lean_dec(x_1);
x_378 = lean_ctor_get(x_363, 1);
lean_inc(x_378);
lean_dec(x_363);
x_379 = lean_ctor_get(x_376, 0);
lean_inc(x_379);
if (lean_is_exclusive(x_376)) {
 lean_ctor_release(x_376, 0);
 lean_ctor_release(x_376, 1);
 x_380 = x_376;
} else {
 lean_dec_ref(x_376);
 x_380 = lean_box(0);
}
x_381 = lean_ctor_get(x_377, 0);
lean_inc(x_381);
x_382 = lean_ctor_get(x_377, 1);
lean_inc(x_382);
if (lean_is_exclusive(x_377)) {
 lean_ctor_release(x_377, 0);
 lean_ctor_release(x_377, 1);
 x_383 = x_377;
} else {
 lean_dec_ref(x_377);
 x_383 = lean_box(0);
}
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_384 = l_Lean_Elab_Term_elabTerm(x_23, x_28, x_29, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_378);
if (lean_obj_tag(x_384) == 0)
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; 
x_385 = lean_ctor_get(x_384, 0);
lean_inc(x_385);
x_386 = lean_ctor_get(x_384, 1);
lean_inc(x_386);
lean_dec(x_384);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_385);
x_387 = lean_infer_type(x_385, x_5, x_6, x_7, x_8, x_386);
if (lean_obj_tag(x_387) == 0)
{
lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; 
x_388 = lean_ctor_get(x_387, 0);
lean_inc(x_388);
x_389 = lean_ctor_get(x_387, 1);
lean_inc(x_389);
lean_dec(x_387);
x_390 = lean_box(0);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_381);
lean_inc(x_388);
x_391 = l_Lean_Meta_kabstract(x_388, x_381, x_390, x_5, x_6, x_7, x_8, x_389);
if (lean_obj_tag(x_391) == 0)
{
lean_object* x_392; lean_object* x_393; lean_object* x_394; uint8_t x_395; 
x_392 = lean_ctor_get(x_391, 0);
lean_inc(x_392);
x_393 = lean_ctor_get(x_391, 1);
lean_inc(x_393);
lean_dec(x_391);
lean_inc(x_385);
lean_inc(x_379);
x_394 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__4___boxed), 14, 2);
lean_closure_set(x_394, 0, x_379);
lean_closure_set(x_394, 1, x_385);
x_395 = l_Lean_Expr_hasLooseBVars(x_392);
if (x_395 == 0)
{
lean_object* x_396; 
lean_dec(x_392);
lean_dec(x_385);
lean_dec(x_379);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_382);
lean_inc(x_388);
x_396 = l_Lean_Meta_kabstract(x_388, x_382, x_390, x_5, x_6, x_7, x_8, x_393);
if (lean_obj_tag(x_396) == 0)
{
lean_object* x_397; lean_object* x_398; uint8_t x_399; 
x_397 = lean_ctor_get(x_396, 0);
lean_inc(x_397);
x_398 = lean_ctor_get(x_396, 1);
lean_inc(x_398);
lean_dec(x_396);
x_399 = l_Lean_Expr_hasLooseBVars(x_397);
if (x_399 == 0)
{
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; 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_dec(x_397);
lean_dec(x_394);
lean_dec(x_382);
lean_dec(x_381);
x_400 = l_Lean_indentExpr(x_35);
x_401 = l_Lean_Elab_Term_elabSubst___closed__9;
if (lean_is_scalar(x_383)) {
 x_402 = lean_alloc_ctor(7, 2, 0);
} else {
 x_402 = x_383;
 lean_ctor_set_tag(x_402, 7);
}
lean_ctor_set(x_402, 0, x_401);
lean_ctor_set(x_402, 1, x_400);
x_403 = l_Lean_Elab_Term_elabSubst___closed__11;
if (lean_is_scalar(x_380)) {
 x_404 = lean_alloc_ctor(7, 2, 0);
} else {
 x_404 = x_380;
 lean_ctor_set_tag(x_404, 7);
}
lean_ctor_set(x_404, 0, x_402);
lean_ctor_set(x_404, 1, x_403);
x_405 = l_Lean_indentExpr(x_361);
x_406 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_406, 0, x_404);
lean_ctor_set(x_406, 1, x_405);
x_407 = l_Lean_Elab_Term_elabSubst___closed__13;
x_408 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_408, 0, x_406);
lean_ctor_set(x_408, 1, x_407);
x_409 = l_Lean_indentExpr(x_388);
x_410 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_410, 0, x_408);
lean_ctor_set(x_410, 1, x_409);
x_411 = l_Lean_Elab_Term_elabCoeFunNotation___closed__4;
x_412 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_412, 0, x_410);
lean_ctor_set(x_412, 1, x_411);
x_413 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_412, x_3, x_4, x_5, x_6, x_7, x_8, x_398);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_414 = lean_ctor_get(x_413, 0);
lean_inc(x_414);
x_415 = lean_ctor_get(x_413, 1);
lean_inc(x_415);
if (lean_is_exclusive(x_413)) {
 lean_ctor_release(x_413, 0);
 lean_ctor_release(x_413, 1);
 x_416 = x_413;
} else {
 lean_dec_ref(x_413);
 x_416 = lean_box(0);
}
if (lean_is_scalar(x_416)) {
 x_417 = lean_alloc_ctor(1, 2, 0);
} else {
 x_417 = x_416;
}
lean_ctor_set(x_417, 0, x_414);
lean_ctor_set(x_417, 1, x_415);
return x_417;
}
else
{
lean_object* x_418; lean_object* x_419; 
lean_dec(x_388);
lean_dec(x_383);
lean_dec(x_380);
lean_dec(x_361);
x_418 = lean_box(0);
x_419 = l_Lean_Elab_Term_elabSubst___lambda__5(x_394, x_397, x_35, x_381, x_382, x_418, x_3, x_4, x_5, x_6, x_7, x_8, x_398);
return x_419;
}
}
else
{
lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; 
lean_dec(x_394);
lean_dec(x_388);
lean_dec(x_383);
lean_dec(x_382);
lean_dec(x_381);
lean_dec(x_380);
lean_dec(x_361);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_420 = lean_ctor_get(x_396, 0);
lean_inc(x_420);
x_421 = lean_ctor_get(x_396, 1);
lean_inc(x_421);
if (lean_is_exclusive(x_396)) {
 lean_ctor_release(x_396, 0);
 lean_ctor_release(x_396, 1);
 x_422 = x_396;
} else {
 lean_dec_ref(x_396);
 x_422 = lean_box(0);
}
if (lean_is_scalar(x_422)) {
 x_423 = lean_alloc_ctor(1, 2, 0);
} else {
 x_423 = x_422;
}
lean_ctor_set(x_423, 0, x_420);
lean_ctor_set(x_423, 1, x_421);
return x_423;
}
}
else
{
lean_object* x_424; lean_object* x_425; 
lean_dec(x_394);
lean_dec(x_388);
lean_dec(x_383);
lean_dec(x_380);
lean_dec(x_361);
x_424 = lean_box(0);
x_425 = l_Lean_Elab_Term_elabSubst___lambda__4(x_379, x_385, x_392, x_35, x_381, x_382, x_424, x_3, x_4, x_5, x_6, x_7, x_8, x_393);
lean_dec(x_382);
return x_425;
}
}
else
{
lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; 
lean_dec(x_388);
lean_dec(x_385);
lean_dec(x_383);
lean_dec(x_382);
lean_dec(x_381);
lean_dec(x_380);
lean_dec(x_379);
lean_dec(x_361);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_426 = lean_ctor_get(x_391, 0);
lean_inc(x_426);
x_427 = lean_ctor_get(x_391, 1);
lean_inc(x_427);
if (lean_is_exclusive(x_391)) {
 lean_ctor_release(x_391, 0);
 lean_ctor_release(x_391, 1);
 x_428 = x_391;
} else {
 lean_dec_ref(x_391);
 x_428 = lean_box(0);
}
if (lean_is_scalar(x_428)) {
 x_429 = lean_alloc_ctor(1, 2, 0);
} else {
 x_429 = x_428;
}
lean_ctor_set(x_429, 0, x_426);
lean_ctor_set(x_429, 1, x_427);
return x_429;
}
}
else
{
lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; 
lean_dec(x_385);
lean_dec(x_383);
lean_dec(x_382);
lean_dec(x_381);
lean_dec(x_380);
lean_dec(x_379);
lean_dec(x_361);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_430 = lean_ctor_get(x_387, 0);
lean_inc(x_430);
x_431 = lean_ctor_get(x_387, 1);
lean_inc(x_431);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 x_432 = x_387;
} else {
 lean_dec_ref(x_387);
 x_432 = lean_box(0);
}
if (lean_is_scalar(x_432)) {
 x_433 = lean_alloc_ctor(1, 2, 0);
} else {
 x_433 = x_432;
}
lean_ctor_set(x_433, 0, x_430);
lean_ctor_set(x_433, 1, x_431);
return x_433;
}
}
else
{
lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; 
lean_dec(x_383);
lean_dec(x_382);
lean_dec(x_381);
lean_dec(x_380);
lean_dec(x_379);
lean_dec(x_361);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_434 = lean_ctor_get(x_384, 0);
lean_inc(x_434);
x_435 = lean_ctor_get(x_384, 1);
lean_inc(x_435);
if (lean_is_exclusive(x_384)) {
 lean_ctor_release(x_384, 0);
 lean_ctor_release(x_384, 1);
 x_436 = x_384;
} else {
 lean_dec_ref(x_384);
 x_436 = lean_box(0);
}
if (lean_is_scalar(x_436)) {
 x_437 = lean_alloc_ctor(1, 2, 0);
} else {
 x_437 = x_436;
}
lean_ctor_set(x_437, 0, x_434);
lean_ctor_set(x_437, 1, x_435);
return x_437;
}
}
else
{
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; lean_object* x_445; lean_object* x_446; 
x_438 = lean_ctor_get(x_363, 1);
lean_inc(x_438);
lean_dec(x_363);
x_439 = lean_ctor_get(x_376, 0);
lean_inc(x_439);
if (lean_is_exclusive(x_376)) {
 lean_ctor_release(x_376, 0);
 lean_ctor_release(x_376, 1);
 x_440 = x_376;
} else {
 lean_dec_ref(x_376);
 x_440 = lean_box(0);
}
x_441 = lean_ctor_get(x_377, 0);
lean_inc(x_441);
x_442 = lean_ctor_get(x_377, 1);
lean_inc(x_442);
if (lean_is_exclusive(x_377)) {
 lean_ctor_release(x_377, 0);
 lean_ctor_release(x_377, 1);
 x_443 = x_377;
} else {
 lean_dec_ref(x_377);
 x_443 = lean_box(0);
}
x_444 = lean_ctor_get(x_11, 0);
lean_inc(x_444);
lean_dec(x_11);
x_445 = lean_box(0);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_442);
lean_inc(x_444);
x_446 = l_Lean_Meta_kabstract(x_444, x_442, x_445, x_5, x_6, x_7, x_8, x_438);
if (lean_obj_tag(x_446) == 0)
{
lean_object* x_447; lean_object* x_448; lean_object* x_449; uint8_t x_450; 
x_447 = lean_ctor_get(x_446, 0);
lean_inc(x_447);
x_448 = lean_ctor_get(x_446, 1);
lean_inc(x_448);
lean_dec(x_446);
lean_inc(x_17);
lean_inc(x_23);
lean_inc(x_1);
lean_inc(x_444);
lean_inc(x_439);
x_449 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst___lambda__10___boxed), 18, 6);
lean_closure_set(x_449, 0, x_439);
lean_closure_set(x_449, 1, x_444);
lean_closure_set(x_449, 2, x_1);
lean_closure_set(x_449, 3, x_23);
lean_closure_set(x_449, 4, x_17);
lean_closure_set(x_449, 5, x_28);
x_450 = l_Lean_Expr_hasLooseBVars(x_447);
if (x_450 == 0)
{
lean_object* x_451; 
lean_dec(x_447);
lean_dec(x_439);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_1);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_441);
lean_inc(x_444);
x_451 = l_Lean_Meta_kabstract(x_444, x_441, x_445, x_5, x_6, x_7, x_8, x_448);
if (lean_obj_tag(x_451) == 0)
{
lean_object* x_452; lean_object* x_453; uint8_t x_454; 
x_452 = lean_ctor_get(x_451, 0);
lean_inc(x_452);
x_453 = lean_ctor_get(x_451, 1);
lean_inc(x_453);
lean_dec(x_451);
x_454 = l_Lean_Expr_hasLooseBVars(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; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; 
lean_dec(x_452);
lean_dec(x_449);
lean_dec(x_442);
lean_dec(x_441);
x_455 = l_Lean_indentExpr(x_444);
x_456 = l_Lean_Elab_Term_elabSubst___closed__15;
if (lean_is_scalar(x_443)) {
 x_457 = lean_alloc_ctor(7, 2, 0);
} else {
 x_457 = x_443;
 lean_ctor_set_tag(x_457, 7);
}
lean_ctor_set(x_457, 0, x_456);
lean_ctor_set(x_457, 1, x_455);
x_458 = l_Lean_Elab_Term_elabSubst___closed__17;
if (lean_is_scalar(x_440)) {
 x_459 = lean_alloc_ctor(7, 2, 0);
} else {
 x_459 = x_440;
 lean_ctor_set_tag(x_459, 7);
}
lean_ctor_set(x_459, 0, x_457);
lean_ctor_set(x_459, 1, x_458);
x_460 = l_Lean_indentExpr(x_35);
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_Term_elabSubst___closed__19;
x_463 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_463, 0, x_461);
lean_ctor_set(x_463, 1, x_462);
x_464 = l_Lean_indentExpr(x_361);
x_465 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_465, 0, x_463);
lean_ctor_set(x_465, 1, x_464);
x_466 = l_Lean_Elab_Term_elabSubst___closed__21;
x_467 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_467, 0, x_465);
lean_ctor_set(x_467, 1, x_466);
x_468 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_467, x_3, x_4, x_5, x_6, x_7, x_8, x_453);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_469 = lean_ctor_get(x_468, 0);
lean_inc(x_469);
x_470 = lean_ctor_get(x_468, 1);
lean_inc(x_470);
if (lean_is_exclusive(x_468)) {
 lean_ctor_release(x_468, 0);
 lean_ctor_release(x_468, 1);
 x_471 = x_468;
} else {
 lean_dec_ref(x_468);
 x_471 = lean_box(0);
}
if (lean_is_scalar(x_471)) {
 x_472 = lean_alloc_ctor(1, 2, 0);
} else {
 x_472 = x_471;
}
lean_ctor_set(x_472, 0, x_469);
lean_ctor_set(x_472, 1, x_470);
return x_472;
}
else
{
lean_object* x_473; lean_object* x_474; 
lean_dec(x_444);
lean_dec(x_443);
lean_dec(x_440);
lean_dec(x_361);
x_473 = lean_box(0);
x_474 = l_Lean_Elab_Term_elabSubst___lambda__5(x_449, x_452, x_35, x_441, x_442, x_473, x_3, x_4, x_5, x_6, x_7, x_8, x_453);
return x_474;
}
}
else
{
lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; 
lean_dec(x_449);
lean_dec(x_444);
lean_dec(x_443);
lean_dec(x_442);
lean_dec(x_441);
lean_dec(x_440);
lean_dec(x_361);
lean_dec(x_35);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_475 = lean_ctor_get(x_451, 0);
lean_inc(x_475);
x_476 = lean_ctor_get(x_451, 1);
lean_inc(x_476);
if (lean_is_exclusive(x_451)) {
 lean_ctor_release(x_451, 0);
 lean_ctor_release(x_451, 1);
 x_477 = x_451;
} else {
 lean_dec_ref(x_451);
 x_477 = lean_box(0);
}
if (lean_is_scalar(x_477)) {
 x_478 = lean_alloc_ctor(1, 2, 0);
} else {
 x_478 = x_477;
}
lean_ctor_set(x_478, 0, x_475);
lean_ctor_set(x_478, 1, x_476);
return x_478;
}
}
else
{
lean_object* x_479; lean_object* x_480; 
lean_dec(x_449);
lean_dec(x_443);
lean_dec(x_440);
lean_dec(x_361);
x_479 = lean_box(0);
x_480 = l_Lean_Elab_Term_elabSubst___lambda__10(x_439, x_444, x_1, x_23, x_17, x_28, x_447, x_35, x_441, x_442, x_479, x_3, x_4, x_5, x_6, x_7, x_8, x_448);
return x_480;
}
}
else
{
lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; 
lean_dec(x_444);
lean_dec(x_443);
lean_dec(x_442);
lean_dec(x_441);
lean_dec(x_440);
lean_dec(x_439);
lean_dec(x_361);
lean_dec(x_35);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_481 = lean_ctor_get(x_446, 0);
lean_inc(x_481);
x_482 = lean_ctor_get(x_446, 1);
lean_inc(x_482);
if (lean_is_exclusive(x_446)) {
 lean_ctor_release(x_446, 0);
 lean_ctor_release(x_446, 1);
 x_483 = x_446;
} else {
 lean_dec_ref(x_446);
 x_483 = lean_box(0);
}
if (lean_is_scalar(x_483)) {
 x_484 = lean_alloc_ctor(1, 2, 0);
} else {
 x_484 = x_483;
}
lean_ctor_set(x_484, 0, x_481);
lean_ctor_set(x_484, 1, x_482);
return x_484;
}
}
}
}
else
{
lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; 
lean_dec(x_361);
lean_dec(x_35);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_485 = lean_ctor_get(x_363, 0);
lean_inc(x_485);
x_486 = lean_ctor_get(x_363, 1);
lean_inc(x_486);
if (lean_is_exclusive(x_363)) {
 lean_ctor_release(x_363, 0);
 lean_ctor_release(x_363, 1);
 x_487 = x_363;
} else {
 lean_dec_ref(x_363);
 x_487 = lean_box(0);
}
if (lean_is_scalar(x_487)) {
 x_488 = lean_alloc_ctor(1, 2, 0);
} else {
 x_488 = x_487;
}
lean_ctor_set(x_488, 0, x_485);
lean_ctor_set(x_488, 1, x_486);
return x_488;
}
}
}
else
{
uint8_t x_489; 
lean_dec(x_35);
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_489 = !lean_is_exclusive(x_37);
if (x_489 == 0)
{
return x_37;
}
else
{
lean_object* x_490; lean_object* x_491; lean_object* x_492; 
x_490 = lean_ctor_get(x_37, 0);
x_491 = lean_ctor_get(x_37, 1);
lean_inc(x_491);
lean_inc(x_490);
lean_dec(x_37);
x_492 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_492, 0, x_490);
lean_ctor_set(x_492, 1, x_491);
return x_492;
}
}
}
else
{
uint8_t x_493; 
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_493 = !lean_is_exclusive(x_34);
if (x_493 == 0)
{
return x_34;
}
else
{
lean_object* x_494; lean_object* x_495; lean_object* x_496; 
x_494 = lean_ctor_get(x_34, 0);
x_495 = lean_ctor_get(x_34, 1);
lean_inc(x_495);
lean_inc(x_494);
lean_dec(x_34);
x_496 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_496, 0, x_494);
lean_ctor_set(x_496, 1, x_495);
return x_496;
}
}
}
else
{
uint8_t x_497; 
lean_dec(x_23);
lean_dec(x_17);
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_497 = !lean_is_exclusive(x_26);
if (x_497 == 0)
{
return x_26;
}
else
{
lean_object* x_498; lean_object* x_499; lean_object* x_500; 
x_498 = lean_ctor_get(x_26, 0);
x_499 = lean_ctor_get(x_26, 1);
lean_inc(x_499);
lean_inc(x_498);
lean_dec(x_26);
x_500 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_500, 0, x_498);
lean_ctor_set(x_500, 1, x_499);
return x_500;
}
}
}
}
}
else
{
uint8_t x_501; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_501 = !lean_is_exclusive(x_10);
if (x_501 == 0)
{
return x_10;
}
else
{
lean_object* x_502; lean_object* x_503; lean_object* x_504; 
x_502 = lean_ctor_get(x_10, 0);
x_503 = lean_ctor_get(x_10, 1);
lean_inc(x_503);
lean_inc(x_502);
lean_dec(x_10);
x_504 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_504, 0, x_502);
lean_ctor_set(x_504, 1, x_503);
return x_504;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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:
{
lean_object* x_11; 
x_11 = l_Lean_Elab_Term_elabSubst___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l_Lean_Elab_Term_elabSubst___lambda__3(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_6);
lean_dec(x_5);
lean_dec(x_4);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; 
x_15 = l_Lean_Elab_Term_elabSubst___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
lean_dec(x_7);
lean_dec(x_6);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___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, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; 
x_14 = l_Lean_Elab_Term_elabSubst___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
lean_dec(x_6);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; 
x_15 = l_Lean_Elab_Term_elabSubst___lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
lean_dec(x_7);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__9___boxed(lean_object** _args) {
lean_object* x_1 = _args[0];
lean_object* x_2 = _args[1];
lean_object* x_3 = _args[2];
lean_object* x_4 = _args[3];
lean_object* x_5 = _args[4];
lean_object* x_6 = _args[5];
lean_object* x_7 = _args[6];
lean_object* x_8 = _args[7];
lean_object* x_9 = _args[8];
lean_object* x_10 = _args[9];
lean_object* x_11 = _args[10];
lean_object* x_12 = _args[11];
lean_object* x_13 = _args[12];
lean_object* x_14 = _args[13];
lean_object* x_15 = _args[14];
lean_object* x_16 = _args[15];
lean_object* x_17 = _args[16];
_start:
{
lean_object* x_18; 
x_18 = l_Lean_Elab_Term_elabSubst___lambda__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17);
lean_dec(x_10);
lean_dec(x_2);
return x_18;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabSubst___lambda__10___boxed(lean_object** _args) {
lean_object* x_1 = _args[0];
lean_object* x_2 = _args[1];
lean_object* x_3 = _args[2];
lean_object* x_4 = _args[3];
lean_object* x_5 = _args[4];
lean_object* x_6 = _args[5];
lean_object* x_7 = _args[6];
lean_object* x_8 = _args[7];
lean_object* x_9 = _args[8];
lean_object* x_10 = _args[9];
lean_object* x_11 = _args[10];
lean_object* x_12 = _args[11];
lean_object* x_13 = _args[12];
lean_object* x_14 = _args[13];
lean_object* x_15 = _args[14];
lean_object* x_16 = _args[15];
lean_object* x_17 = _args[16];
lean_object* x_18 = _args[17];
_start:
{
lean_object* x_19; 
x_19 = l_Lean_Elab_Term_elabSubst___lambda__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18);
lean_dec(x_11);
return x_19;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabSubst", 9, 9);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabSubst), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l_Lean_Elab_Term_elabSubst___closed__1;
x_4 = l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(344u);
x_2 = lean_unsigned_to_nat(27u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(422u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__3() {
_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_Term_elabSubst_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(27u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(344u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(344u);
x_2 = lean_unsigned_to_nat(40u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(31u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(40u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_levelOne;
x_2 = l_Lean_Expr_sort___override(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__1;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("STWorld", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("StateRefT'", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__5;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(3u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabStateRefT___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; 
x_11 = l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__1;
x_12 = l_Lean_mkArrow(x_11, x_11, x_8, x_9, x_10);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_13);
x_16 = 1;
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
x_17 = l_Lean_Elab_Term_elabTerm(x_2, x_15, x_16, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_14);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
x_19 = lean_ctor_get(x_17, 1);
lean_inc(x_19);
lean_dec(x_17);
x_20 = l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__2;
x_21 = 0;
x_22 = lean_box(0);
lean_inc(x_6);
x_23 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_20, x_21, x_22, x_6, x_7, x_8, x_9, x_19);
x_24 = lean_ctor_get(x_23, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_23, 1);
lean_inc(x_25);
lean_dec(x_23);
x_26 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16;
lean_inc(x_24);
x_27 = lean_array_push(x_26, x_24);
lean_inc(x_18);
x_28 = lean_array_push(x_27, x_18);
x_29 = l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__4;
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
x_30 = l_Lean_Meta_mkAppM(x_29, x_28, x_6, x_7, x_8, x_9, x_25);
if (lean_obj_tag(x_30) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
x_32 = lean_ctor_get(x_30, 1);
lean_inc(x_32);
lean_dec(x_30);
x_33 = lean_box(0);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
x_34 = l_Lean_Elab_Term_mkInstMVar(x_31, x_33, x_4, x_5, x_6, x_7, x_8, x_9, x_32);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_35 = lean_ctor_get(x_34, 1);
lean_inc(x_35);
lean_dec(x_34);
x_36 = l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__7;
x_37 = lean_array_push(x_36, x_24);
x_38 = lean_array_push(x_37, x_1);
x_39 = lean_array_push(x_38, x_18);
x_40 = l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__6;
x_41 = l_Lean_Meta_mkAppM(x_40, x_39, x_6, x_7, x_8, x_9, x_35);
return x_41;
}
else
{
uint8_t x_42; 
lean_dec(x_24);
lean_dec(x_18);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_1);
x_42 = !lean_is_exclusive(x_34);
if (x_42 == 0)
{
return x_34;
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_43 = lean_ctor_get(x_34, 0);
x_44 = lean_ctor_get(x_34, 1);
lean_inc(x_44);
lean_inc(x_43);
lean_dec(x_34);
x_45 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_45, 0, x_43);
lean_ctor_set(x_45, 1, x_44);
return x_45;
}
}
}
else
{
uint8_t x_46; 
lean_dec(x_24);
lean_dec(x_18);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_46 = !lean_is_exclusive(x_30);
if (x_46 == 0)
{
return x_30;
}
else
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_47 = lean_ctor_get(x_30, 0);
x_48 = lean_ctor_get(x_30, 1);
lean_inc(x_48);
lean_inc(x_47);
lean_dec(x_30);
x_49 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_49, 0, x_47);
lean_ctor_set(x_49, 1, x_48);
return x_49;
}
}
}
else
{
uint8_t x_50; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_50 = !lean_is_exclusive(x_17);
if (x_50 == 0)
{
return x_17;
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; 
x_51 = lean_ctor_get(x_17, 0);
x_52 = lean_ctor_get(x_17, 1);
lean_inc(x_52);
lean_inc(x_51);
lean_dec(x_17);
x_53 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_53, 0, x_51);
lean_ctor_set(x_53, 1, x_52);
return x_53;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabStateRefT___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("macroDollarArg", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabStateRefT___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabStateRefT___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabStateRefT(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; 
x_10 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_12 = l_Lean_Elab_Term_elabType(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_12) == 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; uint8_t x_19; 
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
x_15 = lean_unsigned_to_nat(2u);
x_16 = l_Lean_Syntax_getArg(x_1, x_15);
lean_inc(x_16);
x_17 = l_Lean_Syntax_getKind(x_16);
x_18 = l_Lean_Elab_Term_elabStateRefT___closed__2;
x_19 = lean_name_eq(x_17, x_18);
lean_dec(x_17);
if (x_19 == 0)
{
lean_object* x_20; lean_object* x_21; 
x_20 = lean_box(0);
x_21 = l_Lean_Elab_Term_elabStateRefT___lambda__1(x_13, x_16, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_14);
return x_21;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_22 = l_Lean_Syntax_getArg(x_16, x_10);
lean_dec(x_16);
x_23 = lean_box(0);
x_24 = l_Lean_Elab_Term_elabStateRefT___lambda__1(x_13, x_22, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_14);
return x_24;
}
}
else
{
uint8_t x_25; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_25 = !lean_is_exclusive(x_12);
if (x_25 == 0)
{
return x_12;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_26 = lean_ctor_get(x_12, 0);
x_27 = lean_ctor_get(x_12, 1);
lean_inc(x_27);
lean_inc(x_26);
lean_dec(x_12);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_26);
lean_ctor_set(x_28, 1, x_27);
return x_28;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabStateRefT___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:
{
lean_object* x_11; 
x_11 = l_Lean_Elab_Term_elabStateRefT___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_3);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabStateRefT___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Term_elabStateRefT(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_2);
lean_dec(x_1);
return x_10;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("stateRefT", 9, 9);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabStateRefT", 13, 13);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabStateRefT___boxed), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__4;
x_5 = l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__5;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(424u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(433u);
x_2 = lean_unsigned_to_nat(32u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__3() {
_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_Term_elabStateRefT_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(31u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(32u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(424u);
x_2 = lean_unsigned_to_nat(35u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(424u);
x_2 = lean_unsigned_to_nat(48u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(35u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(48u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabNoindex(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; uint8_t x_12; lean_object* x_13; 
x_10 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
x_12 = 1;
x_13 = l_Lean_Elab_Term_elabTerm(x_11, x_2, x_12, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_13) == 0)
{
uint8_t x_14; 
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_13, 0);
x_16 = l_Lean_Meta_DiscrTree_mkNoindexAnnotation(x_15);
lean_ctor_set(x_13, 0, x_16);
return x_13;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_17 = lean_ctor_get(x_13, 0);
x_18 = lean_ctor_get(x_13, 1);
lean_inc(x_18);
lean_inc(x_17);
lean_dec(x_13);
x_19 = l_Lean_Meta_DiscrTree_mkNoindexAnnotation(x_17);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_18);
return x_20;
}
}
else
{
uint8_t x_21; 
x_21 = !lean_is_exclusive(x_13);
if (x_21 == 0)
{
return x_13;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_22 = lean_ctor_get(x_13, 0);
x_23 = lean_ctor_get(x_13, 1);
lean_inc(x_23);
lean_inc(x_22);
lean_dec(x_13);
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_Lean_Elab_Term_elabNoindex___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Term_elabNoindex(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_1);
return x_10;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("noindex", 7, 7);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabNoindex", 11, 11);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabNoindex___boxed), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__4;
x_5 = l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__5;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(435u);
x_2 = lean_unsigned_to_nat(29u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(437u);
x_2 = lean_unsigned_to_nat(40u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__3() {
_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_Term_elabNoindex_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(29u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(40u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(435u);
x_2 = lean_unsigned_to_nat(33u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(435u);
x_2 = lean_unsigned_to_nat(44u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(33u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(44u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_panic___at_Lean_Elab_Term_elabUnsafe___spec__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Term_instInhabitedTermElabM(lean_box(0));
return x_1;
}
}
LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Term_elabUnsafe___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = l_panic___at_Lean_Elab_Term_elabUnsafe___spec__1___closed__1;
x_10 = lean_panic_fn(x_9, x_1);
x_11 = lean_apply_7(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
return x_11;
}
}
static lean_object* _init_l_Lean_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Compiler_implementedByAttr;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_10 = lean_st_ref_get(x_8, x_9);
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_ctor_get(x_11, 0);
lean_inc(x_13);
lean_dec(x_11);
x_14 = l_Lean_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2___closed__1;
x_15 = l_Lean_ParametricAttribute_setParam___rarg(x_14, x_13, x_1, x_2);
if (lean_obj_tag(x_15) == 0)
{
uint8_t x_16; 
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; 
lean_ctor_set_tag(x_15, 3);
x_17 = l_Lean_MessageData_ofFormat(x_15);
x_18 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
return x_18;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_19 = lean_ctor_get(x_15, 0);
lean_inc(x_19);
lean_dec(x_15);
x_20 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_20, 0, x_19);
x_21 = l_Lean_MessageData_ofFormat(x_20);
x_22 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
return x_22;
}
}
else
{
lean_object* x_23; lean_object* x_24; 
x_23 = lean_ctor_get(x_15, 0);
lean_inc(x_23);
lean_dec(x_15);
x_24 = l_Lean_setEnv___at_Lean_Elab_Term_evalTerm___spec__1(x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
lean_dec(x_3);
return x_24;
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unsafe", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Elab.BuiltinNotation", 25, 25);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Elab.Term.elabUnsafe", 25, 25);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unreachable code has been reached", 33, 33);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__3;
x_2 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__4;
x_3 = lean_unsigned_to_nat(472u);
x_4 = lean_unsigned_to_nat(54u);
x_5 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__5;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__3;
x_2 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__4;
x_3 = lean_unsigned_to_nat(473u);
x_4 = lean_unsigned_to_nat(55u);
x_5 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__5;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unsafe_impl", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__8;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_levelZero;
x_2 = l_Lean_Expr_sort___override(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; lean_object* x_11; 
x_10 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__2;
lean_inc(x_3);
x_11 = l_Lean_Elab_Term_mkAuxName(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec(x_11);
x_14 = 0;
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_15 = l_Lean_Meta_mkAuxDefinitionFor(x_12, x_1, x_14, x_5, x_6, x_7, x_8, x_13);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_15, 1);
lean_inc(x_17);
lean_dec(x_15);
x_18 = l_Lean_Expr_getAppFn(x_16);
if (lean_obj_tag(x_18) == 4)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_18, 0);
lean_inc(x_19);
x_20 = lean_ctor_get(x_18, 1);
lean_inc(x_20);
lean_dec(x_18);
lean_inc(x_3);
lean_inc(x_19);
x_21 = l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_17);
if (lean_obj_tag(x_21) == 0)
{
lean_object* x_22; 
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
if (lean_obj_tag(x_22) == 1)
{
lean_object* x_23; uint8_t x_24; 
x_23 = lean_ctor_get(x_21, 1);
lean_inc(x_23);
lean_dec(x_21);
x_24 = !lean_is_exclusive(x_22);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_ctor_get(x_22, 0);
x_26 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__9;
lean_inc(x_3);
x_27 = l_Lean_Elab_Term_mkAuxName(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_23);
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
x_29 = lean_ctor_get(x_27, 1);
lean_inc(x_29);
lean_dec(x_27);
x_30 = lean_ctor_get(x_25, 0);
lean_inc(x_30);
lean_dec(x_25);
x_31 = lean_ctor_get(x_30, 2);
lean_inc(x_31);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_31);
x_32 = l_Lean_Meta_mkOfNonempty(x_31, x_5, x_6, x_7, x_8, x_29);
if (lean_obj_tag(x_32) == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; 
x_33 = lean_ctor_get(x_32, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_32, 1);
lean_inc(x_34);
lean_dec(x_32);
x_35 = lean_ctor_get(x_30, 1);
lean_inc(x_35);
lean_dec(x_30);
lean_inc(x_28);
x_36 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_36, 0, x_28);
lean_ctor_set(x_36, 1, x_35);
lean_ctor_set(x_36, 2, x_31);
x_37 = lean_box(0);
lean_inc(x_28);
x_38 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_38, 0, x_28);
lean_ctor_set(x_38, 1, x_37);
x_39 = lean_box(0);
x_40 = 1;
x_41 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_41, 0, x_36);
lean_ctor_set(x_41, 1, x_33);
lean_ctor_set(x_41, 2, x_39);
lean_ctor_set(x_41, 3, x_38);
lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_40);
lean_ctor_set(x_22, 0, x_41);
lean_inc(x_8);
lean_inc(x_7);
x_42 = l_Lean_addDecl(x_22, x_7, x_8, x_34);
if (lean_obj_tag(x_42) == 0)
{
lean_object* x_43; lean_object* x_44; 
x_43 = lean_ctor_get(x_42, 1);
lean_inc(x_43);
lean_dec(x_42);
lean_inc(x_28);
x_44 = l_Lean_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2(x_28, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_43);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
if (lean_obj_tag(x_44) == 0)
{
uint8_t x_45; 
x_45 = !lean_is_exclusive(x_44);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
x_46 = lean_ctor_get(x_44, 0);
lean_dec(x_46);
x_47 = l_Lean_Expr_const___override(x_28, x_20);
x_48 = lean_unsigned_to_nat(0u);
x_49 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_16, x_48);
x_50 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__10;
lean_inc(x_49);
x_51 = lean_mk_array(x_49, x_50);
x_52 = lean_unsigned_to_nat(1u);
x_53 = lean_nat_sub(x_49, x_52);
lean_dec(x_49);
x_54 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_16, x_51, x_53);
x_55 = l_Lean_mkAppN(x_47, x_54);
lean_dec(x_54);
lean_ctor_set(x_44, 0, x_55);
return x_44;
}
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; 
x_56 = lean_ctor_get(x_44, 1);
lean_inc(x_56);
lean_dec(x_44);
x_57 = l_Lean_Expr_const___override(x_28, x_20);
x_58 = lean_unsigned_to_nat(0u);
x_59 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_16, x_58);
x_60 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__10;
lean_inc(x_59);
x_61 = lean_mk_array(x_59, x_60);
x_62 = lean_unsigned_to_nat(1u);
x_63 = lean_nat_sub(x_59, x_62);
lean_dec(x_59);
x_64 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_16, x_61, x_63);
x_65 = l_Lean_mkAppN(x_57, x_64);
lean_dec(x_64);
x_66 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_56);
return x_66;
}
}
else
{
uint8_t x_67; 
lean_dec(x_28);
lean_dec(x_20);
lean_dec(x_16);
x_67 = !lean_is_exclusive(x_44);
if (x_67 == 0)
{
return x_44;
}
else
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; 
x_68 = lean_ctor_get(x_44, 0);
x_69 = lean_ctor_get(x_44, 1);
lean_inc(x_69);
lean_inc(x_68);
lean_dec(x_44);
x_70 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_70, 0, x_68);
lean_ctor_set(x_70, 1, x_69);
return x_70;
}
}
}
else
{
uint8_t x_71; 
lean_dec(x_28);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_16);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_71 = !lean_is_exclusive(x_42);
if (x_71 == 0)
{
return x_42;
}
else
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_ctor_get(x_42, 0);
x_73 = lean_ctor_get(x_42, 1);
lean_inc(x_73);
lean_inc(x_72);
lean_dec(x_42);
x_74 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_74, 0, x_72);
lean_ctor_set(x_74, 1, x_73);
return x_74;
}
}
}
else
{
uint8_t x_75; 
lean_dec(x_31);
lean_dec(x_30);
lean_dec(x_28);
lean_free_object(x_22);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_16);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_75 = !lean_is_exclusive(x_32);
if (x_75 == 0)
{
return x_32;
}
else
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; 
x_76 = lean_ctor_get(x_32, 0);
x_77 = lean_ctor_get(x_32, 1);
lean_inc(x_77);
lean_inc(x_76);
lean_dec(x_32);
x_78 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_78, 0, x_76);
lean_ctor_set(x_78, 1, x_77);
return x_78;
}
}
}
else
{
uint8_t x_79; 
lean_free_object(x_22);
lean_dec(x_25);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_16);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_79 = !lean_is_exclusive(x_27);
if (x_79 == 0)
{
return x_27;
}
else
{
lean_object* x_80; lean_object* x_81; lean_object* x_82; 
x_80 = lean_ctor_get(x_27, 0);
x_81 = lean_ctor_get(x_27, 1);
lean_inc(x_81);
lean_inc(x_80);
lean_dec(x_27);
x_82 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_82, 0, x_80);
lean_ctor_set(x_82, 1, x_81);
return x_82;
}
}
}
else
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; 
x_83 = lean_ctor_get(x_22, 0);
lean_inc(x_83);
lean_dec(x_22);
x_84 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__9;
lean_inc(x_3);
x_85 = l_Lean_Elab_Term_mkAuxName(x_84, x_3, x_4, x_5, x_6, x_7, x_8, x_23);
if (lean_obj_tag(x_85) == 0)
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
x_86 = lean_ctor_get(x_85, 0);
lean_inc(x_86);
x_87 = lean_ctor_get(x_85, 1);
lean_inc(x_87);
lean_dec(x_85);
x_88 = lean_ctor_get(x_83, 0);
lean_inc(x_88);
lean_dec(x_83);
x_89 = lean_ctor_get(x_88, 2);
lean_inc(x_89);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_89);
x_90 = l_Lean_Meta_mkOfNonempty(x_89, x_5, x_6, x_7, x_8, x_87);
if (lean_obj_tag(x_90) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
x_91 = lean_ctor_get(x_90, 0);
lean_inc(x_91);
x_92 = lean_ctor_get(x_90, 1);
lean_inc(x_92);
lean_dec(x_90);
x_93 = lean_ctor_get(x_88, 1);
lean_inc(x_93);
lean_dec(x_88);
lean_inc(x_86);
x_94 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_94, 0, x_86);
lean_ctor_set(x_94, 1, x_93);
lean_ctor_set(x_94, 2, x_89);
x_95 = lean_box(0);
lean_inc(x_86);
x_96 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_96, 0, x_86);
lean_ctor_set(x_96, 1, x_95);
x_97 = lean_box(0);
x_98 = 1;
x_99 = lean_alloc_ctor(0, 4, 1);
lean_ctor_set(x_99, 0, x_94);
lean_ctor_set(x_99, 1, x_91);
lean_ctor_set(x_99, 2, x_97);
lean_ctor_set(x_99, 3, x_96);
lean_ctor_set_uint8(x_99, sizeof(void*)*4, x_98);
x_100 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_100, 0, x_99);
lean_inc(x_8);
lean_inc(x_7);
x_101 = l_Lean_addDecl(x_100, x_7, x_8, x_92);
if (lean_obj_tag(x_101) == 0)
{
lean_object* x_102; lean_object* x_103; 
x_102 = lean_ctor_get(x_101, 1);
lean_inc(x_102);
lean_dec(x_101);
lean_inc(x_86);
x_103 = l_Lean_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2(x_86, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_102);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
if (lean_obj_tag(x_103) == 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_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
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_Lean_Expr_const___override(x_86, x_20);
x_107 = lean_unsigned_to_nat(0u);
x_108 = l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(x_16, x_107);
x_109 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__10;
lean_inc(x_108);
x_110 = lean_mk_array(x_108, x_109);
x_111 = lean_unsigned_to_nat(1u);
x_112 = lean_nat_sub(x_108, x_111);
lean_dec(x_108);
x_113 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_16, x_110, x_112);
x_114 = l_Lean_mkAppN(x_106, x_113);
lean_dec(x_113);
if (lean_is_scalar(x_105)) {
 x_115 = lean_alloc_ctor(0, 2, 0);
} else {
 x_115 = x_105;
}
lean_ctor_set(x_115, 0, x_114);
lean_ctor_set(x_115, 1, x_104);
return x_115;
}
else
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; 
lean_dec(x_86);
lean_dec(x_20);
lean_dec(x_16);
x_116 = lean_ctor_get(x_103, 0);
lean_inc(x_116);
x_117 = lean_ctor_get(x_103, 1);
lean_inc(x_117);
if (lean_is_exclusive(x_103)) {
 lean_ctor_release(x_103, 0);
 lean_ctor_release(x_103, 1);
 x_118 = x_103;
} else {
 lean_dec_ref(x_103);
 x_118 = lean_box(0);
}
if (lean_is_scalar(x_118)) {
 x_119 = lean_alloc_ctor(1, 2, 0);
} else {
 x_119 = x_118;
}
lean_ctor_set(x_119, 0, x_116);
lean_ctor_set(x_119, 1, x_117);
return x_119;
}
}
else
{
lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; 
lean_dec(x_86);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_16);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_120 = lean_ctor_get(x_101, 0);
lean_inc(x_120);
x_121 = lean_ctor_get(x_101, 1);
lean_inc(x_121);
if (lean_is_exclusive(x_101)) {
 lean_ctor_release(x_101, 0);
 lean_ctor_release(x_101, 1);
 x_122 = x_101;
} else {
 lean_dec_ref(x_101);
 x_122 = lean_box(0);
}
if (lean_is_scalar(x_122)) {
 x_123 = lean_alloc_ctor(1, 2, 0);
} else {
 x_123 = x_122;
}
lean_ctor_set(x_123, 0, x_120);
lean_ctor_set(x_123, 1, x_121);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; 
lean_dec(x_89);
lean_dec(x_88);
lean_dec(x_86);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_16);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_124 = lean_ctor_get(x_90, 0);
lean_inc(x_124);
x_125 = lean_ctor_get(x_90, 1);
lean_inc(x_125);
if (lean_is_exclusive(x_90)) {
 lean_ctor_release(x_90, 0);
 lean_ctor_release(x_90, 1);
 x_126 = x_90;
} else {
 lean_dec_ref(x_90);
 x_126 = lean_box(0);
}
if (lean_is_scalar(x_126)) {
 x_127 = lean_alloc_ctor(1, 2, 0);
} else {
 x_127 = x_126;
}
lean_ctor_set(x_127, 0, x_124);
lean_ctor_set(x_127, 1, x_125);
return x_127;
}
}
else
{
lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; 
lean_dec(x_83);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_16);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_128 = lean_ctor_get(x_85, 0);
lean_inc(x_128);
x_129 = lean_ctor_get(x_85, 1);
lean_inc(x_129);
if (lean_is_exclusive(x_85)) {
 lean_ctor_release(x_85, 0);
 lean_ctor_release(x_85, 1);
 x_130 = x_85;
} else {
 lean_dec_ref(x_85);
 x_130 = lean_box(0);
}
if (lean_is_scalar(x_130)) {
 x_131 = lean_alloc_ctor(1, 2, 0);
} else {
 x_131 = x_130;
}
lean_ctor_set(x_131, 0, x_128);
lean_ctor_set(x_131, 1, x_129);
return x_131;
}
}
}
else
{
lean_object* x_132; lean_object* x_133; lean_object* x_134; 
lean_dec(x_22);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_16);
x_132 = lean_ctor_get(x_21, 1);
lean_inc(x_132);
lean_dec(x_21);
x_133 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__7;
x_134 = l_panic___at_Lean_Elab_Term_elabUnsafe___spec__1(x_133, x_3, x_4, x_5, x_6, x_7, x_8, x_132);
return x_134;
}
}
else
{
uint8_t x_135; 
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_16);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_135 = !lean_is_exclusive(x_21);
if (x_135 == 0)
{
return x_21;
}
else
{
lean_object* x_136; lean_object* x_137; lean_object* x_138; 
x_136 = lean_ctor_get(x_21, 0);
x_137 = lean_ctor_get(x_21, 1);
lean_inc(x_137);
lean_inc(x_136);
lean_dec(x_21);
x_138 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_138, 0, x_136);
lean_ctor_set(x_138, 1, x_137);
return x_138;
}
}
}
else
{
lean_object* x_139; lean_object* x_140; 
lean_dec(x_18);
lean_dec(x_16);
x_139 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__6;
x_140 = l_panic___at_Lean_Elab_Term_elabUnsafe___spec__1(x_139, x_3, x_4, x_5, x_6, x_7, x_8, x_17);
return x_140;
}
}
else
{
uint8_t x_141; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_141 = !lean_is_exclusive(x_15);
if (x_141 == 0)
{
return x_15;
}
else
{
lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_142 = lean_ctor_get(x_15, 0);
x_143 = lean_ctor_get(x_15, 1);
lean_inc(x_143);
lean_inc(x_142);
lean_dec(x_15);
x_144 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_144, 0, x_142);
lean_ctor_set(x_144, 1, x_143);
return x_144;
}
}
}
else
{
uint8_t x_145; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_145 = !lean_is_exclusive(x_11);
if (x_145 == 0)
{
return x_11;
}
else
{
lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_146 = lean_ctor_get(x_11, 0);
x_147 = lean_ctor_get(x_11, 1);
lean_inc(x_147);
lean_inc(x_146);
lean_dec(x_11);
x_148 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_148, 0, x_146);
lean_ctor_set(x_148, 1, x_147);
return x_148;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabUnsafe___closed__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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabUnsafe(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; uint8_t x_11; 
x_10 = l_Lean_Elab_Term_elabUnsafe___closed__1;
lean_inc(x_1);
x_11 = l_Lean_Syntax_isOfKind(x_1, x_10);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_unsigned_to_nat(1u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
lean_dec(x_1);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_15 = l_Lean_Elab_Term_elabTermAndSynthesize(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_15, 1);
lean_inc(x_17);
lean_dec(x_15);
lean_inc(x_16);
x_18 = l_Lean_Meta_getMVars(x_16, x_5, x_6, x_7, x_8, x_17);
x_19 = lean_ctor_get(x_18, 0);
lean_inc(x_19);
x_20 = lean_ctor_get(x_18, 1);
lean_inc(x_20);
lean_dec(x_18);
x_21 = lean_box(0);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_22 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_19, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_20);
lean_dec(x_19);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_23; uint8_t x_24; 
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
x_24 = lean_unbox(x_23);
lean_dec(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_ctor_get(x_22, 1);
lean_inc(x_25);
lean_dec(x_22);
x_26 = lean_box(0);
x_27 = l_Lean_Elab_Term_elabUnsafe___lambda__1(x_16, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_25);
return x_27;
}
else
{
lean_object* x_28; lean_object* x_29; uint8_t x_30; 
lean_dec(x_16);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_28 = lean_ctor_get(x_22, 1);
lean_inc(x_28);
lean_dec(x_22);
x_29 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_ensureType___spec__1___rarg(x_28);
x_30 = !lean_is_exclusive(x_29);
if (x_30 == 0)
{
return x_29;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_29, 0);
x_32 = lean_ctor_get(x_29, 1);
lean_inc(x_32);
lean_inc(x_31);
lean_dec(x_29);
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;
}
}
}
else
{
uint8_t x_34; 
lean_dec(x_16);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_34 = !lean_is_exclusive(x_22);
if (x_34 == 0)
{
return x_22;
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_35 = lean_ctor_get(x_22, 0);
x_36 = lean_ctor_get(x_22, 1);
lean_inc(x_36);
lean_inc(x_35);
lean_dec(x_22);
x_37 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_37, 0, x_35);
lean_ctor_set(x_37, 1, x_36);
return x_37;
}
}
}
else
{
uint8_t x_38; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_38 = !lean_is_exclusive(x_15);
if (x_38 == 0)
{
return x_15;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_39 = lean_ctor_get(x_15, 0);
x_40 = lean_ctor_get(x_15, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_15);
x_41 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_41, 0, x_39);
lean_ctor_set(x_41, 1, x_40);
return x_41;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabUnsafe___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Term_elabUnsafe___lambda__1(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;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabUnsafe", 10, 10);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabUnsafe), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l_Lean_Elab_Term_elabUnsafe___closed__1;
x_4 = l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(440u);
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(460u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__3() {
_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_Term_elabUnsafe_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(440u);
x_2 = lean_unsigned_to_nat(4u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(440u);
x_2 = lean_unsigned_to_nat(14u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(4u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(14u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Option", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___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_Term_elabRunElab_unsafe__1___closed__2;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Expr", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__4;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__5;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__6;
x_3 = l_Lean_Expr_app___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("TermElabM", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___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_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__8;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__9;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__10;
x_2 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__6;
x_3 = l_Lean_Expr_app___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__2;
x_2 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__7;
x_3 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__11;
x_4 = 0;
x_5 = l_Lean_Expr_forallE___override(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; uint8_t x_10; lean_object* x_11; 
x_9 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__12;
x_10 = 1;
x_11 = l_Lean_Elab_Term_evalTerm___rarg(x_9, x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
return x_11;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__2___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__9;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab_unsafe__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Term_elabRunElab_unsafe__2___closed__1;
x_2 = l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__6;
x_3 = l_Lean_Expr_app___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRunElab_unsafe__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; uint8_t x_10; lean_object* x_11; 
x_9 = l_Lean_Elab_Term_elabRunElab_unsafe__2___closed__2;
x_10 = 1;
x_11 = l_Lean_Elab_Term_evalTerm___rarg(x_9, x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at_Lean_Elab_Term_elabRunElab___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; uint8_t x_7; 
x_6 = lean_array_get_size(x_1);
x_7 = lean_nat_dec_lt(x_4, x_6);
lean_dec(x_6);
if (x_7 == 0)
{
lean_object* x_8; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_8 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_8, 0, x_5);
return x_8;
}
else
{
lean_object* x_9; uint8_t x_10; 
x_9 = lean_unsigned_to_nat(0u);
x_10 = lean_nat_dec_eq(x_3, x_9);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_11 = lean_unsigned_to_nat(1u);
x_12 = lean_nat_sub(x_3, x_11);
lean_dec(x_3);
x_13 = lean_array_fget(x_1, x_4);
lean_inc(x_2);
x_14 = lean_apply_1(x_2, x_13);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; 
lean_dec(x_12);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
x_15 = lean_box(0);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_16 = lean_ctor_get(x_14, 0);
lean_inc(x_16);
lean_dec(x_14);
x_17 = lean_nat_add(x_4, x_11);
lean_dec(x_4);
x_18 = lean_array_push(x_5, x_16);
x_3 = x_12;
x_4 = x_17;
x_5 = x_18;
goto _start;
}
}
else
{
lean_object* x_20; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_20 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_20, 0, x_5);
return x_20;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_sequenceMap___at_Lean_Elab_Term_elabRunElab___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_3 = lean_array_get_size(x_1);
x_4 = lean_mk_empty_array_with_capacity(x_3);
x_5 = lean_unsigned_to_nat(0u);
x_6 = l_Array_sequenceMap_loop___at_Lean_Elab_Term_elabRunElab___spec__2(x_1, x_2, x_3, x_5, x_4);
return x_6;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("do", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabRunElab___lambda__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRunElab___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_10 = lean_ctor_get(x_7, 5);
lean_inc(x_10);
x_11 = 0;
x_12 = l_Lean_SourceInfo_fromRef(x_10, x_11);
lean_dec(x_10);
x_13 = lean_st_ref_get(x_8, x_9);
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_15 = lean_ctor_get(x_13, 1);
x_16 = lean_ctor_get(x_13, 0);
lean_dec(x_16);
x_17 = l_Lean_Elab_Term_elabRunElab___lambda__1___closed__1;
lean_inc(x_12);
lean_ctor_set_tag(x_13, 2);
lean_ctor_set(x_13, 1, x_17);
lean_ctor_set(x_13, 0, x_12);
x_18 = l_Lean_Elab_Term_elabRunElab___lambda__1___closed__2;
x_19 = l_Lean_Syntax_node2(x_12, x_18, x_13, x_1);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_20 = l_Lean_Elab_Term_elabRunElab_unsafe__2(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_15);
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
lean_dec(x_20);
x_23 = lean_apply_7(x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_22);
return x_23;
}
else
{
uint8_t x_24; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_24 = !lean_is_exclusive(x_20);
if (x_24 == 0)
{
return x_20;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_ctor_get(x_20, 0);
x_26 = lean_ctor_get(x_20, 1);
lean_inc(x_26);
lean_inc(x_25);
lean_dec(x_20);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, 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; lean_object* x_33; 
x_28 = lean_ctor_get(x_13, 1);
lean_inc(x_28);
lean_dec(x_13);
x_29 = l_Lean_Elab_Term_elabRunElab___lambda__1___closed__1;
lean_inc(x_12);
x_30 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_30, 0, x_12);
lean_ctor_set(x_30, 1, x_29);
x_31 = l_Lean_Elab_Term_elabRunElab___lambda__1___closed__2;
x_32 = l_Lean_Syntax_node2(x_12, x_31, x_30, x_1);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_33 = l_Lean_Elab_Term_elabRunElab_unsafe__2(x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_28);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_34 = lean_ctor_get(x_33, 0);
lean_inc(x_34);
x_35 = lean_ctor_get(x_33, 1);
lean_inc(x_35);
lean_dec(x_33);
x_36 = lean_apply_7(x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_35);
return x_36;
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_37 = lean_ctor_get(x_33, 0);
lean_inc(x_37);
x_38 = lean_ctor_get(x_33, 1);
lean_inc(x_38);
if (lean_is_exclusive(x_33)) {
 lean_ctor_release(x_33, 0);
 lean_ctor_release(x_33, 1);
 x_39 = x_33;
} else {
 lean_dec_ref(x_33);
 x_39 = lean_box(0);
}
if (lean_is_scalar(x_39)) {
 x_40 = lean_alloc_ctor(1, 2, 0);
} else {
 x_40 = x_39;
}
lean_ctor_set(x_40, 0, x_37);
lean_ctor_set(x_40, 1, x_38);
return x_40;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRunElab___lambda__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("byElab", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabRunElab___closed__1;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("doSeqIndent", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab___closed__4() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabRunElab___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("doSeqItem", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabRunElab___closed__5;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("doExpr", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab___closed__8() {
_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_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabRunElab___closed__7;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabRunElab___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabRunElab___lambda__2), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRunElab(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; uint8_t x_11; 
x_10 = l_Lean_Elab_Term_elabRunElab___closed__2;
lean_inc(x_1);
x_11 = l_Lean_Syntax_isOfKind(x_1, x_10);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_13 = lean_unsigned_to_nat(1u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
lean_dec(x_1);
x_15 = l_Lean_Elab_Term_elabRunElab___closed__4;
lean_inc(x_14);
x_16 = l_Lean_Syntax_isOfKind(x_14, x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; 
lean_dec(x_2);
x_17 = lean_box(0);
x_18 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_18;
}
else
{
lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_19 = lean_unsigned_to_nat(0u);
x_20 = l_Lean_Syntax_getArg(x_14, x_19);
lean_inc(x_20);
x_21 = l_Lean_Syntax_matchesNull(x_20, x_13);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; 
lean_dec(x_20);
lean_dec(x_2);
x_22 = lean_box(0);
x_23 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; uint8_t x_26; 
x_24 = l_Lean_Syntax_getArg(x_20, x_19);
lean_dec(x_20);
x_25 = l_Lean_Elab_Term_elabRunElab___closed__6;
lean_inc(x_24);
x_26 = l_Lean_Syntax_isOfKind(x_24, x_25);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; 
lean_dec(x_24);
lean_dec(x_2);
x_27 = lean_box(0);
x_28 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_27, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_28;
}
else
{
lean_object* x_29; lean_object* x_30; uint8_t x_31; 
x_29 = l_Lean_Syntax_getArg(x_24, x_19);
x_30 = l_Lean_Elab_Term_elabRunElab___closed__8;
lean_inc(x_29);
x_31 = l_Lean_Syntax_isOfKind(x_29, x_30);
if (x_31 == 0)
{
lean_object* x_32; lean_object* x_33; 
lean_dec(x_29);
lean_dec(x_24);
lean_dec(x_2);
x_32 = lean_box(0);
x_33 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_33;
}
else
{
lean_object* x_34; lean_object* x_35; uint8_t x_36; 
x_34 = l_Lean_Syntax_getArg(x_29, x_19);
lean_dec(x_29);
x_35 = l_Lean_Syntax_getArg(x_24, x_13);
lean_dec(x_24);
x_36 = l_Lean_Syntax_matchesNull(x_35, x_19);
if (x_36 == 0)
{
lean_object* x_37; lean_object* x_38; 
lean_dec(x_34);
lean_dec(x_2);
x_37 = lean_box(0);
x_38 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_38;
}
else
{
uint8_t x_39; 
lean_inc(x_34);
x_39 = l_Lean_Syntax_isOfKind(x_34, x_15);
if (x_39 == 0)
{
lean_object* x_40; lean_object* x_41; 
lean_dec(x_34);
lean_dec(x_2);
x_40 = lean_box(0);
x_41 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_40, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_41;
}
else
{
lean_object* x_42; uint8_t x_43; 
x_42 = l_Lean_Syntax_getArg(x_34, x_19);
lean_inc(x_42);
x_43 = l_Lean_Syntax_matchesNull(x_42, x_13);
if (x_43 == 0)
{
lean_object* x_44; lean_object* x_45; 
lean_dec(x_42);
lean_dec(x_34);
lean_dec(x_2);
x_44 = lean_box(0);
x_45 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_44, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_45;
}
else
{
lean_object* x_46; uint8_t x_47; 
x_46 = l_Lean_Syntax_getArg(x_42, x_19);
lean_dec(x_42);
lean_inc(x_46);
x_47 = l_Lean_Syntax_isOfKind(x_46, x_25);
if (x_47 == 0)
{
lean_object* x_48; lean_object* x_49; 
lean_dec(x_46);
lean_dec(x_34);
lean_dec(x_2);
x_48 = lean_box(0);
x_49 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_48, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_49;
}
else
{
lean_object* x_50; uint8_t x_51; 
x_50 = l_Lean_Syntax_getArg(x_46, x_19);
lean_inc(x_50);
x_51 = l_Lean_Syntax_isOfKind(x_50, x_30);
if (x_51 == 0)
{
lean_object* x_52; lean_object* x_53; 
lean_dec(x_50);
lean_dec(x_46);
lean_dec(x_34);
lean_dec(x_2);
x_52 = lean_box(0);
x_53 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_52, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_53;
}
else
{
lean_object* x_54; lean_object* x_55; uint8_t x_56; 
x_54 = l_Lean_Syntax_getArg(x_50, x_19);
lean_dec(x_50);
x_55 = l_Lean_Elab_Term_expandDbgTrace___closed__17;
lean_inc(x_54);
x_56 = l_Lean_Syntax_isOfKind(x_54, x_55);
if (x_56 == 0)
{
lean_object* x_57; lean_object* x_58; 
lean_dec(x_54);
lean_dec(x_46);
lean_dec(x_34);
lean_dec(x_2);
x_57 = lean_box(0);
x_58 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_57, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_58;
}
else
{
lean_object* x_59; lean_object* x_60; uint8_t x_61; 
x_59 = l_Lean_Syntax_getArg(x_54, x_13);
lean_dec(x_54);
x_60 = l_Lean_Elab_Term_expandDbgTrace___closed__19;
lean_inc(x_59);
x_61 = l_Lean_Syntax_isOfKind(x_59, x_60);
if (x_61 == 0)
{
lean_object* x_62; lean_object* x_63; 
lean_dec(x_59);
lean_dec(x_46);
lean_dec(x_34);
lean_dec(x_2);
x_62 = lean_box(0);
x_63 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_62, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_63;
}
else
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_64 = l_Lean_Syntax_getArg(x_59, x_19);
x_65 = l_Lean_Syntax_getArgs(x_64);
lean_dec(x_64);
x_66 = l_Lean_Elab_Term_elabRunElab___closed__9;
x_67 = l_Array_sequenceMap___at_Lean_Elab_Term_elabRunElab___spec__1(x_65, x_66);
lean_dec(x_65);
if (lean_obj_tag(x_67) == 0)
{
lean_object* x_68; lean_object* x_69; 
lean_dec(x_59);
lean_dec(x_46);
lean_dec(x_34);
lean_dec(x_2);
x_68 = lean_box(0);
x_69 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_68, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_69;
}
else
{
lean_object* x_70; uint8_t x_71; 
lean_dec(x_67);
x_70 = l_Lean_Syntax_getArg(x_59, x_13);
lean_dec(x_59);
x_71 = l_Lean_Syntax_matchesNull(x_70, x_19);
if (x_71 == 0)
{
lean_object* x_72; lean_object* x_73; 
lean_dec(x_46);
lean_dec(x_34);
lean_dec(x_2);
x_72 = lean_box(0);
x_73 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_72, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_73;
}
else
{
lean_object* x_74; uint8_t x_75; 
x_74 = l_Lean_Syntax_getArg(x_46, x_13);
lean_dec(x_46);
x_75 = l_Lean_Syntax_matchesNull(x_74, x_19);
if (x_75 == 0)
{
lean_object* x_76; lean_object* x_77; 
lean_dec(x_34);
lean_dec(x_2);
x_76 = lean_box(0);
x_77 = l_Lean_Elab_Term_elabRunElab___lambda__1(x_14, x_76, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_77;
}
else
{
lean_object* x_78; 
lean_dec(x_14);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_78 = l_Lean_Elab_Term_elabRunElab_unsafe__1(x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_78) == 0)
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; 
x_79 = lean_ctor_get(x_78, 0);
lean_inc(x_79);
x_80 = lean_ctor_get(x_78, 1);
lean_inc(x_80);
lean_dec(x_78);
x_81 = lean_apply_8(x_79, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_80);
if (lean_obj_tag(x_81) == 0)
{
uint8_t x_82; 
x_82 = !lean_is_exclusive(x_81);
if (x_82 == 0)
{
return x_81;
}
else
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; 
x_83 = lean_ctor_get(x_81, 0);
x_84 = lean_ctor_get(x_81, 1);
lean_inc(x_84);
lean_inc(x_83);
lean_dec(x_81);
x_85 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_85, 0, x_83);
lean_ctor_set(x_85, 1, x_84);
return x_85;
}
}
else
{
uint8_t x_86; 
x_86 = !lean_is_exclusive(x_81);
if (x_86 == 0)
{
return x_81;
}
else
{
lean_object* x_87; lean_object* x_88; lean_object* x_89; 
x_87 = lean_ctor_get(x_81, 0);
x_88 = lean_ctor_get(x_81, 1);
lean_inc(x_88);
lean_inc(x_87);
lean_dec(x_81);
x_89 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_89, 0, x_87);
lean_ctor_set(x_89, 1, x_88);
return x_89;
}
}
}
else
{
uint8_t x_90; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_90 = !lean_is_exclusive(x_78);
if (x_90 == 0)
{
return x_78;
}
else
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; 
x_91 = lean_ctor_get(x_78, 0);
x_92 = lean_ctor_get(x_78, 1);
lean_inc(x_92);
lean_inc(x_91);
lean_dec(x_78);
x_93 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_93, 0, x_91);
lean_ctor_set(x_93, 1, x_92);
return x_93;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Array_sequenceMap_loop___at_Lean_Elab_Term_elabRunElab___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_Array_sequenceMap_loop___at_Lean_Elab_Term_elabRunElab___spec__2(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Array_sequenceMap___at_Lean_Elab_Term_elabRunElab___spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Array_sequenceMap___at_Lean_Elab_Term_elabRunElab___spec__1(x_1, x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabRunElab___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Term_elabRunElab___lambda__1(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;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabRunElab", 11, 11);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabRunElab), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l_Lean_Elab_Term_elabRunElab___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_docString__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Elaborator for `by_elab`. ", 26, 26);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab_docString__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabRunElab_docString__1___closed__1;
x_4 = l_Lean_addBuiltinDocString(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(463u);
x_2 = lean_unsigned_to_nat(28u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(476u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__3() {
_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_Term_elabRunElab_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(28u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(463u);
x_2 = lean_unsigned_to_nat(32u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(463u);
x_2 = lean_unsigned_to_nat(43u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(32u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(43u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabHaveI___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
x_11 = l_Lean_Elab_Term_elabType(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec(x_11);
lean_inc(x_12);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_12);
x_15 = lean_box(0);
x_16 = 1;
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
x_17 = l_Lean_Elab_Term_elabTermEnsuringType(x_2, x_14, x_16, x_16, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; 
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
x_19 = lean_ctor_get(x_17, 1);
lean_inc(x_19);
lean_dec(x_17);
x_20 = 0;
x_21 = 1;
lean_inc(x_3);
x_22 = l_Lean_Meta_mkForallFVars(x_3, x_12, x_20, x_16, x_21, x_6, x_7, x_8, x_9, x_19);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_22, 1);
lean_inc(x_24);
lean_dec(x_22);
x_25 = l_Lean_Meta_mkLambdaFVars(x_3, x_18, x_20, x_16, x_20, x_21, x_6, x_7, x_8, x_9, x_24);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
if (lean_obj_tag(x_25) == 0)
{
uint8_t x_26; 
x_26 = !lean_is_exclusive(x_25);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_25, 0);
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_23);
lean_ctor_set(x_28, 1, x_27);
lean_ctor_set(x_25, 0, x_28);
return x_25;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_29 = lean_ctor_get(x_25, 0);
x_30 = lean_ctor_get(x_25, 1);
lean_inc(x_30);
lean_inc(x_29);
lean_dec(x_25);
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_23);
lean_ctor_set(x_31, 1, x_29);
x_32 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_32, 0, x_31);
lean_ctor_set(x_32, 1, x_30);
return x_32;
}
}
else
{
uint8_t x_33; 
lean_dec(x_23);
x_33 = !lean_is_exclusive(x_25);
if (x_33 == 0)
{
return x_25;
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_34 = lean_ctor_get(x_25, 0);
x_35 = lean_ctor_get(x_25, 1);
lean_inc(x_35);
lean_inc(x_34);
lean_dec(x_25);
x_36 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_36, 0, x_34);
lean_ctor_set(x_36, 1, x_35);
return x_36;
}
}
}
else
{
uint8_t x_37; 
lean_dec(x_18);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
x_37 = !lean_is_exclusive(x_22);
if (x_37 == 0)
{
return x_22;
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_38 = lean_ctor_get(x_22, 0);
x_39 = lean_ctor_get(x_22, 1);
lean_inc(x_39);
lean_inc(x_38);
lean_dec(x_22);
x_40 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_39);
return x_40;
}
}
}
else
{
uint8_t x_41; 
lean_dec(x_12);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
x_41 = !lean_is_exclusive(x_17);
if (x_41 == 0)
{
return x_17;
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_42 = lean_ctor_get(x_17, 0);
x_43 = lean_ctor_get(x_17, 1);
lean_inc(x_43);
lean_inc(x_42);
lean_dec(x_17);
x_44 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_44, 0, x_42);
lean_ctor_set(x_44, 1, x_43);
return x_44;
}
}
}
else
{
uint8_t x_45; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_45 = !lean_is_exclusive(x_11);
if (x_45 == 0)
{
return x_11;
}
else
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = lean_ctor_get(x_11, 0);
x_47 = lean_ctor_get(x_11, 1);
lean_inc(x_47);
lean_inc(x_46);
lean_dec(x_11);
x_48 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_48, 0, x_46);
lean_ctor_set(x_48, 1, x_47);
return x_48;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabHaveI___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; uint8_t x_13; lean_object* x_14; 
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_1);
x_13 = 1;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_14 = l_Lean_Elab_Term_elabTerm(x_2, x_12, x_13, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec(x_14);
x_17 = l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52;
x_18 = lean_array_push(x_17, x_4);
x_19 = l_Lean_Expr_abstractM(x_15, x_18, x_7, x_8, x_9, x_10, x_16);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_18);
if (lean_obj_tag(x_19) == 0)
{
uint8_t x_20; 
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_21 = lean_ctor_get(x_19, 0);
x_22 = lean_array_push(x_17, x_3);
x_23 = lean_expr_instantiate(x_21, x_22);
lean_dec(x_22);
lean_dec(x_21);
lean_ctor_set(x_19, 0, x_23);
return x_19;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_24 = lean_ctor_get(x_19, 0);
x_25 = lean_ctor_get(x_19, 1);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_19);
x_26 = lean_array_push(x_17, x_3);
x_27 = lean_expr_instantiate(x_24, x_26);
lean_dec(x_26);
lean_dec(x_24);
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_25);
return x_28;
}
}
else
{
uint8_t x_29; 
lean_dec(x_3);
x_29 = !lean_is_exclusive(x_19);
if (x_29 == 0)
{
return x_19;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_19, 0);
x_31 = lean_ctor_get(x_19, 1);
lean_inc(x_31);
lean_inc(x_30);
lean_dec(x_19);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
return x_32;
}
}
}
else
{
uint8_t x_33; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_3);
x_33 = !lean_is_exclusive(x_14);
if (x_33 == 0)
{
return x_14;
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_34 = lean_ctor_get(x_14, 0);
x_35 = lean_ctor_get(x_14, 1);
lean_inc(x_35);
lean_inc(x_34);
lean_dec(x_14);
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_EXPORT lean_object* l_Lean_Elab_Term_elabHaveI___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabHaveI___lambda__1), 10, 2);
lean_closure_set(x_14, 0, x_1);
lean_closure_set(x_14, 1, x_2);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_15 = l_Lean_Elab_Term_elabBinders___rarg(x_3, x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
if (lean_obj_tag(x_15) == 0)
{
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; uint8_t x_23; lean_object* x_24; 
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_15, 1);
lean_inc(x_17);
lean_dec(x_15);
x_18 = lean_ctor_get(x_16, 0);
lean_inc(x_18);
x_19 = lean_ctor_get(x_16, 1);
lean_inc(x_19);
lean_dec(x_16);
x_20 = l_Lean_Syntax_getId(x_4);
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabHaveI___lambda__2), 11, 3);
lean_closure_set(x_21, 0, x_6);
lean_closure_set(x_21, 1, x_5);
lean_closure_set(x_21, 2, x_19);
x_22 = 0;
x_23 = 0;
x_24 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_20, x_22, x_18, x_21, x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_17);
return x_24;
}
else
{
uint8_t x_25; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_25 = !lean_is_exclusive(x_15);
if (x_25 == 0)
{
return x_15;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_26 = lean_ctor_get(x_15, 0);
x_27 = lean_ctor_get(x_15, 1);
lean_inc(x_27);
lean_inc(x_26);
lean_dec(x_15);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_26);
lean_ctor_set(x_28, 1, x_27);
return x_28;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabHaveI___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("haveI", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabHaveI___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabHaveI___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabHaveI(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; uint8_t x_11; 
x_10 = l_Lean_Elab_Term_elabHaveI___closed__2;
lean_inc(x_1);
x_11 = l_Lean_Syntax_isOfKind(x_1, x_10);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_13 = lean_unsigned_to_nat(1u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = l_Lean_Elab_Term_expandHave___closed__3;
lean_inc(x_14);
x_16 = l_Lean_Syntax_isOfKind(x_14, x_15);
if (x_16 == 0)
{
lean_object* x_17; 
lean_dec(x_14);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_17 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_18 = lean_unsigned_to_nat(0u);
x_19 = l_Lean_Syntax_getArg(x_14, x_18);
lean_dec(x_14);
x_20 = l_Lean_Elab_Term_expandHave___closed__5;
lean_inc(x_19);
x_21 = l_Lean_Syntax_isOfKind(x_19, x_20);
if (x_21 == 0)
{
lean_object* x_22; 
lean_dec(x_19);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_22 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_22;
}
else
{
lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_23 = l_Lean_Syntax_getArg(x_19, x_18);
x_24 = l_Lean_Elab_Term_expandHave___closed__11;
lean_inc(x_23);
x_25 = l_Lean_Syntax_isOfKind(x_23, x_24);
if (x_25 == 0)
{
lean_object* x_26; 
lean_dec(x_23);
lean_dec(x_19);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_26 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_26;
}
else
{
lean_object* x_27; lean_object* x_28; uint8_t x_29; 
x_27 = l_Lean_Syntax_getArg(x_23, x_18);
lean_dec(x_23);
x_28 = l_Lean_Elab_Term_expandHave___closed__15;
lean_inc(x_27);
x_29 = l_Lean_Syntax_isOfKind(x_27, x_28);
if (x_29 == 0)
{
lean_object* x_30; 
lean_dec(x_27);
lean_dec(x_19);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_30 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_30;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; 
x_31 = l_Lean_Syntax_getArg(x_19, x_13);
x_32 = lean_unsigned_to_nat(2u);
x_33 = l_Lean_Syntax_getArg(x_19, x_32);
lean_inc(x_33);
x_34 = l_Lean_Syntax_matchesNull(x_33, x_13);
if (x_34 == 0)
{
lean_object* x_35; 
lean_dec(x_33);
lean_dec(x_31);
lean_dec(x_27);
lean_dec(x_19);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_35 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_35;
}
else
{
lean_object* x_36; lean_object* x_37; uint8_t x_38; 
x_36 = l_Lean_Syntax_getArg(x_33, x_18);
lean_dec(x_33);
x_37 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_36);
x_38 = l_Lean_Syntax_isOfKind(x_36, x_37);
if (x_38 == 0)
{
lean_object* x_39; 
lean_dec(x_36);
lean_dec(x_31);
lean_dec(x_27);
lean_dec(x_19);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_39 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_39;
}
else
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 
x_40 = l_Lean_Syntax_getArg(x_36, x_13);
lean_dec(x_36);
x_41 = lean_unsigned_to_nat(4u);
x_42 = l_Lean_Syntax_getArg(x_19, x_41);
lean_dec(x_19);
x_43 = lean_unsigned_to_nat(3u);
x_44 = l_Lean_Syntax_getArg(x_1, x_43);
lean_dec(x_1);
x_45 = l_Lean_Syntax_getArgs(x_31);
lean_dec(x_31);
x_46 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabHaveI___lambda__3___boxed), 13, 5);
lean_closure_set(x_46, 0, x_40);
lean_closure_set(x_46, 1, x_42);
lean_closure_set(x_46, 2, x_45);
lean_closure_set(x_46, 3, x_27);
lean_closure_set(x_46, 4, x_44);
x_47 = l_Lean_Elab_Term_withExpectedType(x_2, x_46, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_47;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabHaveI___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; 
x_14 = l_Lean_Elab_Term_elabHaveI___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
lean_dec(x_4);
return x_14;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabHaveI", 9, 9);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabHaveI), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l_Lean_Elab_Term_elabHaveI___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(478u);
x_2 = lean_unsigned_to_nat(44u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(488u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__3() {
_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_Term_elabHaveI_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(44u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(478u);
x_2 = lean_unsigned_to_nat(48u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(478u);
x_2 = lean_unsigned_to_nat(57u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(48u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(57u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetI___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabHaveI___lambda__1), 10, 2);
lean_closure_set(x_14, 0, x_1);
lean_closure_set(x_14, 1, x_2);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_15 = l_Lean_Elab_Term_elabBinders___rarg(x_3, x_14, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
if (lean_obj_tag(x_15) == 0)
{
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; 
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_15, 1);
lean_inc(x_17);
lean_dec(x_15);
x_18 = lean_ctor_get(x_16, 0);
lean_inc(x_18);
x_19 = lean_ctor_get(x_16, 1);
lean_inc(x_19);
lean_dec(x_16);
x_20 = l_Lean_Syntax_getId(x_4);
lean_inc(x_19);
x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabHaveI___lambda__2), 11, 3);
lean_closure_set(x_21, 0, x_6);
lean_closure_set(x_21, 1, x_5);
lean_closure_set(x_21, 2, x_19);
x_22 = 0;
x_23 = l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(x_20, x_18, x_19, x_21, x_22, x_7, x_8, x_9, x_10, x_11, x_12, x_17);
return x_23;
}
else
{
uint8_t x_24; 
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_24 = !lean_is_exclusive(x_15);
if (x_24 == 0)
{
return x_15;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_ctor_get(x_15, 0);
x_26 = lean_ctor_get(x_15, 1);
lean_inc(x_26);
lean_inc(x_25);
lean_dec(x_15);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
return x_27;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Term_elabLetI___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("letI", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Term_elabLetI___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l_Lean_Elab_Term_elabLetI___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetI(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; uint8_t x_11; 
x_10 = l_Lean_Elab_Term_elabLetI___closed__2;
lean_inc(x_1);
x_11 = l_Lean_Syntax_isOfKind(x_1, x_10);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_13 = lean_unsigned_to_nat(1u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = l_Lean_Elab_Term_expandHave___closed__3;
lean_inc(x_14);
x_16 = l_Lean_Syntax_isOfKind(x_14, x_15);
if (x_16 == 0)
{
lean_object* x_17; 
lean_dec(x_14);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_17 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_18 = lean_unsigned_to_nat(0u);
x_19 = l_Lean_Syntax_getArg(x_14, x_18);
lean_dec(x_14);
x_20 = l_Lean_Elab_Term_expandHave___closed__5;
lean_inc(x_19);
x_21 = l_Lean_Syntax_isOfKind(x_19, x_20);
if (x_21 == 0)
{
lean_object* x_22; 
lean_dec(x_19);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_22 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_22;
}
else
{
lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_23 = l_Lean_Syntax_getArg(x_19, x_18);
x_24 = l_Lean_Elab_Term_expandHave___closed__11;
lean_inc(x_23);
x_25 = l_Lean_Syntax_isOfKind(x_23, x_24);
if (x_25 == 0)
{
lean_object* x_26; 
lean_dec(x_23);
lean_dec(x_19);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_26 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_26;
}
else
{
lean_object* x_27; lean_object* x_28; uint8_t x_29; 
x_27 = l_Lean_Syntax_getArg(x_23, x_18);
lean_dec(x_23);
x_28 = l_Lean_Elab_Term_expandHave___closed__15;
lean_inc(x_27);
x_29 = l_Lean_Syntax_isOfKind(x_27, x_28);
if (x_29 == 0)
{
lean_object* x_30; 
lean_dec(x_27);
lean_dec(x_19);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_30 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_30;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; 
x_31 = l_Lean_Syntax_getArg(x_19, x_13);
x_32 = lean_unsigned_to_nat(2u);
x_33 = l_Lean_Syntax_getArg(x_19, x_32);
lean_inc(x_33);
x_34 = l_Lean_Syntax_matchesNull(x_33, x_13);
if (x_34 == 0)
{
lean_object* x_35; 
lean_dec(x_33);
lean_dec(x_31);
lean_dec(x_27);
lean_dec(x_19);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_35 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_35;
}
else
{
lean_object* x_36; lean_object* x_37; uint8_t x_38; 
x_36 = l_Lean_Syntax_getArg(x_33, x_18);
lean_dec(x_33);
x_37 = l_Lean_Elab_Term_elabShow___closed__10;
lean_inc(x_36);
x_38 = l_Lean_Syntax_isOfKind(x_36, x_37);
if (x_38 == 0)
{
lean_object* x_39; 
lean_dec(x_36);
lean_dec(x_31);
lean_dec(x_27);
lean_dec(x_19);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_39 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
return x_39;
}
else
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 
x_40 = l_Lean_Syntax_getArg(x_36, x_13);
lean_dec(x_36);
x_41 = lean_unsigned_to_nat(4u);
x_42 = l_Lean_Syntax_getArg(x_19, x_41);
lean_dec(x_19);
x_43 = lean_unsigned_to_nat(3u);
x_44 = l_Lean_Syntax_getArg(x_1, x_43);
lean_dec(x_1);
x_45 = l_Lean_Syntax_getArgs(x_31);
lean_dec(x_31);
x_46 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetI___lambda__1___boxed), 13, 5);
lean_closure_set(x_46, 0, x_40);
lean_closure_set(x_46, 1, x_42);
lean_closure_set(x_46, 2, x_45);
lean_closure_set(x_46, 3, x_27);
lean_closure_set(x_46, 4, x_44);
x_47 = l_Lean_Elab_Term_withExpectedType(x_2, x_46, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_47;
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLetI___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; 
x_14 = l_Lean_Elab_Term_elabLetI___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
lean_dec(x_4);
return x_14;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabLetI", 8, 8);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4;
x_3 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5;
x_4 = l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetI), 9, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8;
x_3 = l_Lean_Elab_Term_elabLetI___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(490u);
x_2 = lean_unsigned_to_nat(43u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(500u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__3() {
_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_Term_elabLetI_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(43u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(490u);
x_2 = lean_unsigned_to_nat(47u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(490u);
x_2 = lean_unsigned_to_nat(55u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(47u);
x_3 = l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(55u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
lean_object* initialize_Lean_Compiler_BorrowedAnnotation(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Meta_KAbstract(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Meta_Closure(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Meta_MatchUtil(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Compiler_ImplementedByAttr(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Elab_SyntheticMVars(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Elab_Eval(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Elab_Binders(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Elab_BuiltinNotation(uint8_t builtin, lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Compiler_BorrowedAnnotation(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Meta_KAbstract(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Meta_Closure(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Meta_MatchUtil(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Compiler_ImplementedByAttr(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_SyntheticMVars(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_Eval(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_Binders(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Elab_Term_elabCoe___closed__1 = _init_l_Lean_Elab_Term_elabCoe___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabCoe___closed__1);
l_Lean_Elab_Term_elabCoe___closed__2 = _init_l_Lean_Elab_Term_elabCoe___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabCoe___closed__2);
l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__7);
l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__8);
l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__9 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__9();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe__1___closed__9);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabCoe__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabCoe_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_elabCoeFunNotation___closed__1 = _init_l_Lean_Elab_Term_elabCoeFunNotation___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabCoeFunNotation___closed__1);
l_Lean_Elab_Term_elabCoeFunNotation___closed__2 = _init_l_Lean_Elab_Term_elabCoeFunNotation___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabCoeFunNotation___closed__2);
l_Lean_Elab_Term_elabCoeFunNotation___closed__3 = _init_l_Lean_Elab_Term_elabCoeFunNotation___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabCoeFunNotation___closed__3);
l_Lean_Elab_Term_elabCoeFunNotation___closed__4 = _init_l_Lean_Elab_Term_elabCoeFunNotation___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabCoeFunNotation___closed__4);
l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1___closed__5);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabCoeFunNotation_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_elabCoeSortNotation___closed__1 = _init_l_Lean_Elab_Term_elabCoeSortNotation___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabCoeSortNotation___closed__1);
l_Lean_Elab_Term_elabCoeSortNotation___closed__2 = _init_l_Lean_Elab_Term_elabCoeSortNotation___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabCoeSortNotation___closed__2);
l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1___closed__5);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabCoeSortNotation_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__1 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__1();
lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__1);
l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__2 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__2();
lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__2);
l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__3 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__3();
lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__3);
l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__4 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__4();
lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Term_elabAnonymousCtor___spec__1___closed__4);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__1 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__1);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__2 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__2);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__3);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__4);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__5 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__5);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__6 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__6);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__7 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__7);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__8);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__9 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__9);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__10);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__11 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__11();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__11);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__12 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__12();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__12);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__13 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__13();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__13);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__14 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__14();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__14);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__15 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__15();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__15);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__16 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__16();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__3___closed__16);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__1 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__1);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__2 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__2);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__3 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__3);
l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__4 = _init_l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___lambda__4___closed__4);
l_Lean_Elab_Term_elabAnonymousCtor___closed__1 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__1);
l_Lean_Elab_Term_elabAnonymousCtor___closed__2 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__2);
l_Lean_Elab_Term_elabAnonymousCtor___closed__3 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__3);
l_Lean_Elab_Term_elabAnonymousCtor___closed__4 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__4);
l_Lean_Elab_Term_elabAnonymousCtor___closed__5 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__5);
l_Lean_Elab_Term_elabAnonymousCtor___closed__6 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__6);
l_Lean_Elab_Term_elabAnonymousCtor___closed__7 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__7);
l_Lean_Elab_Term_elabAnonymousCtor___closed__8 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__8);
l_Lean_Elab_Term_elabAnonymousCtor___closed__9 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__9);
l_Lean_Elab_Term_elabAnonymousCtor___closed__10 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__10);
l_Lean_Elab_Term_elabAnonymousCtor___closed__11 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__11();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__11);
l_Lean_Elab_Term_elabAnonymousCtor___closed__12 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__12();
lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__12);
l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabAnonymousCtor_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_elabBorrowed___closed__1 = _init_l_Lean_Elab_Term_elabBorrowed___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabBorrowed___closed__1);
l_Lean_Elab_Term_elabBorrowed___closed__2 = _init_l_Lean_Elab_Term_elabBorrowed___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabBorrowed___closed__2);
l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBorrowed__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabBorrowed__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabBorrowed_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_expandShow___closed__1 = _init_l_Lean_Elab_Term_expandShow___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__1);
l_Lean_Elab_Term_expandShow___closed__2 = _init_l_Lean_Elab_Term_expandShow___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__2);
l_Lean_Elab_Term_expandShow___closed__3 = _init_l_Lean_Elab_Term_expandShow___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__3);
l_Lean_Elab_Term_expandShow___closed__4 = _init_l_Lean_Elab_Term_expandShow___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__4);
l_Lean_Elab_Term_expandShow___closed__5 = _init_l_Lean_Elab_Term_expandShow___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__5);
l_Lean_Elab_Term_expandShow___closed__6 = _init_l_Lean_Elab_Term_expandShow___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__6);
l_Lean_Elab_Term_expandShow___closed__7 = _init_l_Lean_Elab_Term_expandShow___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__7);
l_Lean_Elab_Term_expandShow___closed__8 = _init_l_Lean_Elab_Term_expandShow___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__8);
l_Lean_Elab_Term_expandShow___closed__9 = _init_l_Lean_Elab_Term_expandShow___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__9);
l_Lean_Elab_Term_expandShow___closed__10 = _init_l_Lean_Elab_Term_expandShow___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_expandShow___closed__10);
l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__3);
l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandShow__1___closed__4);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandShow__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandShow_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_elabShow___closed__1 = _init_l_Lean_Elab_Term_elabShow___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__1);
l_Lean_Elab_Term_elabShow___closed__2 = _init_l_Lean_Elab_Term_elabShow___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__2);
l_Lean_Elab_Term_elabShow___closed__3 = _init_l_Lean_Elab_Term_elabShow___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__3);
l_Lean_Elab_Term_elabShow___closed__4 = _init_l_Lean_Elab_Term_elabShow___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__4);
l_Lean_Elab_Term_elabShow___closed__5 = _init_l_Lean_Elab_Term_elabShow___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__5);
l_Lean_Elab_Term_elabShow___closed__6 = _init_l_Lean_Elab_Term_elabShow___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__6);
l_Lean_Elab_Term_elabShow___closed__7 = _init_l_Lean_Elab_Term_elabShow___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__7);
l_Lean_Elab_Term_elabShow___closed__8 = _init_l_Lean_Elab_Term_elabShow___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__8);
l_Lean_Elab_Term_elabShow___closed__9 = _init_l_Lean_Elab_Term_elabShow___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__9);
l_Lean_Elab_Term_elabShow___closed__10 = _init_l_Lean_Elab_Term_elabShow___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__10);
l_Lean_Elab_Term_elabShow___closed__11 = _init_l_Lean_Elab_Term_elabShow___closed__11();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__11);
l_Lean_Elab_Term_elabShow___closed__12 = _init_l_Lean_Elab_Term_elabShow___closed__12();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__12);
l_Lean_Elab_Term_elabShow___closed__13 = _init_l_Lean_Elab_Term_elabShow___closed__13();
lean_mark_persistent(l_Lean_Elab_Term_elabShow___closed__13);
l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabShow__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabShow__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabShow_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_expandHave___lambda__1___closed__1 = _init_l_Lean_Elab_Term_expandHave___lambda__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___lambda__1___closed__1);
l_Lean_Elab_Term_expandHave___lambda__2___closed__1 = _init_l_Lean_Elab_Term_expandHave___lambda__2___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___lambda__2___closed__1);
l_Lean_Elab_Term_expandHave___lambda__2___closed__2 = _init_l_Lean_Elab_Term_expandHave___lambda__2___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___lambda__2___closed__2);
l_Lean_Elab_Term_expandHave___lambda__2___closed__3 = _init_l_Lean_Elab_Term_expandHave___lambda__2___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___lambda__2___closed__3);
l_Lean_Elab_Term_expandHave___lambda__4___closed__1 = _init_l_Lean_Elab_Term_expandHave___lambda__4___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___lambda__4___closed__1);
l_Lean_Elab_Term_expandHave___closed__1 = _init_l_Lean_Elab_Term_expandHave___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__1);
l_Lean_Elab_Term_expandHave___closed__2 = _init_l_Lean_Elab_Term_expandHave___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__2);
l_Lean_Elab_Term_expandHave___closed__3 = _init_l_Lean_Elab_Term_expandHave___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__3);
l_Lean_Elab_Term_expandHave___closed__4 = _init_l_Lean_Elab_Term_expandHave___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__4);
l_Lean_Elab_Term_expandHave___closed__5 = _init_l_Lean_Elab_Term_expandHave___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__5);
l_Lean_Elab_Term_expandHave___closed__6 = _init_l_Lean_Elab_Term_expandHave___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__6);
l_Lean_Elab_Term_expandHave___closed__7 = _init_l_Lean_Elab_Term_expandHave___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__7);
l_Lean_Elab_Term_expandHave___closed__8 = _init_l_Lean_Elab_Term_expandHave___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__8);
l_Lean_Elab_Term_expandHave___closed__9 = _init_l_Lean_Elab_Term_expandHave___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__9);
l_Lean_Elab_Term_expandHave___closed__10 = _init_l_Lean_Elab_Term_expandHave___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__10);
l_Lean_Elab_Term_expandHave___closed__11 = _init_l_Lean_Elab_Term_expandHave___closed__11();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__11);
l_Lean_Elab_Term_expandHave___closed__12 = _init_l_Lean_Elab_Term_expandHave___closed__12();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__12);
l_Lean_Elab_Term_expandHave___closed__13 = _init_l_Lean_Elab_Term_expandHave___closed__13();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__13);
l_Lean_Elab_Term_expandHave___closed__14 = _init_l_Lean_Elab_Term_expandHave___closed__14();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__14);
l_Lean_Elab_Term_expandHave___closed__15 = _init_l_Lean_Elab_Term_expandHave___closed__15();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__15);
l_Lean_Elab_Term_expandHave___closed__16 = _init_l_Lean_Elab_Term_expandHave___closed__16();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__16);
l_Lean_Elab_Term_expandHave___closed__17 = _init_l_Lean_Elab_Term_expandHave___closed__17();
lean_mark_persistent(l_Lean_Elab_Term_expandHave___closed__17);
l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandHave__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandHave__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandHave_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_expandSuffices___closed__1 = _init_l_Lean_Elab_Term_expandSuffices___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_expandSuffices___closed__1);
l_Lean_Elab_Term_expandSuffices___closed__2 = _init_l_Lean_Elab_Term_expandSuffices___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_expandSuffices___closed__2);
l_Lean_Elab_Term_expandSuffices___closed__3 = _init_l_Lean_Elab_Term_expandSuffices___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_expandSuffices___closed__3);
l_Lean_Elab_Term_expandSuffices___closed__4 = _init_l_Lean_Elab_Term_expandSuffices___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_expandSuffices___closed__4);
l_Lean_Elab_Term_expandSuffices___closed__5 = _init_l_Lean_Elab_Term_expandSuffices___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_expandSuffices___closed__5);
l_Lean_Elab_Term_expandSuffices___closed__6 = _init_l_Lean_Elab_Term_expandSuffices___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_expandSuffices___closed__6);
l_Lean_Elab_Term_expandSuffices___closed__7 = _init_l_Lean_Elab_Term_expandSuffices___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_expandSuffices___closed__7);
l_Lean_Elab_Term_expandSuffices___closed__8 = _init_l_Lean_Elab_Term_expandSuffices___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_expandSuffices___closed__8);
l_Lean_Elab_Term_expandSuffices___closed__9 = _init_l_Lean_Elab_Term_expandSuffices___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_expandSuffices___closed__9);
l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandSuffices__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandSuffices__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandSuffices_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__1 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__1);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__2 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__2);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__3 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__3();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__3);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__4 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__4();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__4);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__5 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__5();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__5);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__6 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__6();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__6);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__7 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__7();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__7);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__8 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__8();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__8);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__9 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__9();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__9);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__10 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__10();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__10);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__11 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__11();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__11);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__12 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__12();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__12);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__13 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__13();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__13);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__14 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__14();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__14);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__15 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__15();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__15);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__16 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__16();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__16);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__17 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__17();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__17);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__18 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__18();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__18);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__19 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__19();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__19);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__20 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__20();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__20);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__21 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__21();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__21);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__22);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__23);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__24 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__24();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__24);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__25 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__25();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__25);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__26 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__26();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__26);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__27 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__27();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__27);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__28 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__28();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__28);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__29 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__29();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__29);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__30 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__30();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__30);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__31 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__31();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__31);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__32);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__33 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__33();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__33);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__34 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__34();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__34);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__35 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__35();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__35);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__36 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__36();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__36);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__37 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__37();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__37);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__38 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__38();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__38);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__39 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__39();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__39);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__40 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__40();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__40);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__41 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__41();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__41);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__42 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__42();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__42);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__43 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__43();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__43);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__44 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__44();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__44);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__45 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__45();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__45);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__46 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__46();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__46);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__47 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__47();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__47);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__48 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__48();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__48);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__49 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__49();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__49);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__50 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__50();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__50);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__51 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__51();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__51);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabParserMacroAux___closed__52);
l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__1 = _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__1);
l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__2 = _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__2);
l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__3 = _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__3);
l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__4 = _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabLeadingParserMacro___lambda__1___closed__4);
l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2___closed__1 = _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2___closed__1);
l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2___closed__2 = _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabLeadingParserMacro___lambda__2___closed__2);
l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__1 = _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__1);
l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__2 = _init_l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabLeadingParserMacro___lambda__3___closed__2);
l_Lean_Elab_Term_elabLeadingParserMacro___closed__1 = _init_l_Lean_Elab_Term_elabLeadingParserMacro___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabLeadingParserMacro___closed__1);
l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabLeadingParserMacro_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__1 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__1);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__2 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__2);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__3 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__3();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__3);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__4 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__4();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__4);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__5 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__5();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__5);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__6 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__6();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__6);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__7 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__7();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__7);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__8 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__8();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__8);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__9 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__9();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__9);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__10 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__10();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_elabTParserMacroAux___closed__10);
l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__1 = _init_l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__1);
l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__2 = _init_l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabTrailingParserMacro___lambda__1___closed__2);
l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__1 = _init_l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__1);
l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__2 = _init_l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabTrailingParserMacro___lambda__3___closed__2);
l_Lean_Elab_Term_elabTrailingParserMacro___closed__1 = _init_l_Lean_Elab_Term_elabTrailingParserMacro___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabTrailingParserMacro___closed__1);
l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabTrailingParserMacro_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_elabPanic___closed__1 = _init_l_Lean_Elab_Term_elabPanic___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__1);
l_Lean_Elab_Term_elabPanic___closed__2 = _init_l_Lean_Elab_Term_elabPanic___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__2);
l_Lean_Elab_Term_elabPanic___closed__3 = _init_l_Lean_Elab_Term_elabPanic___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__3);
l_Lean_Elab_Term_elabPanic___closed__4 = _init_l_Lean_Elab_Term_elabPanic___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__4);
l_Lean_Elab_Term_elabPanic___closed__5 = _init_l_Lean_Elab_Term_elabPanic___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__5);
l_Lean_Elab_Term_elabPanic___closed__6 = _init_l_Lean_Elab_Term_elabPanic___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__6);
l_Lean_Elab_Term_elabPanic___closed__7 = _init_l_Lean_Elab_Term_elabPanic___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__7);
l_Lean_Elab_Term_elabPanic___closed__8 = _init_l_Lean_Elab_Term_elabPanic___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__8);
l_Lean_Elab_Term_elabPanic___closed__9 = _init_l_Lean_Elab_Term_elabPanic___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__9);
l_Lean_Elab_Term_elabPanic___closed__10 = _init_l_Lean_Elab_Term_elabPanic___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__10);
l_Lean_Elab_Term_elabPanic___closed__11 = _init_l_Lean_Elab_Term_elabPanic___closed__11();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__11);
l_Lean_Elab_Term_elabPanic___closed__12 = _init_l_Lean_Elab_Term_elabPanic___closed__12();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__12);
l_Lean_Elab_Term_elabPanic___closed__13 = _init_l_Lean_Elab_Term_elabPanic___closed__13();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__13);
l_Lean_Elab_Term_elabPanic___closed__14 = _init_l_Lean_Elab_Term_elabPanic___closed__14();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__14);
l_Lean_Elab_Term_elabPanic___closed__15 = _init_l_Lean_Elab_Term_elabPanic___closed__15();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__15);
l_Lean_Elab_Term_elabPanic___closed__16 = _init_l_Lean_Elab_Term_elabPanic___closed__16();
lean_mark_persistent(l_Lean_Elab_Term_elabPanic___closed__16);
l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabPanic__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabPanic__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabPanic_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_expandUnreachable___rarg___closed__1 = _init_l_Lean_Elab_Term_expandUnreachable___rarg___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_expandUnreachable___rarg___closed__1);
l_Lean_Elab_Term_expandUnreachable___rarg___closed__2 = _init_l_Lean_Elab_Term_expandUnreachable___rarg___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_expandUnreachable___rarg___closed__2);
l_Lean_Elab_Term_expandUnreachable___rarg___closed__3 = _init_l_Lean_Elab_Term_expandUnreachable___rarg___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_expandUnreachable___rarg___closed__3);
l_Lean_Elab_Term_expandUnreachable___rarg___closed__4 = _init_l_Lean_Elab_Term_expandUnreachable___rarg___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_expandUnreachable___rarg___closed__4);
l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__3);
l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__4);
l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandUnreachable__1___closed__5);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandUnreachable__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandUnreachable_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_expandAssert___closed__1 = _init_l_Lean_Elab_Term_expandAssert___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_expandAssert___closed__1);
l_Lean_Elab_Term_expandAssert___closed__2 = _init_l_Lean_Elab_Term_expandAssert___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_expandAssert___closed__2);
l_Lean_Elab_Term_expandAssert___closed__3 = _init_l_Lean_Elab_Term_expandAssert___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_expandAssert___closed__3);
l_Lean_Elab_Term_expandAssert___closed__4 = _init_l_Lean_Elab_Term_expandAssert___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_expandAssert___closed__4);
l_Lean_Elab_Term_expandAssert___closed__5 = _init_l_Lean_Elab_Term_expandAssert___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_expandAssert___closed__5);
l_Lean_Elab_Term_expandAssert___closed__6 = _init_l_Lean_Elab_Term_expandAssert___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_expandAssert___closed__6);
l_Lean_Elab_Term_expandAssert___closed__7 = _init_l_Lean_Elab_Term_expandAssert___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_expandAssert___closed__7);
l_Lean_Elab_Term_expandAssert___closed__8 = _init_l_Lean_Elab_Term_expandAssert___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_expandAssert___closed__8);
l_Lean_Elab_Term_expandAssert___closed__9 = _init_l_Lean_Elab_Term_expandAssert___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_expandAssert___closed__9);
l_Lean_Elab_Term_expandAssert___closed__10 = _init_l_Lean_Elab_Term_expandAssert___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_expandAssert___closed__10);
l_Lean_Elab_Term_expandAssert___closed__11 = _init_l_Lean_Elab_Term_expandAssert___closed__11();
lean_mark_persistent(l_Lean_Elab_Term_expandAssert___closed__11);
l_Lean_Elab_Term_expandAssert___closed__12 = _init_l_Lean_Elab_Term_expandAssert___closed__12();
lean_mark_persistent(l_Lean_Elab_Term_expandAssert___closed__12);
l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandAssert__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandAssert__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandAssert_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_expandDbgTrace___closed__1 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__1);
l_Lean_Elab_Term_expandDbgTrace___closed__2 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__2);
l_Lean_Elab_Term_expandDbgTrace___closed__3 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__3);
l_Lean_Elab_Term_expandDbgTrace___closed__4 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__4);
l_Lean_Elab_Term_expandDbgTrace___closed__5 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__5);
l_Lean_Elab_Term_expandDbgTrace___closed__6 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__6);
l_Lean_Elab_Term_expandDbgTrace___closed__7 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__7);
l_Lean_Elab_Term_expandDbgTrace___closed__8 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__8);
l_Lean_Elab_Term_expandDbgTrace___closed__9 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__9);
l_Lean_Elab_Term_expandDbgTrace___closed__10 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__10);
l_Lean_Elab_Term_expandDbgTrace___closed__11 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__11();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__11);
l_Lean_Elab_Term_expandDbgTrace___closed__12 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__12();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__12);
l_Lean_Elab_Term_expandDbgTrace___closed__13 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__13();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__13);
l_Lean_Elab_Term_expandDbgTrace___closed__14 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__14();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__14);
l_Lean_Elab_Term_expandDbgTrace___closed__15 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__15();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__15);
l_Lean_Elab_Term_expandDbgTrace___closed__16 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__16();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__16);
l_Lean_Elab_Term_expandDbgTrace___closed__17 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__17();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__17);
l_Lean_Elab_Term_expandDbgTrace___closed__18 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__18();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__18);
l_Lean_Elab_Term_expandDbgTrace___closed__19 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__19();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__19);
l_Lean_Elab_Term_expandDbgTrace___closed__20 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__20();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__20);
l_Lean_Elab_Term_expandDbgTrace___closed__21 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__21();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__21);
l_Lean_Elab_Term_expandDbgTrace___closed__22 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__22();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__22);
l_Lean_Elab_Term_expandDbgTrace___closed__23 = _init_l_Lean_Elab_Term_expandDbgTrace___closed__23();
lean_mark_persistent(l_Lean_Elab_Term_expandDbgTrace___closed__23);
l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandDbgTrace__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandDbgTrace_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_elabSorry___closed__1 = _init_l_Lean_Elab_Term_elabSorry___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabSorry___closed__1);
l_Lean_Elab_Term_elabSorry___closed__2 = _init_l_Lean_Elab_Term_elabSorry___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabSorry___closed__2);
l_Lean_Elab_Term_elabSorry___closed__3 = _init_l_Lean_Elab_Term_elabSorry___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabSorry___closed__3);
l_Lean_Elab_Term_elabSorry___closed__4 = _init_l_Lean_Elab_Term_elabSorry___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabSorry___closed__4);
l_Lean_Elab_Term_elabSorry___closed__5 = _init_l_Lean_Elab_Term_elabSorry___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_elabSorry___closed__5);
l_Lean_Elab_Term_elabSorry___closed__6 = _init_l_Lean_Elab_Term_elabSorry___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_elabSorry___closed__6);
l_Lean_Elab_Term_elabSorry___closed__7 = _init_l_Lean_Elab_Term_elabSorry___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_elabSorry___closed__7);
l_Lean_Elab_Term_elabSorry___closed__8 = _init_l_Lean_Elab_Term_elabSorry___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_elabSorry___closed__8);
l_Lean_Elab_Term_elabSorry___closed__9 = _init_l_Lean_Elab_Term_elabSorry___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_elabSorry___closed__9);
l_Lean_Elab_Term_elabSorry___closed__10 = _init_l_Lean_Elab_Term_elabSorry___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_elabSorry___closed__10);
l_Lean_Elab_Term_elabSorry___closed__11 = _init_l_Lean_Elab_Term_elabSorry___closed__11();
lean_mark_persistent(l_Lean_Elab_Term_elabSorry___closed__11);
l_Lean_Elab_Term_elabSorry___closed__12 = _init_l_Lean_Elab_Term_elabSorry___closed__12();
lean_mark_persistent(l_Lean_Elab_Term_elabSorry___closed__12);
l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSorry__1___closed__5);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabSorry__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabSorry_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_mkPairs_loop___closed__1 = _init_l_Lean_Elab_Term_mkPairs_loop___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_mkPairs_loop___closed__1);
l_Lean_Elab_Term_mkPairs_loop___closed__2 = _init_l_Lean_Elab_Term_mkPairs_loop___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_mkPairs_loop___closed__2);
l_Lean_Elab_Term_mkPairs_loop___closed__3 = _init_l_Lean_Elab_Term_mkPairs_loop___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_mkPairs_loop___closed__3);
l_Lean_Elab_Term_mkPairs_loop___closed__4 = _init_l_Lean_Elab_Term_mkPairs_loop___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_mkPairs_loop___closed__4);
l_Lean_Elab_Term_mkPairs_loop___closed__5 = _init_l_Lean_Elab_Term_mkPairs_loop___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_mkPairs_loop___closed__5);
l_Lean_Elab_Term_mkPairs_loop___closed__6 = _init_l_Lean_Elab_Term_mkPairs_loop___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_mkPairs_loop___closed__6);
l_Lean_Elab_Term_mkPairs_loop___closed__7 = _init_l_Lean_Elab_Term_mkPairs_loop___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_mkPairs_loop___closed__7);
l_Lean_Elab_Term_mkPairs_loop___closed__8 = _init_l_Lean_Elab_Term_mkPairs_loop___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_mkPairs_loop___closed__8);
l_Lean_Elab_Term_mkPairs_loop___closed__9 = _init_l_Lean_Elab_Term_mkPairs_loop___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_mkPairs_loop___closed__9);
l_Lean_Elab_Term_mkPPairs_loop___closed__1 = _init_l_Lean_Elab_Term_mkPPairs_loop___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_mkPPairs_loop___closed__1);
l_Lean_Elab_Term_mkPPairs_loop___closed__2 = _init_l_Lean_Elab_Term_mkPPairs_loop___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_mkPPairs_loop___closed__2);
l_Lean_Elab_Term_mkPPairs_loop___closed__3 = _init_l_Lean_Elab_Term_mkPPairs_loop___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_mkPPairs_loop___closed__3);
l_Lean_Elab_Term_mkPPairs_loop___closed__4 = _init_l_Lean_Elab_Term_mkPPairs_loop___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_mkPPairs_loop___closed__4);
l_Lean_Elab_Term_mkPPairs_loop___closed__5 = _init_l_Lean_Elab_Term_mkPPairs_loop___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_mkPPairs_loop___closed__5);
l_Lean_Elab_Term_mkPPairs_loop___closed__6 = _init_l_Lean_Elab_Term_mkPPairs_loop___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_mkPPairs_loop___closed__6);
l_Lean_Elab_Term_mkPPairs_loop___closed__7 = _init_l_Lean_Elab_Term_mkPPairs_loop___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_mkPPairs_loop___closed__7);
l_Lean_Elab_Term_mkPPairs_loop___closed__8 = _init_l_Lean_Elab_Term_mkPPairs_loop___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_mkPPairs_loop___closed__8);
l_Lean_Elab_Term_mkMPairs_loop___closed__1 = _init_l_Lean_Elab_Term_mkMPairs_loop___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_mkMPairs_loop___closed__1);
l_Lean_Elab_Term_mkMPairs_loop___closed__2 = _init_l_Lean_Elab_Term_mkMPairs_loop___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_mkMPairs_loop___closed__2);
l_Lean_Elab_Term_mkMPairs_loop___closed__3 = _init_l_Lean_Elab_Term_mkMPairs_loop___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_mkMPairs_loop___closed__3);
l_Lean_Elab_Term_mkMPairs_loop___closed__4 = _init_l_Lean_Elab_Term_mkMPairs_loop___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_mkMPairs_loop___closed__4);
l_Lean_Elab_Term_mkMPairs_loop___closed__5 = _init_l_Lean_Elab_Term_mkMPairs_loop___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_mkMPairs_loop___closed__5);
l_Lean_Elab_Term_mkMPairs_loop___closed__6 = _init_l_Lean_Elab_Term_mkMPairs_loop___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_mkMPairs_loop___closed__6);
l_Lean_Elab_Term_mkMPairs_loop___closed__7 = _init_l_Lean_Elab_Term_mkMPairs_loop___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_mkMPairs_loop___closed__7);
l_Lean_Elab_Term_mkMPairs_loop___closed__8 = _init_l_Lean_Elab_Term_mkMPairs_loop___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_mkMPairs_loop___closed__8);
l_Lean_Elab_Term_hasCDot___closed__1 = _init_l_Lean_Elab_Term_hasCDot___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_hasCDot___closed__1);
l_Lean_Elab_Term_hasCDot___closed__2 = _init_l_Lean_Elab_Term_hasCDot___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_hasCDot___closed__2);
l_Lean_Elab_Term_hasCDot___closed__3 = _init_l_Lean_Elab_Term_hasCDot___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_hasCDot___closed__3);
l_Lean_Elab_Term_hasCDot___closed__4 = _init_l_Lean_Elab_Term_hasCDot___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_hasCDot___closed__4);
l_Lean_Elab_Term_hasCDot___closed__5 = _init_l_Lean_Elab_Term_hasCDot___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_hasCDot___closed__5);
l_Lean_Elab_Term_hasCDot___closed__6 = _init_l_Lean_Elab_Term_hasCDot___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_hasCDot___closed__6);
l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__1 = _init_l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__1);
l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__2 = _init_l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_mkFreshBinderName___at_Lean_Elab_Term_expandCDot_x3f_go___spec__3___closed__2);
l_Lean_Elab_Term_expandCDot_x3f___closed__1 = _init_l_Lean_Elab_Term_expandCDot_x3f___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_expandCDot_x3f___closed__1);
l_Lean_Elab_Term_expandCDot_x3f___closed__2 = _init_l_Lean_Elab_Term_expandCDot_x3f___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_expandCDot_x3f___closed__2);
l_Lean_Elab_Term_expandCDot_x3f___closed__3 = _init_l_Lean_Elab_Term_expandCDot_x3f___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_expandCDot_x3f___closed__3);
l_Lean_Elab_Term_expandCDot_x3f___closed__4 = _init_l_Lean_Elab_Term_expandCDot_x3f___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_expandCDot_x3f___closed__4);
l_Lean_Elab_Term_expandCDot_x3f___closed__5 = _init_l_Lean_Elab_Term_expandCDot_x3f___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_expandCDot_x3f___closed__5);
l_Lean_Elab_Term_expandCDot_x3f___closed__6 = _init_l_Lean_Elab_Term_expandCDot_x3f___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_expandCDot_x3f___closed__6);
l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___closed__1 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___closed__1();
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___closed__1);
l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___closed__2 = _init_l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___closed__2();
lean_mark_persistent(l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__4___closed__2);
l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg___closed__1 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg___closed__1();
lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg___closed__1);
l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg___closed__2 = _init_l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg___closed__2();
lean_mark_persistent(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabCDotFunctionAlias_x3f___spec__5___rarg___closed__2);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__1 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__1);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__2 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__2);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__3 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__3);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__4 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__4);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__5 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__5);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__6 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__6);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__7 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__7);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__8 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__8);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__9 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__9);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__10 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__10);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__11 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__11();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__11);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__12 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__12();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__12);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__13 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__13();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__13);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__14 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__14();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__14);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__15 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__15();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__15);
l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16 = _init_l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16();
lean_mark_persistent(l_Lean_Elab_Term_elabCDotFunctionAlias_x3f___closed__16);
l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandParen__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandParen__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandParen_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_expandTuple___closed__1 = _init_l_Lean_Elab_Term_expandTuple___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_expandTuple___closed__1);
l_Lean_Elab_Term_expandTuple___closed__2 = _init_l_Lean_Elab_Term_expandTuple___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_expandTuple___closed__2);
l_Lean_Elab_Term_expandTuple___closed__3 = _init_l_Lean_Elab_Term_expandTuple___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_expandTuple___closed__3);
l_Lean_Elab_Term_expandTuple___closed__4 = _init_l_Lean_Elab_Term_expandTuple___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_expandTuple___closed__4);
l_Lean_Elab_Term_expandTuple___closed__5 = _init_l_Lean_Elab_Term_expandTuple___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_expandTuple___closed__5);
l_Lean_Elab_Term_expandTuple___closed__6 = _init_l_Lean_Elab_Term_expandTuple___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_expandTuple___closed__6);
l_Lean_Elab_Term_expandTuple___closed__7 = _init_l_Lean_Elab_Term_expandTuple___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_expandTuple___closed__7);
l_Lean_Elab_Term_expandTuple___closed__8 = _init_l_Lean_Elab_Term_expandTuple___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_expandTuple___closed__8);
l_Lean_Elab_Term_expandTuple___closed__9 = _init_l_Lean_Elab_Term_expandTuple___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_expandTuple___closed__9);
l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTuple__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandTuple__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandTuple_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandTypeAscription__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_expandTypeAscription_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabTypeAscription__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabTypeAscription_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1___closed__1 = _init_l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1___closed__1();
lean_mark_persistent(l_Lean_exprDependsOn___at___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_isSubstCandidate___spec__1___closed__1);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__1 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__1);
l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__2 = _init_l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinNotation_0__Lean_Elab_Term_withLocalIdentFor___closed__2);
l_Lean_Elab_Term_elabSubst___lambda__4___closed__1 = _init_l_Lean_Elab_Term_elabSubst___lambda__4___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___lambda__4___closed__1);
l_Lean_Elab_Term_elabSubst___lambda__4___closed__2 = _init_l_Lean_Elab_Term_elabSubst___lambda__4___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___lambda__4___closed__2);
l_Lean_Elab_Term_elabSubst___lambda__6___closed__1 = _init_l_Lean_Elab_Term_elabSubst___lambda__6___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___lambda__6___closed__1);
l_Lean_Elab_Term_elabSubst___lambda__6___closed__2 = _init_l_Lean_Elab_Term_elabSubst___lambda__6___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___lambda__6___closed__2);
l_Lean_Elab_Term_elabSubst___lambda__6___closed__3 = _init_l_Lean_Elab_Term_elabSubst___lambda__6___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___lambda__6___closed__3);
l_Lean_Elab_Term_elabSubst___lambda__6___closed__4 = _init_l_Lean_Elab_Term_elabSubst___lambda__6___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___lambda__6___closed__4);
l_Lean_Elab_Term_elabSubst___lambda__6___closed__5 = _init_l_Lean_Elab_Term_elabSubst___lambda__6___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___lambda__6___closed__5);
l_Lean_Elab_Term_elabSubst___lambda__6___closed__6 = _init_l_Lean_Elab_Term_elabSubst___lambda__6___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___lambda__6___closed__6);
l_Lean_Elab_Term_elabSubst___closed__1 = _init_l_Lean_Elab_Term_elabSubst___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__1);
l_Lean_Elab_Term_elabSubst___closed__2 = _init_l_Lean_Elab_Term_elabSubst___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__2);
l_Lean_Elab_Term_elabSubst___closed__3 = _init_l_Lean_Elab_Term_elabSubst___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__3);
l_Lean_Elab_Term_elabSubst___closed__4 = _init_l_Lean_Elab_Term_elabSubst___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__4);
l_Lean_Elab_Term_elabSubst___closed__5 = _init_l_Lean_Elab_Term_elabSubst___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__5);
l_Lean_Elab_Term_elabSubst___closed__6 = _init_l_Lean_Elab_Term_elabSubst___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__6);
l_Lean_Elab_Term_elabSubst___closed__7 = _init_l_Lean_Elab_Term_elabSubst___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__7);
l_Lean_Elab_Term_elabSubst___closed__8 = _init_l_Lean_Elab_Term_elabSubst___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__8);
l_Lean_Elab_Term_elabSubst___closed__9 = _init_l_Lean_Elab_Term_elabSubst___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__9);
l_Lean_Elab_Term_elabSubst___closed__10 = _init_l_Lean_Elab_Term_elabSubst___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__10);
l_Lean_Elab_Term_elabSubst___closed__11 = _init_l_Lean_Elab_Term_elabSubst___closed__11();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__11);
l_Lean_Elab_Term_elabSubst___closed__12 = _init_l_Lean_Elab_Term_elabSubst___closed__12();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__12);
l_Lean_Elab_Term_elabSubst___closed__13 = _init_l_Lean_Elab_Term_elabSubst___closed__13();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__13);
l_Lean_Elab_Term_elabSubst___closed__14 = _init_l_Lean_Elab_Term_elabSubst___closed__14();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__14);
l_Lean_Elab_Term_elabSubst___closed__15 = _init_l_Lean_Elab_Term_elabSubst___closed__15();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__15);
l_Lean_Elab_Term_elabSubst___closed__16 = _init_l_Lean_Elab_Term_elabSubst___closed__16();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__16);
l_Lean_Elab_Term_elabSubst___closed__17 = _init_l_Lean_Elab_Term_elabSubst___closed__17();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__17);
l_Lean_Elab_Term_elabSubst___closed__18 = _init_l_Lean_Elab_Term_elabSubst___closed__18();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__18);
l_Lean_Elab_Term_elabSubst___closed__19 = _init_l_Lean_Elab_Term_elabSubst___closed__19();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__19);
l_Lean_Elab_Term_elabSubst___closed__20 = _init_l_Lean_Elab_Term_elabSubst___closed__20();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__20);
l_Lean_Elab_Term_elabSubst___closed__21 = _init_l_Lean_Elab_Term_elabSubst___closed__21();
lean_mark_persistent(l_Lean_Elab_Term_elabSubst___closed__21);
l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSubst__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabSubst__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabSubst_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__1 = _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__1);
l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__2 = _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__2);
l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__3 = _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__3);
l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__4 = _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__4);
l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__5 = _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__5);
l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__6 = _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__6);
l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__7 = _init_l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_elabStateRefT___lambda__1___closed__7);
l_Lean_Elab_Term_elabStateRefT___closed__1 = _init_l_Lean_Elab_Term_elabStateRefT___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabStateRefT___closed__1);
l_Lean_Elab_Term_elabStateRefT___closed__2 = _init_l_Lean_Elab_Term_elabStateRefT___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabStateRefT___closed__2);
l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabStateRefT__1___closed__5);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabStateRefT__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabStateRefT_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoindex__1___closed__5);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabNoindex__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabNoindex_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_panic___at_Lean_Elab_Term_elabUnsafe___spec__1___closed__1 = _init_l_panic___at_Lean_Elab_Term_elabUnsafe___spec__1___closed__1();
lean_mark_persistent(l_panic___at_Lean_Elab_Term_elabUnsafe___spec__1___closed__1);
l_Lean_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2___closed__1 = _init_l_Lean_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2___closed__1();
lean_mark_persistent(l_Lean_setImplementedBy___at_Lean_Elab_Term_elabUnsafe___spec__2___closed__1);
l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__1 = _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__1);
l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__2 = _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__2);
l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__3 = _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__3);
l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__4 = _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__4);
l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__5 = _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__5);
l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__6 = _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__6);
l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__7 = _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__7);
l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__8 = _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__8);
l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__9 = _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__9);
l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__10 = _init_l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_elabUnsafe___lambda__1___closed__10);
l_Lean_Elab_Term_elabUnsafe___closed__1 = _init_l_Lean_Elab_Term_elabUnsafe___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabUnsafe___closed__1);
l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabUnsafe__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabUnsafe__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabUnsafe_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__1 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__1);
l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__2 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__2);
l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__3 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__3);
l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__4 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__4);
l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__5 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__5);
l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__6 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__6);
l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__7 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__7);
l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__8 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__8);
l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__9 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__9);
l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__10 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__10();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__10);
l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__11 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__11();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__11);
l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__12 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__12();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__1___closed__12);
l_Lean_Elab_Term_elabRunElab_unsafe__2___closed__1 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__2___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__2___closed__1);
l_Lean_Elab_Term_elabRunElab_unsafe__2___closed__2 = _init_l_Lean_Elab_Term_elabRunElab_unsafe__2___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab_unsafe__2___closed__2);
l_Lean_Elab_Term_elabRunElab___lambda__1___closed__1 = _init_l_Lean_Elab_Term_elabRunElab___lambda__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab___lambda__1___closed__1);
l_Lean_Elab_Term_elabRunElab___lambda__1___closed__2 = _init_l_Lean_Elab_Term_elabRunElab___lambda__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab___lambda__1___closed__2);
l_Lean_Elab_Term_elabRunElab___closed__1 = _init_l_Lean_Elab_Term_elabRunElab___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab___closed__1);
l_Lean_Elab_Term_elabRunElab___closed__2 = _init_l_Lean_Elab_Term_elabRunElab___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab___closed__2);
l_Lean_Elab_Term_elabRunElab___closed__3 = _init_l_Lean_Elab_Term_elabRunElab___closed__3();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab___closed__3);
l_Lean_Elab_Term_elabRunElab___closed__4 = _init_l_Lean_Elab_Term_elabRunElab___closed__4();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab___closed__4);
l_Lean_Elab_Term_elabRunElab___closed__5 = _init_l_Lean_Elab_Term_elabRunElab___closed__5();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab___closed__5);
l_Lean_Elab_Term_elabRunElab___closed__6 = _init_l_Lean_Elab_Term_elabRunElab___closed__6();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab___closed__6);
l_Lean_Elab_Term_elabRunElab___closed__7 = _init_l_Lean_Elab_Term_elabRunElab___closed__7();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab___closed__7);
l_Lean_Elab_Term_elabRunElab___closed__8 = _init_l_Lean_Elab_Term_elabRunElab___closed__8();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab___closed__8);
l_Lean_Elab_Term_elabRunElab___closed__9 = _init_l_Lean_Elab_Term_elabRunElab___closed__9();
lean_mark_persistent(l_Lean_Elab_Term_elabRunElab___closed__9);
l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRunElab__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabRunElab__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabRunElab_docString__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_docString__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRunElab_docString__1___closed__1);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabRunElab_docString__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabRunElab_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_elabHaveI___closed__1 = _init_l_Lean_Elab_Term_elabHaveI___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabHaveI___closed__1);
l_Lean_Elab_Term_elabHaveI___closed__2 = _init_l_Lean_Elab_Term_elabHaveI___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabHaveI___closed__2);
l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabHaveI__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabHaveI__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabHaveI_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Term_elabLetI___closed__1 = _init_l_Lean_Elab_Term_elabLetI___closed__1();
lean_mark_persistent(l_Lean_Elab_Term_elabLetI___closed__1);
l_Lean_Elab_Term_elabLetI___closed__2 = _init_l_Lean_Elab_Term_elabLetI___closed__2();
lean_mark_persistent(l_Lean_Elab_Term_elabLetI___closed__2);
l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetI__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabLetI__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Term_elabLetI_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
