text: // Lean compiler output
  // Module: Lean.Meta.Match.CaseValues
  // Imports: Init Lean.Meta.Tactic.Subst Lean.Meta.Tactic.Clear
  #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* l_Lean_Meta_caseValues_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  size_t l_USize_add(size_t, size_t);
  lean_object* l_Lean_Expr_mvarId_x21(lean_object*);
  lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_stringToMessageData(lean_object*);
  lean_object* lean_mk_empty_array_with_capacity(lean_object*);
  lean_object* l_Lean_Meta_appendTagSuffix(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_caseValueAux___lambda__3___closed__2;
  lean_object* l_Lean_Meta_caseValueAux___lambda__2___closed__3;
  lean_object* l_Lean_Meta_caseValueAux___lambda__3___closed__4;
  lean_object* l_Lean_Meta_caseValueAux___lambda__3(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_Array_empty___closed__1;
  lean_object* l_Lean_Meta_caseValues_loop_match__1(lean_object*);
  lean_object* l_Lean_Meta_instInhabitedCaseValueSubgoal___closed__1;
  lean_object* lean_st_ref_get(lean_object*, lean_object*);
  lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_caseValues_loop___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* l_Lean_Meta_CaseValuesSubgoal_newHs___default;
  lean_object* l_Lean_Meta_FVarSubst_domain(lean_object*);
  lean_object* l_Lean_Meta_caseValue___closed__4;
  extern lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_mkAnswer___closed__4;
  lean_object* lean_array_push(lean_object*, lean_object*);
  lean_object* lean_array_get_size(lean_object*);
  lean_object* l_Lean_MessageData_ofList(lean_object*);
  lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValueAux_match__1(lean_object*);
  lean_object* l_Lean_Meta_caseValue___closed__1;
  lean_object* l_Lean_Meta_instInhabitedCaseValueSubgoal;
  lean_object* l_Lean_Meta_mkAppOptM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValueAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_nat_add(lean_object*, lean_object*);
  lean_object* l_List_map___at_Lean_Meta_substCore___spec__4(lean_object*);
  extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_740____closed__2;
  lean_object* l_Lean_Meta_caseValues_loop_match__4(lean_object*);
  lean_object* l_Lean_Meta_caseValueAux___lambda__1___closed__2;
  lean_object* l_Lean_Meta_CaseValuesSubgoal_subst___default;
  lean_object* l_Lean_addTrace___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValues_loop___closed__4;
  lean_object* l_Lean_Meta_substCore(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValueAux___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValueAux___lambda__1___closed__1;
  lean_object* l_Lean_Meta_caseValueAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValueAux___lambda__2___closed__1;
  lean_object* l_Lean_Meta_tryClear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValueAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValue___closed__2;
  lean_object* l_Lean_Expr_fvarId_x21(lean_object*);
  lean_object* lean_name_append_index_after(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_instInhabitedCaseValuesSubgoal;
  lean_object* l_Lean_Meta_caseValueAux_match__1___rarg(lean_object*, lean_object*);
  lean_object* lean_array_to_list(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_CaseValueSubgoal_subst___default;
  lean_object* l_Lean_Meta_caseValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValue___closed__6;
  lean_object* l_Lean_Meta_instInhabitedCaseValuesSubgoal___closed__1;
  extern lean_object* l_Lean_KernelException_toMessageData___closed__15;
  lean_object* l_Lean_Meta_caseValues_loop___closed__3;
  lean_object* l_Lean_Meta_caseValueAux___lambda__3___closed__3;
  lean_object* l_Lean_Meta_caseValues_loop___closed__5;
  lean_object* l_Lean_Meta_caseValues_loop_match__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValue___closed__5;
  lean_object* l_Lean_mkFVar(lean_object*);
  size_t lean_usize_of_nat(lean_object*);
  lean_object* l_Lean_Meta_caseValues_loop_match__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_FVarSubst_get(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValues_loop___closed__2;
  lean_object* l_Lean_Meta_caseValueAux(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_checkNotAssigned(lean_object*, 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_caseValues_loop___closed__6;
  uint8_t lean_nat_dec_le(lean_object*, lean_object*);
  lean_object* l_Lean_mkApp(lean_object*, lean_object*);
  extern lean_object* l_Lean_Parser_Tactic_case___closed__1;
  lean_object* l_Lean_Meta_caseValues_loop___closed__1;
  lean_object* l_Lean_Meta_caseValues_loop_match__3(lean_object*);
  lean_object* l_Lean_Meta_caseValueAux___lambda__3___closed__7;
  lean_object* l_Lean_Meta_caseValueAux___lambda__2___closed__2;
  lean_object* l_Lean_Meta_caseValue___closed__3;
  lean_object* l_Lean_Meta_caseValues_loop_match__2___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValues_loop_match__2(lean_object*);
  lean_object* l_Lean_Meta_caseValueAux___lambda__3___closed__5;
  lean_object* l_Lean_Meta_caseValueAux_match__2___rarg(lean_object*, lean_object*);
  extern lean_object* l_Lean_mkOptionalNode___closed__2;
  lean_object* l_Lean_Meta_caseValueAux_match__2(lean_object*);
  lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_myMacro____x40_Init_Notation___hyg_14734____closed__4;
  extern lean_object* l_myMacro____x40_Init_Notation___hyg_11514____closed__4;
  lean_object* l_Lean_Meta_caseValueAux___lambda__2___closed__4;
  lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValueAux___lambda__3___closed__1;
  lean_object* l_Lean_Meta_getMVarTag___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkConst(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValueAux___lambda__3___closed__6;
  lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_mkAnswer___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_caseValues_loop_match__3___rarg(lean_object*, lean_object*);
  uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
  lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_caseValues_loop___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* _init_l_Lean_Meta_CaseValueSubgoal_subst___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_instInhabitedCaseValueSubgoal___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = lean_box(0);
  x_3 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_3, 0, x_2);
  lean_ctor_set(x_3, 1, x_2);
  lean_ctor_set(x_3, 2, x_1);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Meta_instInhabitedCaseValueSubgoal() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Meta_instInhabitedCaseValueSubgoal___closed__1;
  return x_1;
  }
  }
  lean_object* l_Lean_Meta_caseValueAux_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_caseValueAux_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_caseValueAux_match__1___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_caseValueAux_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_caseValueAux_match__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_caseValueAux_match__2___rarg), 2, 0);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__1___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("subst domain: ");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__1___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Meta_caseValueAux___lambda__1___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_caseValueAux___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  if (x_3 == 0)
  {
  lean_object* x_9; lean_object* x_10; 
  lean_dec(x_2);
  x_9 = lean_box(0);
  x_10 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_10, 0, x_9);
  lean_ctor_set(x_10, 1, x_8);
  return x_10;
  }
  else
  {
  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; 
  x_11 = l_Lean_Meta_FVarSubst_domain(x_1);
  x_12 = l_List_map___at_Lean_Meta_substCore___spec__4(x_11);
  x_13 = l_Lean_MessageData_ofList(x_12);
  lean_dec(x_12);
  x_14 = l_Lean_Meta_caseValueAux___lambda__1___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_KernelException_toMessageData___closed__15;
  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_addTrace___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__1(x_2, x_17, x_4, x_5, x_6, x_7, x_8);
  return x_18;
  }
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__2___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("found decl");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__2___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Meta_caseValueAux___lambda__2___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__2___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("searching for decl");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__2___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Meta_caseValueAux___lambda__2___closed__3;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_caseValueAux___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
  x_10 = l_Lean_Meta_FVarSubst_get(x_1, x_2);
  x_11 = l_Lean_Expr_fvarId_x21(x_10);
  lean_dec(x_10);
  x_43 = lean_st_ref_get(x_8, x_9);
  x_44 = lean_ctor_get(x_43, 0);
  lean_inc(x_44);
  x_45 = lean_ctor_get(x_44, 3);
  lean_inc(x_45);
  lean_dec(x_44);
  x_46 = lean_ctor_get_uint8(x_45, sizeof(void*)*1);
  lean_dec(x_45);
  if (x_46 == 0)
  {
  lean_object* x_47; 
  x_47 = lean_ctor_get(x_43, 1);
  lean_inc(x_47);
  lean_dec(x_43);
  x_12 = x_47;
  goto block_42;
  }
  else
  {
  lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; 
  x_48 = lean_ctor_get(x_43, 1);
  lean_inc(x_48);
  lean_dec(x_43);
  lean_inc(x_3);
  x_49 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__2(x_3, x_5, x_6, x_7, x_8, x_48);
  x_50 = lean_ctor_get(x_49, 0);
  lean_inc(x_50);
  x_51 = lean_unbox(x_50);
  lean_dec(x_50);
  if (x_51 == 0)
  {
  lean_object* x_52; 
  x_52 = lean_ctor_get(x_49, 1);
  lean_inc(x_52);
  lean_dec(x_49);
  x_12 = x_52;
  goto block_42;
  }
  else
  {
  lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 
  x_53 = lean_ctor_get(x_49, 1);
  lean_inc(x_53);
  lean_dec(x_49);
  x_54 = l_Lean_Meta_caseValueAux___lambda__2___closed__4;
  lean_inc(x_3);
  x_55 = l_Lean_addTrace___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__1(x_3, x_54, x_5, x_6, x_7, x_8, x_53);
  x_56 = lean_ctor_get(x_55, 1);
  lean_inc(x_56);
  lean_dec(x_55);
  x_12 = x_56;
  goto block_42;
  }
  }
  block_42:
  {
  lean_object* x_13; 
  lean_inc(x_5);
  x_13 = l_Lean_Meta_getLocalDecl(x_11, x_5, x_6, x_7, x_8, x_12);
  if (lean_obj_tag(x_13) == 0)
  {
  lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
  x_14 = lean_ctor_get(x_13, 1);
  lean_inc(x_14);
  lean_dec(x_13);
  x_15 = lean_st_ref_get(x_8, x_14);
  x_16 = lean_ctor_get(x_15, 0);
  lean_inc(x_16);
  x_17 = lean_ctor_get(x_16, 3);
  lean_inc(x_17);
  lean_dec(x_16);
  x_18 = lean_ctor_get_uint8(x_17, sizeof(void*)*1);
  lean_dec(x_17);
  if (x_18 == 0)
  {
  uint8_t x_19; 
  lean_dec(x_5);
  lean_dec(x_3);
  x_19 = !lean_is_exclusive(x_15);
  if (x_19 == 0)
  {
  lean_object* x_20; lean_object* x_21; 
  x_20 = lean_ctor_get(x_15, 0);
  lean_dec(x_20);
  x_21 = lean_box(0);
  lean_ctor_set(x_15, 0, x_21);
  return x_15;
  }
  else
  {
  lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_22 = lean_ctor_get(x_15, 1);
  lean_inc(x_22);
  lean_dec(x_15);
  x_23 = lean_box(0);
  x_24 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_24, 0, x_23);
  lean_ctor_set(x_24, 1, x_22);
  return x_24;
  }
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; 
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_dec(x_15);
  lean_inc(x_3);
  x_26 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__2(x_3, x_5, x_6, x_7, x_8, x_25);
  x_27 = lean_ctor_get(x_26, 0);
  lean_inc(x_27);
  x_28 = lean_unbox(x_27);
  lean_dec(x_27);
  if (x_28 == 0)
  {
  uint8_t x_29; 
  lean_dec(x_5);
  lean_dec(x_3);
  x_29 = !lean_is_exclusive(x_26);
  if (x_29 == 0)
  {
  lean_object* x_30; lean_object* x_31; 
  x_30 = lean_ctor_get(x_26, 0);
  lean_dec(x_30);
  x_31 = lean_box(0);
  lean_ctor_set(x_26, 0, x_31);
  return x_26;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; 
  x_32 = lean_ctor_get(x_26, 1);
  lean_inc(x_32);
  lean_dec(x_26);
  x_33 = lean_box(0);
  x_34 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_34, 0, x_33);
  lean_ctor_set(x_34, 1, x_32);
  return x_34;
  }
  }
  else
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  x_35 = lean_ctor_get(x_26, 1);
  lean_inc(x_35);
  lean_dec(x_26);
  x_36 = l_Lean_Meta_caseValueAux___lambda__2___closed__2;
  x_37 = l_Lean_addTrace___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___spec__1(x_3, x_36, x_5, x_6, x_7, x_8, x_35);
  lean_dec(x_5);
  return x_37;
  }
  }
  }
  else
  {
  uint8_t x_38; 
  lean_dec(x_5);
  lean_dec(x_3);
  x_38 = !lean_is_exclusive(x_13);
  if (x_38 == 0)
  {
  return x_13;
  }
  else
  {
  lean_object* x_39; lean_object* x_40; lean_object* x_41; 
  x_39 = lean_ctor_get(x_13, 0);
  x_40 = lean_ctor_get(x_13, 1);
  lean_inc(x_40);
  lean_inc(x_39);
  lean_dec(x_13);
  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_Lean_Meta_caseValueAux___lambda__3___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("caseValue");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__3___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Meta_caseValueAux___lambda__3___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__3___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_myMacro____x40_Init_Notation___hyg_11514____closed__4;
  x_3 = l_Lean_mkConst(x_2, x_1);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__3___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(5u);
  x_2 = lean_mk_empty_array_with_capacity(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__3___closed__5() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Meta_caseValueAux___lambda__3___closed__4;
  x_3 = lean_array_push(x_2, x_1);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__3___closed__6() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_740____closed__2;
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_mkAnswer___lambda__2___boxed), 7, 1);
  lean_closure_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValueAux___lambda__3___closed__7() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_mkAnswer___closed__4;
  x_2 = l_Lean_Meta_caseValueAux___lambda__3___closed__6;
  x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
  lean_closure_set(x_3, 0, x_1);
  lean_closure_set(x_3, 1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Meta_caseValueAux___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  lean_object* x_12; lean_object* x_13; 
  x_12 = l_Lean_Meta_caseValueAux___lambda__3___closed__2;
  lean_inc(x_1);
  x_13 = l_Lean_Meta_checkNotAssigned(x_1, x_12, x_7, x_8, x_9, x_10, x_11);
  if (lean_obj_tag(x_13) == 0)
  {
  lean_object* x_14; lean_object* x_15; 
  x_14 = lean_ctor_get(x_13, 1);
  lean_inc(x_14);
  lean_dec(x_13);
  lean_inc(x_1);
  x_15 = l_Lean_Meta_getMVarType(x_1, x_7, x_8, x_9, x_10, x_14);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_16 = lean_ctor_get(x_15, 0);
  lean_inc(x_16);
  x_17 = lean_ctor_get(x_15, 1);
  lean_inc(x_17);
  lean_dec(x_15);
  x_18 = l_Lean_mkFVar(x_2);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  x_19 = l_Lean_Meta_mkEq(x_18, x_3, x_7, x_8, x_9, x_10, x_17);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = l_Lean_Meta_caseValueAux___lambda__3___closed__3;
  lean_inc(x_20);
  x_23 = l_Lean_mkApp(x_22, x_20);
  x_24 = 0;
  lean_inc(x_16);
  lean_inc(x_20);
  lean_inc(x_4);
  x_25 = l_Lean_mkForall(x_4, x_24, x_20, x_16);
  x_26 = l_Lean_mkForall(x_4, x_24, x_23, x_16);
  lean_inc(x_7);
  lean_inc(x_6);
  x_27 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_25, x_6, x_7, x_8, x_9, x_10, x_21);
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  lean_inc(x_7);
  x_30 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_26, x_6, x_7, x_8, x_9, x_10, x_29);
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = lean_box(0);
  x_34 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_34, 0, x_20);
  lean_inc(x_28);
  x_35 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_35, 0, x_28);
  lean_inc(x_31);
  x_36 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_36, 0, x_31);
  x_37 = l_Lean_Meta_caseValueAux___lambda__3___closed__5;
  x_38 = lean_array_push(x_37, x_34);
  x_39 = lean_array_push(x_38, x_33);
  x_40 = lean_array_push(x_39, x_35);
  x_41 = lean_array_push(x_40, x_36);
  x_42 = l_myMacro____x40_Init_Notation___hyg_14734____closed__4;
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  x_43 = l_Lean_Meta_mkAppOptM(x_42, x_41, x_7, x_8, x_9, x_10, x_32);
  if (lean_obj_tag(x_43) == 0)
  {
  lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; 
  x_44 = lean_ctor_get(x_43, 0);
  lean_inc(x_44);
  x_45 = lean_ctor_get(x_43, 1);
  lean_inc(x_45);
  lean_dec(x_43);
  x_46 = l_Lean_Meta_assignExprMVar(x_1, x_44, x_7, x_8, x_9, x_10, x_45);
  x_47 = lean_ctor_get(x_46, 1);
  lean_inc(x_47);
  lean_dec(x_46);
  x_48 = l_Lean_Expr_mvarId_x21(x_31);
  lean_dec(x_31);
  x_49 = 1;
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  x_50 = l_Lean_Meta_intro1Core(x_48, x_49, x_7, x_8, x_9, x_10, x_47);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  x_53 = lean_ctor_get(x_51, 0);
  lean_inc(x_53);
  x_54 = lean_ctor_get(x_51, 1);
  lean_inc(x_54);
  lean_dec(x_51);
  lean_inc(x_5);
  x_55 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_55, 0, x_54);
  lean_ctor_set(x_55, 1, x_53);
  lean_ctor_set(x_55, 2, x_5);
  x_56 = l_Lean_Expr_mvarId_x21(x_28);
  lean_dec(x_28);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  x_57 = l_Lean_Meta_intro1Core(x_56, x_49, x_7, x_8, x_9, x_10, x_52);
  if (lean_obj_tag(x_57) == 0)
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; 
  x_58 = lean_ctor_get(x_57, 0);
  lean_inc(x_58);
  x_59 = lean_ctor_get(x_57, 1);
  lean_inc(x_59);
  lean_dec(x_57);
  x_60 = lean_ctor_get(x_58, 0);
  lean_inc(x_60);
  x_61 = lean_ctor_get(x_58, 1);
  lean_inc(x_61);
  lean_dec(x_58);
  x_62 = 0;
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_60);
  x_63 = l_Lean_Meta_substCore(x_61, x_60, x_62, x_5, x_62, x_62, x_7, x_8, x_9, x_10, x_59);
  if (lean_obj_tag(x_63) == 0)
  {
  lean_object* x_64; lean_object* x_65; uint8_t x_66; 
  x_64 = lean_ctor_get(x_63, 0);
  lean_inc(x_64);
  x_65 = lean_ctor_get(x_63, 1);
  lean_inc(x_65);
  lean_dec(x_63);
  x_66 = !lean_is_exclusive(x_64);
  if (x_66 == 0)
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
  x_67 = lean_ctor_get(x_64, 0);
  x_68 = lean_ctor_get(x_64, 1);
  x_69 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_740____closed__2;
  lean_inc(x_67);
  x_70 = lean_alloc_closure((void*)(l_Lean_Meta_caseValueAux___lambda__1___boxed), 8, 2);
  lean_closure_set(x_70, 0, x_67);
  lean_closure_set(x_70, 1, x_69);
  x_71 = l_Lean_Meta_caseValueAux___lambda__3___closed__7;
  x_72 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
  lean_closure_set(x_72, 0, x_71);
  lean_closure_set(x_72, 1, x_70);
  lean_inc(x_60);
  lean_inc(x_67);
  x_73 = lean_alloc_closure((void*)(l_Lean_Meta_caseValueAux___lambda__2___boxed), 9, 3);
  lean_closure_set(x_73, 0, x_67);
  lean_closure_set(x_73, 1, x_60);
  lean_closure_set(x_73, 2, x_69);
  x_74 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
  lean_closure_set(x_74, 0, x_72);
  lean_closure_set(x_74, 1, x_73);
  lean_inc(x_68);
  x_75 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__1___rarg(x_68, x_74, x_7, x_8, x_9, x_10, x_65);
  if (lean_obj_tag(x_75) == 0)
  {
  uint8_t x_76; 
  x_76 = !lean_is_exclusive(x_75);
  if (x_76 == 0)
  {
  lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; 
  x_77 = lean_ctor_get(x_75, 0);
  lean_dec(x_77);
  x_78 = l_Lean_Meta_FVarSubst_get(x_67, x_60);
  x_79 = l_Lean_Expr_fvarId_x21(x_78);
  lean_dec(x_78);
  x_80 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_80, 0, x_68);
  lean_ctor_set(x_80, 1, x_79);
  lean_ctor_set(x_80, 2, x_67);
  lean_ctor_set(x_64, 1, x_55);
  lean_ctor_set(x_64, 0, x_80);
  lean_ctor_set(x_75, 0, x_64);
  return x_75;
  }
  else
  {
  lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 
  x_81 = lean_ctor_get(x_75, 1);
  lean_inc(x_81);
  lean_dec(x_75);
  x_82 = l_Lean_Meta_FVarSubst_get(x_67, x_60);
  x_83 = l_Lean_Expr_fvarId_x21(x_82);
  lean_dec(x_82);
  x_84 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_84, 0, x_68);
  lean_ctor_set(x_84, 1, x_83);
  lean_ctor_set(x_84, 2, x_67);
  lean_ctor_set(x_64, 1, x_55);
  lean_ctor_set(x_64, 0, x_84);
  x_85 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_85, 0, x_64);
  lean_ctor_set(x_85, 1, x_81);
  return x_85;
  }
  }
  else
  {
  uint8_t x_86; 
  lean_free_object(x_64);
  lean_dec(x_68);
  lean_dec(x_67);
  lean_dec(x_60);
  lean_dec(x_55);
  x_86 = !lean_is_exclusive(x_75);
  if (x_86 == 0)
  {
  return x_75;
  }
  else
  {
  lean_object* x_87; lean_object* x_88; lean_object* x_89; 
  x_87 = lean_ctor_get(x_75, 0);
  x_88 = lean_ctor_get(x_75, 1);
  lean_inc(x_88);
  lean_inc(x_87);
  lean_dec(x_75);
  x_89 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_89, 0, x_87);
  lean_ctor_set(x_89, 1, x_88);
  return x_89;
  }
  }
  }
  else
  {
  lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
  x_90 = lean_ctor_get(x_64, 0);
  x_91 = lean_ctor_get(x_64, 1);
  lean_inc(x_91);
  lean_inc(x_90);
  lean_dec(x_64);
  x_92 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_740____closed__2;
  lean_inc(x_90);
  x_93 = lean_alloc_closure((void*)(l_Lean_Meta_caseValueAux___lambda__1___boxed), 8, 2);
  lean_closure_set(x_93, 0, x_90);
  lean_closure_set(x_93, 1, x_92);
  x_94 = l_Lean_Meta_caseValueAux___lambda__3___closed__7;
  x_95 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
  lean_closure_set(x_95, 0, x_94);
  lean_closure_set(x_95, 1, x_93);
  lean_inc(x_60);
  lean_inc(x_90);
  x_96 = lean_alloc_closure((void*)(l_Lean_Meta_caseValueAux___lambda__2___boxed), 9, 3);
  lean_closure_set(x_96, 0, x_90);
  lean_closure_set(x_96, 1, x_60);
  lean_closure_set(x_96, 2, x_92);
  x_97 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
  lean_closure_set(x_97, 0, x_95);
  lean_closure_set(x_97, 1, x_96);
  lean_inc(x_91);
  x_98 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__1___rarg(x_91, x_97, x_7, x_8, x_9, x_10, x_65);
  if (lean_obj_tag(x_98) == 0)
  {
  lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
  x_99 = lean_ctor_get(x_98, 1);
  lean_inc(x_99);
  if (lean_is_exclusive(x_98)) {
   lean_ctor_release(x_98, 0);
   lean_ctor_release(x_98, 1);
   x_100 = x_98;
  } else {
   lean_dec_ref(x_98);
   x_100 = lean_box(0);
  }
  x_101 = l_Lean_Meta_FVarSubst_get(x_90, x_60);
  x_102 = l_Lean_Expr_fvarId_x21(x_101);
  lean_dec(x_101);
  x_103 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_103, 0, x_91);
  lean_ctor_set(x_103, 1, x_102);
  lean_ctor_set(x_103, 2, x_90);
  x_104 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_104, 0, x_103);
  lean_ctor_set(x_104, 1, x_55);
  if (lean_is_scalar(x_100)) {
   x_105 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_105 = x_100;
  }
  lean_ctor_set(x_105, 0, x_104);
  lean_ctor_set(x_105, 1, x_99);
  return x_105;
  }
  else
  {
  lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; 
  lean_dec(x_91);
  lean_dec(x_90);
  lean_dec(x_60);
  lean_dec(x_55);
  x_106 = lean_ctor_get(x_98, 0);
  lean_inc(x_106);
  x_107 = lean_ctor_get(x_98, 1);
  lean_inc(x_107);
  if (lean_is_exclusive(x_98)) {
   lean_ctor_release(x_98, 0);
   lean_ctor_release(x_98, 1);
   x_108 = x_98;
  } else {
   lean_dec_ref(x_98);
   x_108 = lean_box(0);
  }
  if (lean_is_scalar(x_108)) {
   x_109 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_109 = x_108;
  }
  lean_ctor_set(x_109, 0, x_106);
  lean_ctor_set(x_109, 1, x_107);
  return x_109;
  }
  }
  }
  else
  {
  uint8_t x_110; 
  lean_dec(x_60);
  lean_dec(x_55);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  x_110 = !lean_is_exclusive(x_63);
  if (x_110 == 0)
  {
  return x_63;
  }
  else
  {
  lean_object* x_111; lean_object* x_112; lean_object* x_113; 
  x_111 = lean_ctor_get(x_63, 0);
  x_112 = lean_ctor_get(x_63, 1);
  lean_inc(x_112);
  lean_inc(x_111);
  lean_dec(x_63);
  x_113 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_113, 0, x_111);
  lean_ctor_set(x_113, 1, x_112);
  return x_113;
  }
  }
  }
  else
  {
  uint8_t x_114; 
  lean_dec(x_55);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_5);
  x_114 = !lean_is_exclusive(x_57);
  if (x_114 == 0)
  {
  return x_57;
  }
  else
  {
  lean_object* x_115; lean_object* x_116; lean_object* x_117; 
  x_115 = lean_ctor_get(x_57, 0);
  x_116 = lean_ctor_get(x_57, 1);
  lean_inc(x_116);
  lean_inc(x_115);
  lean_dec(x_57);
  x_117 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_117, 0, x_115);
  lean_ctor_set(x_117, 1, x_116);
  return x_117;
  }
  }
  }
  else
  {
  uint8_t x_118; 
  lean_dec(x_28);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_5);
  x_118 = !lean_is_exclusive(x_50);
  if (x_118 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_119; lean_object* x_120; lean_object* x_121; 
  x_119 = lean_ctor_get(x_50, 0);
  x_120 = lean_ctor_get(x_50, 1);
  lean_inc(x_120);
  lean_inc(x_119);
  lean_dec(x_50);
  x_121 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_121, 0, x_119);
  lean_ctor_set(x_121, 1, x_120);
  return x_121;
  }
  }
  }
  else
  {
  uint8_t x_122; 
  lean_dec(x_31);
  lean_dec(x_28);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_5);
  lean_dec(x_1);
  x_122 = !lean_is_exclusive(x_43);
  if (x_122 == 0)
  {
  return x_43;
  }
  else
  {
  lean_object* x_123; lean_object* x_124; lean_object* x_125; 
  x_123 = lean_ctor_get(x_43, 0);
  x_124 = lean_ctor_get(x_43, 1);
  lean_inc(x_124);
  lean_inc(x_123);
  lean_dec(x_43);
  x_125 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_125, 0, x_123);
  lean_ctor_set(x_125, 1, x_124);
  return x_125;
  }
  }
  }
  else
  {
  uint8_t x_126; 
  lean_dec(x_16);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_126 = !lean_is_exclusive(x_19);
  if (x_126 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_127; lean_object* x_128; lean_object* x_129; 
  x_127 = lean_ctor_get(x_19, 0);
  x_128 = lean_ctor_get(x_19, 1);
  lean_inc(x_128);
  lean_inc(x_127);
  lean_dec(x_19);
  x_129 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_129, 0, x_127);
  lean_ctor_set(x_129, 1, x_128);
  return x_129;
  }
  }
  }
  else
  {
  uint8_t x_130; 
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_130 = !lean_is_exclusive(x_15);
  if (x_130 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_131; lean_object* x_132; lean_object* x_133; 
  x_131 = lean_ctor_get(x_15, 0);
  x_132 = lean_ctor_get(x_15, 1);
  lean_inc(x_132);
  lean_inc(x_131);
  lean_dec(x_15);
  x_133 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_133, 0, x_131);
  lean_ctor_set(x_133, 1, x_132);
  return x_133;
  }
  }
  }
  else
  {
  uint8_t x_134; 
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_134 = !lean_is_exclusive(x_13);
  if (x_134 == 0)
  {
  return x_13;
  }
  else
  {
  lean_object* x_135; lean_object* x_136; lean_object* x_137; 
  x_135 = lean_ctor_get(x_13, 0);
  x_136 = lean_ctor_get(x_13, 1);
  lean_inc(x_136);
  lean_inc(x_135);
  lean_dec(x_13);
  x_137 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_137, 0, x_135);
  lean_ctor_set(x_137, 1, x_136);
  return x_137;
  }
  }
  }
  }
  lean_object* l_Lean_Meta_caseValueAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  lean_inc(x_1);
  x_11 = lean_alloc_closure((void*)(l_Lean_Meta_getMVarTag___boxed), 6, 1);
  lean_closure_set(x_11, 0, x_1);
  lean_inc(x_1);
  x_12 = lean_alloc_closure((void*)(l_Lean_Meta_caseValueAux___lambda__3), 11, 5);
  lean_closure_set(x_12, 0, x_1);
  lean_closure_set(x_12, 1, x_2);
  lean_closure_set(x_12, 2, x_3);
  lean_closure_set(x_12, 3, x_4);
  lean_closure_set(x_12, 4, x_5);
  x_13 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg), 7, 2);
  lean_closure_set(x_13, 0, x_11);
  lean_closure_set(x_13, 1, x_12);
  x_14 = l_Lean_Meta_withMVarContext___at_Lean_Meta_admit___spec__1___rarg(x_1, x_13, x_6, x_7, x_8, x_9, x_10);
  return x_14;
  }
  }
  lean_object* l_Lean_Meta_caseValueAux___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  uint8_t x_9; lean_object* x_10; 
  x_9 = lean_unbox(x_3);
  lean_dec(x_3);
  x_10 = l_Lean_Meta_caseValueAux___lambda__1(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  return x_10;
  }
  }
  lean_object* l_Lean_Meta_caseValueAux___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; 
  x_10 = l_Lean_Meta_caseValueAux___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_4);
  lean_dec(x_1);
  return x_10;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValue___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("h");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValue___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Meta_caseValue___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValue___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("thenBranch");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValue___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Meta_caseValue___closed__3;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValue___closed__5() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("elseBranch");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValue___closed__6() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Meta_caseValue___closed__5;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Meta_caseValue(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; 
  x_9 = lean_box(0);
  x_10 = l_Lean_Meta_caseValue___closed__2;
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  x_11 = l_Lean_Meta_caseValueAux(x_1, x_2, x_3, x_10, x_9, x_4, x_5, x_6, x_7, x_8);
  if (lean_obj_tag(x_11) == 0)
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_12 = lean_ctor_get(x_11, 0);
  lean_inc(x_12);
  x_13 = lean_ctor_get(x_11, 1);
  lean_inc(x_13);
  lean_dec(x_11);
  x_14 = lean_ctor_get(x_12, 0);
  lean_inc(x_14);
  x_15 = lean_ctor_get(x_14, 0);
  lean_inc(x_15);
  lean_dec(x_14);
  x_16 = l_Lean_Meta_caseValue___closed__4;
  x_17 = l_Lean_Meta_appendTagSuffix(x_15, x_16, x_4, x_5, x_6, x_7, x_13);
  if (lean_obj_tag(x_17) == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_18 = lean_ctor_get(x_17, 1);
  lean_inc(x_18);
  lean_dec(x_17);
  x_19 = lean_ctor_get(x_12, 1);
  lean_inc(x_19);
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  lean_dec(x_19);
  x_21 = l_Lean_Meta_caseValue___closed__6;
  x_22 = l_Lean_Meta_appendTagSuffix(x_20, x_21, x_4, x_5, x_6, x_7, x_18);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  if (lean_obj_tag(x_22) == 0)
  {
  uint8_t x_23; 
  x_23 = !lean_is_exclusive(x_22);
  if (x_23 == 0)
  {
  lean_object* x_24; 
  x_24 = lean_ctor_get(x_22, 0);
  lean_dec(x_24);
  lean_ctor_set(x_22, 0, x_12);
  return x_22;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; 
  x_25 = lean_ctor_get(x_22, 1);
  lean_inc(x_25);
  lean_dec(x_22);
  x_26 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_26, 0, x_12);
  lean_ctor_set(x_26, 1, x_25);
  return x_26;
  }
  }
  else
  {
  uint8_t x_27; 
  lean_dec(x_12);
  x_27 = !lean_is_exclusive(x_22);
  if (x_27 == 0)
  {
  return x_22;
  }
  else
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_28 = lean_ctor_get(x_22, 0);
  x_29 = lean_ctor_get(x_22, 1);
  lean_inc(x_29);
  lean_inc(x_28);
  lean_dec(x_22);
  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_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_31 = !lean_is_exclusive(x_17);
  if (x_31 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; 
  x_32 = lean_ctor_get(x_17, 0);
  x_33 = lean_ctor_get(x_17, 1);
  lean_inc(x_33);
  lean_inc(x_32);
  lean_dec(x_17);
  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
  {
  uint8_t x_35; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_35 = !lean_is_exclusive(x_11);
  if (x_35 == 0)
  {
  return x_11;
  }
  else
  {
  lean_object* x_36; lean_object* x_37; lean_object* x_38; 
  x_36 = lean_ctor_get(x_11, 0);
  x_37 = lean_ctor_get(x_11, 1);
  lean_inc(x_37);
  lean_inc(x_36);
  lean_dec(x_11);
  x_38 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_38, 0, x_36);
  lean_ctor_set(x_38, 1, x_37);
  return x_38;
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Meta_CaseValuesSubgoal_newHs___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Array_empty___closed__1;
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_CaseValuesSubgoal_subst___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_instInhabitedCaseValuesSubgoal___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
  x_1 = lean_box(0);
  x_2 = lean_box(0);
  x_3 = l_Array_empty___closed__1;
  x_4 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_4, 0, x_2);
  lean_ctor_set(x_4, 1, x_3);
  lean_ctor_set(x_4, 2, x_1);
  return x_4;
  }
  }
  static lean_object* _init_l_Lean_Meta_instInhabitedCaseValuesSubgoal() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Meta_instInhabitedCaseValuesSubgoal___closed__1;
  return x_1;
  }
  }
  lean_object* l_Lean_Meta_caseValues_loop_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 1)
  {
  lean_object* x_4; uint64_t x_5; lean_object* x_6; lean_object* x_7; 
  lean_dec(x_3);
  x_4 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  x_5 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  lean_dec(x_1);
  x_6 = lean_box_uint64(x_5);
  x_7 = lean_apply_2(x_2, x_4, x_6);
  return x_7;
  }
  else
  {
  lean_object* x_8; 
  lean_dec(x_2);
  x_8 = lean_apply_1(x_3, x_1);
  return x_8;
  }
  }
  }
  lean_object* l_Lean_Meta_caseValues_loop_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_caseValues_loop_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_caseValues_loop_match__2___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_dec(x_2);
  x_6 = lean_apply_1(x_3, x_1);
  return x_6;
  }
  }
  }
  lean_object* l_Lean_Meta_caseValues_loop_match__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_caseValues_loop_match__2___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_caseValues_loop_match__3___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_caseValues_loop_match__3(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_caseValues_loop_match__3___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_caseValues_loop_match__4___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) {
  _start:
  {
  if (lean_obj_tag(x_3) == 0)
  {
  lean_object* x_8; 
  lean_dec(x_7);
  x_8 = lean_apply_4(x_6, x_1, x_2, x_4, x_5);
  return x_8;
  }
  else
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; 
  lean_dec(x_6);
  x_9 = lean_ctor_get(x_3, 0);
  lean_inc(x_9);
  x_10 = lean_ctor_get(x_3, 1);
  lean_inc(x_10);
  lean_dec(x_3);
  x_11 = lean_apply_6(x_7, x_1, x_2, x_9, x_10, x_4, x_5);
  return x_11;
  }
  }
  }
  lean_object* l_Lean_Meta_caseValues_loop_match__4(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_caseValues_loop_match__4___rarg), 7, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_caseValues_loop___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; lean_object* x_12; uint8_t x_17; 
  x_17 = x_3 == x_4;
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_18 = lean_array_uget(x_2, x_3);
  x_19 = lean_ctor_get(x_1, 2);
  x_20 = l_Lean_Meta_FVarSubst_get(x_19, x_18);
  if (lean_obj_tag(x_20) == 1)
  {
  lean_object* x_21; lean_object* x_22; 
  x_21 = lean_ctor_get(x_20, 0);
  lean_inc(x_21);
  lean_dec(x_20);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_22 = l_Lean_Meta_tryClear(x_5, x_21, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_22) == 0)
  {
  lean_object* x_23; lean_object* x_24; 
  x_23 = lean_ctor_get(x_22, 0);
  lean_inc(x_23);
  x_24 = lean_ctor_get(x_22, 1);
  lean_inc(x_24);
  lean_dec(x_22);
  x_11 = x_23;
  x_12 = x_24;
  goto block_16;
  }
  else
  {
  uint8_t x_25; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_25 = !lean_is_exclusive(x_22);
  if (x_25 == 0)
  {
  return x_22;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_22, 0);
  x_27 = lean_ctor_get(x_22, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_22);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  else
  {
  lean_dec(x_20);
  x_11 = x_5;
  x_12 = x_10;
  goto block_16;
  }
  }
  else
  {
  lean_object* x_29; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_29 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_29, 0, x_5);
  lean_ctor_set(x_29, 1, x_10);
  return x_29;
  }
  block_16:
  {
  size_t x_13; size_t x_14; 
  x_13 = 1;
  x_14 = x_3 + x_13;
  x_3 = x_14;
  x_5 = x_11;
  x_10 = x_12;
  goto _start;
  }
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValues_loop___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("caseValues");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValues_loop___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Meta_caseValues_loop___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValues_loop___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("list of values must not be empty");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValues_loop___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Meta_caseValues_loop___closed__3;
  x_2 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValues_loop___closed__5() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Meta_caseValues_loop___closed__4;
  x_2 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Meta_caseValues_loop___closed__6() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Parser_Tactic_case___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Meta_caseValues_loop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_13 = l_Lean_Meta_caseValues_loop___closed__2;
  x_14 = l_Lean_Meta_caseValues_loop___closed__5;
  x_15 = lean_box(0);
  x_16 = l_Lean_Meta_throwTacticEx___rarg(x_13, x_4, x_14, x_15, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  return x_16;
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
  x_17 = lean_ctor_get(x_5, 0);
  lean_inc(x_17);
  x_18 = lean_ctor_get(x_5, 1);
  lean_inc(x_18);
  lean_dec(x_5);
  lean_inc(x_3);
  lean_inc(x_2);
  x_19 = lean_name_append_index_after(x_2, x_3);
  x_20 = lean_box(0);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_1);
  x_21 = l_Lean_Meta_caseValueAux(x_4, x_1, x_17, x_19, x_20, x_8, x_9, x_10, x_11, x_12);
  if (lean_obj_tag(x_21) == 0)
  {
  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; 
  x_22 = lean_ctor_get(x_21, 0);
  lean_inc(x_22);
  x_23 = lean_ctor_get(x_22, 0);
  lean_inc(x_23);
  x_24 = lean_ctor_get(x_21, 1);
  lean_inc(x_24);
  lean_dec(x_21);
  x_25 = lean_ctor_get(x_22, 1);
  lean_inc(x_25);
  lean_dec(x_22);
  x_26 = lean_ctor_get(x_23, 0);
  lean_inc(x_26);
  x_27 = lean_ctor_get(x_23, 1);
  lean_inc(x_27);
  x_28 = lean_ctor_get(x_23, 2);
  lean_inc(x_28);
  x_29 = l_Lean_Meta_caseValues_loop___closed__6;
  lean_inc(x_3);
  x_30 = lean_name_append_index_after(x_29, x_3);
  lean_inc(x_26);
  x_31 = l_Lean_Meta_appendTagSuffix(x_26, x_30, x_8, x_9, x_10, x_11, x_24);
  if (lean_obj_tag(x_31) == 0)
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_66; lean_object* x_67; uint8_t x_68; 
  x_32 = lean_ctor_get(x_31, 1);
  lean_inc(x_32);
  lean_dec(x_31);
  x_66 = lean_array_get_size(x_6);
  x_67 = lean_unsigned_to_nat(0u);
  x_68 = lean_nat_dec_lt(x_67, x_66);
  if (x_68 == 0)
  {
  lean_dec(x_66);
  lean_dec(x_23);
  x_33 = x_26;
  x_34 = x_32;
  goto block_65;
  }
  else
  {
  uint8_t x_69; 
  x_69 = lean_nat_dec_le(x_66, x_66);
  if (x_69 == 0)
  {
  lean_dec(x_66);
  lean_dec(x_23);
  x_33 = x_26;
  x_34 = x_32;
  goto block_65;
  }
  else
  {
  size_t x_70; size_t x_71; lean_object* x_72; 
  x_70 = 0;
  x_71 = lean_usize_of_nat(x_66);
  lean_dec(x_66);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  x_72 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_caseValues_loop___spec__1(x_23, x_6, x_70, x_71, x_26, x_8, x_9, x_10, x_11, x_32);
  lean_dec(x_23);
  if (lean_obj_tag(x_72) == 0)
  {
  lean_object* x_73; lean_object* x_74; 
  x_73 = lean_ctor_get(x_72, 0);
  lean_inc(x_73);
  x_74 = lean_ctor_get(x_72, 1);
  lean_inc(x_74);
  lean_dec(x_72);
  x_33 = x_73;
  x_34 = x_74;
  goto block_65;
  }
  else
  {
  uint8_t x_75; 
  lean_dec(x_28);
  lean_dec(x_27);
  lean_dec(x_25);
  lean_dec(x_18);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_75 = !lean_is_exclusive(x_72);
  if (x_75 == 0)
  {
  return x_72;
  }
  else
  {
  lean_object* x_76; lean_object* x_77; lean_object* x_78; 
  x_76 = lean_ctor_get(x_72, 0);
  x_77 = lean_ctor_get(x_72, 1);
  lean_inc(x_77);
  lean_inc(x_76);
  lean_dec(x_72);
  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;
  }
  }
  }
  }
  block_65:
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
  x_35 = l_Lean_mkOptionalNode___closed__2;
  x_36 = lean_array_push(x_35, x_27);
  x_37 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_37, 0, x_33);
  lean_ctor_set(x_37, 1, x_36);
  lean_ctor_set(x_37, 2, x_28);
  x_38 = lean_array_push(x_7, x_37);
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_39 = lean_ctor_get(x_25, 0);
  lean_inc(x_39);
  x_40 = lean_ctor_get(x_25, 1);
  lean_inc(x_40);
  lean_dec(x_25);
  x_41 = lean_unsigned_to_nat(1u);
  x_42 = lean_nat_add(x_3, x_41);
  lean_dec(x_3);
  x_43 = lean_name_append_index_after(x_29, x_42);
  lean_inc(x_39);
  x_44 = l_Lean_Meta_appendTagSuffix(x_39, x_43, x_8, x_9, x_10, x_11, x_34);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  if (lean_obj_tag(x_44) == 0)
  {
  uint8_t x_45; 
  x_45 = !lean_is_exclusive(x_44);
  if (x_45 == 0)
  {
  lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_46 = lean_ctor_get(x_44, 0);
  lean_dec(x_46);
  x_47 = lean_array_push(x_6, x_40);
  x_48 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_48, 0, x_39);
  lean_ctor_set(x_48, 1, x_47);
  lean_ctor_set(x_48, 2, x_20);
  x_49 = lean_array_push(x_38, x_48);
  lean_ctor_set(x_44, 0, x_49);
  return x_44;
  }
  else
  {
  lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
  x_50 = lean_ctor_get(x_44, 1);
  lean_inc(x_50);
  lean_dec(x_44);
  x_51 = lean_array_push(x_6, x_40);
  x_52 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_52, 0, x_39);
  lean_ctor_set(x_52, 1, x_51);
  lean_ctor_set(x_52, 2, x_20);
  x_53 = lean_array_push(x_38, x_52);
  x_54 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_54, 0, x_53);
  lean_ctor_set(x_54, 1, x_50);
  return x_54;
  }
  }
  else
  {
  uint8_t x_55; 
  lean_dec(x_40);
  lean_dec(x_39);
  lean_dec(x_38);
  lean_dec(x_6);
  x_55 = !lean_is_exclusive(x_44);
  if (x_55 == 0)
  {
  return x_44;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; 
  x_56 = lean_ctor_get(x_44, 0);
  x_57 = lean_ctor_get(x_44, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_44);
  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
  {
  lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; 
  x_59 = lean_unsigned_to_nat(1u);
  x_60 = lean_nat_add(x_3, x_59);
  lean_dec(x_3);
  x_61 = lean_ctor_get(x_25, 0);
  lean_inc(x_61);
  x_62 = lean_ctor_get(x_25, 1);
  lean_inc(x_62);
  lean_dec(x_25);
  x_63 = lean_array_push(x_6, x_62);
  x_3 = x_60;
  x_4 = x_61;
  x_5 = x_18;
  x_6 = x_63;
  x_7 = x_38;
  x_12 = x_34;
  goto _start;
  }
  }
  }
  else
  {
  uint8_t x_79; 
  lean_dec(x_28);
  lean_dec(x_27);
  lean_dec(x_26);
  lean_dec(x_25);
  lean_dec(x_23);
  lean_dec(x_18);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_79 = !lean_is_exclusive(x_31);
  if (x_79 == 0)
  {
  return x_31;
  }
  else
  {
  lean_object* x_80; lean_object* x_81; lean_object* x_82; 
  x_80 = lean_ctor_get(x_31, 0);
  x_81 = lean_ctor_get(x_31, 1);
  lean_inc(x_81);
  lean_inc(x_80);
  lean_dec(x_31);
  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_18);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_83 = !lean_is_exclusive(x_21);
  if (x_83 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_84; lean_object* x_85; lean_object* x_86; 
  x_84 = lean_ctor_get(x_21, 0);
  x_85 = lean_ctor_get(x_21, 1);
  lean_inc(x_85);
  lean_inc(x_84);
  lean_dec(x_21);
  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;
  }
  }
  }
  }
  }
  lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_caseValues_loop___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) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_caseValues_loop___spec__1(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Lean_Meta_caseValues(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_10 = lean_array_to_list(lean_box(0), x_3);
  x_11 = lean_unsigned_to_nat(1u);
  x_12 = l_Array_empty___closed__1;
  x_13 = l_Lean_Meta_caseValues_loop(x_2, x_4, x_11, x_1, x_10, x_12, x_12, x_5, x_6, x_7, x_8, x_9);
  return x_13;
  }
  }
  lean_object* initialize_Init(lean_object*);
  lean_object* initialize_Lean_Meta_Tactic_Subst(lean_object*);
  lean_object* initialize_Lean_Meta_Tactic_Clear(lean_object*);
  static bool _G_initialized = false;
  lean_object* initialize_Lean_Meta_Match_CaseValues(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_Tactic_Subst(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Meta_Tactic_Clear(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l_Lean_Meta_CaseValueSubgoal_subst___default = _init_l_Lean_Meta_CaseValueSubgoal_subst___default();
  lean_mark_persistent(l_Lean_Meta_CaseValueSubgoal_subst___default);
  l_Lean_Meta_instInhabitedCaseValueSubgoal___closed__1 = _init_l_Lean_Meta_instInhabitedCaseValueSubgoal___closed__1();
  lean_mark_persistent(l_Lean_Meta_instInhabitedCaseValueSubgoal___closed__1);
  l_Lean_Meta_instInhabitedCaseValueSubgoal = _init_l_Lean_Meta_instInhabitedCaseValueSubgoal();
  lean_mark_persistent(l_Lean_Meta_instInhabitedCaseValueSubgoal);
  l_Lean_Meta_caseValueAux___lambda__1___closed__1 = _init_l_Lean_Meta_caseValueAux___lambda__1___closed__1();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__1___closed__1);
  l_Lean_Meta_caseValueAux___lambda__1___closed__2 = _init_l_Lean_Meta_caseValueAux___lambda__1___closed__2();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__1___closed__2);
  l_Lean_Meta_caseValueAux___lambda__2___closed__1 = _init_l_Lean_Meta_caseValueAux___lambda__2___closed__1();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__2___closed__1);
  l_Lean_Meta_caseValueAux___lambda__2___closed__2 = _init_l_Lean_Meta_caseValueAux___lambda__2___closed__2();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__2___closed__2);
  l_Lean_Meta_caseValueAux___lambda__2___closed__3 = _init_l_Lean_Meta_caseValueAux___lambda__2___closed__3();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__2___closed__3);
  l_Lean_Meta_caseValueAux___lambda__2___closed__4 = _init_l_Lean_Meta_caseValueAux___lambda__2___closed__4();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__2___closed__4);
  l_Lean_Meta_caseValueAux___lambda__3___closed__1 = _init_l_Lean_Meta_caseValueAux___lambda__3___closed__1();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__3___closed__1);
  l_Lean_Meta_caseValueAux___lambda__3___closed__2 = _init_l_Lean_Meta_caseValueAux___lambda__3___closed__2();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__3___closed__2);
  l_Lean_Meta_caseValueAux___lambda__3___closed__3 = _init_l_Lean_Meta_caseValueAux___lambda__3___closed__3();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__3___closed__3);
  l_Lean_Meta_caseValueAux___lambda__3___closed__4 = _init_l_Lean_Meta_caseValueAux___lambda__3___closed__4();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__3___closed__4);
  l_Lean_Meta_caseValueAux___lambda__3___closed__5 = _init_l_Lean_Meta_caseValueAux___lambda__3___closed__5();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__3___closed__5);
  l_Lean_Meta_caseValueAux___lambda__3___closed__6 = _init_l_Lean_Meta_caseValueAux___lambda__3___closed__6();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__3___closed__6);
  l_Lean_Meta_caseValueAux___lambda__3___closed__7 = _init_l_Lean_Meta_caseValueAux___lambda__3___closed__7();
  lean_mark_persistent(l_Lean_Meta_caseValueAux___lambda__3___closed__7);
  l_Lean_Meta_caseValue___closed__1 = _init_l_Lean_Meta_caseValue___closed__1();
  lean_mark_persistent(l_Lean_Meta_caseValue___closed__1);
  l_Lean_Meta_caseValue___closed__2 = _init_l_Lean_Meta_caseValue___closed__2();
  lean_mark_persistent(l_Lean_Meta_caseValue___closed__2);
  l_Lean_Meta_caseValue___closed__3 = _init_l_Lean_Meta_caseValue___closed__3();
  lean_mark_persistent(l_Lean_Meta_caseValue___closed__3);
  l_Lean_Meta_caseValue___closed__4 = _init_l_Lean_Meta_caseValue___closed__4();
  lean_mark_persistent(l_Lean_Meta_caseValue___closed__4);
  l_Lean_Meta_caseValue___closed__5 = _init_l_Lean_Meta_caseValue___closed__5();
  lean_mark_persistent(l_Lean_Meta_caseValue___closed__5);
  l_Lean_Meta_caseValue___closed__6 = _init_l_Lean_Meta_caseValue___closed__6();
  lean_mark_persistent(l_Lean_Meta_caseValue___closed__6);
  l_Lean_Meta_CaseValuesSubgoal_newHs___default = _init_l_Lean_Meta_CaseValuesSubgoal_newHs___default();
  lean_mark_persistent(l_Lean_Meta_CaseValuesSubgoal_newHs___default);
  l_Lean_Meta_CaseValuesSubgoal_subst___default = _init_l_Lean_Meta_CaseValuesSubgoal_subst___default();
  lean_mark_persistent(l_Lean_Meta_CaseValuesSubgoal_subst___default);
  l_Lean_Meta_instInhabitedCaseValuesSubgoal___closed__1 = _init_l_Lean_Meta_instInhabitedCaseValuesSubgoal___closed__1();
  lean_mark_persistent(l_Lean_Meta_instInhabitedCaseValuesSubgoal___closed__1);
  l_Lean_Meta_instInhabitedCaseValuesSubgoal = _init_l_Lean_Meta_instInhabitedCaseValuesSubgoal();
  lean_mark_persistent(l_Lean_Meta_instInhabitedCaseValuesSubgoal);
  l_Lean_Meta_caseValues_loop___closed__1 = _init_l_Lean_Meta_caseValues_loop___closed__1();
  lean_mark_persistent(l_Lean_Meta_caseValues_loop___closed__1);
  l_Lean_Meta_caseValues_loop___closed__2 = _init_l_Lean_Meta_caseValues_loop___closed__2();
  lean_mark_persistent(l_Lean_Meta_caseValues_loop___closed__2);
  l_Lean_Meta_caseValues_loop___closed__3 = _init_l_Lean_Meta_caseValues_loop___closed__3();
  lean_mark_persistent(l_Lean_Meta_caseValues_loop___closed__3);
  l_Lean_Meta_caseValues_loop___closed__4 = _init_l_Lean_Meta_caseValues_loop___closed__4();
  lean_mark_persistent(l_Lean_Meta_caseValues_loop___closed__4);
  l_Lean_Meta_caseValues_loop___closed__5 = _init_l_Lean_Meta_caseValues_loop___closed__5();
  lean_mark_persistent(l_Lean_Meta_caseValues_loop___closed__5);
  l_Lean_Meta_caseValues_loop___closed__6 = _init_l_Lean_Meta_caseValues_loop___closed__6();
  lean_mark_persistent(l_Lean_Meta_caseValues_loop___closed__6);
  return lean_io_result_mk_ok(lean_box(0));
  }
  #ifdef __cplusplus
  }
  #endif
  