text: // Lean compiler output
  // Module: Lean.Elab.Tactic.Generalize
  // Imports: Init Lean.Meta.Tactic.Generalize Lean.Meta.Check Lean.Meta.Tactic.Intro Lean.Elab.Tactic.ElabTerm
  #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___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq(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___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__2___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_mvarId_x21(lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__2;
  lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux_match__1(lean_object*);
  lean_object* l_Lean_stringToMessageData(lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___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*);
  extern lean_object* l_Lean_Parser_Tactic_generalize___closed__2;
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__1;
  lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg(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___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__1(lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux___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* l_Lean_Meta_getMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_BacktrackableState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_expr_lift_loose_bvars(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getVarName___boxed(lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFallback___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___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize_match__1___rarg(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_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getAuxHypothesisName___boxed(lean_object*);
  lean_object* l_Lean_Syntax_getId(lean_object*);
  lean_object* l_Lean_Meta_generalize(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux___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* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFallback___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___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___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___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFallback(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalGeneralize___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_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalGeneralize(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_Elab_Tactic_tacticElabAttribute;
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize_match__1(lean_object*);
  extern lean_object* l_Lean_Meta_mkEqRefl___closed__2;
  lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux(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_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_Meta_assertExt___lambda__1___closed__1;
  lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize(lean_object*);
  lean_object* l_Lean_Elab_Tactic_saveBacktrackableState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalGeneralize___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* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1___boxed(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_Lean_mkForall(lean_object*, uint8_t, 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*);
  extern lean_object* l_myMacro____x40_Init_Notation___hyg_7613____closed__4;
  uint8_t l_Lean_Syntax_isNone(lean_object*);
  lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__1___rarg(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux_match__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__1;
  lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkConst(lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___closed__1;
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getAuxHypothesisName(lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__2(lean_object*);
  lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getVarName(lean_object*);
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getAuxHypothesisName(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; uint8_t x_4; 
  x_2 = lean_unsigned_to_nat(1u);
  x_3 = l_Lean_Syntax_getArg(x_1, x_2);
  x_4 = l_Lean_Syntax_isNone(x_3);
  if (x_4 == 0)
  {
  lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  x_5 = lean_unsigned_to_nat(0u);
  x_6 = l_Lean_Syntax_getArg(x_3, x_5);
  lean_dec(x_3);
  x_7 = l_Lean_Syntax_getId(x_6);
  lean_dec(x_6);
  x_8 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_8, 0, x_7);
  return x_8;
  }
  else
  {
  lean_object* x_9; 
  lean_dec(x_3);
  x_9 = lean_box(0);
  return x_9;
  }
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getAuxHypothesisName___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getAuxHypothesisName(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getVarName(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; lean_object* x_4; 
  x_2 = lean_unsigned_to_nat(4u);
  x_3 = l_Lean_Syntax_getArg(x_1, x_2);
  x_4 = l_Lean_Syntax_getId(x_3);
  lean_dec(x_3);
  return x_4;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getVarName___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getVarName(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize_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___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize_match__1___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize(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_1);
  x_9 = l_Lean_Meta_getMVarTag(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; 
  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);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_2);
  x_12 = l_Lean_Meta_inferType(x_2, x_4, x_5, x_6, x_7, x_11);
  if (lean_obj_tag(x_12) == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_13 = lean_ctor_get(x_12, 0);
  lean_inc(x_13);
  x_14 = lean_ctor_get(x_12, 1);
  lean_inc(x_14);
  lean_dec(x_12);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_13);
  x_15 = l_Lean_Meta_getLevel(x_13, x_4, x_5, x_6, x_7, 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; 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; uint8_t x_31; uint8_t x_32; lean_object* x_33; 
  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_4);
  x_18 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_3, x_10, x_4, x_5, x_6, x_7, x_17);
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  x_20 = lean_ctor_get(x_18, 1);
  lean_inc(x_20);
  lean_dec(x_18);
  x_21 = lean_box(0);
  x_22 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_22, 0, x_16);
  lean_ctor_set(x_22, 1, x_21);
  x_23 = l_Lean_Meta_mkEqRefl___closed__2;
  x_24 = l_Lean_mkConst(x_23, x_22);
  lean_inc(x_2);
  x_25 = l_Lean_mkAppB(x_24, x_13, x_2);
  lean_inc(x_19);
  x_26 = l_Lean_mkAppB(x_19, x_2, x_25);
  x_27 = l_Lean_Meta_assignExprMVar(x_1, x_26, x_4, x_5, x_6, x_7, x_20);
  x_28 = lean_ctor_get(x_27, 1);
  lean_inc(x_28);
  lean_dec(x_27);
  x_29 = l_Lean_Expr_mvarId_x21(x_19);
  lean_dec(x_19);
  x_30 = lean_unsigned_to_nat(2u);
  x_31 = 0;
  x_32 = 1;
  x_33 = l_Lean_Meta_introNCore(x_29, x_30, x_21, x_31, x_32, x_4, x_5, x_6, x_7, x_28);
  if (lean_obj_tag(x_33) == 0)
  {
  uint8_t x_34; 
  x_34 = !lean_is_exclusive(x_33);
  if (x_34 == 0)
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  x_35 = lean_ctor_get(x_33, 0);
  x_36 = lean_ctor_get(x_35, 1);
  lean_inc(x_36);
  lean_dec(x_35);
  x_37 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_37, 0, x_36);
  lean_ctor_set(x_37, 1, x_21);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
  x_38 = lean_ctor_get(x_33, 0);
  x_39 = lean_ctor_get(x_33, 1);
  lean_inc(x_39);
  lean_inc(x_38);
  lean_dec(x_33);
  x_40 = lean_ctor_get(x_38, 1);
  lean_inc(x_40);
  lean_dec(x_38);
  x_41 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_41, 0, x_40);
  lean_ctor_set(x_41, 1, x_21);
  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
  {
  uint8_t x_43; 
  x_43 = !lean_is_exclusive(x_33);
  if (x_43 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_44; lean_object* x_45; lean_object* x_46; 
  x_44 = lean_ctor_get(x_33, 0);
  x_45 = lean_ctor_get(x_33, 1);
  lean_inc(x_45);
  lean_inc(x_44);
  lean_dec(x_33);
  x_46 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_46, 0, x_44);
  lean_ctor_set(x_46, 1, x_45);
  return x_46;
  }
  }
  }
  else
  {
  uint8_t x_47; 
  lean_dec(x_13);
  lean_dec(x_10);
  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_47 = !lean_is_exclusive(x_15);
  if (x_47 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_48; lean_object* x_49; lean_object* x_50; 
  x_48 = lean_ctor_get(x_15, 0);
  x_49 = lean_ctor_get(x_15, 1);
  lean_inc(x_49);
  lean_inc(x_48);
  lean_dec(x_15);
  x_50 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_50, 0, x_48);
  lean_ctor_set(x_50, 1, x_49);
  return x_50;
  }
  }
  }
  else
  {
  uint8_t x_51; 
  lean_dec(x_10);
  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_51 = !lean_is_exclusive(x_12);
  if (x_51 == 0)
  {
  return x_12;
  }
  else
  {
  lean_object* x_52; lean_object* x_53; lean_object* x_54; 
  x_52 = lean_ctor_get(x_12, 0);
  x_53 = lean_ctor_get(x_12, 1);
  lean_inc(x_53);
  lean_inc(x_52);
  lean_dec(x_12);
  x_54 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_54, 0, x_52);
  lean_ctor_set(x_54, 1, x_53);
  return x_54;
  }
  }
  }
  else
  {
  uint8_t x_55; 
  lean_dec(x_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_55 = !lean_is_exclusive(x_9);
  if (x_55 == 0)
  {
  return x_9;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; 
  x_56 = lean_ctor_get(x_9, 0);
  x_57 = lean_ctor_get(x_9, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_9);
  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;
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_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___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__1___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__2___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_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__2___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___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) {
  _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;
  }
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("unexpected type after generalize");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___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; uint8_t x_33; lean_object* x_34; 
  x_33 = 0;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_2);
  lean_inc(x_1);
  x_34 = l_Lean_Meta_generalize(x_4, x_1, x_2, x_33, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_34) == 0)
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  x_36 = lean_ctor_get(x_34, 1);
  lean_inc(x_36);
  lean_dec(x_34);
  lean_inc(x_35);
  x_37 = l_Lean_Meta_getMVarDecl(x_35, x_9, x_10, x_11, x_12, x_36);
  if (lean_obj_tag(x_37) == 0)
  {
  lean_object* x_38; lean_object* x_39; 
  x_38 = lean_ctor_get(x_37, 0);
  lean_inc(x_38);
  x_39 = lean_ctor_get(x_38, 2);
  lean_inc(x_39);
  lean_dec(x_38);
  if (lean_obj_tag(x_39) == 7)
  {
  lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; 
  x_40 = lean_ctor_get(x_37, 1);
  lean_inc(x_40);
  lean_dec(x_37);
  x_41 = lean_ctor_get(x_39, 2);
  lean_inc(x_41);
  lean_dec(x_39);
  x_42 = 1;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_43 = l_Lean_Meta_intro1Core(x_35, x_42, x_9, x_10, x_11, x_12, x_40);
  if (lean_obj_tag(x_43) == 0)
  {
  lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 
  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 = lean_ctor_get(x_44, 1);
  lean_inc(x_46);
  lean_dec(x_44);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_1);
  x_47 = l_Lean_Meta_inferType(x_1, x_9, x_10, x_11, x_12, x_45);
  if (lean_obj_tag(x_47) == 0)
  {
  lean_object* x_48; lean_object* x_49; lean_object* x_50; 
  x_48 = lean_ctor_get(x_47, 0);
  lean_inc(x_48);
  x_49 = lean_ctor_get(x_47, 1);
  lean_inc(x_49);
  lean_dec(x_47);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_48);
  x_50 = l_Lean_Meta_getLevel(x_48, x_9, x_10, x_11, x_12, x_49);
  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; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; 
  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_box(0);
  x_54 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_54, 0, x_51);
  lean_ctor_set(x_54, 1, x_53);
  x_55 = l_myMacro____x40_Init_Notation___hyg_7613____closed__4;
  x_56 = l_Lean_mkConst(x_55, x_54);
  x_57 = l_Lean_Meta_assertExt___lambda__1___closed__1;
  lean_inc(x_1);
  lean_inc(x_48);
  x_58 = l_Lean_mkApp3(x_56, x_48, x_1, x_57);
  x_59 = lean_unsigned_to_nat(0u);
  x_60 = lean_unsigned_to_nat(1u);
  x_61 = lean_expr_lift_loose_bvars(x_41, x_59, x_60);
  lean_dec(x_41);
  x_62 = 0;
  x_63 = l_Lean_mkForall(x_3, x_62, x_58, x_61);
  x_64 = l_Lean_mkForall(x_2, x_62, x_48, x_63);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_65 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize(x_46, x_1, x_64, x_9, x_10, x_11, x_12, x_52);
  x_14 = x_65;
  goto block_32;
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_48);
  lean_dec(x_46);
  lean_dec(x_41);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_50);
  if (x_66 == 0)
  {
  x_14 = x_50;
  goto block_32;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_50, 0);
  x_68 = lean_ctor_get(x_50, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_50);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  x_14 = x_69;
  goto block_32;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_46);
  lean_dec(x_41);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_70 = !lean_is_exclusive(x_47);
  if (x_70 == 0)
  {
  x_14 = x_47;
  goto block_32;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_47, 0);
  x_72 = lean_ctor_get(x_47, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_47);
  x_73 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_73, 0, x_71);
  lean_ctor_set(x_73, 1, x_72);
  x_14 = x_73;
  goto block_32;
  }
  }
  }
  else
  {
  uint8_t x_74; 
  lean_dec(x_41);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_74 = !lean_is_exclusive(x_43);
  if (x_74 == 0)
  {
  x_14 = x_43;
  goto block_32;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_43, 0);
  x_76 = lean_ctor_get(x_43, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_43);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  x_14 = x_77;
  goto block_32;
  }
  }
  }
  else
  {
  lean_object* x_78; lean_object* x_79; lean_object* x_80; 
  lean_dec(x_39);
  lean_dec(x_35);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_78 = lean_ctor_get(x_37, 1);
  lean_inc(x_78);
  lean_dec(x_37);
  x_79 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__2;
  x_80 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1(x_79, x_9, x_10, x_11, x_12, x_78);
  x_14 = x_80;
  goto block_32;
  }
  }
  else
  {
  uint8_t x_81; 
  lean_dec(x_35);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_81 = !lean_is_exclusive(x_37);
  if (x_81 == 0)
  {
  x_14 = x_37;
  goto block_32;
  }
  else
  {
  lean_object* x_82; lean_object* x_83; lean_object* x_84; 
  x_82 = lean_ctor_get(x_37, 0);
  x_83 = lean_ctor_get(x_37, 1);
  lean_inc(x_83);
  lean_inc(x_82);
  lean_dec(x_37);
  x_84 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_84, 0, x_82);
  lean_ctor_set(x_84, 1, x_83);
  x_14 = x_84;
  goto block_32;
  }
  }
  }
  else
  {
  uint8_t x_85; 
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_85 = !lean_is_exclusive(x_34);
  if (x_85 == 0)
  {
  x_14 = x_34;
  goto block_32;
  }
  else
  {
  lean_object* x_86; lean_object* x_87; lean_object* x_88; 
  x_86 = lean_ctor_get(x_34, 0);
  x_87 = lean_ctor_get(x_34, 1);
  lean_inc(x_87);
  lean_inc(x_86);
  lean_dec(x_34);
  x_88 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_88, 0, x_86);
  lean_ctor_set(x_88, 1, x_87);
  x_14 = x_88;
  goto block_32;
  }
  }
  block_32:
  {
  if (lean_obj_tag(x_14) == 0)
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_15 = lean_ctor_get(x_14, 0);
  lean_inc(x_15);
  x_16 = lean_ctor_get(x_14, 1);
  lean_inc(x_16);
  lean_dec(x_14);
  x_17 = l_Lean_Elab_Tactic_replaceMainGoal(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  if (lean_obj_tag(x_17) == 0)
  {
  uint8_t x_18; 
  x_18 = !lean_is_exclusive(x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; 
  x_19 = lean_ctor_get(x_17, 0);
  lean_dec(x_19);
  x_20 = lean_box(0);
  lean_ctor_set(x_17, 0, x_20);
  return x_17;
  }
  else
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_21 = lean_ctor_get(x_17, 1);
  lean_inc(x_21);
  lean_dec(x_17);
  x_22 = lean_box(0);
  x_23 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_23, 0, x_22);
  lean_ctor_set(x_23, 1, x_21);
  return x_23;
  }
  }
  else
  {
  uint8_t x_24; 
  x_24 = !lean_is_exclusive(x_17);
  if (x_24 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_17, 0);
  x_26 = lean_ctor_get(x_17, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_17);
  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_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  x_28 = !lean_is_exclusive(x_14);
  if (x_28 == 0)
  {
  return x_14;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_14, 0);
  x_30 = lean_ctor_get(x_14, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_14);
  x_31 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_31, 0, x_29);
  lean_ctor_set(x_31, 1, x_30);
  return x_31;
  }
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___boxed), 13, 3);
  lean_closure_set(x_13, 0, x_2);
  lean_closure_set(x_13, 1, x_3);
  lean_closure_set(x_13, 2, x_1);
  x_14 = l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___closed__1;
  x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg), 11, 2);
  lean_closure_set(x_15, 0, x_14);
  lean_closure_set(x_15, 1, x_13);
  x_16 = l_Lean_Elab_Tactic_withMainContext___rarg(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  return x_16;
  }
  }
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; 
  x_7 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__1(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_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___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___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___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);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_14;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFallback___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_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_1);
  x_14 = l_Lean_Meta_inferType(x_1, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_14) == 0)
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_15 = lean_ctor_get(x_14, 0);
  lean_inc(x_15);
  x_16 = lean_ctor_get(x_14, 1);
  lean_inc(x_16);
  lean_dec(x_14);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_15);
  x_17 = l_Lean_Meta_getLevel(x_15, x_9, x_10, x_11, x_12, x_16);
  if (lean_obj_tag(x_17) == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_18 = lean_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  lean_inc(x_4);
  x_20 = l_Lean_Meta_getMVarType(x_4, x_9, x_10, x_11, x_12, x_19);
  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; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_21 = lean_ctor_get(x_20, 0);
  lean_inc(x_21);
  x_22 = lean_ctor_get(x_20, 1);
  lean_inc(x_22);
  lean_dec(x_20);
  x_23 = lean_box(0);
  x_24 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_24, 0, x_18);
  lean_ctor_set(x_24, 1, x_23);
  x_25 = l_myMacro____x40_Init_Notation___hyg_7613____closed__4;
  x_26 = l_Lean_mkConst(x_25, x_24);
  x_27 = l_Lean_Meta_assertExt___lambda__1___closed__1;
  lean_inc(x_1);
  lean_inc(x_15);
  x_28 = l_Lean_mkApp3(x_26, x_15, x_1, x_27);
  x_29 = 0;
  x_30 = l_Lean_mkForall(x_2, x_29, x_28, x_21);
  x_31 = l_Lean_mkForall(x_3, x_29, x_15, x_30);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_32 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize(x_4, x_1, x_31, x_9, x_10, x_11, x_12, x_22);
  if (lean_obj_tag(x_32) == 0)
  {
  lean_object* x_33; lean_object* x_34; lean_object* x_35; 
  x_33 = lean_ctor_get(x_32, 0);
  lean_inc(x_33);
  x_34 = lean_ctor_get(x_32, 1);
  lean_inc(x_34);
  lean_dec(x_32);
  x_35 = l_Lean_Elab_Tactic_replaceMainGoal(x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_34);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  if (lean_obj_tag(x_35) == 0)
  {
  uint8_t x_36; 
  x_36 = !lean_is_exclusive(x_35);
  if (x_36 == 0)
  {
  lean_object* x_37; lean_object* x_38; 
  x_37 = lean_ctor_get(x_35, 0);
  lean_dec(x_37);
  x_38 = lean_box(0);
  lean_ctor_set(x_35, 0, x_38);
  return x_35;
  }
  else
  {
  lean_object* x_39; lean_object* x_40; lean_object* x_41; 
  x_39 = lean_ctor_get(x_35, 1);
  lean_inc(x_39);
  lean_dec(x_35);
  x_40 = lean_box(0);
  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
  {
  uint8_t x_42; 
  x_42 = !lean_is_exclusive(x_35);
  if (x_42 == 0)
  {
  return x_35;
  }
  else
  {
  lean_object* x_43; lean_object* x_44; lean_object* x_45; 
  x_43 = lean_ctor_get(x_35, 0);
  x_44 = lean_ctor_get(x_35, 1);
  lean_inc(x_44);
  lean_inc(x_43);
  lean_dec(x_35);
  x_45 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_45, 0, x_43);
  lean_ctor_set(x_45, 1, x_44);
  return x_45;
  }
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  x_46 = !lean_is_exclusive(x_32);
  if (x_46 == 0)
  {
  return x_32;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_32, 0);
  x_48 = lean_ctor_get(x_32, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_32);
  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_18);
  lean_dec(x_15);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_50 = !lean_is_exclusive(x_20);
  if (x_50 == 0)
  {
  return x_20;
  }
  else
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_20, 0);
  x_52 = lean_ctor_get(x_20, 1);
  lean_inc(x_52);
  lean_inc(x_51);
  lean_dec(x_20);
  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
  {
  uint8_t x_54; 
  lean_dec(x_15);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_54 = !lean_is_exclusive(x_17);
  if (x_54 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_55; lean_object* x_56; lean_object* x_57; 
  x_55 = lean_ctor_get(x_17, 0);
  x_56 = lean_ctor_get(x_17, 1);
  lean_inc(x_56);
  lean_inc(x_55);
  lean_dec(x_17);
  x_57 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_57, 0, x_55);
  lean_ctor_set(x_57, 1, x_56);
  return x_57;
  }
  }
  }
  else
  {
  uint8_t x_58; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_58 = !lean_is_exclusive(x_14);
  if (x_58 == 0)
  {
  return x_14;
  }
  else
  {
  lean_object* x_59; lean_object* x_60; lean_object* x_61; 
  x_59 = lean_ctor_get(x_14, 0);
  x_60 = lean_ctor_get(x_14, 1);
  lean_inc(x_60);
  lean_inc(x_59);
  lean_dec(x_14);
  x_61 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_61, 0, x_59);
  lean_ctor_set(x_61, 1, x_60);
  return x_61;
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFallback(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  x_13 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFallback___lambda__1___boxed), 13, 3);
  lean_closure_set(x_13, 0, x_2);
  lean_closure_set(x_13, 1, x_1);
  lean_closure_set(x_13, 2, x_3);
  x_14 = l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___closed__1;
  x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg), 11, 2);
  lean_closure_set(x_15, 0, x_14);
  lean_closure_set(x_15, 1, x_13);
  x_16 = l_Lean_Elab_Tactic_withMainContext___rarg(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  return x_16;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFallback___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___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFallback___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);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_14;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux_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_Elab_Tactic_evalGeneralizeAux_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalGeneralizeAux_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux___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) {
  _start:
  {
  uint8_t x_13; lean_object* x_14; 
  x_13 = 0;
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  x_14 = l_Lean_Meta_generalize(x_3, x_1, x_2, x_13, x_8, x_9, x_10, x_11, x_12);
  if (lean_obj_tag(x_14) == 0)
  {
  lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; 
  x_15 = lean_ctor_get(x_14, 0);
  lean_inc(x_15);
  x_16 = lean_ctor_get(x_14, 1);
  lean_inc(x_16);
  lean_dec(x_14);
  x_17 = 1;
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  x_18 = l_Lean_Meta_intro1Core(x_15, x_17, x_8, x_9, x_10, x_11, x_16);
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  x_20 = lean_ctor_get(x_18, 1);
  lean_inc(x_20);
  lean_dec(x_18);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_box(0);
  x_23 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_23, 0, x_21);
  lean_ctor_set(x_23, 1, x_22);
  x_24 = l_Lean_Elab_Tactic_replaceMainGoal(x_23, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  if (lean_obj_tag(x_24) == 0)
  {
  uint8_t x_25; 
  x_25 = !lean_is_exclusive(x_24);
  if (x_25 == 0)
  {
  lean_object* x_26; lean_object* x_27; 
  x_26 = lean_ctor_get(x_24, 0);
  lean_dec(x_26);
  x_27 = lean_box(0);
  lean_ctor_set(x_24, 0, x_27);
  return x_24;
  }
  else
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_28 = lean_ctor_get(x_24, 1);
  lean_inc(x_28);
  lean_dec(x_24);
  x_29 = lean_box(0);
  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_24);
  if (x_31 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; 
  x_32 = lean_ctor_get(x_24, 0);
  x_33 = lean_ctor_get(x_24, 1);
  lean_inc(x_33);
  lean_inc(x_32);
  lean_dec(x_24);
  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_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  x_35 = !lean_is_exclusive(x_18);
  if (x_35 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_36; lean_object* x_37; lean_object* x_38; 
  x_36 = lean_ctor_get(x_18, 0);
  x_37 = lean_ctor_get(x_18, 1);
  lean_inc(x_37);
  lean_inc(x_36);
  lean_dec(x_18);
  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;
  }
  }
  }
  else
  {
  uint8_t x_39; 
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  x_39 = !lean_is_exclusive(x_14);
  if (x_39 == 0)
  {
  return x_14;
  }
  else
  {
  lean_object* x_40; lean_object* x_41; lean_object* x_42; 
  x_40 = lean_ctor_get(x_14, 0);
  x_41 = lean_ctor_get(x_14, 1);
  lean_inc(x_41);
  lean_inc(x_40);
  lean_dec(x_14);
  x_42 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_42, 0, x_40);
  lean_ctor_set(x_42, 1, x_41);
  return x_42;
  }
  }
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux(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_1) == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalGeneralizeAux___lambda__1___boxed), 12, 2);
  lean_closure_set(x_13, 0, x_2);
  lean_closure_set(x_13, 1, x_3);
  x_14 = l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___closed__1;
  x_15 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg), 11, 2);
  lean_closure_set(x_15, 0, x_14);
  lean_closure_set(x_15, 1, x_13);
  x_16 = l_Lean_Elab_Tactic_withMainContext___rarg(x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  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_1, 0);
  lean_inc(x_17);
  lean_dec(x_1);
  x_18 = l_Lean_Elab_Tactic_saveBacktrackableState___rarg(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  x_20 = lean_ctor_get(x_18, 1);
  lean_inc(x_20);
  lean_dec(x_18);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  lean_inc(x_17);
  x_21 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20);
  if (lean_obj_tag(x_21) == 0)
  {
  lean_dec(x_19);
  lean_dec(x_17);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_21;
  }
  else
  {
  lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
  x_22 = lean_ctor_get(x_21, 1);
  lean_inc(x_22);
  lean_dec(x_21);
  x_23 = l_Lean_Elab_Tactic_BacktrackableState_restore(x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22);
  x_24 = lean_ctor_get(x_23, 1);
  lean_inc(x_24);
  lean_dec(x_23);
  x_25 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFallback(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_24);
  return x_25;
  }
  }
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux___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) {
  _start:
  {
  lean_object* x_13; 
  x_13 = l_Lean_Elab_Tactic_evalGeneralizeAux___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);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_13;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalGeneralize___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) {
  _start:
  {
  lean_object* x_13; 
  x_13 = l_Lean_Elab_Tactic_evalGeneralizeAux(x_1, x_3, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  return x_13;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalGeneralize(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
  x_11 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getAuxHypothesisName(x_1);
  x_12 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getVarName(x_1);
  x_13 = lean_unsigned_to_nat(2u);
  x_14 = l_Lean_Syntax_getArg(x_1, x_13);
  x_15 = lean_box(0);
  x_16 = 0;
  x_17 = lean_box(x_16);
  x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_elabTerm___boxed), 12, 3);
  lean_closure_set(x_18, 0, x_14);
  lean_closure_set(x_18, 1, x_15);
  lean_closure_set(x_18, 2, x_17);
  x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalGeneralize___lambda__1), 12, 2);
  lean_closure_set(x_19, 0, x_11);
  lean_closure_set(x_19, 1, x_12);
  x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_liftMetaMAtMain___spec__1___rarg), 11, 2);
  lean_closure_set(x_20, 0, x_18);
  lean_closure_set(x_20, 1, x_19);
  x_21 = l_Lean_Elab_Tactic_withMainContext___rarg(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  return x_21;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalGeneralize___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_Elab_Tactic_evalGeneralize(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_1);
  return x_11;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalGeneralize___boxed), 10, 0);
  return x_1;
  }
  }
  lean_object* l___regBuiltin_Lean_Elab_Tactic_evalGeneralize(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_2 = l_Lean_Elab_Tactic_tacticElabAttribute;
  x_3 = l_Lean_Parser_Tactic_generalize___closed__2;
  x_4 = l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__1;
  x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1);
  return x_5;
  }
  }
  lean_object* initialize_Init(lean_object*);
  lean_object* initialize_Lean_Meta_Tactic_Generalize(lean_object*);
  lean_object* initialize_Lean_Meta_Check(lean_object*);
  lean_object* initialize_Lean_Meta_Tactic_Intro(lean_object*);
  lean_object* initialize_Lean_Elab_Tactic_ElabTerm(lean_object*);
  static bool _G_initialized = false;
  lean_object* initialize_Lean_Elab_Tactic_Generalize(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_Generalize(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Meta_Check(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Meta_Tactic_Intro(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Elab_Tactic_ElabTerm(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__1 = _init_l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__1();
  lean_mark_persistent(l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__1);
  l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__2 = _init_l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__2();
  lean_mark_persistent(l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__2);
  l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__1();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalGeneralize___closed__1);
  res = l___regBuiltin_Lean_Elab_Tactic_evalGeneralize(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
  