text: // Lean compiler output
  // Module: Init.Lean.Expr
  // Imports: Init.Data.HashMap Init.Data.HashSet Init.Data.PersistentHashMap Init.Data.PersistentHashSet Init.Lean.Data.KVMap Init.Lean.Level
  #include "runtime/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
  lean_object* l_Lean_Expr_isBinding___boxed(lean_object*);
  lean_object* l_Lean_Expr_letName_x21___closed__2;
  lean_object* l_Lean_Expr_updateSort___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*);
  lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* lean_array_set(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkDecIsFalse___closed__2;
  lean_object* l_Lean_Expr_Data_hash___boxed(lean_object*);
  lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_List_hash___at_Lean_mkConst___spec__1___boxed(lean_object*);
  lean_object* l_Lean_Expr_mvarId_x21(lean_object*);
  lean_object* l_Lean_Expr_bindingDomain_x21___boxed(lean_object*);
  lean_object* l_Lean_Expr_letName_x21(lean_object*);
  uint8_t l_Lean_Expr_isNatLit(lean_object*);
  lean_object* l_Lean_Name_eraseMacroScopes(lean_object*);
  lean_object* l_Lean_Expr_updateLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppNumArgs___boxed(lean_object*);
  lean_object* lean_mk_empty_array_with_capacity(lean_object*);
  lean_object* l_Lean_Expr_isAppOf___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_mkSort(lean_object*);
  uint8_t l_Lean_Expr_isHeadBetaTargetFn(lean_object*);
  uint8_t l_UInt64_decEq(uint64_t, uint64_t);
  lean_object* l_Lean_Expr_HasBeq___closed__1;
  lean_object* l_Lean_Expr_abstract___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_exprToExprStructEq(lean_object*);
  lean_object* l_Lean_Expr_updateConst___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkDecIsTrue___closed__3;
  lean_object* l_unreachable_x21___rarg(lean_object*);
  lean_object* l_Lean_Expr_withApp(lean_object*);
  size_t l_UInt32_toUSize(uint32_t);
  lean_object* l_Lean_mkApp6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_eqv___boxed(lean_object*, lean_object*);
  uint8_t l_Lean_Expr_isMData(lean_object*);
  lean_object* l_Lean_Expr_withAppAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getRevArg_x21___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_mkDecIsFalse___closed__1;
  lean_object* l_Lean_ExprStructEq_Hashable___closed__1;
  lean_object* l_Lean_mkLocalEx___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_expr_update_mdata(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*);
  lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppArgs(lean_object*);
  lean_object* l___private_Init_Lean_Expr_7__betaRevAux___main(lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t lean_name_eq(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_isLit___boxed(lean_object*);
  lean_object* l_Lean_Literal_hashable;
  uint64_t l_UInt64_add(uint64_t, uint64_t);
  lean_object* l_Lean_Expr_withAppAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  uint64_t l_Bool_toUInt64(uint8_t);
  lean_object* l_Lean_Expr_updateMData_x21___closed__2;
  lean_object* l_Lean_Expr_instantiateLevelParamsArray___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Literal_hasLess;
  lean_object* l_Lean_Expr_isOptParam___boxed(lean_object*);
  lean_object* l_Lean_Expr_updateMData_x21___closed__1;
  lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__3;
  lean_object* l_Lean_mkForallEx___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_Data_hasBeq___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_mkLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAutoParamTactic_x3f(lean_object*);
  lean_object* l_Lean_mkLit(lean_object*);
  lean_object* l_Lean_Expr_getAppRevArgs(lean_object*);
  lean_object* l_Lean_Expr_hasLevelParamEx___boxed(lean_object*);
  size_t l_Lean_Expr_Data_hash(uint64_t);
  lean_object* l_Lean_mkDecIsTrue___closed__5;
  lean_object* l_Lean_mkMVar(lean_object*);
  lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_hash___boxed(lean_object*);
  lean_object* l_Lean_Expr_betaRev___boxed(lean_object*, lean_object*);
  extern lean_object* l_Lean_verboseOption___closed__3;
  lean_object* l_Lean_Literal_type___closed__5;
  lean_object* l_Lean_Expr_mvarId_x21___boxed(lean_object*);
  lean_object* l_Lean_ExprStructEq_Hashable;
  lean_object* l___private_Init_Util_1__mkPanicMessage(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_instantiateLevelParamsArray(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppFn___main___boxed(lean_object*);
  lean_object* l_Lean_Expr_constName_x21___closed__1;
  extern lean_object* l_Lean_Level_mkData___closed__1;
  lean_object* l_Lean_Expr_mvarId_x21___closed__1;
  uint8_t l_Lean_Level_hasMVar(lean_object*);
  lean_object* l_Lean_Expr_constName_x21___boxed(lean_object*);
  lean_object* l_Lean_Expr_withAppRev___rarg(lean_object*, lean_object*);
  uint64_t l_Lean_Expr_mkData___closed__3;
  uint64_t l_Lean_Expr_mkDataForBinder(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t);
  lean_object* lean_expr_mk_local(lean_object*, lean_object*, lean_object*, uint8_t);
  lean_object* l_Lean_Expr_binderInfoEx___boxed(lean_object*);
  lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_isApp(lean_object*);
  lean_object* l_Lean_Expr_Data_binderInfo___boxed(lean_object*);
  lean_object* l_Lean_Expr_hasFVarEx___boxed(lean_object*);
  size_t l_Lean_Level_hash(lean_object*);
  lean_object* l_Lean_Expr_lt___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_appFn_x21(lean_object*);
  lean_object* l_Lean_Expr_hasLevelMVar___boxed(lean_object*);
  lean_object* l_Lean_Expr_isAutoParam___boxed(lean_object*);
  uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_mvarId_x21___closed__2;
  lean_object* l_Lean_BinderInfo_toUInt64___boxed(lean_object*);
  lean_object* l_Lean_Expr_bindingBody_x21___closed__1;
  uint8_t l_Lean_Expr_isBVar(lean_object*);
  lean_object* lean_expr_instantiate1(lean_object*, lean_object*);
  lean_object* l_Lean_Literal_type___closed__3;
  lean_object* lean_array_push(lean_object*, lean_object*);
  lean_object* lean_array_get_size(lean_object*);
  lean_object* l_Lean_Literal_inhabited___closed__1;
  lean_object* lean_expr_lift_loose_bvars(lean_object*, lean_object*, lean_object*);
  uint8_t lean_expr_has_level_mvar(lean_object*);
  lean_object* l_Lean_Expr_updateForall_x21___closed__1;
  lean_object* l_List_map___main___rarg(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getOptParamDefault_x3f(lean_object*);
  lean_object* l_Nat_max(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppFn___main(lean_object*);
  extern lean_object* l_Lean_Name_inhabited;
  extern lean_object* l_Lean_Level_Inhabited;
  lean_object* l_Lean_Expr_getRevArgD(lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_11__getParamSubst___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppArgs___closed__1;
  uint8_t l_Lean_Level_hasParam(lean_object*);
  lean_object* l_Lean_Expr_updateApp_x21(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_mkAppRevRange(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateForall_x21___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_appArg_x21(lean_object*);
  lean_object* l_Lean_Expr_fvarId_x21___closed__2;
  uint8_t lean_expr_lt(lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_10__hasAnyFVarAux(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_letName_x21___closed__1;
  lean_object* l_Lean_Expr_isAppOfArity___main___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_BinderInfo_hashable___closed__1;
  lean_object* l_Lean_Expr_letName_x21___boxed(lean_object*);
  lean_object* l_Lean_Expr_updateForall_x21(lean_object*, uint8_t, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_looseBVarRange___boxed(lean_object*);
  lean_object* l___private_Init_Lean_Expr_12__getParamSubstArray___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_mkDataForBinder___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_9__etaExpandedAux(lean_object*, lean_object*);
  lean_object* l_Lean_BinderInfo_hash___boxed(lean_object*);
  lean_object* l___private_Init_Lean_Expr_8__etaExpandedBody(lean_object*, lean_object*, lean_object*);
  lean_object* lean_expr_mk_forall(lean_object*, lean_object*, lean_object*, uint8_t);
  lean_object* lean_expr_instantiate(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_bindingName_x21___closed__2;
  extern lean_object* l_Lean_levelZero;
  lean_object* lean_nat_add(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_hasExprMVarEx___boxed(lean_object*);
  lean_object* l_Lean_ExprStructEq_HasRepr(lean_object*);
  lean_object* l_Lean_Expr_hasExprMVar___boxed(lean_object*);
  lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkAppRev___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppNumArgs(lean_object*);
  lean_object* l___private_Init_Lean_Expr_12__getParamSubstArray___main(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_bindingName_x21___boxed(lean_object*);
  lean_object* l_Lean_Expr_updateLambdaE_x21___closed__1;
  lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppFn___boxed(lean_object*);
  lean_object* l_List_foldr___main___at_Lean_mkConst___spec__3___boxed(lean_object*, lean_object*);
  uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*);
  lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
  lean_object* l_Lean_mkMData(lean_object*, lean_object*);
  size_t l_List_hash___at_Lean_mkConst___spec__1(lean_object*);
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_instantiateLevelParamsCore(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateFn___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_mkDecIsTrue(lean_object*, lean_object*);
  lean_object* l_Lean_mkLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(lean_object*, lean_object*, lean_object*);
  lean_object* lean_expr_lower_loose_bvars(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_isMVar___boxed(lean_object*);
  uint8_t l_Lean_Expr_Data_hasExprMVar(uint64_t);
  lean_object* l_Lean_Literal_type(lean_object*);
  lean_object* l_Lean_Literal_beq___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_isConstOf___boxed(lean_object*, lean_object*);
  lean_object* lean_expr_mk_mdata(lean_object*, lean_object*);
  uint64_t l_Lean_BinderInfo_toUInt64(uint8_t);
  size_t l_List_foldl___main___at_Lean_mkConst___spec__2(size_t, lean_object*);
  lean_object* l_Lean_Expr_updateLambda_x21(lean_object*, uint8_t, lean_object*, lean_object*);
  lean_object* lean_array_fget(lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_4__getAppRevArgsAux(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateForall_x21___closed__2;
  lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getOptParamDefault_x3f___closed__2;
  lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_Inhabited___closed__1;
  lean_object* l_Lean_Expr_updateFn(lean_object*, lean_object*);
  uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
  uint8_t l_Lean_ExprStructEq_beq(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ExprStructEq_beq___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateSort_x21(lean_object*, lean_object*);
  uint8_t lean_expr_has_expr_mvar(lean_object*);
  extern lean_object* l_List_Monad;
  lean_object* l_Lean_Literal_type___closed__6;
  lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_hasLevelParam(lean_object*);
  lean_object* l___private_Init_Lean_Expr_12__getParamSubstArray___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateConst_x21(lean_object*, lean_object*);
  lean_object* lean_nat_sub(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_constLevels_x21(lean_object*);
  lean_object* l_Lean_Expr_hasLevelParam___boxed(lean_object*);
  lean_object* l___private_Init_Lean_Expr_11__getParamSubst___main(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateFn___main___boxed(lean_object*, lean_object*);
  uint8_t lean_expr_has_mvar(lean_object*);
  uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t);
  lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Literal_beq(lean_object*, lean_object*);
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_headBeta(lean_object*);
  lean_object* l_Lean_BinderInfo_hasBeq___closed__1;
  uint8_t lean_expr_binder_info(lean_object*);
  uint64_t l_Lean_Expr_mkData___closed__2;
  lean_object* lean_level_update_max(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_looseBVarRangeEx___boxed(lean_object*);
  uint8_t l_Lean_Expr_hasExprMVar(lean_object*);
  lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_abstractRange___boxed(lean_object*, lean_object*, lean_object*);
  uint32_t l_UInt64_toUInt32(uint64_t);
  lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*);
  uint64_t l_Lean_Expr_data(lean_object*);
  lean_object* l_Lean_Expr_fvarId_x21(lean_object*);
  lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*);
  uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*);
  uint8_t l_Lean_Expr_isBinding(lean_object*);
  lean_object* l_Lean_Expr_bindingBody_x21___boxed(lean_object*);
  lean_object* l_Lean_Expr_updateProj_x21(lean_object*, lean_object*);
  lean_object* l_Lean_mkDecIsTrue___closed__1;
  lean_object* l_Lean_BinderInfo_beq___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_instantiateLevelParams(lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAutoParamTactic_x3f___boxed(lean_object*);
  lean_object* l_Lean_Expr_Data_hasLevelParam___boxed(lean_object*);
  lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main(lean_object*);
  lean_object* l_Lean_Expr_isFVar___boxed(lean_object*);
  size_t l_Lean_Name_hash(lean_object*);
  lean_object* l___private_Init_Lean_Expr_10__hasAnyFVarAux___main(lean_object*, lean_object*);
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__2___boxed(lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_Data_hasFVar(uint64_t);
  lean_object* l_Lean_Expr_hasMVarEx___boxed(lean_object*);
  lean_object* l_Lean_mkAppRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  extern uint64_t l_UInt64_Inhabited;
  lean_object* l_Lean_Expr_fvarId_x21___boxed(lean_object*);
  lean_object* l_Lean_Literal_inhabited;
  lean_object* l_Lean_Expr_fvarId_x21___closed__1;
  lean_object* lean_expr_mk_bvar(lean_object*);
  lean_object* l_Lean_mkDecIsTrue___closed__2;
  size_t l_Lean_Expr_hash(lean_object*);
  lean_object* l_Lean_Literal_type___boxed(lean_object*);
  lean_object* lean_name_mk_string(lean_object*, lean_object*);
  lean_object* l_Lean_Literal_type___closed__1;
  lean_object* lean_expr_abstract_range(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getArg_x21___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_bindingDomain_x21___closed__1;
  lean_object* l_Lean_KVMap_insertCore___main(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate(lean_object*, lean_object*);
  lean_object* lean_expr_mk_const(lean_object*, lean_object*);
  lean_object* l_Lean_mkAppRange(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Literal_type___closed__4;
  lean_object* l_Lean_mkDecIsTrue___closed__4;
  lean_object* lean_expr_mk_lit(lean_object*);
  lean_object* l_Lean_Expr_updateMData_x21(lean_object*, lean_object*);
  uint64_t lean_uint64_of_nat(lean_object*);
  uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_Data_hasLevelMVar(uint64_t);
  lean_object* lean_expr_dbg_to_string(lean_object*);
  lean_object* l_Lean_Expr_updateConst_x21___closed__1;
  uint64_t l_Lean_Expr_mkDataForLet(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t);
  lean_object* l___private_Init_Lean_Expr_8__etaExpandedBody___main(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Literal_type___closed__2;
  lean_object* l_Lean_Expr_mkDataForLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_instantiate___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_appFn_x21___closed__1;
  lean_object* l_Lean_Expr_updateApp_x21___closed__1;
  uint8_t l_Lean_Expr_isConst(lean_object*);
  uint8_t l_Lean_Expr_hasLevelMVar(lean_object*);
  uint8_t l_List_foldr___main___at_Lean_mkConst___spec__3(uint8_t, lean_object*);
  lean_object* lean_expr_mk_let(lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_7__betaRevAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_instantiateRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_hasFVar___boxed(lean_object*);
  lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*);
  lean_object* l_Lean_ExprStructEq_HasBeq___closed__1;
  uint8_t l_Lean_BinderInfo_isAuxDecl(uint8_t);
  lean_object* l_Lean_Expr_bindingName_x21___closed__1;
  lean_object* l_Lean_Expr_Data_hasLevelMVar___boxed(lean_object*);
  uint8_t l_Lean_Expr_Data_nonDepLet(uint64_t);
  lean_object* l_Lean_Literal_hasBeq___closed__1;
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__3___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_isHeadBetaTargetFn___boxed(lean_object*);
  lean_object* l_Lean_Expr_consumeMData(lean_object*);
  uint64_t l_UInt64_land(uint64_t, uint64_t);
  lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*);
  lean_object* lean_expr_mk_app(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_constName_x21___closed__2;
  lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_isForall(lean_object*);
  uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t);
  lean_object* l_Lean_mkDecIsFalse(lean_object*, lean_object*);
  uint8_t lean_expr_quick_lt(lean_object*, lean_object*);
  uint8_t l_Lean_Expr_isLit(lean_object*);
  lean_object* l_Lean_mkFVar(lean_object*);
  uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAutoParamTactic_x3f___closed__1;
  uint8_t l_Lean_Expr_Data_binderInfo(uint64_t);
  lean_object* l_Lean_Expr_mkData___boxed__const__1;
  lean_object* l_Lean_MData_empty;
  size_t lean_usize_of_nat(lean_object*);
  size_t l_Lean_ExprStructEq_hash(lean_object*);
  uint8_t l_Lean_Expr_isAutoParam(lean_object*);
  lean_object* l_Lean_Expr_getAutoParamTactic_x3f___closed__2;
  lean_object* l_Lean_Level_instantiateParams___main(lean_object*, lean_object*);
  uint8_t l_Lean_Expr_isLambda(lean_object*);
  lean_object* l_Lean_Expr_updateSort_x21___closed__2;
  lean_object* l_Lean_mkApp9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_data___boxed(lean_object*);
  lean_object* lean_expr_update_proj(lean_object*, lean_object*);
  lean_object* l_Lean_ExprStructEq_HasToString(lean_object*);
  lean_object* l_Lean_Expr_looseBVarRange(lean_object*);
  lean_object* l_Lean_ExprStructEq_Inhabited;
  lean_object* l_Lean_Expr_bvarIdx_x21(lean_object*);
  lean_object* l_Lean_Expr_updateProj_x21___closed__2;
  lean_object* l_Lean_mkLocal(lean_object*, lean_object*, lean_object*, uint8_t);
  lean_object* l_Lean_Literal_hasBeq;
  lean_object* l_Lean_Expr_getAppNumArgsAux___main___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_instantiateRevRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateLambda_x21___closed__1;
  lean_object* l_Lean_mkAppN___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Literal_hashable___closed__1;
  lean_object* l_Lean_exprToExprStructEq___boxed(lean_object*);
  lean_object* l_Lean_Expr_mkDataForLet___boxed__const__1;
  lean_object* l_Lean_Expr_updateProj_x21___closed__1;
  uint8_t l_Lean_BinderInfo_inhabited;
  lean_object* lean_level_update_imax(lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_HasRepr;
  lean_object* l_Lean_isAnnotation_x3f(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_isProj___boxed(lean_object*);
  lean_object* l_Lean_Expr_updateLambda_x21___closed__2;
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getOptParamDefault_x3f___boxed(lean_object*);
  uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t);
  lean_object* l_Lean_Expr_updateMData___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_Hashable___closed__1;
  lean_object* l_Lean_Expr_appFn_x21___boxed(lean_object*);
  lean_object* l_Lean_Expr_hasLevelMVarEx___boxed(lean_object*);
  lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_expr_mk_mvar(lean_object*);
  uint64_t l___private_Init_Lean_Expr_1__Expr_mkDataCore(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t);
  lean_object* l_Lean_Expr_bindingName_x21(lean_object*);
  lean_object* l_Lean_Expr_constLevels_x21___boxed(lean_object*);
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_BinderInfo_hasBeq;
  lean_object* l___private_Init_Lean_Expr_11__getParamSubst(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_constLevels_x21___closed__1;
  uint8_t lean_expr_eqv(lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getOptParamDefault_x3f___closed__1;
  uint8_t l_Lean_Expr_isMVar(lean_object*);
  uint8_t lean_expr_equal(lean_object*, lean_object*);
  uint8_t lean_expr_has_fvar(lean_object*);
  lean_object* lean_expr_update_sort(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getRevArg_x21___main(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_hasAnyFVar(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_hasMVar___boxed(lean_object*);
  lean_object* l_Lean_mkForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_constLevels_x21___closed__2;
  lean_object* l_Lean_mkApp(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppNumArgsAux___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_consumeMData___main___boxed(lean_object*);
  size_t l_Lean_Literal_hash(lean_object*);
  lean_object* l_Lean_mkLambdaEx___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_hasMVar(lean_object*);
  lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*);
  lean_object* l_Lean_BinderInfo_isInstImplicit___boxed(lean_object*);
  extern lean_object* l_Lean_KVMap_empty;
  uint8_t l_Lean_BinderInfo_isExplicit(uint8_t);
  lean_object* l_Lean_Expr_getRevArg_x21___main___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_mkApp5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_Data_looseBVarRange___boxed(lean_object*);
  lean_object* l_Lean_mkAppRev(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_InstantiateLevelParams_visit(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_mkDataForBinder___boxed__const__1;
  lean_object* l_Lean_Expr_getRevArg_x21___main___closed__1;
  extern uint8_t l_Bool_Inhabited;
  lean_object* l_Lean_Expr_bvarIdx_x21___closed__1;
  lean_object* lean_panic_fn(lean_object*, lean_object*);
  lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_isHeadBetaTargetFn___main(lean_object*);
  uint32_t l_USize_toUInt32(size_t);
  lean_object* l_Lean_Expr_withApp___rarg(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_isAppOfArity___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_appArg_x21___boxed(lean_object*);
  uint64_t l_UInt64_shiftLeft(uint64_t, uint64_t);
  lean_object* l_Lean_Expr_binderInfo___boxed(lean_object*);
  lean_object* l_Lean_Literal_lt___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateFn___main(lean_object*, lean_object*);
  lean_object* l_Lean_mkApp7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateLambda_x21___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_expr_mk_proj(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_appFn_x21___closed__2;
  lean_object* l_List_foldl___main___at_Lean_mkConst___spec__2___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_Data_hasExprMVar___boxed(lean_object*);
  lean_object* l_Lean_Expr_etaExpanded_x3f(lean_object*);
  lean_object* l_Lean_Expr_liftLooseBVars___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_bvarIdx_x21___closed__2;
  lean_object* l_Lean_Expr_appArg_x21___closed__1;
  uint8_t l_Lean_Expr_Data_hasLevelParam(uint64_t);
  lean_object* l_Lean_Expr_dbgToString___boxed(lean_object*);
  lean_object* l_Lean_Expr_isForall___boxed(lean_object*);
  lean_object* l_Lean_Expr_isMData___boxed(lean_object*);
  lean_object* l_Lean_Expr_bvarIdx_x21___boxed(lean_object*);
  lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_isStringLit___boxed(lean_object*);
  lean_object* l_Lean_Expr_withAppRev(lean_object*);
  lean_object* l_Lean_Expr_quickLt___boxed(lean_object*, lean_object*);
  uint64_t l_UInt32_toUInt64(uint32_t);
  lean_object* l_Lean_BinderInfo_isAuxDecl___boxed(lean_object*);
  uint8_t l_Lean_Expr_isFVar(lean_object*);
  lean_object* l___private_Init_Lean_Expr_12__getParamSubstArray(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*);
  uint64_t l_Lean_Expr_Data_inhabited;
  lean_object* l_Lean_Expr_instantiate1___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getRevArgD___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_instantiateRev___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_isSort___boxed(lean_object*);
  lean_object* l_Lean_Expr_updateLet_x21___closed__1;
  lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*);
  uint64_t l_Lean_Expr_mkData___closed__4;
  lean_object* lean_expr_mk_sort(lean_object*);
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__3(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Literal_hash___boxed(lean_object*);
  lean_object* lean_level_update_succ(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_isBVar___boxed(lean_object*);
  lean_object* lean_expr_instantiate_rev(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_instantiateLevelParams___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_withAppAux___main(lean_object*);
  lean_object* lean_expr_mk_fvar(lean_object*);
  lean_object* l_Lean_Expr_consumeMData___main(lean_object*);
  lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
  lean_object* l_Lean_Expr_Hashable;
  uint8_t l_Lean_Expr_hasLooseBVars(lean_object*);
  lean_object* l_Lean_Expr_updateProj___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_Inhabited;
  uint8_t l_Lean_Expr_isStringLit(lean_object*);
  size_t lean_expr_hash(lean_object*);
  lean_object* lean_mk_array(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_Data_hasFVar___boxed(lean_object*);
  uint8_t l_Lean_Expr_isProj(lean_object*);
  uint8_t l_Lean_Expr_binderInfo(lean_object*);
  size_t lean_usize_mix_hash(size_t, size_t);
  uint8_t l_Lean_Expr_isOptParam(lean_object*);
  lean_object* lean_expr_abstract(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getArg_x21(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkApp2(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1___boxed(lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_Data_hasBeq(uint64_t, uint64_t);
  uint32_t lean_expr_loose_bvar_range(lean_object*);
  lean_object* l_Lean_Expr_mkAppRevRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateForallE_x21(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_HasToString;
  lean_object* l_Lean_BinderInfo_hashable;
  lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate___main(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_mkData___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_BinderInfo_isExplicit___boxed(lean_object*);
  lean_object* l_Lean_Expr_isHeadBetaTargetFn___main___boxed(lean_object*);
  lean_object* l_Lean_Expr_HasToString___closed__1;
  uint64_t l_Lean_Expr_mkData___closed__1;
  lean_object* l_Lean_Expr_hashEx___boxed(lean_object*);
  lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_mkAppRev___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkDecIsFalse___closed__3;
  lean_object* l_Lean_Expr_isHeadBetaTarget___boxed(lean_object*);
  lean_object* l_Lean_Expr_Data_nonDepLet___boxed(lean_object*);
  lean_object* l___private_Init_Lean_Expr_9__etaExpandedAux___main(lean_object*, lean_object*);
  lean_object* l_Lean_mkNatLit(lean_object*);
  lean_object* l_Lean_mkStrLit(lean_object*);
  lean_object* l_Lean_Expr_getArgD(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppFn(lean_object*);
  uint8_t l_List_foldr___main___at_Lean_mkConst___spec__4(uint8_t, lean_object*);
  lean_object* l_Lean_Expr_etaExpandedStrict_x3f(lean_object*);
  lean_object* l_Lean_Expr_updateLambdaE_x21(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_hasLooseBVar___boxed(lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_1__Expr_mkDataCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Nat_Inhabited;
  uint64_t l_UInt64_shiftRight(uint64_t, uint64_t);
  lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_hasLooseBVars___boxed(lean_object*);
  lean_object* lean_lit_type(lean_object*);
  lean_object* l_Lean_Expr_getArgD___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ExprStructEq_HasToString___boxed(lean_object*);
  lean_object* l_Lean_Expr_getRevArgD___main___boxed(lean_object*, lean_object*, lean_object*);
  size_t l_Lean_BinderInfo_hash(uint8_t);
  extern lean_object* l_List_get_x21___main___rarg___closed__2;
  lean_object* l___private_Init_Lean_Expr_7__betaRevAux(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getRevArgD___main(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkApp10(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_Expr_isApp___boxed(lean_object*);
  lean_object* l_Lean_Expr_HasBeq;
  lean_object* l_Lean_mkApp8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkBVar(lean_object*);
  uint8_t l_Lean_Expr_hasFVar(lean_object*);
  lean_object* lean_expr_mk_lambda(lean_object*, lean_object*, lean_object*, uint8_t);
  lean_object* l_Lean_Expr_consumeMData___boxed(lean_object*);
  lean_object* l_Lean_Expr_bindingBody_x21(lean_object*);
  lean_object* l_Lean_Expr_equal___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateLet_x21(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__2;
  uint8_t l_Lean_Literal_lt(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateForall___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkConst(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_isLambda___boxed(lean_object*);
  lean_object* l_Lean_Expr_constName_x21(lean_object*);
  lean_object* l___private_Init_Lean_Expr_11__getParamSubst___main___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* lean_expr_instantiate_range(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_uint32_to_nat(uint32_t);
  lean_object* l_Lean_Expr_withAppAux(lean_object*);
  lean_object* l_Lean_Expr_lowerLooseBVars___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ExprStructEq_HasRepr___boxed(lean_object*);
  lean_object* l___private_Init_Lean_Expr_5__withAppRevAux(lean_object*);
  lean_object* l_Lean_Expr_updateForallE_x21___closed__1;
  lean_object* l_Lean_MVData_hasEmptc;
  lean_object* lean_expr_update_const(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_updateSort_x21___closed__1;
  lean_object* l_Lean_Expr_isConst___boxed(lean_object*);
  lean_object* l_List_foldr___main___at_Lean_mkConst___spec__4___boxed(lean_object*, lean_object*);
  size_t lean_string_hash(lean_object*);
  lean_object* l___private_Init_Lean_Expr_1__Expr_mkDataCore___boxed__const__1;
  lean_object* l_Lean_Expr_isNatLit___boxed(lean_object*);
  lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_mkAppRev___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkLocal___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_isSort(lean_object*);
  uint8_t l_Lean_Expr_isLet(lean_object*);
  uint8_t lean_string_dec_lt(lean_object*, lean_object*);
  lean_object* l_Lean_Expr_isLet___boxed(lean_object*);
  lean_object* l_Lean_ExprStructEq_hash___boxed(lean_object*);
  lean_object* l___private_Init_Lean_Expr_7__betaRevAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__2(lean_object*, lean_object*, lean_object*);
  uint8_t lean_string_dec_eq(lean_object*, lean_object*);
  lean_object* l_Lean_isAnnotation_x3f___boxed(lean_object*, lean_object*);
  uint32_t l_Lean_Expr_Data_looseBVarRange(uint64_t);
  uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
  uint64_t l_Lean_Expr_mkData(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t);
  lean_object* l_monadInhabited___rarg(lean_object*, lean_object*);
  lean_object* l_Lean_ExprStructEq_HasBeq;
  uint8_t lean_expr_has_level_param(lean_object*);
  lean_object* _init_l_Lean_Literal_inhabited___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(0u);
  x_2 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  lean_object* _init_l_Lean_Literal_inhabited() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Literal_inhabited___closed__1;
  return x_1;
  }
  }
  size_t l_Lean_Literal_hash(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_2; size_t x_3; 
  x_2 = lean_ctor_get(x_1, 0);
  x_3 = lean_usize_of_nat(x_2);
  return x_3;
  }
  else
  {
  lean_object* x_4; size_t x_5; 
  x_4 = lean_ctor_get(x_1, 0);
  x_5 = lean_string_hash(x_4);
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Literal_hash___boxed(lean_object* x_1) {
  _start:
  {
  size_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Literal_hash(x_1);
  lean_dec(x_1);
  x_3 = lean_box_usize(x_2);
  return x_3;
  }
  }
  lean_object* _init_l_Lean_Literal_hashable___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Literal_hash___boxed), 1, 0);
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Literal_hashable() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Literal_hashable___closed__1;
  return x_1;
  }
  }
  uint8_t l_Lean_Literal_beq(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  if (lean_obj_tag(x_2) == 0)
  {
  lean_object* x_3; lean_object* x_4; uint8_t x_5; 
  x_3 = lean_ctor_get(x_1, 0);
  x_4 = lean_ctor_get(x_2, 0);
  x_5 = lean_nat_dec_eq(x_3, x_4);
  return x_5;
  }
  else
  {
  uint8_t x_6; 
  x_6 = 0;
  return x_6;
  }
  }
  else
  {
  if (lean_obj_tag(x_2) == 0)
  {
  uint8_t x_7; 
  x_7 = 0;
  return x_7;
  }
  else
  {
  lean_object* x_8; lean_object* x_9; uint8_t x_10; 
  x_8 = lean_ctor_get(x_1, 0);
  x_9 = lean_ctor_get(x_2, 0);
  x_10 = lean_string_dec_eq(x_8, x_9);
  return x_10;
  }
  }
  }
  }
  lean_object* l_Lean_Literal_beq___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; lean_object* x_4; 
  x_3 = l_Lean_Literal_beq(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  lean_object* _init_l_Lean_Literal_hasBeq___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Literal_beq___boxed), 2, 0);
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Literal_hasBeq() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Literal_hasBeq___closed__1;
  return x_1;
  }
  }
  uint8_t l_Lean_Literal_lt(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  if (lean_obj_tag(x_2) == 0)
  {
  lean_object* x_3; lean_object* x_4; uint8_t x_5; 
  x_3 = lean_ctor_get(x_1, 0);
  x_4 = lean_ctor_get(x_2, 0);
  x_5 = lean_nat_dec_lt(x_3, x_4);
  return x_5;
  }
  else
  {
  uint8_t x_6; 
  x_6 = 1;
  return x_6;
  }
  }
  else
  {
  if (lean_obj_tag(x_2) == 0)
  {
  uint8_t x_7; 
  x_7 = 0;
  return x_7;
  }
  else
  {
  lean_object* x_8; lean_object* x_9; uint8_t x_10; 
  x_8 = lean_ctor_get(x_1, 0);
  x_9 = lean_ctor_get(x_2, 0);
  x_10 = lean_string_dec_lt(x_8, x_9);
  return x_10;
  }
  }
  }
  }
  lean_object* l_Lean_Literal_lt___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; lean_object* x_4; 
  x_3 = l_Lean_Literal_lt(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  lean_object* _init_l_Lean_Literal_hasLess() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  size_t l_Lean_BinderInfo_hash(uint8_t x_1) {
  _start:
  {
  switch (x_1) {
  case 0:
  {
  size_t x_2; 
  x_2 = 947;
  return x_2;
  }
  case 1:
  {
  size_t x_3; 
  x_3 = 1019;
  return x_3;
  }
  case 2:
  {
  size_t x_4; 
  x_4 = 1087;
  return x_4;
  }
  case 3:
  {
  size_t x_5; 
  x_5 = 1153;
  return x_5;
  }
  default: 
  {
  size_t x_6; 
  x_6 = 1229;
  return x_6;
  }
  }
  }
  }
  lean_object* l_Lean_BinderInfo_hash___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; size_t x_3; lean_object* x_4; 
  x_2 = lean_unbox(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_BinderInfo_hash(x_2);
  x_4 = lean_box_usize(x_3);
  return x_4;
  }
  }
  uint8_t l_Lean_BinderInfo_isExplicit(uint8_t x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_box(x_1);
  switch (lean_obj_tag(x_2)) {
  case 0:
  {
  uint8_t x_3; 
  x_3 = 1;
  return x_3;
  }
  case 4:
  {
  uint8_t x_4; 
  x_4 = 1;
  return x_4;
  }
  default: 
  {
  uint8_t x_5; 
  lean_dec(x_2);
  x_5 = 0;
  return x_5;
  }
  }
  }
  }
  lean_object* l_Lean_BinderInfo_isExplicit___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; uint8_t x_3; lean_object* x_4; 
  x_2 = lean_unbox(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_BinderInfo_isExplicit(x_2);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  lean_object* _init_l_Lean_BinderInfo_hashable___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_BinderInfo_hash___boxed), 1, 0);
  return x_1;
  }
  }
  lean_object* _init_l_Lean_BinderInfo_hashable() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_BinderInfo_hashable___closed__1;
  return x_1;
  }
  }
  uint8_t _init_l_Lean_BinderInfo_inhabited() {
  _start:
  {
  uint8_t x_1; 
  x_1 = 0;
  return x_1;
  }
  }
  uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_box(x_1);
  if (lean_obj_tag(x_2) == 3)
  {
  uint8_t x_3; 
  x_3 = 1;
  return x_3;
  }
  else
  {
  uint8_t x_4; 
  lean_dec(x_2);
  x_4 = 0;
  return x_4;
  }
  }
  }
  lean_object* l_Lean_BinderInfo_isInstImplicit___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; uint8_t x_3; lean_object* x_4; 
  x_2 = lean_unbox(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_BinderInfo_isInstImplicit(x_2);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  uint8_t l_Lean_BinderInfo_isAuxDecl(uint8_t x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_box(x_1);
  if (lean_obj_tag(x_2) == 4)
  {
  uint8_t x_3; 
  x_3 = 1;
  return x_3;
  }
  else
  {
  uint8_t x_4; 
  lean_dec(x_2);
  x_4 = 0;
  return x_4;
  }
  }
  }
  lean_object* l_Lean_BinderInfo_isAuxDecl___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; uint8_t x_3; lean_object* x_4; 
  x_2 = lean_unbox(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_BinderInfo_isAuxDecl(x_2);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  uint8_t l_Lean_BinderInfo_beq(uint8_t x_1, uint8_t x_2) {
  _start:
  {
  switch (x_1) {
  case 0:
  {
  lean_object* x_3; 
  x_3 = lean_box(x_2);
  if (lean_obj_tag(x_3) == 0)
  {
  uint8_t x_4; 
  x_4 = 1;
  return x_4;
  }
  else
  {
  uint8_t x_5; 
  lean_dec(x_3);
  x_5 = 0;
  return x_5;
  }
  }
  case 1:
  {
  lean_object* x_6; 
  x_6 = lean_box(x_2);
  if (lean_obj_tag(x_6) == 1)
  {
  uint8_t x_7; 
  x_7 = 1;
  return x_7;
  }
  else
  {
  uint8_t x_8; 
  lean_dec(x_6);
  x_8 = 0;
  return x_8;
  }
  }
  case 2:
  {
  lean_object* x_9; 
  x_9 = lean_box(x_2);
  if (lean_obj_tag(x_9) == 2)
  {
  uint8_t x_10; 
  x_10 = 1;
  return x_10;
  }
  else
  {
  uint8_t x_11; 
  lean_dec(x_9);
  x_11 = 0;
  return x_11;
  }
  }
  case 3:
  {
  lean_object* x_12; 
  x_12 = lean_box(x_2);
  if (lean_obj_tag(x_12) == 3)
  {
  uint8_t x_13; 
  x_13 = 1;
  return x_13;
  }
  else
  {
  uint8_t x_14; 
  lean_dec(x_12);
  x_14 = 0;
  return x_14;
  }
  }
  default: 
  {
  lean_object* x_15; 
  x_15 = lean_box(x_2);
  if (lean_obj_tag(x_15) == 4)
  {
  uint8_t x_16; 
  x_16 = 1;
  return x_16;
  }
  else
  {
  uint8_t x_17; 
  lean_dec(x_15);
  x_17 = 0;
  return x_17;
  }
  }
  }
  }
  }
  lean_object* l_Lean_BinderInfo_beq___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; 
  x_3 = lean_unbox(x_1);
  lean_dec(x_1);
  x_4 = lean_unbox(x_2);
  lean_dec(x_2);
  x_5 = l_Lean_BinderInfo_beq(x_3, x_4);
  x_6 = lean_box(x_5);
  return x_6;
  }
  }
  lean_object* _init_l_Lean_BinderInfo_hasBeq___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_BinderInfo_beq___boxed), 2, 0);
  return x_1;
  }
  }
  lean_object* _init_l_Lean_BinderInfo_hasBeq() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_BinderInfo_hasBeq___closed__1;
  return x_1;
  }
  }
  lean_object* _init_l_Lean_MData_empty() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  lean_object* _init_l_Lean_MVData_hasEmptc() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  uint64_t _init_l_Lean_Expr_Data_inhabited() {
  _start:
  {
  uint64_t x_1; 
  x_1 = l_UInt64_Inhabited;
  return x_1;
  }
  }
  size_t l_Lean_Expr_Data_hash(uint64_t x_1) {
  _start:
  {
  uint32_t x_2; size_t x_3; 
  x_2 = ((uint32_t)x_1);
  x_3 = x_2;
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_Data_hash___boxed(lean_object* x_1) {
  _start:
  {
  uint64_t x_2; size_t x_3; lean_object* x_4; 
  x_2 = lean_unbox_uint64(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_Expr_Data_hash(x_2);
  x_4 = lean_box_usize(x_3);
  return x_4;
  }
  }
  uint8_t l_Lean_Expr_Data_hasBeq(uint64_t x_1, uint64_t x_2) {
  _start:
  {
  uint8_t x_3; 
  x_3 = x_1 == x_2;
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_Data_hasBeq___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint64_t x_3; uint64_t x_4; uint8_t x_5; lean_object* x_6; 
  x_3 = lean_unbox_uint64(x_1);
  lean_dec(x_1);
  x_4 = lean_unbox_uint64(x_2);
  lean_dec(x_2);
  x_5 = l_Lean_Expr_Data_hasBeq(x_3, x_4);
  x_6 = lean_box(x_5);
  return x_6;
  }
  }
  uint32_t l_Lean_Expr_Data_looseBVarRange(uint64_t x_1) {
  _start:
  {
  uint64_t x_2; uint64_t x_3; uint32_t x_4; 
  x_2 = 40;
  x_3 = x_1 >> x_2;
  x_4 = ((uint32_t)x_3);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_Data_looseBVarRange___boxed(lean_object* x_1) {
  _start:
  {
  uint64_t x_2; uint32_t x_3; lean_object* x_4; 
  x_2 = lean_unbox_uint64(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_Expr_Data_looseBVarRange(x_2);
  x_4 = lean_box_uint32(x_3);
  return x_4;
  }
  }
  uint8_t l_Lean_Expr_Data_hasFVar(uint64_t x_1) {
  _start:
  {
  uint64_t x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5; uint8_t x_6; 
  x_2 = 1;
  x_3 = 32;
  x_4 = x_1 >> x_3;
  x_5 = x_4 & x_2;
  x_6 = x_5 == x_2;
  return x_6;
  }
  }
  lean_object* l_Lean_Expr_Data_hasFVar___boxed(lean_object* x_1) {
  _start:
  {
  uint64_t x_2; uint8_t x_3; lean_object* x_4; 
  x_2 = lean_unbox_uint64(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_Expr_Data_hasFVar(x_2);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  uint8_t l_Lean_Expr_Data_hasExprMVar(uint64_t x_1) {
  _start:
  {
  uint64_t x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5; uint8_t x_6; 
  x_2 = 1;
  x_3 = 33;
  x_4 = x_1 >> x_3;
  x_5 = x_4 & x_2;
  x_6 = x_5 == x_2;
  return x_6;
  }
  }
  lean_object* l_Lean_Expr_Data_hasExprMVar___boxed(lean_object* x_1) {
  _start:
  {
  uint64_t x_2; uint8_t x_3; lean_object* x_4; 
  x_2 = lean_unbox_uint64(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_Expr_Data_hasExprMVar(x_2);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  uint8_t l_Lean_Expr_Data_hasLevelMVar(uint64_t x_1) {
  _start:
  {
  uint64_t x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5; uint8_t x_6; 
  x_2 = 1;
  x_3 = 34;
  x_4 = x_1 >> x_3;
  x_5 = x_4 & x_2;
  x_6 = x_5 == x_2;
  return x_6;
  }
  }
  lean_object* l_Lean_Expr_Data_hasLevelMVar___boxed(lean_object* x_1) {
  _start:
  {
  uint64_t x_2; uint8_t x_3; lean_object* x_4; 
  x_2 = lean_unbox_uint64(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_Expr_Data_hasLevelMVar(x_2);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  uint8_t l_Lean_Expr_Data_hasLevelParam(uint64_t x_1) {
  _start:
  {
  uint64_t x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5; uint8_t x_6; 
  x_2 = 1;
  x_3 = 35;
  x_4 = x_1 >> x_3;
  x_5 = x_4 & x_2;
  x_6 = x_5 == x_2;
  return x_6;
  }
  }
  lean_object* l_Lean_Expr_Data_hasLevelParam___boxed(lean_object* x_1) {
  _start:
  {
  uint64_t x_2; uint8_t x_3; lean_object* x_4; 
  x_2 = lean_unbox_uint64(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_Expr_Data_hasLevelParam(x_2);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  uint8_t l_Lean_Expr_Data_nonDepLet(uint64_t x_1) {
  _start:
  {
  uint64_t x_2; uint64_t x_3; uint64_t x_4; uint64_t x_5; uint8_t x_6; 
  x_2 = 1;
  x_3 = 36;
  x_4 = x_1 >> x_3;
  x_5 = x_4 & x_2;
  x_6 = x_5 == x_2;
  return x_6;
  }
  }
  lean_object* l_Lean_Expr_Data_nonDepLet___boxed(lean_object* x_1) {
  _start:
  {
  uint64_t x_2; uint8_t x_3; lean_object* x_4; 
  x_2 = lean_unbox_uint64(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_Expr_Data_nonDepLet(x_2);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_Data_binderInfo___boxed(lean_object* x_1) {
  _start:
  {
  uint64_t x_2; uint8_t x_3; lean_object* x_4; 
  x_2 = lean_unbox_uint64(x_1);
  lean_dec(x_1);
  x_3 = (uint8_t)((x_2 << 24) >> 61);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  lean_object* l_Lean_BinderInfo_toUInt64___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; uint64_t x_3; lean_object* x_4; 
  x_2 = lean_unbox(x_1);
  lean_dec(x_1);
  x_3 = (uint64_t)x_2;
  x_4 = lean_box_uint64(x_3);
  return x_4;
  }
  }
  lean_object* _init_l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Init.Lean.Expr");
  return x_1;
  }
  }
  lean_object* _init_l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("bound variable index is too big");
  return x_1;
  }
  }
  lean_object* _init_l___private_Init_Lean_Expr_1__Expr_mkDataCore___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(145u);
  x_3 = lean_unsigned_to_nat(42u);
  x_4 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__2;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* _init_l___private_Init_Lean_Expr_1__Expr_mkDataCore___boxed__const__1() {
  _start:
  {
  uint64_t x_1; lean_object* x_2; 
  x_1 = l_Lean_Expr_Data_inhabited;
  x_2 = lean_box_uint64(x_1);
  return x_2;
  }
  }
  uint64_t l___private_Init_Lean_Expr_1__Expr_mkDataCore(size_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6, uint8_t x_7, uint8_t x_8) {
  _start:
  {
  lean_object* x_9; uint8_t x_10; 
  x_9 = l_Lean_Level_mkData___closed__1;
  x_10 = lean_nat_dec_lt(x_9, x_2);
  if (x_10 == 0)
  {
  uint32_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; uint64_t x_31; uint64_t x_32; uint64_t x_33; uint64_t x_34; uint64_t x_35; uint64_t x_36; uint64_t x_37; uint64_t x_38; uint64_t x_39; uint64_t x_40; 
  x_11 = (uint32_t)x_1;
  x_12 = ((uint64_t)x_11);
  x_13 = (uint64_t)x_3;
  x_14 = 32;
  x_15 = x_13 << x_14;
  x_16 = x_12 + x_15;
  x_17 = (uint64_t)x_4;
  x_18 = 33;
  x_19 = x_17 << x_18;
  x_20 = x_16 + x_19;
  x_21 = (uint64_t)x_5;
  x_22 = 34;
  x_23 = x_21 << x_22;
  x_24 = x_20 + x_23;
  x_25 = (uint64_t)x_6;
  x_26 = 35;
  x_27 = x_25 << x_26;
  x_28 = x_24 + x_27;
  x_29 = (uint64_t)x_7;
  x_30 = 36;
  x_31 = x_29 << x_30;
  x_32 = x_28 + x_31;
  x_33 = (uint64_t)x_8;
  x_34 = 37;
  x_35 = x_33 << x_34;
  x_36 = x_32 + x_35;
  x_37 = lean_uint64_of_nat(x_2);
  x_38 = 40;
  x_39 = x_37 << x_38;
  x_40 = x_36 + x_39;
  return x_40;
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; uint64_t x_44; 
  x_41 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__3;
  x_42 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___boxed__const__1;
  x_43 = lean_panic_fn(x_42, x_41);
  x_44 = lean_unbox_uint64(x_43);
  lean_dec(x_43);
  return x_44;
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_1__Expr_mkDataCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  size_t x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; uint8_t x_14; uint8_t x_15; uint64_t x_16; lean_object* x_17; 
  x_9 = lean_unbox_usize(x_1);
  lean_dec(x_1);
  x_10 = lean_unbox(x_3);
  lean_dec(x_3);
  x_11 = lean_unbox(x_4);
  lean_dec(x_4);
  x_12 = lean_unbox(x_5);
  lean_dec(x_5);
  x_13 = lean_unbox(x_6);
  lean_dec(x_6);
  x_14 = lean_unbox(x_7);
  lean_dec(x_7);
  x_15 = lean_unbox(x_8);
  lean_dec(x_8);
  x_16 = l___private_Init_Lean_Expr_1__Expr_mkDataCore(x_9, x_2, x_10, x_11, x_12, x_13, x_14, x_15);
  lean_dec(x_2);
  x_17 = lean_box_uint64(x_16);
  return x_17;
  }
  }
  uint64_t _init_l_Lean_Expr_mkData___closed__1() {
  _start:
  {
  uint8_t x_1; uint64_t x_2; 
  x_1 = 0;
  x_2 = (uint64_t)x_1;
  return x_2;
  }
  }
  uint64_t _init_l_Lean_Expr_mkData___closed__2() {
  _start:
  {
  uint64_t x_1; uint64_t x_2; uint64_t x_3; 
  x_1 = 36;
  x_2 = l_Lean_Expr_mkData___closed__1;
  x_3 = x_2 << x_1;
  return x_3;
  }
  }
  uint64_t _init_l_Lean_Expr_mkData___closed__3() {
  _start:
  {
  uint8_t x_1; uint64_t x_2; 
  x_1 = 0;
  x_2 = (uint64_t)x_1;
  return x_2;
  }
  }
  uint64_t _init_l_Lean_Expr_mkData___closed__4() {
  _start:
  {
  uint64_t x_1; uint64_t x_2; uint64_t x_3; 
  x_1 = 37;
  x_2 = l_Lean_Expr_mkData___closed__3;
  x_3 = x_2 << x_1;
  return x_3;
  }
  }
  lean_object* _init_l_Lean_Expr_mkData___boxed__const__1() {
  _start:
  {
  uint64_t x_1; lean_object* x_2; 
  x_1 = l_Lean_Expr_Data_inhabited;
  x_2 = lean_box_uint64(x_1);
  return x_2;
  }
  }
  uint64_t l_Lean_Expr_mkData(size_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6) {
  _start:
  {
  lean_object* x_7; uint8_t x_8; 
  x_7 = l_Lean_Level_mkData___closed__1;
  x_8 = lean_nat_dec_lt(x_7, x_2);
  if (x_8 == 0)
  {
  uint32_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; uint64_t x_31; uint64_t x_32; uint64_t x_33; uint64_t x_34; 
  x_9 = (uint32_t)x_1;
  x_10 = ((uint64_t)x_9);
  x_11 = (uint64_t)x_3;
  x_12 = 32;
  x_13 = x_11 << x_12;
  x_14 = x_10 + x_13;
  x_15 = (uint64_t)x_4;
  x_16 = 33;
  x_17 = x_15 << x_16;
  x_18 = x_14 + x_17;
  x_19 = (uint64_t)x_5;
  x_20 = 34;
  x_21 = x_19 << x_20;
  x_22 = x_18 + x_21;
  x_23 = (uint64_t)x_6;
  x_24 = 35;
  x_25 = x_23 << x_24;
  x_26 = x_22 + x_25;
  x_27 = l_Lean_Expr_mkData___closed__2;
  x_28 = x_26 + x_27;
  x_29 = l_Lean_Expr_mkData___closed__4;
  x_30 = x_28 + x_29;
  x_31 = lean_uint64_of_nat(x_2);
  x_32 = 40;
  x_33 = x_31 << x_32;
  x_34 = x_30 + x_33;
  return x_34;
  }
  else
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; uint64_t x_38; 
  x_35 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__3;
  x_36 = l_Lean_Expr_mkData___boxed__const__1;
  x_37 = lean_panic_fn(x_36, x_35);
  x_38 = lean_unbox_uint64(x_37);
  lean_dec(x_37);
  return x_38;
  }
  }
  }
  lean_object* l_Lean_Expr_mkData___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; uint8_t x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; uint64_t x_12; lean_object* x_13; 
  x_7 = lean_unbox_usize(x_1);
  lean_dec(x_1);
  x_8 = lean_unbox(x_3);
  lean_dec(x_3);
  x_9 = lean_unbox(x_4);
  lean_dec(x_4);
  x_10 = lean_unbox(x_5);
  lean_dec(x_5);
  x_11 = lean_unbox(x_6);
  lean_dec(x_6);
  x_12 = l_Lean_Expr_mkData(x_7, x_2, x_8, x_9, x_10, x_11);
  lean_dec(x_2);
  x_13 = lean_box_uint64(x_12);
  return x_13;
  }
  }
  lean_object* _init_l_Lean_Expr_mkDataForBinder___boxed__const__1() {
  _start:
  {
  uint64_t x_1; lean_object* x_2; 
  x_1 = l_Lean_Expr_Data_inhabited;
  x_2 = lean_box_uint64(x_1);
  return x_2;
  }
  }
  uint64_t l_Lean_Expr_mkDataForBinder(size_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6, uint8_t x_7) {
  _start:
  {
  lean_object* x_8; uint8_t x_9; 
  x_8 = l_Lean_Level_mkData___closed__1;
  x_9 = lean_nat_dec_lt(x_8, x_2);
  if (x_9 == 0)
  {
  uint32_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; uint64_t x_31; uint64_t x_32; uint64_t x_33; uint64_t x_34; uint64_t x_35; uint64_t x_36; uint64_t x_37; 
  x_10 = (uint32_t)x_1;
  x_11 = ((uint64_t)x_10);
  x_12 = (uint64_t)x_3;
  x_13 = 32;
  x_14 = x_12 << x_13;
  x_15 = x_11 + x_14;
  x_16 = (uint64_t)x_4;
  x_17 = 33;
  x_18 = x_16 << x_17;
  x_19 = x_15 + x_18;
  x_20 = (uint64_t)x_5;
  x_21 = 34;
  x_22 = x_20 << x_21;
  x_23 = x_19 + x_22;
  x_24 = (uint64_t)x_6;
  x_25 = 35;
  x_26 = x_24 << x_25;
  x_27 = x_23 + x_26;
  x_28 = l_Lean_Expr_mkData___closed__2;
  x_29 = x_27 + x_28;
  x_30 = (uint64_t)x_7;
  x_31 = 37;
  x_32 = x_30 << x_31;
  x_33 = x_29 + x_32;
  x_34 = lean_uint64_of_nat(x_2);
  x_35 = 40;
  x_36 = x_34 << x_35;
  x_37 = x_33 + x_36;
  return x_37;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; uint64_t x_41; 
  x_38 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__3;
  x_39 = l_Lean_Expr_mkDataForBinder___boxed__const__1;
  x_40 = lean_panic_fn(x_39, x_38);
  x_41 = lean_unbox_uint64(x_40);
  lean_dec(x_40);
  return x_41;
  }
  }
  }
  lean_object* l_Lean_Expr_mkDataForBinder___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:
  {
  size_t x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; uint64_t x_14; lean_object* x_15; 
  x_8 = lean_unbox_usize(x_1);
  lean_dec(x_1);
  x_9 = lean_unbox(x_3);
  lean_dec(x_3);
  x_10 = lean_unbox(x_4);
  lean_dec(x_4);
  x_11 = lean_unbox(x_5);
  lean_dec(x_5);
  x_12 = lean_unbox(x_6);
  lean_dec(x_6);
  x_13 = lean_unbox(x_7);
  lean_dec(x_7);
  x_14 = l_Lean_Expr_mkDataForBinder(x_8, x_2, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_2);
  x_15 = lean_box_uint64(x_14);
  return x_15;
  }
  }
  lean_object* _init_l_Lean_Expr_mkDataForLet___boxed__const__1() {
  _start:
  {
  uint64_t x_1; lean_object* x_2; 
  x_1 = l_Lean_Expr_Data_inhabited;
  x_2 = lean_box_uint64(x_1);
  return x_2;
  }
  }
  uint64_t l_Lean_Expr_mkDataForLet(size_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6, uint8_t x_7) {
  _start:
  {
  lean_object* x_8; uint8_t x_9; 
  x_8 = l_Lean_Level_mkData___closed__1;
  x_9 = lean_nat_dec_lt(x_8, x_2);
  if (x_9 == 0)
  {
  uint32_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; uint64_t x_31; uint64_t x_32; uint64_t x_33; uint64_t x_34; uint64_t x_35; uint64_t x_36; uint64_t x_37; 
  x_10 = (uint32_t)x_1;
  x_11 = ((uint64_t)x_10);
  x_12 = (uint64_t)x_3;
  x_13 = 32;
  x_14 = x_12 << x_13;
  x_15 = x_11 + x_14;
  x_16 = (uint64_t)x_4;
  x_17 = 33;
  x_18 = x_16 << x_17;
  x_19 = x_15 + x_18;
  x_20 = (uint64_t)x_5;
  x_21 = 34;
  x_22 = x_20 << x_21;
  x_23 = x_19 + x_22;
  x_24 = (uint64_t)x_6;
  x_25 = 35;
  x_26 = x_24 << x_25;
  x_27 = x_23 + x_26;
  x_28 = (uint64_t)x_7;
  x_29 = 36;
  x_30 = x_28 << x_29;
  x_31 = x_27 + x_30;
  x_32 = l_Lean_Expr_mkData___closed__4;
  x_33 = x_31 + x_32;
  x_34 = lean_uint64_of_nat(x_2);
  x_35 = 40;
  x_36 = x_34 << x_35;
  x_37 = x_33 + x_36;
  return x_37;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; uint64_t x_41; 
  x_38 = l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__3;
  x_39 = l_Lean_Expr_mkDataForLet___boxed__const__1;
  x_40 = lean_panic_fn(x_39, x_38);
  x_41 = lean_unbox_uint64(x_40);
  lean_dec(x_40);
  return x_41;
  }
  }
  }
  lean_object* l_Lean_Expr_mkDataForLet___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:
  {
  size_t x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; uint64_t x_14; lean_object* x_15; 
  x_8 = lean_unbox_usize(x_1);
  lean_dec(x_1);
  x_9 = lean_unbox(x_3);
  lean_dec(x_3);
  x_10 = lean_unbox(x_4);
  lean_dec(x_4);
  x_11 = lean_unbox(x_5);
  lean_dec(x_5);
  x_12 = lean_unbox(x_6);
  lean_dec(x_6);
  x_13 = lean_unbox(x_7);
  lean_dec(x_7);
  x_14 = l_Lean_Expr_mkDataForLet(x_8, x_2, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_2);
  x_15 = lean_box_uint64(x_14);
  return x_15;
  }
  }
  lean_object* _init_l_Lean_Expr_Inhabited___closed__1() {
  _start:
  {
  uint64_t x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = 0;
  x_2 = l_Lean_levelZero;
  x_3 = lean_alloc_ctor(3, 1, 8);
  lean_ctor_set(x_3, 0, x_2);
  lean_ctor_set_uint64(x_3, sizeof(void*)*1, x_1);
  return x_3;
  }
  }
  lean_object* _init_l_Lean_Expr_Inhabited() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Expr_Inhabited___closed__1;
  return x_1;
  }
  }
  uint64_t l_Lean_Expr_data(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  uint64_t x_2; 
  x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  return x_2;
  }
  case 5:
  {
  uint64_t x_3; 
  x_3 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  return x_3;
  }
  case 6:
  {
  uint64_t x_4; 
  x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  return x_4;
  }
  case 7:
  {
  uint64_t x_5; 
  x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  return x_5;
  }
  case 8:
  {
  uint64_t x_6; 
  x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*4);
  return x_6;
  }
  case 10:
  {
  uint64_t x_7; 
  x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  return x_7;
  }
  case 11:
  {
  uint64_t x_8; 
  x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  return x_8;
  }
  case 12:
  {
  uint64_t x_9; 
  x_9 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  return x_9;
  }
  default: 
  {
  uint64_t x_10; 
  x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  return x_10;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_data___boxed(lean_object* x_1) {
  _start:
  {
  uint64_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_data(x_1);
  lean_dec(x_1);
  x_3 = lean_box_uint64(x_2);
  return x_3;
  }
  }
  size_t l_Lean_Expr_hash(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  uint64_t x_2; size_t x_3; 
  x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_3 = l_Lean_Expr_Data_hash(x_2);
  return x_3;
  }
  case 5:
  {
  uint64_t x_4; size_t x_5; 
  x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_5 = l_Lean_Expr_Data_hash(x_4);
  return x_5;
  }
  case 6:
  {
  uint64_t x_6; size_t x_7; 
  x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_7 = l_Lean_Expr_Data_hash(x_6);
  return x_7;
  }
  case 7:
  {
  uint64_t x_8; size_t x_9; 
  x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_9 = l_Lean_Expr_Data_hash(x_8);
  return x_9;
  }
  case 8:
  {
  uint64_t x_10; size_t x_11; 
  x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4);
  x_11 = l_Lean_Expr_Data_hash(x_10);
  return x_11;
  }
  case 10:
  {
  uint64_t x_12; size_t x_13; 
  x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_13 = l_Lean_Expr_Data_hash(x_12);
  return x_13;
  }
  case 11:
  {
  uint64_t x_14; size_t x_15; 
  x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_15 = l_Lean_Expr_Data_hash(x_14);
  return x_15;
  }
  case 12:
  {
  uint64_t x_16; size_t x_17; 
  x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_17 = l_Lean_Expr_Data_hash(x_16);
  return x_17;
  }
  default: 
  {
  uint64_t x_18; size_t x_19; 
  x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  x_19 = l_Lean_Expr_Data_hash(x_18);
  return x_19;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_hash___boxed(lean_object* x_1) {
  _start:
  {
  size_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_hash(x_1);
  lean_dec(x_1);
  x_3 = lean_box_usize(x_2);
  return x_3;
  }
  }
  lean_object* _init_l_Lean_Expr_Hashable___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Expr_hash___boxed), 1, 0);
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_Hashable() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Expr_Hashable___closed__1;
  return x_1;
  }
  }
  uint8_t l_Lean_Expr_hasFVar(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  uint64_t x_2; uint8_t x_3; 
  x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_3 = l_Lean_Expr_Data_hasFVar(x_2);
  return x_3;
  }
  case 5:
  {
  uint64_t x_4; uint8_t x_5; 
  x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_5 = l_Lean_Expr_Data_hasFVar(x_4);
  return x_5;
  }
  case 6:
  {
  uint64_t x_6; uint8_t x_7; 
  x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_7 = l_Lean_Expr_Data_hasFVar(x_6);
  return x_7;
  }
  case 7:
  {
  uint64_t x_8; uint8_t x_9; 
  x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_9 = l_Lean_Expr_Data_hasFVar(x_8);
  return x_9;
  }
  case 8:
  {
  uint64_t x_10; uint8_t x_11; 
  x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4);
  x_11 = l_Lean_Expr_Data_hasFVar(x_10);
  return x_11;
  }
  case 10:
  {
  uint64_t x_12; uint8_t x_13; 
  x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_13 = l_Lean_Expr_Data_hasFVar(x_12);
  return x_13;
  }
  case 11:
  {
  uint64_t x_14; uint8_t x_15; 
  x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_15 = l_Lean_Expr_Data_hasFVar(x_14);
  return x_15;
  }
  case 12:
  {
  uint64_t x_16; uint8_t x_17; 
  x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_17 = l_Lean_Expr_Data_hasFVar(x_16);
  return x_17;
  }
  default: 
  {
  uint64_t x_18; uint8_t x_19; 
  x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  x_19 = l_Lean_Expr_Data_hasFVar(x_18);
  return x_19;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_hasFVar___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_hasFVar(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_hasExprMVar(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  uint64_t x_2; uint8_t x_3; 
  x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_3 = l_Lean_Expr_Data_hasExprMVar(x_2);
  return x_3;
  }
  case 5:
  {
  uint64_t x_4; uint8_t x_5; 
  x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_5 = l_Lean_Expr_Data_hasExprMVar(x_4);
  return x_5;
  }
  case 6:
  {
  uint64_t x_6; uint8_t x_7; 
  x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_7 = l_Lean_Expr_Data_hasExprMVar(x_6);
  return x_7;
  }
  case 7:
  {
  uint64_t x_8; uint8_t x_9; 
  x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_9 = l_Lean_Expr_Data_hasExprMVar(x_8);
  return x_9;
  }
  case 8:
  {
  uint64_t x_10; uint8_t x_11; 
  x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4);
  x_11 = l_Lean_Expr_Data_hasExprMVar(x_10);
  return x_11;
  }
  case 10:
  {
  uint64_t x_12; uint8_t x_13; 
  x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_13 = l_Lean_Expr_Data_hasExprMVar(x_12);
  return x_13;
  }
  case 11:
  {
  uint64_t x_14; uint8_t x_15; 
  x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_15 = l_Lean_Expr_Data_hasExprMVar(x_14);
  return x_15;
  }
  case 12:
  {
  uint64_t x_16; uint8_t x_17; 
  x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_17 = l_Lean_Expr_Data_hasExprMVar(x_16);
  return x_17;
  }
  default: 
  {
  uint64_t x_18; uint8_t x_19; 
  x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  x_19 = l_Lean_Expr_Data_hasExprMVar(x_18);
  return x_19;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_hasExprMVar___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_hasExprMVar(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_hasLevelMVar(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  uint64_t x_2; uint8_t x_3; 
  x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_3 = l_Lean_Expr_Data_hasLevelMVar(x_2);
  return x_3;
  }
  case 5:
  {
  uint64_t x_4; uint8_t x_5; 
  x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_5 = l_Lean_Expr_Data_hasLevelMVar(x_4);
  return x_5;
  }
  case 6:
  {
  uint64_t x_6; uint8_t x_7; 
  x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_7 = l_Lean_Expr_Data_hasLevelMVar(x_6);
  return x_7;
  }
  case 7:
  {
  uint64_t x_8; uint8_t x_9; 
  x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_9 = l_Lean_Expr_Data_hasLevelMVar(x_8);
  return x_9;
  }
  case 8:
  {
  uint64_t x_10; uint8_t x_11; 
  x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4);
  x_11 = l_Lean_Expr_Data_hasLevelMVar(x_10);
  return x_11;
  }
  case 10:
  {
  uint64_t x_12; uint8_t x_13; 
  x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_13 = l_Lean_Expr_Data_hasLevelMVar(x_12);
  return x_13;
  }
  case 11:
  {
  uint64_t x_14; uint8_t x_15; 
  x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_15 = l_Lean_Expr_Data_hasLevelMVar(x_14);
  return x_15;
  }
  case 12:
  {
  uint64_t x_16; uint8_t x_17; 
  x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_17 = l_Lean_Expr_Data_hasLevelMVar(x_16);
  return x_17;
  }
  default: 
  {
  uint64_t x_18; uint8_t x_19; 
  x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  x_19 = l_Lean_Expr_Data_hasLevelMVar(x_18);
  return x_19;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_hasLevelMVar___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_hasLevelMVar(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_hasMVar(lean_object* x_1) {
  _start:
  {
  uint64_t x_2; 
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  uint64_t x_7; 
  x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_2 = x_7;
  goto block_6;
  }
  case 5:
  {
  uint64_t x_8; 
  x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_2 = x_8;
  goto block_6;
  }
  case 6:
  {
  uint64_t x_9; 
  x_9 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_2 = x_9;
  goto block_6;
  }
  case 7:
  {
  uint64_t x_10; 
  x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_2 = x_10;
  goto block_6;
  }
  case 8:
  {
  uint64_t x_11; 
  x_11 = lean_ctor_get_uint64(x_1, sizeof(void*)*4);
  x_2 = x_11;
  goto block_6;
  }
  case 10:
  {
  uint64_t x_12; 
  x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_2 = x_12;
  goto block_6;
  }
  case 11:
  {
  uint64_t x_13; 
  x_13 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_2 = x_13;
  goto block_6;
  }
  case 12:
  {
  uint64_t x_14; 
  x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_2 = x_14;
  goto block_6;
  }
  default: 
  {
  uint64_t x_15; 
  x_15 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  x_2 = x_15;
  goto block_6;
  }
  }
  block_6:
  {
  uint8_t x_3; 
  x_3 = l_Lean_Expr_Data_hasExprMVar(x_2);
  if (x_3 == 0)
  {
  uint8_t x_4; 
  x_4 = l_Lean_Expr_Data_hasLevelMVar(x_2);
  return x_4;
  }
  else
  {
  uint8_t x_5; 
  x_5 = 1;
  return x_5;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_hasMVar___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_hasMVar(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_hasLevelParam(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  uint64_t x_2; uint8_t x_3; 
  x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_3 = l_Lean_Expr_Data_hasLevelParam(x_2);
  return x_3;
  }
  case 5:
  {
  uint64_t x_4; uint8_t x_5; 
  x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_5 = l_Lean_Expr_Data_hasLevelParam(x_4);
  return x_5;
  }
  case 6:
  {
  uint64_t x_6; uint8_t x_7; 
  x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_7 = l_Lean_Expr_Data_hasLevelParam(x_6);
  return x_7;
  }
  case 7:
  {
  uint64_t x_8; uint8_t x_9; 
  x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_9 = l_Lean_Expr_Data_hasLevelParam(x_8);
  return x_9;
  }
  case 8:
  {
  uint64_t x_10; uint8_t x_11; 
  x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4);
  x_11 = l_Lean_Expr_Data_hasLevelParam(x_10);
  return x_11;
  }
  case 10:
  {
  uint64_t x_12; uint8_t x_13; 
  x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_13 = l_Lean_Expr_Data_hasLevelParam(x_12);
  return x_13;
  }
  case 11:
  {
  uint64_t x_14; uint8_t x_15; 
  x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_15 = l_Lean_Expr_Data_hasLevelParam(x_14);
  return x_15;
  }
  case 12:
  {
  uint64_t x_16; uint8_t x_17; 
  x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_17 = l_Lean_Expr_Data_hasLevelParam(x_16);
  return x_17;
  }
  default: 
  {
  uint64_t x_18; uint8_t x_19; 
  x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  x_19 = l_Lean_Expr_Data_hasLevelParam(x_18);
  return x_19;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_hasLevelParam___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_hasLevelParam(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_looseBVarRange(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  uint64_t x_2; uint32_t x_3; lean_object* x_4; 
  x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_3 = l_Lean_Expr_Data_looseBVarRange(x_2);
  x_4 = lean_uint32_to_nat(x_3);
  return x_4;
  }
  case 5:
  {
  uint64_t x_5; uint32_t x_6; lean_object* x_7; 
  x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_6 = l_Lean_Expr_Data_looseBVarRange(x_5);
  x_7 = lean_uint32_to_nat(x_6);
  return x_7;
  }
  case 6:
  {
  uint64_t x_8; uint32_t x_9; lean_object* x_10; 
  x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_9 = l_Lean_Expr_Data_looseBVarRange(x_8);
  x_10 = lean_uint32_to_nat(x_9);
  return x_10;
  }
  case 7:
  {
  uint64_t x_11; uint32_t x_12; lean_object* x_13; 
  x_11 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_12 = l_Lean_Expr_Data_looseBVarRange(x_11);
  x_13 = lean_uint32_to_nat(x_12);
  return x_13;
  }
  case 8:
  {
  uint64_t x_14; uint32_t x_15; lean_object* x_16; 
  x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*4);
  x_15 = l_Lean_Expr_Data_looseBVarRange(x_14);
  x_16 = lean_uint32_to_nat(x_15);
  return x_16;
  }
  case 10:
  {
  uint64_t x_17; uint32_t x_18; lean_object* x_19; 
  x_17 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_18 = l_Lean_Expr_Data_looseBVarRange(x_17);
  x_19 = lean_uint32_to_nat(x_18);
  return x_19;
  }
  case 11:
  {
  uint64_t x_20; uint32_t x_21; lean_object* x_22; 
  x_20 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_21 = l_Lean_Expr_Data_looseBVarRange(x_20);
  x_22 = lean_uint32_to_nat(x_21);
  return x_22;
  }
  case 12:
  {
  uint64_t x_23; uint32_t x_24; lean_object* x_25; 
  x_23 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_24 = l_Lean_Expr_Data_looseBVarRange(x_23);
  x_25 = lean_uint32_to_nat(x_24);
  return x_25;
  }
  default: 
  {
  uint64_t x_26; uint32_t x_27; lean_object* x_28; 
  x_26 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  x_27 = l_Lean_Expr_Data_looseBVarRange(x_26);
  x_28 = lean_uint32_to_nat(x_27);
  return x_28;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_looseBVarRange___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_looseBVarRange(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  uint8_t l_Lean_Expr_binderInfo(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  uint64_t x_2; uint8_t x_3; 
  x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_3 = (uint8_t)((x_2 << 24) >> 61);
  return x_3;
  }
  case 5:
  {
  uint64_t x_4; uint8_t x_5; 
  x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_5 = (uint8_t)((x_4 << 24) >> 61);
  return x_5;
  }
  case 6:
  {
  uint64_t x_6; uint8_t x_7; 
  x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_7 = (uint8_t)((x_6 << 24) >> 61);
  return x_7;
  }
  case 7:
  {
  uint64_t x_8; uint8_t x_9; 
  x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_9 = (uint8_t)((x_8 << 24) >> 61);
  return x_9;
  }
  case 8:
  {
  uint64_t x_10; uint8_t x_11; 
  x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4);
  x_11 = (uint8_t)((x_10 << 24) >> 61);
  return x_11;
  }
  case 10:
  {
  uint64_t x_12; uint8_t x_13; 
  x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  x_13 = (uint8_t)((x_12 << 24) >> 61);
  return x_13;
  }
  case 11:
  {
  uint64_t x_14; uint8_t x_15; 
  x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_15 = (uint8_t)((x_14 << 24) >> 61);
  return x_15;
  }
  case 12:
  {
  uint64_t x_16; uint8_t x_17; 
  x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_17 = (uint8_t)((x_16 << 24) >> 61);
  return x_17;
  }
  default: 
  {
  uint64_t x_18; uint8_t x_19; 
  x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  x_19 = (uint8_t)((x_18 << 24) >> 61);
  return x_19;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_binderInfo___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_binderInfo(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  size_t lean_expr_hash(lean_object* x_1) {
  _start:
  {
  size_t x_2; 
  x_2 = l_Lean_Expr_hash(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_hashEx___boxed(lean_object* x_1) {
  _start:
  {
  size_t x_2; lean_object* x_3; 
  x_2 = lean_expr_hash(x_1);
  x_3 = lean_box_usize(x_2);
  return x_3;
  }
  }
  uint8_t lean_expr_has_fvar(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; 
  x_2 = l_Lean_Expr_hasFVar(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_hasFVarEx___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = lean_expr_has_fvar(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t lean_expr_has_expr_mvar(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; 
  x_2 = l_Lean_Expr_hasExprMVar(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_hasExprMVarEx___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = lean_expr_has_expr_mvar(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t lean_expr_has_level_mvar(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; 
  x_2 = l_Lean_Expr_hasLevelMVar(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_hasLevelMVarEx___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = lean_expr_has_level_mvar(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t lean_expr_has_mvar(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; 
  x_2 = l_Lean_Expr_hasMVar(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_hasMVarEx___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = lean_expr_has_mvar(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t lean_expr_has_level_param(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; 
  x_2 = l_Lean_Expr_hasLevelParam(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_hasLevelParamEx___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = lean_expr_has_level_param(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint32_t lean_expr_loose_bvar_range(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  uint64_t x_2; uint32_t x_3; 
  x_2 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  lean_dec(x_1);
  x_3 = l_Lean_Expr_Data_looseBVarRange(x_2);
  return x_3;
  }
  case 5:
  {
  uint64_t x_4; uint32_t x_5; 
  x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  lean_dec(x_1);
  x_5 = l_Lean_Expr_Data_looseBVarRange(x_4);
  return x_5;
  }
  case 6:
  {
  uint64_t x_6; uint32_t x_7; 
  x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  lean_dec(x_1);
  x_7 = l_Lean_Expr_Data_looseBVarRange(x_6);
  return x_7;
  }
  case 7:
  {
  uint64_t x_8; uint32_t x_9; 
  x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  lean_dec(x_1);
  x_9 = l_Lean_Expr_Data_looseBVarRange(x_8);
  return x_9;
  }
  case 8:
  {
  uint64_t x_10; uint32_t x_11; 
  x_10 = lean_ctor_get_uint64(x_1, sizeof(void*)*4);
  lean_dec(x_1);
  x_11 = l_Lean_Expr_Data_looseBVarRange(x_10);
  return x_11;
  }
  case 10:
  {
  uint64_t x_12; uint32_t x_13; 
  x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  lean_dec(x_1);
  x_13 = l_Lean_Expr_Data_looseBVarRange(x_12);
  return x_13;
  }
  case 11:
  {
  uint64_t x_14; uint32_t x_15; 
  x_14 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  lean_dec(x_1);
  x_15 = l_Lean_Expr_Data_looseBVarRange(x_14);
  return x_15;
  }
  case 12:
  {
  uint64_t x_16; uint32_t x_17; 
  x_16 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  lean_dec(x_1);
  x_17 = l_Lean_Expr_Data_looseBVarRange(x_16);
  return x_17;
  }
  default: 
  {
  uint64_t x_18; uint32_t x_19; 
  x_18 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  lean_dec(x_1);
  x_19 = l_Lean_Expr_Data_looseBVarRange(x_18);
  return x_19;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_looseBVarRangeEx___boxed(lean_object* x_1) {
  _start:
  {
  uint32_t x_2; lean_object* x_3; 
  x_2 = lean_expr_loose_bvar_range(x_1);
  x_3 = lean_box_uint32(x_2);
  return x_3;
  }
  }
  uint8_t lean_expr_binder_info(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; 
  x_2 = l_Lean_Expr_binderInfo(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_binderInfoEx___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = lean_expr_binder_info(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_mkLit(lean_object* x_1) {
  _start:
  {
  size_t x_2; size_t x_3; size_t x_4; lean_object* x_5; uint8_t x_6; uint64_t x_7; lean_object* x_8; 
  x_2 = 3;
  x_3 = l_Lean_Literal_hash(x_1);
  x_4 = lean_usize_mix_hash(x_2, x_3);
  x_5 = lean_unsigned_to_nat(0u);
  x_6 = 0;
  x_7 = l_Lean_Expr_mkData(x_4, x_5, x_6, x_6, x_6, x_6);
  x_8 = lean_alloc_ctor(9, 1, 8);
  lean_ctor_set(x_8, 0, x_1);
  lean_ctor_set_uint64(x_8, sizeof(void*)*1, x_7);
  return x_8;
  }
  }
  lean_object* l_Lean_mkNatLit(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  x_3 = l_Lean_mkLit(x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_mkStrLit(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  x_3 = l_Lean_mkLit(x_2);
  return x_3;
  }
  }
  size_t l_List_foldl___main___at_Lean_mkConst___spec__2(size_t x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_2) == 0)
  {
  return x_1;
  }
  else
  {
  lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; 
  x_3 = lean_ctor_get(x_2, 0);
  x_4 = lean_ctor_get(x_2, 1);
  x_5 = l_Lean_Level_hash(x_3);
  x_6 = lean_usize_mix_hash(x_1, x_5);
  x_1 = x_6;
  x_2 = x_4;
  goto _start;
  }
  }
  }
  size_t l_List_hash___at_Lean_mkConst___spec__1(lean_object* x_1) {
  _start:
  {
  size_t x_2; size_t x_3; 
  x_2 = 7;
  x_3 = l_List_foldl___main___at_Lean_mkConst___spec__2(x_2, x_1);
  return x_3;
  }
  }
  uint8_t l_List_foldr___main___at_Lean_mkConst___spec__3(uint8_t x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_2) == 0)
  {
  return x_1;
  }
  else
  {
  lean_object* x_3; lean_object* x_4; uint8_t x_5; uint8_t x_6; 
  x_3 = lean_ctor_get(x_2, 0);
  x_4 = lean_ctor_get(x_2, 1);
  x_5 = l_List_foldr___main___at_Lean_mkConst___spec__3(x_1, x_4);
  x_6 = l_Lean_Level_hasMVar(x_3);
  if (x_6 == 0)
  {
  return x_5;
  }
  else
  {
  uint8_t x_7; 
  x_7 = 1;
  return x_7;
  }
  }
  }
  }
  uint8_t l_List_foldr___main___at_Lean_mkConst___spec__4(uint8_t x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_2) == 0)
  {
  return x_1;
  }
  else
  {
  lean_object* x_3; lean_object* x_4; uint8_t x_5; uint8_t x_6; 
  x_3 = lean_ctor_get(x_2, 0);
  x_4 = lean_ctor_get(x_2, 1);
  x_5 = l_List_foldr___main___at_Lean_mkConst___spec__4(x_1, x_4);
  x_6 = l_Lean_Level_hasParam(x_3);
  if (x_6 == 0)
  {
  return x_5;
  }
  else
  {
  uint8_t x_7; 
  x_7 = 1;
  return x_7;
  }
  }
  }
  }
  lean_object* l_Lean_mkConst(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  size_t x_3; size_t x_4; size_t x_5; size_t x_6; size_t x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; lean_object* x_11; uint64_t x_12; lean_object* x_13; 
  x_3 = 5;
  x_4 = l_Lean_Name_hash(x_1);
  x_5 = l_List_hash___at_Lean_mkConst___spec__1(x_2);
  x_6 = lean_usize_mix_hash(x_4, x_5);
  x_7 = lean_usize_mix_hash(x_3, x_6);
  x_8 = 0;
  x_9 = l_List_foldr___main___at_Lean_mkConst___spec__3(x_8, x_2);
  x_10 = l_List_foldr___main___at_Lean_mkConst___spec__4(x_8, x_2);
  x_11 = lean_unsigned_to_nat(0u);
  x_12 = l_Lean_Expr_mkData(x_7, x_11, x_8, x_8, x_9, x_10);
  x_13 = lean_alloc_ctor(4, 2, 8);
  lean_ctor_set(x_13, 0, x_1);
  lean_ctor_set(x_13, 1, x_2);
  lean_ctor_set_uint64(x_13, sizeof(void*)*2, x_12);
  return x_13;
  }
  }
  lean_object* l_List_foldl___main___at_Lean_mkConst___spec__2___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  size_t x_3; size_t x_4; lean_object* x_5; 
  x_3 = lean_unbox_usize(x_1);
  lean_dec(x_1);
  x_4 = l_List_foldl___main___at_Lean_mkConst___spec__2(x_3, x_2);
  lean_dec(x_2);
  x_5 = lean_box_usize(x_4);
  return x_5;
  }
  }
  lean_object* l_List_hash___at_Lean_mkConst___spec__1___boxed(lean_object* x_1) {
  _start:
  {
  size_t x_2; lean_object* x_3; 
  x_2 = l_List_hash___at_Lean_mkConst___spec__1(x_1);
  lean_dec(x_1);
  x_3 = lean_box_usize(x_2);
  return x_3;
  }
  }
  lean_object* l_List_foldr___main___at_Lean_mkConst___spec__3___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; uint8_t x_4; lean_object* x_5; 
  x_3 = lean_unbox(x_1);
  lean_dec(x_1);
  x_4 = l_List_foldr___main___at_Lean_mkConst___spec__3(x_3, x_2);
  lean_dec(x_2);
  x_5 = lean_box(x_4);
  return x_5;
  }
  }
  lean_object* l_List_foldr___main___at_Lean_mkConst___spec__4___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; uint8_t x_4; lean_object* x_5; 
  x_3 = lean_unbox(x_1);
  lean_dec(x_1);
  x_4 = l_List_foldr___main___at_Lean_mkConst___spec__4(x_3, x_2);
  lean_dec(x_2);
  x_5 = lean_box(x_4);
  return x_5;
  }
  }
  lean_object* _init_l_Lean_Literal_type___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Nat");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Literal_type___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Literal_type___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* _init_l_Lean_Literal_type___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Literal_type___closed__2;
  x_3 = l_Lean_mkConst(x_2, x_1);
  return x_3;
  }
  }
  lean_object* _init_l_Lean_Literal_type___closed__4() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("String");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Literal_type___closed__5() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Literal_type___closed__4;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* _init_l_Lean_Literal_type___closed__6() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Literal_type___closed__5;
  x_3 = l_Lean_mkConst(x_2, x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_Literal_type(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_2; 
  x_2 = l_Lean_Literal_type___closed__3;
  return x_2;
  }
  else
  {
  lean_object* x_3; 
  x_3 = l_Lean_Literal_type___closed__6;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Literal_type___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Literal_type(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* lean_lit_type(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Literal_type(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_mkBVar(lean_object* x_1) {
  _start:
  {
  size_t x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; uint64_t x_8; lean_object* x_9; 
  x_2 = 7;
  x_3 = lean_usize_of_nat(x_1);
  x_4 = lean_usize_mix_hash(x_2, x_3);
  x_5 = lean_unsigned_to_nat(1u);
  x_6 = lean_nat_add(x_1, x_5);
  x_7 = 0;
  x_8 = l_Lean_Expr_mkData(x_4, x_6, x_7, x_7, x_7, x_7);
  lean_dec(x_6);
  x_9 = lean_alloc_ctor(0, 1, 8);
  lean_ctor_set(x_9, 0, x_1);
  lean_ctor_set_uint64(x_9, sizeof(void*)*1, x_8);
  return x_9;
  }
  }
  lean_object* l_Lean_mkSort(lean_object* x_1) {
  _start:
  {
  size_t x_2; size_t x_3; size_t x_4; uint8_t x_5; uint8_t x_6; lean_object* x_7; uint8_t x_8; uint64_t x_9; lean_object* x_10; 
  x_2 = 11;
  x_3 = l_Lean_Level_hash(x_1);
  x_4 = lean_usize_mix_hash(x_2, x_3);
  x_5 = l_Lean_Level_hasMVar(x_1);
  x_6 = l_Lean_Level_hasParam(x_1);
  x_7 = lean_unsigned_to_nat(0u);
  x_8 = 0;
  x_9 = l_Lean_Expr_mkData(x_4, x_7, x_8, x_8, x_5, x_6);
  x_10 = lean_alloc_ctor(3, 1, 8);
  lean_ctor_set(x_10, 0, x_1);
  lean_ctor_set_uint64(x_10, sizeof(void*)*1, x_9);
  return x_10;
  }
  }
  lean_object* l_Lean_mkFVar(lean_object* x_1) {
  _start:
  {
  size_t x_2; size_t x_3; size_t x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; uint64_t x_8; lean_object* x_9; 
  x_2 = 13;
  x_3 = l_Lean_Name_hash(x_1);
  x_4 = lean_usize_mix_hash(x_2, x_3);
  x_5 = lean_unsigned_to_nat(0u);
  x_6 = 1;
  x_7 = 0;
  x_8 = l_Lean_Expr_mkData(x_4, x_5, x_6, x_7, x_7, x_7);
  x_9 = lean_alloc_ctor(1, 1, 8);
  lean_ctor_set(x_9, 0, x_1);
  lean_ctor_set_uint64(x_9, sizeof(void*)*1, x_8);
  return x_9;
  }
  }
  lean_object* l_Lean_mkMVar(lean_object* x_1) {
  _start:
  {
  size_t x_2; size_t x_3; size_t x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; uint64_t x_8; lean_object* x_9; 
  x_2 = 17;
  x_3 = l_Lean_Name_hash(x_1);
  x_4 = lean_usize_mix_hash(x_2, x_3);
  x_5 = lean_unsigned_to_nat(0u);
  x_6 = 0;
  x_7 = 1;
  x_8 = l_Lean_Expr_mkData(x_4, x_5, x_6, x_7, x_6, x_6);
  x_9 = lean_alloc_ctor(2, 1, 8);
  lean_ctor_set(x_9, 0, x_1);
  lean_ctor_set_uint64(x_9, sizeof(void*)*1, x_8);
  return x_9;
  }
  }
  lean_object* l_Lean_mkMData(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  size_t x_3; size_t x_4; size_t x_5; lean_object* x_6; uint8_t x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; uint64_t x_11; lean_object* x_12; 
  x_3 = 19;
  x_4 = l_Lean_Expr_hash(x_2);
  x_5 = lean_usize_mix_hash(x_3, x_4);
  x_6 = l_Lean_Expr_looseBVarRange(x_2);
  x_7 = l_Lean_Expr_hasFVar(x_2);
  x_8 = l_Lean_Expr_hasExprMVar(x_2);
  x_9 = l_Lean_Expr_hasLevelMVar(x_2);
  x_10 = l_Lean_Expr_hasLevelParam(x_2);
  x_11 = l_Lean_Expr_mkData(x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_6);
  x_12 = lean_alloc_ctor(10, 2, 8);
  lean_ctor_set(x_12, 0, x_1);
  lean_ctor_set(x_12, 1, x_2);
  lean_ctor_set_uint64(x_12, sizeof(void*)*2, x_11);
  return x_12;
  }
  }
  lean_object* l_Lean_mkProj(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  size_t x_4; size_t x_5; size_t x_6; size_t x_7; size_t x_8; size_t x_9; size_t x_10; lean_object* x_11; uint8_t x_12; uint8_t x_13; uint8_t x_14; uint8_t x_15; uint64_t x_16; lean_object* x_17; 
  x_4 = 23;
  x_5 = l_Lean_Name_hash(x_1);
  x_6 = lean_usize_of_nat(x_2);
  x_7 = l_Lean_Expr_hash(x_3);
  x_8 = lean_usize_mix_hash(x_6, x_7);
  x_9 = lean_usize_mix_hash(x_5, x_8);
  x_10 = lean_usize_mix_hash(x_4, x_9);
  x_11 = l_Lean_Expr_looseBVarRange(x_3);
  x_12 = l_Lean_Expr_hasFVar(x_3);
  x_13 = l_Lean_Expr_hasExprMVar(x_3);
  x_14 = l_Lean_Expr_hasLevelMVar(x_3);
  x_15 = l_Lean_Expr_hasLevelParam(x_3);
  x_16 = l_Lean_Expr_mkData(x_10, x_11, x_12, x_13, x_14, x_15);
  lean_dec(x_11);
  x_17 = lean_alloc_ctor(11, 3, 8);
  lean_ctor_set(x_17, 0, x_1);
  lean_ctor_set(x_17, 1, x_2);
  lean_ctor_set(x_17, 2, x_3);
  lean_ctor_set_uint64(x_17, sizeof(void*)*3, x_16);
  return x_17;
  }
  }
  lean_object* l_Lean_mkApp(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  size_t x_3; size_t x_4; size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; uint8_t x_14; 
  x_3 = 29;
  x_4 = l_Lean_Expr_hash(x_1);
  x_5 = l_Lean_Expr_hash(x_2);
  x_6 = lean_usize_mix_hash(x_4, x_5);
  x_7 = lean_usize_mix_hash(x_3, x_6);
  x_8 = l_Lean_Expr_looseBVarRange(x_1);
  x_9 = l_Lean_Expr_looseBVarRange(x_2);
  x_10 = l_Nat_max(x_8, x_9);
  lean_dec(x_9);
  lean_dec(x_8);
  x_11 = l_Lean_Expr_hasFVar(x_1);
  x_12 = l_Lean_Expr_hasExprMVar(x_1);
  x_13 = l_Lean_Expr_hasLevelMVar(x_1);
  x_14 = l_Lean_Expr_hasLevelParam(x_1);
  if (x_11 == 0)
  {
  uint8_t x_15; 
  x_15 = l_Lean_Expr_hasFVar(x_2);
  if (x_12 == 0)
  {
  uint8_t x_16; 
  x_16 = l_Lean_Expr_hasExprMVar(x_2);
  if (x_13 == 0)
  {
  uint8_t x_17; 
  x_17 = l_Lean_Expr_hasLevelMVar(x_2);
  if (x_14 == 0)
  {
  uint8_t x_18; uint64_t x_19; lean_object* x_20; 
  x_18 = l_Lean_Expr_hasLevelParam(x_2);
  x_19 = l_Lean_Expr_mkData(x_7, x_10, x_15, x_16, x_17, x_18);
  lean_dec(x_10);
  x_20 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_20, 0, x_1);
  lean_ctor_set(x_20, 1, x_2);
  lean_ctor_set_uint64(x_20, sizeof(void*)*2, x_19);
  return x_20;
  }
  else
  {
  uint8_t x_21; uint64_t x_22; lean_object* x_23; 
  x_21 = 1;
  x_22 = l_Lean_Expr_mkData(x_7, x_10, x_15, x_16, x_17, x_21);
  lean_dec(x_10);
  x_23 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_23, 0, x_1);
  lean_ctor_set(x_23, 1, x_2);
  lean_ctor_set_uint64(x_23, sizeof(void*)*2, x_22);
  return x_23;
  }
  }
  else
  {
  if (x_14 == 0)
  {
  uint8_t x_24; uint8_t x_25; uint64_t x_26; lean_object* x_27; 
  x_24 = l_Lean_Expr_hasLevelParam(x_2);
  x_25 = 1;
  x_26 = l_Lean_Expr_mkData(x_7, x_10, x_15, x_16, x_25, x_24);
  lean_dec(x_10);
  x_27 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_27, 0, x_1);
  lean_ctor_set(x_27, 1, x_2);
  lean_ctor_set_uint64(x_27, sizeof(void*)*2, x_26);
  return x_27;
  }
  else
  {
  uint8_t x_28; uint64_t x_29; lean_object* x_30; 
  x_28 = 1;
  x_29 = l_Lean_Expr_mkData(x_7, x_10, x_15, x_16, x_28, x_28);
  lean_dec(x_10);
  x_30 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_30, 0, x_1);
  lean_ctor_set(x_30, 1, x_2);
  lean_ctor_set_uint64(x_30, sizeof(void*)*2, x_29);
  return x_30;
  }
  }
  }
  else
  {
  if (x_13 == 0)
  {
  uint8_t x_31; 
  x_31 = l_Lean_Expr_hasLevelMVar(x_2);
  if (x_14 == 0)
  {
  uint8_t x_32; uint8_t x_33; uint64_t x_34; lean_object* x_35; 
  x_32 = l_Lean_Expr_hasLevelParam(x_2);
  x_33 = 1;
  x_34 = l_Lean_Expr_mkData(x_7, x_10, x_15, x_33, x_31, x_32);
  lean_dec(x_10);
  x_35 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_35, 0, x_1);
  lean_ctor_set(x_35, 1, x_2);
  lean_ctor_set_uint64(x_35, sizeof(void*)*2, x_34);
  return x_35;
  }
  else
  {
  uint8_t x_36; uint64_t x_37; lean_object* x_38; 
  x_36 = 1;
  x_37 = l_Lean_Expr_mkData(x_7, x_10, x_15, x_36, x_31, x_36);
  lean_dec(x_10);
  x_38 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_38, 0, x_1);
  lean_ctor_set(x_38, 1, x_2);
  lean_ctor_set_uint64(x_38, sizeof(void*)*2, x_37);
  return x_38;
  }
  }
  else
  {
  if (x_14 == 0)
  {
  uint8_t x_39; uint8_t x_40; uint64_t x_41; lean_object* x_42; 
  x_39 = l_Lean_Expr_hasLevelParam(x_2);
  x_40 = 1;
  x_41 = l_Lean_Expr_mkData(x_7, x_10, x_15, x_40, x_40, x_39);
  lean_dec(x_10);
  x_42 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_42, 0, x_1);
  lean_ctor_set(x_42, 1, x_2);
  lean_ctor_set_uint64(x_42, sizeof(void*)*2, x_41);
  return x_42;
  }
  else
  {
  uint8_t x_43; uint64_t x_44; lean_object* x_45; 
  x_43 = 1;
  x_44 = l_Lean_Expr_mkData(x_7, x_10, x_15, x_43, x_43, x_43);
  lean_dec(x_10);
  x_45 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_45, 0, x_1);
  lean_ctor_set(x_45, 1, x_2);
  lean_ctor_set_uint64(x_45, sizeof(void*)*2, x_44);
  return x_45;
  }
  }
  }
  }
  else
  {
  if (x_12 == 0)
  {
  uint8_t x_46; 
  x_46 = l_Lean_Expr_hasExprMVar(x_2);
  if (x_13 == 0)
  {
  uint8_t x_47; 
  x_47 = l_Lean_Expr_hasLevelMVar(x_2);
  if (x_14 == 0)
  {
  uint8_t x_48; uint8_t x_49; uint64_t x_50; lean_object* x_51; 
  x_48 = l_Lean_Expr_hasLevelParam(x_2);
  x_49 = 1;
  x_50 = l_Lean_Expr_mkData(x_7, x_10, x_49, x_46, x_47, x_48);
  lean_dec(x_10);
  x_51 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_51, 0, x_1);
  lean_ctor_set(x_51, 1, x_2);
  lean_ctor_set_uint64(x_51, sizeof(void*)*2, x_50);
  return x_51;
  }
  else
  {
  uint8_t x_52; uint64_t x_53; lean_object* x_54; 
  x_52 = 1;
  x_53 = l_Lean_Expr_mkData(x_7, x_10, x_52, x_46, x_47, x_52);
  lean_dec(x_10);
  x_54 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_54, 0, x_1);
  lean_ctor_set(x_54, 1, x_2);
  lean_ctor_set_uint64(x_54, sizeof(void*)*2, x_53);
  return x_54;
  }
  }
  else
  {
  if (x_14 == 0)
  {
  uint8_t x_55; uint8_t x_56; uint64_t x_57; lean_object* x_58; 
  x_55 = l_Lean_Expr_hasLevelParam(x_2);
  x_56 = 1;
  x_57 = l_Lean_Expr_mkData(x_7, x_10, x_56, x_46, x_56, x_55);
  lean_dec(x_10);
  x_58 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_58, 0, x_1);
  lean_ctor_set(x_58, 1, x_2);
  lean_ctor_set_uint64(x_58, sizeof(void*)*2, x_57);
  return x_58;
  }
  else
  {
  uint8_t x_59; uint64_t x_60; lean_object* x_61; 
  x_59 = 1;
  x_60 = l_Lean_Expr_mkData(x_7, x_10, x_59, x_46, x_59, x_59);
  lean_dec(x_10);
  x_61 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_61, 0, x_1);
  lean_ctor_set(x_61, 1, x_2);
  lean_ctor_set_uint64(x_61, sizeof(void*)*2, x_60);
  return x_61;
  }
  }
  }
  else
  {
  if (x_13 == 0)
  {
  uint8_t x_62; 
  x_62 = l_Lean_Expr_hasLevelMVar(x_2);
  if (x_14 == 0)
  {
  uint8_t x_63; uint8_t x_64; uint64_t x_65; lean_object* x_66; 
  x_63 = l_Lean_Expr_hasLevelParam(x_2);
  x_64 = 1;
  x_65 = l_Lean_Expr_mkData(x_7, x_10, x_64, x_64, x_62, x_63);
  lean_dec(x_10);
  x_66 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_66, 0, x_1);
  lean_ctor_set(x_66, 1, x_2);
  lean_ctor_set_uint64(x_66, sizeof(void*)*2, x_65);
  return x_66;
  }
  else
  {
  uint8_t x_67; uint64_t x_68; lean_object* x_69; 
  x_67 = 1;
  x_68 = l_Lean_Expr_mkData(x_7, x_10, x_67, x_67, x_62, x_67);
  lean_dec(x_10);
  x_69 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_69, 0, x_1);
  lean_ctor_set(x_69, 1, x_2);
  lean_ctor_set_uint64(x_69, sizeof(void*)*2, x_68);
  return x_69;
  }
  }
  else
  {
  if (x_14 == 0)
  {
  uint8_t x_70; uint8_t x_71; uint64_t x_72; lean_object* x_73; 
  x_70 = l_Lean_Expr_hasLevelParam(x_2);
  x_71 = 1;
  x_72 = l_Lean_Expr_mkData(x_7, x_10, x_71, x_71, x_71, x_70);
  lean_dec(x_10);
  x_73 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_73, 0, x_1);
  lean_ctor_set(x_73, 1, x_2);
  lean_ctor_set_uint64(x_73, sizeof(void*)*2, x_72);
  return x_73;
  }
  else
  {
  uint8_t x_74; uint64_t x_75; lean_object* x_76; 
  x_74 = 1;
  x_75 = l_Lean_Expr_mkData(x_7, x_10, x_74, x_74, x_74, x_74);
  lean_dec(x_10);
  x_76 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_76, 0, x_1);
  lean_ctor_set(x_76, 1, x_2);
  lean_ctor_set_uint64(x_76, sizeof(void*)*2, x_75);
  return x_76;
  }
  }
  }
  }
  }
  }
  lean_object* l_Lean_mkLambda(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; size_t x_9; size_t 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; uint8_t x_17; uint8_t x_18; uint8_t x_19; 
  x_5 = l_Lean_Name_eraseMacroScopes(x_1);
  x_6 = 31;
  x_7 = l_Lean_Expr_hash(x_3);
  x_8 = l_Lean_Expr_hash(x_4);
  x_9 = lean_usize_mix_hash(x_7, x_8);
  x_10 = lean_usize_mix_hash(x_6, x_9);
  x_11 = l_Lean_Expr_looseBVarRange(x_3);
  x_12 = l_Lean_Expr_looseBVarRange(x_4);
  x_13 = lean_unsigned_to_nat(1u);
  x_14 = lean_nat_sub(x_12, x_13);
  lean_dec(x_12);
  x_15 = l_Nat_max(x_11, x_14);
  lean_dec(x_14);
  lean_dec(x_11);
  x_16 = l_Lean_Expr_hasFVar(x_3);
  x_17 = l_Lean_Expr_hasExprMVar(x_3);
  x_18 = l_Lean_Expr_hasLevelMVar(x_3);
  x_19 = l_Lean_Expr_hasLevelParam(x_3);
  if (x_16 == 0)
  {
  uint8_t x_20; 
  x_20 = l_Lean_Expr_hasFVar(x_4);
  if (x_17 == 0)
  {
  uint8_t x_21; 
  x_21 = l_Lean_Expr_hasExprMVar(x_4);
  if (x_18 == 0)
  {
  uint8_t x_22; 
  x_22 = l_Lean_Expr_hasLevelMVar(x_4);
  if (x_19 == 0)
  {
  uint8_t x_23; uint64_t x_24; lean_object* x_25; 
  x_23 = l_Lean_Expr_hasLevelParam(x_4);
  x_24 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_22, x_23, x_2);
  lean_dec(x_15);
  x_25 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_25, 0, x_5);
  lean_ctor_set(x_25, 1, x_3);
  lean_ctor_set(x_25, 2, x_4);
  lean_ctor_set_uint64(x_25, sizeof(void*)*3, x_24);
  return x_25;
  }
  else
  {
  uint8_t x_26; uint64_t x_27; lean_object* x_28; 
  x_26 = 1;
  x_27 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_22, x_26, x_2);
  lean_dec(x_15);
  x_28 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_28, 0, x_5);
  lean_ctor_set(x_28, 1, x_3);
  lean_ctor_set(x_28, 2, x_4);
  lean_ctor_set_uint64(x_28, sizeof(void*)*3, x_27);
  return x_28;
  }
  }
  else
  {
  if (x_19 == 0)
  {
  uint8_t x_29; uint8_t x_30; uint64_t x_31; lean_object* x_32; 
  x_29 = l_Lean_Expr_hasLevelParam(x_4);
  x_30 = 1;
  x_31 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_30, x_29, x_2);
  lean_dec(x_15);
  x_32 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_32, 0, x_5);
  lean_ctor_set(x_32, 1, x_3);
  lean_ctor_set(x_32, 2, x_4);
  lean_ctor_set_uint64(x_32, sizeof(void*)*3, x_31);
  return x_32;
  }
  else
  {
  uint8_t x_33; uint64_t x_34; lean_object* x_35; 
  x_33 = 1;
  x_34 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_33, x_33, x_2);
  lean_dec(x_15);
  x_35 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_35, 0, x_5);
  lean_ctor_set(x_35, 1, x_3);
  lean_ctor_set(x_35, 2, x_4);
  lean_ctor_set_uint64(x_35, sizeof(void*)*3, x_34);
  return x_35;
  }
  }
  }
  else
  {
  if (x_18 == 0)
  {
  uint8_t x_36; 
  x_36 = l_Lean_Expr_hasLevelMVar(x_4);
  if (x_19 == 0)
  {
  uint8_t x_37; uint8_t x_38; uint64_t x_39; lean_object* x_40; 
  x_37 = l_Lean_Expr_hasLevelParam(x_4);
  x_38 = 1;
  x_39 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_38, x_36, x_37, x_2);
  lean_dec(x_15);
  x_40 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_40, 0, x_5);
  lean_ctor_set(x_40, 1, x_3);
  lean_ctor_set(x_40, 2, x_4);
  lean_ctor_set_uint64(x_40, sizeof(void*)*3, x_39);
  return x_40;
  }
  else
  {
  uint8_t x_41; uint64_t x_42; lean_object* x_43; 
  x_41 = 1;
  x_42 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_41, x_36, x_41, x_2);
  lean_dec(x_15);
  x_43 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_43, 0, x_5);
  lean_ctor_set(x_43, 1, x_3);
  lean_ctor_set(x_43, 2, x_4);
  lean_ctor_set_uint64(x_43, sizeof(void*)*3, x_42);
  return x_43;
  }
  }
  else
  {
  if (x_19 == 0)
  {
  uint8_t x_44; uint8_t x_45; uint64_t x_46; lean_object* x_47; 
  x_44 = l_Lean_Expr_hasLevelParam(x_4);
  x_45 = 1;
  x_46 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_45, x_45, x_44, x_2);
  lean_dec(x_15);
  x_47 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_47, 0, x_5);
  lean_ctor_set(x_47, 1, x_3);
  lean_ctor_set(x_47, 2, x_4);
  lean_ctor_set_uint64(x_47, sizeof(void*)*3, x_46);
  return x_47;
  }
  else
  {
  uint8_t x_48; uint64_t x_49; lean_object* x_50; 
  x_48 = 1;
  x_49 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_48, x_48, x_48, x_2);
  lean_dec(x_15);
  x_50 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_50, 0, x_5);
  lean_ctor_set(x_50, 1, x_3);
  lean_ctor_set(x_50, 2, x_4);
  lean_ctor_set_uint64(x_50, sizeof(void*)*3, x_49);
  return x_50;
  }
  }
  }
  }
  else
  {
  if (x_17 == 0)
  {
  uint8_t x_51; 
  x_51 = l_Lean_Expr_hasExprMVar(x_4);
  if (x_18 == 0)
  {
  uint8_t x_52; 
  x_52 = l_Lean_Expr_hasLevelMVar(x_4);
  if (x_19 == 0)
  {
  uint8_t x_53; uint8_t x_54; uint64_t x_55; lean_object* x_56; 
  x_53 = l_Lean_Expr_hasLevelParam(x_4);
  x_54 = 1;
  x_55 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_54, x_51, x_52, x_53, x_2);
  lean_dec(x_15);
  x_56 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_56, 0, x_5);
  lean_ctor_set(x_56, 1, x_3);
  lean_ctor_set(x_56, 2, x_4);
  lean_ctor_set_uint64(x_56, sizeof(void*)*3, x_55);
  return x_56;
  }
  else
  {
  uint8_t x_57; uint64_t x_58; lean_object* x_59; 
  x_57 = 1;
  x_58 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_57, x_51, x_52, x_57, x_2);
  lean_dec(x_15);
  x_59 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_59, 0, x_5);
  lean_ctor_set(x_59, 1, x_3);
  lean_ctor_set(x_59, 2, x_4);
  lean_ctor_set_uint64(x_59, sizeof(void*)*3, x_58);
  return x_59;
  }
  }
  else
  {
  if (x_19 == 0)
  {
  uint8_t x_60; uint8_t x_61; uint64_t x_62; lean_object* x_63; 
  x_60 = l_Lean_Expr_hasLevelParam(x_4);
  x_61 = 1;
  x_62 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_61, x_51, x_61, x_60, x_2);
  lean_dec(x_15);
  x_63 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_63, 0, x_5);
  lean_ctor_set(x_63, 1, x_3);
  lean_ctor_set(x_63, 2, x_4);
  lean_ctor_set_uint64(x_63, sizeof(void*)*3, x_62);
  return x_63;
  }
  else
  {
  uint8_t x_64; uint64_t x_65; lean_object* x_66; 
  x_64 = 1;
  x_65 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_64, x_51, x_64, x_64, x_2);
  lean_dec(x_15);
  x_66 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_66, 0, x_5);
  lean_ctor_set(x_66, 1, x_3);
  lean_ctor_set(x_66, 2, x_4);
  lean_ctor_set_uint64(x_66, sizeof(void*)*3, x_65);
  return x_66;
  }
  }
  }
  else
  {
  if (x_18 == 0)
  {
  uint8_t x_67; 
  x_67 = l_Lean_Expr_hasLevelMVar(x_4);
  if (x_19 == 0)
  {
  uint8_t x_68; uint8_t x_69; uint64_t x_70; lean_object* x_71; 
  x_68 = l_Lean_Expr_hasLevelParam(x_4);
  x_69 = 1;
  x_70 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_69, x_69, x_67, x_68, x_2);
  lean_dec(x_15);
  x_71 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_71, 0, x_5);
  lean_ctor_set(x_71, 1, x_3);
  lean_ctor_set(x_71, 2, x_4);
  lean_ctor_set_uint64(x_71, sizeof(void*)*3, x_70);
  return x_71;
  }
  else
  {
  uint8_t x_72; uint64_t x_73; lean_object* x_74; 
  x_72 = 1;
  x_73 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_72, x_72, x_67, x_72, x_2);
  lean_dec(x_15);
  x_74 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_74, 0, x_5);
  lean_ctor_set(x_74, 1, x_3);
  lean_ctor_set(x_74, 2, x_4);
  lean_ctor_set_uint64(x_74, sizeof(void*)*3, x_73);
  return x_74;
  }
  }
  else
  {
  if (x_19 == 0)
  {
  uint8_t x_75; uint8_t x_76; uint64_t x_77; lean_object* x_78; 
  x_75 = l_Lean_Expr_hasLevelParam(x_4);
  x_76 = 1;
  x_77 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_76, x_76, x_76, x_75, x_2);
  lean_dec(x_15);
  x_78 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_78, 0, x_5);
  lean_ctor_set(x_78, 1, x_3);
  lean_ctor_set(x_78, 2, x_4);
  lean_ctor_set_uint64(x_78, sizeof(void*)*3, x_77);
  return x_78;
  }
  else
  {
  uint8_t x_79; uint64_t x_80; lean_object* x_81; 
  x_79 = 1;
  x_80 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_79, x_79, x_79, x_79, x_2);
  lean_dec(x_15);
  x_81 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_81, 0, x_5);
  lean_ctor_set(x_81, 1, x_3);
  lean_ctor_set(x_81, 2, x_4);
  lean_ctor_set_uint64(x_81, sizeof(void*)*3, x_80);
  return x_81;
  }
  }
  }
  }
  }
  }
  lean_object* l_Lean_mkLambda___boxed(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; 
  x_5 = lean_unbox(x_2);
  lean_dec(x_2);
  x_6 = l_Lean_mkLambda(x_1, x_5, x_3, x_4);
  lean_dec(x_1);
  return x_6;
  }
  }
  lean_object* l_Lean_mkForall(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; size_t x_6; size_t x_7; size_t x_8; size_t x_9; size_t 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; uint8_t x_17; uint8_t x_18; uint8_t x_19; 
  x_5 = l_Lean_Name_eraseMacroScopes(x_1);
  x_6 = 37;
  x_7 = l_Lean_Expr_hash(x_3);
  x_8 = l_Lean_Expr_hash(x_4);
  x_9 = lean_usize_mix_hash(x_7, x_8);
  x_10 = lean_usize_mix_hash(x_6, x_9);
  x_11 = l_Lean_Expr_looseBVarRange(x_3);
  x_12 = l_Lean_Expr_looseBVarRange(x_4);
  x_13 = lean_unsigned_to_nat(1u);
  x_14 = lean_nat_sub(x_12, x_13);
  lean_dec(x_12);
  x_15 = l_Nat_max(x_11, x_14);
  lean_dec(x_14);
  lean_dec(x_11);
  x_16 = l_Lean_Expr_hasFVar(x_3);
  x_17 = l_Lean_Expr_hasExprMVar(x_3);
  x_18 = l_Lean_Expr_hasLevelMVar(x_3);
  x_19 = l_Lean_Expr_hasLevelParam(x_3);
  if (x_16 == 0)
  {
  uint8_t x_20; 
  x_20 = l_Lean_Expr_hasFVar(x_4);
  if (x_17 == 0)
  {
  uint8_t x_21; 
  x_21 = l_Lean_Expr_hasExprMVar(x_4);
  if (x_18 == 0)
  {
  uint8_t x_22; 
  x_22 = l_Lean_Expr_hasLevelMVar(x_4);
  if (x_19 == 0)
  {
  uint8_t x_23; uint64_t x_24; lean_object* x_25; 
  x_23 = l_Lean_Expr_hasLevelParam(x_4);
  x_24 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_22, x_23, x_2);
  lean_dec(x_15);
  x_25 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_25, 0, x_5);
  lean_ctor_set(x_25, 1, x_3);
  lean_ctor_set(x_25, 2, x_4);
  lean_ctor_set_uint64(x_25, sizeof(void*)*3, x_24);
  return x_25;
  }
  else
  {
  uint8_t x_26; uint64_t x_27; lean_object* x_28; 
  x_26 = 1;
  x_27 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_22, x_26, x_2);
  lean_dec(x_15);
  x_28 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_28, 0, x_5);
  lean_ctor_set(x_28, 1, x_3);
  lean_ctor_set(x_28, 2, x_4);
  lean_ctor_set_uint64(x_28, sizeof(void*)*3, x_27);
  return x_28;
  }
  }
  else
  {
  if (x_19 == 0)
  {
  uint8_t x_29; uint8_t x_30; uint64_t x_31; lean_object* x_32; 
  x_29 = l_Lean_Expr_hasLevelParam(x_4);
  x_30 = 1;
  x_31 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_30, x_29, x_2);
  lean_dec(x_15);
  x_32 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_32, 0, x_5);
  lean_ctor_set(x_32, 1, x_3);
  lean_ctor_set(x_32, 2, x_4);
  lean_ctor_set_uint64(x_32, sizeof(void*)*3, x_31);
  return x_32;
  }
  else
  {
  uint8_t x_33; uint64_t x_34; lean_object* x_35; 
  x_33 = 1;
  x_34 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_21, x_33, x_33, x_2);
  lean_dec(x_15);
  x_35 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_35, 0, x_5);
  lean_ctor_set(x_35, 1, x_3);
  lean_ctor_set(x_35, 2, x_4);
  lean_ctor_set_uint64(x_35, sizeof(void*)*3, x_34);
  return x_35;
  }
  }
  }
  else
  {
  if (x_18 == 0)
  {
  uint8_t x_36; 
  x_36 = l_Lean_Expr_hasLevelMVar(x_4);
  if (x_19 == 0)
  {
  uint8_t x_37; uint8_t x_38; uint64_t x_39; lean_object* x_40; 
  x_37 = l_Lean_Expr_hasLevelParam(x_4);
  x_38 = 1;
  x_39 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_38, x_36, x_37, x_2);
  lean_dec(x_15);
  x_40 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_40, 0, x_5);
  lean_ctor_set(x_40, 1, x_3);
  lean_ctor_set(x_40, 2, x_4);
  lean_ctor_set_uint64(x_40, sizeof(void*)*3, x_39);
  return x_40;
  }
  else
  {
  uint8_t x_41; uint64_t x_42; lean_object* x_43; 
  x_41 = 1;
  x_42 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_41, x_36, x_41, x_2);
  lean_dec(x_15);
  x_43 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_43, 0, x_5);
  lean_ctor_set(x_43, 1, x_3);
  lean_ctor_set(x_43, 2, x_4);
  lean_ctor_set_uint64(x_43, sizeof(void*)*3, x_42);
  return x_43;
  }
  }
  else
  {
  if (x_19 == 0)
  {
  uint8_t x_44; uint8_t x_45; uint64_t x_46; lean_object* x_47; 
  x_44 = l_Lean_Expr_hasLevelParam(x_4);
  x_45 = 1;
  x_46 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_45, x_45, x_44, x_2);
  lean_dec(x_15);
  x_47 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_47, 0, x_5);
  lean_ctor_set(x_47, 1, x_3);
  lean_ctor_set(x_47, 2, x_4);
  lean_ctor_set_uint64(x_47, sizeof(void*)*3, x_46);
  return x_47;
  }
  else
  {
  uint8_t x_48; uint64_t x_49; lean_object* x_50; 
  x_48 = 1;
  x_49 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_20, x_48, x_48, x_48, x_2);
  lean_dec(x_15);
  x_50 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_50, 0, x_5);
  lean_ctor_set(x_50, 1, x_3);
  lean_ctor_set(x_50, 2, x_4);
  lean_ctor_set_uint64(x_50, sizeof(void*)*3, x_49);
  return x_50;
  }
  }
  }
  }
  else
  {
  if (x_17 == 0)
  {
  uint8_t x_51; 
  x_51 = l_Lean_Expr_hasExprMVar(x_4);
  if (x_18 == 0)
  {
  uint8_t x_52; 
  x_52 = l_Lean_Expr_hasLevelMVar(x_4);
  if (x_19 == 0)
  {
  uint8_t x_53; uint8_t x_54; uint64_t x_55; lean_object* x_56; 
  x_53 = l_Lean_Expr_hasLevelParam(x_4);
  x_54 = 1;
  x_55 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_54, x_51, x_52, x_53, x_2);
  lean_dec(x_15);
  x_56 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_56, 0, x_5);
  lean_ctor_set(x_56, 1, x_3);
  lean_ctor_set(x_56, 2, x_4);
  lean_ctor_set_uint64(x_56, sizeof(void*)*3, x_55);
  return x_56;
  }
  else
  {
  uint8_t x_57; uint64_t x_58; lean_object* x_59; 
  x_57 = 1;
  x_58 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_57, x_51, x_52, x_57, x_2);
  lean_dec(x_15);
  x_59 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_59, 0, x_5);
  lean_ctor_set(x_59, 1, x_3);
  lean_ctor_set(x_59, 2, x_4);
  lean_ctor_set_uint64(x_59, sizeof(void*)*3, x_58);
  return x_59;
  }
  }
  else
  {
  if (x_19 == 0)
  {
  uint8_t x_60; uint8_t x_61; uint64_t x_62; lean_object* x_63; 
  x_60 = l_Lean_Expr_hasLevelParam(x_4);
  x_61 = 1;
  x_62 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_61, x_51, x_61, x_60, x_2);
  lean_dec(x_15);
  x_63 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_63, 0, x_5);
  lean_ctor_set(x_63, 1, x_3);
  lean_ctor_set(x_63, 2, x_4);
  lean_ctor_set_uint64(x_63, sizeof(void*)*3, x_62);
  return x_63;
  }
  else
  {
  uint8_t x_64; uint64_t x_65; lean_object* x_66; 
  x_64 = 1;
  x_65 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_64, x_51, x_64, x_64, x_2);
  lean_dec(x_15);
  x_66 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_66, 0, x_5);
  lean_ctor_set(x_66, 1, x_3);
  lean_ctor_set(x_66, 2, x_4);
  lean_ctor_set_uint64(x_66, sizeof(void*)*3, x_65);
  return x_66;
  }
  }
  }
  else
  {
  if (x_18 == 0)
  {
  uint8_t x_67; 
  x_67 = l_Lean_Expr_hasLevelMVar(x_4);
  if (x_19 == 0)
  {
  uint8_t x_68; uint8_t x_69; uint64_t x_70; lean_object* x_71; 
  x_68 = l_Lean_Expr_hasLevelParam(x_4);
  x_69 = 1;
  x_70 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_69, x_69, x_67, x_68, x_2);
  lean_dec(x_15);
  x_71 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_71, 0, x_5);
  lean_ctor_set(x_71, 1, x_3);
  lean_ctor_set(x_71, 2, x_4);
  lean_ctor_set_uint64(x_71, sizeof(void*)*3, x_70);
  return x_71;
  }
  else
  {
  uint8_t x_72; uint64_t x_73; lean_object* x_74; 
  x_72 = 1;
  x_73 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_72, x_72, x_67, x_72, x_2);
  lean_dec(x_15);
  x_74 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_74, 0, x_5);
  lean_ctor_set(x_74, 1, x_3);
  lean_ctor_set(x_74, 2, x_4);
  lean_ctor_set_uint64(x_74, sizeof(void*)*3, x_73);
  return x_74;
  }
  }
  else
  {
  if (x_19 == 0)
  {
  uint8_t x_75; uint8_t x_76; uint64_t x_77; lean_object* x_78; 
  x_75 = l_Lean_Expr_hasLevelParam(x_4);
  x_76 = 1;
  x_77 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_76, x_76, x_76, x_75, x_2);
  lean_dec(x_15);
  x_78 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_78, 0, x_5);
  lean_ctor_set(x_78, 1, x_3);
  lean_ctor_set(x_78, 2, x_4);
  lean_ctor_set_uint64(x_78, sizeof(void*)*3, x_77);
  return x_78;
  }
  else
  {
  uint8_t x_79; uint64_t x_80; lean_object* x_81; 
  x_79 = 1;
  x_80 = l_Lean_Expr_mkDataForBinder(x_10, x_15, x_79, x_79, x_79, x_79, x_2);
  lean_dec(x_15);
  x_81 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_81, 0, x_5);
  lean_ctor_set(x_81, 1, x_3);
  lean_ctor_set(x_81, 2, x_4);
  lean_ctor_set_uint64(x_81, sizeof(void*)*3, x_80);
  return x_81;
  }
  }
  }
  }
  }
  }
  lean_object* l_Lean_mkForall___boxed(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; 
  x_5 = lean_unbox(x_2);
  lean_dec(x_2);
  x_6 = l_Lean_mkForall(x_1, x_5, x_3, x_4);
  lean_dec(x_1);
  return x_6;
  }
  }
  lean_object* l_Lean_mkLet(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5) {
  _start:
  {
  lean_object* x_6; size_t x_7; size_t x_8; size_t x_9; size_t x_10; size_t x_11; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; 
  x_6 = l_Lean_Name_eraseMacroScopes(x_1);
  x_7 = 41;
  x_8 = l_Lean_Expr_hash(x_2);
  x_9 = l_Lean_Expr_hash(x_3);
  x_10 = l_Lean_Expr_hash(x_4);
  x_11 = lean_usize_mix_hash(x_9, x_10);
  x_12 = lean_usize_mix_hash(x_8, x_11);
  x_13 = lean_usize_mix_hash(x_7, x_12);
  x_14 = l_Lean_Expr_looseBVarRange(x_2);
  x_15 = l_Lean_Expr_looseBVarRange(x_3);
  x_16 = l_Nat_max(x_14, x_15);
  lean_dec(x_15);
  lean_dec(x_14);
  x_17 = l_Lean_Expr_looseBVarRange(x_4);
  x_18 = lean_unsigned_to_nat(1u);
  x_19 = lean_nat_sub(x_17, x_18);
  lean_dec(x_17);
  x_20 = l_Nat_max(x_16, x_19);
  lean_dec(x_19);
  lean_dec(x_16);
  x_21 = l_Lean_Expr_hasFVar(x_2);
  x_22 = l_Lean_Expr_hasExprMVar(x_2);
  x_23 = l_Lean_Expr_hasLevelMVar(x_2);
  x_24 = l_Lean_Expr_hasLevelParam(x_2);
  if (x_21 == 0)
  {
  uint8_t x_89; 
  x_89 = l_Lean_Expr_hasFVar(x_3);
  if (x_89 == 0)
  {
  uint8_t x_90; 
  x_90 = l_Lean_Expr_hasFVar(x_4);
  x_25 = x_90;
  goto block_88;
  }
  else
  {
  uint8_t x_91; 
  x_91 = 1;
  x_25 = x_91;
  goto block_88;
  }
  }
  else
  {
  uint8_t x_92; 
  x_92 = 1;
  x_25 = x_92;
  goto block_88;
  }
  block_88:
  {
  uint8_t x_26; 
  if (x_22 == 0)
  {
  uint8_t x_51; 
  x_51 = l_Lean_Expr_hasExprMVar(x_3);
  if (x_51 == 0)
  {
  uint8_t x_52; 
  x_52 = l_Lean_Expr_hasExprMVar(x_4);
  if (x_23 == 0)
  {
  x_26 = x_52;
  goto block_50;
  }
  else
  {
  if (x_24 == 0)
  {
  uint8_t x_53; 
  x_53 = l_Lean_Expr_hasLevelParam(x_3);
  if (x_53 == 0)
  {
  uint8_t x_54; uint8_t x_55; uint64_t x_56; lean_object* x_57; 
  x_54 = l_Lean_Expr_hasLevelParam(x_4);
  x_55 = 1;
  x_56 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_52, x_55, x_54, x_5);
  lean_dec(x_20);
  x_57 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_57, 0, x_6);
  lean_ctor_set(x_57, 1, x_2);
  lean_ctor_set(x_57, 2, x_3);
  lean_ctor_set(x_57, 3, x_4);
  lean_ctor_set_uint64(x_57, sizeof(void*)*4, x_56);
  return x_57;
  }
  else
  {
  uint8_t x_58; uint64_t x_59; lean_object* x_60; 
  x_58 = 1;
  x_59 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_52, x_58, x_58, x_5);
  lean_dec(x_20);
  x_60 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_60, 0, x_6);
  lean_ctor_set(x_60, 1, x_2);
  lean_ctor_set(x_60, 2, x_3);
  lean_ctor_set(x_60, 3, x_4);
  lean_ctor_set_uint64(x_60, sizeof(void*)*4, x_59);
  return x_60;
  }
  }
  else
  {
  uint8_t x_61; uint64_t x_62; lean_object* x_63; 
  x_61 = 1;
  x_62 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_52, x_61, x_61, x_5);
  lean_dec(x_20);
  x_63 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_63, 0, x_6);
  lean_ctor_set(x_63, 1, x_2);
  lean_ctor_set(x_63, 2, x_3);
  lean_ctor_set(x_63, 3, x_4);
  lean_ctor_set_uint64(x_63, sizeof(void*)*4, x_62);
  return x_63;
  }
  }
  }
  else
  {
  if (x_23 == 0)
  {
  uint8_t x_64; 
  x_64 = 1;
  x_26 = x_64;
  goto block_50;
  }
  else
  {
  if (x_24 == 0)
  {
  uint8_t x_65; 
  x_65 = l_Lean_Expr_hasLevelParam(x_3);
  if (x_65 == 0)
  {
  uint8_t x_66; uint8_t x_67; uint64_t x_68; lean_object* x_69; 
  x_66 = l_Lean_Expr_hasLevelParam(x_4);
  x_67 = 1;
  x_68 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_67, x_67, x_66, x_5);
  lean_dec(x_20);
  x_69 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_69, 0, x_6);
  lean_ctor_set(x_69, 1, x_2);
  lean_ctor_set(x_69, 2, x_3);
  lean_ctor_set(x_69, 3, x_4);
  lean_ctor_set_uint64(x_69, sizeof(void*)*4, x_68);
  return x_69;
  }
  else
  {
  uint8_t x_70; uint64_t x_71; lean_object* x_72; 
  x_70 = 1;
  x_71 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_70, x_70, x_70, x_5);
  lean_dec(x_20);
  x_72 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_72, 0, x_6);
  lean_ctor_set(x_72, 1, x_2);
  lean_ctor_set(x_72, 2, x_3);
  lean_ctor_set(x_72, 3, x_4);
  lean_ctor_set_uint64(x_72, sizeof(void*)*4, x_71);
  return x_72;
  }
  }
  else
  {
  uint8_t x_73; uint64_t x_74; lean_object* x_75; 
  x_73 = 1;
  x_74 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_73, x_73, x_73, x_5);
  lean_dec(x_20);
  x_75 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_75, 0, x_6);
  lean_ctor_set(x_75, 1, x_2);
  lean_ctor_set(x_75, 2, x_3);
  lean_ctor_set(x_75, 3, x_4);
  lean_ctor_set_uint64(x_75, sizeof(void*)*4, x_74);
  return x_75;
  }
  }
  }
  }
  else
  {
  if (x_23 == 0)
  {
  uint8_t x_76; 
  x_76 = 1;
  x_26 = x_76;
  goto block_50;
  }
  else
  {
  if (x_24 == 0)
  {
  uint8_t x_77; 
  x_77 = l_Lean_Expr_hasLevelParam(x_3);
  if (x_77 == 0)
  {
  uint8_t x_78; uint8_t x_79; uint64_t x_80; lean_object* x_81; 
  x_78 = l_Lean_Expr_hasLevelParam(x_4);
  x_79 = 1;
  x_80 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_79, x_79, x_78, x_5);
  lean_dec(x_20);
  x_81 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_81, 0, x_6);
  lean_ctor_set(x_81, 1, x_2);
  lean_ctor_set(x_81, 2, x_3);
  lean_ctor_set(x_81, 3, x_4);
  lean_ctor_set_uint64(x_81, sizeof(void*)*4, x_80);
  return x_81;
  }
  else
  {
  uint8_t x_82; uint64_t x_83; lean_object* x_84; 
  x_82 = 1;
  x_83 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_82, x_82, x_82, x_5);
  lean_dec(x_20);
  x_84 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_84, 0, x_6);
  lean_ctor_set(x_84, 1, x_2);
  lean_ctor_set(x_84, 2, x_3);
  lean_ctor_set(x_84, 3, x_4);
  lean_ctor_set_uint64(x_84, sizeof(void*)*4, x_83);
  return x_84;
  }
  }
  else
  {
  uint8_t x_85; uint64_t x_86; lean_object* x_87; 
  x_85 = 1;
  x_86 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_85, x_85, x_85, x_5);
  lean_dec(x_20);
  x_87 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_87, 0, x_6);
  lean_ctor_set(x_87, 1, x_2);
  lean_ctor_set(x_87, 2, x_3);
  lean_ctor_set(x_87, 3, x_4);
  lean_ctor_set_uint64(x_87, sizeof(void*)*4, x_86);
  return x_87;
  }
  }
  }
  block_50:
  {
  uint8_t x_27; 
  x_27 = l_Lean_Expr_hasLevelMVar(x_3);
  if (x_27 == 0)
  {
  uint8_t x_28; 
  x_28 = l_Lean_Expr_hasLevelMVar(x_4);
  if (x_24 == 0)
  {
  uint8_t x_29; 
  x_29 = l_Lean_Expr_hasLevelParam(x_3);
  if (x_29 == 0)
  {
  uint8_t x_30; uint64_t x_31; lean_object* x_32; 
  x_30 = l_Lean_Expr_hasLevelParam(x_4);
  x_31 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_26, x_28, x_30, x_5);
  lean_dec(x_20);
  x_32 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_32, 0, x_6);
  lean_ctor_set(x_32, 1, x_2);
  lean_ctor_set(x_32, 2, x_3);
  lean_ctor_set(x_32, 3, x_4);
  lean_ctor_set_uint64(x_32, sizeof(void*)*4, x_31);
  return x_32;
  }
  else
  {
  uint8_t x_33; uint64_t x_34; lean_object* x_35; 
  x_33 = 1;
  x_34 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_26, x_28, x_33, x_5);
  lean_dec(x_20);
  x_35 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_35, 0, x_6);
  lean_ctor_set(x_35, 1, x_2);
  lean_ctor_set(x_35, 2, x_3);
  lean_ctor_set(x_35, 3, x_4);
  lean_ctor_set_uint64(x_35, sizeof(void*)*4, x_34);
  return x_35;
  }
  }
  else
  {
  uint8_t x_36; uint64_t x_37; lean_object* x_38; 
  x_36 = 1;
  x_37 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_26, x_28, x_36, x_5);
  lean_dec(x_20);
  x_38 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_38, 0, x_6);
  lean_ctor_set(x_38, 1, x_2);
  lean_ctor_set(x_38, 2, x_3);
  lean_ctor_set(x_38, 3, x_4);
  lean_ctor_set_uint64(x_38, sizeof(void*)*4, x_37);
  return x_38;
  }
  }
  else
  {
  if (x_24 == 0)
  {
  uint8_t x_39; 
  x_39 = l_Lean_Expr_hasLevelParam(x_3);
  if (x_39 == 0)
  {
  uint8_t x_40; uint8_t x_41; uint64_t x_42; lean_object* x_43; 
  x_40 = l_Lean_Expr_hasLevelParam(x_4);
  x_41 = 1;
  x_42 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_26, x_41, x_40, x_5);
  lean_dec(x_20);
  x_43 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_43, 0, x_6);
  lean_ctor_set(x_43, 1, x_2);
  lean_ctor_set(x_43, 2, x_3);
  lean_ctor_set(x_43, 3, x_4);
  lean_ctor_set_uint64(x_43, sizeof(void*)*4, x_42);
  return x_43;
  }
  else
  {
  uint8_t x_44; uint64_t x_45; lean_object* x_46; 
  x_44 = 1;
  x_45 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_26, x_44, x_44, x_5);
  lean_dec(x_20);
  x_46 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_46, 0, x_6);
  lean_ctor_set(x_46, 1, x_2);
  lean_ctor_set(x_46, 2, x_3);
  lean_ctor_set(x_46, 3, x_4);
  lean_ctor_set_uint64(x_46, sizeof(void*)*4, x_45);
  return x_46;
  }
  }
  else
  {
  uint8_t x_47; uint64_t x_48; lean_object* x_49; 
  x_47 = 1;
  x_48 = l_Lean_Expr_mkDataForLet(x_13, x_20, x_25, x_26, x_47, x_47, x_5);
  lean_dec(x_20);
  x_49 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_49, 0, x_6);
  lean_ctor_set(x_49, 1, x_2);
  lean_ctor_set(x_49, 2, x_3);
  lean_ctor_set(x_49, 3, x_4);
  lean_ctor_set_uint64(x_49, sizeof(void*)*4, x_48);
  return x_49;
  }
  }
  }
  }
  }
  }
  lean_object* l_Lean_mkLet___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_5);
  lean_dec(x_5);
  x_7 = l_Lean_mkLet(x_1, x_2, x_3, x_4, x_6);
  lean_dec(x_1);
  return x_7;
  }
  }
  lean_object* l_Lean_mkLocal(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4) {
  _start:
  {
  size_t x_5; size_t x_6; size_t x_7; lean_object* x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; uint64_t x_13; lean_object* x_14; 
  x_5 = 43;
  x_6 = l_Lean_Expr_hash(x_3);
  x_7 = lean_usize_mix_hash(x_5, x_6);
  x_8 = l_Lean_Expr_looseBVarRange(x_3);
  x_9 = l_Lean_Expr_hasExprMVar(x_3);
  x_10 = l_Lean_Expr_hasLevelMVar(x_3);
  x_11 = l_Lean_Expr_hasLevelParam(x_3);
  x_12 = 1;
  x_13 = l_Lean_Expr_mkDataForBinder(x_7, x_8, x_12, x_9, x_10, x_11, x_4);
  lean_dec(x_8);
  x_14 = lean_alloc_ctor(12, 3, 8);
  lean_ctor_set(x_14, 0, x_1);
  lean_ctor_set(x_14, 1, x_2);
  lean_ctor_set(x_14, 2, x_3);
  lean_ctor_set_uint64(x_14, sizeof(void*)*3, x_13);
  return x_14;
  }
  }
  lean_object* l_Lean_mkLocal___boxed(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; 
  x_5 = lean_unbox(x_4);
  lean_dec(x_4);
  x_6 = l_Lean_mkLocal(x_1, x_2, x_3, x_5);
  return x_6;
  }
  }
  lean_object* lean_expr_mk_bvar(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_mkBVar(x_1);
  return x_2;
  }
  }
  lean_object* lean_expr_mk_fvar(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_mkFVar(x_1);
  return x_2;
  }
  }
  lean_object* lean_expr_mk_mvar(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_mkMVar(x_1);
  return x_2;
  }
  }
  lean_object* lean_expr_mk_sort(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_mkSort(x_1);
  return x_2;
  }
  }
  lean_object* lean_expr_mk_const(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_mkConst(x_1, x_2);
  return x_3;
  }
  }
  lean_object* lean_expr_mk_app(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_mkApp(x_1, x_2);
  return x_3;
  }
  }
  lean_object* lean_expr_mk_lambda(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l_Lean_mkLambda(x_1, x_4, x_2, x_3);
  lean_dec(x_1);
  return x_5;
  }
  }
  lean_object* l_Lean_mkLambdaEx___boxed(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; 
  x_5 = lean_unbox(x_4);
  lean_dec(x_4);
  x_6 = lean_expr_mk_lambda(x_1, x_2, x_3, x_5);
  return x_6;
  }
  }
  lean_object* lean_expr_mk_forall(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l_Lean_mkForall(x_1, x_4, x_2, x_3);
  lean_dec(x_1);
  return x_5;
  }
  }
  lean_object* l_Lean_mkForallEx___boxed(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; 
  x_5 = lean_unbox(x_4);
  lean_dec(x_4);
  x_6 = lean_expr_mk_forall(x_1, x_2, x_3, x_5);
  return x_6;
  }
  }
  lean_object* lean_expr_mk_let(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; 
  x_5 = 0;
  x_6 = l_Lean_mkLet(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_1);
  return x_6;
  }
  }
  lean_object* lean_expr_mk_lit(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_mkLit(x_1);
  return x_2;
  }
  }
  lean_object* lean_expr_mk_mdata(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_mkMData(x_1, x_2);
  return x_3;
  }
  }
  lean_object* lean_expr_mk_proj(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_mkProj(x_1, x_2, x_3);
  return x_4;
  }
  }
  lean_object* lean_expr_mk_local(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l_Lean_mkLocal(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_mkLocalEx___boxed(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; 
  x_5 = lean_unbox(x_4);
  lean_dec(x_4);
  x_6 = lean_expr_mk_local(x_1, x_2, x_3, x_5);
  return x_6;
  }
  }
  lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; uint8_t x_6; 
  x_5 = lean_array_get_size(x_2);
  x_6 = lean_nat_dec_lt(x_3, x_5);
  lean_dec(x_5);
  if (x_6 == 0)
  {
  lean_dec(x_3);
  return x_4;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  x_7 = lean_array_fget(x_2, x_3);
  x_8 = l_Lean_mkApp(x_4, x_7);
  x_9 = lean_unsigned_to_nat(1u);
  x_10 = lean_nat_add(x_3, x_9);
  lean_dec(x_3);
  x_3 = x_10;
  x_4 = x_8;
  goto _start;
  }
  }
  }
  lean_object* l_Lean_mkAppN(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; 
  x_3 = lean_unsigned_to_nat(0u);
  x_4 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_2, x_2, x_3, x_1);
  return x_4;
  }
  }
  lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1, x_2, x_3, x_4);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_5;
  }
  }
  lean_object* l_Lean_mkAppN___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_mkAppN(x_1, x_2);
  lean_dec(x_2);
  return x_3;
  }
  }
  lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  uint8_t x_5; 
  x_5 = lean_nat_dec_lt(x_3, x_1);
  if (x_5 == 0)
  {
  lean_dec(x_3);
  return x_4;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  x_6 = lean_unsigned_to_nat(1u);
  x_7 = lean_nat_add(x_3, x_6);
  x_8 = l_Lean_Expr_Inhabited;
  x_9 = lean_array_get(x_8, x_2, x_3);
  lean_dec(x_3);
  x_10 = l_Lean_mkApp(x_4, x_9);
  x_3 = x_7;
  x_4 = x_10;
  goto _start;
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___main___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___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_1, x_2, x_3, x_4);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_5;
  }
  }
  lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l___private_Init_Lean_Expr_2__mkAppRangeAux___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___private_Init_Lean_Expr_2__mkAppRangeAux(x_1, x_2, x_3, x_4);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_5;
  }
  }
  lean_object* l_Lean_mkAppRange(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_3, x_4, x_2, x_1);
  return x_5;
  }
  }
  lean_object* l_Lean_mkAppRange___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_mkAppRange(x_1, x_2, x_3, x_4);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_5;
  }
  }
  lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_mkAppRev___spec__1(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_eq(x_3, x_6);
  if (x_7 == 0)
  {
  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 = lean_nat_sub(x_3, x_8);
  lean_dec(x_3);
  x_10 = lean_array_fget(x_2, x_9);
  x_11 = l_Lean_mkApp(x_5, x_10);
  x_3 = x_9;
  x_4 = lean_box(0);
  x_5 = x_11;
  goto _start;
  }
  else
  {
  lean_dec(x_3);
  return x_5;
  }
  }
  }
  lean_object* l_Lean_mkAppRev(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; 
  x_3 = lean_array_get_size(x_2);
  x_4 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_mkAppRev___spec__1(x_2, x_2, x_3, lean_box(0), x_1);
  return x_4;
  }
  }
  lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_mkAppRev___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  lean_object* x_6; 
  x_6 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_mkAppRev___spec__1(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_6;
  }
  }
  lean_object* l_Lean_mkAppRev___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_mkAppRev(x_1, x_2);
  lean_dec(x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_dbgToString___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_expr_dbg_to_string(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_quickLt___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; lean_object* x_4; 
  x_3 = lean_expr_quick_lt(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_lt___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; lean_object* x_4; 
  x_3 = lean_expr_lt(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_eqv___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; lean_object* x_4; 
  x_3 = lean_expr_eqv(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  lean_object* _init_l_Lean_Expr_HasBeq___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Expr_eqv___boxed), 2, 0);
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_HasBeq() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Expr_HasBeq___closed__1;
  return x_1;
  }
  }
  lean_object* l_Lean_Expr_equal___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; lean_object* x_4; 
  x_3 = lean_expr_equal(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  uint8_t l_Lean_Expr_isSort(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 3)
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  else
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_isSort___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isSort(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isBVar(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  else
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_isBVar___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isBVar(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isMVar(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 2)
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  else
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_isMVar___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isMVar(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isFVar(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 1)
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  else
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_isFVar___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isFVar(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isApp(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 5)
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  else
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_isApp___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isApp(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isProj(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 11)
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  else
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_isProj___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isProj(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isConst(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 4)
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  else
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_isConst___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isConst(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isConstOf(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 4)
  {
  lean_object* x_3; uint8_t x_4; 
  x_3 = lean_ctor_get(x_1, 0);
  x_4 = lean_name_eq(x_3, x_2);
  return x_4;
  }
  else
  {
  uint8_t x_5; 
  x_5 = 0;
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Expr_isConstOf___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; lean_object* x_4; 
  x_3 = l_Lean_Expr_isConstOf(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  uint8_t l_Lean_Expr_isForall(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 7)
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  else
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_isForall___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isForall(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isLambda(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 6)
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  else
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_isLambda___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isLambda(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isBinding(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 6:
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  case 7:
  {
  uint8_t x_3; 
  x_3 = 1;
  return x_3;
  }
  default: 
  {
  uint8_t x_4; 
  x_4 = 0;
  return x_4;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_isBinding___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isBinding(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isLet(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 8)
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  else
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_isLet___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isLet(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isMData(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 10)
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  else
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_isMData___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isMData(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isLit(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 9)
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  else
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_isLit___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isLit(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isNatLit(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 9)
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 0);
  if (lean_obj_tag(x_2) == 0)
  {
  uint8_t x_3; 
  x_3 = 1;
  return x_3;
  }
  else
  {
  uint8_t x_4; 
  x_4 = 0;
  return x_4;
  }
  }
  else
  {
  uint8_t x_5; 
  x_5 = 0;
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Expr_isNatLit___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isNatLit(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isStringLit(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 9)
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 0);
  if (lean_obj_tag(x_2) == 0)
  {
  uint8_t x_3; 
  x_3 = 0;
  return x_3;
  }
  else
  {
  uint8_t x_4; 
  x_4 = 1;
  return x_4;
  }
  }
  else
  {
  uint8_t x_5; 
  x_5 = 0;
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Expr_isStringLit___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isStringLit(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_getAppFn___main(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 5)
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 0);
  x_1 = x_2;
  goto _start;
  }
  else
  {
  lean_inc(x_1);
  return x_1;
  }
  }
  }
  lean_object* l_Lean_Expr_getAppFn___main___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_getAppFn___main(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_getAppFn(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_getAppFn___main(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_getAppFn___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_getAppFn(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 5)
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = lean_ctor_get(x_1, 0);
  x_4 = lean_unsigned_to_nat(1u);
  x_5 = lean_nat_add(x_2, x_4);
  lean_dec(x_2);
  x_1 = x_3;
  x_2 = x_5;
  goto _start;
  }
  else
  {
  return x_2;
  }
  }
  }
  lean_object* l_Lean_Expr_getAppNumArgsAux___main___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_getAppNumArgsAux___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Expr_getAppNumArgsAux(x_1, x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_getAppNumArgs(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = lean_unsigned_to_nat(0u);
  x_3 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_getAppNumArgs___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_getAppNumArgs(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 5)
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  x_4 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  x_5 = lean_ctor_get(x_1, 1);
  lean_inc(x_5);
  lean_dec(x_1);
  x_6 = lean_array_set(x_2, x_3, x_5);
  x_7 = lean_unsigned_to_nat(1u);
  x_8 = lean_nat_sub(x_3, x_7);
  lean_dec(x_3);
  x_1 = x_4;
  x_2 = x_6;
  x_3 = x_8;
  goto _start;
  }
  else
  {
  lean_dec(x_3);
  lean_dec(x_1);
  return x_2;
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_1, x_2, x_3);
  return x_4;
  }
  }
  lean_object* _init_l_Lean_Expr_getAppArgs___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_levelZero;
  x_2 = l_Lean_mkSort(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_getAppArgs(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; lean_object* x_7; lean_object* x_8; 
  x_2 = lean_unsigned_to_nat(0u);
  x_3 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_2);
  x_4 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_3);
  x_5 = lean_mk_array(x_3, x_4);
  x_6 = lean_unsigned_to_nat(1u);
  x_7 = lean_nat_sub(x_3, x_6);
  lean_dec(x_3);
  x_8 = l___private_Init_Lean_Expr_3__getAppArgsAux___main(x_1, x_5, x_7);
  return x_8;
  }
  }
  lean_object* l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 5)
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = lean_ctor_get(x_1, 0);
  lean_inc(x_3);
  x_4 = lean_ctor_get(x_1, 1);
  lean_inc(x_4);
  lean_dec(x_1);
  x_5 = lean_array_push(x_2, x_4);
  x_1 = x_3;
  x_2 = x_5;
  goto _start;
  }
  else
  {
  lean_dec(x_1);
  return x_2;
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_4__getAppRevArgsAux(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_getAppRevArgs(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_2 = lean_unsigned_to_nat(0u);
  x_3 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_2);
  x_4 = lean_mk_empty_array_with_capacity(x_3);
  lean_dec(x_3);
  x_5 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_1, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_withAppAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  if (lean_obj_tag(x_2) == 5)
  {
  lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_5 = lean_ctor_get(x_2, 0);
  lean_inc(x_5);
  x_6 = lean_ctor_get(x_2, 1);
  lean_inc(x_6);
  lean_dec(x_2);
  x_7 = lean_array_set(x_3, x_4, x_6);
  x_8 = lean_unsigned_to_nat(1u);
  x_9 = lean_nat_sub(x_4, x_8);
  lean_dec(x_4);
  x_2 = x_5;
  x_3 = x_7;
  x_4 = x_9;
  goto _start;
  }
  else
  {
  lean_object* x_11; 
  lean_dec(x_4);
  x_11 = lean_apply_2(x_1, x_2, x_3);
  return x_11;
  }
  }
  }
  lean_object* l_Lean_Expr_withAppAux___main(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___rarg), 4, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_withAppAux___rarg(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_Expr_withAppAux___main___rarg(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_withAppAux(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___rarg), 4, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_withApp___rarg(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; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_3 = lean_unsigned_to_nat(0u);
  x_4 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_3);
  x_5 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_4);
  x_6 = lean_mk_array(x_4, x_5);
  x_7 = lean_unsigned_to_nat(1u);
  x_8 = lean_nat_sub(x_4, x_7);
  lean_dec(x_4);
  x_9 = l_Lean_Expr_withAppAux___main___rarg(x_2, x_1, x_6, x_8);
  return x_9;
  }
  }
  lean_object* l_Lean_Expr_withApp(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Expr_withApp___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main___rarg(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; 
  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 = lean_array_push(x_3, x_5);
  x_2 = x_4;
  x_3 = x_6;
  goto _start;
  }
  else
  {
  lean_object* x_8; 
  x_8 = lean_apply_2(x_1, x_2, x_3);
  return x_8;
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___main(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Expr_5__withAppRevAux___main___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l___private_Init_Lean_Expr_5__withAppRevAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l___private_Init_Lean_Expr_5__withAppRevAux___main___rarg(x_1, x_2, x_3);
  return x_4;
  }
  }
  lean_object* l___private_Init_Lean_Expr_5__withAppRevAux(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Init_Lean_Expr_5__withAppRevAux___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_withAppRev___rarg(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_unsigned_to_nat(0u);
  x_4 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_3);
  x_5 = lean_mk_empty_array_with_capacity(x_4);
  lean_dec(x_4);
  x_6 = l___private_Init_Lean_Expr_5__withAppRevAux___main___rarg(x_2, x_1, x_5);
  return x_6;
  }
  }
  lean_object* l_Lean_Expr_withAppRev(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Expr_withAppRev___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_getRevArgD___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 5)
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; 
  x_4 = lean_ctor_get(x_1, 0);
  x_5 = lean_ctor_get(x_1, 1);
  x_6 = lean_unsigned_to_nat(0u);
  x_7 = lean_nat_dec_eq(x_2, x_6);
  if (x_7 == 0)
  {
  lean_object* x_8; lean_object* x_9; 
  x_8 = lean_unsigned_to_nat(1u);
  x_9 = lean_nat_sub(x_2, x_8);
  lean_dec(x_2);
  x_1 = x_4;
  x_2 = x_9;
  goto _start;
  }
  else
  {
  lean_dec(x_2);
  lean_inc(x_5);
  return x_5;
  }
  }
  else
  {
  lean_dec(x_2);
  lean_inc(x_3);
  return x_3;
  }
  }
  }
  lean_object* l_Lean_Expr_getRevArgD___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Expr_getRevArgD___main(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_getRevArgD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Expr_getRevArgD___main(x_1, x_2, x_3);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_getRevArgD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Expr_getRevArgD(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* _init_l_Lean_Expr_getRevArg_x21___main___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(494u);
  x_3 = lean_unsigned_to_nat(20u);
  x_4 = l_List_get_x21___main___rarg___closed__2;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_getRevArg_x21___main(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 5)
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; 
  x_3 = lean_ctor_get(x_1, 0);
  x_4 = lean_ctor_get(x_1, 1);
  x_5 = lean_unsigned_to_nat(0u);
  x_6 = lean_nat_dec_eq(x_2, x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; 
  x_7 = lean_unsigned_to_nat(1u);
  x_8 = lean_nat_sub(x_2, x_7);
  lean_dec(x_2);
  x_1 = x_3;
  x_2 = x_8;
  goto _start;
  }
  else
  {
  lean_dec(x_2);
  lean_inc(x_4);
  return x_4;
  }
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  lean_dec(x_2);
  x_10 = l_Lean_Expr_Inhabited;
  x_11 = l_Lean_Expr_getRevArg_x21___main___closed__1;
  x_12 = lean_panic_fn(x_10, x_11);
  return x_12;
  }
  }
  }
  lean_object* l_Lean_Expr_getRevArg_x21___main___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Expr_getRevArg_x21___main(x_1, x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_getRevArg_x21(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Expr_getRevArg_x21___main(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_getRevArg_x21___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Expr_getRevArg_x21(x_1, x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_getArg_x21(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; 
  x_4 = lean_nat_sub(x_3, x_2);
  x_5 = lean_unsigned_to_nat(1u);
  x_6 = lean_nat_sub(x_4, x_5);
  lean_dec(x_4);
  x_7 = l_Lean_Expr_getRevArg_x21___main(x_1, x_6);
  return x_7;
  }
  }
  lean_object* l_Lean_Expr_getArg_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Expr_getArg_x21(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_getArgD(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  x_5 = lean_nat_sub(x_4, x_2);
  x_6 = lean_unsigned_to_nat(1u);
  x_7 = lean_nat_sub(x_5, x_6);
  lean_dec(x_5);
  x_8 = l_Lean_Expr_getRevArgD___main(x_1, x_7, x_3);
  return x_8;
  }
  }
  lean_object* l_Lean_Expr_getArgD___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_Expr_getArgD(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;
  }
  }
  uint8_t l_Lean_Expr_isAppOf(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Expr_getAppFn___main(x_1);
  if (lean_obj_tag(x_3) == 4)
  {
  lean_object* x_4; uint8_t x_5; 
  x_4 = lean_ctor_get(x_3, 0);
  lean_inc(x_4);
  lean_dec(x_3);
  x_5 = lean_name_eq(x_4, x_2);
  lean_dec(x_4);
  return x_5;
  }
  else
  {
  uint8_t x_6; 
  lean_dec(x_3);
  x_6 = 0;
  return x_6;
  }
  }
  }
  lean_object* l_Lean_Expr_isAppOf___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; lean_object* x_4; 
  x_3 = l_Lean_Expr_isAppOf(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  uint8_t l_Lean_Expr_isAppOfArity___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  lean_object* x_4; lean_object* x_5; uint8_t x_6; 
  x_4 = lean_ctor_get(x_1, 0);
  x_5 = lean_unsigned_to_nat(0u);
  x_6 = lean_nat_dec_eq(x_3, x_5);
  lean_dec(x_3);
  if (x_6 == 0)
  {
  uint8_t x_7; 
  x_7 = 0;
  return x_7;
  }
  else
  {
  uint8_t x_8; 
  x_8 = lean_name_eq(x_4, x_2);
  return x_8;
  }
  }
  case 5:
  {
  lean_object* x_9; lean_object* x_10; uint8_t x_11; 
  x_9 = lean_ctor_get(x_1, 0);
  x_10 = lean_unsigned_to_nat(0u);
  x_11 = lean_nat_dec_eq(x_3, x_10);
  if (x_11 == 0)
  {
  lean_object* x_12; lean_object* x_13; 
  x_12 = lean_unsigned_to_nat(1u);
  x_13 = lean_nat_sub(x_3, x_12);
  lean_dec(x_3);
  x_1 = x_9;
  x_3 = x_13;
  goto _start;
  }
  else
  {
  uint8_t x_15; 
  lean_dec(x_3);
  x_15 = 0;
  return x_15;
  }
  }
  default: 
  {
  uint8_t x_16; 
  lean_dec(x_3);
  x_16 = 0;
  return x_16;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_isAppOfArity___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  uint8_t x_4; lean_object* x_5; 
  x_4 = l_Lean_Expr_isAppOfArity___main(x_1, x_2, x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_5 = lean_box(x_4);
  return x_5;
  }
  }
  uint8_t l_Lean_Expr_isAppOfArity(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  uint8_t x_4; 
  x_4 = l_Lean_Expr_isAppOfArity___main(x_1, x_2, x_3);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_isAppOfArity___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  uint8_t x_4; lean_object* x_5; 
  x_4 = l_Lean_Expr_isAppOfArity(x_1, x_2, x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_5 = lean_box(x_4);
  return x_5;
  }
  }
  lean_object* _init_l_Lean_Expr_appFn_x21___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("application expected");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_appFn_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(514u);
  x_3 = lean_unsigned_to_nat(15u);
  x_4 = l_Lean_Expr_appFn_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_appFn_x21(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 5)
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 0);
  lean_inc(x_2);
  return x_2;
  }
  else
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = l_Lean_Expr_Inhabited;
  x_4 = l_Lean_Expr_appFn_x21___closed__2;
  x_5 = lean_panic_fn(x_3, x_4);
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Expr_appFn_x21___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_appFn_x21(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* _init_l_Lean_Expr_appArg_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(518u);
  x_3 = lean_unsigned_to_nat(15u);
  x_4 = l_Lean_Expr_appFn_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_appArg_x21(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 5)
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 1);
  lean_inc(x_2);
  return x_2;
  }
  else
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = l_Lean_Expr_Inhabited;
  x_4 = l_Lean_Expr_appArg_x21___closed__1;
  x_5 = lean_panic_fn(x_3, x_4);
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Expr_appArg_x21___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_appArg_x21(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* _init_l_Lean_Expr_constName_x21___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("constant expected");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_constName_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(522u);
  x_3 = lean_unsigned_to_nat(17u);
  x_4 = l_Lean_Expr_constName_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_constName_x21(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 4)
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 0);
  lean_inc(x_2);
  return x_2;
  }
  else
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = l_Lean_Name_inhabited;
  x_4 = l_Lean_Expr_constName_x21___closed__2;
  x_5 = lean_panic_fn(x_3, x_4);
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Expr_constName_x21___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_constName_x21(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* _init_l_Lean_Expr_constLevels_x21___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_List_Monad;
  x_2 = l_Lean_Level_Inhabited;
  x_3 = l_monadInhabited___rarg(x_1, x_2);
  return x_3;
  }
  }
  lean_object* _init_l_Lean_Expr_constLevels_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(526u);
  x_3 = lean_unsigned_to_nat(18u);
  x_4 = l_Lean_Expr_constName_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_constLevels_x21(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 4)
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 1);
  lean_inc(x_2);
  return x_2;
  }
  else
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = l_Lean_Expr_constLevels_x21___closed__1;
  x_4 = l_Lean_Expr_constLevels_x21___closed__2;
  x_5 = lean_panic_fn(x_3, x_4);
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Expr_constLevels_x21___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_constLevels_x21(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* _init_l_Lean_Expr_bvarIdx_x21___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("bvar expected");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_bvarIdx_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(530u);
  x_3 = lean_unsigned_to_nat(16u);
  x_4 = l_Lean_Expr_bvarIdx_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_bvarIdx_x21(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 0);
  lean_inc(x_2);
  return x_2;
  }
  else
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = l_Nat_Inhabited;
  x_4 = l_Lean_Expr_bvarIdx_x21___closed__2;
  x_5 = lean_panic_fn(x_3, x_4);
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Expr_bvarIdx_x21___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_bvarIdx_x21(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* _init_l_Lean_Expr_fvarId_x21___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("fvar expected");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_fvarId_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(534u);
  x_3 = lean_unsigned_to_nat(14u);
  x_4 = l_Lean_Expr_fvarId_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_fvarId_x21(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 1)
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 0);
  lean_inc(x_2);
  return x_2;
  }
  else
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = l_Lean_Name_inhabited;
  x_4 = l_Lean_Expr_fvarId_x21___closed__2;
  x_5 = lean_panic_fn(x_3, x_4);
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Expr_fvarId_x21___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_fvarId_x21(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* _init_l_Lean_Expr_mvarId_x21___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("mvar expected");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_mvarId_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(538u);
  x_3 = lean_unsigned_to_nat(14u);
  x_4 = l_Lean_Expr_mvarId_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_mvarId_x21(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 2)
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 0);
  lean_inc(x_2);
  return x_2;
  }
  else
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = l_Lean_Name_inhabited;
  x_4 = l_Lean_Expr_mvarId_x21___closed__2;
  x_5 = lean_panic_fn(x_3, x_4);
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Expr_mvarId_x21___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_mvarId_x21(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* _init_l_Lean_Expr_bindingName_x21___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("binding expected");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_bindingName_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(543u);
  x_3 = lean_unsigned_to_nat(21u);
  x_4 = l_Lean_Expr_bindingName_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_bindingName_x21(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 6:
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 0);
  lean_inc(x_2);
  return x_2;
  }
  case 7:
  {
  lean_object* x_3; 
  x_3 = lean_ctor_get(x_1, 0);
  lean_inc(x_3);
  return x_3;
  }
  default: 
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_4 = l_Lean_Name_inhabited;
  x_5 = l_Lean_Expr_bindingName_x21___closed__2;
  x_6 = lean_panic_fn(x_4, x_5);
  return x_6;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_bindingName_x21___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_bindingName_x21(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* _init_l_Lean_Expr_bindingDomain_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(548u);
  x_3 = lean_unsigned_to_nat(21u);
  x_4 = l_Lean_Expr_bindingName_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_bindingDomain_x21(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 6:
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 1);
  lean_inc(x_2);
  return x_2;
  }
  case 7:
  {
  lean_object* x_3; 
  x_3 = lean_ctor_get(x_1, 1);
  lean_inc(x_3);
  return x_3;
  }
  default: 
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_4 = l_Lean_Expr_Inhabited;
  x_5 = l_Lean_Expr_bindingDomain_x21___closed__1;
  x_6 = lean_panic_fn(x_4, x_5);
  return x_6;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_bindingDomain_x21___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_bindingDomain_x21(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* _init_l_Lean_Expr_bindingBody_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(553u);
  x_3 = lean_unsigned_to_nat(21u);
  x_4 = l_Lean_Expr_bindingName_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_bindingBody_x21(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 6:
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 2);
  lean_inc(x_2);
  return x_2;
  }
  case 7:
  {
  lean_object* x_3; 
  x_3 = lean_ctor_get(x_1, 2);
  lean_inc(x_3);
  return x_3;
  }
  default: 
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_4 = l_Lean_Expr_Inhabited;
  x_5 = l_Lean_Expr_bindingBody_x21___closed__1;
  x_6 = lean_panic_fn(x_4, x_5);
  return x_6;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_bindingBody_x21___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_bindingBody_x21(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* _init_l_Lean_Expr_letName_x21___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("let expression expected");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_letName_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(557u);
  x_3 = lean_unsigned_to_nat(20u);
  x_4 = l_Lean_Expr_letName_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_letName_x21(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 8)
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 0);
  lean_inc(x_2);
  return x_2;
  }
  else
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = l_Lean_Name_inhabited;
  x_4 = l_Lean_Expr_letName_x21___closed__2;
  x_5 = lean_panic_fn(x_3, x_4);
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Expr_letName_x21___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_letName_x21(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_consumeMData___main(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 10)
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 1);
  x_1 = x_2;
  goto _start;
  }
  else
  {
  lean_inc(x_1);
  return x_1;
  }
  }
  }
  lean_object* l_Lean_Expr_consumeMData___main___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_consumeMData___main(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_consumeMData(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_consumeMData___main(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_consumeMData___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_consumeMData(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  uint8_t l_Lean_Expr_hasLooseBVars(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; uint8_t x_4; 
  x_2 = l_Lean_Expr_looseBVarRange(x_1);
  x_3 = lean_unsigned_to_nat(0u);
  x_4 = lean_nat_dec_lt(x_3, x_2);
  lean_dec(x_2);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_hasLooseBVars___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_hasLooseBVars(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_hasLooseBVar___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; lean_object* x_4; 
  x_3 = lean_expr_has_loose_bvar(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_lowerLooseBVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_expr_lower_loose_bvars(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_liftLooseBVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_expr_lift_loose_bvars(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_instantiate___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = lean_expr_instantiate(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_instantiate1___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = lean_expr_instantiate1(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_instantiateRev___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = lean_expr_instantiate_rev(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_instantiateRange___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_expr_instantiate_range(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_object* l_Lean_Expr_instantiateRevRange___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_expr_instantiate_rev_range(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_object* l_Lean_Expr_abstract___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = lean_expr_abstract(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_abstractRange___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_expr_abstract_range(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* _init_l_Lean_Expr_HasToString___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Expr_dbgToString___boxed), 1, 0);
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_HasToString() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Expr_HasToString___closed__1;
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_HasRepr() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Expr_HasToString___closed__1;
  return x_1;
  }
  }
  lean_object* l_Lean_mkAppB(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; lean_object* x_5; 
  x_4 = l_Lean_mkApp(x_1, x_2);
  x_5 = l_Lean_mkApp(x_4, x_3);
  return x_5;
  }
  }
  lean_object* l_Lean_mkApp2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_mkAppB(x_1, x_2, x_3);
  return x_4;
  }
  }
  lean_object* l_Lean_mkApp3(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_mkAppB(x_1, x_2, x_3);
  x_6 = l_Lean_mkApp(x_5, x_4);
  return x_6;
  }
  }
  lean_object* l_Lean_mkApp4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  lean_object* x_6; lean_object* x_7; 
  x_6 = l_Lean_mkAppB(x_1, x_2, x_3);
  x_7 = l_Lean_mkAppB(x_6, x_4, x_5);
  return x_7;
  }
  }
  lean_object* l_Lean_mkApp5(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_mkApp4(x_1, x_2, x_3, x_4, x_5);
  x_8 = l_Lean_mkApp(x_7, x_6);
  return x_8;
  }
  }
  lean_object* l_Lean_mkApp6(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; 
  x_8 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5);
  x_9 = l_Lean_mkAppB(x_8, x_6, x_7);
  return x_9;
  }
  }
  lean_object* l_Lean_mkApp7(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 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5);
  x_10 = l_Lean_mkApp3(x_9, x_6, x_7, x_8);
  return x_10;
  }
  }
  lean_object* l_Lean_mkApp8(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_mkApp4(x_1, x_2, x_3, x_4, x_5);
  x_11 = l_Lean_mkApp4(x_10, x_6, x_7, x_8, x_9);
  return x_11;
  }
  }
  lean_object* l_Lean_mkApp9(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; 
  x_11 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5);
  x_12 = l_Lean_mkApp5(x_11, x_6, x_7, x_8, x_9, x_10);
  return x_12;
  }
  }
  lean_object* l_Lean_mkApp10(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 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5);
  x_13 = l_Lean_mkApp6(x_12, x_6, x_7, x_8, x_9, x_10, x_11);
  return x_13;
  }
  }
  lean_object* _init_l_Lean_mkDecIsTrue___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Decidable");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_mkDecIsTrue___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_mkDecIsTrue___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* _init_l_Lean_mkDecIsTrue___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("isTrue");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_mkDecIsTrue___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_mkDecIsTrue___closed__2;
  x_2 = l_Lean_mkDecIsTrue___closed__3;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* _init_l_Lean_mkDecIsTrue___closed__5() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_mkDecIsTrue___closed__4;
  x_3 = l_Lean_mkConst(x_2, x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_mkDecIsTrue(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; 
  x_3 = l_Lean_mkDecIsTrue___closed__5;
  x_4 = l_Lean_mkAppB(x_3, x_1, x_2);
  return x_4;
  }
  }
  lean_object* _init_l_Lean_mkDecIsFalse___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("isFalse");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_mkDecIsFalse___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_mkDecIsTrue___closed__2;
  x_2 = l_Lean_mkDecIsFalse___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* _init_l_Lean_mkDecIsFalse___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_mkDecIsFalse___closed__2;
  x_3 = l_Lean_mkConst(x_2, x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_mkDecIsFalse(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; 
  x_3 = l_Lean_mkDecIsFalse___closed__3;
  x_4 = l_Lean_mkAppB(x_3, x_1, x_2);
  return x_4;
  }
  }
  lean_object* l_Lean_exprToExprStructEq(lean_object* x_1) {
  _start:
  {
  lean_inc(x_1);
  return x_1;
  }
  }
  lean_object* l_Lean_exprToExprStructEq___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_exprToExprStructEq(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  uint8_t l_Lean_ExprStructEq_beq(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; 
  x_3 = lean_expr_equal(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_ExprStructEq_beq___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; lean_object* x_4; 
  x_3 = l_Lean_ExprStructEq_beq(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = lean_box(x_3);
  return x_4;
  }
  }
  size_t l_Lean_ExprStructEq_hash(lean_object* x_1) {
  _start:
  {
  size_t x_2; 
  x_2 = l_Lean_Expr_hash(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_ExprStructEq_hash___boxed(lean_object* x_1) {
  _start:
  {
  size_t x_2; lean_object* x_3; 
  x_2 = l_Lean_ExprStructEq_hash(x_1);
  lean_dec(x_1);
  x_3 = lean_box_usize(x_2);
  return x_3;
  }
  }
  lean_object* _init_l_Lean_ExprStructEq_Inhabited() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Expr_Inhabited___closed__1;
  return x_1;
  }
  }
  lean_object* _init_l_Lean_ExprStructEq_HasBeq___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_ExprStructEq_beq___boxed), 2, 0);
  return x_1;
  }
  }
  lean_object* _init_l_Lean_ExprStructEq_HasBeq() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_ExprStructEq_HasBeq___closed__1;
  return x_1;
  }
  }
  lean_object* _init_l_Lean_ExprStructEq_Hashable___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_ExprStructEq_hash___boxed), 1, 0);
  return x_1;
  }
  }
  lean_object* _init_l_Lean_ExprStructEq_Hashable() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_ExprStructEq_Hashable___closed__1;
  return x_1;
  }
  }
  lean_object* l_Lean_ExprStructEq_HasToString(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_expr_dbg_to_string(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_ExprStructEq_HasToString___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_ExprStructEq_HasToString(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_ExprStructEq_HasRepr(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_expr_dbg_to_string(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_ExprStructEq_HasRepr___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_ExprStructEq_HasRepr(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  uint8_t x_5; 
  x_5 = lean_nat_dec_eq(x_4, x_2);
  if (x_5 == 0)
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  x_6 = lean_unsigned_to_nat(1u);
  x_7 = lean_nat_sub(x_4, x_6);
  lean_dec(x_4);
  x_8 = l_Lean_Expr_Inhabited;
  x_9 = lean_array_get(x_8, x_1, x_7);
  x_10 = l_Lean_mkApp(x_3, x_9);
  x_3 = x_10;
  x_4 = x_7;
  goto _start;
  }
  else
  {
  lean_dec(x_4);
  return x_3;
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main___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___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(x_1, x_2, x_3, x_4);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_5;
  }
  }
  lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l___private_Init_Lean_Expr_6__mkAppRevRangeAux___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___private_Init_Lean_Expr_6__mkAppRevRangeAux(x_1, x_2, x_3, x_4);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_mkAppRevRange(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(x_4, x_2, x_1, x_3);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_mkAppRevRange___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_Expr_mkAppRevRange(x_1, x_2, x_3, x_4);
  lean_dec(x_4);
  lean_dec(x_2);
  return x_5;
  }
  }
  lean_object* l___private_Init_Lean_Expr_7__betaRevAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  switch (lean_obj_tag(x_3)) {
  case 6:
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
  x_11 = lean_ctor_get(x_3, 2);
  x_12 = lean_unsigned_to_nat(1u);
  x_13 = lean_nat_add(x_4, x_12);
  lean_dec(x_4);
  x_14 = lean_nat_dec_lt(x_13, x_2);
  if (x_14 == 0)
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  x_15 = lean_nat_sub(x_2, x_13);
  lean_dec(x_13);
  x_16 = lean_expr_instantiate_range(x_11, x_15, x_2, x_1);
  x_17 = lean_unsigned_to_nat(0u);
  x_18 = l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(x_1, x_17, x_16, x_15);
  return x_18;
  }
  else
  {
  x_3 = x_11;
  x_4 = x_13;
  goto _start;
  }
  }
  case 10:
  {
  lean_object* x_20; 
  x_20 = lean_ctor_get(x_3, 1);
  x_3 = x_20;
  goto _start;
  }
  default: 
  {
  lean_object* x_22; 
  x_22 = lean_box(0);
  x_5 = x_22;
  goto block_10;
  }
  }
  block_10:
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  lean_dec(x_5);
  x_6 = lean_nat_sub(x_2, x_4);
  lean_dec(x_4);
  x_7 = lean_expr_instantiate_range(x_3, x_6, x_2, x_1);
  x_8 = lean_unsigned_to_nat(0u);
  x_9 = l___private_Init_Lean_Expr_6__mkAppRevRangeAux___main(x_1, x_8, x_7, x_6);
  return x_9;
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_7__betaRevAux___main___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___private_Init_Lean_Expr_7__betaRevAux___main(x_1, x_2, x_3, x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_5;
  }
  }
  lean_object* l___private_Init_Lean_Expr_7__betaRevAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l___private_Init_Lean_Expr_7__betaRevAux___main(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l___private_Init_Lean_Expr_7__betaRevAux___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___private_Init_Lean_Expr_7__betaRevAux(x_1, x_2, x_3, x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_betaRev(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; uint8_t x_5; 
  x_3 = lean_array_get_size(x_2);
  x_4 = lean_unsigned_to_nat(0u);
  x_5 = lean_nat_dec_eq(x_3, x_4);
  if (x_5 == 0)
  {
  lean_object* x_6; 
  x_6 = l___private_Init_Lean_Expr_7__betaRevAux___main(x_2, x_3, x_1, x_4);
  lean_dec(x_3);
  return x_6;
  }
  else
  {
  lean_dec(x_3);
  lean_inc(x_1);
  return x_1;
  }
  }
  }
  lean_object* l_Lean_Expr_betaRev___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Expr_betaRev(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isHeadBetaTargetFn___main(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 6:
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  case 10:
  {
  lean_object* x_3; 
  x_3 = lean_ctor_get(x_1, 1);
  x_1 = x_3;
  goto _start;
  }
  default: 
  {
  uint8_t x_5; 
  x_5 = 0;
  return x_5;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_isHeadBetaTargetFn___main___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isHeadBetaTargetFn___main(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isHeadBetaTargetFn(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; 
  x_2 = l_Lean_Expr_isHeadBetaTargetFn___main(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_isHeadBetaTargetFn___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isHeadBetaTargetFn(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_headBeta(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; uint8_t x_3; 
  x_2 = l_Lean_Expr_getAppFn___main(x_1);
  x_3 = l_Lean_Expr_isHeadBetaTargetFn___main(x_2);
  if (x_3 == 0)
  {
  lean_dec(x_2);
  return x_1;
  }
  else
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  x_4 = lean_unsigned_to_nat(0u);
  x_5 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_4);
  x_6 = lean_mk_empty_array_with_capacity(x_5);
  lean_dec(x_5);
  x_7 = l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(x_1, x_6);
  x_8 = l_Lean_Expr_betaRev(x_2, x_7);
  lean_dec(x_7);
  lean_dec(x_2);
  return x_8;
  }
  }
  }
  uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; uint8_t x_3; 
  x_2 = l_Lean_Expr_getAppFn___main(x_1);
  x_3 = l_Lean_Expr_isHeadBetaTargetFn___main(x_2);
  lean_dec(x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_isHeadBetaTarget___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isHeadBetaTarget(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  lean_object* l___private_Init_Lean_Expr_8__etaExpandedBody___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  if (lean_obj_tag(x_1) == 5)
  {
  lean_object* x_9; 
  x_9 = lean_ctor_get(x_1, 1);
  lean_inc(x_9);
  if (lean_obj_tag(x_9) == 0)
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
  x_10 = lean_ctor_get(x_1, 0);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_9, 0);
  lean_inc(x_11);
  lean_dec(x_9);
  x_12 = lean_unsigned_to_nat(0u);
  x_13 = lean_nat_dec_eq(x_2, x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; lean_object* x_15; uint8_t x_16; 
  lean_dec(x_1);
  x_14 = lean_unsigned_to_nat(1u);
  x_15 = lean_nat_sub(x_2, x_14);
  lean_dec(x_2);
  x_16 = lean_nat_dec_eq(x_11, x_3);
  lean_dec(x_11);
  if (x_16 == 0)
  {
  lean_object* x_17; 
  lean_dec(x_15);
  lean_dec(x_10);
  lean_dec(x_3);
  x_17 = lean_box(0);
  return x_17;
  }
  else
  {
  lean_object* x_18; 
  x_18 = lean_nat_add(x_3, x_14);
  lean_dec(x_3);
  x_1 = x_10;
  x_2 = x_15;
  x_3 = x_18;
  goto _start;
  }
  }
  else
  {
  lean_object* x_20; 
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_3);
  lean_dec(x_2);
  x_20 = lean_box(0);
  x_4 = x_20;
  goto block_8;
  }
  }
  else
  {
  lean_object* x_21; uint8_t x_22; 
  lean_dec(x_9);
  lean_dec(x_3);
  x_21 = lean_unsigned_to_nat(0u);
  x_22 = lean_nat_dec_eq(x_2, x_21);
  lean_dec(x_2);
  if (x_22 == 0)
  {
  lean_object* x_23; 
  lean_dec(x_1);
  x_23 = lean_box(0);
  return x_23;
  }
  else
  {
  lean_object* x_24; 
  x_24 = lean_box(0);
  x_4 = x_24;
  goto block_8;
  }
  }
  }
  else
  {
  lean_object* x_25; uint8_t x_26; 
  lean_dec(x_3);
  x_25 = lean_unsigned_to_nat(0u);
  x_26 = lean_nat_dec_eq(x_2, x_25);
  lean_dec(x_2);
  if (x_26 == 0)
  {
  lean_object* x_27; 
  lean_dec(x_1);
  x_27 = lean_box(0);
  return x_27;
  }
  else
  {
  lean_object* x_28; 
  x_28 = lean_box(0);
  x_4 = x_28;
  goto block_8;
  }
  }
  block_8:
  {
  uint8_t x_5; 
  lean_dec(x_4);
  x_5 = l_Lean_Expr_hasLooseBVars(x_1);
  if (x_5 == 0)
  {
  lean_object* x_6; 
  x_6 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_6, 0, x_1);
  return x_6;
  }
  else
  {
  lean_object* x_7; 
  lean_dec(x_1);
  x_7 = lean_box(0);
  return x_7;
  }
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_8__etaExpandedBody(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l___private_Init_Lean_Expr_8__etaExpandedBody___main(x_1, x_2, x_3);
  return x_4;
  }
  }
  lean_object* l___private_Init_Lean_Expr_9__etaExpandedAux___main(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 6)
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = lean_ctor_get(x_1, 2);
  lean_inc(x_3);
  lean_dec(x_1);
  x_4 = lean_unsigned_to_nat(1u);
  x_5 = lean_nat_add(x_2, x_4);
  lean_dec(x_2);
  x_1 = x_3;
  x_2 = x_5;
  goto _start;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; 
  x_7 = lean_unsigned_to_nat(0u);
  x_8 = l___private_Init_Lean_Expr_8__etaExpandedBody___main(x_1, x_2, x_7);
  return x_8;
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_9__etaExpandedAux(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l___private_Init_Lean_Expr_9__etaExpandedAux___main(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_etaExpanded_x3f(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = lean_unsigned_to_nat(0u);
  x_3 = l___private_Init_Lean_Expr_9__etaExpandedAux___main(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_etaExpandedStrict_x3f(lean_object* x_1) {
  _start:
  {
  if (lean_obj_tag(x_1) == 6)
  {
  lean_object* x_2; lean_object* x_3; lean_object* x_4; 
  x_2 = lean_ctor_get(x_1, 2);
  lean_inc(x_2);
  lean_dec(x_1);
  x_3 = lean_unsigned_to_nat(1u);
  x_4 = l___private_Init_Lean_Expr_9__etaExpandedAux___main(x_2, x_3);
  return x_4;
  }
  else
  {
  lean_object* x_5; 
  lean_dec(x_1);
  x_5 = lean_box(0);
  return x_5;
  }
  }
  }
  lean_object* _init_l_Lean_Expr_getOptParamDefault_x3f___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("optParam");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_getOptParamDefault_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_Expr_getOptParamDefault_x3f___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_getOptParamDefault_x3f(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; uint8_t x_4; 
  x_2 = l_Lean_Expr_getOptParamDefault_x3f___closed__2;
  x_3 = lean_unsigned_to_nat(2u);
  x_4 = l_Lean_Expr_isAppOfArity___main(x_1, x_2, x_3);
  if (x_4 == 0)
  {
  lean_object* x_5; 
  x_5 = lean_box(0);
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; 
  x_6 = l_Lean_Expr_appArg_x21(x_1);
  x_7 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_7, 0, x_6);
  return x_7;
  }
  }
  }
  lean_object* l_Lean_Expr_getOptParamDefault_x3f___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_getOptParamDefault_x3f(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* _init_l_Lean_Expr_getAutoParamTactic_x3f___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("autoParam");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_getAutoParamTactic_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_Expr_getAutoParamTactic_x3f___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_getAutoParamTactic_x3f(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; uint8_t x_4; 
  x_2 = l_Lean_Expr_getAutoParamTactic_x3f___closed__2;
  x_3 = lean_unsigned_to_nat(2u);
  x_4 = l_Lean_Expr_isAppOfArity___main(x_1, x_2, x_3);
  if (x_4 == 0)
  {
  lean_object* x_5; 
  x_5 = lean_box(0);
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; 
  x_6 = l_Lean_Expr_appArg_x21(x_1);
  x_7 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_7, 0, x_6);
  return x_7;
  }
  }
  }
  lean_object* l_Lean_Expr_getAutoParamTactic_x3f___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Expr_getAutoParamTactic_x3f(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  uint8_t l_Lean_Expr_isOptParam(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; uint8_t x_4; 
  x_2 = l_Lean_Expr_getOptParamDefault_x3f___closed__2;
  x_3 = lean_unsigned_to_nat(2u);
  x_4 = l_Lean_Expr_isAppOfArity___main(x_1, x_2, x_3);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_isOptParam___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isOptParam(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  uint8_t l_Lean_Expr_isAutoParam(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; uint8_t x_4; 
  x_2 = l_Lean_Expr_getAutoParamTactic_x3f___closed__2;
  x_3 = lean_unsigned_to_nat(2u);
  x_4 = l_Lean_Expr_isAppOfArity___main(x_1, x_2, x_3);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_isAutoParam___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l_Lean_Expr_isAutoParam(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  lean_object* l___private_Init_Lean_Expr_10__hasAnyFVarAux___main(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; 
  x_3 = l_Lean_Expr_hasFVar(x_2);
  if (x_3 == 0)
  {
  uint8_t x_4; lean_object* x_5; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = 0;
  x_5 = lean_box(x_4);
  return x_5;
  }
  else
  {
  switch (lean_obj_tag(x_2)) {
  case 1:
  {
  lean_object* x_6; lean_object* x_7; 
  x_6 = lean_ctor_get(x_2, 0);
  lean_inc(x_6);
  lean_dec(x_2);
  x_7 = lean_apply_1(x_1, x_6);
  return x_7;
  }
  case 5:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
  x_8 = lean_ctor_get(x_2, 0);
  lean_inc(x_8);
  x_9 = lean_ctor_get(x_2, 1);
  lean_inc(x_9);
  lean_dec(x_2);
  lean_inc(x_1);
  x_10 = l___private_Init_Lean_Expr_10__hasAnyFVarAux___main(x_1, x_8);
  x_11 = lean_unbox(x_10);
  lean_dec(x_10);
  if (x_11 == 0)
  {
  x_2 = x_9;
  goto _start;
  }
  else
  {
  uint8_t x_13; lean_object* x_14; 
  lean_dec(x_9);
  lean_dec(x_1);
  x_13 = 1;
  x_14 = lean_box(x_13);
  return x_14;
  }
  }
  case 6:
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
  x_15 = lean_ctor_get(x_2, 1);
  lean_inc(x_15);
  x_16 = lean_ctor_get(x_2, 2);
  lean_inc(x_16);
  lean_dec(x_2);
  lean_inc(x_1);
  x_17 = l___private_Init_Lean_Expr_10__hasAnyFVarAux___main(x_1, x_15);
  x_18 = lean_unbox(x_17);
  lean_dec(x_17);
  if (x_18 == 0)
  {
  x_2 = x_16;
  goto _start;
  }
  else
  {
  uint8_t x_20; lean_object* x_21; 
  lean_dec(x_16);
  lean_dec(x_1);
  x_20 = 1;
  x_21 = lean_box(x_20);
  return x_21;
  }
  }
  case 7:
  {
  lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; 
  x_22 = lean_ctor_get(x_2, 1);
  lean_inc(x_22);
  x_23 = lean_ctor_get(x_2, 2);
  lean_inc(x_23);
  lean_dec(x_2);
  lean_inc(x_1);
  x_24 = l___private_Init_Lean_Expr_10__hasAnyFVarAux___main(x_1, x_22);
  x_25 = lean_unbox(x_24);
  lean_dec(x_24);
  if (x_25 == 0)
  {
  x_2 = x_23;
  goto _start;
  }
  else
  {
  uint8_t x_27; lean_object* x_28; 
  lean_dec(x_23);
  lean_dec(x_1);
  x_27 = 1;
  x_28 = lean_box(x_27);
  return x_28;
  }
  }
  case 8:
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; 
  x_29 = lean_ctor_get(x_2, 1);
  lean_inc(x_29);
  x_30 = lean_ctor_get(x_2, 2);
  lean_inc(x_30);
  x_31 = lean_ctor_get(x_2, 3);
  lean_inc(x_31);
  lean_dec(x_2);
  lean_inc(x_1);
  x_32 = l___private_Init_Lean_Expr_10__hasAnyFVarAux___main(x_1, x_29);
  x_33 = lean_unbox(x_32);
  lean_dec(x_32);
  if (x_33 == 0)
  {
  lean_object* x_34; uint8_t x_35; 
  lean_inc(x_1);
  x_34 = l___private_Init_Lean_Expr_10__hasAnyFVarAux___main(x_1, x_30);
  x_35 = lean_unbox(x_34);
  lean_dec(x_34);
  if (x_35 == 0)
  {
  x_2 = x_31;
  goto _start;
  }
  else
  {
  uint8_t x_37; lean_object* x_38; 
  lean_dec(x_31);
  lean_dec(x_1);
  x_37 = 1;
  x_38 = lean_box(x_37);
  return x_38;
  }
  }
  else
  {
  uint8_t x_39; lean_object* x_40; 
  lean_dec(x_31);
  lean_dec(x_30);
  lean_dec(x_1);
  x_39 = 1;
  x_40 = lean_box(x_39);
  return x_40;
  }
  }
  case 10:
  {
  lean_object* x_41; 
  x_41 = lean_ctor_get(x_2, 1);
  lean_inc(x_41);
  lean_dec(x_2);
  x_2 = x_41;
  goto _start;
  }
  case 11:
  {
  lean_object* x_43; 
  x_43 = lean_ctor_get(x_2, 2);
  lean_inc(x_43);
  lean_dec(x_2);
  x_2 = x_43;
  goto _start;
  }
  case 12:
  {
  uint8_t x_45; lean_object* x_46; lean_object* x_47; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_45 = l_Bool_Inhabited;
  x_46 = lean_box(x_45);
  x_47 = l_unreachable_x21___rarg(x_46);
  return x_47;
  }
  default: 
  {
  uint8_t x_48; lean_object* x_49; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_48 = 0;
  x_49 = lean_box(x_48);
  return x_49;
  }
  }
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_10__hasAnyFVarAux(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l___private_Init_Lean_Expr_10__hasAnyFVarAux___main(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_hasAnyFVar(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l___private_Init_Lean_Expr_10__hasAnyFVarAux___main(x_2, x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_updateApp___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_expr_update_app(x_1, x_2, x_3);
  return x_5;
  }
  }
  lean_object* _init_l_Lean_Expr_updateApp_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(796u);
  x_3 = lean_unsigned_to_nat(18u);
  x_4 = l_Lean_Expr_appFn_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_updateApp_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 5)
  {
  lean_object* x_4; 
  x_4 = lean_expr_update_app(x_1, x_2, x_3);
  return x_4;
  }
  else
  {
  lean_object* x_5; lean_object* x_6; lean_object* x_7; 
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_5 = l_Lean_Expr_Inhabited;
  x_6 = l_Lean_Expr_updateApp_x21___closed__1;
  x_7 = lean_panic_fn(x_5, x_6);
  return x_7;
  }
  }
  }
  lean_object* l_Lean_Expr_updateConst___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_expr_update_const(x_1, x_2);
  return x_4;
  }
  }
  lean_object* _init_l_Lean_Expr_updateConst_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(805u);
  x_3 = lean_unsigned_to_nat(18u);
  x_4 = l_Lean_Expr_constName_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_updateConst_x21(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 4)
  {
  lean_object* x_3; 
  x_3 = lean_expr_update_const(x_1, x_2);
  return x_3;
  }
  else
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = l_Lean_Expr_Inhabited;
  x_5 = l_Lean_Expr_updateConst_x21___closed__1;
  x_6 = lean_panic_fn(x_4, x_5);
  return x_6;
  }
  }
  }
  lean_object* l_Lean_Expr_updateSort___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_expr_update_sort(x_1, x_2);
  return x_4;
  }
  }
  lean_object* _init_l_Lean_Expr_updateSort_x21___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("level expected");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_updateSort_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(814u);
  x_3 = lean_unsigned_to_nat(14u);
  x_4 = l_Lean_Expr_updateSort_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_updateSort_x21(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 3)
  {
  lean_object* x_3; 
  x_3 = lean_expr_update_sort(x_1, x_2);
  return x_3;
  }
  else
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = l_Lean_Expr_Inhabited;
  x_5 = l_Lean_Expr_updateSort_x21___closed__2;
  x_6 = lean_panic_fn(x_4, x_5);
  return x_6;
  }
  }
  }
  lean_object* l_Lean_Expr_updateProj___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_expr_update_proj(x_1, x_2);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_updateMData___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_expr_update_mdata(x_1, x_2);
  return x_4;
  }
  }
  lean_object* _init_l_Lean_Expr_updateMData_x21___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("mdata expected");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_updateMData_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(831u);
  x_3 = lean_unsigned_to_nat(17u);
  x_4 = l_Lean_Expr_updateMData_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_updateMData_x21(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 10)
  {
  lean_object* x_3; 
  x_3 = lean_expr_update_mdata(x_1, x_2);
  return x_3;
  }
  else
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = l_Lean_Expr_Inhabited;
  x_5 = l_Lean_Expr_updateMData_x21___closed__2;
  x_6 = lean_panic_fn(x_4, x_5);
  return x_6;
  }
  }
  }
  lean_object* _init_l_Lean_Expr_updateProj_x21___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("proj expected");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_updateProj_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(836u);
  x_3 = lean_unsigned_to_nat(18u);
  x_4 = l_Lean_Expr_updateProj_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_updateProj_x21(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 11)
  {
  lean_object* x_3; 
  x_3 = lean_expr_update_proj(x_1, x_2);
  return x_3;
  }
  else
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_4 = l_Lean_Expr_Inhabited;
  x_5 = l_Lean_Expr_updateProj_x21___closed__2;
  x_6 = lean_panic_fn(x_4, x_5);
  return x_6;
  }
  }
  }
  lean_object* l_Lean_Expr_updateForall___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 = lean_expr_update_forall(x_1, x_6, x_3, x_4);
  return x_7;
  }
  }
  lean_object* _init_l_Lean_Expr_updateForall_x21___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("forall expected");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_updateForall_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(845u);
  x_3 = lean_unsigned_to_nat(21u);
  x_4 = l_Lean_Expr_updateForall_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_updateForall_x21(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  if (lean_obj_tag(x_1) == 7)
  {
  lean_object* x_5; 
  x_5 = lean_expr_update_forall(x_1, x_2, x_3, x_4);
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_1);
  x_6 = l_Lean_Expr_Inhabited;
  x_7 = l_Lean_Expr_updateForall_x21___closed__2;
  x_8 = lean_panic_fn(x_6, x_7);
  return x_8;
  }
  }
  }
  lean_object* l_Lean_Expr_updateForall_x21___boxed(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; 
  x_5 = lean_unbox(x_2);
  lean_dec(x_2);
  x_6 = l_Lean_Expr_updateForall_x21(x_1, x_5, x_3, x_4);
  return x_6;
  }
  }
  lean_object* _init_l_Lean_Expr_updateForallE_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(850u);
  x_3 = lean_unsigned_to_nat(21u);
  x_4 = l_Lean_Expr_updateForall_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_updateForallE_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 7)
  {
  uint64_t x_4; uint8_t x_5; lean_object* x_6; 
  x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_5 = (uint8_t)((x_4 << 24) >> 61);
  x_6 = lean_expr_update_forall(x_1, x_5, x_2, x_3);
  return x_6;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_7 = l_Lean_Expr_Inhabited;
  x_8 = l_Lean_Expr_updateForallE_x21___closed__1;
  x_9 = lean_panic_fn(x_7, x_8);
  return x_9;
  }
  }
  }
  lean_object* l_Lean_Expr_updateLambda___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 = lean_expr_update_lambda(x_1, x_6, x_3, x_4);
  return x_7;
  }
  }
  lean_object* _init_l_Lean_Expr_updateLambda_x21___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("lambda expected");
  return x_1;
  }
  }
  lean_object* _init_l_Lean_Expr_updateLambda_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(859u);
  x_3 = lean_unsigned_to_nat(17u);
  x_4 = l_Lean_Expr_updateLambda_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_updateLambda_x21(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  if (lean_obj_tag(x_1) == 6)
  {
  lean_object* x_5; 
  x_5 = lean_expr_update_lambda(x_1, x_2, x_3, x_4);
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_1);
  x_6 = l_Lean_Expr_Inhabited;
  x_7 = l_Lean_Expr_updateLambda_x21___closed__2;
  x_8 = lean_panic_fn(x_6, x_7);
  return x_8;
  }
  }
  }
  lean_object* l_Lean_Expr_updateLambda_x21___boxed(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; 
  x_5 = lean_unbox(x_2);
  lean_dec(x_2);
  x_6 = l_Lean_Expr_updateLambda_x21(x_1, x_5, x_3, x_4);
  return x_6;
  }
  }
  lean_object* _init_l_Lean_Expr_updateLambdaE_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(864u);
  x_3 = lean_unsigned_to_nat(17u);
  x_4 = l_Lean_Expr_updateLambda_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_updateLambdaE_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 6)
  {
  uint64_t x_4; uint8_t x_5; lean_object* x_6; 
  x_4 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_5 = (uint8_t)((x_4 << 24) >> 61);
  x_6 = lean_expr_update_lambda(x_1, x_5, x_2, x_3);
  return x_6;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_7 = l_Lean_Expr_Inhabited;
  x_8 = l_Lean_Expr_updateLambdaE_x21___closed__1;
  x_9 = lean_panic_fn(x_7, x_8);
  return x_9;
  }
  }
  }
  lean_object* l_Lean_Expr_updateLet___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 = lean_expr_update_let(x_1, x_2, x_3, x_4);
  return x_6;
  }
  }
  lean_object* _init_l_Lean_Expr_updateLet_x21___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___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1;
  x_2 = lean_unsigned_to_nat(873u);
  x_3 = lean_unsigned_to_nat(20u);
  x_4 = l_Lean_Expr_letName_x21___closed__1;
  x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Expr_updateLet_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  if (lean_obj_tag(x_1) == 8)
  {
  lean_object* x_5; 
  x_5 = lean_expr_update_let(x_1, x_2, x_3, x_4);
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_6 = l_Lean_Expr_Inhabited;
  x_7 = l_Lean_Expr_updateLet_x21___closed__1;
  x_8 = lean_panic_fn(x_6, x_7);
  return x_8;
  }
  }
  }
  lean_object* l_Lean_Expr_updateFn___main(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 5)
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_3 = lean_ctor_get(x_1, 0);
  lean_inc(x_3);
  x_4 = lean_ctor_get(x_1, 1);
  lean_inc(x_4);
  x_5 = l_Lean_Expr_updateFn___main(x_3, x_2);
  x_6 = lean_expr_update_app(x_1, x_5, x_4);
  return x_6;
  }
  else
  {
  lean_dec(x_1);
  lean_inc(x_2);
  return x_2;
  }
  }
  }
  lean_object* l_Lean_Expr_updateFn___main___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Expr_updateFn___main(x_1, x_2);
  lean_dec(x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_updateFn(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Expr_updateFn___main(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_updateFn___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Expr_updateFn(x_1, x_2);
  lean_dec(x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_InstantiateLevelParams_visit(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; 
  x_3 = l_Lean_Expr_hasLevelParam(x_2);
  if (x_3 == 0)
  {
  lean_dec(x_1);
  return x_2;
  }
  else
  {
  lean_object* x_4; 
  x_4 = lean_apply_1(x_1, x_2);
  return x_4;
  }
  }
  }
  lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate___main(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  switch (lean_obj_tag(x_2)) {
  case 3:
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = lean_ctor_get(x_2, 0);
  lean_inc(x_3);
  x_4 = l_Lean_Level_instantiateParams___main(x_1, x_3);
  x_5 = lean_expr_update_sort(x_2, x_4);
  return x_5;
  }
  case 4:
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_6 = lean_ctor_get(x_2, 1);
  lean_inc(x_6);
  x_7 = lean_alloc_closure((void*)(l_Lean_Level_instantiateParams___main), 2, 1);
  lean_closure_set(x_7, 0, x_1);
  x_8 = l_List_map___main___rarg(x_7, x_6);
  x_9 = lean_expr_update_const(x_2, x_8);
  return x_9;
  }
  case 5:
  {
  lean_object* x_10; lean_object* x_11; uint8_t x_12; uint8_t x_13; 
  x_10 = lean_ctor_get(x_2, 0);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_2, 1);
  lean_inc(x_11);
  x_12 = l_Lean_Expr_hasLevelParam(x_10);
  x_13 = l_Lean_Expr_hasLevelParam(x_11);
  if (x_12 == 0)
  {
  if (x_13 == 0)
  {
  lean_object* x_14; 
  lean_dec(x_1);
  x_14 = lean_expr_update_app(x_2, x_10, x_11);
  return x_14;
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  x_15 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_11);
  x_16 = lean_expr_update_app(x_2, x_10, x_15);
  return x_16;
  }
  }
  else
  {
  lean_object* x_17; 
  lean_inc(x_1);
  x_17 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_10);
  if (x_13 == 0)
  {
  lean_object* x_18; 
  lean_dec(x_1);
  x_18 = lean_expr_update_app(x_2, x_17, x_11);
  return x_18;
  }
  else
  {
  lean_object* x_19; lean_object* x_20; 
  x_19 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_11);
  x_20 = lean_expr_update_app(x_2, x_17, x_19);
  return x_20;
  }
  }
  }
  case 6:
  {
  lean_object* x_21; lean_object* x_22; uint64_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; 
  x_21 = lean_ctor_get(x_2, 1);
  lean_inc(x_21);
  x_22 = lean_ctor_get(x_2, 2);
  lean_inc(x_22);
  x_23 = lean_ctor_get_uint64(x_2, sizeof(void*)*3);
  x_24 = l_Lean_Expr_hasLevelParam(x_21);
  x_25 = l_Lean_Expr_hasLevelParam(x_22);
  x_26 = (uint8_t)((x_23 << 24) >> 61);
  if (x_24 == 0)
  {
  if (x_25 == 0)
  {
  lean_object* x_27; 
  lean_dec(x_1);
  x_27 = lean_expr_update_lambda(x_2, x_26, x_21, x_22);
  return x_27;
  }
  else
  {
  lean_object* x_28; lean_object* x_29; 
  x_28 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_22);
  x_29 = lean_expr_update_lambda(x_2, x_26, x_21, x_28);
  return x_29;
  }
  }
  else
  {
  lean_object* x_30; 
  lean_inc(x_1);
  x_30 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_21);
  if (x_25 == 0)
  {
  lean_object* x_31; 
  lean_dec(x_1);
  x_31 = lean_expr_update_lambda(x_2, x_26, x_30, x_22);
  return x_31;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; 
  x_32 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_22);
  x_33 = lean_expr_update_lambda(x_2, x_26, x_30, x_32);
  return x_33;
  }
  }
  }
  case 7:
  {
  lean_object* x_34; lean_object* x_35; uint64_t x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; 
  x_34 = lean_ctor_get(x_2, 1);
  lean_inc(x_34);
  x_35 = lean_ctor_get(x_2, 2);
  lean_inc(x_35);
  x_36 = lean_ctor_get_uint64(x_2, sizeof(void*)*3);
  x_37 = l_Lean_Expr_hasLevelParam(x_34);
  x_38 = l_Lean_Expr_hasLevelParam(x_35);
  x_39 = (uint8_t)((x_36 << 24) >> 61);
  if (x_37 == 0)
  {
  if (x_38 == 0)
  {
  lean_object* x_40; 
  lean_dec(x_1);
  x_40 = lean_expr_update_forall(x_2, x_39, x_34, x_35);
  return x_40;
  }
  else
  {
  lean_object* x_41; lean_object* x_42; 
  x_41 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_35);
  x_42 = lean_expr_update_forall(x_2, x_39, x_34, x_41);
  return x_42;
  }
  }
  else
  {
  lean_object* x_43; 
  lean_inc(x_1);
  x_43 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_34);
  if (x_38 == 0)
  {
  lean_object* x_44; 
  lean_dec(x_1);
  x_44 = lean_expr_update_forall(x_2, x_39, x_43, x_35);
  return x_44;
  }
  else
  {
  lean_object* x_45; lean_object* x_46; 
  x_45 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_35);
  x_46 = lean_expr_update_forall(x_2, x_39, x_43, x_45);
  return x_46;
  }
  }
  }
  case 8:
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; 
  x_47 = lean_ctor_get(x_2, 1);
  lean_inc(x_47);
  x_48 = lean_ctor_get(x_2, 2);
  lean_inc(x_48);
  x_49 = lean_ctor_get(x_2, 3);
  lean_inc(x_49);
  x_50 = l_Lean_Expr_hasLevelParam(x_47);
  x_51 = l_Lean_Expr_hasLevelParam(x_48);
  x_52 = l_Lean_Expr_hasLevelParam(x_49);
  if (x_50 == 0)
  {
  if (x_51 == 0)
  {
  if (x_52 == 0)
  {
  lean_object* x_53; 
  lean_dec(x_1);
  x_53 = lean_expr_update_let(x_2, x_47, x_48, x_49);
  return x_53;
  }
  else
  {
  lean_object* x_54; lean_object* x_55; 
  x_54 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_49);
  x_55 = lean_expr_update_let(x_2, x_47, x_48, x_54);
  return x_55;
  }
  }
  else
  {
  lean_object* x_56; 
  lean_inc(x_1);
  x_56 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_48);
  if (x_52 == 0)
  {
  lean_object* x_57; 
  lean_dec(x_1);
  x_57 = lean_expr_update_let(x_2, x_47, x_56, x_49);
  return x_57;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; 
  x_58 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_49);
  x_59 = lean_expr_update_let(x_2, x_47, x_56, x_58);
  return x_59;
  }
  }
  }
  else
  {
  lean_object* x_60; 
  lean_inc(x_1);
  x_60 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_47);
  if (x_51 == 0)
  {
  if (x_52 == 0)
  {
  lean_object* x_61; 
  lean_dec(x_1);
  x_61 = lean_expr_update_let(x_2, x_60, x_48, x_49);
  return x_61;
  }
  else
  {
  lean_object* x_62; lean_object* x_63; 
  x_62 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_49);
  x_63 = lean_expr_update_let(x_2, x_60, x_48, x_62);
  return x_63;
  }
  }
  else
  {
  lean_object* x_64; 
  lean_inc(x_1);
  x_64 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_48);
  if (x_52 == 0)
  {
  lean_object* x_65; 
  lean_dec(x_1);
  x_65 = lean_expr_update_let(x_2, x_60, x_64, x_49);
  return x_65;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; 
  x_66 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_49);
  x_67 = lean_expr_update_let(x_2, x_60, x_64, x_66);
  return x_67;
  }
  }
  }
  }
  case 10:
  {
  lean_object* x_68; uint8_t x_69; 
  x_68 = lean_ctor_get(x_2, 1);
  lean_inc(x_68);
  x_69 = l_Lean_Expr_hasLevelParam(x_68);
  if (x_69 == 0)
  {
  lean_object* x_70; 
  lean_dec(x_1);
  x_70 = lean_expr_update_mdata(x_2, x_68);
  return x_70;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; 
  x_71 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_68);
  x_72 = lean_expr_update_mdata(x_2, x_71);
  return x_72;
  }
  }
  case 11:
  {
  lean_object* x_73; uint8_t x_74; 
  x_73 = lean_ctor_get(x_2, 2);
  lean_inc(x_73);
  x_74 = l_Lean_Expr_hasLevelParam(x_73);
  if (x_74 == 0)
  {
  lean_object* x_75; 
  lean_dec(x_1);
  x_75 = lean_expr_update_proj(x_2, x_73);
  return x_75;
  }
  else
  {
  lean_object* x_76; lean_object* x_77; 
  x_76 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_73);
  x_77 = lean_expr_update_proj(x_2, x_76);
  return x_77;
  }
  }
  case 12:
  {
  lean_object* x_78; lean_object* x_79; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_78 = l_Lean_Expr_Inhabited;
  x_79 = l_unreachable_x21___rarg(x_78);
  return x_79;
  }
  default: 
  {
  lean_dec(x_1);
  return x_2;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Expr_instantiateLevelParamsCore(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  uint8_t x_3; 
  x_3 = l_Lean_Expr_hasLevelParam(x_2);
  if (x_3 == 0)
  {
  lean_dec(x_1);
  return x_2;
  }
  else
  {
  lean_object* x_4; 
  x_4 = l_Lean_Expr_InstantiateLevelParams_instantiate___main(x_1, x_2);
  return x_4;
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_11__getParamSubst___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; 
  x_4 = lean_box(0);
  return x_4;
  }
  else
  {
  if (lean_obj_tag(x_2) == 0)
  {
  lean_object* x_5; 
  x_5 = lean_box(0);
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
  x_6 = lean_ctor_get(x_1, 0);
  x_7 = lean_ctor_get(x_1, 1);
  x_8 = lean_ctor_get(x_2, 0);
  x_9 = lean_ctor_get(x_2, 1);
  x_10 = lean_name_eq(x_6, x_3);
  if (x_10 == 0)
  {
  x_1 = x_7;
  x_2 = x_9;
  goto _start;
  }
  else
  {
  lean_object* x_12; 
  lean_inc(x_8);
  x_12 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_12, 0, x_8);
  return x_12;
  }
  }
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_11__getParamSubst___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l___private_Init_Lean_Expr_11__getParamSubst___main(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l___private_Init_Lean_Expr_11__getParamSubst(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l___private_Init_Lean_Expr_11__getParamSubst___main(x_1, x_2, x_3);
  return x_4;
  }
  }
  lean_object* l___private_Init_Lean_Expr_11__getParamSubst___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l___private_Init_Lean_Expr_11__getParamSubst(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  switch (lean_obj_tag(x_3)) {
  case 1:
  {
  lean_object* x_4; uint8_t x_5; 
  x_4 = lean_ctor_get(x_3, 0);
  lean_inc(x_4);
  x_5 = l_Lean_Level_hasParam(x_3);
  if (x_5 == 0)
  {
  lean_dec(x_4);
  return x_3;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; 
  x_6 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__2(x_1, x_2, x_4);
  x_7 = lean_level_update_succ(x_3, x_6);
  return x_7;
  }
  }
  case 2:
  {
  lean_object* x_8; lean_object* x_9; uint8_t x_10; 
  x_8 = lean_ctor_get(x_3, 0);
  lean_inc(x_8);
  x_9 = lean_ctor_get(x_3, 1);
  lean_inc(x_9);
  x_10 = l_Lean_Level_hasParam(x_3);
  if (x_10 == 0)
  {
  lean_dec(x_9);
  lean_dec(x_8);
  return x_3;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_11 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__2(x_1, x_2, x_8);
  x_12 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__2(x_1, x_2, x_9);
  x_13 = lean_level_update_max(x_3, x_11, x_12);
  return x_13;
  }
  }
  case 3:
  {
  lean_object* x_14; lean_object* x_15; uint8_t x_16; 
  x_14 = lean_ctor_get(x_3, 0);
  lean_inc(x_14);
  x_15 = lean_ctor_get(x_3, 1);
  lean_inc(x_15);
  x_16 = l_Lean_Level_hasParam(x_3);
  if (x_16 == 0)
  {
  lean_dec(x_15);
  lean_dec(x_14);
  return x_3;
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_17 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__2(x_1, x_2, x_14);
  x_18 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__2(x_1, x_2, x_15);
  x_19 = lean_level_update_imax(x_3, x_17, x_18);
  return x_19;
  }
  }
  case 4:
  {
  lean_object* x_20; lean_object* x_21; 
  x_20 = lean_ctor_get(x_3, 0);
  lean_inc(x_20);
  x_21 = l___private_Init_Lean_Expr_11__getParamSubst___main(x_1, x_2, x_20);
  lean_dec(x_20);
  if (lean_obj_tag(x_21) == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_22; 
  lean_dec(x_3);
  x_22 = lean_ctor_get(x_21, 0);
  lean_inc(x_22);
  lean_dec(x_21);
  return x_22;
  }
  }
  default: 
  {
  return x_3;
  }
  }
  }
  }
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  switch (lean_obj_tag(x_3)) {
  case 1:
  {
  lean_object* x_4; uint8_t x_5; 
  x_4 = lean_ctor_get(x_3, 0);
  lean_inc(x_4);
  x_5 = l_Lean_Level_hasParam(x_3);
  if (x_5 == 0)
  {
  lean_dec(x_4);
  return x_3;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; 
  x_6 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3(x_1, x_2, x_4);
  x_7 = lean_level_update_succ(x_3, x_6);
  return x_7;
  }
  }
  case 2:
  {
  lean_object* x_8; lean_object* x_9; uint8_t x_10; 
  x_8 = lean_ctor_get(x_3, 0);
  lean_inc(x_8);
  x_9 = lean_ctor_get(x_3, 1);
  lean_inc(x_9);
  x_10 = l_Lean_Level_hasParam(x_3);
  if (x_10 == 0)
  {
  lean_dec(x_9);
  lean_dec(x_8);
  return x_3;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_11 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3(x_1, x_2, x_8);
  x_12 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3(x_1, x_2, x_9);
  x_13 = lean_level_update_max(x_3, x_11, x_12);
  return x_13;
  }
  }
  case 3:
  {
  lean_object* x_14; lean_object* x_15; uint8_t x_16; 
  x_14 = lean_ctor_get(x_3, 0);
  lean_inc(x_14);
  x_15 = lean_ctor_get(x_3, 1);
  lean_inc(x_15);
  x_16 = l_Lean_Level_hasParam(x_3);
  if (x_16 == 0)
  {
  lean_dec(x_15);
  lean_dec(x_14);
  return x_3;
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_17 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3(x_1, x_2, x_14);
  x_18 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3(x_1, x_2, x_15);
  x_19 = lean_level_update_imax(x_3, x_17, x_18);
  return x_19;
  }
  }
  case 4:
  {
  lean_object* x_20; lean_object* x_21; 
  x_20 = lean_ctor_get(x_3, 0);
  lean_inc(x_20);
  x_21 = l___private_Init_Lean_Expr_11__getParamSubst___main(x_1, x_2, x_20);
  lean_dec(x_20);
  if (lean_obj_tag(x_21) == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_22; 
  lean_dec(x_3);
  x_22 = lean_ctor_get(x_21, 0);
  lean_inc(x_22);
  lean_dec(x_21);
  return x_22;
  }
  }
  default: 
  {
  return x_3;
  }
  }
  }
  }
  lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_3) == 0)
  {
  lean_object* x_4; 
  x_4 = lean_box(0);
  return x_4;
  }
  else
  {
  uint8_t x_5; 
  x_5 = !lean_is_exclusive(x_3);
  if (x_5 == 0)
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_6 = lean_ctor_get(x_3, 0);
  x_7 = lean_ctor_get(x_3, 1);
  x_8 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3(x_1, x_2, x_6);
  x_9 = l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_7);
  lean_ctor_set(x_3, 1, x_9);
  lean_ctor_set(x_3, 0, x_8);
  return x_3;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_3, 0);
  x_11 = lean_ctor_get(x_3, 1);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_dec(x_3);
  x_12 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3(x_1, x_2, x_10);
  x_13 = l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_11);
  x_14 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_14, 0, x_12);
  lean_ctor_set(x_14, 1, x_13);
  return x_14;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  switch (lean_obj_tag(x_3)) {
  case 3:
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_4 = lean_ctor_get(x_3, 0);
  lean_inc(x_4);
  x_5 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__2(x_1, x_2, x_4);
  x_6 = lean_expr_update_sort(x_3, x_5);
  return x_6;
  }
  case 4:
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_3, 1);
  lean_inc(x_7);
  x_8 = l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_7);
  x_9 = lean_expr_update_const(x_3, x_8);
  return x_9;
  }
  case 5:
  {
  lean_object* x_10; lean_object* x_11; uint8_t x_12; uint8_t x_13; 
  x_10 = lean_ctor_get(x_3, 0);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_3, 1);
  lean_inc(x_11);
  x_12 = l_Lean_Expr_hasLevelParam(x_10);
  x_13 = l_Lean_Expr_hasLevelParam(x_11);
  if (x_12 == 0)
  {
  if (x_13 == 0)
  {
  lean_object* x_14; 
  x_14 = lean_expr_update_app(x_3, x_10, x_11);
  return x_14;
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  x_15 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_11);
  x_16 = lean_expr_update_app(x_3, x_10, x_15);
  return x_16;
  }
  }
  else
  {
  lean_object* x_17; 
  x_17 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_10);
  if (x_13 == 0)
  {
  lean_object* x_18; 
  x_18 = lean_expr_update_app(x_3, x_17, x_11);
  return x_18;
  }
  else
  {
  lean_object* x_19; lean_object* x_20; 
  x_19 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_11);
  x_20 = lean_expr_update_app(x_3, x_17, x_19);
  return x_20;
  }
  }
  }
  case 6:
  {
  lean_object* x_21; lean_object* x_22; uint64_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; 
  x_21 = lean_ctor_get(x_3, 1);
  lean_inc(x_21);
  x_22 = lean_ctor_get(x_3, 2);
  lean_inc(x_22);
  x_23 = lean_ctor_get_uint64(x_3, sizeof(void*)*3);
  x_24 = l_Lean_Expr_hasLevelParam(x_21);
  x_25 = l_Lean_Expr_hasLevelParam(x_22);
  x_26 = (uint8_t)((x_23 << 24) >> 61);
  if (x_24 == 0)
  {
  if (x_25 == 0)
  {
  lean_object* x_27; 
  x_27 = lean_expr_update_lambda(x_3, x_26, x_21, x_22);
  return x_27;
  }
  else
  {
  lean_object* x_28; lean_object* x_29; 
  x_28 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_22);
  x_29 = lean_expr_update_lambda(x_3, x_26, x_21, x_28);
  return x_29;
  }
  }
  else
  {
  lean_object* x_30; 
  x_30 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_21);
  if (x_25 == 0)
  {
  lean_object* x_31; 
  x_31 = lean_expr_update_lambda(x_3, x_26, x_30, x_22);
  return x_31;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; 
  x_32 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_22);
  x_33 = lean_expr_update_lambda(x_3, x_26, x_30, x_32);
  return x_33;
  }
  }
  }
  case 7:
  {
  lean_object* x_34; lean_object* x_35; uint64_t x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; 
  x_34 = lean_ctor_get(x_3, 1);
  lean_inc(x_34);
  x_35 = lean_ctor_get(x_3, 2);
  lean_inc(x_35);
  x_36 = lean_ctor_get_uint64(x_3, sizeof(void*)*3);
  x_37 = l_Lean_Expr_hasLevelParam(x_34);
  x_38 = l_Lean_Expr_hasLevelParam(x_35);
  x_39 = (uint8_t)((x_36 << 24) >> 61);
  if (x_37 == 0)
  {
  if (x_38 == 0)
  {
  lean_object* x_40; 
  x_40 = lean_expr_update_forall(x_3, x_39, x_34, x_35);
  return x_40;
  }
  else
  {
  lean_object* x_41; lean_object* x_42; 
  x_41 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_35);
  x_42 = lean_expr_update_forall(x_3, x_39, x_34, x_41);
  return x_42;
  }
  }
  else
  {
  lean_object* x_43; 
  x_43 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_34);
  if (x_38 == 0)
  {
  lean_object* x_44; 
  x_44 = lean_expr_update_forall(x_3, x_39, x_43, x_35);
  return x_44;
  }
  else
  {
  lean_object* x_45; lean_object* x_46; 
  x_45 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_35);
  x_46 = lean_expr_update_forall(x_3, x_39, x_43, x_45);
  return x_46;
  }
  }
  }
  case 8:
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; 
  x_47 = lean_ctor_get(x_3, 1);
  lean_inc(x_47);
  x_48 = lean_ctor_get(x_3, 2);
  lean_inc(x_48);
  x_49 = lean_ctor_get(x_3, 3);
  lean_inc(x_49);
  x_50 = l_Lean_Expr_hasLevelParam(x_47);
  x_51 = l_Lean_Expr_hasLevelParam(x_48);
  x_52 = l_Lean_Expr_hasLevelParam(x_49);
  if (x_50 == 0)
  {
  if (x_51 == 0)
  {
  if (x_52 == 0)
  {
  lean_object* x_53; 
  x_53 = lean_expr_update_let(x_3, x_47, x_48, x_49);
  return x_53;
  }
  else
  {
  lean_object* x_54; lean_object* x_55; 
  x_54 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_49);
  x_55 = lean_expr_update_let(x_3, x_47, x_48, x_54);
  return x_55;
  }
  }
  else
  {
  lean_object* x_56; 
  x_56 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_48);
  if (x_52 == 0)
  {
  lean_object* x_57; 
  x_57 = lean_expr_update_let(x_3, x_47, x_56, x_49);
  return x_57;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; 
  x_58 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_49);
  x_59 = lean_expr_update_let(x_3, x_47, x_56, x_58);
  return x_59;
  }
  }
  }
  else
  {
  lean_object* x_60; 
  x_60 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_47);
  if (x_51 == 0)
  {
  if (x_52 == 0)
  {
  lean_object* x_61; 
  x_61 = lean_expr_update_let(x_3, x_60, x_48, x_49);
  return x_61;
  }
  else
  {
  lean_object* x_62; lean_object* x_63; 
  x_62 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_49);
  x_63 = lean_expr_update_let(x_3, x_60, x_48, x_62);
  return x_63;
  }
  }
  else
  {
  lean_object* x_64; 
  x_64 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_48);
  if (x_52 == 0)
  {
  lean_object* x_65; 
  x_65 = lean_expr_update_let(x_3, x_60, x_64, x_49);
  return x_65;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; 
  x_66 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_49);
  x_67 = lean_expr_update_let(x_3, x_60, x_64, x_66);
  return x_67;
  }
  }
  }
  }
  case 10:
  {
  lean_object* x_68; uint8_t x_69; 
  x_68 = lean_ctor_get(x_3, 1);
  lean_inc(x_68);
  x_69 = l_Lean_Expr_hasLevelParam(x_68);
  if (x_69 == 0)
  {
  lean_object* x_70; 
  x_70 = lean_expr_update_mdata(x_3, x_68);
  return x_70;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; 
  x_71 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_68);
  x_72 = lean_expr_update_mdata(x_3, x_71);
  return x_72;
  }
  }
  case 11:
  {
  lean_object* x_73; uint8_t x_74; 
  x_73 = lean_ctor_get(x_3, 2);
  lean_inc(x_73);
  x_74 = l_Lean_Expr_hasLevelParam(x_73);
  if (x_74 == 0)
  {
  lean_object* x_75; 
  x_75 = lean_expr_update_proj(x_3, x_73);
  return x_75;
  }
  else
  {
  lean_object* x_76; lean_object* x_77; 
  x_76 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_73);
  x_77 = lean_expr_update_proj(x_3, x_76);
  return x_77;
  }
  }
  case 12:
  {
  lean_object* x_78; lean_object* x_79; 
  lean_dec(x_3);
  x_78 = l_Lean_Expr_Inhabited;
  x_79 = l_unreachable_x21___rarg(x_78);
  return x_79;
  }
  default: 
  {
  return x_3;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_instantiateLevelParams(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  uint8_t x_4; 
  x_4 = l_Lean_Expr_hasLevelParam(x_1);
  if (x_4 == 0)
  {
  return x_1;
  }
  else
  {
  lean_object* x_5; 
  x_5 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_2, x_3, x_1);
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__2(x_1, x_2, x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3(x_1, x_2, x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(x_1, x_2, x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(x_1, x_2, x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_instantiateLevelParams___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Expr_instantiateLevelParams(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_4;
  }
  }
  lean_object* l___private_Init_Lean_Expr_12__getParamSubstArray___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; uint8_t x_6; 
  x_5 = lean_array_get_size(x_1);
  x_6 = lean_nat_dec_lt(x_4, x_5);
  lean_dec(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; 
  lean_dec(x_4);
  x_7 = lean_box(0);
  return x_7;
  }
  else
  {
  lean_object* x_8; lean_object* x_9; uint8_t x_10; 
  x_8 = lean_array_fget(x_1, x_4);
  x_9 = lean_array_get_size(x_2);
  x_10 = lean_nat_dec_lt(x_4, x_9);
  lean_dec(x_9);
  if (x_10 == 0)
  {
  lean_object* x_11; 
  lean_dec(x_8);
  lean_dec(x_4);
  x_11 = lean_box(0);
  return x_11;
  }
  else
  {
  lean_object* x_12; uint8_t x_13; 
  x_12 = lean_array_fget(x_2, x_4);
  x_13 = lean_name_eq(x_8, x_3);
  lean_dec(x_8);
  if (x_13 == 0)
  {
  lean_object* x_14; lean_object* x_15; 
  lean_dec(x_12);
  x_14 = lean_unsigned_to_nat(1u);
  x_15 = lean_nat_add(x_4, x_14);
  lean_dec(x_4);
  x_4 = x_15;
  goto _start;
  }
  else
  {
  lean_object* x_17; 
  lean_dec(x_4);
  x_17 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_17, 0, x_12);
  return x_17;
  }
  }
  }
  }
  }
  lean_object* l___private_Init_Lean_Expr_12__getParamSubstArray___main___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___private_Init_Lean_Expr_12__getParamSubstArray___main(x_1, x_2, x_3, x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_5;
  }
  }
  lean_object* l___private_Init_Lean_Expr_12__getParamSubstArray(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l___private_Init_Lean_Expr_12__getParamSubstArray___main(x_1, x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l___private_Init_Lean_Expr_12__getParamSubstArray___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___private_Init_Lean_Expr_12__getParamSubstArray(x_1, x_2, x_3, x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_5;
  }
  }
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  switch (lean_obj_tag(x_3)) {
  case 1:
  {
  lean_object* x_4; uint8_t x_5; 
  x_4 = lean_ctor_get(x_3, 0);
  lean_inc(x_4);
  x_5 = l_Lean_Level_hasParam(x_3);
  if (x_5 == 0)
  {
  lean_dec(x_4);
  return x_3;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; 
  x_6 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2(x_1, x_2, x_4);
  x_7 = lean_level_update_succ(x_3, x_6);
  return x_7;
  }
  }
  case 2:
  {
  lean_object* x_8; lean_object* x_9; uint8_t x_10; 
  x_8 = lean_ctor_get(x_3, 0);
  lean_inc(x_8);
  x_9 = lean_ctor_get(x_3, 1);
  lean_inc(x_9);
  x_10 = l_Lean_Level_hasParam(x_3);
  if (x_10 == 0)
  {
  lean_dec(x_9);
  lean_dec(x_8);
  return x_3;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_11 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2(x_1, x_2, x_8);
  x_12 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2(x_1, x_2, x_9);
  x_13 = lean_level_update_max(x_3, x_11, x_12);
  return x_13;
  }
  }
  case 3:
  {
  lean_object* x_14; lean_object* x_15; uint8_t x_16; 
  x_14 = lean_ctor_get(x_3, 0);
  lean_inc(x_14);
  x_15 = lean_ctor_get(x_3, 1);
  lean_inc(x_15);
  x_16 = l_Lean_Level_hasParam(x_3);
  if (x_16 == 0)
  {
  lean_dec(x_15);
  lean_dec(x_14);
  return x_3;
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_17 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2(x_1, x_2, x_14);
  x_18 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2(x_1, x_2, x_15);
  x_19 = lean_level_update_imax(x_3, x_17, x_18);
  return x_19;
  }
  }
  case 4:
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_20 = lean_ctor_get(x_3, 0);
  lean_inc(x_20);
  x_21 = lean_unsigned_to_nat(0u);
  x_22 = l___private_Init_Lean_Expr_12__getParamSubstArray___main(x_1, x_2, x_20, x_21);
  lean_dec(x_20);
  if (lean_obj_tag(x_22) == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_23; 
  lean_dec(x_3);
  x_23 = lean_ctor_get(x_22, 0);
  lean_inc(x_23);
  lean_dec(x_22);
  return x_23;
  }
  }
  default: 
  {
  return x_3;
  }
  }
  }
  }
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  switch (lean_obj_tag(x_3)) {
  case 1:
  {
  lean_object* x_4; uint8_t x_5; 
  x_4 = lean_ctor_get(x_3, 0);
  lean_inc(x_4);
  x_5 = l_Lean_Level_hasParam(x_3);
  if (x_5 == 0)
  {
  lean_dec(x_4);
  return x_3;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; 
  x_6 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__3(x_1, x_2, x_4);
  x_7 = lean_level_update_succ(x_3, x_6);
  return x_7;
  }
  }
  case 2:
  {
  lean_object* x_8; lean_object* x_9; uint8_t x_10; 
  x_8 = lean_ctor_get(x_3, 0);
  lean_inc(x_8);
  x_9 = lean_ctor_get(x_3, 1);
  lean_inc(x_9);
  x_10 = l_Lean_Level_hasParam(x_3);
  if (x_10 == 0)
  {
  lean_dec(x_9);
  lean_dec(x_8);
  return x_3;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_11 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__3(x_1, x_2, x_8);
  x_12 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__3(x_1, x_2, x_9);
  x_13 = lean_level_update_max(x_3, x_11, x_12);
  return x_13;
  }
  }
  case 3:
  {
  lean_object* x_14; lean_object* x_15; uint8_t x_16; 
  x_14 = lean_ctor_get(x_3, 0);
  lean_inc(x_14);
  x_15 = lean_ctor_get(x_3, 1);
  lean_inc(x_15);
  x_16 = l_Lean_Level_hasParam(x_3);
  if (x_16 == 0)
  {
  lean_dec(x_15);
  lean_dec(x_14);
  return x_3;
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_17 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__3(x_1, x_2, x_14);
  x_18 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__3(x_1, x_2, x_15);
  x_19 = lean_level_update_imax(x_3, x_17, x_18);
  return x_19;
  }
  }
  case 4:
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_20 = lean_ctor_get(x_3, 0);
  lean_inc(x_20);
  x_21 = lean_unsigned_to_nat(0u);
  x_22 = l___private_Init_Lean_Expr_12__getParamSubstArray___main(x_1, x_2, x_20, x_21);
  lean_dec(x_20);
  if (lean_obj_tag(x_22) == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_23; 
  lean_dec(x_3);
  x_23 = lean_ctor_get(x_22, 0);
  lean_inc(x_23);
  lean_dec(x_22);
  return x_23;
  }
  }
  default: 
  {
  return x_3;
  }
  }
  }
  }
  lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_3) == 0)
  {
  lean_object* x_4; 
  x_4 = lean_box(0);
  return x_4;
  }
  else
  {
  uint8_t x_5; 
  x_5 = !lean_is_exclusive(x_3);
  if (x_5 == 0)
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_6 = lean_ctor_get(x_3, 0);
  x_7 = lean_ctor_get(x_3, 1);
  x_8 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__3(x_1, x_2, x_6);
  x_9 = l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_7);
  lean_ctor_set(x_3, 1, x_9);
  lean_ctor_set(x_3, 0, x_8);
  return x_3;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_3, 0);
  x_11 = lean_ctor_get(x_3, 1);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_dec(x_3);
  x_12 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__3(x_1, x_2, x_10);
  x_13 = l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_11);
  x_14 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_14, 0, x_12);
  lean_ctor_set(x_14, 1, x_13);
  return x_14;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  switch (lean_obj_tag(x_3)) {
  case 3:
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_4 = lean_ctor_get(x_3, 0);
  lean_inc(x_4);
  x_5 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2(x_1, x_2, x_4);
  x_6 = lean_expr_update_sort(x_3, x_5);
  return x_6;
  }
  case 4:
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_3, 1);
  lean_inc(x_7);
  x_8 = l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_7);
  x_9 = lean_expr_update_const(x_3, x_8);
  return x_9;
  }
  case 5:
  {
  lean_object* x_10; lean_object* x_11; uint8_t x_12; uint8_t x_13; 
  x_10 = lean_ctor_get(x_3, 0);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_3, 1);
  lean_inc(x_11);
  x_12 = l_Lean_Expr_hasLevelParam(x_10);
  x_13 = l_Lean_Expr_hasLevelParam(x_11);
  if (x_12 == 0)
  {
  if (x_13 == 0)
  {
  lean_object* x_14; 
  x_14 = lean_expr_update_app(x_3, x_10, x_11);
  return x_14;
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  x_15 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_11);
  x_16 = lean_expr_update_app(x_3, x_10, x_15);
  return x_16;
  }
  }
  else
  {
  lean_object* x_17; 
  x_17 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_10);
  if (x_13 == 0)
  {
  lean_object* x_18; 
  x_18 = lean_expr_update_app(x_3, x_17, x_11);
  return x_18;
  }
  else
  {
  lean_object* x_19; lean_object* x_20; 
  x_19 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_11);
  x_20 = lean_expr_update_app(x_3, x_17, x_19);
  return x_20;
  }
  }
  }
  case 6:
  {
  lean_object* x_21; lean_object* x_22; uint64_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; 
  x_21 = lean_ctor_get(x_3, 1);
  lean_inc(x_21);
  x_22 = lean_ctor_get(x_3, 2);
  lean_inc(x_22);
  x_23 = lean_ctor_get_uint64(x_3, sizeof(void*)*3);
  x_24 = l_Lean_Expr_hasLevelParam(x_21);
  x_25 = l_Lean_Expr_hasLevelParam(x_22);
  x_26 = (uint8_t)((x_23 << 24) >> 61);
  if (x_24 == 0)
  {
  if (x_25 == 0)
  {
  lean_object* x_27; 
  x_27 = lean_expr_update_lambda(x_3, x_26, x_21, x_22);
  return x_27;
  }
  else
  {
  lean_object* x_28; lean_object* x_29; 
  x_28 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_22);
  x_29 = lean_expr_update_lambda(x_3, x_26, x_21, x_28);
  return x_29;
  }
  }
  else
  {
  lean_object* x_30; 
  x_30 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_21);
  if (x_25 == 0)
  {
  lean_object* x_31; 
  x_31 = lean_expr_update_lambda(x_3, x_26, x_30, x_22);
  return x_31;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; 
  x_32 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_22);
  x_33 = lean_expr_update_lambda(x_3, x_26, x_30, x_32);
  return x_33;
  }
  }
  }
  case 7:
  {
  lean_object* x_34; lean_object* x_35; uint64_t x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; 
  x_34 = lean_ctor_get(x_3, 1);
  lean_inc(x_34);
  x_35 = lean_ctor_get(x_3, 2);
  lean_inc(x_35);
  x_36 = lean_ctor_get_uint64(x_3, sizeof(void*)*3);
  x_37 = l_Lean_Expr_hasLevelParam(x_34);
  x_38 = l_Lean_Expr_hasLevelParam(x_35);
  x_39 = (uint8_t)((x_36 << 24) >> 61);
  if (x_37 == 0)
  {
  if (x_38 == 0)
  {
  lean_object* x_40; 
  x_40 = lean_expr_update_forall(x_3, x_39, x_34, x_35);
  return x_40;
  }
  else
  {
  lean_object* x_41; lean_object* x_42; 
  x_41 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_35);
  x_42 = lean_expr_update_forall(x_3, x_39, x_34, x_41);
  return x_42;
  }
  }
  else
  {
  lean_object* x_43; 
  x_43 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_34);
  if (x_38 == 0)
  {
  lean_object* x_44; 
  x_44 = lean_expr_update_forall(x_3, x_39, x_43, x_35);
  return x_44;
  }
  else
  {
  lean_object* x_45; lean_object* x_46; 
  x_45 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_35);
  x_46 = lean_expr_update_forall(x_3, x_39, x_43, x_45);
  return x_46;
  }
  }
  }
  case 8:
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; 
  x_47 = lean_ctor_get(x_3, 1);
  lean_inc(x_47);
  x_48 = lean_ctor_get(x_3, 2);
  lean_inc(x_48);
  x_49 = lean_ctor_get(x_3, 3);
  lean_inc(x_49);
  x_50 = l_Lean_Expr_hasLevelParam(x_47);
  x_51 = l_Lean_Expr_hasLevelParam(x_48);
  x_52 = l_Lean_Expr_hasLevelParam(x_49);
  if (x_50 == 0)
  {
  if (x_51 == 0)
  {
  if (x_52 == 0)
  {
  lean_object* x_53; 
  x_53 = lean_expr_update_let(x_3, x_47, x_48, x_49);
  return x_53;
  }
  else
  {
  lean_object* x_54; lean_object* x_55; 
  x_54 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_49);
  x_55 = lean_expr_update_let(x_3, x_47, x_48, x_54);
  return x_55;
  }
  }
  else
  {
  lean_object* x_56; 
  x_56 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_48);
  if (x_52 == 0)
  {
  lean_object* x_57; 
  x_57 = lean_expr_update_let(x_3, x_47, x_56, x_49);
  return x_57;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; 
  x_58 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_49);
  x_59 = lean_expr_update_let(x_3, x_47, x_56, x_58);
  return x_59;
  }
  }
  }
  else
  {
  lean_object* x_60; 
  x_60 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_47);
  if (x_51 == 0)
  {
  if (x_52 == 0)
  {
  lean_object* x_61; 
  x_61 = lean_expr_update_let(x_3, x_60, x_48, x_49);
  return x_61;
  }
  else
  {
  lean_object* x_62; lean_object* x_63; 
  x_62 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_49);
  x_63 = lean_expr_update_let(x_3, x_60, x_48, x_62);
  return x_63;
  }
  }
  else
  {
  lean_object* x_64; 
  x_64 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_48);
  if (x_52 == 0)
  {
  lean_object* x_65; 
  x_65 = lean_expr_update_let(x_3, x_60, x_64, x_49);
  return x_65;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; 
  x_66 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_49);
  x_67 = lean_expr_update_let(x_3, x_60, x_64, x_66);
  return x_67;
  }
  }
  }
  }
  case 10:
  {
  lean_object* x_68; uint8_t x_69; 
  x_68 = lean_ctor_get(x_3, 1);
  lean_inc(x_68);
  x_69 = l_Lean_Expr_hasLevelParam(x_68);
  if (x_69 == 0)
  {
  lean_object* x_70; 
  x_70 = lean_expr_update_mdata(x_3, x_68);
  return x_70;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; 
  x_71 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_68);
  x_72 = lean_expr_update_mdata(x_3, x_71);
  return x_72;
  }
  }
  case 11:
  {
  lean_object* x_73; uint8_t x_74; 
  x_73 = lean_ctor_get(x_3, 2);
  lean_inc(x_73);
  x_74 = l_Lean_Expr_hasLevelParam(x_73);
  if (x_74 == 0)
  {
  lean_object* x_75; 
  x_75 = lean_expr_update_proj(x_3, x_73);
  return x_75;
  }
  else
  {
  lean_object* x_76; lean_object* x_77; 
  x_76 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_73);
  x_77 = lean_expr_update_proj(x_3, x_76);
  return x_77;
  }
  }
  case 12:
  {
  lean_object* x_78; lean_object* x_79; 
  lean_dec(x_3);
  x_78 = l_Lean_Expr_Inhabited;
  x_79 = l_unreachable_x21___rarg(x_78);
  return x_79;
  }
  default: 
  {
  return x_3;
  }
  }
  }
  }
  lean_object* l_Lean_Expr_instantiateLevelParamsArray(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  uint8_t x_4; 
  x_4 = l_Lean_Expr_hasLevelParam(x_1);
  if (x_4 == 0)
  {
  return x_1;
  }
  else
  {
  lean_object* x_5; 
  x_5 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_2, x_3, x_1);
  return x_5;
  }
  }
  }
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2(x_1, x_2, x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__3(x_1, x_2, x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(x_1, x_2, x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParamsArray___spec__1(x_1, x_2, x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  lean_object* l_Lean_Expr_instantiateLevelParamsArray___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Expr_instantiateLevelParamsArray(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_4;
  }
  }
  lean_object* l_Lean_mkAnnotation(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 = l_Lean_KVMap_empty;
  x_4 = l_Lean_verboseOption___closed__3;
  x_5 = l_Lean_KVMap_insertCore___main(x_3, x_1, x_4);
  x_6 = l_Lean_mkMData(x_5, x_2);
  return x_6;
  }
  }
  lean_object* l_Lean_isAnnotation_x3f(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_2) == 10)
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
  x_3 = lean_ctor_get(x_2, 0);
  x_4 = lean_ctor_get(x_2, 1);
  x_5 = lean_unsigned_to_nat(0u);
  x_6 = l_List_lengthAux___main___rarg(x_3, x_5);
  x_7 = lean_unsigned_to_nat(1u);
  x_8 = lean_nat_dec_eq(x_6, x_7);
  lean_dec(x_6);
  if (x_8 == 0)
  {
  lean_object* x_9; 
  x_9 = lean_box(0);
  return x_9;
  }
  else
  {
  uint8_t x_10; uint8_t x_11; 
  x_10 = 0;
  x_11 = l_Lean_KVMap_getBool(x_3, x_1, x_10);
  if (x_11 == 0)
  {
  lean_object* x_12; 
  x_12 = lean_box(0);
  return x_12;
  }
  else
  {
  lean_object* x_13; 
  lean_inc(x_4);
  x_13 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_13, 0, x_4);
  return x_13;
  }
  }
  }
  else
  {
  lean_object* x_14; 
  x_14 = lean_box(0);
  return x_14;
  }
  }
  }
  lean_object* l_Lean_isAnnotation_x3f___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_isAnnotation_x3f(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  lean_object* initialize_Init_Data_HashMap(lean_object*);
  lean_object* initialize_Init_Data_HashSet(lean_object*);
  lean_object* initialize_Init_Data_PersistentHashMap(lean_object*);
  lean_object* initialize_Init_Data_PersistentHashSet(lean_object*);
  lean_object* initialize_Init_Lean_Data_KVMap(lean_object*);
  lean_object* initialize_Init_Lean_Level(lean_object*);
  static bool _G_initialized = false;
  lean_object* initialize_Init_Lean_Expr(lean_object* w) {
  lean_object * res;
  if (_G_initialized) return lean_mk_io_result(lean_box(0));
  _G_initialized = true;
  res = initialize_Init_Data_HashMap(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Init_Data_HashSet(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Init_Data_PersistentHashMap(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Init_Data_PersistentHashSet(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Init_Lean_Data_KVMap(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Init_Lean_Level(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l_Lean_Literal_inhabited___closed__1 = _init_l_Lean_Literal_inhabited___closed__1();
  lean_mark_persistent(l_Lean_Literal_inhabited___closed__1);
  l_Lean_Literal_inhabited = _init_l_Lean_Literal_inhabited();
  lean_mark_persistent(l_Lean_Literal_inhabited);
  l_Lean_Literal_hashable___closed__1 = _init_l_Lean_Literal_hashable___closed__1();
  lean_mark_persistent(l_Lean_Literal_hashable___closed__1);
  l_Lean_Literal_hashable = _init_l_Lean_Literal_hashable();
  lean_mark_persistent(l_Lean_Literal_hashable);
  l_Lean_Literal_hasBeq___closed__1 = _init_l_Lean_Literal_hasBeq___closed__1();
  lean_mark_persistent(l_Lean_Literal_hasBeq___closed__1);
  l_Lean_Literal_hasBeq = _init_l_Lean_Literal_hasBeq();
  lean_mark_persistent(l_Lean_Literal_hasBeq);
  l_Lean_Literal_hasLess = _init_l_Lean_Literal_hasLess();
  lean_mark_persistent(l_Lean_Literal_hasLess);
  l_Lean_BinderInfo_hashable___closed__1 = _init_l_Lean_BinderInfo_hashable___closed__1();
  lean_mark_persistent(l_Lean_BinderInfo_hashable___closed__1);
  l_Lean_BinderInfo_hashable = _init_l_Lean_BinderInfo_hashable();
  lean_mark_persistent(l_Lean_BinderInfo_hashable);
  l_Lean_BinderInfo_inhabited = _init_l_Lean_BinderInfo_inhabited();
  l_Lean_BinderInfo_hasBeq___closed__1 = _init_l_Lean_BinderInfo_hasBeq___closed__1();
  lean_mark_persistent(l_Lean_BinderInfo_hasBeq___closed__1);
  l_Lean_BinderInfo_hasBeq = _init_l_Lean_BinderInfo_hasBeq();
  lean_mark_persistent(l_Lean_BinderInfo_hasBeq);
  l_Lean_MData_empty = _init_l_Lean_MData_empty();
  lean_mark_persistent(l_Lean_MData_empty);
  l_Lean_MVData_hasEmptc = _init_l_Lean_MVData_hasEmptc();
  lean_mark_persistent(l_Lean_MVData_hasEmptc);
  l_Lean_Expr_Data_inhabited = _init_l_Lean_Expr_Data_inhabited();
  l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1 = _init_l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1();
  lean_mark_persistent(l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__1);
  l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__2 = _init_l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__2();
  lean_mark_persistent(l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__2);
  l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__3 = _init_l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__3();
  lean_mark_persistent(l___private_Init_Lean_Expr_1__Expr_mkDataCore___closed__3);
  l___private_Init_Lean_Expr_1__Expr_mkDataCore___boxed__const__1 = _init_l___private_Init_Lean_Expr_1__Expr_mkDataCore___boxed__const__1();
  lean_mark_persistent(l___private_Init_Lean_Expr_1__Expr_mkDataCore___boxed__const__1);
  l_Lean_Expr_mkData___closed__1 = _init_l_Lean_Expr_mkData___closed__1();
  l_Lean_Expr_mkData___closed__2 = _init_l_Lean_Expr_mkData___closed__2();
  l_Lean_Expr_mkData___closed__3 = _init_l_Lean_Expr_mkData___closed__3();
  l_Lean_Expr_mkData___closed__4 = _init_l_Lean_Expr_mkData___closed__4();
  l_Lean_Expr_mkData___boxed__const__1 = _init_l_Lean_Expr_mkData___boxed__const__1();
  lean_mark_persistent(l_Lean_Expr_mkData___boxed__const__1);
  l_Lean_Expr_mkDataForBinder___boxed__const__1 = _init_l_Lean_Expr_mkDataForBinder___boxed__const__1();
  lean_mark_persistent(l_Lean_Expr_mkDataForBinder___boxed__const__1);
  l_Lean_Expr_mkDataForLet___boxed__const__1 = _init_l_Lean_Expr_mkDataForLet___boxed__const__1();
  lean_mark_persistent(l_Lean_Expr_mkDataForLet___boxed__const__1);
  l_Lean_Expr_Inhabited___closed__1 = _init_l_Lean_Expr_Inhabited___closed__1();
  lean_mark_persistent(l_Lean_Expr_Inhabited___closed__1);
  l_Lean_Expr_Inhabited = _init_l_Lean_Expr_Inhabited();
  lean_mark_persistent(l_Lean_Expr_Inhabited);
  l_Lean_Expr_Hashable___closed__1 = _init_l_Lean_Expr_Hashable___closed__1();
  lean_mark_persistent(l_Lean_Expr_Hashable___closed__1);
  l_Lean_Expr_Hashable = _init_l_Lean_Expr_Hashable();
  lean_mark_persistent(l_Lean_Expr_Hashable);
  l_Lean_Literal_type___closed__1 = _init_l_Lean_Literal_type___closed__1();
  lean_mark_persistent(l_Lean_Literal_type___closed__1);
  l_Lean_Literal_type___closed__2 = _init_l_Lean_Literal_type___closed__2();
  lean_mark_persistent(l_Lean_Literal_type___closed__2);
  l_Lean_Literal_type___closed__3 = _init_l_Lean_Literal_type___closed__3();
  lean_mark_persistent(l_Lean_Literal_type___closed__3);
  l_Lean_Literal_type___closed__4 = _init_l_Lean_Literal_type___closed__4();
  lean_mark_persistent(l_Lean_Literal_type___closed__4);
  l_Lean_Literal_type___closed__5 = _init_l_Lean_Literal_type___closed__5();
  lean_mark_persistent(l_Lean_Literal_type___closed__5);
  l_Lean_Literal_type___closed__6 = _init_l_Lean_Literal_type___closed__6();
  lean_mark_persistent(l_Lean_Literal_type___closed__6);
  l_Lean_Expr_HasBeq___closed__1 = _init_l_Lean_Expr_HasBeq___closed__1();
  lean_mark_persistent(l_Lean_Expr_HasBeq___closed__1);
  l_Lean_Expr_HasBeq = _init_l_Lean_Expr_HasBeq();
  lean_mark_persistent(l_Lean_Expr_HasBeq);
  l_Lean_Expr_getAppArgs___closed__1 = _init_l_Lean_Expr_getAppArgs___closed__1();
  lean_mark_persistent(l_Lean_Expr_getAppArgs___closed__1);
  l_Lean_Expr_getRevArg_x21___main___closed__1 = _init_l_Lean_Expr_getRevArg_x21___main___closed__1();
  lean_mark_persistent(l_Lean_Expr_getRevArg_x21___main___closed__1);
  l_Lean_Expr_appFn_x21___closed__1 = _init_l_Lean_Expr_appFn_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_appFn_x21___closed__1);
  l_Lean_Expr_appFn_x21___closed__2 = _init_l_Lean_Expr_appFn_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_appFn_x21___closed__2);
  l_Lean_Expr_appArg_x21___closed__1 = _init_l_Lean_Expr_appArg_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_appArg_x21___closed__1);
  l_Lean_Expr_constName_x21___closed__1 = _init_l_Lean_Expr_constName_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_constName_x21___closed__1);
  l_Lean_Expr_constName_x21___closed__2 = _init_l_Lean_Expr_constName_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_constName_x21___closed__2);
  l_Lean_Expr_constLevels_x21___closed__1 = _init_l_Lean_Expr_constLevels_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_constLevels_x21___closed__1);
  l_Lean_Expr_constLevels_x21___closed__2 = _init_l_Lean_Expr_constLevels_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_constLevels_x21___closed__2);
  l_Lean_Expr_bvarIdx_x21___closed__1 = _init_l_Lean_Expr_bvarIdx_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_bvarIdx_x21___closed__1);
  l_Lean_Expr_bvarIdx_x21___closed__2 = _init_l_Lean_Expr_bvarIdx_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_bvarIdx_x21___closed__2);
  l_Lean_Expr_fvarId_x21___closed__1 = _init_l_Lean_Expr_fvarId_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_fvarId_x21___closed__1);
  l_Lean_Expr_fvarId_x21___closed__2 = _init_l_Lean_Expr_fvarId_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_fvarId_x21___closed__2);
  l_Lean_Expr_mvarId_x21___closed__1 = _init_l_Lean_Expr_mvarId_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_mvarId_x21___closed__1);
  l_Lean_Expr_mvarId_x21___closed__2 = _init_l_Lean_Expr_mvarId_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_mvarId_x21___closed__2);
  l_Lean_Expr_bindingName_x21___closed__1 = _init_l_Lean_Expr_bindingName_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_bindingName_x21___closed__1);
  l_Lean_Expr_bindingName_x21___closed__2 = _init_l_Lean_Expr_bindingName_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_bindingName_x21___closed__2);
  l_Lean_Expr_bindingDomain_x21___closed__1 = _init_l_Lean_Expr_bindingDomain_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_bindingDomain_x21___closed__1);
  l_Lean_Expr_bindingBody_x21___closed__1 = _init_l_Lean_Expr_bindingBody_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_bindingBody_x21___closed__1);
  l_Lean_Expr_letName_x21___closed__1 = _init_l_Lean_Expr_letName_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_letName_x21___closed__1);
  l_Lean_Expr_letName_x21___closed__2 = _init_l_Lean_Expr_letName_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_letName_x21___closed__2);
  l_Lean_Expr_HasToString___closed__1 = _init_l_Lean_Expr_HasToString___closed__1();
  lean_mark_persistent(l_Lean_Expr_HasToString___closed__1);
  l_Lean_Expr_HasToString = _init_l_Lean_Expr_HasToString();
  lean_mark_persistent(l_Lean_Expr_HasToString);
  l_Lean_Expr_HasRepr = _init_l_Lean_Expr_HasRepr();
  lean_mark_persistent(l_Lean_Expr_HasRepr);
  l_Lean_mkDecIsTrue___closed__1 = _init_l_Lean_mkDecIsTrue___closed__1();
  lean_mark_persistent(l_Lean_mkDecIsTrue___closed__1);
  l_Lean_mkDecIsTrue___closed__2 = _init_l_Lean_mkDecIsTrue___closed__2();
  lean_mark_persistent(l_Lean_mkDecIsTrue___closed__2);
  l_Lean_mkDecIsTrue___closed__3 = _init_l_Lean_mkDecIsTrue___closed__3();
  lean_mark_persistent(l_Lean_mkDecIsTrue___closed__3);
  l_Lean_mkDecIsTrue___closed__4 = _init_l_Lean_mkDecIsTrue___closed__4();
  lean_mark_persistent(l_Lean_mkDecIsTrue___closed__4);
  l_Lean_mkDecIsTrue___closed__5 = _init_l_Lean_mkDecIsTrue___closed__5();
  lean_mark_persistent(l_Lean_mkDecIsTrue___closed__5);
  l_Lean_mkDecIsFalse___closed__1 = _init_l_Lean_mkDecIsFalse___closed__1();
  lean_mark_persistent(l_Lean_mkDecIsFalse___closed__1);
  l_Lean_mkDecIsFalse___closed__2 = _init_l_Lean_mkDecIsFalse___closed__2();
  lean_mark_persistent(l_Lean_mkDecIsFalse___closed__2);
  l_Lean_mkDecIsFalse___closed__3 = _init_l_Lean_mkDecIsFalse___closed__3();
  lean_mark_persistent(l_Lean_mkDecIsFalse___closed__3);
  l_Lean_ExprStructEq_Inhabited = _init_l_Lean_ExprStructEq_Inhabited();
  lean_mark_persistent(l_Lean_ExprStructEq_Inhabited);
  l_Lean_ExprStructEq_HasBeq___closed__1 = _init_l_Lean_ExprStructEq_HasBeq___closed__1();
  lean_mark_persistent(l_Lean_ExprStructEq_HasBeq___closed__1);
  l_Lean_ExprStructEq_HasBeq = _init_l_Lean_ExprStructEq_HasBeq();
  lean_mark_persistent(l_Lean_ExprStructEq_HasBeq);
  l_Lean_ExprStructEq_Hashable___closed__1 = _init_l_Lean_ExprStructEq_Hashable___closed__1();
  lean_mark_persistent(l_Lean_ExprStructEq_Hashable___closed__1);
  l_Lean_ExprStructEq_Hashable = _init_l_Lean_ExprStructEq_Hashable();
  lean_mark_persistent(l_Lean_ExprStructEq_Hashable);
  l_Lean_Expr_getOptParamDefault_x3f___closed__1 = _init_l_Lean_Expr_getOptParamDefault_x3f___closed__1();
  lean_mark_persistent(l_Lean_Expr_getOptParamDefault_x3f___closed__1);
  l_Lean_Expr_getOptParamDefault_x3f___closed__2 = _init_l_Lean_Expr_getOptParamDefault_x3f___closed__2();
  lean_mark_persistent(l_Lean_Expr_getOptParamDefault_x3f___closed__2);
  l_Lean_Expr_getAutoParamTactic_x3f___closed__1 = _init_l_Lean_Expr_getAutoParamTactic_x3f___closed__1();
  lean_mark_persistent(l_Lean_Expr_getAutoParamTactic_x3f___closed__1);
  l_Lean_Expr_getAutoParamTactic_x3f___closed__2 = _init_l_Lean_Expr_getAutoParamTactic_x3f___closed__2();
  lean_mark_persistent(l_Lean_Expr_getAutoParamTactic_x3f___closed__2);
  l_Lean_Expr_updateApp_x21___closed__1 = _init_l_Lean_Expr_updateApp_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_updateApp_x21___closed__1);
  l_Lean_Expr_updateConst_x21___closed__1 = _init_l_Lean_Expr_updateConst_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_updateConst_x21___closed__1);
  l_Lean_Expr_updateSort_x21___closed__1 = _init_l_Lean_Expr_updateSort_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_updateSort_x21___closed__1);
  l_Lean_Expr_updateSort_x21___closed__2 = _init_l_Lean_Expr_updateSort_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_updateSort_x21___closed__2);
  l_Lean_Expr_updateMData_x21___closed__1 = _init_l_Lean_Expr_updateMData_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_updateMData_x21___closed__1);
  l_Lean_Expr_updateMData_x21___closed__2 = _init_l_Lean_Expr_updateMData_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_updateMData_x21___closed__2);
  l_Lean_Expr_updateProj_x21___closed__1 = _init_l_Lean_Expr_updateProj_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_updateProj_x21___closed__1);
  l_Lean_Expr_updateProj_x21___closed__2 = _init_l_Lean_Expr_updateProj_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_updateProj_x21___closed__2);
  l_Lean_Expr_updateForall_x21___closed__1 = _init_l_Lean_Expr_updateForall_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_updateForall_x21___closed__1);
  l_Lean_Expr_updateForall_x21___closed__2 = _init_l_Lean_Expr_updateForall_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_updateForall_x21___closed__2);
  l_Lean_Expr_updateForallE_x21___closed__1 = _init_l_Lean_Expr_updateForallE_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_updateForallE_x21___closed__1);
  l_Lean_Expr_updateLambda_x21___closed__1 = _init_l_Lean_Expr_updateLambda_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_updateLambda_x21___closed__1);
  l_Lean_Expr_updateLambda_x21___closed__2 = _init_l_Lean_Expr_updateLambda_x21___closed__2();
  lean_mark_persistent(l_Lean_Expr_updateLambda_x21___closed__2);
  l_Lean_Expr_updateLambdaE_x21___closed__1 = _init_l_Lean_Expr_updateLambdaE_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_updateLambdaE_x21___closed__1);
  l_Lean_Expr_updateLet_x21___closed__1 = _init_l_Lean_Expr_updateLet_x21___closed__1();
  lean_mark_persistent(l_Lean_Expr_updateLet_x21___closed__1);
  return lean_mk_io_result(lean_box(0));
  }
  #ifdef __cplusplus
  }
  #endif
  