text: // Lean compiler output
  // Module: Lean.Meta.Check
  // Imports: Init Lean.Meta.InferType Lean.Meta.LevelDefEq
  #include <lean/lean.h>
  #if defined(__clang__)
  #pragma clang diagnostic ignored "-Wunused-parameter"
  #pragma clang diagnostic ignored "-Wunused-label"
  #elif defined(__GNUC__) && !defined(__CLANG__)
  #pragma GCC diagnostic ignored "-Wunused-parameter"
  #pragma GCC diagnostic ignored "-Wunused-label"
  #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
  #endif
  #ifdef __cplusplus
  extern "C" {
  #endif
  lean_object* lean_array_set(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwAppTypeMismatch_match__1(lean_object*);
  size_t l_USize_add(size_t, size_t);
  extern lean_object* l_Lean_Name_getString_x21___closed__3;
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6;
  lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2(lean_object*);
  lean_object* l_Lean_Meta_check___closed__1;
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage_match__1(lean_object*);
  lean_object* l_Lean_stringToMessageData(lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_name_mk_string(lean_object*, lean_object*);
  uint8_t l_USize_decEq(size_t, size_t);
  lean_object* lean_array_uget(lean_object*, size_t);
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__1(lean_object*);
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_st_ref_get(lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___closed__1;
  uint8_t l_Lean_Expr_isApp(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwFunctionExpected___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_array_get_size(lean_object*);
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage_match__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__1___rarg(lean_object*, lean_object*);
  lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_check___closed__2;
  extern lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___spec__5___closed__1;
  extern lean_object* l_Lean_Expr_getAppArgs___closed__1;
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_getFunctionDomain_match__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_nat_add(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff_match__1(lean_object*);
  lean_object* l_Lean_Meta_checkApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_match__1(lean_object*);
  lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff_match__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ConstantInfo_levelParams(lean_object*);
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__3(lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet_match__1(lean_object*);
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage(lean_object*);
  lean_object* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__2;
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff___closed__2;
  lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_st_ref_take(lean_object*, lean_object*);
  lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Util_Trace_0__Lean_addNode___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__1;
  lean_object* lean_nat_sub(lean_object*, lean_object*);
  lean_object* l_Lean_addTrace___at_Lean_Meta_isLevelDefEqAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff___closed__1;
  extern lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solveSelfMax___closed__1;
  extern lean_object* l_Lean_KernelException_toMessageData___closed__29;
  lean_object* l_Lean_Meta_isTypeCorrect___closed__1;
  lean_object* l_Lean_Meta_isTypeCorrect___closed__2;
  lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__6___rarg(lean_object*, lean_object*);
  lean_object* l_Lean_throwError___at_Lean_Meta_throwAppTypeMismatch___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t);
  lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_557____closed__2;
  lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_fvarId_x21(lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__2___rarg(lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_LocalDecl_binderInfo(lean_object*);
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwAppTypeMismatch(lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet_match__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_instInhabitedExpr;
  lean_object* l_Lean_throwError___at_Lean_Meta_throwAppTypeMismatch___spec__1(lean_object*);
  lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_KernelException_toMessageData___closed__15;
  lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__1;
  lean_object* l_Lean_Meta_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_Data_binderInfo(uint64_t);
  size_t lean_usize_of_nat(lean_object*);
  extern lean_object* l_Lean_Expr_setPPExplicit___closed__1;
  lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__2;
  lean_object* l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_getFunctionDomain(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_setAppPPExplicit(lean_object*);
  lean_object* l_Lean_LocalDecl_type(lean_object*);
  lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*);
  lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t lean_nat_dec_le(lean_object*, lean_object*);
  lean_object* l_Lean_mkApp(lean_object*, lean_object*);
  lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_BinderInfo_isExplicit(uint8_t);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkConstant___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_getSanitizeNames___closed__2;
  lean_object* lean_panic_fn(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwAppTypeMismatch_match__1___rarg(lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_getFunctionDomain_match__1(lean_object*);
  lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7;
  lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_instInhabitedMessageData___closed__1;
  lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5;
  lean_object* lean_mk_array(lean_object*, lean_object*);
  lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3;
  lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1(lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_ensureType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_throwError___at_Lean_Meta_throwAppTypeMismatch___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1;
  lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkConstant(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppFn(lean_object*);
  lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__1;
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2;
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*);
  lean_object* lean_local_ctx_find(lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwIncorrectNumberOfLevels___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2;
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9;
  lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_indentExpr(lean_object*);
  lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_1699_(lean_object*);
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4;
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__2(lean_object*);
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8;
  extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1;
  lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Exception_toMessageData(lean_object*);
  uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_getFVarLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___closed__1;
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__3___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_ensureType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; 
  x_7 = l_Lean_Meta_getLevel(x_1, x_2, x_3, x_4, x_5, x_6);
  if (lean_obj_tag(x_7) == 0)
  {
  uint8_t x_8; 
  x_8 = !lean_is_exclusive(x_7);
  if (x_8 == 0)
  {
  lean_object* x_9; lean_object* x_10; 
  x_9 = lean_ctor_get(x_7, 0);
  lean_dec(x_9);
  x_10 = lean_box(0);
  lean_ctor_set(x_7, 0, x_10);
  return x_7;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_11 = lean_ctor_get(x_7, 1);
  lean_inc(x_11);
  lean_dec(x_7);
  x_12 = lean_box(0);
  x_13 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_13, 0, x_12);
  lean_ctor_set(x_13, 1, x_11);
  return x_13;
  }
  }
  else
  {
  uint8_t x_14; 
  x_14 = !lean_is_exclusive(x_7);
  if (x_14 == 0)
  {
  return x_7;
  }
  else
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_15 = lean_ctor_get(x_7, 0);
  x_16 = lean_ctor_get(x_7, 1);
  lean_inc(x_16);
  lean_inc(x_15);
  lean_dec(x_7);
  x_17 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_17, 0, x_15);
  lean_ctor_set(x_17, 1, x_16);
  return x_17;
  }
  }
  }
  }
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; 
  lean_dec(x_2);
  x_4 = lean_apply_1(x_3, x_1);
  return x_4;
  }
  else
  {
  lean_object* x_5; 
  x_5 = lean_ctor_get(x_1, 0);
  lean_inc(x_5);
  if (lean_obj_tag(x_5) == 0)
  {
  lean_object* x_6; 
  lean_dec(x_5);
  lean_dec(x_2);
  x_6 = lean_apply_1(x_3, x_1);
  return x_6;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; 
  lean_dec(x_3);
  lean_dec(x_1);
  x_7 = lean_ctor_get(x_5, 0);
  lean_inc(x_7);
  x_8 = lean_ctor_get(x_5, 1);
  lean_inc(x_8);
  x_9 = lean_ctor_get(x_5, 2);
  lean_inc(x_9);
  x_10 = lean_ctor_get(x_5, 3);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_5, 4);
  lean_inc(x_11);
  x_12 = lean_ctor_get_uint8(x_5, sizeof(void*)*5);
  lean_dec(x_5);
  x_13 = lean_box(x_12);
  x_14 = lean_apply_6(x_2, x_7, x_8, x_9, x_10, x_11, x_13);
  return x_14;
  }
  }
  }
  }
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_throwLetTypeMismatchMessage_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; lean_object* x_8; uint8_t x_9; 
  x_7 = lean_ctor_get(x_4, 3);
  x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
  x_9 = !lean_is_exclusive(x_8);
  if (x_9 == 0)
  {
  lean_object* x_10; lean_object* x_11; 
  x_10 = lean_ctor_get(x_8, 0);
  lean_inc(x_7);
  x_11 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_11, 0, x_7);
  lean_ctor_set(x_11, 1, x_10);
  lean_ctor_set_tag(x_8, 1);
  lean_ctor_set(x_8, 0, x_11);
  return x_8;
  }
  else
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = lean_ctor_get(x_8, 0);
  x_13 = lean_ctor_get(x_8, 1);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_dec(x_8);
  lean_inc(x_7);
  x_14 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_14, 0, x_7);
  lean_ctor_set(x_14, 1, x_12);
  x_15 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_15, 0, x_14);
  lean_ctor_set(x_15, 1, x_13);
  return x_15;
  }
  }
  }
  lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___boxed), 6, 0);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Lean.Meta.Check");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Lean.Meta.throwLetTypeMismatchMessage");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1;
  x_2 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2;
  x_3 = lean_unsigned_to_nat(25u);
  x_4 = lean_unsigned_to_nat(9u);
  x_5 = l_Lean_Name_getString_x21___closed__3;
  x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
  return x_6;
  }
  }
  static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("invalid let declaration, term");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("\nhas type");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("\nbut is expected to have type");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; lean_object* x_8; 
  x_7 = lean_ctor_get(x_2, 1);
  lean_inc(x_7);
  x_8 = lean_local_ctx_find(x_7, x_1);
  if (lean_obj_tag(x_8) == 0)
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_9 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solveSelfMax___closed__1;
  x_10 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3;
  x_11 = lean_panic_fn(x_9, x_10);
  x_12 = lean_apply_5(x_11, x_2, x_3, x_4, x_5, x_6);
  return x_12;
  }
  else
  {
  lean_object* x_13; 
  x_13 = lean_ctor_get(x_8, 0);
  lean_inc(x_13);
  lean_dec(x_8);
  if (lean_obj_tag(x_13) == 0)
  {
  lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  lean_dec(x_13);
  x_14 = l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solveSelfMax___closed__1;
  x_15 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3;
  x_16 = lean_panic_fn(x_14, x_15);
  x_17 = lean_apply_5(x_16, x_2, x_3, x_4, x_5, x_6);
  return x_17;
  }
  else
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_18 = lean_ctor_get(x_13, 3);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_13, 4);
  lean_inc(x_19);
  lean_dec(x_13);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  lean_inc(x_19);
  x_20 = l_Lean_Meta_inferType(x_19, x_2, x_3, x_4, x_5, x_6);
  if (lean_obj_tag(x_20) == 0)
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
  x_21 = lean_ctor_get(x_20, 0);
  lean_inc(x_21);
  x_22 = lean_ctor_get(x_20, 1);
  lean_inc(x_22);
  lean_dec(x_20);
  x_23 = l_Lean_indentExpr(x_19);
  x_24 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5;
  x_25 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_25, 0, x_24);
  lean_ctor_set(x_25, 1, x_23);
  x_26 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7;
  x_27 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_27, 0, x_25);
  lean_ctor_set(x_27, 1, x_26);
  x_28 = l_Lean_indentExpr(x_21);
  x_29 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_29, 0, x_27);
  lean_ctor_set(x_29, 1, x_28);
  x_30 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9;
  x_31 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_31, 0, x_29);
  lean_ctor_set(x_31, 1, x_30);
  x_32 = l_Lean_indentExpr(x_18);
  x_33 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_33, 0, x_31);
  lean_ctor_set(x_33, 1, x_32);
  x_34 = l_Lean_KernelException_toMessageData___closed__15;
  x_35 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_35, 0, x_33);
  lean_ctor_set(x_35, 1, x_34);
  x_36 = l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg(x_35, x_2, x_3, x_4, x_5, x_22);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_36;
  }
  else
  {
  uint8_t x_37; 
  lean_dec(x_19);
  lean_dec(x_18);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_37 = !lean_is_exclusive(x_20);
  if (x_37 == 0)
  {
  return x_20;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_20, 0);
  x_39 = lean_ctor_get(x_20, 1);
  lean_inc(x_39);
  lean_inc(x_38);
  lean_dec(x_20);
  x_40 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_40, 0, x_38);
  lean_ctor_set(x_40, 1, x_39);
  return x_40;
  }
  }
  }
  }
  }
  }
  lean_object* l_Lean_Meta_throwLetTypeMismatchMessage(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_throwLetTypeMismatchMessage___rarg), 6, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; 
  x_7 = l_Lean_throwError___at_Lean_Meta_throwLetTypeMismatchMessage___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_7;
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkConstant(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_inc(x_1);
  x_8 = l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(x_1, x_3, x_4, x_5, x_6, x_7);
  if (lean_obj_tag(x_8) == 0)
  {
  uint8_t x_9; 
  x_9 = !lean_is_exclusive(x_8);
  if (x_9 == 0)
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
  x_10 = lean_ctor_get(x_8, 0);
  x_11 = lean_ctor_get(x_8, 1);
  x_12 = lean_unsigned_to_nat(0u);
  x_13 = l_List_lengthAux___rarg(x_2, x_12);
  x_14 = l_Lean_ConstantInfo_levelParams(x_10);
  lean_dec(x_10);
  x_15 = l_List_lengthAux___rarg(x_14, x_12);
  lean_dec(x_14);
  x_16 = lean_nat_dec_eq(x_13, x_15);
  lean_dec(x_15);
  lean_dec(x_13);
  if (x_16 == 0)
  {
  lean_object* x_17; 
  lean_free_object(x_8);
  x_17 = l_Lean_Meta_throwIncorrectNumberOfLevels___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_11);
  return x_17;
  }
  else
  {
  lean_object* x_18; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_18 = lean_box(0);
  lean_ctor_set(x_8, 0, x_18);
  return x_8;
  }
  }
  else
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; 
  x_19 = lean_ctor_get(x_8, 0);
  x_20 = lean_ctor_get(x_8, 1);
  lean_inc(x_20);
  lean_inc(x_19);
  lean_dec(x_8);
  x_21 = lean_unsigned_to_nat(0u);
  x_22 = l_List_lengthAux___rarg(x_2, x_21);
  x_23 = l_Lean_ConstantInfo_levelParams(x_19);
  lean_dec(x_19);
  x_24 = l_List_lengthAux___rarg(x_23, x_21);
  lean_dec(x_23);
  x_25 = lean_nat_dec_eq(x_22, x_24);
  lean_dec(x_24);
  lean_dec(x_22);
  if (x_25 == 0)
  {
  lean_object* x_26; 
  x_26 = l_Lean_Meta_throwIncorrectNumberOfLevels___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_20);
  return x_26;
  }
  else
  {
  lean_object* x_27; lean_object* x_28; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_27 = lean_box(0);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_27);
  lean_ctor_set(x_28, 1, x_20);
  return x_28;
  }
  }
  }
  else
  {
  uint8_t x_29; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_29 = !lean_is_exclusive(x_8);
  if (x_29 == 0)
  {
  return x_8;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_8, 0);
  x_31 = lean_ctor_get(x_8, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_8);
  x_32 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_32, 0, x_30);
  lean_ctor_set(x_32, 1, x_31);
  return x_32;
  }
  }
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkConstant___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l___private_Lean_Meta_Check_0__Lean_Meta_checkConstant(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_8;
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_getFunctionDomain_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 7)
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; lean_object* x_8; lean_object* x_9; 
  lean_dec(x_3);
  x_4 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  x_5 = lean_ctor_get(x_1, 1);
  lean_inc(x_5);
  x_6 = lean_ctor_get(x_1, 2);
  lean_inc(x_6);
  x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  lean_dec(x_1);
  x_8 = lean_box_uint64(x_7);
  x_9 = lean_apply_4(x_2, x_4, x_5, x_6, x_8);
  return x_9;
  }
  else
  {
  lean_object* x_10; 
  lean_dec(x_2);
  x_10 = lean_apply_1(x_3, x_1);
  return x_10;
  }
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_getFunctionDomain_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Check_0__Lean_Meta_getFunctionDomain_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_getFunctionDomain(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_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  lean_inc(x_1);
  x_7 = l_Lean_Meta_inferType(x_1, x_2, x_3, x_4, x_5, x_6);
  if (lean_obj_tag(x_7) == 0)
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  x_8 = lean_ctor_get(x_7, 0);
  lean_inc(x_8);
  x_9 = lean_ctor_get(x_7, 1);
  lean_inc(x_9);
  lean_dec(x_7);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_10 = l_Lean_Meta_whnfD(x_8, x_2, x_3, x_4, x_5, x_9);
  if (lean_obj_tag(x_10) == 0)
  {
  lean_object* x_11; 
  x_11 = lean_ctor_get(x_10, 0);
  lean_inc(x_11);
  if (lean_obj_tag(x_11) == 7)
  {
  uint8_t x_12; 
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_12 = !lean_is_exclusive(x_10);
  if (x_12 == 0)
  {
  lean_object* x_13; lean_object* x_14; uint64_t x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; 
  x_13 = lean_ctor_get(x_10, 0);
  lean_dec(x_13);
  x_14 = lean_ctor_get(x_11, 1);
  lean_inc(x_14);
  x_15 = lean_ctor_get_uint64(x_11, sizeof(void*)*3);
  lean_dec(x_11);
  x_16 = (uint8_t)((x_15 << 24) >> 61);
  x_17 = lean_box(x_16);
  x_18 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_18, 0, x_14);
  lean_ctor_set(x_18, 1, x_17);
  lean_ctor_set(x_10, 0, x_18);
  return x_10;
  }
  else
  {
  lean_object* x_19; lean_object* x_20; uint64_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
  x_19 = lean_ctor_get(x_10, 1);
  lean_inc(x_19);
  lean_dec(x_10);
  x_20 = lean_ctor_get(x_11, 1);
  lean_inc(x_20);
  x_21 = lean_ctor_get_uint64(x_11, sizeof(void*)*3);
  lean_dec(x_11);
  x_22 = (uint8_t)((x_21 << 24) >> 61);
  x_23 = lean_box(x_22);
  x_24 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_24, 0, x_20);
  lean_ctor_set(x_24, 1, x_23);
  x_25 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_25, 0, x_24);
  lean_ctor_set(x_25, 1, x_19);
  return x_25;
  }
  }
  else
  {
  lean_object* x_26; lean_object* x_27; 
  lean_dec(x_11);
  x_26 = lean_ctor_get(x_10, 1);
  lean_inc(x_26);
  lean_dec(x_10);
  x_27 = l_Lean_Meta_throwFunctionExpected___rarg(x_1, x_2, x_3, x_4, x_5, x_26);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_27;
  }
  }
  else
  {
  uint8_t x_28; 
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_28 = !lean_is_exclusive(x_10);
  if (x_28 == 0)
  {
  return x_10;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_10, 0);
  x_30 = lean_ctor_get(x_10, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_10);
  x_31 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_31, 0, x_29);
  lean_ctor_set(x_31, 1, x_30);
  return x_31;
  }
  }
  }
  else
  {
  uint8_t x_32; 
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_32 = !lean_is_exclusive(x_7);
  if (x_32 == 0)
  {
  return x_7;
  }
  else
  {
  lean_object* x_33; lean_object* x_34; lean_object* x_35; 
  x_33 = lean_ctor_get(x_7, 0);
  x_34 = lean_ctor_get(x_7, 1);
  lean_inc(x_34);
  lean_inc(x_33);
  lean_dec(x_7);
  x_35 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_35, 0, x_33);
  lean_ctor_set(x_35, 1, x_34);
  return x_35;
  }
  }
  }
  }
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__1___rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = lean_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_apply_2(x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__1___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__2___rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = lean_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_apply_2(x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__2___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  lean_dec(x_3);
  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_apply_2(x_2, x_4, x_5);
  return x_6;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  lean_dec(x_2);
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  x_8 = lean_ctor_get(x_1, 1);
  lean_inc(x_8);
  lean_dec(x_1);
  x_9 = lean_apply_2(x_3, x_7, x_8);
  return x_9;
  }
  }
  }
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__3(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_addPPExplicitToExposeDiff_visit_match__3___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; lean_object* x_5; 
  lean_dec(x_3);
  x_4 = lean_box(0);
  x_5 = lean_apply_1(x_2, x_4);
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; 
  lean_dec(x_2);
  x_6 = lean_ctor_get(x_1, 0);
  lean_inc(x_6);
  lean_dec(x_1);
  x_7 = lean_apply_1(x_3, x_6);
  return x_7;
  }
  }
  }
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__1() {
  _start:
  {
  uint8_t x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = 1;
  x_2 = lean_box(x_1);
  x_3 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_3, 0, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__1;
  x_2 = lean_box(0);
  x_3 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_ctor_get(x_5, 1);
  x_15 = lean_nat_dec_le(x_14, x_7);
  if (x_15 == 0)
  {
  lean_object* x_16; uint8_t x_17; 
  x_16 = lean_unsigned_to_nat(0u);
  x_17 = lean_nat_dec_eq(x_6, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  lean_dec(x_8);
  x_18 = lean_unsigned_to_nat(1u);
  x_19 = lean_nat_sub(x_6, x_18);
  lean_dec(x_6);
  x_20 = l_Lean_instInhabitedExpr;
  x_21 = lean_array_get(x_20, x_1, x_7);
  x_22 = l_Lean_Expr_fvarId_x21(x_21);
  lean_dec(x_21);
  lean_inc(x_9);
  x_23 = l_Lean_Meta_getLocalDecl(x_22, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; 
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_23, 1);
  lean_inc(x_25);
  lean_dec(x_23);
  x_26 = l_Lean_LocalDecl_binderInfo(x_24);
  lean_dec(x_24);
  x_27 = l_Lean_BinderInfo_isExplicit(x_26);
  if (x_27 == 0)
  {
  lean_object* x_28; lean_object* x_29; 
  x_28 = lean_ctor_get(x_5, 2);
  x_29 = lean_nat_add(x_7, x_28);
  lean_dec(x_7);
  lean_inc(x_4);
  {
  lean_object* _tmp_5 = x_19;
  lean_object* _tmp_6 = x_29;
  lean_object* _tmp_7 = x_4;
  lean_object* _tmp_12 = x_25;
  x_6 = _tmp_5;
  x_7 = _tmp_6;
  x_8 = _tmp_7;
  x_13 = _tmp_12;
  }
  goto _start;
  }
  else
  {
  lean_object* x_31; lean_object* x_32; lean_object* x_33; 
  x_31 = lean_array_get(x_20, x_2, x_7);
  x_32 = lean_array_get(x_20, x_3, x_7);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_33 = l_Lean_Meta_isExprDefEq(x_31, x_32, x_9, x_10, x_11, x_12, x_25);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; uint8_t x_35; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  x_35 = lean_unbox(x_34);
  lean_dec(x_34);
  if (x_35 == 0)
  {
  uint8_t x_36; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_4);
  x_36 = !lean_is_exclusive(x_33);
  if (x_36 == 0)
  {
  lean_object* x_37; lean_object* x_38; 
  x_37 = lean_ctor_get(x_33, 0);
  lean_dec(x_37);
  x_38 = l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__2;
  lean_ctor_set(x_33, 0, x_38);
  return x_33;
  }
  else
  {
  lean_object* x_39; lean_object* x_40; lean_object* x_41; 
  x_39 = lean_ctor_get(x_33, 1);
  lean_inc(x_39);
  lean_dec(x_33);
  x_40 = l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__2;
  x_41 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_41, 0, x_40);
  lean_ctor_set(x_41, 1, x_39);
  return x_41;
  }
  }
  else
  {
  lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_42 = lean_ctor_get(x_33, 1);
  lean_inc(x_42);
  lean_dec(x_33);
  x_43 = lean_ctor_get(x_5, 2);
  x_44 = lean_nat_add(x_7, x_43);
  lean_dec(x_7);
  lean_inc(x_4);
  {
  lean_object* _tmp_5 = x_19;
  lean_object* _tmp_6 = x_44;
  lean_object* _tmp_7 = x_4;
  lean_object* _tmp_12 = x_42;
  x_6 = _tmp_5;
  x_7 = _tmp_6;
  x_8 = _tmp_7;
  x_13 = _tmp_12;
  }
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_4);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_4);
  x_50 = !lean_is_exclusive(x_23);
  if (x_50 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_23, 0);
  x_52 = lean_ctor_get(x_23, 1);
  lean_inc(x_52);
  lean_inc(x_51);
  lean_dec(x_23);
  x_53 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_53, 0, x_51);
  lean_ctor_set(x_53, 1, x_52);
  return x_53;
  }
  }
  }
  else
  {
  lean_object* x_54; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_4);
  x_54 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_54, 0, x_8);
  lean_ctor_set(x_54, 1, x_13);
  return x_54;
  }
  }
  else
  {
  lean_object* x_55; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_4);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_8);
  lean_ctor_set(x_55, 1, x_13);
  return x_55;
  }
  }
  }
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_9 = lean_array_get_size(x_1);
  x_10 = lean_unsigned_to_nat(0u);
  x_11 = lean_unsigned_to_nat(1u);
  lean_inc(x_9);
  x_12 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_12, 0, x_10);
  lean_ctor_set(x_12, 1, x_9);
  lean_ctor_set(x_12, 2, x_11);
  x_13 = l_Array_findSomeM_x3f___rarg___closed__1;
  x_14 = l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1(x_1, x_2, x_3, x_13, x_12, x_9, x_10, x_13, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_12);
  if (lean_obj_tag(x_14) == 0)
  {
  lean_object* x_15; lean_object* x_16; 
  x_15 = lean_ctor_get(x_14, 0);
  lean_inc(x_15);
  x_16 = lean_ctor_get(x_15, 0);
  lean_inc(x_16);
  lean_dec(x_15);
  if (lean_obj_tag(x_16) == 0)
  {
  uint8_t x_17; 
  x_17 = !lean_is_exclusive(x_14);
  if (x_17 == 0)
  {
  lean_object* x_18; uint8_t x_19; lean_object* x_20; 
  x_18 = lean_ctor_get(x_14, 0);
  lean_dec(x_18);
  x_19 = 0;
  x_20 = lean_box(x_19);
  lean_ctor_set(x_14, 0, x_20);
  return x_14;
  }
  else
  {
  lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; 
  x_21 = lean_ctor_get(x_14, 1);
  lean_inc(x_21);
  lean_dec(x_14);
  x_22 = 0;
  x_23 = lean_box(x_22);
  x_24 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_24, 0, x_23);
  lean_ctor_set(x_24, 1, x_21);
  return x_24;
  }
  }
  else
  {
  uint8_t x_25; 
  x_25 = !lean_is_exclusive(x_14);
  if (x_25 == 0)
  {
  lean_object* x_26; lean_object* x_27; 
  x_26 = lean_ctor_get(x_14, 0);
  lean_dec(x_26);
  x_27 = lean_ctor_get(x_16, 0);
  lean_inc(x_27);
  lean_dec(x_16);
  lean_ctor_set(x_14, 0, x_27);
  return x_14;
  }
  else
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_28 = lean_ctor_get(x_14, 1);
  lean_inc(x_28);
  lean_dec(x_14);
  x_29 = lean_ctor_get(x_16, 0);
  lean_inc(x_29);
  lean_dec(x_16);
  x_30 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_30, 0, x_29);
  lean_ctor_set(x_30, 1, x_28);
  return x_30;
  }
  }
  }
  else
  {
  uint8_t x_31; 
  x_31 = !lean_is_exclusive(x_14);
  if (x_31 == 0)
  {
  return x_14;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; 
  x_32 = lean_ctor_get(x_14, 0);
  x_33 = lean_ctor_get(x_14, 1);
  lean_inc(x_33);
  lean_inc(x_32);
  lean_dec(x_14);
  x_34 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_34, 0, x_32);
  lean_ctor_set(x_34, 1, x_33);
  return x_34;
  }
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; 
  x_14 = l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_5);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_14;
  }
  }
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_9;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; uint8_t x_11; 
  x_10 = lean_ctor_get(x_1, 1);
  x_11 = lean_nat_dec_le(x_10, x_3);
  if (x_11 == 0)
  {
  lean_object* x_12; uint8_t x_13; 
  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; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_14 = lean_unsigned_to_nat(1u);
  x_15 = lean_nat_sub(x_2, x_14);
  lean_dec(x_2);
  x_16 = lean_ctor_get(x_4, 0);
  lean_inc(x_16);
  x_17 = lean_ctor_get(x_4, 1);
  lean_inc(x_17);
  lean_dec(x_4);
  x_18 = l_Lean_instInhabitedExpr;
  x_19 = lean_array_get(x_18, x_17, x_3);
  x_20 = lean_array_get(x_18, x_16, x_3);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_21 = l_Lean_Meta_addPPExplicitToExposeDiff_visit(x_19, x_20, x_5, x_6, x_7, x_8, x_9);
  x_22 = lean_ctor_get(x_21, 0);
  lean_inc(x_22);
  x_23 = lean_ctor_get(x_21, 1);
  lean_inc(x_23);
  lean_dec(x_21);
  x_24 = lean_ctor_get(x_22, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_22, 1);
  lean_inc(x_25);
  lean_dec(x_22);
  x_26 = lean_array_set(x_17, x_3, x_24);
  x_27 = lean_array_set(x_16, x_3, x_25);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_27);
  lean_ctor_set(x_28, 1, x_26);
  x_29 = lean_ctor_get(x_1, 2);
  x_30 = lean_nat_add(x_3, x_29);
  lean_dec(x_3);
  x_2 = x_15;
  x_3 = x_30;
  x_4 = x_28;
  x_9 = x_23;
  goto _start;
  }
  else
  {
  lean_object* x_32; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_3);
  lean_dec(x_2);
  x_32 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_32, 0, x_4);
  lean_ctor_set(x_32, 1, x_9);
  return x_32;
  }
  }
  else
  {
  lean_object* x_33; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_3);
  lean_dec(x_2);
  x_33 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_33, 0, x_4);
  lean_ctor_set(x_33, 1, x_9);
  return x_33;
  }
  }
  }
  lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  if (lean_obj_tag(x_9) == 0)
  {
  uint8_t x_10; 
  x_10 = !lean_is_exclusive(x_9);
  if (x_10 == 0)
  {
  return x_9;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_11 = lean_ctor_get(x_9, 0);
  x_12 = lean_ctor_get(x_9, 1);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_dec(x_9);
  x_13 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_13, 0, x_11);
  lean_ctor_set(x_13, 1, x_12);
  return x_13;
  }
  }
  else
  {
  uint8_t x_14; 
  x_14 = !lean_is_exclusive(x_9);
  if (x_14 == 0)
  {
  return x_9;
  }
  else
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_15 = lean_ctor_get(x_9, 0);
  x_16 = lean_ctor_get(x_9, 1);
  lean_inc(x_16);
  lean_inc(x_15);
  lean_dec(x_9);
  x_17 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_17, 0, x_15);
  lean_ctor_set(x_17, 1, x_16);
  return x_17;
  }
  }
  }
  }
  lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___rarg), 8, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_14 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_1);
  x_15 = lean_mk_array(x_1, x_14);
  x_16 = lean_unsigned_to_nat(1u);
  x_17 = lean_nat_sub(x_1, x_16);
  lean_dec(x_1);
  lean_inc(x_2);
  x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_15, x_17);
  lean_inc(x_3);
  x_19 = lean_mk_array(x_3, x_14);
  x_20 = lean_nat_sub(x_3, x_16);
  lean_dec(x_3);
  lean_inc(x_4);
  x_21 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_4, x_19, x_20);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_22 = l_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff(x_7, x_18, x_21, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_22) == 0)
  {
  lean_object* x_23; uint8_t x_24; 
  x_23 = lean_ctor_get(x_22, 0);
  lean_inc(x_23);
  x_24 = lean_unbox(x_23);
  lean_dec(x_23);
  if (x_24 == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; 
  lean_dec(x_4);
  lean_dec(x_2);
  x_25 = lean_ctor_get(x_22, 1);
  lean_inc(x_25);
  lean_dec(x_22);
  x_26 = lean_array_get_size(x_18);
  x_27 = lean_unsigned_to_nat(0u);
  lean_inc(x_26);
  x_28 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_28, 0, x_27);
  lean_ctor_set(x_28, 1, x_26);
  lean_ctor_set(x_28, 2, x_16);
  x_29 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_29, 0, x_21);
  lean_ctor_set(x_29, 1, x_18);
  x_30 = l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__1(x_28, x_26, x_27, x_29, x_9, x_10, x_11, x_12, x_25);
  lean_dec(x_28);
  x_31 = !lean_is_exclusive(x_30);
  if (x_31 == 0)
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  x_32 = lean_ctor_get(x_30, 0);
  x_33 = lean_ctor_get(x_32, 0);
  lean_inc(x_33);
  x_34 = lean_ctor_get(x_32, 1);
  lean_inc(x_34);
  lean_dec(x_32);
  x_35 = l_Lean_mkAppN(x_5, x_34);
  lean_dec(x_34);
  x_36 = l_Lean_mkAppN(x_6, x_33);
  lean_dec(x_33);
  x_37 = l_Lean_Expr_setAppPPExplicit(x_35);
  x_38 = l_Lean_Expr_setAppPPExplicit(x_36);
  x_39 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_39, 0, x_37);
  lean_ctor_set(x_39, 1, x_38);
  lean_ctor_set(x_30, 0, x_39);
  return x_30;
  }
  else
  {
  lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_40 = lean_ctor_get(x_30, 0);
  x_41 = lean_ctor_get(x_30, 1);
  lean_inc(x_41);
  lean_inc(x_40);
  lean_dec(x_30);
  x_42 = lean_ctor_get(x_40, 0);
  lean_inc(x_42);
  x_43 = lean_ctor_get(x_40, 1);
  lean_inc(x_43);
  lean_dec(x_40);
  x_44 = l_Lean_mkAppN(x_5, x_43);
  lean_dec(x_43);
  x_45 = l_Lean_mkAppN(x_6, x_42);
  lean_dec(x_42);
  x_46 = l_Lean_Expr_setAppPPExplicit(x_44);
  x_47 = l_Lean_Expr_setAppPPExplicit(x_45);
  x_48 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_48, 0, x_46);
  lean_ctor_set(x_48, 1, x_47);
  x_49 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_49, 0, x_48);
  lean_ctor_set(x_49, 1, x_41);
  return x_49;
  }
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_21);
  lean_dec(x_18);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_6);
  lean_dec(x_5);
  x_50 = !lean_is_exclusive(x_22);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; 
  x_51 = lean_ctor_get(x_22, 0);
  lean_dec(x_51);
  x_52 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_52, 0, x_2);
  lean_ctor_set(x_52, 1, x_4);
  lean_ctor_set(x_22, 0, x_52);
  return x_22;
  }
  else
  {
  lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_53 = lean_ctor_get(x_22, 1);
  lean_inc(x_53);
  lean_dec(x_22);
  x_54 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_54, 0, x_2);
  lean_ctor_set(x_54, 1, x_4);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_54);
  lean_ctor_set(x_55, 1, x_53);
  return x_55;
  }
  }
  }
  else
  {
  uint8_t x_56; 
  lean_dec(x_21);
  lean_dec(x_18);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_2);
  x_56 = !lean_is_exclusive(x_22);
  if (x_56 == 0)
  {
  return x_22;
  }
  else
  {
  lean_object* x_57; lean_object* x_58; lean_object* x_59; 
  x_57 = lean_ctor_get(x_22, 0);
  x_58 = lean_ctor_get(x_22, 1);
  lean_inc(x_58);
  lean_inc(x_57);
  lean_dec(x_22);
  x_59 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_59, 0, x_57);
  lean_ctor_set(x_59, 1, x_58);
  return x_59;
  }
  }
  }
  }
  lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; lean_object* x_15; 
  x_14 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__3___lambda__1___boxed), 13, 6);
  lean_closure_set(x_14, 0, x_3);
  lean_closure_set(x_14, 1, x_1);
  lean_closure_set(x_14, 2, x_4);
  lean_closure_set(x_14, 3, x_2);
  lean_closure_set(x_14, 4, x_5);
  lean_closure_set(x_14, 5, x_6);
  x_15 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux___rarg(x_7, x_8, x_14, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_15) == 0)
  {
  uint8_t x_16; 
  x_16 = !lean_is_exclusive(x_15);
  if (x_16 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_17 = lean_ctor_get(x_15, 0);
  x_18 = lean_ctor_get(x_15, 1);
  lean_inc(x_18);
  lean_inc(x_17);
  lean_dec(x_15);
  x_19 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_19, 0, x_17);
  lean_ctor_set(x_19, 1, x_18);
  return x_19;
  }
  }
  else
  {
  uint8_t x_20; 
  x_20 = !lean_is_exclusive(x_15);
  if (x_20 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_21 = lean_ctor_get(x_15, 0);
  x_22 = lean_ctor_get(x_15, 1);
  lean_inc(x_22);
  lean_inc(x_21);
  lean_dec(x_15);
  x_23 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_23, 0, x_21);
  lean_ctor_set(x_23, 1, x_22);
  return x_23;
  }
  }
  }
  }
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff_visit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  uint8_t x_8; 
  x_8 = l_Lean_Expr_isApp(x_1);
  if (x_8 == 0)
  {
  lean_object* x_9; lean_object* x_10; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_9 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_9, 0, x_1);
  lean_ctor_set(x_9, 1, x_2);
  x_10 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_10, 0, x_9);
  lean_ctor_set(x_10, 1, x_7);
  return x_10;
  }
  else
  {
  uint8_t x_11; 
  x_11 = l_Lean_Expr_isApp(x_2);
  if (x_11 == 0)
  {
  lean_object* x_12; lean_object* x_13; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_12 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_12, 0, x_1);
  lean_ctor_set(x_12, 1, x_2);
  x_13 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_13, 0, x_12);
  lean_ctor_set(x_13, 1, x_7);
  return x_13;
  }
  else
  {
  lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
  x_14 = lean_unsigned_to_nat(0u);
  x_15 = l_Lean_Expr_getAppNumArgsAux(x_1, x_14);
  x_16 = l_Lean_Expr_getAppNumArgsAux(x_2, x_14);
  x_17 = lean_nat_dec_eq(x_15, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; 
  lean_dec(x_16);
  lean_dec(x_15);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_18 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_18, 0, x_1);
  lean_ctor_set(x_18, 1, x_2);
  x_19 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_19, 0, x_18);
  lean_ctor_set(x_19, 1, x_7);
  return x_19;
  }
  else
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_20 = l_Lean_Expr_getAppFn(x_1);
  x_21 = l_Lean_Expr_getAppFn(x_2);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_21);
  lean_inc(x_20);
  x_22 = l_Lean_Meta_isExprDefEq(x_20, x_21, x_3, x_4, x_5, x_6, x_7);
  if (lean_obj_tag(x_22) == 0)
  {
  lean_object* x_23; uint8_t x_24; 
  x_23 = lean_ctor_get(x_22, 0);
  lean_inc(x_23);
  x_24 = lean_unbox(x_23);
  lean_dec(x_23);
  if (x_24 == 0)
  {
  uint8_t x_25; 
  lean_dec(x_21);
  lean_dec(x_20);
  lean_dec(x_16);
  lean_dec(x_15);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_25 = !lean_is_exclusive(x_22);
  if (x_25 == 0)
  {
  lean_object* x_26; lean_object* x_27; 
  x_26 = lean_ctor_get(x_22, 0);
  lean_dec(x_26);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_1);
  lean_ctor_set(x_27, 1, x_2);
  lean_ctor_set(x_22, 0, x_27);
  return x_22;
  }
  else
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_28 = lean_ctor_get(x_22, 1);
  lean_inc(x_28);
  lean_dec(x_22);
  x_29 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_29, 0, x_1);
  lean_ctor_set(x_29, 1, x_2);
  x_30 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_30, 0, x_29);
  lean_ctor_set(x_30, 1, x_28);
  return x_30;
  }
  }
  else
  {
  lean_object* x_31; lean_object* x_32; 
  x_31 = lean_ctor_get(x_22, 1);
  lean_inc(x_31);
  lean_dec(x_22);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_20);
  x_32 = l_Lean_Meta_inferType(x_20, x_3, x_4, x_5, x_6, x_31);
  if (lean_obj_tag(x_32) == 0)
  {
  lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
  x_33 = lean_ctor_get(x_32, 0);
  lean_inc(x_33);
  x_34 = lean_ctor_get(x_32, 1);
  lean_inc(x_34);
  lean_dec(x_32);
  lean_inc(x_15);
  x_35 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_35, 0, x_15);
  lean_inc(x_2);
  lean_inc(x_1);
  x_36 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__3(x_1, x_2, x_15, x_16, x_20, x_21, x_33, x_35, x_3, x_4, x_5, x_6, x_34);
  if (lean_obj_tag(x_36) == 0)
  {
  uint8_t x_37; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_37 = !lean_is_exclusive(x_36);
  if (x_37 == 0)
  {
  return x_36;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_36, 0);
  x_39 = lean_ctor_get(x_36, 1);
  lean_inc(x_39);
  lean_inc(x_38);
  lean_dec(x_36);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_38);
  lean_ctor_set(x_40, 1, x_39);
  return x_40;
  }
  }
  else
  {
  uint8_t x_41; 
  x_41 = !lean_is_exclusive(x_36);
  if (x_41 == 0)
  {
  lean_object* x_42; lean_object* x_43; 
  x_42 = lean_ctor_get(x_36, 0);
  lean_dec(x_42);
  x_43 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_43, 0, x_1);
  lean_ctor_set(x_43, 1, x_2);
  lean_ctor_set_tag(x_36, 0);
  lean_ctor_set(x_36, 0, x_43);
  return x_36;
  }
  else
  {
  lean_object* x_44; lean_object* x_45; lean_object* x_46; 
  x_44 = lean_ctor_get(x_36, 1);
  lean_inc(x_44);
  lean_dec(x_36);
  x_45 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_45, 0, x_1);
  lean_ctor_set(x_45, 1, x_2);
  x_46 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_46, 0, x_45);
  lean_ctor_set(x_46, 1, x_44);
  return x_46;
  }
  }
  }
  else
  {
  uint8_t x_47; 
  lean_dec(x_21);
  lean_dec(x_20);
  lean_dec(x_16);
  lean_dec(x_15);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_47 = !lean_is_exclusive(x_32);
  if (x_47 == 0)
  {
  lean_object* x_48; lean_object* x_49; 
  x_48 = lean_ctor_get(x_32, 0);
  lean_dec(x_48);
  x_49 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_49, 0, x_1);
  lean_ctor_set(x_49, 1, x_2);
  lean_ctor_set_tag(x_32, 0);
  lean_ctor_set(x_32, 0, x_49);
  return x_32;
  }
  else
  {
  lean_object* x_50; lean_object* x_51; lean_object* x_52; 
  x_50 = lean_ctor_get(x_32, 1);
  lean_inc(x_50);
  lean_dec(x_32);
  x_51 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_51, 0, x_1);
  lean_ctor_set(x_51, 1, x_2);
  x_52 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_52, 0, x_51);
  lean_ctor_set(x_52, 1, x_50);
  return x_52;
  }
  }
  }
  }
  else
  {
  uint8_t x_53; 
  lean_dec(x_21);
  lean_dec(x_20);
  lean_dec(x_16);
  lean_dec(x_15);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_53 = !lean_is_exclusive(x_22);
  if (x_53 == 0)
  {
  lean_object* x_54; lean_object* x_55; 
  x_54 = lean_ctor_get(x_22, 0);
  lean_dec(x_54);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_1);
  lean_ctor_set(x_55, 1, x_2);
  lean_ctor_set_tag(x_22, 0);
  lean_ctor_set(x_22, 0, x_55);
  return x_22;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; 
  x_56 = lean_ctor_get(x_22, 1);
  lean_inc(x_56);
  lean_dec(x_22);
  x_57 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_57, 0, x_1);
  lean_ctor_set(x_57, 1, x_2);
  x_58 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_58, 0, x_57);
  lean_ctor_set(x_58, 1, x_56);
  return x_58;
  }
  }
  }
  }
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; 
  x_10 = l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  lean_dec(x_1);
  return x_10;
  }
  }
  lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; 
  x_14 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_8);
  lean_dec(x_7);
  return x_14;
  }
  }
  static lean_object* _init_l_Lean_Meta_addPPExplicitToExposeDiff___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("all");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_addPPExplicitToExposeDiff___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_getSanitizeNames___closed__2;
  x_2 = l_Lean_Meta_addPPExplicitToExposeDiff___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Meta_addPPExplicitToExposeDiff(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; uint8_t x_10; uint8_t x_11; 
  x_8 = lean_ctor_get(x_5, 0);
  lean_inc(x_8);
  x_9 = l_Lean_Meta_addPPExplicitToExposeDiff___closed__2;
  x_10 = 0;
  x_11 = l_Lean_KVMap_getBool(x_8, x_9, x_10);
  if (x_11 == 0)
  {
  lean_object* x_12; uint8_t x_13; 
  x_12 = l_Lean_Expr_setPPExplicit___closed__1;
  x_13 = l_Lean_KVMap_getBool(x_8, x_12, x_10);
  lean_dec(x_8);
  if (x_13 == 0)
  {
  lean_object* x_14; 
  x_14 = l_Lean_Meta_addPPExplicitToExposeDiff_visit(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  return x_14;
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_15 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_15, 0, x_1);
  lean_ctor_set(x_15, 1, x_2);
  x_16 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_16, 0, x_15);
  lean_ctor_set(x_16, 1, x_7);
  return x_16;
  }
  }
  else
  {
  lean_object* x_17; lean_object* x_18; 
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_17 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_17, 0, x_1);
  lean_ctor_set(x_17, 1, x_2);
  x_18 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_18, 0, x_17);
  lean_ctor_set(x_18, 1, x_7);
  return x_18;
  }
  }
  }
  static lean_object* _init_l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("has type");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; uint8_t x_9; 
  x_8 = l_Lean_Meta_addPPExplicitToExposeDiff(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  x_9 = !lean_is_exclusive(x_8);
  if (x_9 == 0)
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
  x_10 = lean_ctor_get(x_8, 0);
  x_11 = lean_ctor_get(x_10, 0);
  lean_inc(x_11);
  x_12 = lean_ctor_get(x_10, 1);
  lean_inc(x_12);
  lean_dec(x_10);
  x_13 = l_Lean_indentExpr(x_11);
  x_14 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2;
  x_15 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_15, 0, x_14);
  lean_ctor_set(x_15, 1, x_13);
  x_16 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9;
  x_17 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_17, 0, x_15);
  lean_ctor_set(x_17, 1, x_16);
  x_18 = l_Lean_indentExpr(x_12);
  x_19 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_19, 0, x_17);
  lean_ctor_set(x_19, 1, x_18);
  x_20 = l_Lean_KernelException_toMessageData___closed__15;
  x_21 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_21, 0, x_19);
  lean_ctor_set(x_21, 1, x_20);
  lean_ctor_set(x_8, 0, x_21);
  return x_8;
  }
  else
  {
  lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
  x_22 = lean_ctor_get(x_8, 0);
  x_23 = lean_ctor_get(x_8, 1);
  lean_inc(x_23);
  lean_inc(x_22);
  lean_dec(x_8);
  x_24 = lean_ctor_get(x_22, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_22, 1);
  lean_inc(x_25);
  lean_dec(x_22);
  x_26 = l_Lean_indentExpr(x_24);
  x_27 = l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2;
  x_28 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_28, 0, x_27);
  lean_ctor_set(x_28, 1, x_26);
  x_29 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9;
  x_30 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_30, 0, x_28);
  lean_ctor_set(x_30, 1, x_29);
  x_31 = l_Lean_indentExpr(x_25);
  x_32 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_32, 0, x_30);
  lean_ctor_set(x_32, 1, x_31);
  x_33 = l_Lean_KernelException_toMessageData___closed__15;
  x_34 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_34, 0, x_32);
  lean_ctor_set(x_34, 1, x_33);
  x_35 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_35, 0, x_34);
  lean_ctor_set(x_35, 1, x_23);
  return x_35;
  }
  }
  }
  lean_object* l_Lean_Meta_throwAppTypeMismatch_match__1___rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = lean_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_apply_2(x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Meta_throwAppTypeMismatch_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_throwAppTypeMismatch_match__1___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_throwError___at_Lean_Meta_throwAppTypeMismatch___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; lean_object* x_8; uint8_t x_9; 
  x_7 = lean_ctor_get(x_4, 3);
  x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
  x_9 = !lean_is_exclusive(x_8);
  if (x_9 == 0)
  {
  lean_object* x_10; lean_object* x_11; 
  x_10 = lean_ctor_get(x_8, 0);
  lean_inc(x_7);
  x_11 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_11, 0, x_7);
  lean_ctor_set(x_11, 1, x_10);
  lean_ctor_set_tag(x_8, 1);
  lean_ctor_set(x_8, 0, x_11);
  return x_8;
  }
  else
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = lean_ctor_get(x_8, 0);
  x_13 = lean_ctor_get(x_8, 1);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_dec(x_8);
  lean_inc(x_7);
  x_14 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_14, 0, x_7);
  lean_ctor_set(x_14, 1, x_12);
  x_15 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_15, 0, x_14);
  lean_ctor_set(x_15, 1, x_13);
  return x_15;
  }
  }
  }
  lean_object* l_Lean_throwError___at_Lean_Meta_throwAppTypeMismatch___spec__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Meta_throwAppTypeMismatch___spec__1___rarg___boxed), 6, 0);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("\nargument");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; 
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_1);
  x_10 = l_Lean_Meta_inferType(x_1, x_5, x_6, x_7, x_8, x_9);
  if (lean_obj_tag(x_10) == 0)
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_11 = lean_ctor_get(x_10, 0);
  lean_inc(x_11);
  x_12 = lean_ctor_get(x_10, 1);
  lean_inc(x_12);
  lean_dec(x_10);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_13 = l_Lean_Meta_mkHasTypeButIsExpectedMsg(x_11, x_2, x_5, x_6, x_7, x_8, x_12);
  x_14 = lean_ctor_get(x_13, 0);
  lean_inc(x_14);
  x_15 = lean_ctor_get(x_13, 1);
  lean_inc(x_15);
  lean_dec(x_13);
  x_16 = l_Lean_indentExpr(x_3);
  x_17 = l_Lean_KernelException_toMessageData___closed__29;
  x_18 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_18, 0, x_17);
  lean_ctor_set(x_18, 1, x_16);
  x_19 = l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__2;
  x_20 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_20, 0, x_18);
  lean_ctor_set(x_20, 1, x_19);
  x_21 = l_Lean_indentExpr(x_1);
  x_22 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_22, 0, x_20);
  lean_ctor_set(x_22, 1, x_21);
  x_23 = l_Array_foldlMUnsafe_fold___at___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___spec__5___closed__1;
  x_24 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_24, 0, x_22);
  lean_ctor_set(x_24, 1, x_23);
  x_25 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_25, 0, x_24);
  lean_ctor_set(x_25, 1, x_14);
  x_26 = l_Lean_KernelException_toMessageData___closed__15;
  x_27 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_27, 0, x_25);
  lean_ctor_set(x_27, 1, x_26);
  x_28 = l_Lean_throwError___at_Lean_Meta_throwAppTypeMismatch___spec__1___rarg(x_27, x_5, x_6, x_7, x_8, x_15);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_28;
  }
  else
  {
  uint8_t x_29; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_29 = !lean_is_exclusive(x_10);
  if (x_29 == 0)
  {
  return x_10;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_10, 0);
  x_31 = lean_ctor_get(x_10, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_10);
  x_32 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_32, 0, x_30);
  lean_ctor_set(x_32, 1, x_31);
  return x_32;
  }
  }
  }
  }
  lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_1);
  x_9 = l___private_Lean_Meta_Check_0__Lean_Meta_getFunctionDomain(x_1, x_4, x_5, x_6, x_7, x_8);
  if (lean_obj_tag(x_9) == 0)
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; 
  x_10 = lean_ctor_get(x_9, 0);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_9, 1);
  lean_inc(x_11);
  lean_dec(x_9);
  x_12 = lean_ctor_get(x_10, 0);
  lean_inc(x_12);
  x_13 = lean_ctor_get(x_10, 1);
  lean_inc(x_13);
  lean_dec(x_10);
  lean_inc(x_2);
  x_14 = l_Lean_mkApp(x_1, x_2);
  x_15 = lean_unbox(x_13);
  lean_dec(x_13);
  x_16 = l_Lean_BinderInfo_isExplicit(x_15);
  if (x_16 == 0)
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_17 = l_Lean_Expr_setAppPPExplicit(x_14);
  x_18 = lean_box(0);
  x_19 = l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1(x_2, x_12, x_17, x_18, x_4, x_5, x_6, x_7, x_11);
  return x_19;
  }
  else
  {
  lean_object* x_20; lean_object* x_21; 
  x_20 = lean_box(0);
  x_21 = l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1(x_2, x_12, x_14, x_20, x_4, x_5, x_6, x_7, x_11);
  return x_21;
  }
  }
  else
  {
  uint8_t x_22; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_2);
  lean_dec(x_1);
  x_22 = !lean_is_exclusive(x_9);
  if (x_22 == 0)
  {
  return x_9;
  }
  else
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; 
  x_23 = lean_ctor_get(x_9, 0);
  x_24 = lean_ctor_get(x_9, 1);
  lean_inc(x_24);
  lean_inc(x_23);
  lean_dec(x_9);
  x_25 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_25, 0, x_23);
  lean_ctor_set(x_25, 1, x_24);
  return x_25;
  }
  }
  }
  }
  lean_object* l_Lean_Meta_throwAppTypeMismatch(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_throwAppTypeMismatch___rarg___boxed), 8, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_throwError___at_Lean_Meta_throwAppTypeMismatch___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; 
  x_7 = l_Lean_throwError___at_Lean_Meta_throwAppTypeMismatch___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_7;
  }
  }
  lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; 
  x_10 = l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  lean_dec(x_4);
  return x_10;
  }
  }
  lean_object* l_Lean_Meta_throwAppTypeMismatch___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_Meta_throwAppTypeMismatch___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  return x_9;
  }
  }
  lean_object* l_Lean_Meta_checkApp(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_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_1);
  x_8 = l_Lean_Meta_inferType(x_1, x_3, x_4, x_5, x_6, x_7);
  if (lean_obj_tag(x_8) == 0)
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; 
  x_9 = lean_ctor_get(x_8, 0);
  lean_inc(x_9);
  x_10 = lean_ctor_get(x_8, 1);
  lean_inc(x_10);
  lean_dec(x_8);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_11 = l_Lean_Meta_whnf(x_9, x_3, x_4, x_5, x_6, x_10);
  if (lean_obj_tag(x_11) == 0)
  {
  lean_object* x_12; 
  x_12 = lean_ctor_get(x_11, 0);
  lean_inc(x_12);
  if (lean_obj_tag(x_12) == 7)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_13 = lean_ctor_get(x_11, 1);
  lean_inc(x_13);
  lean_dec(x_11);
  x_14 = lean_ctor_get(x_12, 1);
  lean_inc(x_14);
  lean_dec(x_12);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_15 = l_Lean_Meta_inferType(x_2, x_3, x_4, x_5, x_6, x_13);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  x_16 = lean_ctor_get(x_15, 0);
  lean_inc(x_16);
  x_17 = lean_ctor_get(x_15, 1);
  lean_inc(x_17);
  lean_dec(x_15);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_18 = l_Lean_Meta_isExprDefEq(x_14, x_16, x_3, x_4, x_5, x_6, x_17);
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_19; uint8_t x_20; 
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  x_20 = lean_unbox(x_19);
  lean_dec(x_19);
  if (x_20 == 0)
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_21 = lean_ctor_get(x_18, 1);
  lean_inc(x_21);
  lean_dec(x_18);
  x_22 = l_Lean_instInhabitedMessageData___closed__1;
  x_23 = l_Lean_Meta_throwAppTypeMismatch___rarg(x_1, x_2, x_22, x_3, x_4, x_5, x_6, x_21);
  return x_23;
  }
  else
  {
  uint8_t x_24; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_24 = !lean_is_exclusive(x_18);
  if (x_24 == 0)
  {
  lean_object* x_25; lean_object* x_26; 
  x_25 = lean_ctor_get(x_18, 0);
  lean_dec(x_25);
  x_26 = lean_box(0);
  lean_ctor_set(x_18, 0, x_26);
  return x_18;
  }
  else
  {
  lean_object* x_27; lean_object* x_28; lean_object* x_29; 
  x_27 = lean_ctor_get(x_18, 1);
  lean_inc(x_27);
  lean_dec(x_18);
  x_28 = lean_box(0);
  x_29 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_29, 0, x_28);
  lean_ctor_set(x_29, 1, x_27);
  return x_29;
  }
  }
  }
  else
  {
  uint8_t x_30; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_30 = !lean_is_exclusive(x_18);
  if (x_30 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_31; lean_object* x_32; lean_object* x_33; 
  x_31 = lean_ctor_get(x_18, 0);
  x_32 = lean_ctor_get(x_18, 1);
  lean_inc(x_32);
  lean_inc(x_31);
  lean_dec(x_18);
  x_33 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_33, 0, x_31);
  lean_ctor_set(x_33, 1, x_32);
  return x_33;
  }
  }
  }
  else
  {
  uint8_t x_34; 
  lean_dec(x_14);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_34 = !lean_is_exclusive(x_15);
  if (x_34 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  x_35 = lean_ctor_get(x_15, 0);
  x_36 = lean_ctor_get(x_15, 1);
  lean_inc(x_36);
  lean_inc(x_35);
  lean_dec(x_15);
  x_37 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_37, 0, x_35);
  lean_ctor_set(x_37, 1, x_36);
  return x_37;
  }
  }
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  lean_dec(x_12);
  x_38 = lean_ctor_get(x_11, 1);
  lean_inc(x_38);
  lean_dec(x_11);
  x_39 = l_Lean_mkApp(x_1, x_2);
  x_40 = l_Lean_Meta_throwFunctionExpected___rarg(x_39, x_3, x_4, x_5, x_6, x_38);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_40;
  }
  }
  else
  {
  uint8_t x_41; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_41 = !lean_is_exclusive(x_11);
  if (x_41 == 0)
  {
  return x_11;
  }
  else
  {
  lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_42 = lean_ctor_get(x_11, 0);
  x_43 = lean_ctor_get(x_11, 1);
  lean_inc(x_43);
  lean_inc(x_42);
  lean_dec(x_11);
  x_44 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_44, 0, x_42);
  lean_ctor_set(x_44, 1, x_43);
  return x_44;
  }
  }
  }
  else
  {
  uint8_t x_45; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_45 = !lean_is_exclusive(x_8);
  if (x_45 == 0)
  {
  return x_8;
  }
  else
  {
  lean_object* x_46; lean_object* x_47; lean_object* x_48; 
  x_46 = lean_ctor_get(x_8, 0);
  x_47 = lean_ctor_get(x_8, 1);
  lean_inc(x_47);
  lean_inc(x_46);
  lean_dec(x_8);
  x_48 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_48, 0, x_46);
  lean_ctor_set(x_48, 1, x_47);
  return x_48;
  }
  }
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; 
  lean_dec(x_3);
  x_4 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  x_5 = lean_ctor_get(x_1, 1);
  lean_inc(x_5);
  x_6 = lean_ctor_get(x_1, 2);
  lean_inc(x_6);
  x_7 = lean_ctor_get(x_1, 3);
  lean_inc(x_7);
  x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*4);
  lean_dec(x_1);
  x_9 = lean_box(x_8);
  x_10 = lean_apply_5(x_2, x_4, x_5, x_6, x_7, x_9);
  return x_10;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; 
  lean_dec(x_2);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  x_12 = lean_ctor_get(x_1, 1);
  lean_inc(x_12);
  x_13 = lean_ctor_get(x_1, 2);
  lean_inc(x_13);
  x_14 = lean_ctor_get(x_1, 3);
  lean_inc(x_14);
  x_15 = lean_ctor_get(x_1, 4);
  lean_inc(x_15);
  x_16 = lean_ctor_get_uint8(x_1, sizeof(void*)*5);
  lean_dec(x_1);
  x_17 = lean_box(x_16);
  x_18 = lean_apply_6(x_3, x_11, x_12, x_13, x_14, x_15, x_17);
  return x_18;
  }
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  lean_object* x_10; lean_object* x_11; uint64_t x_12; lean_object* x_13; lean_object* x_14; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_10 = lean_ctor_get(x_1, 0);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_1, 1);
  lean_inc(x_11);
  x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  lean_dec(x_1);
  x_13 = lean_box_uint64(x_12);
  x_14 = lean_apply_3(x_5, x_10, x_11, x_13);
  return x_14;
  }
  case 5:
  {
  lean_object* x_15; lean_object* x_16; uint64_t x_17; lean_object* x_18; lean_object* x_19; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_15 = lean_ctor_get(x_1, 0);
  lean_inc(x_15);
  x_16 = lean_ctor_get(x_1, 1);
  lean_inc(x_16);
  x_17 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  lean_dec(x_1);
  x_18 = lean_box_uint64(x_17);
  x_19 = lean_apply_3(x_6, x_15, x_16, x_18);
  return x_19;
  }
  case 6:
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; uint64_t x_23; lean_object* x_24; lean_object* x_25; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_2);
  x_20 = lean_ctor_get(x_1, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_1, 1);
  lean_inc(x_21);
  x_22 = lean_ctor_get(x_1, 2);
  lean_inc(x_22);
  x_23 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_24 = lean_box_uint64(x_23);
  x_25 = lean_apply_5(x_3, x_1, x_20, x_21, x_22, x_24);
  return x_25;
  }
  case 7:
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; uint64_t x_29; lean_object* x_30; lean_object* x_31; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_26 = lean_ctor_get(x_1, 0);
  lean_inc(x_26);
  x_27 = lean_ctor_get(x_1, 1);
  lean_inc(x_27);
  x_28 = lean_ctor_get(x_1, 2);
  lean_inc(x_28);
  x_29 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_30 = lean_box_uint64(x_29);
  x_31 = lean_apply_5(x_2, x_1, x_26, x_27, x_28, x_30);
  return x_31;
  }
  case 8:
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint64_t x_36; lean_object* x_37; lean_object* x_38; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_3);
  lean_dec(x_2);
  x_32 = lean_ctor_get(x_1, 0);
  lean_inc(x_32);
  x_33 = lean_ctor_get(x_1, 1);
  lean_inc(x_33);
  x_34 = lean_ctor_get(x_1, 2);
  lean_inc(x_34);
  x_35 = lean_ctor_get(x_1, 3);
  lean_inc(x_35);
  x_36 = lean_ctor_get_uint64(x_1, sizeof(void*)*4);
  x_37 = lean_box_uint64(x_36);
  x_38 = lean_apply_6(x_4, x_1, x_32, x_33, x_34, x_35, x_37);
  return x_38;
  }
  case 10:
  {
  lean_object* x_39; lean_object* x_40; uint64_t x_41; lean_object* x_42; lean_object* x_43; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_39 = lean_ctor_get(x_1, 0);
  lean_inc(x_39);
  x_40 = lean_ctor_get(x_1, 1);
  lean_inc(x_40);
  x_41 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  lean_dec(x_1);
  x_42 = lean_box_uint64(x_41);
  x_43 = lean_apply_3(x_7, x_39, x_40, x_42);
  return x_43;
  }
  case 11:
  {
  lean_object* x_44; lean_object* x_45; lean_object* x_46; uint64_t x_47; lean_object* x_48; lean_object* x_49; 
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_44 = lean_ctor_get(x_1, 0);
  lean_inc(x_44);
  x_45 = lean_ctor_get(x_1, 1);
  lean_inc(x_45);
  x_46 = lean_ctor_get(x_1, 2);
  lean_inc(x_46);
  x_47 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  lean_dec(x_1);
  x_48 = lean_box_uint64(x_47);
  x_49 = lean_apply_4(x_8, x_44, x_45, x_46, x_48);
  return x_49;
  }
  default: 
  {
  lean_object* x_50; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_50 = lean_apply_1(x_9, x_1);
  return x_50;
  }
  }
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_match__1___rarg), 9, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_1, x_3, x_4, x_5, x_6, x_7);
  return x_8;
  }
  }
  lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; lean_object* x_11; uint8_t x_16; 
  x_16 = x_2 == x_3;
  if (x_16 == 0)
  {
  lean_object* x_17; lean_object* x_18; 
  lean_dec(x_4);
  x_17 = lean_array_uget(x_1, x_2);
  lean_inc(x_5);
  x_18 = l_Lean_Meta_getFVarLocalDecl(x_17, x_5, x_6, x_7, x_8, x_9);
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_19; 
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  lean_dec(x_17);
  x_20 = lean_ctor_get(x_18, 1);
  lean_inc(x_20);
  lean_dec(x_18);
  x_21 = lean_ctor_get(x_19, 3);
  lean_inc(x_21);
  lean_dec(x_19);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_21);
  x_22 = l___private_Lean_Meta_Check_0__Lean_Meta_ensureType(x_21, x_5, x_6, x_7, x_8, x_20);
  if (lean_obj_tag(x_22) == 0)
  {
  lean_object* x_23; lean_object* x_24; 
  x_23 = lean_ctor_get(x_22, 1);
  lean_inc(x_23);
  lean_dec(x_22);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_24 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_21, x_5, x_6, x_7, x_8, x_23);
  if (lean_obj_tag(x_24) == 0)
  {
  lean_object* x_25; lean_object* x_26; 
  x_25 = lean_ctor_get(x_24, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_24, 1);
  lean_inc(x_26);
  lean_dec(x_24);
  x_10 = x_25;
  x_11 = x_26;
  goto block_15;
  }
  else
  {
  uint8_t x_27; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_27 = !lean_is_exclusive(x_24);
  if (x_27 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_28 = lean_ctor_get(x_24, 0);
  x_29 = lean_ctor_get(x_24, 1);
  lean_inc(x_29);
  lean_inc(x_28);
  lean_dec(x_24);
  x_30 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_30, 0, x_28);
  lean_ctor_set(x_30, 1, x_29);
  return x_30;
  }
  }
  }
  else
  {
  uint8_t x_31; 
  lean_dec(x_21);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_31 = !lean_is_exclusive(x_22);
  if (x_31 == 0)
  {
  return x_22;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; 
  x_32 = lean_ctor_get(x_22, 0);
  x_33 = lean_ctor_get(x_22, 1);
  lean_inc(x_33);
  lean_inc(x_32);
  lean_dec(x_22);
  x_34 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_34, 0, x_32);
  lean_ctor_set(x_34, 1, x_33);
  return x_34;
  }
  }
  }
  else
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
  x_35 = lean_ctor_get(x_18, 1);
  lean_inc(x_35);
  lean_dec(x_18);
  x_36 = lean_ctor_get(x_19, 3);
  lean_inc(x_36);
  x_37 = lean_ctor_get(x_19, 4);
  lean_inc(x_37);
  lean_dec(x_19);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_36);
  x_38 = l___private_Lean_Meta_Check_0__Lean_Meta_ensureType(x_36, x_5, x_6, x_7, x_8, x_35);
  if (lean_obj_tag(x_38) == 0)
  {
  lean_object* x_39; lean_object* x_40; 
  x_39 = lean_ctor_get(x_38, 1);
  lean_inc(x_39);
  lean_dec(x_38);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_36);
  x_40 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_36, x_5, x_6, x_7, x_8, x_39);
  if (lean_obj_tag(x_40) == 0)
  {
  lean_object* x_41; lean_object* x_42; 
  x_41 = lean_ctor_get(x_40, 1);
  lean_inc(x_41);
  lean_dec(x_40);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_37);
  x_42 = l_Lean_Meta_inferType(x_37, x_5, x_6, x_7, x_8, x_41);
  if (lean_obj_tag(x_42) == 0)
  {
  lean_object* x_43; lean_object* x_44; lean_object* x_45; 
  x_43 = lean_ctor_get(x_42, 0);
  lean_inc(x_43);
  x_44 = lean_ctor_get(x_42, 1);
  lean_inc(x_44);
  lean_dec(x_42);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_45 = l_Lean_Meta_isExprDefEq(x_36, x_43, x_5, x_6, x_7, x_8, x_44);
  if (lean_obj_tag(x_45) == 0)
  {
  lean_object* x_46; uint8_t x_47; 
  x_46 = lean_ctor_get(x_45, 0);
  lean_inc(x_46);
  x_47 = lean_unbox(x_46);
  lean_dec(x_46);
  if (x_47 == 0)
  {
  lean_object* x_48; lean_object* x_49; lean_object* x_50; 
  x_48 = lean_ctor_get(x_45, 1);
  lean_inc(x_48);
  lean_dec(x_45);
  x_49 = l_Lean_Expr_fvarId_x21(x_17);
  lean_dec(x_17);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_50 = l_Lean_Meta_throwLetTypeMismatchMessage___rarg(x_49, x_5, x_6, x_7, x_8, x_48);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; 
  x_51 = lean_ctor_get(x_50, 1);
  lean_inc(x_51);
  lean_dec(x_50);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_52 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_37, x_5, x_6, x_7, x_8, x_51);
  if (lean_obj_tag(x_52) == 0)
  {
  lean_object* x_53; lean_object* x_54; 
  x_53 = lean_ctor_get(x_52, 0);
  lean_inc(x_53);
  x_54 = lean_ctor_get(x_52, 1);
  lean_inc(x_54);
  lean_dec(x_52);
  x_10 = x_53;
  x_11 = x_54;
  goto block_15;
  }
  else
  {
  uint8_t x_55; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_55 = !lean_is_exclusive(x_52);
  if (x_55 == 0)
  {
  return x_52;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; 
  x_56 = lean_ctor_get(x_52, 0);
  x_57 = lean_ctor_get(x_52, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_52);
  x_58 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_58, 0, x_56);
  lean_ctor_set(x_58, 1, x_57);
  return x_58;
  }
  }
  }
  else
  {
  uint8_t x_59; 
  lean_dec(x_37);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_59 = !lean_is_exclusive(x_50);
  if (x_59 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_60 = lean_ctor_get(x_50, 0);
  x_61 = lean_ctor_get(x_50, 1);
  lean_inc(x_61);
  lean_inc(x_60);
  lean_dec(x_50);
  x_62 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_62, 0, x_60);
  lean_ctor_set(x_62, 1, x_61);
  return x_62;
  }
  }
  }
  else
  {
  lean_object* x_63; lean_object* x_64; 
  lean_dec(x_17);
  x_63 = lean_ctor_get(x_45, 1);
  lean_inc(x_63);
  lean_dec(x_45);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_64 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_37, x_5, x_6, x_7, x_8, x_63);
  if (lean_obj_tag(x_64) == 0)
  {
  lean_object* x_65; lean_object* x_66; 
  x_65 = lean_ctor_get(x_64, 0);
  lean_inc(x_65);
  x_66 = lean_ctor_get(x_64, 1);
  lean_inc(x_66);
  lean_dec(x_64);
  x_10 = x_65;
  x_11 = x_66;
  goto block_15;
  }
  else
  {
  uint8_t x_67; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_67 = !lean_is_exclusive(x_64);
  if (x_67 == 0)
  {
  return x_64;
  }
  else
  {
  lean_object* x_68; lean_object* x_69; lean_object* x_70; 
  x_68 = lean_ctor_get(x_64, 0);
  x_69 = lean_ctor_get(x_64, 1);
  lean_inc(x_69);
  lean_inc(x_68);
  lean_dec(x_64);
  x_70 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_70, 0, x_68);
  lean_ctor_set(x_70, 1, x_69);
  return x_70;
  }
  }
  }
  }
  else
  {
  uint8_t x_71; 
  lean_dec(x_37);
  lean_dec(x_17);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_71 = !lean_is_exclusive(x_45);
  if (x_71 == 0)
  {
  return x_45;
  }
  else
  {
  lean_object* x_72; lean_object* x_73; lean_object* x_74; 
  x_72 = lean_ctor_get(x_45, 0);
  x_73 = lean_ctor_get(x_45, 1);
  lean_inc(x_73);
  lean_inc(x_72);
  lean_dec(x_45);
  x_74 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_74, 0, x_72);
  lean_ctor_set(x_74, 1, x_73);
  return x_74;
  }
  }
  }
  else
  {
  uint8_t x_75; 
  lean_dec(x_37);
  lean_dec(x_36);
  lean_dec(x_17);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_75 = !lean_is_exclusive(x_42);
  if (x_75 == 0)
  {
  return x_42;
  }
  else
  {
  lean_object* x_76; lean_object* x_77; lean_object* x_78; 
  x_76 = lean_ctor_get(x_42, 0);
  x_77 = lean_ctor_get(x_42, 1);
  lean_inc(x_77);
  lean_inc(x_76);
  lean_dec(x_42);
  x_78 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_78, 0, x_76);
  lean_ctor_set(x_78, 1, x_77);
  return x_78;
  }
  }
  }
  else
  {
  uint8_t x_79; 
  lean_dec(x_37);
  lean_dec(x_36);
  lean_dec(x_17);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_79 = !lean_is_exclusive(x_40);
  if (x_79 == 0)
  {
  return x_40;
  }
  else
  {
  lean_object* x_80; lean_object* x_81; lean_object* x_82; 
  x_80 = lean_ctor_get(x_40, 0);
  x_81 = lean_ctor_get(x_40, 1);
  lean_inc(x_81);
  lean_inc(x_80);
  lean_dec(x_40);
  x_82 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_82, 0, x_80);
  lean_ctor_set(x_82, 1, x_81);
  return x_82;
  }
  }
  }
  else
  {
  uint8_t x_83; 
  lean_dec(x_37);
  lean_dec(x_36);
  lean_dec(x_17);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_83 = !lean_is_exclusive(x_38);
  if (x_83 == 0)
  {
  return x_38;
  }
  else
  {
  lean_object* x_84; lean_object* x_85; lean_object* x_86; 
  x_84 = lean_ctor_get(x_38, 0);
  x_85 = lean_ctor_get(x_38, 1);
  lean_inc(x_85);
  lean_inc(x_84);
  lean_dec(x_38);
  x_86 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_86, 0, x_84);
  lean_ctor_set(x_86, 1, x_85);
  return x_86;
  }
  }
  }
  }
  else
  {
  uint8_t x_87; 
  lean_dec(x_17);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_87 = !lean_is_exclusive(x_18);
  if (x_87 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_88; lean_object* x_89; lean_object* x_90; 
  x_88 = lean_ctor_get(x_18, 0);
  x_89 = lean_ctor_get(x_18, 1);
  lean_inc(x_89);
  lean_inc(x_88);
  lean_dec(x_18);
  x_90 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_90, 0, x_88);
  lean_ctor_set(x_90, 1, x_89);
  return x_90;
  }
  }
  }
  else
  {
  lean_object* x_91; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_91 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_91, 0, x_4);
  lean_ctor_set(x_91, 1, x_9);
  return x_91;
  }
  block_15:
  {
  size_t x_12; size_t x_13; 
  x_12 = 1;
  x_13 = x_2 + x_12;
  x_2 = x_13;
  x_4 = x_10;
  x_9 = x_11;
  goto _start;
  }
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; uint8_t x_10; 
  x_8 = lean_array_get_size(x_1);
  x_9 = lean_unsigned_to_nat(0u);
  x_10 = lean_nat_dec_lt(x_9, x_8);
  if (x_10 == 0)
  {
  lean_object* x_11; 
  lean_dec(x_8);
  x_11 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_2, x_3, x_4, x_5, x_6, x_7);
  return x_11;
  }
  else
  {
  uint8_t x_12; 
  x_12 = lean_nat_dec_le(x_8, x_8);
  if (x_12 == 0)
  {
  lean_object* x_13; 
  lean_dec(x_8);
  x_13 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_2, x_3, x_4, x_5, x_6, x_7);
  return x_13;
  }
  else
  {
  size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; 
  x_14 = 0;
  x_15 = lean_usize_of_nat(x_8);
  lean_dec(x_8);
  x_16 = lean_box(0);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_17 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__1(x_1, x_14, x_15, x_16, x_3, x_4, x_5, x_6, x_7);
  if (lean_obj_tag(x_17) == 0)
  {
  lean_object* x_18; lean_object* x_19; 
  x_18 = lean_ctor_get(x_17, 1);
  lean_inc(x_18);
  lean_dec(x_17);
  x_19 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_2, x_3, x_4, x_5, x_6, x_18);
  return x_19;
  }
  else
  {
  uint8_t x_20; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_20 = !lean_is_exclusive(x_17);
  if (x_20 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_21 = lean_ctor_get(x_17, 0);
  x_22 = lean_ctor_get(x_17, 1);
  lean_inc(x_22);
  lean_inc(x_21);
  lean_dec(x_17);
  x_23 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_23, 0, x_21);
  lean_ctor_set(x_23, 1, x_22);
  return x_23;
  }
  }
  }
  }
  }
  }
  static lean_object* _init_l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___lambda__1___boxed), 7, 0);
  return x_1;
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet(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___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___closed__1;
  x_8 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_1, x_7, x_2, x_3, x_4, x_5, x_6);
  return x_8;
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(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:
  {
  switch (lean_obj_tag(x_1)) {
  case 4:
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  x_8 = lean_ctor_get(x_1, 1);
  lean_inc(x_8);
  lean_dec(x_1);
  x_9 = l___private_Lean_Meta_Check_0__Lean_Meta_checkConstant(x_7, x_8, x_2, x_3, x_4, x_5, x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_9;
  }
  case 5:
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_10 = lean_ctor_get(x_1, 0);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_1, 1);
  lean_inc(x_11);
  lean_dec(x_1);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  lean_inc(x_10);
  x_12 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_10, x_2, x_3, x_4, x_5, x_6);
  if (lean_obj_tag(x_12) == 0)
  {
  lean_object* x_13; lean_object* x_14; 
  x_13 = lean_ctor_get(x_12, 1);
  lean_inc(x_13);
  lean_dec(x_12);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  lean_inc(x_11);
  x_14 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_11, x_2, x_3, x_4, x_5, x_13);
  if (lean_obj_tag(x_14) == 0)
  {
  lean_object* x_15; lean_object* x_16; 
  x_15 = lean_ctor_get(x_14, 1);
  lean_inc(x_15);
  lean_dec(x_14);
  x_16 = l_Lean_Meta_checkApp(x_10, x_11, x_2, x_3, x_4, x_5, x_15);
  return x_16;
  }
  else
  {
  uint8_t x_17; 
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_17 = !lean_is_exclusive(x_14);
  if (x_17 == 0)
  {
  return x_14;
  }
  else
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_18 = lean_ctor_get(x_14, 0);
  x_19 = lean_ctor_get(x_14, 1);
  lean_inc(x_19);
  lean_inc(x_18);
  lean_dec(x_14);
  x_20 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_20, 0, x_18);
  lean_ctor_set(x_20, 1, x_19);
  return x_20;
  }
  }
  }
  else
  {
  uint8_t x_21; 
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_21 = !lean_is_exclusive(x_12);
  if (x_21 == 0)
  {
  return x_12;
  }
  else
  {
  lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_22 = lean_ctor_get(x_12, 0);
  x_23 = lean_ctor_get(x_12, 1);
  lean_inc(x_23);
  lean_inc(x_22);
  lean_dec(x_12);
  x_24 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_24, 0, x_22);
  lean_ctor_set(x_24, 1, x_23);
  return x_24;
  }
  }
  }
  case 6:
  {
  lean_object* x_25; lean_object* x_26; 
  x_25 = lean_alloc_closure((void*)(l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___lambda__1___boxed), 7, 0);
  x_26 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_1, x_25, x_2, x_3, x_4, x_5, x_6);
  return x_26;
  }
  case 7:
  {
  lean_object* x_27; lean_object* x_28; 
  x_27 = lean_alloc_closure((void*)(l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___lambda__1___boxed), 7, 0);
  x_28 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_1, x_27, x_2, x_3, x_4, x_5, x_6);
  return x_28;
  }
  case 8:
  {
  lean_object* x_29; lean_object* x_30; 
  x_29 = lean_alloc_closure((void*)(l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___lambda__1___boxed), 7, 0);
  x_30 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_1, x_29, x_2, x_3, x_4, x_5, x_6);
  return x_30;
  }
  case 10:
  {
  lean_object* x_31; 
  x_31 = lean_ctor_get(x_1, 1);
  lean_inc(x_31);
  lean_dec(x_1);
  x_1 = x_31;
  goto _start;
  }
  case 11:
  {
  lean_object* x_33; 
  x_33 = lean_ctor_get(x_1, 2);
  lean_inc(x_33);
  lean_dec(x_1);
  x_1 = x_33;
  goto _start;
  }
  default: 
  {
  lean_object* x_35; lean_object* x_36; 
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_35 = lean_box(0);
  x_36 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_36, 0, x_35);
  lean_ctor_set(x_36, 1, x_6);
  return x_36;
  }
  }
  }
  }
  lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  uint8_t x_10; 
  x_10 = x_2 == x_3;
  if (x_10 == 0)
  {
  lean_object* x_11; lean_object* x_12; 
  lean_dec(x_4);
  x_11 = lean_array_uget(x_1, x_2);
  lean_inc(x_5);
  x_12 = l_Lean_Meta_getFVarLocalDecl(x_11, x_5, x_6, x_7, x_8, x_9);
  lean_dec(x_11);
  if (lean_obj_tag(x_12) == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  x_13 = lean_ctor_get(x_12, 0);
  lean_inc(x_13);
  x_14 = lean_ctor_get(x_12, 1);
  lean_inc(x_14);
  lean_dec(x_12);
  x_15 = l_Lean_LocalDecl_type(x_13);
  lean_dec(x_13);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_15);
  x_16 = l___private_Lean_Meta_Check_0__Lean_Meta_ensureType(x_15, x_5, x_6, x_7, x_8, x_14);
  if (lean_obj_tag(x_16) == 0)
  {
  lean_object* x_17; lean_object* x_18; 
  x_17 = lean_ctor_get(x_16, 1);
  lean_inc(x_17);
  lean_dec(x_16);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_18 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_15, x_5, x_6, x_7, x_8, x_17);
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; 
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  x_20 = lean_ctor_get(x_18, 1);
  lean_inc(x_20);
  lean_dec(x_18);
  x_21 = 1;
  x_22 = x_2 + x_21;
  x_2 = x_22;
  x_4 = x_19;
  x_9 = x_20;
  goto _start;
  }
  else
  {
  uint8_t x_24; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_24 = !lean_is_exclusive(x_18);
  if (x_24 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_18, 0);
  x_26 = lean_ctor_get(x_18, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_18);
  x_27 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_27, 0, x_25);
  lean_ctor_set(x_27, 1, x_26);
  return x_27;
  }
  }
  }
  else
  {
  uint8_t x_28; 
  lean_dec(x_15);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_28 = !lean_is_exclusive(x_16);
  if (x_28 == 0)
  {
  return x_16;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_16, 0);
  x_30 = lean_ctor_get(x_16, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_16);
  x_31 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_31, 0, x_29);
  lean_ctor_set(x_31, 1, x_30);
  return x_31;
  }
  }
  }
  else
  {
  uint8_t x_32; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_32 = !lean_is_exclusive(x_12);
  if (x_32 == 0)
  {
  return x_12;
  }
  else
  {
  lean_object* x_33; lean_object* x_34; lean_object* x_35; 
  x_33 = lean_ctor_get(x_12, 0);
  x_34 = lean_ctor_get(x_12, 1);
  lean_inc(x_34);
  lean_inc(x_33);
  lean_dec(x_12);
  x_35 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_35, 0, x_33);
  lean_ctor_set(x_35, 1, x_34);
  return x_35;
  }
  }
  }
  else
  {
  lean_object* x_36; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_36 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_36, 0, x_4);
  lean_ctor_set(x_36, 1, x_9);
  return x_36;
  }
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; uint8_t x_10; 
  x_8 = lean_array_get_size(x_1);
  x_9 = lean_unsigned_to_nat(0u);
  x_10 = lean_nat_dec_lt(x_9, x_8);
  if (x_10 == 0)
  {
  lean_object* x_11; 
  lean_dec(x_8);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_11 = l___private_Lean_Meta_Check_0__Lean_Meta_ensureType(x_2, x_3, x_4, x_5, x_6, x_7);
  if (lean_obj_tag(x_11) == 0)
  {
  lean_object* x_12; lean_object* x_13; 
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_2, x_3, x_4, x_5, x_6, x_12);
  return x_13;
  }
  else
  {
  uint8_t x_14; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_14 = !lean_is_exclusive(x_11);
  if (x_14 == 0)
  {
  return x_11;
  }
  else
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_15 = lean_ctor_get(x_11, 0);
  x_16 = lean_ctor_get(x_11, 1);
  lean_inc(x_16);
  lean_inc(x_15);
  lean_dec(x_11);
  x_17 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_17, 0, x_15);
  lean_ctor_set(x_17, 1, x_16);
  return x_17;
  }
  }
  }
  else
  {
  uint8_t x_18; 
  x_18 = lean_nat_dec_le(x_8, x_8);
  if (x_18 == 0)
  {
  lean_object* x_19; 
  lean_dec(x_8);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_19 = l___private_Lean_Meta_Check_0__Lean_Meta_ensureType(x_2, x_3, x_4, x_5, x_6, x_7);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; 
  x_20 = lean_ctor_get(x_19, 1);
  lean_inc(x_20);
  lean_dec(x_19);
  x_21 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_2, x_3, x_4, x_5, x_6, x_20);
  return x_21;
  }
  else
  {
  uint8_t x_22; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_22 = !lean_is_exclusive(x_19);
  if (x_22 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; 
  x_23 = lean_ctor_get(x_19, 0);
  x_24 = lean_ctor_get(x_19, 1);
  lean_inc(x_24);
  lean_inc(x_23);
  lean_dec(x_19);
  x_25 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_25, 0, x_23);
  lean_ctor_set(x_25, 1, x_24);
  return x_25;
  }
  }
  }
  else
  {
  size_t x_26; size_t x_27; lean_object* x_28; lean_object* x_29; 
  x_26 = 0;
  x_27 = lean_usize_of_nat(x_8);
  lean_dec(x_8);
  x_28 = lean_box(0);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_29 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___spec__1(x_1, x_26, x_27, x_28, x_3, x_4, x_5, x_6, x_7);
  if (lean_obj_tag(x_29) == 0)
  {
  lean_object* x_30; lean_object* x_31; 
  x_30 = lean_ctor_get(x_29, 1);
  lean_inc(x_30);
  lean_dec(x_29);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_31 = l___private_Lean_Meta_Check_0__Lean_Meta_ensureType(x_2, x_3, x_4, x_5, x_6, x_30);
  if (lean_obj_tag(x_31) == 0)
  {
  lean_object* x_32; lean_object* x_33; 
  x_32 = lean_ctor_get(x_31, 1);
  lean_inc(x_32);
  lean_dec(x_31);
  x_33 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_2, x_3, x_4, x_5, x_6, x_32);
  return x_33;
  }
  else
  {
  uint8_t x_34; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_34 = !lean_is_exclusive(x_31);
  if (x_34 == 0)
  {
  return x_31;
  }
  else
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  x_35 = lean_ctor_get(x_31, 0);
  x_36 = lean_ctor_get(x_31, 1);
  lean_inc(x_36);
  lean_inc(x_35);
  lean_dec(x_31);
  x_37 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_37, 0, x_35);
  lean_ctor_set(x_37, 1, x_36);
  return x_37;
  }
  }
  }
  else
  {
  uint8_t x_38; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_38 = !lean_is_exclusive(x_29);
  if (x_38 == 0)
  {
  return x_29;
  }
  else
  {
  lean_object* x_39; lean_object* x_40; lean_object* x_41; 
  x_39 = lean_ctor_get(x_29, 0);
  x_40 = lean_ctor_get(x_29, 1);
  lean_inc(x_40);
  lean_inc(x_39);
  lean_dec(x_29);
  x_41 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_41, 0, x_39);
  lean_ctor_set(x_41, 1, x_40);
  return x_41;
  }
  }
  }
  }
  }
  }
  static lean_object* _init_l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___lambda__1___boxed), 7, 0);
  return x_1;
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall(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___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___closed__1;
  x_8 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_1, x_7, x_2, x_3, x_4, x_5, x_6);
  return x_8;
  }
  }
  lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_2);
  return x_8;
  }
  }
  lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  size_t x_10; size_t x_11; lean_object* x_12; 
  x_10 = lean_unbox_usize(x_2);
  lean_dec(x_2);
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___spec__1(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9);
  lean_dec(x_1);
  return x_12;
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_1);
  return x_8;
  }
  }
  lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  size_t x_10; size_t x_11; lean_object* x_12; 
  x_10 = lean_unbox_usize(x_2);
  lean_dec(x_2);
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___spec__1(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9);
  lean_dec(x_1);
  return x_12;
  }
  }
  lean_object* l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_1);
  return x_8;
  }
  }
  static lean_object* _init_l_Lean_Meta_check___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("check");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_check___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_557____closed__2;
  x_2 = l_Lean_Meta_check___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Meta_check(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  uint8_t x_7; lean_object* x_8; lean_object* x_385; lean_object* x_386; lean_object* x_387; uint8_t x_388; 
  x_385 = lean_st_ref_get(x_5, x_6);
  x_386 = lean_ctor_get(x_385, 0);
  lean_inc(x_386);
  x_387 = lean_ctor_get(x_386, 3);
  lean_inc(x_387);
  lean_dec(x_386);
  x_388 = lean_ctor_get_uint8(x_387, sizeof(void*)*1);
  lean_dec(x_387);
  if (x_388 == 0)
  {
  lean_object* x_389; uint8_t x_390; 
  x_389 = lean_ctor_get(x_385, 1);
  lean_inc(x_389);
  lean_dec(x_385);
  x_390 = 0;
  x_7 = x_390;
  x_8 = x_389;
  goto block_384;
  }
  else
  {
  lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; uint8_t x_396; 
  x_391 = lean_ctor_get(x_385, 1);
  lean_inc(x_391);
  lean_dec(x_385);
  x_392 = l_Lean_Meta_check___closed__2;
  x_393 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__8(x_392, x_2, x_3, x_4, x_5, x_391);
  x_394 = lean_ctor_get(x_393, 0);
  lean_inc(x_394);
  x_395 = lean_ctor_get(x_393, 1);
  lean_inc(x_395);
  lean_dec(x_393);
  x_396 = lean_unbox(x_394);
  lean_dec(x_394);
  x_7 = x_396;
  x_8 = x_395;
  goto block_384;
  }
  block_384:
  {
  if (x_7 == 0)
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
  x_9 = lean_st_ref_get(x_5, x_8);
  x_10 = lean_ctor_get(x_9, 0);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_10, 3);
  lean_inc(x_11);
  lean_dec(x_10);
  x_12 = lean_ctor_get(x_9, 1);
  lean_inc(x_12);
  lean_dec(x_9);
  x_13 = lean_ctor_get_uint8(x_11, sizeof(void*)*1);
  lean_dec(x_11);
  x_14 = lean_st_ref_take(x_5, x_12);
  x_15 = lean_ctor_get(x_14, 0);
  lean_inc(x_15);
  x_16 = lean_ctor_get(x_15, 3);
  lean_inc(x_16);
  x_17 = lean_ctor_get(x_14, 1);
  lean_inc(x_17);
  lean_dec(x_14);
  x_18 = !lean_is_exclusive(x_15);
  if (x_18 == 0)
  {
  lean_object* x_19; uint8_t x_20; 
  x_19 = lean_ctor_get(x_15, 3);
  lean_dec(x_19);
  x_20 = !lean_is_exclusive(x_16);
  if (x_20 == 0)
  {
  uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; 
  x_21 = 0;
  lean_ctor_set_uint8(x_16, sizeof(void*)*1, x_21);
  x_22 = lean_st_ref_set(x_5, x_15, x_17);
  x_23 = lean_ctor_get(x_2, 0);
  lean_inc(x_23);
  x_24 = lean_ctor_get(x_22, 1);
  lean_inc(x_24);
  lean_dec(x_22);
  x_25 = !lean_is_exclusive(x_2);
  if (x_25 == 0)
  {
  lean_object* x_26; uint8_t x_27; 
  x_26 = lean_ctor_get(x_2, 0);
  lean_dec(x_26);
  x_27 = !lean_is_exclusive(x_23);
  if (x_27 == 0)
  {
  uint8_t x_28; lean_object* x_29; 
  x_28 = 0;
  lean_ctor_set_uint8(x_23, 5, x_28);
  lean_inc(x_5);
  x_29 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_1, x_2, x_3, x_4, x_5, x_24);
  if (lean_obj_tag(x_29) == 0)
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; 
  x_30 = lean_ctor_get(x_29, 0);
  lean_inc(x_30);
  x_31 = lean_ctor_get(x_29, 1);
  lean_inc(x_31);
  lean_dec(x_29);
  x_32 = lean_st_ref_get(x_5, x_31);
  x_33 = lean_ctor_get(x_32, 1);
  lean_inc(x_33);
  lean_dec(x_32);
  x_34 = lean_st_ref_take(x_5, x_33);
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  x_36 = lean_ctor_get(x_35, 3);
  lean_inc(x_36);
  x_37 = lean_ctor_get(x_34, 1);
  lean_inc(x_37);
  lean_dec(x_34);
  x_38 = !lean_is_exclusive(x_35);
  if (x_38 == 0)
  {
  lean_object* x_39; uint8_t x_40; 
  x_39 = lean_ctor_get(x_35, 3);
  lean_dec(x_39);
  x_40 = !lean_is_exclusive(x_36);
  if (x_40 == 0)
  {
  lean_object* x_41; uint8_t x_42; 
  lean_ctor_set_uint8(x_36, sizeof(void*)*1, x_13);
  x_41 = lean_st_ref_set(x_5, x_35, x_37);
  lean_dec(x_5);
  x_42 = !lean_is_exclusive(x_41);
  if (x_42 == 0)
  {
  lean_object* x_43; 
  x_43 = lean_ctor_get(x_41, 0);
  lean_dec(x_43);
  lean_ctor_set(x_41, 0, x_30);
  return x_41;
  }
  else
  {
  lean_object* x_44; lean_object* x_45; 
  x_44 = lean_ctor_get(x_41, 1);
  lean_inc(x_44);
  lean_dec(x_41);
  x_45 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_45, 0, x_30);
  lean_ctor_set(x_45, 1, x_44);
  return x_45;
  }
  }
  else
  {
  lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
  x_46 = lean_ctor_get(x_36, 0);
  lean_inc(x_46);
  lean_dec(x_36);
  x_47 = lean_alloc_ctor(0, 1, 1);
  lean_ctor_set(x_47, 0, x_46);
  lean_ctor_set_uint8(x_47, sizeof(void*)*1, x_13);
  lean_ctor_set(x_35, 3, x_47);
  x_48 = lean_st_ref_set(x_5, x_35, x_37);
  lean_dec(x_5);
  x_49 = lean_ctor_get(x_48, 1);
  lean_inc(x_49);
  if (lean_is_exclusive(x_48)) {
   lean_ctor_release(x_48, 0);
   lean_ctor_release(x_48, 1);
   x_50 = x_48;
  } else {
   lean_dec_ref(x_48);
   x_50 = lean_box(0);
  }
  if (lean_is_scalar(x_50)) {
   x_51 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_51 = x_50;
  }
  lean_ctor_set(x_51, 0, x_30);
  lean_ctor_set(x_51, 1, x_49);
  return x_51;
  }
  }
  else
  {
  lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_52 = lean_ctor_get(x_35, 0);
  x_53 = lean_ctor_get(x_35, 1);
  x_54 = lean_ctor_get(x_35, 2);
  lean_inc(x_54);
  lean_inc(x_53);
  lean_inc(x_52);
  lean_dec(x_35);
  x_55 = lean_ctor_get(x_36, 0);
  lean_inc(x_55);
  if (lean_is_exclusive(x_36)) {
   lean_ctor_release(x_36, 0);
   x_56 = x_36;
  } else {
   lean_dec_ref(x_36);
   x_56 = lean_box(0);
  }
  if (lean_is_scalar(x_56)) {
   x_57 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_57 = x_56;
  }
  lean_ctor_set(x_57, 0, x_55);
  lean_ctor_set_uint8(x_57, sizeof(void*)*1, x_13);
  x_58 = lean_alloc_ctor(0, 4, 0);
  lean_ctor_set(x_58, 0, x_52);
  lean_ctor_set(x_58, 1, x_53);
  lean_ctor_set(x_58, 2, x_54);
  lean_ctor_set(x_58, 3, x_57);
  x_59 = lean_st_ref_set(x_5, x_58, x_37);
  lean_dec(x_5);
  x_60 = lean_ctor_get(x_59, 1);
  lean_inc(x_60);
  if (lean_is_exclusive(x_59)) {
   lean_ctor_release(x_59, 0);
   lean_ctor_release(x_59, 1);
   x_61 = x_59;
  } else {
   lean_dec_ref(x_59);
   x_61 = lean_box(0);
  }
  if (lean_is_scalar(x_61)) {
   x_62 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_62 = x_61;
  }
  lean_ctor_set(x_62, 0, x_30);
  lean_ctor_set(x_62, 1, x_60);
  return x_62;
  }
  }
  else
  {
  lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; 
  x_63 = lean_ctor_get(x_29, 0);
  lean_inc(x_63);
  x_64 = lean_ctor_get(x_29, 1);
  lean_inc(x_64);
  lean_dec(x_29);
  x_65 = lean_st_ref_get(x_5, x_64);
  x_66 = lean_ctor_get(x_65, 1);
  lean_inc(x_66);
  lean_dec(x_65);
  x_67 = lean_st_ref_take(x_5, x_66);
  x_68 = lean_ctor_get(x_67, 0);
  lean_inc(x_68);
  x_69 = lean_ctor_get(x_68, 3);
  lean_inc(x_69);
  x_70 = lean_ctor_get(x_67, 1);
  lean_inc(x_70);
  lean_dec(x_67);
  x_71 = !lean_is_exclusive(x_68);
  if (x_71 == 0)
  {
  lean_object* x_72; uint8_t x_73; 
  x_72 = lean_ctor_get(x_68, 3);
  lean_dec(x_72);
  x_73 = !lean_is_exclusive(x_69);
  if (x_73 == 0)
  {
  lean_object* x_74; uint8_t x_75; 
  lean_ctor_set_uint8(x_69, sizeof(void*)*1, x_13);
  x_74 = lean_st_ref_set(x_5, x_68, x_70);
  lean_dec(x_5);
  x_75 = !lean_is_exclusive(x_74);
  if (x_75 == 0)
  {
  lean_object* x_76; 
  x_76 = lean_ctor_get(x_74, 0);
  lean_dec(x_76);
  lean_ctor_set_tag(x_74, 1);
  lean_ctor_set(x_74, 0, x_63);
  return x_74;
  }
  else
  {
  lean_object* x_77; lean_object* x_78; 
  x_77 = lean_ctor_get(x_74, 1);
  lean_inc(x_77);
  lean_dec(x_74);
  x_78 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_78, 0, x_63);
  lean_ctor_set(x_78, 1, x_77);
  return x_78;
  }
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; 
  x_79 = lean_ctor_get(x_69, 0);
  lean_inc(x_79);
  lean_dec(x_69);
  x_80 = lean_alloc_ctor(0, 1, 1);
  lean_ctor_set(x_80, 0, x_79);
  lean_ctor_set_uint8(x_80, sizeof(void*)*1, x_13);
  lean_ctor_set(x_68, 3, x_80);
  x_81 = lean_st_ref_set(x_5, x_68, x_70);
  lean_dec(x_5);
  x_82 = lean_ctor_get(x_81, 1);
  lean_inc(x_82);
  if (lean_is_exclusive(x_81)) {
   lean_ctor_release(x_81, 0);
   lean_ctor_release(x_81, 1);
   x_83 = x_81;
  } else {
   lean_dec_ref(x_81);
   x_83 = lean_box(0);
  }
  if (lean_is_scalar(x_83)) {
   x_84 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_84 = x_83;
   lean_ctor_set_tag(x_84, 1);
  }
  lean_ctor_set(x_84, 0, x_63);
  lean_ctor_set(x_84, 1, x_82);
  return x_84;
  }
  }
  else
  {
  lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; 
  x_85 = lean_ctor_get(x_68, 0);
  x_86 = lean_ctor_get(x_68, 1);
  x_87 = lean_ctor_get(x_68, 2);
  lean_inc(x_87);
  lean_inc(x_86);
  lean_inc(x_85);
  lean_dec(x_68);
  x_88 = lean_ctor_get(x_69, 0);
  lean_inc(x_88);
  if (lean_is_exclusive(x_69)) {
   lean_ctor_release(x_69, 0);
   x_89 = x_69;
  } else {
   lean_dec_ref(x_69);
   x_89 = lean_box(0);
  }
  if (lean_is_scalar(x_89)) {
   x_90 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_90 = x_89;
  }
  lean_ctor_set(x_90, 0, x_88);
  lean_ctor_set_uint8(x_90, sizeof(void*)*1, x_13);
  x_91 = lean_alloc_ctor(0, 4, 0);
  lean_ctor_set(x_91, 0, x_85);
  lean_ctor_set(x_91, 1, x_86);
  lean_ctor_set(x_91, 2, x_87);
  lean_ctor_set(x_91, 3, x_90);
  x_92 = lean_st_ref_set(x_5, x_91, x_70);
  lean_dec(x_5);
  x_93 = lean_ctor_get(x_92, 1);
  lean_inc(x_93);
  if (lean_is_exclusive(x_92)) {
   lean_ctor_release(x_92, 0);
   lean_ctor_release(x_92, 1);
   x_94 = x_92;
  } else {
   lean_dec_ref(x_92);
   x_94 = lean_box(0);
  }
  if (lean_is_scalar(x_94)) {
   x_95 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_95 = x_94;
   lean_ctor_set_tag(x_95, 1);
  }
  lean_ctor_set(x_95, 0, x_63);
  lean_ctor_set(x_95, 1, x_93);
  return x_95;
  }
  }
  }
  else
  {
  uint8_t x_96; uint8_t x_97; uint8_t x_98; uint8_t x_99; uint8_t x_100; uint8_t x_101; uint8_t x_102; uint8_t x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; 
  x_96 = lean_ctor_get_uint8(x_23, 0);
  x_97 = lean_ctor_get_uint8(x_23, 1);
  x_98 = lean_ctor_get_uint8(x_23, 2);
  x_99 = lean_ctor_get_uint8(x_23, 3);
  x_100 = lean_ctor_get_uint8(x_23, 4);
  x_101 = lean_ctor_get_uint8(x_23, 6);
  x_102 = lean_ctor_get_uint8(x_23, 7);
  x_103 = lean_ctor_get_uint8(x_23, 8);
  lean_dec(x_23);
  x_104 = 0;
  x_105 = lean_alloc_ctor(0, 0, 9);
  lean_ctor_set_uint8(x_105, 0, x_96);
  lean_ctor_set_uint8(x_105, 1, x_97);
  lean_ctor_set_uint8(x_105, 2, x_98);
  lean_ctor_set_uint8(x_105, 3, x_99);
  lean_ctor_set_uint8(x_105, 4, x_100);
  lean_ctor_set_uint8(x_105, 5, x_104);
  lean_ctor_set_uint8(x_105, 6, x_101);
  lean_ctor_set_uint8(x_105, 7, x_102);
  lean_ctor_set_uint8(x_105, 8, x_103);
  lean_ctor_set(x_2, 0, x_105);
  lean_inc(x_5);
  x_106 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_1, x_2, x_3, x_4, x_5, x_24);
  if (lean_obj_tag(x_106) == 0)
  {
  lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; 
  x_107 = lean_ctor_get(x_106, 0);
  lean_inc(x_107);
  x_108 = lean_ctor_get(x_106, 1);
  lean_inc(x_108);
  lean_dec(x_106);
  x_109 = lean_st_ref_get(x_5, x_108);
  x_110 = lean_ctor_get(x_109, 1);
  lean_inc(x_110);
  lean_dec(x_109);
  x_111 = lean_st_ref_take(x_5, x_110);
  x_112 = lean_ctor_get(x_111, 0);
  lean_inc(x_112);
  x_113 = lean_ctor_get(x_112, 3);
  lean_inc(x_113);
  x_114 = lean_ctor_get(x_111, 1);
  lean_inc(x_114);
  lean_dec(x_111);
  x_115 = lean_ctor_get(x_112, 0);
  lean_inc(x_115);
  x_116 = lean_ctor_get(x_112, 1);
  lean_inc(x_116);
  x_117 = lean_ctor_get(x_112, 2);
  lean_inc(x_117);
  if (lean_is_exclusive(x_112)) {
   lean_ctor_release(x_112, 0);
   lean_ctor_release(x_112, 1);
   lean_ctor_release(x_112, 2);
   lean_ctor_release(x_112, 3);
   x_118 = x_112;
  } else {
   lean_dec_ref(x_112);
   x_118 = lean_box(0);
  }
  x_119 = lean_ctor_get(x_113, 0);
  lean_inc(x_119);
  if (lean_is_exclusive(x_113)) {
   lean_ctor_release(x_113, 0);
   x_120 = x_113;
  } else {
   lean_dec_ref(x_113);
   x_120 = lean_box(0);
  }
  if (lean_is_scalar(x_120)) {
   x_121 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_121 = x_120;
  }
  lean_ctor_set(x_121, 0, x_119);
  lean_ctor_set_uint8(x_121, sizeof(void*)*1, x_13);
  if (lean_is_scalar(x_118)) {
   x_122 = lean_alloc_ctor(0, 4, 0);
  } else {
   x_122 = x_118;
  }
  lean_ctor_set(x_122, 0, x_115);
  lean_ctor_set(x_122, 1, x_116);
  lean_ctor_set(x_122, 2, x_117);
  lean_ctor_set(x_122, 3, x_121);
  x_123 = lean_st_ref_set(x_5, x_122, x_114);
  lean_dec(x_5);
  x_124 = lean_ctor_get(x_123, 1);
  lean_inc(x_124);
  if (lean_is_exclusive(x_123)) {
   lean_ctor_release(x_123, 0);
   lean_ctor_release(x_123, 1);
   x_125 = x_123;
  } else {
   lean_dec_ref(x_123);
   x_125 = lean_box(0);
  }
  if (lean_is_scalar(x_125)) {
   x_126 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_126 = x_125;
  }
  lean_ctor_set(x_126, 0, x_107);
  lean_ctor_set(x_126, 1, x_124);
  return x_126;
  }
  else
  {
  lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; 
  x_127 = lean_ctor_get(x_106, 0);
  lean_inc(x_127);
  x_128 = lean_ctor_get(x_106, 1);
  lean_inc(x_128);
  lean_dec(x_106);
  x_129 = lean_st_ref_get(x_5, x_128);
  x_130 = lean_ctor_get(x_129, 1);
  lean_inc(x_130);
  lean_dec(x_129);
  x_131 = lean_st_ref_take(x_5, x_130);
  x_132 = lean_ctor_get(x_131, 0);
  lean_inc(x_132);
  x_133 = lean_ctor_get(x_132, 3);
  lean_inc(x_133);
  x_134 = lean_ctor_get(x_131, 1);
  lean_inc(x_134);
  lean_dec(x_131);
  x_135 = lean_ctor_get(x_132, 0);
  lean_inc(x_135);
  x_136 = lean_ctor_get(x_132, 1);
  lean_inc(x_136);
  x_137 = lean_ctor_get(x_132, 2);
  lean_inc(x_137);
  if (lean_is_exclusive(x_132)) {
   lean_ctor_release(x_132, 0);
   lean_ctor_release(x_132, 1);
   lean_ctor_release(x_132, 2);
   lean_ctor_release(x_132, 3);
   x_138 = x_132;
  } else {
   lean_dec_ref(x_132);
   x_138 = lean_box(0);
  }
  x_139 = lean_ctor_get(x_133, 0);
  lean_inc(x_139);
  if (lean_is_exclusive(x_133)) {
   lean_ctor_release(x_133, 0);
   x_140 = x_133;
  } else {
   lean_dec_ref(x_133);
   x_140 = lean_box(0);
  }
  if (lean_is_scalar(x_140)) {
   x_141 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_141 = x_140;
  }
  lean_ctor_set(x_141, 0, x_139);
  lean_ctor_set_uint8(x_141, sizeof(void*)*1, x_13);
  if (lean_is_scalar(x_138)) {
   x_142 = lean_alloc_ctor(0, 4, 0);
  } else {
   x_142 = x_138;
  }
  lean_ctor_set(x_142, 0, x_135);
  lean_ctor_set(x_142, 1, x_136);
  lean_ctor_set(x_142, 2, x_137);
  lean_ctor_set(x_142, 3, x_141);
  x_143 = lean_st_ref_set(x_5, x_142, x_134);
  lean_dec(x_5);
  x_144 = lean_ctor_get(x_143, 1);
  lean_inc(x_144);
  if (lean_is_exclusive(x_143)) {
   lean_ctor_release(x_143, 0);
   lean_ctor_release(x_143, 1);
   x_145 = x_143;
  } else {
   lean_dec_ref(x_143);
   x_145 = lean_box(0);
  }
  if (lean_is_scalar(x_145)) {
   x_146 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_146 = x_145;
   lean_ctor_set_tag(x_146, 1);
  }
  lean_ctor_set(x_146, 0, x_127);
  lean_ctor_set(x_146, 1, x_144);
  return x_146;
  }
  }
  }
  else
  {
  lean_object* x_147; lean_object* x_148; uint8_t x_149; uint8_t x_150; uint8_t x_151; uint8_t x_152; uint8_t x_153; uint8_t x_154; uint8_t x_155; uint8_t x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; 
  x_147 = lean_ctor_get(x_2, 1);
  x_148 = lean_ctor_get(x_2, 2);
  lean_inc(x_148);
  lean_inc(x_147);
  lean_dec(x_2);
  x_149 = lean_ctor_get_uint8(x_23, 0);
  x_150 = lean_ctor_get_uint8(x_23, 1);
  x_151 = lean_ctor_get_uint8(x_23, 2);
  x_152 = lean_ctor_get_uint8(x_23, 3);
  x_153 = lean_ctor_get_uint8(x_23, 4);
  x_154 = lean_ctor_get_uint8(x_23, 6);
  x_155 = lean_ctor_get_uint8(x_23, 7);
  x_156 = lean_ctor_get_uint8(x_23, 8);
  if (lean_is_exclusive(x_23)) {
   x_157 = x_23;
  } else {
   lean_dec_ref(x_23);
   x_157 = lean_box(0);
  }
  x_158 = 0;
  if (lean_is_scalar(x_157)) {
   x_159 = lean_alloc_ctor(0, 0, 9);
  } else {
   x_159 = x_157;
  }
  lean_ctor_set_uint8(x_159, 0, x_149);
  lean_ctor_set_uint8(x_159, 1, x_150);
  lean_ctor_set_uint8(x_159, 2, x_151);
  lean_ctor_set_uint8(x_159, 3, x_152);
  lean_ctor_set_uint8(x_159, 4, x_153);
  lean_ctor_set_uint8(x_159, 5, x_158);
  lean_ctor_set_uint8(x_159, 6, x_154);
  lean_ctor_set_uint8(x_159, 7, x_155);
  lean_ctor_set_uint8(x_159, 8, x_156);
  x_160 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_160, 0, x_159);
  lean_ctor_set(x_160, 1, x_147);
  lean_ctor_set(x_160, 2, x_148);
  lean_inc(x_5);
  x_161 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_1, x_160, x_3, x_4, x_5, x_24);
  if (lean_obj_tag(x_161) == 0)
  {
  lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; 
  x_162 = lean_ctor_get(x_161, 0);
  lean_inc(x_162);
  x_163 = lean_ctor_get(x_161, 1);
  lean_inc(x_163);
  lean_dec(x_161);
  x_164 = lean_st_ref_get(x_5, x_163);
  x_165 = lean_ctor_get(x_164, 1);
  lean_inc(x_165);
  lean_dec(x_164);
  x_166 = lean_st_ref_take(x_5, x_165);
  x_167 = lean_ctor_get(x_166, 0);
  lean_inc(x_167);
  x_168 = lean_ctor_get(x_167, 3);
  lean_inc(x_168);
  x_169 = lean_ctor_get(x_166, 1);
  lean_inc(x_169);
  lean_dec(x_166);
  x_170 = lean_ctor_get(x_167, 0);
  lean_inc(x_170);
  x_171 = lean_ctor_get(x_167, 1);
  lean_inc(x_171);
  x_172 = lean_ctor_get(x_167, 2);
  lean_inc(x_172);
  if (lean_is_exclusive(x_167)) {
   lean_ctor_release(x_167, 0);
   lean_ctor_release(x_167, 1);
   lean_ctor_release(x_167, 2);
   lean_ctor_release(x_167, 3);
   x_173 = x_167;
  } else {
   lean_dec_ref(x_167);
   x_173 = lean_box(0);
  }
  x_174 = lean_ctor_get(x_168, 0);
  lean_inc(x_174);
  if (lean_is_exclusive(x_168)) {
   lean_ctor_release(x_168, 0);
   x_175 = x_168;
  } else {
   lean_dec_ref(x_168);
   x_175 = lean_box(0);
  }
  if (lean_is_scalar(x_175)) {
   x_176 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_176 = x_175;
  }
  lean_ctor_set(x_176, 0, x_174);
  lean_ctor_set_uint8(x_176, sizeof(void*)*1, x_13);
  if (lean_is_scalar(x_173)) {
   x_177 = lean_alloc_ctor(0, 4, 0);
  } else {
   x_177 = x_173;
  }
  lean_ctor_set(x_177, 0, x_170);
  lean_ctor_set(x_177, 1, x_171);
  lean_ctor_set(x_177, 2, x_172);
  lean_ctor_set(x_177, 3, x_176);
  x_178 = lean_st_ref_set(x_5, x_177, x_169);
  lean_dec(x_5);
  x_179 = lean_ctor_get(x_178, 1);
  lean_inc(x_179);
  if (lean_is_exclusive(x_178)) {
   lean_ctor_release(x_178, 0);
   lean_ctor_release(x_178, 1);
   x_180 = x_178;
  } else {
   lean_dec_ref(x_178);
   x_180 = lean_box(0);
  }
  if (lean_is_scalar(x_180)) {
   x_181 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_181 = x_180;
  }
  lean_ctor_set(x_181, 0, x_162);
  lean_ctor_set(x_181, 1, x_179);
  return x_181;
  }
  else
  {
  lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
  x_182 = lean_ctor_get(x_161, 0);
  lean_inc(x_182);
  x_183 = lean_ctor_get(x_161, 1);
  lean_inc(x_183);
  lean_dec(x_161);
  x_184 = lean_st_ref_get(x_5, x_183);
  x_185 = lean_ctor_get(x_184, 1);
  lean_inc(x_185);
  lean_dec(x_184);
  x_186 = lean_st_ref_take(x_5, x_185);
  x_187 = lean_ctor_get(x_186, 0);
  lean_inc(x_187);
  x_188 = lean_ctor_get(x_187, 3);
  lean_inc(x_188);
  x_189 = lean_ctor_get(x_186, 1);
  lean_inc(x_189);
  lean_dec(x_186);
  x_190 = lean_ctor_get(x_187, 0);
  lean_inc(x_190);
  x_191 = lean_ctor_get(x_187, 1);
  lean_inc(x_191);
  x_192 = lean_ctor_get(x_187, 2);
  lean_inc(x_192);
  if (lean_is_exclusive(x_187)) {
   lean_ctor_release(x_187, 0);
   lean_ctor_release(x_187, 1);
   lean_ctor_release(x_187, 2);
   lean_ctor_release(x_187, 3);
   x_193 = x_187;
  } else {
   lean_dec_ref(x_187);
   x_193 = lean_box(0);
  }
  x_194 = lean_ctor_get(x_188, 0);
  lean_inc(x_194);
  if (lean_is_exclusive(x_188)) {
   lean_ctor_release(x_188, 0);
   x_195 = x_188;
  } else {
   lean_dec_ref(x_188);
   x_195 = lean_box(0);
  }
  if (lean_is_scalar(x_195)) {
   x_196 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_196 = x_195;
  }
  lean_ctor_set(x_196, 0, x_194);
  lean_ctor_set_uint8(x_196, sizeof(void*)*1, x_13);
  if (lean_is_scalar(x_193)) {
   x_197 = lean_alloc_ctor(0, 4, 0);
  } else {
   x_197 = x_193;
  }
  lean_ctor_set(x_197, 0, x_190);
  lean_ctor_set(x_197, 1, x_191);
  lean_ctor_set(x_197, 2, x_192);
  lean_ctor_set(x_197, 3, x_196);
  x_198 = lean_st_ref_set(x_5, x_197, x_189);
  lean_dec(x_5);
  x_199 = lean_ctor_get(x_198, 1);
  lean_inc(x_199);
  if (lean_is_exclusive(x_198)) {
   lean_ctor_release(x_198, 0);
   lean_ctor_release(x_198, 1);
   x_200 = x_198;
  } else {
   lean_dec_ref(x_198);
   x_200 = lean_box(0);
  }
  if (lean_is_scalar(x_200)) {
   x_201 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_201 = x_200;
   lean_ctor_set_tag(x_201, 1);
  }
  lean_ctor_set(x_201, 0, x_182);
  lean_ctor_set(x_201, 1, x_199);
  return x_201;
  }
  }
  }
  else
  {
  lean_object* x_202; uint8_t x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; uint8_t x_212; uint8_t x_213; uint8_t x_214; uint8_t x_215; uint8_t x_216; uint8_t x_217; uint8_t x_218; lean_object* x_219; uint8_t x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; 
  x_202 = lean_ctor_get(x_16, 0);
  lean_inc(x_202);
  lean_dec(x_16);
  x_203 = 0;
  x_204 = lean_alloc_ctor(0, 1, 1);
  lean_ctor_set(x_204, 0, x_202);
  lean_ctor_set_uint8(x_204, sizeof(void*)*1, x_203);
  lean_ctor_set(x_15, 3, x_204);
  x_205 = lean_st_ref_set(x_5, x_15, x_17);
  x_206 = lean_ctor_get(x_2, 0);
  lean_inc(x_206);
  x_207 = lean_ctor_get(x_205, 1);
  lean_inc(x_207);
  lean_dec(x_205);
  x_208 = lean_ctor_get(x_2, 1);
  lean_inc(x_208);
  x_209 = lean_ctor_get(x_2, 2);
  lean_inc(x_209);
  if (lean_is_exclusive(x_2)) {
   lean_ctor_release(x_2, 0);
   lean_ctor_release(x_2, 1);
   lean_ctor_release(x_2, 2);
   x_210 = x_2;
  } else {
   lean_dec_ref(x_2);
   x_210 = lean_box(0);
  }
  x_211 = lean_ctor_get_uint8(x_206, 0);
  x_212 = lean_ctor_get_uint8(x_206, 1);
  x_213 = lean_ctor_get_uint8(x_206, 2);
  x_214 = lean_ctor_get_uint8(x_206, 3);
  x_215 = lean_ctor_get_uint8(x_206, 4);
  x_216 = lean_ctor_get_uint8(x_206, 6);
  x_217 = lean_ctor_get_uint8(x_206, 7);
  x_218 = lean_ctor_get_uint8(x_206, 8);
  if (lean_is_exclusive(x_206)) {
   x_219 = x_206;
  } else {
   lean_dec_ref(x_206);
   x_219 = lean_box(0);
  }
  x_220 = 0;
  if (lean_is_scalar(x_219)) {
   x_221 = lean_alloc_ctor(0, 0, 9);
  } else {
   x_221 = x_219;
  }
  lean_ctor_set_uint8(x_221, 0, x_211);
  lean_ctor_set_uint8(x_221, 1, x_212);
  lean_ctor_set_uint8(x_221, 2, x_213);
  lean_ctor_set_uint8(x_221, 3, x_214);
  lean_ctor_set_uint8(x_221, 4, x_215);
  lean_ctor_set_uint8(x_221, 5, x_220);
  lean_ctor_set_uint8(x_221, 6, x_216);
  lean_ctor_set_uint8(x_221, 7, x_217);
  lean_ctor_set_uint8(x_221, 8, x_218);
  if (lean_is_scalar(x_210)) {
   x_222 = lean_alloc_ctor(0, 3, 0);
  } else {
   x_222 = x_210;
  }
  lean_ctor_set(x_222, 0, x_221);
  lean_ctor_set(x_222, 1, x_208);
  lean_ctor_set(x_222, 2, x_209);
  lean_inc(x_5);
  x_223 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_1, x_222, x_3, x_4, x_5, x_207);
  if (lean_obj_tag(x_223) == 0)
  {
  lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; 
  x_224 = lean_ctor_get(x_223, 0);
  lean_inc(x_224);
  x_225 = lean_ctor_get(x_223, 1);
  lean_inc(x_225);
  lean_dec(x_223);
  x_226 = lean_st_ref_get(x_5, x_225);
  x_227 = lean_ctor_get(x_226, 1);
  lean_inc(x_227);
  lean_dec(x_226);
  x_228 = lean_st_ref_take(x_5, x_227);
  x_229 = lean_ctor_get(x_228, 0);
  lean_inc(x_229);
  x_230 = lean_ctor_get(x_229, 3);
  lean_inc(x_230);
  x_231 = lean_ctor_get(x_228, 1);
  lean_inc(x_231);
  lean_dec(x_228);
  x_232 = lean_ctor_get(x_229, 0);
  lean_inc(x_232);
  x_233 = lean_ctor_get(x_229, 1);
  lean_inc(x_233);
  x_234 = lean_ctor_get(x_229, 2);
  lean_inc(x_234);
  if (lean_is_exclusive(x_229)) {
   lean_ctor_release(x_229, 0);
   lean_ctor_release(x_229, 1);
   lean_ctor_release(x_229, 2);
   lean_ctor_release(x_229, 3);
   x_235 = x_229;
  } else {
   lean_dec_ref(x_229);
   x_235 = lean_box(0);
  }
  x_236 = lean_ctor_get(x_230, 0);
  lean_inc(x_236);
  if (lean_is_exclusive(x_230)) {
   lean_ctor_release(x_230, 0);
   x_237 = x_230;
  } else {
   lean_dec_ref(x_230);
   x_237 = lean_box(0);
  }
  if (lean_is_scalar(x_237)) {
   x_238 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_238 = x_237;
  }
  lean_ctor_set(x_238, 0, x_236);
  lean_ctor_set_uint8(x_238, sizeof(void*)*1, x_13);
  if (lean_is_scalar(x_235)) {
   x_239 = lean_alloc_ctor(0, 4, 0);
  } else {
   x_239 = x_235;
  }
  lean_ctor_set(x_239, 0, x_232);
  lean_ctor_set(x_239, 1, x_233);
  lean_ctor_set(x_239, 2, x_234);
  lean_ctor_set(x_239, 3, x_238);
  x_240 = lean_st_ref_set(x_5, x_239, x_231);
  lean_dec(x_5);
  x_241 = lean_ctor_get(x_240, 1);
  lean_inc(x_241);
  if (lean_is_exclusive(x_240)) {
   lean_ctor_release(x_240, 0);
   lean_ctor_release(x_240, 1);
   x_242 = x_240;
  } else {
   lean_dec_ref(x_240);
   x_242 = lean_box(0);
  }
  if (lean_is_scalar(x_242)) {
   x_243 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_243 = x_242;
  }
  lean_ctor_set(x_243, 0, x_224);
  lean_ctor_set(x_243, 1, x_241);
  return x_243;
  }
  else
  {
  lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; 
  x_244 = lean_ctor_get(x_223, 0);
  lean_inc(x_244);
  x_245 = lean_ctor_get(x_223, 1);
  lean_inc(x_245);
  lean_dec(x_223);
  x_246 = lean_st_ref_get(x_5, x_245);
  x_247 = lean_ctor_get(x_246, 1);
  lean_inc(x_247);
  lean_dec(x_246);
  x_248 = lean_st_ref_take(x_5, x_247);
  x_249 = lean_ctor_get(x_248, 0);
  lean_inc(x_249);
  x_250 = lean_ctor_get(x_249, 3);
  lean_inc(x_250);
  x_251 = lean_ctor_get(x_248, 1);
  lean_inc(x_251);
  lean_dec(x_248);
  x_252 = lean_ctor_get(x_249, 0);
  lean_inc(x_252);
  x_253 = lean_ctor_get(x_249, 1);
  lean_inc(x_253);
  x_254 = lean_ctor_get(x_249, 2);
  lean_inc(x_254);
  if (lean_is_exclusive(x_249)) {
   lean_ctor_release(x_249, 0);
   lean_ctor_release(x_249, 1);
   lean_ctor_release(x_249, 2);
   lean_ctor_release(x_249, 3);
   x_255 = x_249;
  } else {
   lean_dec_ref(x_249);
   x_255 = lean_box(0);
  }
  x_256 = lean_ctor_get(x_250, 0);
  lean_inc(x_256);
  if (lean_is_exclusive(x_250)) {
   lean_ctor_release(x_250, 0);
   x_257 = x_250;
  } else {
   lean_dec_ref(x_250);
   x_257 = lean_box(0);
  }
  if (lean_is_scalar(x_257)) {
   x_258 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_258 = x_257;
  }
  lean_ctor_set(x_258, 0, x_256);
  lean_ctor_set_uint8(x_258, sizeof(void*)*1, x_13);
  if (lean_is_scalar(x_255)) {
   x_259 = lean_alloc_ctor(0, 4, 0);
  } else {
   x_259 = x_255;
  }
  lean_ctor_set(x_259, 0, x_252);
  lean_ctor_set(x_259, 1, x_253);
  lean_ctor_set(x_259, 2, x_254);
  lean_ctor_set(x_259, 3, x_258);
  x_260 = lean_st_ref_set(x_5, x_259, x_251);
  lean_dec(x_5);
  x_261 = lean_ctor_get(x_260, 1);
  lean_inc(x_261);
  if (lean_is_exclusive(x_260)) {
   lean_ctor_release(x_260, 0);
   lean_ctor_release(x_260, 1);
   x_262 = x_260;
  } else {
   lean_dec_ref(x_260);
   x_262 = lean_box(0);
  }
  if (lean_is_scalar(x_262)) {
   x_263 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_263 = x_262;
   lean_ctor_set_tag(x_263, 1);
  }
  lean_ctor_set(x_263, 0, x_244);
  lean_ctor_set(x_263, 1, x_261);
  return x_263;
  }
  }
  }
  else
  {
  lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; uint8_t x_278; uint8_t x_279; uint8_t x_280; uint8_t x_281; uint8_t x_282; uint8_t x_283; uint8_t x_284; uint8_t x_285; lean_object* x_286; uint8_t x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
  x_264 = lean_ctor_get(x_15, 0);
  x_265 = lean_ctor_get(x_15, 1);
  x_266 = lean_ctor_get(x_15, 2);
  lean_inc(x_266);
  lean_inc(x_265);
  lean_inc(x_264);
  lean_dec(x_15);
  x_267 = lean_ctor_get(x_16, 0);
  lean_inc(x_267);
  if (lean_is_exclusive(x_16)) {
   lean_ctor_release(x_16, 0);
   x_268 = x_16;
  } else {
   lean_dec_ref(x_16);
   x_268 = lean_box(0);
  }
  x_269 = 0;
  if (lean_is_scalar(x_268)) {
   x_270 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_270 = x_268;
  }
  lean_ctor_set(x_270, 0, x_267);
  lean_ctor_set_uint8(x_270, sizeof(void*)*1, x_269);
  x_271 = lean_alloc_ctor(0, 4, 0);
  lean_ctor_set(x_271, 0, x_264);
  lean_ctor_set(x_271, 1, x_265);
  lean_ctor_set(x_271, 2, x_266);
  lean_ctor_set(x_271, 3, x_270);
  x_272 = lean_st_ref_set(x_5, x_271, x_17);
  x_273 = lean_ctor_get(x_2, 0);
  lean_inc(x_273);
  x_274 = lean_ctor_get(x_272, 1);
  lean_inc(x_274);
  lean_dec(x_272);
  x_275 = lean_ctor_get(x_2, 1);
  lean_inc(x_275);
  x_276 = lean_ctor_get(x_2, 2);
  lean_inc(x_276);
  if (lean_is_exclusive(x_2)) {
   lean_ctor_release(x_2, 0);
   lean_ctor_release(x_2, 1);
   lean_ctor_release(x_2, 2);
   x_277 = x_2;
  } else {
   lean_dec_ref(x_2);
   x_277 = lean_box(0);
  }
  x_278 = lean_ctor_get_uint8(x_273, 0);
  x_279 = lean_ctor_get_uint8(x_273, 1);
  x_280 = lean_ctor_get_uint8(x_273, 2);
  x_281 = lean_ctor_get_uint8(x_273, 3);
  x_282 = lean_ctor_get_uint8(x_273, 4);
  x_283 = lean_ctor_get_uint8(x_273, 6);
  x_284 = lean_ctor_get_uint8(x_273, 7);
  x_285 = lean_ctor_get_uint8(x_273, 8);
  if (lean_is_exclusive(x_273)) {
   x_286 = x_273;
  } else {
   lean_dec_ref(x_273);
   x_286 = lean_box(0);
  }
  x_287 = 0;
  if (lean_is_scalar(x_286)) {
   x_288 = lean_alloc_ctor(0, 0, 9);
  } else {
   x_288 = x_286;
  }
  lean_ctor_set_uint8(x_288, 0, x_278);
  lean_ctor_set_uint8(x_288, 1, x_279);
  lean_ctor_set_uint8(x_288, 2, x_280);
  lean_ctor_set_uint8(x_288, 3, x_281);
  lean_ctor_set_uint8(x_288, 4, x_282);
  lean_ctor_set_uint8(x_288, 5, x_287);
  lean_ctor_set_uint8(x_288, 6, x_283);
  lean_ctor_set_uint8(x_288, 7, x_284);
  lean_ctor_set_uint8(x_288, 8, x_285);
  if (lean_is_scalar(x_277)) {
   x_289 = lean_alloc_ctor(0, 3, 0);
  } else {
   x_289 = x_277;
  }
  lean_ctor_set(x_289, 0, x_288);
  lean_ctor_set(x_289, 1, x_275);
  lean_ctor_set(x_289, 2, x_276);
  lean_inc(x_5);
  x_290 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_1, x_289, x_3, x_4, x_5, x_274);
  if (lean_obj_tag(x_290) == 0)
  {
  lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; 
  x_291 = lean_ctor_get(x_290, 0);
  lean_inc(x_291);
  x_292 = lean_ctor_get(x_290, 1);
  lean_inc(x_292);
  lean_dec(x_290);
  x_293 = lean_st_ref_get(x_5, x_292);
  x_294 = lean_ctor_get(x_293, 1);
  lean_inc(x_294);
  lean_dec(x_293);
  x_295 = lean_st_ref_take(x_5, x_294);
  x_296 = lean_ctor_get(x_295, 0);
  lean_inc(x_296);
  x_297 = lean_ctor_get(x_296, 3);
  lean_inc(x_297);
  x_298 = lean_ctor_get(x_295, 1);
  lean_inc(x_298);
  lean_dec(x_295);
  x_299 = lean_ctor_get(x_296, 0);
  lean_inc(x_299);
  x_300 = lean_ctor_get(x_296, 1);
  lean_inc(x_300);
  x_301 = lean_ctor_get(x_296, 2);
  lean_inc(x_301);
  if (lean_is_exclusive(x_296)) {
   lean_ctor_release(x_296, 0);
   lean_ctor_release(x_296, 1);
   lean_ctor_release(x_296, 2);
   lean_ctor_release(x_296, 3);
   x_302 = x_296;
  } else {
   lean_dec_ref(x_296);
   x_302 = lean_box(0);
  }
  x_303 = lean_ctor_get(x_297, 0);
  lean_inc(x_303);
  if (lean_is_exclusive(x_297)) {
   lean_ctor_release(x_297, 0);
   x_304 = x_297;
  } else {
   lean_dec_ref(x_297);
   x_304 = lean_box(0);
  }
  if (lean_is_scalar(x_304)) {
   x_305 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_305 = x_304;
  }
  lean_ctor_set(x_305, 0, x_303);
  lean_ctor_set_uint8(x_305, sizeof(void*)*1, x_13);
  if (lean_is_scalar(x_302)) {
   x_306 = lean_alloc_ctor(0, 4, 0);
  } else {
   x_306 = x_302;
  }
  lean_ctor_set(x_306, 0, x_299);
  lean_ctor_set(x_306, 1, x_300);
  lean_ctor_set(x_306, 2, x_301);
  lean_ctor_set(x_306, 3, x_305);
  x_307 = lean_st_ref_set(x_5, x_306, x_298);
  lean_dec(x_5);
  x_308 = lean_ctor_get(x_307, 1);
  lean_inc(x_308);
  if (lean_is_exclusive(x_307)) {
   lean_ctor_release(x_307, 0);
   lean_ctor_release(x_307, 1);
   x_309 = x_307;
  } else {
   lean_dec_ref(x_307);
   x_309 = lean_box(0);
  }
  if (lean_is_scalar(x_309)) {
   x_310 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_310 = x_309;
  }
  lean_ctor_set(x_310, 0, x_291);
  lean_ctor_set(x_310, 1, x_308);
  return x_310;
  }
  else
  {
  lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; 
  x_311 = lean_ctor_get(x_290, 0);
  lean_inc(x_311);
  x_312 = lean_ctor_get(x_290, 1);
  lean_inc(x_312);
  lean_dec(x_290);
  x_313 = lean_st_ref_get(x_5, x_312);
  x_314 = lean_ctor_get(x_313, 1);
  lean_inc(x_314);
  lean_dec(x_313);
  x_315 = lean_st_ref_take(x_5, x_314);
  x_316 = lean_ctor_get(x_315, 0);
  lean_inc(x_316);
  x_317 = lean_ctor_get(x_316, 3);
  lean_inc(x_317);
  x_318 = lean_ctor_get(x_315, 1);
  lean_inc(x_318);
  lean_dec(x_315);
  x_319 = lean_ctor_get(x_316, 0);
  lean_inc(x_319);
  x_320 = lean_ctor_get(x_316, 1);
  lean_inc(x_320);
  x_321 = lean_ctor_get(x_316, 2);
  lean_inc(x_321);
  if (lean_is_exclusive(x_316)) {
   lean_ctor_release(x_316, 0);
   lean_ctor_release(x_316, 1);
   lean_ctor_release(x_316, 2);
   lean_ctor_release(x_316, 3);
   x_322 = x_316;
  } else {
   lean_dec_ref(x_316);
   x_322 = lean_box(0);
  }
  x_323 = lean_ctor_get(x_317, 0);
  lean_inc(x_323);
  if (lean_is_exclusive(x_317)) {
   lean_ctor_release(x_317, 0);
   x_324 = x_317;
  } else {
   lean_dec_ref(x_317);
   x_324 = lean_box(0);
  }
  if (lean_is_scalar(x_324)) {
   x_325 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_325 = x_324;
  }
  lean_ctor_set(x_325, 0, x_323);
  lean_ctor_set_uint8(x_325, sizeof(void*)*1, x_13);
  if (lean_is_scalar(x_322)) {
   x_326 = lean_alloc_ctor(0, 4, 0);
  } else {
   x_326 = x_322;
  }
  lean_ctor_set(x_326, 0, x_319);
  lean_ctor_set(x_326, 1, x_320);
  lean_ctor_set(x_326, 2, x_321);
  lean_ctor_set(x_326, 3, x_325);
  x_327 = lean_st_ref_set(x_5, x_326, x_318);
  lean_dec(x_5);
  x_328 = lean_ctor_get(x_327, 1);
  lean_inc(x_328);
  if (lean_is_exclusive(x_327)) {
   lean_ctor_release(x_327, 0);
   lean_ctor_release(x_327, 1);
   x_329 = x_327;
  } else {
   lean_dec_ref(x_327);
   x_329 = lean_box(0);
  }
  if (lean_is_scalar(x_329)) {
   x_330 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_330 = x_329;
   lean_ctor_set_tag(x_330, 1);
  }
  lean_ctor_set(x_330, 0, x_311);
  lean_ctor_set(x_330, 1, x_328);
  return x_330;
  }
  }
  }
  else
  {
  lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; uint8_t x_338; 
  x_331 = lean_ctor_get(x_4, 3);
  lean_inc(x_331);
  x_332 = l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__6___rarg(x_5, x_8);
  x_333 = lean_ctor_get(x_2, 0);
  lean_inc(x_333);
  x_334 = lean_ctor_get(x_332, 0);
  lean_inc(x_334);
  x_335 = lean_ctor_get(x_332, 1);
  lean_inc(x_335);
  lean_dec(x_332);
  x_336 = lean_ctor_get(x_2, 1);
  lean_inc(x_336);
  x_337 = lean_ctor_get(x_2, 2);
  lean_inc(x_337);
  x_338 = !lean_is_exclusive(x_333);
  if (x_338 == 0)
  {
  uint8_t x_339; lean_object* x_340; lean_object* x_341; 
  x_339 = 0;
  lean_ctor_set_uint8(x_333, 5, x_339);
  x_340 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_340, 0, x_333);
  lean_ctor_set(x_340, 1, x_336);
  lean_ctor_set(x_340, 2, x_337);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_341 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_1, x_340, x_3, x_4, x_5, x_335);
  if (lean_obj_tag(x_341) == 0)
  {
  lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; uint8_t x_346; 
  x_342 = lean_ctor_get(x_341, 0);
  lean_inc(x_342);
  x_343 = lean_ctor_get(x_341, 1);
  lean_inc(x_343);
  lean_dec(x_341);
  x_344 = l_Lean_Meta_check___closed__2;
  x_345 = l___private_Lean_Util_Trace_0__Lean_addNode___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__7(x_334, x_344, x_331, x_2, x_3, x_4, x_5, x_343);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_346 = !lean_is_exclusive(x_345);
  if (x_346 == 0)
  {
  lean_object* x_347; 
  x_347 = lean_ctor_get(x_345, 0);
  lean_dec(x_347);
  lean_ctor_set(x_345, 0, x_342);
  return x_345;
  }
  else
  {
  lean_object* x_348; lean_object* x_349; 
  x_348 = lean_ctor_get(x_345, 1);
  lean_inc(x_348);
  lean_dec(x_345);
  x_349 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_349, 0, x_342);
  lean_ctor_set(x_349, 1, x_348);
  return x_349;
  }
  }
  else
  {
  lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; uint8_t x_354; 
  x_350 = lean_ctor_get(x_341, 0);
  lean_inc(x_350);
  x_351 = lean_ctor_get(x_341, 1);
  lean_inc(x_351);
  lean_dec(x_341);
  x_352 = l_Lean_Meta_check___closed__2;
  x_353 = l___private_Lean_Util_Trace_0__Lean_addNode___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__7(x_334, x_352, x_331, x_2, x_3, x_4, x_5, x_351);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_354 = !lean_is_exclusive(x_353);
  if (x_354 == 0)
  {
  lean_object* x_355; 
  x_355 = lean_ctor_get(x_353, 0);
  lean_dec(x_355);
  lean_ctor_set_tag(x_353, 1);
  lean_ctor_set(x_353, 0, x_350);
  return x_353;
  }
  else
  {
  lean_object* x_356; lean_object* x_357; 
  x_356 = lean_ctor_get(x_353, 1);
  lean_inc(x_356);
  lean_dec(x_353);
  x_357 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_357, 0, x_350);
  lean_ctor_set(x_357, 1, x_356);
  return x_357;
  }
  }
  }
  else
  {
  uint8_t x_358; uint8_t x_359; uint8_t x_360; uint8_t x_361; uint8_t x_362; uint8_t x_363; uint8_t x_364; uint8_t x_365; uint8_t x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; 
  x_358 = lean_ctor_get_uint8(x_333, 0);
  x_359 = lean_ctor_get_uint8(x_333, 1);
  x_360 = lean_ctor_get_uint8(x_333, 2);
  x_361 = lean_ctor_get_uint8(x_333, 3);
  x_362 = lean_ctor_get_uint8(x_333, 4);
  x_363 = lean_ctor_get_uint8(x_333, 6);
  x_364 = lean_ctor_get_uint8(x_333, 7);
  x_365 = lean_ctor_get_uint8(x_333, 8);
  lean_dec(x_333);
  x_366 = 0;
  x_367 = lean_alloc_ctor(0, 0, 9);
  lean_ctor_set_uint8(x_367, 0, x_358);
  lean_ctor_set_uint8(x_367, 1, x_359);
  lean_ctor_set_uint8(x_367, 2, x_360);
  lean_ctor_set_uint8(x_367, 3, x_361);
  lean_ctor_set_uint8(x_367, 4, x_362);
  lean_ctor_set_uint8(x_367, 5, x_366);
  lean_ctor_set_uint8(x_367, 6, x_363);
  lean_ctor_set_uint8(x_367, 7, x_364);
  lean_ctor_set_uint8(x_367, 8, x_365);
  x_368 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_368, 0, x_367);
  lean_ctor_set(x_368, 1, x_336);
  lean_ctor_set(x_368, 2, x_337);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_369 = l___private_Lean_Meta_Check_0__Lean_Meta_checkAux(x_1, x_368, x_3, x_4, x_5, x_335);
  if (lean_obj_tag(x_369) == 0)
  {
  lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
  x_370 = lean_ctor_get(x_369, 0);
  lean_inc(x_370);
  x_371 = lean_ctor_get(x_369, 1);
  lean_inc(x_371);
  lean_dec(x_369);
  x_372 = l_Lean_Meta_check___closed__2;
  x_373 = l___private_Lean_Util_Trace_0__Lean_addNode___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__7(x_334, x_372, x_331, x_2, x_3, x_4, x_5, x_371);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_374 = lean_ctor_get(x_373, 1);
  lean_inc(x_374);
  if (lean_is_exclusive(x_373)) {
   lean_ctor_release(x_373, 0);
   lean_ctor_release(x_373, 1);
   x_375 = x_373;
  } else {
   lean_dec_ref(x_373);
   x_375 = lean_box(0);
  }
  if (lean_is_scalar(x_375)) {
   x_376 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_376 = x_375;
  }
  lean_ctor_set(x_376, 0, x_370);
  lean_ctor_set(x_376, 1, x_374);
  return x_376;
  }
  else
  {
  lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; 
  x_377 = lean_ctor_get(x_369, 0);
  lean_inc(x_377);
  x_378 = lean_ctor_get(x_369, 1);
  lean_inc(x_378);
  lean_dec(x_369);
  x_379 = l_Lean_Meta_check___closed__2;
  x_380 = l___private_Lean_Util_Trace_0__Lean_addNode___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__7(x_334, x_379, x_331, x_2, x_3, x_4, x_5, x_378);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_381 = lean_ctor_get(x_380, 1);
  lean_inc(x_381);
  if (lean_is_exclusive(x_380)) {
   lean_ctor_release(x_380, 0);
   lean_ctor_release(x_380, 1);
   x_382 = x_380;
  } else {
   lean_dec_ref(x_380);
   x_382 = lean_box(0);
  }
  if (lean_is_scalar(x_382)) {
   x_383 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_383 = x_382;
   lean_ctor_set_tag(x_383, 1);
  }
  lean_ctor_set(x_383, 0, x_377);
  lean_ctor_set(x_383, 1, x_381);
  return x_383;
  }
  }
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Meta_isTypeCorrect___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("typeError");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_isTypeCorrect___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_557____closed__2;
  x_2 = l_Lean_Meta_isTypeCorrect___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Meta_isTypeCorrect(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_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_7 = l_Lean_Meta_check(x_1, x_2, x_3, x_4, x_5, x_6);
  if (lean_obj_tag(x_7) == 0)
  {
  uint8_t x_8; 
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_8 = !lean_is_exclusive(x_7);
  if (x_8 == 0)
  {
  lean_object* x_9; uint8_t x_10; lean_object* x_11; 
  x_9 = lean_ctor_get(x_7, 0);
  lean_dec(x_9);
  x_10 = 1;
  x_11 = lean_box(x_10);
  lean_ctor_set(x_7, 0, x_11);
  return x_7;
  }
  else
  {
  lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = lean_ctor_get(x_7, 1);
  lean_inc(x_12);
  lean_dec(x_7);
  x_13 = 1;
  x_14 = lean_box(x_13);
  x_15 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_15, 0, x_14);
  lean_ctor_set(x_15, 1, x_12);
  return x_15;
  }
  }
  else
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
  x_16 = lean_ctor_get(x_7, 0);
  lean_inc(x_16);
  x_17 = lean_ctor_get(x_7, 1);
  lean_inc(x_17);
  lean_dec(x_7);
  x_18 = lean_st_ref_get(x_5, x_17);
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  x_20 = lean_ctor_get(x_19, 3);
  lean_inc(x_20);
  lean_dec(x_19);
  x_21 = lean_ctor_get_uint8(x_20, sizeof(void*)*1);
  lean_dec(x_20);
  if (x_21 == 0)
  {
  uint8_t x_22; 
  lean_dec(x_16);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_22 = !lean_is_exclusive(x_18);
  if (x_22 == 0)
  {
  lean_object* x_23; uint8_t x_24; lean_object* x_25; 
  x_23 = lean_ctor_get(x_18, 0);
  lean_dec(x_23);
  x_24 = 0;
  x_25 = lean_box(x_24);
  lean_ctor_set(x_18, 0, x_25);
  return x_18;
  }
  else
  {
  lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; 
  x_26 = lean_ctor_get(x_18, 1);
  lean_inc(x_26);
  lean_dec(x_18);
  x_27 = 0;
  x_28 = lean_box(x_27);
  x_29 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_29, 0, x_28);
  lean_ctor_set(x_29, 1, x_26);
  return x_29;
  }
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; 
  x_30 = lean_ctor_get(x_18, 1);
  lean_inc(x_30);
  lean_dec(x_18);
  x_31 = l_Lean_Meta_isTypeCorrect___closed__2;
  x_32 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___spec__2(x_31, x_2, x_3, x_4, x_5, x_30);
  x_33 = lean_ctor_get(x_32, 0);
  lean_inc(x_33);
  x_34 = lean_unbox(x_33);
  lean_dec(x_33);
  if (x_34 == 0)
  {
  uint8_t x_35; 
  lean_dec(x_16);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_35 = !lean_is_exclusive(x_32);
  if (x_35 == 0)
  {
  lean_object* x_36; uint8_t x_37; lean_object* x_38; 
  x_36 = lean_ctor_get(x_32, 0);
  lean_dec(x_36);
  x_37 = 0;
  x_38 = lean_box(x_37);
  lean_ctor_set(x_32, 0, x_38);
  return x_32;
  }
  else
  {
  lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; 
  x_39 = lean_ctor_get(x_32, 1);
  lean_inc(x_39);
  lean_dec(x_32);
  x_40 = 0;
  x_41 = lean_box(x_40);
  x_42 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_42, 0, x_41);
  lean_ctor_set(x_42, 1, x_39);
  return x_42;
  }
  }
  else
  {
  lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
  x_43 = lean_ctor_get(x_32, 1);
  lean_inc(x_43);
  lean_dec(x_32);
  x_44 = l_Lean_Exception_toMessageData(x_16);
  x_45 = l_Lean_addTrace___at_Lean_Meta_isLevelDefEqAux___spec__1(x_31, x_44, x_2, x_3, x_4, x_5, x_43);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_46 = !lean_is_exclusive(x_45);
  if (x_46 == 0)
  {
  lean_object* x_47; uint8_t x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_45, 0);
  lean_dec(x_47);
  x_48 = 0;
  x_49 = lean_box(x_48);
  lean_ctor_set(x_45, 0, x_49);
  return x_45;
  }
  else
  {
  lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; 
  x_50 = lean_ctor_get(x_45, 1);
  lean_inc(x_50);
  lean_dec(x_45);
  x_51 = 0;
  x_52 = lean_box(x_51);
  x_53 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_53, 0, x_52);
  lean_ctor_set(x_53, 1, x_50);
  return x_53;
  }
  }
  }
  }
  }
  }
  lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_1699_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l_Lean_Meta_check___closed__2;
  x_3 = l_Lean_registerTraceClass(x_2, x_1);
  if (lean_obj_tag(x_3) == 0)
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_4 = lean_ctor_get(x_3, 1);
  lean_inc(x_4);
  lean_dec(x_3);
  x_5 = l_Lean_Meta_isTypeCorrect___closed__2;
  x_6 = l_Lean_registerTraceClass(x_5, x_4);
  return x_6;
  }
  else
  {
  uint8_t x_7; 
  x_7 = !lean_is_exclusive(x_3);
  if (x_7 == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  x_8 = lean_ctor_get(x_3, 0);
  x_9 = lean_ctor_get(x_3, 1);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_dec(x_3);
  x_10 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_10, 0, x_8);
  lean_ctor_set(x_10, 1, x_9);
  return x_10;
  }
  }
  }
  }
  lean_object* initialize_Init(lean_object*);
  lean_object* initialize_Lean_Meta_InferType(lean_object*);
  lean_object* initialize_Lean_Meta_LevelDefEq(lean_object*);
  static bool _G_initialized = false;
  lean_object* initialize_Lean_Meta_Check(lean_object* w) {
  lean_object * res;
  if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
  _G_initialized = true;
  res = initialize_Init(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Meta_InferType(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Meta_LevelDefEq(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1();
  lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__1);
  l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2();
  lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__2);
  l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3();
  lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__3);
  l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4();
  lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__4);
  l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5();
  lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__5);
  l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6();
  lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__6);
  l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7();
  lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__7);
  l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8();
  lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__8);
  l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9 = _init_l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9();
  lean_mark_persistent(l_Lean_Meta_throwLetTypeMismatchMessage___rarg___closed__9);
  l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__1();
  lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__1);
  l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__2 = _init_l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__2();
  lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___closed__2);
  l_Lean_Meta_addPPExplicitToExposeDiff___closed__1 = _init_l_Lean_Meta_addPPExplicitToExposeDiff___closed__1();
  lean_mark_persistent(l_Lean_Meta_addPPExplicitToExposeDiff___closed__1);
  l_Lean_Meta_addPPExplicitToExposeDiff___closed__2 = _init_l_Lean_Meta_addPPExplicitToExposeDiff___closed__2();
  lean_mark_persistent(l_Lean_Meta_addPPExplicitToExposeDiff___closed__2);
  l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__1 = _init_l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__1();
  lean_mark_persistent(l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__1);
  l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2 = _init_l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2();
  lean_mark_persistent(l_Lean_Meta_mkHasTypeButIsExpectedMsg___closed__2);
  l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__1 = _init_l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__1();
  lean_mark_persistent(l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__1);
  l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__2 = _init_l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__2();
  lean_mark_persistent(l_Lean_Meta_throwAppTypeMismatch___rarg___lambda__1___closed__2);
  l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___closed__1 = _init_l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___closed__1();
  lean_mark_persistent(l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkLambdaLet___closed__1);
  l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___closed__1 = _init_l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___closed__1();
  lean_mark_persistent(l___private_Lean_Meta_Check_0__Lean_Meta_checkAux_checkForall___closed__1);
  l_Lean_Meta_check___closed__1 = _init_l_Lean_Meta_check___closed__1();
  lean_mark_persistent(l_Lean_Meta_check___closed__1);
  l_Lean_Meta_check___closed__2 = _init_l_Lean_Meta_check___closed__2();
  lean_mark_persistent(l_Lean_Meta_check___closed__2);
  l_Lean_Meta_isTypeCorrect___closed__1 = _init_l_Lean_Meta_isTypeCorrect___closed__1();
  lean_mark_persistent(l_Lean_Meta_isTypeCorrect___closed__1);
  l_Lean_Meta_isTypeCorrect___closed__2 = _init_l_Lean_Meta_isTypeCorrect___closed__2();
  lean_mark_persistent(l_Lean_Meta_isTypeCorrect___closed__2);
  res = l_Lean_Meta_initFn____x40_Lean_Meta_Check___hyg_1699_(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  return lean_io_result_mk_ok(lean_box(0));
  }
  #ifdef __cplusplus
  }
  #endif
  