text: // Lean compiler output
  // Module: Lean.Elab.Tactic.Simp
  // Imports: Init Lean.Meta.Tactic.Simp Lean.Elab.Tactic.Basic Lean.Elab.Tactic.ElabTerm Lean.Elab.Tactic.Location Lean.Meta.Tactic.Replace Lean.Elab.BuiltinNotation
  #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_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___closed__1;
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext___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_Elab_Tactic_evalSimp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_476____closed__3;
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimpConfig(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma_match__1(lean_object*);
  lean_object* l_Lean_Meta_simpTarget(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_Elab_Tactic_evalSimpConfigUnsafe___closed__5;
  extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1037____closed__1;
  lean_object* l_Lean_Elab_Term_elabCDotFunctionAlias_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_elabSimpConfig___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_LocalDecl_userName(lean_object*);
  lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(lean_object*);
  lean_object* l_Lean_Elab_Tactic_SavedState_restore(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_Syntax_addPrec___closed__2;
  lean_object* lean_name_mk_string(lean_object*, lean_object*);
  lean_object* lean_array_uget(lean_object*, size_t);
  lean_object* l_Lean_Meta_getCongrLemmas___rarg(lean_object*, lean_object*);
  extern lean_object* l_Lean_Elab_Term_instMonadLogTermElabM___closed__6;
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__6(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_evalSimp_go_match__1(lean_object*);
  lean_object* l_Lean_Elab_Tactic_elabSimpConfig___closed__1;
  lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
  extern lean_object* l_Lean_Parser_Tactic_simpPost___closed__2;
  lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalSimp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Array_empty___closed__1;
  lean_object* lean_environment_find(lean_object*, lean_object*);
  lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_st_ref_get(lean_object*, lean_object*);
  lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp(lean_object*);
  extern lean_object* l_Lean_instInhabitedParserDescr___closed__1;
  uint8_t lean_name_eq(lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__4(lean_object*);
  lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__7(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_simpStep(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimp_go___lambda__2(lean_object*, lean_object*, uint8_t, 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_evalSimp_go(lean_object*, lean_object*, uint8_t, 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_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrLemma___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_array_push(lean_object*, lean_object*);
  lean_object* lean_array_get_size(lean_object*);
  lean_object* lean_string_append(lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimp___lambda__2(lean_object*, uint8_t, 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_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_List_map___at_Lean_resolveGlobalConst___spec__2(lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___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* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___lambda__1(lean_object*, lean_object*, uint8_t, 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_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__9___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_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_USize_decLt(size_t, size_t);
  lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx___rarg(lean_object*);
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimp_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_Meta_SimpLemmas_erase___rarg___closed__2;
  extern lean_object* l_Lean_LocalContext_mkEmpty___closed__1;
  extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__2;
  extern lean_object* l_Lean_instInhabitedException___closed__1;
  lean_object* l_Lean_Elab_Tactic_evalSimp_go___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_Elab_Tactic_evalSimpConfigCtxUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimp_go___closed__1;
  lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__1___rarg(lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_LocalContext_empty;
  lean_object* l_Lean_Elab_Tactic_evalSimpAll(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_SimpLemmas_addDeclToUnfold(lean_object*, lean_object*);
  lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___boxed(lean_object**);
  lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__1;
  lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ConstantInfo_levelParams(lean_object*);
  extern lean_object* l_Lean_Elab_Term_quoteAutoTactic___closed__5;
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma_match__1___rarg(lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___closed__1;
  lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimpConfigUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__5___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_abstractMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalSimp___spec__1(size_t, size_t, 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_evalSimp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_term___u2218_____closed__5;
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_PersistentHashMap_erase___at_Lean_Meta_SimpLemmas_eraseCore___spec__1(lean_object*, lean_object*);
  lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSimp_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___lambda__2___boxed(lean_object**);
  lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__11(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_Simp_0__Lean_Elab_Tactic_addSimpLemma___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_expandOptLocation(lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimpAll___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimp___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_replaceRef(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_getNondepPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_elabSimpConfig(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_PersistentHashMap_insert___at_Lean_Meta_addSimpLemmaEntry_updateLemmaNames___spec__1(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTacticAux___spec__9(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_evalSimpConfigCtx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__3;
  lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__3(lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimp_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Syntax_getId(lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimp___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* l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2;
  lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSimp_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_match__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_getMainGoal(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_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f___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_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_resolveId_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_expr_dbg_to_string(lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_match__1(lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimp___lambda__2___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*);
  uint8_t l_Lean_Expr_isConst(lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___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* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_elabTermEnsuringType___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_Parser_Tactic_simpAll___closed__2;
  lean_object* l_Lean_mkFVar(lean_object*);
  lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_KernelException_toMessageData___closed__3;
  size_t lean_usize_of_nat(lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f_match__1(lean_object*);
  lean_object* l_Lean_Meta_assertHypotheses(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_Lean_ConstantInfo_type(lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__4;
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___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___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__1;
  lean_object* l_Lean_Meta_getSimpLemmas___rarg(lean_object*, lean_object*);
  lean_object* l_Lean_LocalDecl_fvarId(lean_object*);
  lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3(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_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__10___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_LocalDecl_type(lean_object*);
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__2;
  lean_object* l_Lean_Elab_Tactic_evalSimp_match__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVarsUsingDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__1;
  lean_object* l_Lean_Syntax_getSepArgs(lean_object*);
  lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, 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_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2;
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_eta(lean_object*);
  lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_Parser_Tactic_simpErase___closed__2;
  lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__5(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_tryClearMany(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__1;
  uint8_t l_Lean_Expr_hasMVar(lean_object*);
  lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___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_Elab_Tactic_evalSimp_match__1(lean_object*);
  lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Syntax_getKind(lean_object*);
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_simpAll(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__7___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_SimpLemmas_add(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_List_forIn_loop___at_Lean_Elab_Term_Quotation_precheckIdent___spec__3___closed__1;
  uint8_t l_Lean_Meta_SimpLemmas_isDeclToUnfold(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_getLocalDeclFromUserName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__10___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_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_Parser_Tactic_simp___closed__2;
  lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__8(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_evalSimpConfigUnsafe___closed__2;
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___closed__1;
  lean_object* l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__2(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_evalSimpConfigUnsafe___closed__1;
  lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_resolveGlobalName___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Syntax_isNone(lean_object*);
  lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_focusAndDone___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_Lean_Elab_Term_evalExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_resolveGlobalName___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__4___boxed(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_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___boxed__const__1;
  lean_object* l_Lean_Elab_Tactic_evalSimpConfig___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_withoutErrToSorry___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__3___rarg(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_evalSimp_go_match__4___rarg(lean_object*, lean_object*);
  lean_object* l_ReaderT_instMonadReaderT___rarg(lean_object*);
  extern lean_object* l_Lean_Meta_Simp_Context_config___default___closed__1;
  lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___closed__2;
  lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___lambda__2(lean_object*, size_t, uint8_t, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*);
  uint8_t l_List_isEmpty___rarg(lean_object*);
  lean_object* l_Lean_Meta_SimpLemmas_addConst(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_List_map___at_Lean_mkConstWithLevelParams___spec__1(lean_object*);
  lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimp_go___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_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f(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_evalSimp___boxed__const__1;
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrLemma(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_isLocalIdent_x3f(lean_object*, lean_object*, 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_Expr_constName_x21(lean_object*);
  lean_object* l_Lean_Elab_Term_withoutModifyingElabMetaState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSetOption___spec__3(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_Meta_Simp_defaultMaxSteps;
  lean_object* l_Lean_Elab_Tactic_evalSimpConfig___rarg(lean_object*);
  extern lean_object* l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___closed__1;
  lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll(lean_object*);
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___closed__2;
  lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__2(lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__2___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__1;
  uint8_t l_Lean_Meta_SimpLemmas_isLemma(lean_object*, lean_object*);
  uint8_t l_Lean_Syntax_isIdent(lean_object*);
  static lean_object* _init_l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Parser_Syntax_addPrec___closed__2;
  x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_1037____closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Simp");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__1;
  x_2 = l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__2;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__4() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Config");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__5() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__3;
  x_2 = l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__4;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimpConfigUnsafe(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; 
  x_9 = l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__5;
  x_10 = l_Lean_Elab_Term_evalExpr___rarg(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  return x_10;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimpConfig___rarg(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l_Lean_instInhabitedException___closed__1;
  x_3 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_3, 0, x_2);
  lean_ctor_set(x_3, 1, x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimpConfig(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimpConfig___rarg), 1, 0);
  return x_8;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimpConfig___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Lean_Elab_Tactic_evalSimpConfig(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_8;
  }
  }
  static lean_object* _init_l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("ConfigCtx");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__3;
  x_2 = l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; 
  x_9 = l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2;
  x_10 = l_Lean_Elab_Term_evalExpr___rarg(x_9, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  return x_10;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx___rarg(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l_Lean_instInhabitedException___closed__1;
  x_3 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_3, 0, x_2);
  lean_ctor_set(x_3, 1, x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimpConfigCtx___rarg), 1, 0);
  return x_8;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimpConfigCtx___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Lean_Elab_Tactic_evalSimpConfigCtx(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_8;
  }
  }
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_9 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8);
  x_10 = lean_ctor_get(x_9, 0);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_9, 1);
  lean_inc(x_11);
  lean_dec(x_9);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_12 = lean_apply_7(x_1, x_2, x_3, 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; uint8_t x_15; lean_object* x_16; uint8_t x_17; 
  x_13 = lean_ctor_get(x_12, 0);
  lean_inc(x_13);
  x_14 = lean_ctor_get(x_12, 1);
  lean_inc(x_14);
  lean_dec(x_12);
  x_15 = 0;
  x_16 = l_Lean_Elab_Term_SavedState_restore(x_10, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_14);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_17 = !lean_is_exclusive(x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; 
  x_18 = lean_ctor_get(x_16, 0);
  lean_dec(x_18);
  lean_ctor_set(x_16, 0, x_13);
  return x_16;
  }
  else
  {
  lean_object* x_19; lean_object* x_20; 
  x_19 = lean_ctor_get(x_16, 1);
  lean_inc(x_19);
  lean_dec(x_16);
  x_20 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_20, 0, x_13);
  lean_ctor_set(x_20, 1, x_19);
  return x_20;
  }
  }
  else
  {
  lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; uint8_t x_25; 
  x_21 = lean_ctor_get(x_12, 0);
  lean_inc(x_21);
  x_22 = lean_ctor_get(x_12, 1);
  lean_inc(x_22);
  lean_dec(x_12);
  x_23 = 0;
  x_24 = l_Lean_Elab_Term_SavedState_restore(x_10, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_22);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_25 = !lean_is_exclusive(x_24);
  if (x_25 == 0)
  {
  lean_object* x_26; 
  x_26 = lean_ctor_get(x_24, 0);
  lean_dec(x_26);
  lean_ctor_set_tag(x_24, 1);
  lean_ctor_set(x_24, 0, x_21);
  return x_24;
  }
  else
  {
  lean_object* x_27; lean_object* x_28; 
  x_27 = lean_ctor_get(x_24, 1);
  lean_inc(x_27);
  lean_dec(x_24);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_21);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  }
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___lambda__1(uint8_t 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:
  {
  if (x_1 == 0)
  {
  lean_object* x_10; 
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_10 = l_Lean_Meta_instantiateMVars(x_2, x_5, x_6, x_7, x_8, x_9);
  if (lean_obj_tag(x_10) == 0)
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_11 = lean_ctor_get(x_10, 0);
  lean_inc(x_11);
  x_12 = lean_ctor_get(x_10, 1);
  lean_inc(x_12);
  lean_dec(x_10);
  x_13 = l_Lean_Elab_Tactic_evalSimpConfigUnsafe(x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
  return x_13;
  }
  else
  {
  uint8_t x_14; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_14 = !lean_is_exclusive(x_10);
  if (x_14 == 0)
  {
  return x_10;
  }
  else
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_15 = lean_ctor_get(x_10, 0);
  x_16 = lean_ctor_get(x_10, 1);
  lean_inc(x_16);
  lean_inc(x_15);
  lean_dec(x_10);
  x_17 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_17, 0, x_15);
  lean_ctor_set(x_17, 1, x_16);
  return x_17;
  }
  }
  }
  else
  {
  lean_object* x_18; 
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_18 = l_Lean_Meta_instantiateMVars(x_2, x_5, x_6, x_7, x_8, x_9);
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; 
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  x_20 = lean_ctor_get(x_18, 1);
  lean_inc(x_20);
  lean_dec(x_18);
  x_21 = l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_20);
  if (lean_obj_tag(x_21) == 0)
  {
  uint8_t x_22; 
  x_22 = !lean_is_exclusive(x_21);
  if (x_22 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; 
  x_23 = lean_ctor_get(x_21, 0);
  x_24 = lean_ctor_get(x_21, 1);
  lean_inc(x_24);
  lean_inc(x_23);
  lean_dec(x_21);
  x_25 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_25, 0, x_23);
  lean_ctor_set(x_25, 1, x_24);
  return x_25;
  }
  }
  else
  {
  uint8_t x_26; 
  x_26 = !lean_is_exclusive(x_21);
  if (x_26 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_27; lean_object* x_28; lean_object* x_29; 
  x_27 = lean_ctor_get(x_21, 0);
  x_28 = lean_ctor_get(x_21, 1);
  lean_inc(x_28);
  lean_inc(x_27);
  lean_dec(x_21);
  x_29 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_29, 0, x_27);
  lean_ctor_set(x_29, 1, x_28);
  return x_29;
  }
  }
  }
  else
  {
  uint8_t x_30; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_30 = !lean_is_exclusive(x_18);
  if (x_30 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_31; lean_object* x_32; lean_object* x_33; 
  x_31 = lean_ctor_get(x_18, 0);
  x_32 = lean_ctor_get(x_18, 1);
  lean_inc(x_32);
  lean_inc(x_31);
  lean_dec(x_18);
  x_33 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_33, 0, x_31);
  lean_ctor_set(x_33, 1, x_32);
  return x_33;
  }
  }
  }
  }
  }
  static lean_object* _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__5;
  x_3 = l_Lean_mkConst(x_2, x_1);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___closed__1;
  x_2 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_11 = lean_unsigned_to_nat(3u);
  x_12 = l_Lean_Syntax_getArg(x_1, x_11);
  x_13 = lean_box(0);
  x_14 = lean_box(x_3);
  x_15 = lean_alloc_closure((void*)(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___lambda__1___boxed), 9, 1);
  lean_closure_set(x_15, 0, x_14);
  x_16 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___closed__2;
  x_17 = 1;
  x_18 = lean_box(x_17);
  x_19 = lean_box(x_17);
  x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5);
  lean_closure_set(x_20, 0, x_12);
  lean_closure_set(x_20, 1, x_16);
  lean_closure_set(x_20, 2, x_18);
  lean_closure_set(x_20, 3, x_19);
  lean_closure_set(x_20, 4, x_13);
  x_21 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
  lean_closure_set(x_21, 0, x_20);
  lean_closure_set(x_21, 1, x_15);
  x_22 = 0;
  x_23 = lean_box(x_22);
  x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___boxed), 9, 2);
  lean_closure_set(x_24, 0, x_21);
  lean_closure_set(x_24, 1, x_23);
  x_25 = l_Lean_Elab_Term_saveState___rarg(x_5, x_6, x_7, x_8, x_9, x_10);
  x_26 = lean_ctor_get(x_25, 0);
  lean_inc(x_26);
  x_27 = lean_ctor_get(x_25, 1);
  lean_inc(x_27);
  lean_dec(x_25);
  x_28 = l_Lean_LocalContext_mkEmpty___closed__1;
  x_29 = l_Array_empty___closed__1;
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  x_30 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_28, x_29, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_27);
  if (lean_obj_tag(x_30) == 0)
  {
  lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; 
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = l_Lean_Elab_Term_SavedState_restore(x_26, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_32);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_34 = !lean_is_exclusive(x_33);
  if (x_34 == 0)
  {
  lean_object* x_35; 
  x_35 = lean_ctor_get(x_33, 0);
  lean_dec(x_35);
  lean_ctor_set(x_33, 0, x_31);
  return x_33;
  }
  else
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 1);
  lean_inc(x_36);
  lean_dec(x_33);
  x_37 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_37, 0, x_31);
  lean_ctor_set(x_37, 1, x_36);
  return x_37;
  }
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; 
  x_38 = lean_ctor_get(x_30, 0);
  lean_inc(x_38);
  x_39 = lean_ctor_get(x_30, 1);
  lean_inc(x_39);
  lean_dec(x_30);
  x_40 = l_Lean_Elab_Term_SavedState_restore(x_26, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_39);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_41 = !lean_is_exclusive(x_40);
  if (x_41 == 0)
  {
  lean_object* x_42; 
  x_42 = lean_ctor_get(x_40, 0);
  lean_dec(x_42);
  lean_ctor_set_tag(x_40, 1);
  lean_ctor_set(x_40, 0, x_38);
  return x_40;
  }
  else
  {
  lean_object* x_43; lean_object* x_44; 
  x_43 = lean_ctor_get(x_40, 1);
  lean_inc(x_43);
  lean_dec(x_40);
  x_44 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_44, 0, x_38);
  lean_ctor_set(x_44, 1, x_43);
  return x_44;
  }
  }
  }
  }
  static lean_object* _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2;
  x_3 = l_Lean_mkConst(x_2, x_1);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___closed__1;
  x_2 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_11 = lean_unsigned_to_nat(3u);
  x_12 = l_Lean_Syntax_getArg(x_1, x_11);
  x_13 = lean_box(0);
  x_14 = lean_box(x_3);
  x_15 = lean_alloc_closure((void*)(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___lambda__1___boxed), 9, 1);
  lean_closure_set(x_15, 0, x_14);
  x_16 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___closed__2;
  x_17 = 1;
  x_18 = lean_box(x_17);
  x_19 = lean_box(x_17);
  x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTermEnsuringType___boxed), 12, 5);
  lean_closure_set(x_20, 0, x_12);
  lean_closure_set(x_20, 1, x_16);
  lean_closure_set(x_20, 2, x_18);
  lean_closure_set(x_20, 3, x_19);
  lean_closure_set(x_20, 4, x_13);
  x_21 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
  lean_closure_set(x_21, 0, x_20);
  lean_closure_set(x_21, 1, x_15);
  x_22 = 0;
  x_23 = lean_box(x_22);
  x_24 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg___boxed), 9, 2);
  lean_closure_set(x_24, 0, x_21);
  lean_closure_set(x_24, 1, x_23);
  x_25 = l_Lean_Elab_Term_saveState___rarg(x_5, x_6, x_7, x_8, x_9, x_10);
  x_26 = lean_ctor_get(x_25, 0);
  lean_inc(x_26);
  x_27 = lean_ctor_get(x_25, 1);
  lean_inc(x_27);
  lean_dec(x_25);
  x_28 = l_Lean_LocalContext_mkEmpty___closed__1;
  x_29 = l_Array_empty___closed__1;
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  x_30 = l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1___rarg(x_28, x_29, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_27);
  if (lean_obj_tag(x_30) == 0)
  {
  lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; 
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = l_Lean_Elab_Term_SavedState_restore(x_26, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_32);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_34 = !lean_is_exclusive(x_33);
  if (x_34 == 0)
  {
  lean_object* x_35; 
  x_35 = lean_ctor_get(x_33, 0);
  lean_dec(x_35);
  lean_ctor_set(x_33, 0, x_31);
  return x_33;
  }
  else
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 1);
  lean_inc(x_36);
  lean_dec(x_33);
  x_37 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_37, 0, x_31);
  lean_ctor_set(x_37, 1, x_36);
  return x_37;
  }
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; 
  x_38 = lean_ctor_get(x_30, 0);
  lean_inc(x_38);
  x_39 = lean_ctor_get(x_30, 1);
  lean_inc(x_39);
  lean_dec(x_30);
  x_40 = l_Lean_Elab_Term_SavedState_restore(x_26, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_39);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_41 = !lean_is_exclusive(x_40);
  if (x_41 == 0)
  {
  lean_object* x_42; 
  x_42 = lean_ctor_get(x_40, 0);
  lean_dec(x_42);
  lean_ctor_set_tag(x_40, 1);
  lean_ctor_set(x_40, 0, x_38);
  return x_40;
  }
  else
  {
  lean_object* x_43; lean_object* x_44; 
  x_43 = lean_ctor_get(x_40, 1);
  lean_inc(x_43);
  lean_dec(x_40);
  x_44 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_44, 0, x_38);
  lean_ctor_set(x_44, 1, x_43);
  return x_44;
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Elab_Tactic_elabSimpConfig___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; uint8_t x_3; uint8_t x_4; lean_object* x_5; 
  x_1 = l_Lean_Meta_Simp_defaultMaxSteps;
  x_2 = lean_unsigned_to_nat(2u);
  x_3 = 1;
  x_4 = 0;
  x_5 = lean_alloc_ctor(0, 2, 10);
  lean_ctor_set(x_5, 0, x_1);
  lean_ctor_set(x_5, 1, x_2);
  lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_3);
  lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 1, x_3);
  lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 2, x_4);
  lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 3, x_3);
  lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 4, x_3);
  lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 5, x_3);
  lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 6, x_3);
  lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_3);
  lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 8, x_3);
  lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 9, x_3);
  return x_5;
  }
  }
  lean_object* l_Lean_Elab_Tactic_elabSimpConfig(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  uint8_t x_10; 
  x_10 = l_Lean_Syntax_isNone(x_1);
  if (x_10 == 0)
  {
  uint8_t x_11; 
  if (x_2 == 0)
  {
  uint8_t x_15; 
  x_15 = 0;
  x_11 = x_15;
  goto block_14;
  }
  else
  {
  uint8_t x_16; 
  x_16 = 1;
  x_11 = x_16;
  goto block_14;
  }
  block_14:
  {
  if (x_11 == 0)
  {
  lean_object* x_12; 
  x_12 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2(x_1, x_2, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  return x_12;
  }
  else
  {
  lean_object* x_13; 
  x_13 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3(x_1, x_2, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  return x_13;
  }
  }
  }
  else
  {
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  if (x_2 == 0)
  {
  lean_object* x_17; lean_object* x_18; 
  x_17 = l_Lean_Meta_Simp_Context_config___default___closed__1;
  x_18 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_18, 0, x_17);
  lean_ctor_set(x_18, 1, x_9);
  return x_18;
  }
  else
  {
  lean_object* x_19; lean_object* x_20; 
  x_19 = l_Lean_Elab_Tactic_elabSimpConfig___closed__1;
  x_20 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_20, 0, x_19);
  lean_ctor_set(x_20, 1, x_9);
  return x_20;
  }
  }
  }
  }
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  uint8_t x_10; lean_object* x_11; 
  x_10 = lean_unbox(x_1);
  lean_dec(x_1);
  x_11 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___lambda__1(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  return x_11;
  }
  }
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; uint8_t x_12; lean_object* x_13; 
  x_11 = lean_unbox(x_2);
  lean_dec(x_2);
  x_12 = lean_unbox(x_3);
  lean_dec(x_3);
  x_13 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; uint8_t x_12; lean_object* x_13; 
  x_11 = lean_unbox(x_2);
  lean_dec(x_2);
  x_12 = lean_unbox(x_3);
  lean_dec(x_3);
  x_13 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Lean_Elab_Tactic_elabSimpConfig___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:
  {
  uint8_t x_10; lean_object* x_11; 
  x_10 = lean_unbox(x_2);
  lean_dec(x_2);
  x_11 = l_Lean_Elab_Tactic_elabSimpConfig(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  lean_dec(x_1);
  return x_11;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrLemma(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:
  {
  uint8_t x_9; 
  x_9 = l_Lean_Expr_isConst(x_2);
  if (x_9 == 0)
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_10 = lean_box(0);
  x_11 = l_Array_empty___closed__1;
  x_12 = lean_unsigned_to_nat(1000u);
  x_13 = l_Lean_Meta_SimpLemmas_add(x_1, x_11, x_2, x_3, x_12, x_10, x_4, x_5, x_6, x_7, x_8);
  return x_13;
  }
  else
  {
  lean_object* x_14; lean_object* x_15; 
  x_14 = l_Lean_Expr_constName_x21(x_2);
  lean_dec(x_2);
  lean_inc(x_14);
  x_15 = l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(x_14, x_4, x_5, x_6, x_7, x_8);
  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_ConstantInfo_type(x_16);
  lean_dec(x_16);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  x_19 = l_Lean_Meta_isProp(x_18, x_4, x_5, x_6, x_7, x_17);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; uint8_t x_21; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_unbox(x_20);
  lean_dec(x_20);
  if (x_21 == 0)
  {
  uint8_t x_22; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_22 = !lean_is_exclusive(x_19);
  if (x_22 == 0)
  {
  lean_object* x_23; lean_object* x_24; 
  x_23 = lean_ctor_get(x_19, 0);
  lean_dec(x_23);
  x_24 = l_Lean_Meta_SimpLemmas_addDeclToUnfold(x_1, x_14);
  lean_ctor_set(x_19, 0, x_24);
  return x_19;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_19, 1);
  lean_inc(x_25);
  lean_dec(x_19);
  x_26 = l_Lean_Meta_SimpLemmas_addDeclToUnfold(x_1, x_14);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_26);
  lean_ctor_set(x_27, 1, x_25);
  return x_27;
  }
  }
  else
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_28 = lean_ctor_get(x_19, 1);
  lean_inc(x_28);
  lean_dec(x_19);
  x_29 = lean_unsigned_to_nat(1000u);
  x_30 = l_Lean_Meta_SimpLemmas_addConst(x_1, x_14, x_3, x_29, x_4, x_5, x_6, x_7, x_28);
  return x_30;
  }
  }
  else
  {
  uint8_t x_31; 
  lean_dec(x_14);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_31 = !lean_is_exclusive(x_19);
  if (x_31 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; 
  x_32 = lean_ctor_get(x_19, 0);
  x_33 = lean_ctor_get(x_19, 1);
  lean_inc(x_33);
  lean_inc(x_32);
  lean_dec(x_19);
  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_14);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_15);
  if (x_35 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_36; lean_object* x_37; lean_object* x_38; 
  x_36 = lean_ctor_get(x_15, 0);
  x_37 = lean_ctor_get(x_15, 1);
  lean_inc(x_37);
  lean_inc(x_36);
  lean_dec(x_15);
  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;
  }
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrLemma___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___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrLemma(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8);
  return x_10;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma_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_Simp_0__Lean_Elab_Tactic_addSimpLemma_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma_match__1___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  x_9 = l_Lean_Elab_Term_synthesizeSyntheticMVarsUsingDefault(x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  if (lean_obj_tag(x_9) == 0)
  {
  lean_object* x_10; lean_object* x_11; 
  x_10 = lean_ctor_get(x_9, 1);
  lean_inc(x_10);
  lean_dec(x_9);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  x_11 = l_Lean_Meta_instantiateMVars(x_1, x_4, x_5, x_6, x_7, x_10);
  if (lean_obj_tag(x_11) == 0)
  {
  uint8_t x_12; 
  x_12 = !lean_is_exclusive(x_11);
  if (x_12 == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
  x_13 = lean_ctor_get(x_11, 0);
  x_14 = lean_ctor_get(x_11, 1);
  x_15 = l_Lean_Expr_eta(x_13);
  x_16 = l_Lean_Expr_hasMVar(x_15);
  if (x_16 == 0)
  {
  lean_object* x_17; lean_object* x_18; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_17 = l_Array_empty___closed__1;
  x_18 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_18, 0, x_17);
  lean_ctor_set(x_18, 1, x_15);
  lean_ctor_set(x_11, 0, x_18);
  return x_11;
  }
  else
  {
  lean_object* x_19; 
  lean_free_object(x_11);
  x_19 = l_Lean_Meta_abstractMVars(x_15, x_4, x_5, x_6, x_7, x_14);
  if (lean_obj_tag(x_19) == 0)
  {
  uint8_t x_20; 
  x_20 = !lean_is_exclusive(x_19);
  if (x_20 == 0)
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_21 = lean_ctor_get(x_19, 0);
  x_22 = lean_ctor_get(x_21, 0);
  lean_inc(x_22);
  x_23 = lean_ctor_get(x_21, 2);
  lean_inc(x_23);
  lean_dec(x_21);
  x_24 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_24, 0, x_22);
  lean_ctor_set(x_24, 1, x_23);
  lean_ctor_set(x_19, 0, x_24);
  return x_19;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_25 = lean_ctor_get(x_19, 0);
  x_26 = lean_ctor_get(x_19, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_19);
  x_27 = lean_ctor_get(x_25, 0);
  lean_inc(x_27);
  x_28 = lean_ctor_get(x_25, 2);
  lean_inc(x_28);
  lean_dec(x_25);
  x_29 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_29, 0, x_27);
  lean_ctor_set(x_29, 1, x_28);
  x_30 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_30, 0, x_29);
  lean_ctor_set(x_30, 1, x_26);
  return x_30;
  }
  }
  else
  {
  uint8_t x_31; 
  x_31 = !lean_is_exclusive(x_19);
  if (x_31 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; 
  x_32 = lean_ctor_get(x_19, 0);
  x_33 = lean_ctor_get(x_19, 1);
  lean_inc(x_33);
  lean_inc(x_32);
  lean_dec(x_19);
  x_34 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_34, 0, x_32);
  lean_ctor_set(x_34, 1, x_33);
  return x_34;
  }
  }
  }
  }
  else
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; 
  x_35 = lean_ctor_get(x_11, 0);
  x_36 = lean_ctor_get(x_11, 1);
  lean_inc(x_36);
  lean_inc(x_35);
  lean_dec(x_11);
  x_37 = l_Lean_Expr_eta(x_35);
  x_38 = l_Lean_Expr_hasMVar(x_37);
  if (x_38 == 0)
  {
  lean_object* x_39; lean_object* x_40; lean_object* x_41; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_39 = l_Array_empty___closed__1;
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_37);
  x_41 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_41, 0, x_40);
  lean_ctor_set(x_41, 1, x_36);
  return x_41;
  }
  else
  {
  lean_object* x_42; 
  x_42 = l_Lean_Meta_abstractMVars(x_37, x_4, x_5, x_6, x_7, x_36);
  if (lean_obj_tag(x_42) == 0)
  {
  lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_43 = lean_ctor_get(x_42, 0);
  lean_inc(x_43);
  x_44 = lean_ctor_get(x_42, 1);
  lean_inc(x_44);
  if (lean_is_exclusive(x_42)) {
   lean_ctor_release(x_42, 0);
   lean_ctor_release(x_42, 1);
   x_45 = x_42;
  } else {
   lean_dec_ref(x_42);
   x_45 = lean_box(0);
  }
  x_46 = lean_ctor_get(x_43, 0);
  lean_inc(x_46);
  x_47 = lean_ctor_get(x_43, 2);
  lean_inc(x_47);
  lean_dec(x_43);
  x_48 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_48, 0, x_46);
  lean_ctor_set(x_48, 1, x_47);
  if (lean_is_scalar(x_45)) {
   x_49 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_49 = x_45;
  }
  lean_ctor_set(x_49, 0, x_48);
  lean_ctor_set(x_49, 1, x_44);
  return x_49;
  }
  else
  {
  lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_50 = lean_ctor_get(x_42, 0);
  lean_inc(x_50);
  x_51 = lean_ctor_get(x_42, 1);
  lean_inc(x_51);
  if (lean_is_exclusive(x_42)) {
   lean_ctor_release(x_42, 0);
   lean_ctor_release(x_42, 1);
   x_52 = x_42;
  } else {
   lean_dec_ref(x_42);
   x_52 = lean_box(0);
  }
  if (lean_is_scalar(x_52)) {
   x_53 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_53 = x_52;
  }
  lean_ctor_set(x_53, 0, x_50);
  lean_ctor_set(x_53, 1, x_51);
  return x_53;
  }
  }
  }
  }
  else
  {
  uint8_t x_54; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_54 = !lean_is_exclusive(x_11);
  if (x_54 == 0)
  {
  return x_11;
  }
  else
  {
  lean_object* x_55; lean_object* x_56; lean_object* x_57; 
  x_55 = lean_ctor_get(x_11, 0);
  x_56 = lean_ctor_get(x_11, 1);
  lean_inc(x_56);
  lean_inc(x_55);
  lean_dec(x_11);
  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_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_58 = !lean_is_exclusive(x_9);
  if (x_58 == 0)
  {
  return x_9;
  }
  else
  {
  lean_object* x_59; lean_object* x_60; lean_object* x_61; 
  x_59 = lean_ctor_get(x_9, 0);
  x_60 = lean_ctor_get(x_9, 1);
  lean_inc(x_60);
  lean_inc(x_59);
  lean_dec(x_9);
  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_Simp_0__Lean_Elab_Tactic_addSimpLemma___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; uint8_t x_12; 
  x_11 = l_Lean_replaceRef(x_1, x_3);
  x_12 = !lean_is_exclusive(x_8);
  if (x_12 == 0)
  {
  lean_object* x_13; lean_object* x_14; 
  x_13 = lean_ctor_get(x_8, 3);
  lean_dec(x_13);
  lean_ctor_set(x_8, 3, x_11);
  x_14 = l_Lean_Elab_Term_withoutErrToSorry___rarg(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  return x_14;
  }
  else
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_15 = lean_ctor_get(x_8, 0);
  x_16 = lean_ctor_get(x_8, 1);
  x_17 = lean_ctor_get(x_8, 2);
  x_18 = lean_ctor_get(x_8, 4);
  x_19 = lean_ctor_get(x_8, 5);
  x_20 = lean_ctor_get(x_8, 6);
  x_21 = lean_ctor_get(x_8, 7);
  lean_inc(x_21);
  lean_inc(x_20);
  lean_inc(x_19);
  lean_inc(x_18);
  lean_inc(x_17);
  lean_inc(x_16);
  lean_inc(x_15);
  lean_dec(x_8);
  x_22 = lean_alloc_ctor(0, 8, 0);
  lean_ctor_set(x_22, 0, x_15);
  lean_ctor_set(x_22, 1, x_16);
  lean_ctor_set(x_22, 2, x_17);
  lean_ctor_set(x_22, 3, x_11);
  lean_ctor_set(x_22, 4, x_18);
  lean_ctor_set(x_22, 5, x_19);
  lean_ctor_set(x_22, 6, x_20);
  lean_ctor_set(x_22, 7, x_21);
  x_23 = l_Lean_Elab_Term_withoutErrToSorry___rarg(x_2, x_4, x_5, x_6, x_7, x_22, x_9, x_10);
  return x_23;
  }
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___lambda__1), 8, 0);
  return x_1;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
  x_11 = lean_box(0);
  x_12 = 1;
  x_13 = lean_box(x_12);
  x_14 = lean_box(x_12);
  lean_inc(x_2);
  x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabTerm___boxed), 11, 4);
  lean_closure_set(x_15, 0, x_2);
  lean_closure_set(x_15, 1, x_11);
  lean_closure_set(x_15, 2, x_13);
  lean_closure_set(x_15, 3, x_14);
  x_16 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___closed__1;
  x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
  lean_closure_set(x_17, 0, x_15);
  lean_closure_set(x_17, 1, x_16);
  x_18 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___lambda__2___boxed), 10, 2);
  lean_closure_set(x_18, 0, x_2);
  lean_closure_set(x_18, 1, x_17);
  x_19 = l_Lean_Elab_Term_instMonadLogTermElabM___closed__6;
  x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
  lean_closure_set(x_20, 0, x_19);
  lean_closure_set(x_20, 1, x_18);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_21 = l_Lean_Elab_Term_withoutModifyingElabMetaState___rarg(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  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; 
  x_22 = lean_ctor_get(x_21, 0);
  lean_inc(x_22);
  x_23 = lean_ctor_get(x_21, 1);
  lean_inc(x_23);
  lean_dec(x_21);
  x_24 = lean_ctor_get(x_22, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_22, 1);
  lean_inc(x_25);
  lean_dec(x_22);
  x_26 = lean_unsigned_to_nat(1000u);
  x_27 = l_Lean_Meta_SimpLemmas_add(x_1, x_24, x_25, x_12, x_26, x_11, x_6, x_7, x_8, x_9, x_23);
  return x_27;
  }
  else
  {
  uint8_t x_28; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_28 = !lean_is_exclusive(x_21);
  if (x_28 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_21, 0);
  x_30 = lean_ctor_get(x_21, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_21);
  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_Simp_0__Lean_Elab_Tactic_addSimpLemma___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_3);
  lean_dec(x_1);
  return x_11;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; lean_object* x_12; 
  x_11 = lean_unbox(x_3);
  lean_dec(x_3);
  x_12 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  return x_12;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  lean_dec(x_3);
  x_4 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  x_5 = lean_ctor_get(x_1, 1);
  lean_inc(x_5);
  lean_dec(x_1);
  x_6 = lean_apply_2(x_2, x_4, x_5);
  return x_6;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  lean_dec(x_2);
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  x_8 = lean_ctor_get(x_1, 1);
  lean_inc(x_8);
  lean_dec(x_1);
  x_9 = lean_apply_2(x_3, x_7, x_8);
  return x_9;
  }
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; 
  lean_dec(x_2);
  x_4 = lean_apply_1(x_3, x_1);
  return x_4;
  }
  else
  {
  lean_object* x_5; lean_object* x_6; 
  lean_dec(x_3);
  x_5 = lean_ctor_get(x_1, 0);
  lean_inc(x_5);
  lean_dec(x_1);
  x_6 = lean_apply_1(x_2, x_5);
  return x_6;
  }
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = l_Lean_Syntax_isIdent(x_1);
  if (x_11 == 0)
  {
  lean_object* x_12; 
  x_12 = l_Lean_Elab_Term_elabCDotFunctionAlias_x3f(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  return x_12;
  }
  else
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; 
  x_13 = l_Lean_Elab_Tactic_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  x_14 = lean_ctor_get(x_13, 0);
  lean_inc(x_14);
  x_15 = lean_ctor_get(x_13, 1);
  lean_inc(x_15);
  lean_dec(x_13);
  x_16 = l_term___u2218_____closed__5;
  x_17 = 1;
  lean_inc(x_8);
  lean_inc(x_6);
  lean_inc(x_4);
  x_18 = l_Lean_Elab_Term_resolveId_x3f(x_1, x_16, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_15);
  if (lean_obj_tag(x_18) == 0)
  {
  uint8_t x_19; 
  lean_dec(x_14);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_4);
  x_19 = !lean_is_exclusive(x_18);
  if (x_19 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_20 = lean_ctor_get(x_18, 0);
  x_21 = lean_ctor_get(x_18, 1);
  lean_inc(x_21);
  lean_inc(x_20);
  lean_dec(x_18);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_20);
  lean_ctor_set(x_22, 1, x_21);
  return x_22;
  }
  }
  else
  {
  lean_object* x_23; lean_object* x_24; uint8_t x_25; 
  x_23 = lean_ctor_get(x_18, 1);
  lean_inc(x_23);
  lean_dec(x_18);
  x_24 = l_Lean_Elab_Tactic_SavedState_restore(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_4);
  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;
  }
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_5);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_11;
  }
  }
  lean_object* l_Lean_resolveGlobalName___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; uint8_t x_12; 
  x_11 = lean_st_ref_get(x_9, x_10);
  x_12 = !lean_is_exclusive(x_11);
  if (x_12 == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_13 = lean_ctor_get(x_11, 0);
  x_14 = lean_ctor_get(x_13, 0);
  lean_inc(x_14);
  lean_dec(x_13);
  x_15 = lean_ctor_get(x_8, 4);
  lean_inc(x_15);
  x_16 = lean_ctor_get(x_8, 5);
  lean_inc(x_16);
  lean_dec(x_8);
  x_17 = l_Lean_ResolveName_resolveGlobalName(x_14, x_15, x_16, x_1);
  lean_dec(x_15);
  lean_ctor_set(x_11, 0, x_17);
  return x_11;
  }
  else
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_18 = lean_ctor_get(x_11, 0);
  x_19 = lean_ctor_get(x_11, 1);
  lean_inc(x_19);
  lean_inc(x_18);
  lean_dec(x_11);
  x_20 = lean_ctor_get(x_18, 0);
  lean_inc(x_20);
  lean_dec(x_18);
  x_21 = lean_ctor_get(x_8, 4);
  lean_inc(x_21);
  x_22 = lean_ctor_get(x_8, 5);
  lean_inc(x_22);
  lean_dec(x_8);
  x_23 = l_Lean_ResolveName_resolveGlobalName(x_20, x_21, x_22, x_1);
  lean_dec(x_21);
  x_24 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_24, 0, x_23);
  lean_ctor_set(x_24, 1, x_19);
  return x_24;
  }
  }
  }
  lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, 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; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  x_11 = lean_box(0);
  x_12 = l_Lean_mkConst(x_1, x_11);
  x_13 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_13, 0, x_12);
  x_14 = l_Lean_throwUnknownConstant___rarg___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__3;
  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_throwError___at_Lean_Elab_Tactic_evalTacticAux___spec__9(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  return x_18;
  }
  }
  lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  lean_object* x_12; lean_object* x_13; 
  x_12 = l_List_map___at_Lean_resolveGlobalConst___spec__2(x_1);
  x_13 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_13, 0, x_12);
  lean_ctor_set(x_13, 1, x_11);
  return x_13;
  }
  }
  lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _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_inc(x_8);
  lean_inc(x_1);
  x_11 = l_Lean_resolveGlobalName___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  x_12 = lean_ctor_get(x_11, 0);
  lean_inc(x_12);
  x_13 = lean_ctor_get(x_11, 1);
  lean_inc(x_13);
  lean_dec(x_11);
  x_14 = lean_box(0);
  x_15 = l_List_filterAux___at_Lean_resolveGlobalConst___spec__1(x_12, x_14);
  x_16 = l_List_isEmpty___rarg(x_15);
  if (x_16 == 0)
  {
  lean_object* x_17; lean_object* x_18; 
  lean_dec(x_1);
  x_17 = lean_box(0);
  x_18 = l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3___lambda__1(x_15, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
  lean_dec(x_8);
  return x_18;
  }
  else
  {
  lean_object* x_19; uint8_t x_20; 
  lean_dec(x_15);
  x_19 = l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
  lean_dec(x_8);
  x_20 = !lean_is_exclusive(x_19);
  if (x_20 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_21 = lean_ctor_get(x_19, 0);
  x_22 = lean_ctor_get(x_19, 1);
  lean_inc(x_22);
  lean_inc(x_21);
  lean_dec(x_19);
  x_23 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_23, 0, x_21);
  lean_ctor_set(x_23, 1, x_22);
  return x_23;
  }
  }
  }
  }
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; lean_object* x_12; uint8_t x_13; 
  x_11 = lean_ctor_get(x_8, 3);
  x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_6, x_7, x_8, x_9, x_10);
  x_13 = !lean_is_exclusive(x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; lean_object* x_15; 
  x_14 = lean_ctor_get(x_12, 0);
  lean_inc(x_11);
  x_15 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_15, 0, x_11);
  lean_ctor_set(x_15, 1, x_14);
  lean_ctor_set_tag(x_12, 1);
  lean_ctor_set(x_12, 0, x_15);
  return x_12;
  }
  else
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_16 = lean_ctor_get(x_12, 0);
  x_17 = lean_ctor_get(x_12, 1);
  lean_inc(x_17);
  lean_inc(x_16);
  lean_dec(x_12);
  lean_inc(x_11);
  x_18 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_18, 0, x_11);
  lean_ctor_set(x_18, 1, x_16);
  x_19 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_19, 0, x_18);
  lean_ctor_set(x_19, 1, x_17);
  return x_19;
  }
  }
  }
  lean_object* l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  lean_inc(x_8);
  lean_inc(x_1);
  x_11 = l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_11) == 0)
  {
  lean_object* x_12; 
  x_12 = lean_ctor_get(x_11, 0);
  lean_inc(x_12);
  if (lean_obj_tag(x_12) == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_13 = lean_ctor_get(x_11, 1);
  lean_inc(x_13);
  lean_dec(x_11);
  x_14 = lean_box(0);
  x_15 = l_Lean_mkConst(x_1, x_14);
  x_16 = lean_expr_dbg_to_string(x_15);
  lean_dec(x_15);
  x_17 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__1;
  x_18 = lean_string_append(x_17, x_16);
  lean_dec(x_16);
  x_19 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2;
  x_20 = lean_string_append(x_18, x_19);
  x_21 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_14, x_12);
  x_22 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_21);
  x_23 = lean_string_append(x_20, x_22);
  lean_dec(x_22);
  x_24 = l_Lean_instInhabitedParserDescr___closed__1;
  x_25 = lean_string_append(x_23, x_24);
  x_26 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_26, 0, x_25);
  x_27 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_27, 0, x_26);
  x_28 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__6(x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
  lean_dec(x_8);
  return x_28;
  }
  else
  {
  lean_object* x_29; 
  x_29 = lean_ctor_get(x_12, 1);
  lean_inc(x_29);
  if (lean_obj_tag(x_29) == 0)
  {
  uint8_t x_30; 
  lean_dec(x_8);
  lean_dec(x_1);
  x_30 = !lean_is_exclusive(x_11);
  if (x_30 == 0)
  {
  lean_object* x_31; lean_object* x_32; 
  x_31 = lean_ctor_get(x_11, 0);
  lean_dec(x_31);
  x_32 = lean_ctor_get(x_12, 0);
  lean_inc(x_32);
  lean_dec(x_12);
  lean_ctor_set(x_11, 0, x_32);
  return x_11;
  }
  else
  {
  lean_object* x_33; lean_object* x_34; lean_object* x_35; 
  x_33 = lean_ctor_get(x_11, 1);
  lean_inc(x_33);
  lean_dec(x_11);
  x_34 = lean_ctor_get(x_12, 0);
  lean_inc(x_34);
  lean_dec(x_12);
  x_35 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_35, 0, x_34);
  lean_ctor_set(x_35, 1, x_33);
  return x_35;
  }
  }
  else
  {
  lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
  lean_dec(x_29);
  x_36 = lean_ctor_get(x_11, 1);
  lean_inc(x_36);
  lean_dec(x_11);
  x_37 = lean_box(0);
  x_38 = l_Lean_mkConst(x_1, x_37);
  x_39 = lean_expr_dbg_to_string(x_38);
  lean_dec(x_38);
  x_40 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__1;
  x_41 = lean_string_append(x_40, x_39);
  lean_dec(x_39);
  x_42 = l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2;
  x_43 = lean_string_append(x_41, x_42);
  x_44 = l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(x_37, x_12);
  x_45 = l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(x_44);
  x_46 = lean_string_append(x_43, x_45);
  lean_dec(x_45);
  x_47 = l_Lean_instInhabitedParserDescr___closed__1;
  x_48 = lean_string_append(x_46, x_47);
  x_49 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_49, 0, x_48);
  x_50 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_50, 0, x_49);
  x_51 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__6(x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36);
  lean_dec(x_8);
  return x_51;
  }
  }
  }
  else
  {
  uint8_t x_52; 
  lean_dec(x_8);
  lean_dec(x_1);
  x_52 = !lean_is_exclusive(x_11);
  if (x_52 == 0)
  {
  return x_11;
  }
  else
  {
  lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_53 = lean_ctor_get(x_11, 0);
  x_54 = lean_ctor_get(x_11, 1);
  lean_inc(x_54);
  lean_inc(x_53);
  lean_dec(x_11);
  x_55 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_55, 0, x_53);
  lean_ctor_set(x_55, 1, x_54);
  return x_55;
  }
  }
  }
  }
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; lean_object* x_12; uint8_t x_13; 
  x_11 = lean_ctor_get(x_8, 3);
  x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_6, x_7, x_8, x_9, x_10);
  x_13 = !lean_is_exclusive(x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; lean_object* x_15; 
  x_14 = lean_ctor_get(x_12, 0);
  lean_inc(x_11);
  x_15 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_15, 0, x_11);
  lean_ctor_set(x_15, 1, x_14);
  lean_ctor_set_tag(x_12, 1);
  lean_ctor_set(x_12, 0, x_15);
  return x_12;
  }
  else
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_16 = lean_ctor_get(x_12, 0);
  x_17 = lean_ctor_get(x_12, 1);
  lean_inc(x_17);
  lean_inc(x_16);
  lean_dec(x_12);
  lean_inc(x_11);
  x_18 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_18, 0, x_11);
  lean_ctor_set(x_18, 1, x_16);
  x_19 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_19, 0, x_18);
  lean_ctor_set(x_19, 1, x_17);
  return x_19;
  }
  }
  }
  lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; uint8_t x_12; 
  x_11 = lean_st_ref_get(x_9, x_10);
  x_12 = !lean_is_exclusive(x_11);
  if (x_12 == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  x_13 = lean_ctor_get(x_11, 0);
  x_14 = lean_ctor_get(x_11, 1);
  x_15 = lean_ctor_get(x_13, 0);
  lean_inc(x_15);
  lean_dec(x_13);
  lean_inc(x_1);
  x_16 = lean_environment_find(x_15, x_1);
  if (lean_obj_tag(x_16) == 0)
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  lean_free_object(x_11);
  x_17 = lean_box(0);
  x_18 = l_Lean_mkConst(x_1, x_17);
  x_19 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_19, 0, x_18);
  x_20 = l_Lean_throwUnknownConstant___rarg___closed__2;
  x_21 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_21, 0, x_20);
  lean_ctor_set(x_21, 1, x_19);
  x_22 = l_Lean_KernelException_toMessageData___closed__3;
  x_23 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_23, 0, x_21);
  lean_ctor_set(x_23, 1, x_22);
  x_24 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__9(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14);
  return x_24;
  }
  else
  {
  lean_object* x_25; 
  lean_dec(x_1);
  x_25 = lean_ctor_get(x_16, 0);
  lean_inc(x_25);
  lean_dec(x_16);
  lean_ctor_set(x_11, 0, x_25);
  return x_11;
  }
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
  x_26 = lean_ctor_get(x_11, 0);
  x_27 = lean_ctor_get(x_11, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_11);
  x_28 = lean_ctor_get(x_26, 0);
  lean_inc(x_28);
  lean_dec(x_26);
  lean_inc(x_1);
  x_29 = lean_environment_find(x_28, x_1);
  if (lean_obj_tag(x_29) == 0)
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  x_30 = lean_box(0);
  x_31 = l_Lean_mkConst(x_1, x_30);
  x_32 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_32, 0, x_31);
  x_33 = l_Lean_throwUnknownConstant___rarg___closed__2;
  x_34 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_34, 0, x_33);
  lean_ctor_set(x_34, 1, x_32);
  x_35 = l_Lean_KernelException_toMessageData___closed__3;
  x_36 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_36, 0, x_34);
  lean_ctor_set(x_36, 1, x_35);
  x_37 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__9(x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_27);
  return x_37;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; 
  lean_dec(x_1);
  x_38 = lean_ctor_get(x_29, 0);
  lean_inc(x_38);
  lean_dec(x_29);
  x_39 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_39, 0, x_38);
  lean_ctor_set(x_39, 1, x_27);
  return x_39;
  }
  }
  }
  }
  lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  lean_inc(x_1);
  x_11 = l_Lean_getConstInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_11) == 0)
  {
  uint8_t x_12; 
  x_12 = !lean_is_exclusive(x_11);
  if (x_12 == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  x_13 = lean_ctor_get(x_11, 0);
  x_14 = l_Lean_ConstantInfo_levelParams(x_13);
  lean_dec(x_13);
  x_15 = l_List_map___at_Lean_mkConstWithLevelParams___spec__1(x_14);
  x_16 = l_Lean_mkConst(x_1, x_15);
  lean_ctor_set(x_11, 0, x_16);
  return x_11;
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_17 = lean_ctor_get(x_11, 0);
  x_18 = lean_ctor_get(x_11, 1);
  lean_inc(x_18);
  lean_inc(x_17);
  lean_dec(x_11);
  x_19 = l_Lean_ConstantInfo_levelParams(x_17);
  lean_dec(x_17);
  x_20 = l_List_map___at_Lean_mkConstWithLevelParams___spec__1(x_19);
  x_21 = l_Lean_mkConst(x_1, x_20);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_21);
  lean_ctor_set(x_22, 1, x_18);
  return x_22;
  }
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_1);
  x_23 = !lean_is_exclusive(x_11);
  if (x_23 == 0)
  {
  return x_11;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_11, 0);
  x_25 = lean_ctor_get(x_11, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_11);
  x_26 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_26, 0, x_24);
  lean_ctor_set(x_26, 1, x_25);
  return x_26;
  }
  }
  }
  }
  lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  lean_object* x_12; 
  lean_inc(x_9);
  x_12 = l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__2(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  if (lean_obj_tag(x_12) == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
  x_13 = lean_ctor_get(x_12, 0);
  lean_inc(x_13);
  x_14 = lean_ctor_get(x_12, 1);
  lean_inc(x_14);
  lean_dec(x_12);
  x_15 = lean_st_ref_get(x_10, x_14);
  x_16 = lean_ctor_get(x_15, 1);
  lean_inc(x_16);
  lean_dec(x_15);
  x_17 = lean_st_ref_get(x_6, x_16);
  x_18 = lean_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_18, 5);
  lean_inc(x_19);
  lean_dec(x_18);
  x_20 = lean_ctor_get_uint8(x_19, sizeof(void*)*2);
  lean_dec(x_19);
  if (x_20 == 0)
  {
  uint8_t x_21; 
  lean_dec(x_9);
  lean_dec(x_1);
  x_21 = !lean_is_exclusive(x_17);
  if (x_21 == 0)
  {
  lean_object* x_22; 
  x_22 = lean_ctor_get(x_17, 0);
  lean_dec(x_22);
  lean_ctor_set(x_17, 0, x_13);
  return x_17;
  }
  else
  {
  lean_object* x_23; lean_object* x_24; 
  x_23 = lean_ctor_get(x_17, 1);
  lean_inc(x_23);
  lean_dec(x_17);
  x_24 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_24, 0, x_13);
  lean_ctor_set(x_24, 1, x_23);
  return x_24;
  }
  }
  else
  {
  lean_object* x_25; lean_object* x_26; 
  x_25 = lean_ctor_get(x_17, 1);
  lean_inc(x_25);
  lean_dec(x_17);
  lean_inc(x_13);
  x_26 = l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__7(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_25);
  if (lean_obj_tag(x_26) == 0)
  {
  lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; 
  x_27 = lean_ctor_get(x_26, 0);
  lean_inc(x_27);
  x_28 = lean_ctor_get(x_26, 1);
  lean_inc(x_28);
  lean_dec(x_26);
  x_29 = l_Lean_LocalContext_empty;
  x_30 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_30, 0, x_29);
  lean_ctor_set(x_30, 1, x_27);
  lean_ctor_set(x_30, 2, x_1);
  x_31 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_31, 0, x_30);
  x_32 = l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSetOption___spec__3(x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_28);
  lean_dec(x_9);
  x_33 = !lean_is_exclusive(x_32);
  if (x_33 == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_32, 0);
  lean_dec(x_34);
  lean_ctor_set(x_32, 0, x_13);
  return x_32;
  }
  else
  {
  lean_object* x_35; lean_object* x_36; 
  x_35 = lean_ctor_get(x_32, 1);
  lean_inc(x_35);
  lean_dec(x_32);
  x_36 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_36, 0, x_13);
  lean_ctor_set(x_36, 1, x_35);
  return x_36;
  }
  }
  else
  {
  uint8_t x_37; 
  lean_dec(x_13);
  lean_dec(x_9);
  lean_dec(x_1);
  x_37 = !lean_is_exclusive(x_26);
  if (x_37 == 0)
  {
  return x_26;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_26, 0);
  x_39 = lean_ctor_get(x_26, 1);
  lean_inc(x_39);
  lean_inc(x_38);
  lean_dec(x_26);
  x_40 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_40, 0, x_38);
  lean_ctor_set(x_40, 1, x_39);
  return x_40;
  }
  }
  }
  }
  else
  {
  uint8_t x_41; 
  lean_dec(x_9);
  lean_dec(x_1);
  x_41 = !lean_is_exclusive(x_12);
  if (x_41 == 0)
  {
  return x_12;
  }
  else
  {
  lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_42 = lean_ctor_get(x_12, 0);
  x_43 = lean_ctor_get(x_12, 1);
  lean_inc(x_43);
  lean_inc(x_42);
  lean_dec(x_12);
  x_44 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_44, 0, x_42);
  lean_ctor_set(x_44, 1, x_43);
  return x_44;
  }
  }
  }
  }
  lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  uint8_t x_12; 
  x_12 = !lean_is_exclusive(x_1);
  if (x_12 == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_13 = lean_ctor_get(x_1, 2);
  x_14 = lean_ctor_get(x_1, 3);
  x_15 = lean_ctor_get(x_1, 4);
  x_16 = l_Std_PersistentHashMap_erase___at_Lean_Meta_SimpLemmas_eraseCore___spec__1(x_13, x_2);
  x_17 = l_Std_PersistentHashMap_erase___at_Lean_Meta_SimpLemmas_eraseCore___spec__1(x_14, x_2);
  x_18 = lean_box(0);
  x_19 = l_Std_PersistentHashMap_insert___at_Lean_Meta_addSimpLemmaEntry_updateLemmaNames___spec__1(x_15, x_2, x_18);
  lean_ctor_set(x_1, 4, x_19);
  lean_ctor_set(x_1, 3, x_17);
  lean_ctor_set(x_1, 2, x_16);
  x_20 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_20, 0, x_1);
  lean_ctor_set(x_20, 1, x_11);
  return x_20;
  }
  else
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_21 = lean_ctor_get(x_1, 0);
  x_22 = lean_ctor_get(x_1, 1);
  x_23 = lean_ctor_get(x_1, 2);
  x_24 = lean_ctor_get(x_1, 3);
  x_25 = lean_ctor_get(x_1, 4);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_inc(x_23);
  lean_inc(x_22);
  lean_inc(x_21);
  lean_dec(x_1);
  x_26 = l_Std_PersistentHashMap_erase___at_Lean_Meta_SimpLemmas_eraseCore___spec__1(x_23, x_2);
  x_27 = l_Std_PersistentHashMap_erase___at_Lean_Meta_SimpLemmas_eraseCore___spec__1(x_24, x_2);
  x_28 = lean_box(0);
  x_29 = l_Std_PersistentHashMap_insert___at_Lean_Meta_addSimpLemmaEntry_updateLemmaNames___spec__1(x_25, x_2, x_28);
  x_30 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_30, 0, x_21);
  lean_ctor_set(x_30, 1, x_22);
  lean_ctor_set(x_30, 2, x_26);
  lean_ctor_set(x_30, 3, x_27);
  lean_ctor_set(x_30, 4, x_29);
  x_31 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_31, 0, x_30);
  lean_ctor_set(x_31, 1, x_11);
  return x_31;
  }
  }
  }
  lean_object* l_Lean_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__10___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_Meta_SimpLemmas_eraseCore___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__11(x_1, 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_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  uint8_t x_12; 
  lean_inc(x_1);
  x_12 = l_Lean_Meta_SimpLemmas_isLemma(x_1, x_2);
  if (x_12 == 0)
  {
  uint8_t x_13; 
  lean_inc(x_1);
  x_13 = l_Lean_Meta_SimpLemmas_isDeclToUnfold(x_1, x_2);
  if (x_13 == 0)
  {
  lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
  lean_dec(x_1);
  x_14 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_14, 0, x_2);
  x_15 = l_Lean_KernelException_toMessageData___closed__3;
  x_16 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_16, 0, x_15);
  lean_ctor_set(x_16, 1, x_14);
  x_17 = l_Lean_Meta_SimpLemmas_erase___rarg___closed__2;
  x_18 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_18, 0, x_16);
  lean_ctor_set(x_18, 1, x_17);
  x_19 = l_Lean_throwError___at_Lean_Elab_Tactic_evalTacticAux___spec__9(x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  x_20 = !lean_is_exclusive(x_19);
  if (x_20 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_21 = lean_ctor_get(x_19, 0);
  x_22 = lean_ctor_get(x_19, 1);
  lean_inc(x_22);
  lean_inc(x_21);
  lean_dec(x_19);
  x_23 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_23, 0, x_21);
  lean_ctor_set(x_23, 1, x_22);
  return x_23;
  }
  }
  else
  {
  lean_object* x_24; 
  x_24 = l_Lean_Meta_SimpLemmas_eraseCore___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  return x_24;
  }
  }
  else
  {
  lean_object* x_25; 
  x_25 = l_Lean_Meta_SimpLemmas_eraseCore___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  return x_25;
  }
  }
  }
  lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___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, 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; uint8_t x_15; 
  lean_inc(x_1);
  x_13 = l_Lean_Syntax_getKind(x_1);
  x_14 = l_Lean_Parser_Tactic_simpErase___closed__2;
  x_15 = lean_name_eq(x_13, x_14);
  lean_dec(x_13);
  if (x_15 == 0)
  {
  lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; 
  x_16 = lean_unsigned_to_nat(0u);
  x_17 = l_Lean_Syntax_getArg(x_1, x_16);
  x_18 = l_Lean_Syntax_isNone(x_17);
  x_19 = lean_unsigned_to_nat(1u);
  x_20 = l_Lean_Syntax_getArg(x_1, x_19);
  lean_dec(x_1);
  if (x_18 == 0)
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; 
  x_21 = l_Lean_Syntax_getArg(x_17, x_16);
  lean_dec(x_17);
  x_22 = l_Lean_Syntax_getKind(x_21);
  x_23 = l_Lean_Parser_Tactic_simpPost___closed__2;
  x_24 = lean_name_eq(x_22, x_23);
  lean_dec(x_22);
  lean_inc(x_10);
  lean_inc(x_8);
  lean_inc(x_6);
  lean_inc(x_20);
  x_25 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  if (lean_obj_tag(x_25) == 0)
  {
  lean_object* x_26; 
  x_26 = lean_ctor_get(x_25, 0);
  lean_inc(x_26);
  if (lean_obj_tag(x_26) == 0)
  {
  lean_object* x_27; lean_object* x_28; 
  x_27 = lean_ctor_get(x_25, 1);
  lean_inc(x_27);
  lean_dec(x_25);
  x_28 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma(x_2, x_20, x_24, x_6, x_7, x_8, x_9, x_10, x_11, x_27);
  if (lean_obj_tag(x_28) == 0)
  {
  uint8_t x_29; 
  x_29 = !lean_is_exclusive(x_28);
  if (x_29 == 0)
  {
  lean_object* x_30; lean_object* x_31; 
  x_30 = lean_ctor_get(x_28, 0);
  x_31 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_31, 0, x_30);
  lean_ctor_set(x_28, 0, x_31);
  return x_28;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
  x_32 = lean_ctor_get(x_28, 0);
  x_33 = lean_ctor_get(x_28, 1);
  lean_inc(x_33);
  lean_inc(x_32);
  lean_dec(x_28);
  x_34 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_34, 0, x_32);
  x_35 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_35, 0, x_34);
  lean_ctor_set(x_35, 1, x_33);
  return x_35;
  }
  }
  else
  {
  uint8_t x_36; 
  x_36 = !lean_is_exclusive(x_28);
  if (x_36 == 0)
  {
  return x_28;
  }
  else
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  x_37 = lean_ctor_get(x_28, 0);
  x_38 = lean_ctor_get(x_28, 1);
  lean_inc(x_38);
  lean_inc(x_37);
  lean_dec(x_28);
  x_39 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_39, 0, x_37);
  lean_ctor_set(x_39, 1, x_38);
  return x_39;
  }
  }
  }
  else
  {
  lean_object* x_40; lean_object* x_41; lean_object* x_42; 
  lean_dec(x_20);
  lean_dec(x_7);
  lean_dec(x_6);
  x_40 = lean_ctor_get(x_25, 1);
  lean_inc(x_40);
  lean_dec(x_25);
  x_41 = lean_ctor_get(x_26, 0);
  lean_inc(x_41);
  lean_dec(x_26);
  x_42 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrLemma(x_2, x_41, x_24, x_8, x_9, x_10, x_11, x_40);
  if (lean_obj_tag(x_42) == 0)
  {
  uint8_t x_43; 
  x_43 = !lean_is_exclusive(x_42);
  if (x_43 == 0)
  {
  lean_object* x_44; lean_object* x_45; 
  x_44 = lean_ctor_get(x_42, 0);
  x_45 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_45, 0, x_44);
  lean_ctor_set(x_42, 0, x_45);
  return x_42;
  }
  else
  {
  lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_46 = lean_ctor_get(x_42, 0);
  x_47 = lean_ctor_get(x_42, 1);
  lean_inc(x_47);
  lean_inc(x_46);
  lean_dec(x_42);
  x_48 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_48, 0, x_46);
  x_49 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_49, 0, x_48);
  lean_ctor_set(x_49, 1, x_47);
  return x_49;
  }
  }
  else
  {
  uint8_t x_50; 
  x_50 = !lean_is_exclusive(x_42);
  if (x_50 == 0)
  {
  return x_42;
  }
  else
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_42, 0);
  x_52 = lean_ctor_get(x_42, 1);
  lean_inc(x_52);
  lean_inc(x_51);
  lean_dec(x_42);
  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_20);
  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_2);
  x_54 = !lean_is_exclusive(x_25);
  if (x_54 == 0)
  {
  return x_25;
  }
  else
  {
  lean_object* x_55; lean_object* x_56; lean_object* x_57; 
  x_55 = lean_ctor_get(x_25, 0);
  x_56 = lean_ctor_get(x_25, 1);
  lean_inc(x_56);
  lean_inc(x_55);
  lean_dec(x_25);
  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
  {
  lean_object* x_58; 
  lean_dec(x_17);
  lean_inc(x_10);
  lean_inc(x_8);
  lean_inc(x_6);
  lean_inc(x_20);
  x_58 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas_resolveSimpIdLemma_x3f(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  if (lean_obj_tag(x_58) == 0)
  {
  lean_object* x_59; 
  x_59 = lean_ctor_get(x_58, 0);
  lean_inc(x_59);
  if (lean_obj_tag(x_59) == 0)
  {
  lean_object* x_60; uint8_t x_61; lean_object* x_62; 
  x_60 = lean_ctor_get(x_58, 1);
  lean_inc(x_60);
  lean_dec(x_58);
  x_61 = 1;
  x_62 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma(x_2, x_20, x_61, x_6, x_7, x_8, x_9, x_10, x_11, x_60);
  if (lean_obj_tag(x_62) == 0)
  {
  uint8_t x_63; 
  x_63 = !lean_is_exclusive(x_62);
  if (x_63 == 0)
  {
  lean_object* x_64; lean_object* x_65; 
  x_64 = lean_ctor_get(x_62, 0);
  x_65 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_65, 0, x_64);
  lean_ctor_set(x_62, 0, x_65);
  return x_62;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_66 = lean_ctor_get(x_62, 0);
  x_67 = lean_ctor_get(x_62, 1);
  lean_inc(x_67);
  lean_inc(x_66);
  lean_dec(x_62);
  x_68 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_68, 0, x_66);
  x_69 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_69, 0, x_68);
  lean_ctor_set(x_69, 1, x_67);
  return x_69;
  }
  }
  else
  {
  uint8_t x_70; 
  x_70 = !lean_is_exclusive(x_62);
  if (x_70 == 0)
  {
  return x_62;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_62, 0);
  x_72 = lean_ctor_get(x_62, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_62);
  x_73 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_73, 0, x_71);
  lean_ctor_set(x_73, 1, x_72);
  return x_73;
  }
  }
  }
  else
  {
  lean_object* x_74; lean_object* x_75; uint8_t x_76; lean_object* x_77; 
  lean_dec(x_20);
  lean_dec(x_7);
  lean_dec(x_6);
  x_74 = lean_ctor_get(x_58, 1);
  lean_inc(x_74);
  lean_dec(x_58);
  x_75 = lean_ctor_get(x_59, 0);
  lean_inc(x_75);
  lean_dec(x_59);
  x_76 = 1;
  x_77 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrLemma(x_2, x_75, x_76, x_8, x_9, x_10, x_11, x_74);
  if (lean_obj_tag(x_77) == 0)
  {
  uint8_t x_78; 
  x_78 = !lean_is_exclusive(x_77);
  if (x_78 == 0)
  {
  lean_object* x_79; lean_object* x_80; 
  x_79 = lean_ctor_get(x_77, 0);
  x_80 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_80, 0, x_79);
  lean_ctor_set(x_77, 0, x_80);
  return x_77;
  }
  else
  {
  lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; 
  x_81 = lean_ctor_get(x_77, 0);
  x_82 = lean_ctor_get(x_77, 1);
  lean_inc(x_82);
  lean_inc(x_81);
  lean_dec(x_77);
  x_83 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_83, 0, x_81);
  x_84 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_84, 0, x_83);
  lean_ctor_set(x_84, 1, x_82);
  return x_84;
  }
  }
  else
  {
  uint8_t x_85; 
  x_85 = !lean_is_exclusive(x_77);
  if (x_85 == 0)
  {
  return x_77;
  }
  else
  {
  lean_object* x_86; lean_object* x_87; lean_object* x_88; 
  x_86 = lean_ctor_get(x_77, 0);
  x_87 = lean_ctor_get(x_77, 1);
  lean_inc(x_87);
  lean_inc(x_86);
  lean_dec(x_77);
  x_88 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_88, 0, x_86);
  lean_ctor_set(x_88, 1, x_87);
  return x_88;
  }
  }
  }
  }
  else
  {
  uint8_t x_89; 
  lean_dec(x_20);
  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_2);
  x_89 = !lean_is_exclusive(x_58);
  if (x_89 == 0)
  {
  return x_58;
  }
  else
  {
  lean_object* x_90; lean_object* x_91; lean_object* x_92; 
  x_90 = lean_ctor_get(x_58, 0);
  x_91 = lean_ctor_get(x_58, 1);
  lean_inc(x_91);
  lean_inc(x_90);
  lean_dec(x_58);
  x_92 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_92, 0, x_90);
  lean_ctor_set(x_92, 1, x_91);
  return x_92;
  }
  }
  }
  }
  else
  {
  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_93 = lean_unsigned_to_nat(1u);
  x_94 = l_Lean_Syntax_getArg(x_1, x_93);
  lean_dec(x_1);
  lean_inc(x_8);
  lean_inc(x_94);
  x_95 = l_Lean_Elab_Term_isLocalIdent_x3f(x_94, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  x_96 = lean_ctor_get(x_95, 0);
  lean_inc(x_96);
  x_97 = lean_ctor_get(x_95, 1);
  lean_inc(x_97);
  lean_dec(x_95);
  if (x_3 == 0)
  {
  lean_object* x_120; 
  lean_dec(x_96);
  x_120 = lean_box(0);
  x_98 = x_120;
  goto block_119;
  }
  else
  {
  if (lean_obj_tag(x_96) == 0)
  {
  lean_object* x_121; 
  x_121 = lean_box(0);
  x_98 = x_121;
  goto block_119;
  }
  else
  {
  lean_object* x_122; lean_object* x_123; uint8_t x_124; 
  lean_dec(x_96);
  x_122 = l_Lean_Syntax_getId(x_94);
  lean_dec(x_94);
  x_123 = l_Lean_Meta_SimpLemmas_eraseCore___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__11(x_2, x_122, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_97);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_124 = !lean_is_exclusive(x_123);
  if (x_124 == 0)
  {
  lean_object* x_125; lean_object* x_126; 
  x_125 = lean_ctor_get(x_123, 0);
  x_126 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_126, 0, x_125);
  lean_ctor_set(x_123, 0, x_126);
  return x_123;
  }
  else
  {
  lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; 
  x_127 = lean_ctor_get(x_123, 0);
  x_128 = lean_ctor_get(x_123, 1);
  lean_inc(x_128);
  lean_inc(x_127);
  lean_dec(x_123);
  x_129 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_129, 0, x_127);
  x_130 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_130, 0, x_129);
  lean_ctor_set(x_130, 1, x_128);
  return x_130;
  }
  }
  }
  block_119:
  {
  lean_object* x_99; lean_object* x_100; 
  lean_dec(x_98);
  x_99 = l_Lean_Syntax_getId(x_94);
  lean_inc(x_10);
  x_100 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__1(x_94, x_99, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_97);
  if (lean_obj_tag(x_100) == 0)
  {
  lean_object* x_101; lean_object* x_102; lean_object* x_103; 
  x_101 = lean_ctor_get(x_100, 0);
  lean_inc(x_101);
  x_102 = lean_ctor_get(x_100, 1);
  lean_inc(x_102);
  lean_dec(x_100);
  x_103 = l_Lean_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__10(x_2, x_101, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_102);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  if (lean_obj_tag(x_103) == 0)
  {
  uint8_t x_104; 
  x_104 = !lean_is_exclusive(x_103);
  if (x_104 == 0)
  {
  lean_object* x_105; lean_object* x_106; 
  x_105 = lean_ctor_get(x_103, 0);
  x_106 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_106, 0, x_105);
  lean_ctor_set(x_103, 0, x_106);
  return x_103;
  }
  else
  {
  lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; 
  x_107 = lean_ctor_get(x_103, 0);
  x_108 = lean_ctor_get(x_103, 1);
  lean_inc(x_108);
  lean_inc(x_107);
  lean_dec(x_103);
  x_109 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_109, 0, x_107);
  x_110 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_110, 0, x_109);
  lean_ctor_set(x_110, 1, x_108);
  return x_110;
  }
  }
  else
  {
  uint8_t x_111; 
  x_111 = !lean_is_exclusive(x_103);
  if (x_111 == 0)
  {
  return x_103;
  }
  else
  {
  lean_object* x_112; lean_object* x_113; lean_object* x_114; 
  x_112 = lean_ctor_get(x_103, 0);
  x_113 = lean_ctor_get(x_103, 1);
  lean_inc(x_113);
  lean_inc(x_112);
  lean_dec(x_103);
  x_114 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_114, 0, x_112);
  lean_ctor_set(x_114, 1, x_113);
  return x_114;
  }
  }
  }
  else
  {
  uint8_t x_115; 
  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_2);
  x_115 = !lean_is_exclusive(x_100);
  if (x_115 == 0)
  {
  return x_100;
  }
  else
  {
  lean_object* x_116; lean_object* x_117; lean_object* x_118; 
  x_116 = lean_ctor_get(x_100, 0);
  x_117 = lean_ctor_get(x_100, 1);
  lean_inc(x_117);
  lean_inc(x_116);
  lean_dec(x_100);
  x_118 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_118, 0, x_116);
  lean_ctor_set(x_118, 1, x_117);
  return x_118;
  }
  }
  }
  }
  }
  }
  lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___lambda__2(lean_object* x_1, size_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, size_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) {
  _start:
  {
  if (lean_obj_tag(x_8) == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_18 = lean_ctor_get(x_8, 0);
  lean_inc(x_18);
  lean_dec(x_8);
  x_19 = lean_ctor_get(x_1, 0);
  lean_inc(x_19);
  lean_dec(x_1);
  x_20 = lean_ctor_get(x_19, 1);
  lean_inc(x_20);
  lean_dec(x_19);
  x_21 = lean_apply_11(x_20, lean_box(0), x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17);
  return x_21;
  }
  else
  {
  lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; 
  x_22 = lean_ctor_get(x_8, 0);
  lean_inc(x_22);
  lean_dec(x_8);
  x_23 = 1;
  x_24 = x_2 + x_23;
  x_25 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12(x_3, x_4, x_5, x_1, x_6, x_7, x_24, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17);
  return x_25;
  }
  }
  }
  lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) {
  _start:
  {
  uint8_t x_18; 
  x_18 = x_7 < x_6;
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; 
  lean_dec(x_5);
  lean_dec(x_3);
  lean_dec(x_2);
  x_19 = lean_ctor_get(x_4, 0);
  lean_inc(x_19);
  lean_dec(x_4);
  x_20 = lean_ctor_get(x_19, 1);
  lean_inc(x_20);
  lean_dec(x_19);
  x_21 = lean_apply_11(x_20, lean_box(0), x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17);
  return x_21;
  }
  else
  {
  lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_22 = lean_array_uget(x_5, x_7);
  x_23 = lean_ctor_get(x_4, 1);
  lean_inc(x_23);
  x_24 = lean_box(x_1);
  x_25 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___lambda__1___boxed), 12, 3);
  lean_closure_set(x_25, 0, x_22);
  lean_closure_set(x_25, 1, x_8);
  lean_closure_set(x_25, 2, x_24);
  x_26 = lean_box_usize(x_7);
  x_27 = lean_box(x_1);
  x_28 = lean_box_usize(x_6);
  x_29 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___lambda__2___boxed), 17, 7);
  lean_closure_set(x_29, 0, x_4);
  lean_closure_set(x_29, 1, x_26);
  lean_closure_set(x_29, 2, x_27);
  lean_closure_set(x_29, 3, x_2);
  lean_closure_set(x_29, 4, x_3);
  lean_closure_set(x_29, 5, x_5);
  lean_closure_set(x_29, 6, x_28);
  x_30 = lean_apply_13(x_23, lean_box(0), lean_box(0), x_25, x_29, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17);
  return x_30;
  }
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_12 = lean_ctor_get(x_1, 0);
  x_13 = lean_ctor_get(x_1, 2);
  x_14 = lean_ctor_get(x_1, 3);
  x_15 = lean_ctor_get(x_1, 4);
  lean_inc(x_15);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  x_16 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_16, 0, x_12);
  lean_ctor_set(x_16, 1, x_2);
  lean_ctor_set(x_16, 2, x_13);
  lean_ctor_set(x_16, 3, x_14);
  lean_ctor_set(x_16, 4, x_15);
  x_17 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_17, 0, x_16);
  lean_ctor_set(x_17, 1, x_11);
  return x_17;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_quoteAutoTactic___closed__5;
  x_2 = l_ReaderT_instMonadReaderT___rarg(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__1;
  x_2 = l_ReaderT_instMonadReaderT___rarg(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___boxed__const__1() {
  _start:
  {
  size_t x_1; lean_object* x_2; 
  x_1 = 0;
  x_2 = lean_box_usize(x_1);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  uint8_t x_13; 
  x_13 = l_Lean_Syntax_isNone(x_1);
  if (x_13 == 0)
  {
  lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
  x_14 = lean_ctor_get(x_2, 1);
  lean_inc(x_14);
  x_15 = lean_unsigned_to_nat(1u);
  x_16 = l_Lean_Syntax_getArg(x_1, x_15);
  x_17 = l_Lean_Syntax_getSepArgs(x_16);
  lean_dec(x_16);
  x_18 = lean_array_get_size(x_17);
  x_19 = lean_usize_of_nat(x_18);
  lean_dec(x_18);
  x_20 = l_Lean_Elab_Term_quoteAutoTactic___closed__5;
  x_21 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__1;
  x_22 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__2;
  x_23 = lean_box(x_3);
  x_24 = lean_box_usize(x_19);
  x_25 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___boxed__const__1;
  x_26 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___boxed), 17, 8);
  lean_closure_set(x_26, 0, x_23);
  lean_closure_set(x_26, 1, x_20);
  lean_closure_set(x_26, 2, x_21);
  lean_closure_set(x_26, 3, x_22);
  lean_closure_set(x_26, 4, x_17);
  lean_closure_set(x_26, 5, x_24);
  lean_closure_set(x_26, 6, x_25);
  lean_closure_set(x_26, 7, x_14);
  x_27 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___lambda__1___boxed), 11, 1);
  lean_closure_set(x_27, 0, x_2);
  x_28 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_focusAndDone___spec__1___rarg), 11, 2);
  lean_closure_set(x_28, 0, x_26);
  lean_closure_set(x_28, 1, x_27);
  x_29 = l_Lean_Elab_Tactic_withMainContext___rarg(x_28, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  return x_29;
  }
  else
  {
  lean_object* x_30; 
  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);
  x_30 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_30, 0, x_2);
  lean_ctor_set(x_30, 1, x_12);
  return x_30;
  }
  }
  }
  lean_object* l_Lean_resolveGlobalName___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_resolveGlobalName___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_11;
  }
  }
  lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_11;
  }
  }
  lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  lean_object* x_12; 
  x_12 = l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  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_12;
  }
  }
  lean_object* l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_resolveGlobalConst___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_11;
  }
  }
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_11;
  }
  }
  lean_object* l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_11;
  }
  }
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_11;
  }
  }
  lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_getConstInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_11;
  }
  }
  lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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_mkConstWithLevelParams___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_11;
  }
  }
  lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  lean_object* x_12; 
  x_12 = l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_12;
  }
  }
  lean_object* l_Lean_Meta_SimpLemmas_eraseCore___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  lean_object* x_12; 
  x_12 = l_Lean_Meta_SimpLemmas_eraseCore___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_10);
  lean_dec(x_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);
  return x_12;
  }
  }
  lean_object* l_Lean_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__10___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_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__10___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_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);
  return x_13;
  }
  }
  lean_object* l_Lean_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  lean_object* x_12; 
  x_12 = l_Lean_Meta_SimpLemmas_erase___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_10);
  lean_dec(x_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);
  return x_12;
  }
  }
  lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___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:
  {
  uint8_t x_13; lean_object* x_14; 
  x_13 = lean_unbox(x_3);
  lean_dec(x_3);
  x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___lambda__1(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_14;
  }
  }
  lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___lambda__2___boxed(lean_object** _args) {
  lean_object* x_1 = _args[0];
  lean_object* x_2 = _args[1];
  lean_object* x_3 = _args[2];
  lean_object* x_4 = _args[3];
  lean_object* x_5 = _args[4];
  lean_object* x_6 = _args[5];
  lean_object* x_7 = _args[6];
  lean_object* x_8 = _args[7];
  lean_object* x_9 = _args[8];
  lean_object* x_10 = _args[9];
  lean_object* x_11 = _args[10];
  lean_object* x_12 = _args[11];
  lean_object* x_13 = _args[12];
  lean_object* x_14 = _args[13];
  lean_object* x_15 = _args[14];
  lean_object* x_16 = _args[15];
  lean_object* x_17 = _args[16];
  _start:
  {
  size_t x_18; uint8_t x_19; size_t x_20; lean_object* x_21; 
  x_18 = lean_unbox_usize(x_2);
  lean_dec(x_2);
  x_19 = lean_unbox(x_3);
  lean_dec(x_3);
  x_20 = lean_unbox_usize(x_7);
  lean_dec(x_7);
  x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___lambda__2(x_1, x_18, x_19, x_4, x_5, x_6, x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17);
  return x_21;
  }
  }
  lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12___boxed(lean_object** _args) {
  lean_object* x_1 = _args[0];
  lean_object* x_2 = _args[1];
  lean_object* x_3 = _args[2];
  lean_object* x_4 = _args[3];
  lean_object* x_5 = _args[4];
  lean_object* x_6 = _args[5];
  lean_object* x_7 = _args[6];
  lean_object* x_8 = _args[7];
  lean_object* x_9 = _args[8];
  lean_object* x_10 = _args[9];
  lean_object* x_11 = _args[10];
  lean_object* x_12 = _args[11];
  lean_object* x_13 = _args[12];
  lean_object* x_14 = _args[13];
  lean_object* x_15 = _args[14];
  lean_object* x_16 = _args[15];
  lean_object* x_17 = _args[16];
  _start:
  {
  uint8_t x_18; size_t x_19; size_t x_20; lean_object* x_21; 
  x_18 = lean_unbox(x_1);
  lean_dec(x_1);
  x_19 = lean_unbox_usize(x_6);
  lean_dec(x_6);
  x_20 = lean_unbox_usize(x_7);
  lean_dec(x_7);
  x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___spec__12(x_18, x_2, x_3, x_4, x_5, x_19, x_20, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17);
  return x_21;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  lean_object* x_12; 
  x_12 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_10);
  lean_dec(x_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_1);
  return x_12;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___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:
  {
  uint8_t x_13; lean_object* x_14; 
  x_13 = lean_unbox(x_3);
  lean_dec(x_3);
  x_14 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas(x_1, x_2, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_1);
  return x_14;
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  x_13 = lean_unsigned_to_nat(2u);
  x_14 = l_Lean_Syntax_getArg(x_1, x_13);
  x_15 = l_Lean_Syntax_isNone(x_14);
  lean_dec(x_14);
  x_16 = lean_unsigned_to_nat(1u);
  x_17 = l_Lean_Syntax_getArg(x_1, x_16);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_18 = l_Lean_Elab_Tactic_elabSimpConfig(x_17, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_17);
  if (x_15 == 0)
  {
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_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 = l_Lean_Meta_getSimpLemmas___rarg(x_11, x_20);
  x_22 = lean_ctor_get(x_21, 1);
  lean_inc(x_22);
  lean_dec(x_21);
  x_23 = l_Lean_Meta_getCongrLemmas___rarg(x_11, x_22);
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_23, 1);
  lean_inc(x_25);
  lean_dec(x_23);
  x_26 = lean_unsigned_to_nat(3u);
  x_27 = l_Lean_Syntax_getArg(x_1, x_26);
  x_28 = lean_box(0);
  x_29 = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_476____closed__3;
  x_30 = lean_unsigned_to_nat(0u);
  x_31 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_31, 0, x_19);
  lean_ctor_set(x_31, 1, x_29);
  lean_ctor_set(x_31, 2, x_24);
  lean_ctor_set(x_31, 3, x_28);
  lean_ctor_set(x_31, 4, x_30);
  x_32 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas(x_27, x_31, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_25);
  lean_dec(x_27);
  return x_32;
  }
  else
  {
  uint8_t x_33; 
  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);
  x_33 = !lean_is_exclusive(x_18);
  if (x_33 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_34; lean_object* x_35; lean_object* x_36; 
  x_34 = lean_ctor_get(x_18, 0);
  x_35 = lean_ctor_get(x_18, 1);
  lean_inc(x_35);
  lean_inc(x_34);
  lean_dec(x_18);
  x_36 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_36, 0, x_34);
  lean_ctor_set(x_36, 1, x_35);
  return x_36;
  }
  }
  }
  else
  {
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
  x_37 = lean_ctor_get(x_18, 0);
  lean_inc(x_37);
  x_38 = lean_ctor_get(x_18, 1);
  lean_inc(x_38);
  lean_dec(x_18);
  x_39 = l_Lean_Meta_getSimpLemmas___rarg(x_11, x_38);
  x_40 = lean_ctor_get(x_39, 0);
  lean_inc(x_40);
  x_41 = lean_ctor_get(x_39, 1);
  lean_inc(x_41);
  lean_dec(x_39);
  x_42 = l_Lean_Meta_getCongrLemmas___rarg(x_11, x_41);
  x_43 = lean_ctor_get(x_42, 0);
  lean_inc(x_43);
  x_44 = lean_ctor_get(x_42, 1);
  lean_inc(x_44);
  lean_dec(x_42);
  x_45 = lean_unsigned_to_nat(3u);
  x_46 = l_Lean_Syntax_getArg(x_1, x_45);
  x_47 = lean_box(0);
  x_48 = lean_unsigned_to_nat(0u);
  x_49 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_49, 0, x_37);
  lean_ctor_set(x_49, 1, x_40);
  lean_ctor_set(x_49, 2, x_43);
  lean_ctor_set(x_49, 3, x_47);
  lean_ctor_set(x_49, 4, x_48);
  x_50 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas(x_46, x_49, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_44);
  lean_dec(x_46);
  return x_50;
  }
  else
  {
  uint8_t x_51; 
  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);
  x_51 = !lean_is_exclusive(x_18);
  if (x_51 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_52; lean_object* x_53; lean_object* x_54; 
  x_52 = lean_ctor_get(x_18, 0);
  x_53 = lean_ctor_get(x_18, 1);
  lean_inc(x_53);
  lean_inc(x_52);
  lean_dec(x_18);
  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;
  }
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext___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:
  {
  uint8_t x_13; uint8_t x_14; lean_object* x_15; 
  x_13 = lean_unbox(x_2);
  lean_dec(x_2);
  x_14 = lean_unbox(x_3);
  lean_dec(x_3);
  x_15 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(x_1, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_1);
  return x_15;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp_go_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_object* x_8; lean_object* x_9; 
  lean_dec(x_2);
  x_6 = lean_ctor_get(x_1, 0);
  lean_inc(x_6);
  lean_dec(x_1);
  x_7 = lean_ctor_get(x_6, 0);
  lean_inc(x_7);
  x_8 = lean_ctor_get(x_6, 1);
  lean_inc(x_8);
  lean_dec(x_6);
  x_9 = lean_apply_2(x_3, x_7, x_8);
  return x_9;
  }
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimp_go_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp_go_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_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_evalSimp_go_match__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimp_go_match__2___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; lean_object* x_5; 
  lean_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_evalSimp_go_match__3(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimp_go_match__3___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp_go_match__4___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_Elab_Tactic_evalSimp_go_match__4(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimp_go_match__4___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp_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_2);
  x_4 = lean_box(0);
  x_5 = lean_apply_1(x_3, x_4);
  return x_5;
  }
  else
  {
  lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; 
  lean_dec(x_3);
  x_6 = lean_ctor_get(x_1, 0);
  lean_inc(x_6);
  x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*1);
  lean_dec(x_1);
  x_8 = lean_box(x_7);
  x_9 = lean_apply_2(x_2, x_6, x_8);
  return x_9;
  }
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimp_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSimp_go___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) {
  _start:
  {
  lean_object* x_17; lean_object* x_18; uint8_t x_26; 
  x_26 = x_6 < x_5;
  if (x_26 == 0)
  {
  lean_object* x_27; 
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_7);
  lean_ctor_set(x_27, 1, x_16);
  return x_27;
  }
  else
  {
  lean_object* x_28; uint8_t x_29; 
  x_28 = lean_array_uget(x_4, x_6);
  x_29 = !lean_is_exclusive(x_7);
  if (x_29 == 0)
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_7, 1);
  x_31 = lean_ctor_get(x_7, 0);
  lean_dec(x_31);
  lean_inc(x_12);
  lean_inc(x_28);
  x_32 = l_Lean_Meta_getLocalDecl(x_28, x_12, x_13, x_14, x_15, x_16);
  if (lean_obj_tag(x_32) == 0)
  {
  lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
  x_33 = lean_ctor_get(x_32, 0);
  lean_inc(x_33);
  x_34 = lean_ctor_get(x_32, 1);
  lean_inc(x_34);
  lean_dec(x_32);
  x_35 = l_Lean_LocalDecl_type(x_33);
  lean_inc(x_15);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  x_36 = l_Lean_Meta_instantiateMVars(x_35, x_12, x_13, x_14, x_15, x_34);
  if (lean_obj_tag(x_36) == 0)
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_37 = lean_ctor_get(x_36, 0);
  lean_inc(x_37);
  x_38 = lean_ctor_get(x_36, 1);
  lean_inc(x_38);
  lean_dec(x_36);
  x_39 = l_Lean_mkFVar(x_28);
  lean_inc(x_15);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_1);
  lean_inc(x_2);
  x_40 = l_Lean_Meta_simpStep(x_2, x_39, x_37, x_1, x_12, x_13, x_14, x_15, x_38);
  if (lean_obj_tag(x_40) == 0)
  {
  lean_object* x_41; 
  x_41 = lean_ctor_get(x_40, 0);
  lean_inc(x_41);
  if (lean_obj_tag(x_41) == 0)
  {
  lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_40, 1);
  lean_inc(x_42);
  lean_dec(x_40);
  x_43 = lean_box(0);
  x_44 = l_Lean_Elab_Tactic_replaceMainGoal(x_43, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_42);
  if (lean_obj_tag(x_44) == 0)
  {
  lean_object* x_45; lean_object* x_46; lean_object* x_47; 
  x_45 = lean_ctor_get(x_44, 1);
  lean_inc(x_45);
  lean_dec(x_44);
  x_46 = l_List_forIn_loop___at_Lean_Elab_Term_Quotation_precheckIdent___spec__3___closed__1;
  lean_ctor_set(x_7, 0, x_46);
  x_47 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_47, 0, x_7);
  x_17 = x_47;
  x_18 = x_45;
  goto block_25;
  }
  else
  {
  uint8_t x_48; 
  lean_free_object(x_7);
  lean_dec(x_30);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_48 = !lean_is_exclusive(x_44);
  if (x_48 == 0)
  {
  return x_44;
  }
  else
  {
  lean_object* x_49; lean_object* x_50; lean_object* x_51; 
  x_49 = lean_ctor_get(x_44, 0);
  x_50 = lean_ctor_get(x_44, 1);
  lean_inc(x_50);
  lean_inc(x_49);
  lean_dec(x_44);
  x_51 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_51, 0, x_49);
  lean_ctor_set(x_51, 1, x_50);
  return x_51;
  }
  }
  }
  else
  {
  lean_object* x_52; lean_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; 
  x_52 = lean_ctor_get(x_41, 0);
  lean_inc(x_52);
  lean_dec(x_41);
  x_53 = lean_ctor_get(x_40, 1);
  lean_inc(x_53);
  lean_dec(x_40);
  x_54 = lean_ctor_get(x_52, 0);
  lean_inc(x_54);
  x_55 = lean_ctor_get(x_52, 1);
  lean_inc(x_55);
  lean_dec(x_52);
  x_56 = l_Lean_LocalDecl_userName(x_33);
  lean_dec(x_33);
  x_57 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_57, 0, x_56);
  lean_ctor_set(x_57, 1, x_55);
  lean_ctor_set(x_57, 2, x_54);
  x_58 = lean_array_push(x_30, x_57);
  lean_inc(x_3);
  lean_ctor_set(x_7, 1, x_58);
  lean_ctor_set(x_7, 0, x_3);
  x_59 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_59, 0, x_7);
  x_17 = x_59;
  x_18 = x_53;
  goto block_25;
  }
  }
  else
  {
  uint8_t x_60; 
  lean_dec(x_33);
  lean_free_object(x_7);
  lean_dec(x_30);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_60 = !lean_is_exclusive(x_40);
  if (x_60 == 0)
  {
  return x_40;
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; 
  x_61 = lean_ctor_get(x_40, 0);
  x_62 = lean_ctor_get(x_40, 1);
  lean_inc(x_62);
  lean_inc(x_61);
  lean_dec(x_40);
  x_63 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_63, 0, x_61);
  lean_ctor_set(x_63, 1, x_62);
  return x_63;
  }
  }
  }
  else
  {
  uint8_t x_64; 
  lean_dec(x_33);
  lean_free_object(x_7);
  lean_dec(x_30);
  lean_dec(x_28);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_64 = !lean_is_exclusive(x_36);
  if (x_64 == 0)
  {
  return x_36;
  }
  else
  {
  lean_object* x_65; lean_object* x_66; lean_object* x_67; 
  x_65 = lean_ctor_get(x_36, 0);
  x_66 = lean_ctor_get(x_36, 1);
  lean_inc(x_66);
  lean_inc(x_65);
  lean_dec(x_36);
  x_67 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_67, 0, x_65);
  lean_ctor_set(x_67, 1, x_66);
  return x_67;
  }
  }
  }
  else
  {
  uint8_t x_68; 
  lean_free_object(x_7);
  lean_dec(x_30);
  lean_dec(x_28);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_68 = !lean_is_exclusive(x_32);
  if (x_68 == 0)
  {
  return x_32;
  }
  else
  {
  lean_object* x_69; lean_object* x_70; lean_object* x_71; 
  x_69 = lean_ctor_get(x_32, 0);
  x_70 = lean_ctor_get(x_32, 1);
  lean_inc(x_70);
  lean_inc(x_69);
  lean_dec(x_32);
  x_71 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_71, 0, x_69);
  lean_ctor_set(x_71, 1, x_70);
  return x_71;
  }
  }
  }
  else
  {
  lean_object* x_72; lean_object* x_73; 
  x_72 = lean_ctor_get(x_7, 1);
  lean_inc(x_72);
  lean_dec(x_7);
  lean_inc(x_12);
  lean_inc(x_28);
  x_73 = l_Lean_Meta_getLocalDecl(x_28, x_12, x_13, x_14, x_15, x_16);
  if (lean_obj_tag(x_73) == 0)
  {
  lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_74 = lean_ctor_get(x_73, 0);
  lean_inc(x_74);
  x_75 = lean_ctor_get(x_73, 1);
  lean_inc(x_75);
  lean_dec(x_73);
  x_76 = l_Lean_LocalDecl_type(x_74);
  lean_inc(x_15);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  x_77 = l_Lean_Meta_instantiateMVars(x_76, x_12, x_13, x_14, x_15, x_75);
  if (lean_obj_tag(x_77) == 0)
  {
  lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_78 = lean_ctor_get(x_77, 0);
  lean_inc(x_78);
  x_79 = lean_ctor_get(x_77, 1);
  lean_inc(x_79);
  lean_dec(x_77);
  x_80 = l_Lean_mkFVar(x_28);
  lean_inc(x_15);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_1);
  lean_inc(x_2);
  x_81 = l_Lean_Meta_simpStep(x_2, x_80, x_78, x_1, x_12, x_13, x_14, x_15, x_79);
  if (lean_obj_tag(x_81) == 0)
  {
  lean_object* x_82; 
  x_82 = lean_ctor_get(x_81, 0);
  lean_inc(x_82);
  if (lean_obj_tag(x_82) == 0)
  {
  lean_object* x_83; lean_object* x_84; lean_object* x_85; 
  lean_dec(x_74);
  x_83 = lean_ctor_get(x_81, 1);
  lean_inc(x_83);
  lean_dec(x_81);
  x_84 = lean_box(0);
  x_85 = l_Lean_Elab_Tactic_replaceMainGoal(x_84, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_83);
  if (lean_obj_tag(x_85) == 0)
  {
  lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; 
  x_86 = lean_ctor_get(x_85, 1);
  lean_inc(x_86);
  lean_dec(x_85);
  x_87 = l_List_forIn_loop___at_Lean_Elab_Term_Quotation_precheckIdent___spec__3___closed__1;
  x_88 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_88, 0, x_87);
  lean_ctor_set(x_88, 1, x_72);
  x_89 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_89, 0, x_88);
  x_17 = x_89;
  x_18 = x_86;
  goto block_25;
  }
  else
  {
  lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; 
  lean_dec(x_72);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_90 = lean_ctor_get(x_85, 0);
  lean_inc(x_90);
  x_91 = lean_ctor_get(x_85, 1);
  lean_inc(x_91);
  if (lean_is_exclusive(x_85)) {
   lean_ctor_release(x_85, 0);
   lean_ctor_release(x_85, 1);
   x_92 = x_85;
  } else {
   lean_dec_ref(x_85);
   x_92 = lean_box(0);
  }
  if (lean_is_scalar(x_92)) {
   x_93 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_93 = x_92;
  }
  lean_ctor_set(x_93, 0, x_90);
  lean_ctor_set(x_93, 1, x_91);
  return x_93;
  }
  }
  else
  {
  lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; 
  x_94 = lean_ctor_get(x_82, 0);
  lean_inc(x_94);
  lean_dec(x_82);
  x_95 = lean_ctor_get(x_81, 1);
  lean_inc(x_95);
  lean_dec(x_81);
  x_96 = lean_ctor_get(x_94, 0);
  lean_inc(x_96);
  x_97 = lean_ctor_get(x_94, 1);
  lean_inc(x_97);
  lean_dec(x_94);
  x_98 = l_Lean_LocalDecl_userName(x_74);
  lean_dec(x_74);
  x_99 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_99, 0, x_98);
  lean_ctor_set(x_99, 1, x_97);
  lean_ctor_set(x_99, 2, x_96);
  x_100 = lean_array_push(x_72, x_99);
  lean_inc(x_3);
  x_101 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_101, 0, x_3);
  lean_ctor_set(x_101, 1, x_100);
  x_102 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_102, 0, x_101);
  x_17 = x_102;
  x_18 = x_95;
  goto block_25;
  }
  }
  else
  {
  lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; 
  lean_dec(x_74);
  lean_dec(x_72);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_103 = lean_ctor_get(x_81, 0);
  lean_inc(x_103);
  x_104 = lean_ctor_get(x_81, 1);
  lean_inc(x_104);
  if (lean_is_exclusive(x_81)) {
   lean_ctor_release(x_81, 0);
   lean_ctor_release(x_81, 1);
   x_105 = x_81;
  } else {
   lean_dec_ref(x_81);
   x_105 = lean_box(0);
  }
  if (lean_is_scalar(x_105)) {
   x_106 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_106 = x_105;
  }
  lean_ctor_set(x_106, 0, x_103);
  lean_ctor_set(x_106, 1, x_104);
  return x_106;
  }
  }
  else
  {
  lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; 
  lean_dec(x_74);
  lean_dec(x_72);
  lean_dec(x_28);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_107 = lean_ctor_get(x_77, 0);
  lean_inc(x_107);
  x_108 = lean_ctor_get(x_77, 1);
  lean_inc(x_108);
  if (lean_is_exclusive(x_77)) {
   lean_ctor_release(x_77, 0);
   lean_ctor_release(x_77, 1);
   x_109 = x_77;
  } else {
   lean_dec_ref(x_77);
   x_109 = lean_box(0);
  }
  if (lean_is_scalar(x_109)) {
   x_110 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_110 = x_109;
  }
  lean_ctor_set(x_110, 0, x_107);
  lean_ctor_set(x_110, 1, x_108);
  return x_110;
  }
  }
  else
  {
  lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; 
  lean_dec(x_72);
  lean_dec(x_28);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_111 = lean_ctor_get(x_73, 0);
  lean_inc(x_111);
  x_112 = lean_ctor_get(x_73, 1);
  lean_inc(x_112);
  if (lean_is_exclusive(x_73)) {
   lean_ctor_release(x_73, 0);
   lean_ctor_release(x_73, 1);
   x_113 = x_73;
  } else {
   lean_dec_ref(x_73);
   x_113 = lean_box(0);
  }
  if (lean_is_scalar(x_113)) {
   x_114 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_114 = x_113;
  }
  lean_ctor_set(x_114, 0, x_111);
  lean_ctor_set(x_114, 1, x_112);
  return x_114;
  }
  }
  }
  block_25:
  {
  if (lean_obj_tag(x_17) == 0)
  {
  lean_object* x_19; lean_object* x_20; 
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_19 = lean_ctor_get(x_17, 0);
  lean_inc(x_19);
  lean_dec(x_17);
  x_20 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_20, 0, x_19);
  lean_ctor_set(x_20, 1, x_18);
  return x_20;
  }
  else
  {
  lean_object* x_21; size_t x_22; size_t x_23; 
  x_21 = lean_ctor_get(x_17, 0);
  lean_inc(x_21);
  lean_dec(x_17);
  x_22 = 1;
  x_23 = x_6 + x_22;
  x_6 = x_23;
  x_7 = x_21;
  x_16 = x_18;
  goto _start;
  }
  }
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp_go___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);
  x_14 = l_Lean_Meta_assertHypotheses(x_3, 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; lean_object* x_18; 
  x_15 = lean_ctor_get(x_14, 0);
  lean_inc(x_15);
  x_16 = lean_ctor_get(x_14, 1);
  lean_inc(x_16);
  lean_dec(x_14);
  x_17 = lean_ctor_get(x_15, 1);
  lean_inc(x_17);
  lean_dec(x_15);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_18 = l_Lean_Meta_tryClearMany(x_17, x_2, x_9, x_10, x_11, x_12, 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; 
  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_19);
  lean_ctor_set(x_22, 1, x_21);
  x_23 = l_Lean_Elab_Tactic_replaceMainGoal(x_22, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_20);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  return x_23;
  }
  else
  {
  uint8_t x_24; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  x_24 = !lean_is_exclusive(x_18);
  if (x_24 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_18, 0);
  x_26 = lean_ctor_get(x_18, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_18);
  x_27 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_27, 0, x_25);
  lean_ctor_set(x_27, 1, x_26);
  return x_27;
  }
  }
  }
  else
  {
  uint8_t x_28; 
  lean_dec(x_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_Lean_Elab_Tactic_evalSimp_go___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) {
  _start:
  {
  if (x_3 == 0)
  {
  lean_object* x_16; lean_object* x_17; 
  lean_dec(x_4);
  x_16 = lean_box(0);
  x_17 = l_Lean_Elab_Tactic_evalSimp_go___lambda__1(x_1, x_2, x_5, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15);
  return x_17;
  }
  else
  {
  lean_object* x_18; 
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_18 = l_Lean_Meta_simpTarget(x_5, x_4, x_11, x_12, x_13, x_14, x_15);
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_19; 
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  lean_dec(x_1);
  x_20 = lean_ctor_get(x_18, 1);
  lean_inc(x_20);
  lean_dec(x_18);
  x_21 = lean_box(0);
  x_22 = l_Lean_Elab_Tactic_replaceMainGoal(x_21, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_20);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  if (lean_obj_tag(x_22) == 0)
  {
  uint8_t x_23; 
  x_23 = !lean_is_exclusive(x_22);
  if (x_23 == 0)
  {
  lean_object* x_24; lean_object* x_25; 
  x_24 = lean_ctor_get(x_22, 0);
  lean_dec(x_24);
  x_25 = lean_box(0);
  lean_ctor_set(x_22, 0, x_25);
  return x_22;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_22, 1);
  lean_inc(x_26);
  lean_dec(x_22);
  x_27 = lean_box(0);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_27);
  lean_ctor_set(x_28, 1, x_26);
  return x_28;
  }
  }
  else
  {
  uint8_t x_29; 
  x_29 = !lean_is_exclusive(x_22);
  if (x_29 == 0)
  {
  return x_22;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_22, 0);
  x_31 = lean_ctor_get(x_22, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_22);
  x_32 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_32, 0, x_30);
  lean_ctor_set(x_32, 1, x_31);
  return x_32;
  }
  }
  }
  else
  {
  lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
  x_33 = lean_ctor_get(x_18, 1);
  lean_inc(x_33);
  lean_dec(x_18);
  x_34 = lean_ctor_get(x_19, 0);
  lean_inc(x_34);
  lean_dec(x_19);
  x_35 = lean_box(0);
  x_36 = l_Lean_Elab_Tactic_evalSimp_go___lambda__1(x_1, x_2, x_34, x_35, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_33);
  return x_36;
  }
  }
  else
  {
  uint8_t x_37; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_1);
  x_37 = !lean_is_exclusive(x_18);
  if (x_37 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_18, 0);
  x_39 = lean_ctor_get(x_18, 1);
  lean_inc(x_39);
  lean_inc(x_38);
  lean_dec(x_18);
  x_40 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_40, 0, x_38);
  lean_ctor_set(x_40, 1, x_39);
  return x_40;
  }
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Elab_Tactic_evalSimp_go___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Array_empty___closed__1;
  x_3 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp_go(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  lean_object* x_13; 
  x_13 = l_Lean_Elab_Tactic_getMainGoal(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, 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; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; 
  x_14 = lean_ctor_get(x_13, 0);
  lean_inc(x_14);
  x_15 = lean_ctor_get(x_13, 1);
  lean_inc(x_15);
  lean_dec(x_13);
  x_16 = lean_box(0);
  x_17 = lean_array_get_size(x_2);
  x_18 = lean_usize_of_nat(x_17);
  lean_dec(x_17);
  x_19 = 0;
  x_20 = l_Lean_Elab_Tactic_evalSimp_go___closed__1;
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_14);
  lean_inc(x_1);
  x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSimp_go___spec__1(x_1, x_14, x_16, x_2, x_18, x_19, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15);
  if (lean_obj_tag(x_21) == 0)
  {
  lean_object* x_22; lean_object* x_23; 
  x_22 = lean_ctor_get(x_21, 0);
  lean_inc(x_22);
  x_23 = lean_ctor_get(x_22, 0);
  lean_inc(x_23);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  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_box(0);
  x_27 = l_Lean_Elab_Tactic_evalSimp_go___lambda__2(x_25, x_2, x_3, x_1, x_14, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_24);
  return x_27;
  }
  else
  {
  uint8_t x_28; 
  lean_dec(x_22);
  lean_dec(x_14);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_1);
  x_28 = !lean_is_exclusive(x_21);
  if (x_28 == 0)
  {
  lean_object* x_29; lean_object* x_30; 
  x_29 = lean_ctor_get(x_21, 0);
  lean_dec(x_29);
  x_30 = lean_ctor_get(x_23, 0);
  lean_inc(x_30);
  lean_dec(x_23);
  lean_ctor_set(x_21, 0, x_30);
  return x_21;
  }
  else
  {
  lean_object* x_31; lean_object* x_32; lean_object* x_33; 
  x_31 = lean_ctor_get(x_21, 1);
  lean_inc(x_31);
  lean_dec(x_21);
  x_32 = lean_ctor_get(x_23, 0);
  lean_inc(x_32);
  lean_dec(x_23);
  x_33 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_33, 0, x_32);
  lean_ctor_set(x_33, 1, x_31);
  return x_33;
  }
  }
  }
  else
  {
  uint8_t x_34; 
  lean_dec(x_14);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_1);
  x_34 = !lean_is_exclusive(x_21);
  if (x_34 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  x_35 = lean_ctor_get(x_21, 0);
  x_36 = lean_ctor_get(x_21, 1);
  lean_inc(x_36);
  lean_inc(x_35);
  lean_dec(x_21);
  x_37 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_37, 0, x_35);
  lean_ctor_set(x_37, 1, x_36);
  return x_37;
  }
  }
  }
  else
  {
  uint8_t x_38; 
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_1);
  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;
  }
  }
  }
  }
  lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSimp_go___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) {
  _start:
  {
  size_t x_17; size_t x_18; lean_object* x_19; 
  x_17 = lean_unbox_usize(x_5);
  lean_dec(x_5);
  x_18 = lean_unbox_usize(x_6);
  lean_dec(x_6);
  x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSimp_go___spec__1(x_1, x_2, x_3, x_4, x_17, x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_4);
  return x_19;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp_go___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; 
  x_14 = l_Lean_Elab_Tactic_evalSimp_go___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);
  lean_dec(x_4);
  lean_dec(x_2);
  return x_14;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp_go___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) {
  _start:
  {
  uint8_t x_16; lean_object* x_17; 
  x_16 = lean_unbox(x_3);
  lean_dec(x_3);
  x_17 = l_Lean_Elab_Tactic_evalSimp_go___lambda__2(x_1, x_2, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_2);
  return x_17;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp_go___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:
  {
  uint8_t x_13; lean_object* x_14; 
  x_13 = lean_unbox(x_3);
  lean_dec(x_3);
  x_14 = l_Lean_Elab_Tactic_evalSimp_go(x_1, x_2, x_13, 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);
  lean_dec(x_2);
  return x_14;
  }
  }
  lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalSimp___spec__1(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; 
  x_13 = x_2 < x_1;
  if (x_13 == 0)
  {
  lean_object* x_14; lean_object* x_15; 
  lean_dec(x_8);
  x_14 = x_3;
  x_15 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_15, 0, x_14);
  lean_ctor_set(x_15, 1, x_12);
  return x_15;
  }
  else
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_16 = lean_array_uget(x_3, x_2);
  x_17 = lean_unsigned_to_nat(0u);
  x_18 = lean_array_uset(x_3, x_2, x_17);
  x_19 = x_16;
  lean_inc(x_8);
  x_20 = l_Lean_Meta_getLocalDeclFromUserName(x_19, x_8, x_9, x_10, x_11, x_12);
  if (lean_obj_tag(x_20) == 0)
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; lean_object* x_27; 
  x_21 = lean_ctor_get(x_20, 0);
  lean_inc(x_21);
  x_22 = lean_ctor_get(x_20, 1);
  lean_inc(x_22);
  lean_dec(x_20);
  x_23 = l_Lean_LocalDecl_fvarId(x_21);
  lean_dec(x_21);
  x_24 = 1;
  x_25 = x_2 + x_24;
  x_26 = x_23;
  x_27 = lean_array_uset(x_18, x_2, x_26);
  x_2 = x_25;
  x_3 = x_27;
  x_12 = x_22;
  goto _start;
  }
  else
  {
  uint8_t x_29; 
  lean_dec(x_18);
  lean_dec(x_8);
  x_29 = !lean_is_exclusive(x_20);
  if (x_29 == 0)
  {
  return x_20;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_20, 0);
  x_31 = lean_ctor_get(x_20, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_20);
  x_32 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_32, 0, x_30);
  lean_ctor_set(x_32, 1, x_31);
  return x_32;
  }
  }
  }
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  lean_object* x_12; 
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  x_12 = l_Lean_Meta_getNondepPropHyps(x_2, x_7, x_8, x_9, x_10, x_11);
  if (lean_obj_tag(x_12) == 0)
  {
  lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; 
  x_13 = lean_ctor_get(x_12, 0);
  lean_inc(x_13);
  x_14 = lean_ctor_get(x_12, 1);
  lean_inc(x_14);
  lean_dec(x_12);
  x_15 = 1;
  x_16 = l_Lean_Elab_Tactic_evalSimp_go(x_1, x_13, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14);
  lean_dec(x_13);
  return x_16;
  }
  else
  {
  uint8_t x_17; 
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_1);
  x_17 = !lean_is_exclusive(x_12);
  if (x_17 == 0)
  {
  return x_12;
  }
  else
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_18 = lean_ctor_get(x_12, 0);
  x_19 = lean_ctor_get(x_12, 1);
  lean_inc(x_19);
  lean_inc(x_18);
  lean_dec(x_12);
  x_20 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_20, 0, x_18);
  lean_ctor_set(x_20, 1, x_19);
  return x_20;
  }
  }
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp___lambda__2(lean_object* x_1, uint8_t 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_evalSimp_go(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;
  }
  }
  static lean_object* _init_l_Lean_Elab_Tactic_evalSimp___boxed__const__1() {
  _start:
  {
  size_t x_1; lean_object* x_2; 
  x_1 = 0;
  x_2 = lean_box_usize(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; lean_object* x_12; 
  x_11 = 0;
  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);
  x_12 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(x_1, x_11, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_12) == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_13 = lean_ctor_get(x_12, 0);
  lean_inc(x_13);
  x_14 = lean_ctor_get(x_12, 1);
  lean_inc(x_14);
  lean_dec(x_12);
  x_15 = lean_unsigned_to_nat(4u);
  x_16 = l_Lean_Syntax_getArg(x_1, x_15);
  x_17 = l_Lean_Elab_Tactic_expandOptLocation(x_16);
  lean_dec(x_16);
  if (lean_obj_tag(x_17) == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
  x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimp___lambda__1___boxed), 11, 1);
  lean_closure_set(x_18, 0, x_13);
  x_19 = l_Lean_Elab_Tactic_liftMetaMAtMain___rarg___closed__1;
  x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_focusAndDone___spec__1___rarg), 11, 2);
  lean_closure_set(x_20, 0, x_19);
  lean_closure_set(x_20, 1, x_18);
  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_14);
  return x_21;
  }
  else
  {
  lean_object* x_22; uint8_t x_23; lean_object* x_24; size_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
  x_22 = lean_ctor_get(x_17, 0);
  lean_inc(x_22);
  x_23 = lean_ctor_get_uint8(x_17, sizeof(void*)*1);
  lean_dec(x_17);
  x_24 = lean_array_get_size(x_22);
  x_25 = lean_usize_of_nat(x_24);
  lean_dec(x_24);
  x_26 = x_22;
  x_27 = lean_box_usize(x_25);
  x_28 = l_Lean_Elab_Tactic_evalSimp___boxed__const__1;
  x_29 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalSimp___spec__1___boxed), 12, 3);
  lean_closure_set(x_29, 0, x_27);
  lean_closure_set(x_29, 1, x_28);
  lean_closure_set(x_29, 2, x_26);
  x_30 = x_29;
  x_31 = lean_box(x_23);
  x_32 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimp___lambda__2___boxed), 12, 2);
  lean_closure_set(x_32, 0, x_13);
  lean_closure_set(x_32, 1, x_31);
  x_33 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_focusAndDone___spec__1___rarg), 11, 2);
  lean_closure_set(x_33, 0, x_30);
  lean_closure_set(x_33, 1, x_32);
  x_34 = l_Lean_Elab_Tactic_withMainContext___rarg(x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14);
  return x_34;
  }
  }
  else
  {
  uint8_t x_35; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_35 = !lean_is_exclusive(x_12);
  if (x_35 == 0)
  {
  return x_12;
  }
  else
  {
  lean_object* x_36; lean_object* x_37; lean_object* x_38; 
  x_36 = lean_ctor_get(x_12, 0);
  x_37 = lean_ctor_get(x_12, 1);
  lean_inc(x_37);
  lean_inc(x_36);
  lean_dec(x_12);
  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;
  }
  }
  }
  }
  lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalSimp___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  size_t x_13; size_t x_14; lean_object* x_15; 
  x_13 = lean_unbox_usize(x_1);
  lean_dec(x_1);
  x_14 = lean_unbox_usize(x_2);
  lean_dec(x_2);
  x_15 = l_Array_mapMUnsafe_map___at_Lean_Elab_Tactic_evalSimp___spec__1(x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_15;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
  _start:
  {
  lean_object* x_12; 
  x_12 = l_Lean_Elab_Tactic_evalSimp___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_12;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  uint8_t x_13; lean_object* x_14; 
  x_13 = lean_unbox(x_2);
  lean_dec(x_2);
  x_14 = l_Lean_Elab_Tactic_evalSimp___lambda__2(x_1, x_13, 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);
  lean_dec(x_3);
  return x_14;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimp___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_evalSimp(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_evalSimp___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimp___boxed), 10, 0);
  return x_1;
  }
  }
  lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp(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_simp___closed__2;
  x_4 = l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__1;
  x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1);
  return x_5;
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimpAll(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; lean_object* x_12; 
  x_11 = 1;
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_12 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_mkSimpContext(x_1, x_11, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  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);
  x_15 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  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_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_18 = l_Lean_Meta_simpAll(x_16, x_13, x_6, x_7, x_8, x_9, x_17);
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_19; 
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_20 = lean_ctor_get(x_18, 1);
  lean_inc(x_20);
  lean_dec(x_18);
  x_21 = lean_box(0);
  x_22 = l_Lean_Elab_Tactic_replaceMainGoal(x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20);
  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_22;
  }
  else
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_23 = lean_ctor_get(x_18, 1);
  lean_inc(x_23);
  lean_dec(x_18);
  x_24 = lean_ctor_get(x_19, 0);
  lean_inc(x_24);
  lean_dec(x_19);
  x_25 = lean_box(0);
  x_26 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_26, 0, x_24);
  lean_ctor_set(x_26, 1, x_25);
  x_27 = l_Lean_Elab_Tactic_replaceMainGoal(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23);
  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_27;
  }
  }
  else
  {
  uint8_t x_28; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_28 = !lean_is_exclusive(x_18);
  if (x_28 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_18, 0);
  x_30 = lean_ctor_get(x_18, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_18);
  x_31 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_31, 0, x_29);
  lean_ctor_set(x_31, 1, x_30);
  return x_31;
  }
  }
  }
  else
  {
  uint8_t x_32; 
  lean_dec(x_13);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_32 = !lean_is_exclusive(x_15);
  if (x_32 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_33; lean_object* x_34; lean_object* x_35; 
  x_33 = lean_ctor_get(x_15, 0);
  x_34 = lean_ctor_get(x_15, 1);
  lean_inc(x_34);
  lean_inc(x_33);
  lean_dec(x_15);
  x_35 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_35, 0, x_33);
  lean_ctor_set(x_35, 1, x_34);
  return x_35;
  }
  }
  }
  else
  {
  uint8_t x_36; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_36 = !lean_is_exclusive(x_12);
  if (x_36 == 0)
  {
  return x_12;
  }
  else
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  x_37 = lean_ctor_get(x_12, 0);
  x_38 = lean_ctor_get(x_12, 1);
  lean_inc(x_38);
  lean_inc(x_37);
  lean_dec(x_12);
  x_39 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_39, 0, x_37);
  lean_ctor_set(x_39, 1, x_38);
  return x_39;
  }
  }
  }
  }
  lean_object* l_Lean_Elab_Tactic_evalSimpAll___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_evalSimpAll(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_evalSimpAll___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalSimpAll___boxed), 10, 0);
  return x_1;
  }
  }
  lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll(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_simpAll___closed__2;
  x_4 = l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___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_Simp(lean_object*);
  lean_object* initialize_Lean_Elab_Tactic_Basic(lean_object*);
  lean_object* initialize_Lean_Elab_Tactic_ElabTerm(lean_object*);
  lean_object* initialize_Lean_Elab_Tactic_Location(lean_object*);
  lean_object* initialize_Lean_Meta_Tactic_Replace(lean_object*);
  lean_object* initialize_Lean_Elab_BuiltinNotation(lean_object*);
  static bool _G_initialized = false;
  lean_object* initialize_Lean_Elab_Tactic_Simp(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_Simp(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Elab_Tactic_Basic(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);
  res = initialize_Lean_Elab_Tactic_Location(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Meta_Tactic_Replace(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Elab_BuiltinNotation(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__1 = _init_l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__1();
  lean_mark_persistent(l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__1);
  l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__2 = _init_l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__2();
  lean_mark_persistent(l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__2);
  l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__3 = _init_l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__3();
  lean_mark_persistent(l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__3);
  l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__4 = _init_l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__4();
  lean_mark_persistent(l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__4);
  l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__5 = _init_l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__5();
  lean_mark_persistent(l_Lean_Elab_Tactic_evalSimpConfigUnsafe___closed__5);
  l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__1 = _init_l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__1();
  lean_mark_persistent(l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__1);
  l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2 = _init_l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2();
  lean_mark_persistent(l_Lean_Elab_Tactic_evalSimpConfigCtxUnsafe___closed__2);
  l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___closed__1 = _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___closed__1();
  lean_mark_persistent(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___closed__1);
  l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___closed__2 = _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___closed__2();
  lean_mark_persistent(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__2___closed__2);
  l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___closed__1 = _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___closed__1();
  lean_mark_persistent(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___closed__1);
  l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___closed__2 = _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___closed__2();
  lean_mark_persistent(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfig___spec__1___at_Lean_Elab_Tactic_elabSimpConfig___spec__3___closed__2);
  l_Lean_Elab_Tactic_elabSimpConfig___closed__1 = _init_l_Lean_Elab_Tactic_elabSimpConfig___closed__1();
  lean_mark_persistent(l_Lean_Elab_Tactic_elabSimpConfig___closed__1);
  l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___closed__1 = _init_l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___closed__1();
  lean_mark_persistent(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addSimpLemma___closed__1);
  l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__1 = _init_l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__1();
  lean_mark_persistent(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__1);
  l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__2 = _init_l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__2();
  lean_mark_persistent(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___closed__2);
  l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___boxed__const__1 = _init_l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___boxed__const__1();
  lean_mark_persistent(l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpLemmas___boxed__const__1);
  l_Lean_Elab_Tactic_evalSimp_go___closed__1 = _init_l_Lean_Elab_Tactic_evalSimp_go___closed__1();
  lean_mark_persistent(l_Lean_Elab_Tactic_evalSimp_go___closed__1);
  l_Lean_Elab_Tactic_evalSimp___boxed__const__1 = _init_l_Lean_Elab_Tactic_evalSimp___boxed__const__1();
  lean_mark_persistent(l_Lean_Elab_Tactic_evalSimp___boxed__const__1);
  l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__1();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalSimp___closed__1);
  res = l___regBuiltin_Lean_Elab_Tactic_evalSimp(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__1 = _init_l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__1();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__1);
  res = l___regBuiltin_Lean_Elab_Tactic_evalSimpAll(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
  