text: // Lean compiler output
  // Module: Lean.ParserCompiler
  // Imports: Init Lean.Util.ReplaceExpr Lean.Meta.Basic Lean.Meta.WHNF Lean.ParserCompiler.Attribute Lean.Parser.Extension
  #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_ParserCompiler_replaceParserTy___rarg___boxed(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__3(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__9___rarg___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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__37(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__35(lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__8___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__11___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__27(lean_object*);
  lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileCategoryParser___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__3___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__27___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_Syntax_strLitToAtom___closed__3;
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__41___rarg___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* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__17___rarg(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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__31___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__41(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_stringToMessageData(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__49___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* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__9(lean_object*);
  lean_object* l_Lean_throwError___at_Lean_Meta_whnf___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__33___rarg(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_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_nullKind;
  lean_object* l_Lean_ParserCompiler_compileCategoryParser_match__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__8___rarg___boxed(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*);
  uint8_t l_USize_decEq(size_t, size_t);
  lean_object* lean_array_uget(lean_object*, size_t);
  lean_object* lean_io_error_to_string(lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__1___rarg___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_ParserCompiler_compileParserExpr___rarg___lambda__45___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_expr_update_mdata(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__44(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__50(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_Parser_registerParserAttributeHook(lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__21(lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__36(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__46___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_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__18(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg(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_array_uset(lean_object*, size_t, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__20(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__26___rarg___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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__7___rarg___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_ParserCompiler_compileParserExpr___rarg___lambda__20(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__2(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__18___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__9;
  size_t l_USize_sub(size_t, size_t);
  lean_object* l_Lean_ParserCompiler_replaceParserTy(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__9___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* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2;
  lean_object* lean_st_ref_get(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_Context_tyName___rarg(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileCategoryParser_match__1(lean_object*);
  lean_object* l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__7___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__29(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__38___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_Expr_appFn_x21(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__37___rarg___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* l_Lean_getConstInfo___at_Lean_registerInitAttrUnsafe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1;
  lean_object* lean_array_push(lean_object*, lean_object*);
  lean_object* lean_array_get_size(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__12(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_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___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_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__17(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__4(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__13___rarg(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*);
  extern lean_object* l_Lean_Expr_getAppArgs___closed__1;
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__47(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__15(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__51___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_Core_instInhabitedCoreM___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_appArg_x21(lean_object*);
  extern lean_object* l_Lean_Parser_mkParserOfConstantUnsafe_match__1___rarg___closed__2;
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__9___rarg(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_ParserCompiler_compileParserExpr___rarg___lambda__44___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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__18(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__14(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__51(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg(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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__23___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__40(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__42(lean_object*);
  lean_object* lean_nat_add(lean_object*, lean_object*);
  lean_object* l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileEmbeddedParsers___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__30(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_ParserCompiler_compileCategoryParser___rarg___closed__1;
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__19___rarg___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_ParserCompiler_compileParserExpr___rarg___lambda__7___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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__39(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__12___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_ParserCompiler_compileCategoryParser___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__34(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__42(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__41___rarg(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_ParserCompiler_compileParserExpr___rarg___closed__3;
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__22___rarg(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* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__22(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__28(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_ParserCompiler_compileParserExpr___rarg___lambda__18___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* l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__2;
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__40___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* l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__14___rarg(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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__33___rarg___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* l_Lean_MessageData_toString(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__37___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__29___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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__33(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_ParserCompiler_compileParserExpr___rarg___lambda__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_nat_sub(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6;
  lean_object* l_Lean_ParserCompiler_Context_tyName(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__13(lean_object*);
  lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(lean_object*, size_t, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_CombinatorAttribute_setDeclFor(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__28(lean_object*);
  lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__13___rarg___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* l_Lean_ParserCompiler_compileParserExpr_match__5___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__16___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2;
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__20___rarg___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_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__39___rarg___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_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__12(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__2___rarg(lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_Meta_instMetaEvalMetaM___rarg___closed__1;
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__1;
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__30___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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__25___rarg(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_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__37(lean_object*);
  lean_object* lean_st_mk_ref(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2;
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__1___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__1(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__17___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_ParserCompiler_compileParserExpr_match__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__5;
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__29___rarg___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* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__23___rarg___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_ParserCompiler_compileParserExpr___rarg___lambda__15___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_ParserCompiler_compileParserExpr___rarg___lambda__14___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* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10;
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__17___rarg___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* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__31(lean_object*);
  extern lean_object* l_Lean_instInhabitedExpr;
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__4___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_Parser_mkParserOfConstantUnsafe_match__1___rarg___closed__1;
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__29(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__31___rarg___boxed(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_mkSimpleThunk___closed__1;
  lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__16___rarg___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_ParserCompiler_compileParserExpr___rarg___lambda__20___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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__2___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__33___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_ParserCompiler_compileParserExpr_match__6(lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__28___rarg___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_ParserCompiler_compileParserExpr___rarg___lambda__8___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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__32(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__25(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_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__9(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_ParserCompiler_compileParserExpr___rarg___lambda__36___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_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__34___rarg___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*);
  uint8_t l_Lean_Expr_Data_binderInfo(uint64_t);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__38(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__42___boxed(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_Lean_ConstantInfo_type(lean_object*);
  lean_object* l_Lean_ConstantInfo_value_x3f(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__22(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_ParserCompiler_compileParserExpr_match__2(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__40(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_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__30(lean_object*);
  lean_object* lean_expr_update_proj(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___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* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__34(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__23___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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__24___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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__50___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* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4(lean_object*);
  lean_object* l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__21___rarg(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_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__7;
  lean_object* l_Lean_Attribute_add(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
  size_t l_USize_mod(size_t, size_t);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__38___rarg___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_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__10(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__3;
  extern lean_object* l_Lean_Parser_evalParserConstUnsafe___closed__3;
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__27___rarg___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_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__10(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__48(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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__11___rarg___boxed(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_Syntax_mkApp___closed__1;
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__15___rarg___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_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__38___rarg(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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__5___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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__19(lean_object*);
  size_t lean_ptr_addr(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__30___rarg(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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__7(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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__24___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__28___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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__35___rarg___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_Expr_getAppNumArgsAux(lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__16(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__45(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_setEnv___at_Lean_Meta_addDefaultInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__42___rarg___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_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__37___rarg(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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__23(lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__40___rarg___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_ParserCompiler_compileParserExpr___rarg___lambda__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_ParserCompiler_compileParserExpr___rarg___lambda__47___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__35(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*);
  uint8_t lean_nat_dec_le(lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__18___rarg(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* l_Lean_ParserCompiler_compileParserExpr___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkApp(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__22___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_ParserCompiler_compileParserExpr___rarg___lambda__35___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* l_Lean_ParserCompiler_compileParserExpr(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__34___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* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  lean_object* l_Lean_Name_append(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__31___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_Environment_addAndCompile(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__3___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*);
  uint8_t l_Lean_Name_isAnonymous(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileCategoryParser(lean_object*);
  lean_object* lean_panic_fn(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__36(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__41___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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__15___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__4;
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__24(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__26(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__19___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* l_Lean_ParserCompiler_compileParserExpr_match__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__24(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_ParserCompiler_compileParserExpr___rarg___lambda__48___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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__40___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__19(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_ParserCompiler_compileParserExpr___rarg___lambda__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_Context_tyName___rarg___boxed(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__17(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_ParserCompiler_compileEmbeddedParsers_match__1(lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__28___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__22___rarg___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_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__30___rarg___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_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__34___rarg(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* l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3(lean_object*);
  lean_object* l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__7(lean_object*);
  lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__38(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_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*);
  lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__33(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__11;
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__5(lean_object*);
  lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_replaceParserTy___rarg(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__8(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__31(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__20___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__46(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_mk_array(lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__12___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__39___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* l_Lean_ParserCompiler_registerParserCompiler___rarg(lean_object*, lean_object*);
  uint8_t l_Lean_Expr_isOptParam(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__14___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__25___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_ParserCompiler_compileParserExpr___rarg___lambda__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__49(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__21___rarg___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* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__26(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__11(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__15(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__39___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_mk_syntax_ident(lean_object*);
  extern lean_object* l_Lean_Parser_evalParserConstUnsafe___closed__1;
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__19___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__39(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12;
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__26___rarg(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* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__13___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*);
  extern lean_object* l_Lean_mkOptionalNode___closed__2;
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__25(lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__35___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__14(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_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Expr_getAppFn(lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__24___rarg___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_ParserCompiler_compileParserExpr_match__1(lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__41(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__4___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8;
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__32___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Nat_min(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__43___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_ParserCompiler_registerParserCompiler___rarg___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
  lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__4(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_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__25___rarg___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*);
  extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1098____closed__15;
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__32___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__36___rarg___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_ParserCompiler_registerParserCompiler(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__43(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_mkConst(lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__42___rarg(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* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__10___rarg(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* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__32(lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__2___rarg___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_ParserCompiler_compileParserExpr___rarg___lambda__5(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__36___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__29___rarg(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_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__12___rarg___boxed(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_Expr_ReplaceImpl_initCache;
  uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
  lean_object* l_Lean_ParserCompiler_compileEmbeddedParsers(lean_object*);
  lean_object* l_Lean_ParserCompiler_compileEmbeddedParsers_match__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*, lean_object*);
  lean_object* l_Lean_ParserCompiler_Context_tyName___rarg(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; lean_object* x_4; 
  x_2 = lean_ctor_get(x_1, 1);
  x_3 = lean_ctor_get(x_2, 0);
  x_4 = lean_ctor_get(x_3, 3);
  lean_inc(x_4);
  return x_4;
  }
  }
  lean_object* l_Lean_ParserCompiler_Context_tyName(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_Context_tyName___rarg___boxed), 1, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_ParserCompiler_Context_tyName___rarg___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_233; lean_object* x_234; size_t x_235; uint8_t x_236; 
  x_5 = lean_ptr_addr(x_3);
  x_6 = x_2 == 0 ? 0 : x_5 % x_2;
  x_233 = lean_ctor_get(x_4, 0);
  lean_inc(x_233);
  x_234 = lean_array_uget(x_233, x_6);
  x_235 = lean_ptr_addr(x_234);
  lean_dec(x_234);
  x_236 = x_235 == x_5;
  if (x_236 == 0)
  {
  uint8_t x_237; 
  x_237 = l_Lean_Expr_isOptParam(x_3);
  if (x_237 == 0)
  {
  lean_object* x_238; uint8_t x_239; 
  x_238 = l_Lean_Parser_evalParserConstUnsafe___closed__1;
  x_239 = l_Lean_Expr_isConstOf(x_3, x_238);
  if (x_239 == 0)
  {
  lean_object* x_240; 
  lean_dec(x_233);
  x_240 = lean_box(0);
  x_7 = x_240;
  goto block_232;
  }
  else
  {
  lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
  x_241 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_242 = lean_box(0);
  x_243 = l_Lean_mkConst(x_241, x_242);
  x_244 = lean_array_uset(x_233, x_6, x_3);
  x_245 = lean_ctor_get(x_4, 1);
  lean_inc(x_245);
  lean_dec(x_4);
  lean_inc(x_243);
  x_246 = lean_array_uset(x_245, x_6, x_243);
  x_247 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_247, 0, x_244);
  lean_ctor_set(x_247, 1, x_246);
  x_248 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_248, 0, x_243);
  lean_ctor_set(x_248, 1, x_247);
  return x_248;
  }
  }
  else
  {
  lean_object* x_249; lean_object* x_250; lean_object* x_251; uint8_t x_252; 
  x_249 = l_Lean_Expr_appFn_x21(x_3);
  x_250 = l_Lean_Expr_appArg_x21(x_249);
  lean_dec(x_249);
  x_251 = l_Lean_Parser_evalParserConstUnsafe___closed__1;
  x_252 = l_Lean_Expr_isConstOf(x_250, x_251);
  lean_dec(x_250);
  if (x_252 == 0)
  {
  lean_object* x_253; 
  lean_dec(x_233);
  x_253 = lean_box(0);
  x_7 = x_253;
  goto block_232;
  }
  else
  {
  lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; 
  x_254 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_255 = lean_box(0);
  x_256 = l_Lean_mkConst(x_254, x_255);
  x_257 = lean_array_uset(x_233, x_6, x_3);
  x_258 = lean_ctor_get(x_4, 1);
  lean_inc(x_258);
  lean_dec(x_4);
  lean_inc(x_256);
  x_259 = lean_array_uset(x_258, x_6, x_256);
  x_260 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_260, 0, x_257);
  lean_ctor_set(x_260, 1, x_259);
  x_261 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_261, 0, x_256);
  lean_ctor_set(x_261, 1, x_260);
  return x_261;
  }
  }
  }
  else
  {
  lean_object* x_262; lean_object* x_263; lean_object* x_264; 
  lean_dec(x_233);
  lean_dec(x_3);
  x_262 = lean_ctor_get(x_4, 1);
  lean_inc(x_262);
  x_263 = lean_array_uget(x_262, x_6);
  lean_dec(x_262);
  x_264 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_264, 0, x_263);
  lean_ctor_set(x_264, 1, x_4);
  return x_264;
  }
  block_232:
  {
  lean_dec(x_7);
  switch (lean_obj_tag(x_3)) {
  case 5:
  {
  lean_object* x_8; lean_object* x_9; uint64_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
  x_8 = lean_ctor_get(x_3, 0);
  lean_inc(x_8);
  x_9 = lean_ctor_get(x_3, 1);
  lean_inc(x_9);
  x_10 = lean_ctor_get_uint64(x_3, sizeof(void*)*2);
  lean_inc(x_8);
  x_11 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_2, x_8, x_4);
  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);
  lean_inc(x_9);
  x_14 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_2, x_9, x_13);
  x_15 = !lean_is_exclusive(x_14);
  if (x_15 == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
  x_16 = lean_ctor_get(x_14, 0);
  x_17 = lean_ctor_get(x_14, 1);
  x_18 = lean_ctor_get(x_17, 0);
  lean_inc(x_18);
  lean_inc(x_3);
  x_19 = lean_array_uset(x_18, x_6, x_3);
  x_20 = !lean_is_exclusive(x_3);
  if (x_20 == 0)
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_21 = lean_ctor_get(x_3, 1);
  lean_dec(x_21);
  x_22 = lean_ctor_get(x_3, 0);
  lean_dec(x_22);
  x_23 = lean_ctor_get(x_17, 1);
  lean_inc(x_23);
  lean_dec(x_17);
  x_24 = lean_expr_update_app(x_3, x_12, x_16);
  lean_inc(x_24);
  x_25 = lean_array_uset(x_23, x_6, x_24);
  x_26 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_26, 0, x_19);
  lean_ctor_set(x_26, 1, x_25);
  lean_ctor_set(x_14, 1, x_26);
  lean_ctor_set(x_14, 0, x_24);
  return x_14;
  }
  else
  {
  lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  lean_dec(x_3);
  x_27 = lean_ctor_get(x_17, 1);
  lean_inc(x_27);
  lean_dec(x_17);
  x_28 = lean_alloc_ctor(5, 2, 8);
  lean_ctor_set(x_28, 0, x_8);
  lean_ctor_set(x_28, 1, x_9);
  lean_ctor_set_uint64(x_28, sizeof(void*)*2, x_10);
  x_29 = lean_expr_update_app(x_28, x_12, x_16);
  lean_inc(x_29);
  x_30 = lean_array_uset(x_27, x_6, x_29);
  x_31 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_31, 0, x_19);
  lean_ctor_set(x_31, 1, x_30);
  lean_ctor_set(x_14, 1, x_31);
  lean_ctor_set(x_14, 0, x_29);
  return x_14;
  }
  }
  else
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
  x_32 = lean_ctor_get(x_14, 0);
  x_33 = lean_ctor_get(x_14, 1);
  lean_inc(x_33);
  lean_inc(x_32);
  lean_dec(x_14);
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  lean_inc(x_3);
  x_35 = lean_array_uset(x_34, x_6, x_3);
  if (lean_is_exclusive(x_3)) {
   lean_ctor_release(x_3, 0);
   lean_ctor_release(x_3, 1);
   x_36 = x_3;
  } else {
   lean_dec_ref(x_3);
   x_36 = lean_box(0);
  }
  x_37 = lean_ctor_get(x_33, 1);
  lean_inc(x_37);
  lean_dec(x_33);
  if (lean_is_scalar(x_36)) {
   x_38 = lean_alloc_ctor(5, 2, 8);
  } else {
   x_38 = x_36;
  }
  lean_ctor_set(x_38, 0, x_8);
  lean_ctor_set(x_38, 1, x_9);
  lean_ctor_set_uint64(x_38, sizeof(void*)*2, x_10);
  x_39 = lean_expr_update_app(x_38, x_12, x_32);
  lean_inc(x_39);
  x_40 = lean_array_uset(x_37, x_6, x_39);
  x_41 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_41, 0, x_35);
  lean_ctor_set(x_41, 1, x_40);
  x_42 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_42, 0, x_39);
  lean_ctor_set(x_42, 1, x_41);
  return x_42;
  }
  }
  case 6:
  {
  lean_object* x_43; lean_object* x_44; lean_object* x_45; uint64_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; 
  x_43 = lean_ctor_get(x_3, 0);
  lean_inc(x_43);
  x_44 = lean_ctor_get(x_3, 1);
  lean_inc(x_44);
  x_45 = lean_ctor_get(x_3, 2);
  lean_inc(x_45);
  x_46 = lean_ctor_get_uint64(x_3, sizeof(void*)*3);
  lean_inc(x_44);
  x_47 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_2, x_44, x_4);
  x_48 = lean_ctor_get(x_47, 0);
  lean_inc(x_48);
  x_49 = lean_ctor_get(x_47, 1);
  lean_inc(x_49);
  lean_dec(x_47);
  lean_inc(x_45);
  x_50 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_2, x_45, x_49);
  x_51 = !lean_is_exclusive(x_50);
  if (x_51 == 0)
  {
  lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; 
  x_52 = lean_ctor_get(x_50, 0);
  x_53 = lean_ctor_get(x_50, 1);
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  lean_inc(x_3);
  x_55 = lean_array_uset(x_54, x_6, x_3);
  x_56 = !lean_is_exclusive(x_3);
  if (x_56 == 0)
  {
  lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_57 = lean_ctor_get(x_3, 2);
  lean_dec(x_57);
  x_58 = lean_ctor_get(x_3, 1);
  lean_dec(x_58);
  x_59 = lean_ctor_get(x_3, 0);
  lean_dec(x_59);
  x_60 = lean_ctor_get(x_53, 1);
  lean_inc(x_60);
  lean_dec(x_53);
  x_61 = (uint8_t)((x_46 << 24) >> 61);
  x_62 = lean_expr_update_lambda(x_3, x_61, x_48, x_52);
  lean_inc(x_62);
  x_63 = lean_array_uset(x_60, x_6, x_62);
  x_64 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_64, 0, x_55);
  lean_ctor_set(x_64, 1, x_63);
  lean_ctor_set(x_50, 1, x_64);
  lean_ctor_set(x_50, 0, x_62);
  return x_50;
  }
  else
  {
  lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; 
  lean_dec(x_3);
  x_65 = lean_ctor_get(x_53, 1);
  lean_inc(x_65);
  lean_dec(x_53);
  x_66 = lean_alloc_ctor(6, 3, 8);
  lean_ctor_set(x_66, 0, x_43);
  lean_ctor_set(x_66, 1, x_44);
  lean_ctor_set(x_66, 2, x_45);
  lean_ctor_set_uint64(x_66, sizeof(void*)*3, x_46);
  x_67 = (uint8_t)((x_46 << 24) >> 61);
  x_68 = lean_expr_update_lambda(x_66, x_67, x_48, x_52);
  lean_inc(x_68);
  x_69 = lean_array_uset(x_65, x_6, x_68);
  x_70 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_70, 0, x_55);
  lean_ctor_set(x_70, 1, x_69);
  lean_ctor_set(x_50, 1, x_70);
  lean_ctor_set(x_50, 0, x_68);
  return x_50;
  }
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  x_73 = lean_ctor_get(x_72, 0);
  lean_inc(x_73);
  lean_inc(x_3);
  x_74 = lean_array_uset(x_73, x_6, x_3);
  if (lean_is_exclusive(x_3)) {
   lean_ctor_release(x_3, 0);
   lean_ctor_release(x_3, 1);
   lean_ctor_release(x_3, 2);
   x_75 = x_3;
  } else {
   lean_dec_ref(x_3);
   x_75 = lean_box(0);
  }
  x_76 = lean_ctor_get(x_72, 1);
  lean_inc(x_76);
  lean_dec(x_72);
  if (lean_is_scalar(x_75)) {
   x_77 = lean_alloc_ctor(6, 3, 8);
  } else {
   x_77 = x_75;
  }
  lean_ctor_set(x_77, 0, x_43);
  lean_ctor_set(x_77, 1, x_44);
  lean_ctor_set(x_77, 2, x_45);
  lean_ctor_set_uint64(x_77, sizeof(void*)*3, x_46);
  x_78 = (uint8_t)((x_46 << 24) >> 61);
  x_79 = lean_expr_update_lambda(x_77, x_78, x_48, x_71);
  lean_inc(x_79);
  x_80 = lean_array_uset(x_76, x_6, x_79);
  x_81 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_81, 0, x_74);
  lean_ctor_set(x_81, 1, x_80);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_79);
  lean_ctor_set(x_82, 1, x_81);
  return x_82;
  }
  }
  case 7:
  {
  lean_object* x_83; lean_object* x_84; lean_object* x_85; uint64_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; 
  x_83 = lean_ctor_get(x_3, 0);
  lean_inc(x_83);
  x_84 = lean_ctor_get(x_3, 1);
  lean_inc(x_84);
  x_85 = lean_ctor_get(x_3, 2);
  lean_inc(x_85);
  x_86 = lean_ctor_get_uint64(x_3, sizeof(void*)*3);
  lean_inc(x_84);
  x_87 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_2, x_84, x_4);
  x_88 = lean_ctor_get(x_87, 0);
  lean_inc(x_88);
  x_89 = lean_ctor_get(x_87, 1);
  lean_inc(x_89);
  lean_dec(x_87);
  lean_inc(x_85);
  x_90 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_2, x_85, x_89);
  x_91 = !lean_is_exclusive(x_90);
  if (x_91 == 0)
  {
  lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
  x_92 = lean_ctor_get(x_90, 0);
  x_93 = lean_ctor_get(x_90, 1);
  x_94 = lean_ctor_get(x_93, 0);
  lean_inc(x_94);
  lean_inc(x_3);
  x_95 = lean_array_uset(x_94, x_6, x_3);
  x_96 = !lean_is_exclusive(x_3);
  if (x_96 == 0)
  {
  lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
  x_97 = lean_ctor_get(x_3, 2);
  lean_dec(x_97);
  x_98 = lean_ctor_get(x_3, 1);
  lean_dec(x_98);
  x_99 = lean_ctor_get(x_3, 0);
  lean_dec(x_99);
  x_100 = lean_ctor_get(x_93, 1);
  lean_inc(x_100);
  lean_dec(x_93);
  x_101 = (uint8_t)((x_86 << 24) >> 61);
  x_102 = lean_expr_update_forall(x_3, x_101, x_88, x_92);
  lean_inc(x_102);
  x_103 = lean_array_uset(x_100, x_6, x_102);
  x_104 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_104, 0, x_95);
  lean_ctor_set(x_104, 1, x_103);
  lean_ctor_set(x_90, 1, x_104);
  lean_ctor_set(x_90, 0, x_102);
  return x_90;
  }
  else
  {
  lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; 
  lean_dec(x_3);
  x_105 = lean_ctor_get(x_93, 1);
  lean_inc(x_105);
  lean_dec(x_93);
  x_106 = lean_alloc_ctor(7, 3, 8);
  lean_ctor_set(x_106, 0, x_83);
  lean_ctor_set(x_106, 1, x_84);
  lean_ctor_set(x_106, 2, x_85);
  lean_ctor_set_uint64(x_106, sizeof(void*)*3, x_86);
  x_107 = (uint8_t)((x_86 << 24) >> 61);
  x_108 = lean_expr_update_forall(x_106, x_107, x_88, x_92);
  lean_inc(x_108);
  x_109 = lean_array_uset(x_105, x_6, x_108);
  x_110 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_110, 0, x_95);
  lean_ctor_set(x_110, 1, x_109);
  lean_ctor_set(x_90, 1, x_110);
  lean_ctor_set(x_90, 0, x_108);
  return x_90;
  }
  }
  else
  {
  lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; 
  x_111 = lean_ctor_get(x_90, 0);
  x_112 = lean_ctor_get(x_90, 1);
  lean_inc(x_112);
  lean_inc(x_111);
  lean_dec(x_90);
  x_113 = lean_ctor_get(x_112, 0);
  lean_inc(x_113);
  lean_inc(x_3);
  x_114 = lean_array_uset(x_113, x_6, x_3);
  if (lean_is_exclusive(x_3)) {
   lean_ctor_release(x_3, 0);
   lean_ctor_release(x_3, 1);
   lean_ctor_release(x_3, 2);
   x_115 = x_3;
  } else {
   lean_dec_ref(x_3);
   x_115 = lean_box(0);
  }
  x_116 = lean_ctor_get(x_112, 1);
  lean_inc(x_116);
  lean_dec(x_112);
  if (lean_is_scalar(x_115)) {
   x_117 = lean_alloc_ctor(7, 3, 8);
  } else {
   x_117 = x_115;
  }
  lean_ctor_set(x_117, 0, x_83);
  lean_ctor_set(x_117, 1, x_84);
  lean_ctor_set(x_117, 2, x_85);
  lean_ctor_set_uint64(x_117, sizeof(void*)*3, x_86);
  x_118 = (uint8_t)((x_86 << 24) >> 61);
  x_119 = lean_expr_update_forall(x_117, x_118, x_88, x_111);
  lean_inc(x_119);
  x_120 = lean_array_uset(x_116, x_6, x_119);
  x_121 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_121, 0, x_114);
  lean_ctor_set(x_121, 1, x_120);
  x_122 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_122, 0, x_119);
  lean_ctor_set(x_122, 1, x_121);
  return x_122;
  }
  }
  case 8:
  {
  lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; uint64_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; 
  x_123 = lean_ctor_get(x_3, 0);
  lean_inc(x_123);
  x_124 = lean_ctor_get(x_3, 1);
  lean_inc(x_124);
  x_125 = lean_ctor_get(x_3, 2);
  lean_inc(x_125);
  x_126 = lean_ctor_get(x_3, 3);
  lean_inc(x_126);
  x_127 = lean_ctor_get_uint64(x_3, sizeof(void*)*4);
  lean_inc(x_124);
  x_128 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_2, x_124, x_4);
  x_129 = lean_ctor_get(x_128, 0);
  lean_inc(x_129);
  x_130 = lean_ctor_get(x_128, 1);
  lean_inc(x_130);
  lean_dec(x_128);
  lean_inc(x_125);
  x_131 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_2, x_125, x_130);
  x_132 = lean_ctor_get(x_131, 0);
  lean_inc(x_132);
  x_133 = lean_ctor_get(x_131, 1);
  lean_inc(x_133);
  lean_dec(x_131);
  lean_inc(x_126);
  x_134 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_2, x_126, x_133);
  x_135 = !lean_is_exclusive(x_134);
  if (x_135 == 0)
  {
  lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; 
  x_136 = lean_ctor_get(x_134, 0);
  x_137 = lean_ctor_get(x_134, 1);
  x_138 = lean_ctor_get(x_137, 0);
  lean_inc(x_138);
  lean_inc(x_3);
  x_139 = lean_array_uset(x_138, x_6, x_3);
  x_140 = !lean_is_exclusive(x_3);
  if (x_140 == 0)
  {
  lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
  x_141 = lean_ctor_get(x_3, 3);
  lean_dec(x_141);
  x_142 = lean_ctor_get(x_3, 2);
  lean_dec(x_142);
  x_143 = lean_ctor_get(x_3, 1);
  lean_dec(x_143);
  x_144 = lean_ctor_get(x_3, 0);
  lean_dec(x_144);
  x_145 = lean_ctor_get(x_137, 1);
  lean_inc(x_145);
  lean_dec(x_137);
  x_146 = lean_expr_update_let(x_3, x_129, x_132, x_136);
  lean_inc(x_146);
  x_147 = lean_array_uset(x_145, x_6, x_146);
  x_148 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_148, 0, x_139);
  lean_ctor_set(x_148, 1, x_147);
  lean_ctor_set(x_134, 1, x_148);
  lean_ctor_set(x_134, 0, x_146);
  return x_134;
  }
  else
  {
  lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; 
  lean_dec(x_3);
  x_149 = lean_ctor_get(x_137, 1);
  lean_inc(x_149);
  lean_dec(x_137);
  x_150 = lean_alloc_ctor(8, 4, 8);
  lean_ctor_set(x_150, 0, x_123);
  lean_ctor_set(x_150, 1, x_124);
  lean_ctor_set(x_150, 2, x_125);
  lean_ctor_set(x_150, 3, x_126);
  lean_ctor_set_uint64(x_150, sizeof(void*)*4, x_127);
  x_151 = lean_expr_update_let(x_150, x_129, x_132, x_136);
  lean_inc(x_151);
  x_152 = lean_array_uset(x_149, x_6, x_151);
  x_153 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_153, 0, x_139);
  lean_ctor_set(x_153, 1, x_152);
  lean_ctor_set(x_134, 1, x_153);
  lean_ctor_set(x_134, 0, x_151);
  return x_134;
  }
  }
  else
  {
  lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; 
  x_154 = lean_ctor_get(x_134, 0);
  x_155 = lean_ctor_get(x_134, 1);
  lean_inc(x_155);
  lean_inc(x_154);
  lean_dec(x_134);
  x_156 = lean_ctor_get(x_155, 0);
  lean_inc(x_156);
  lean_inc(x_3);
  x_157 = lean_array_uset(x_156, x_6, x_3);
  if (lean_is_exclusive(x_3)) {
   lean_ctor_release(x_3, 0);
   lean_ctor_release(x_3, 1);
   lean_ctor_release(x_3, 2);
   lean_ctor_release(x_3, 3);
   x_158 = x_3;
  } else {
   lean_dec_ref(x_3);
   x_158 = lean_box(0);
  }
  x_159 = lean_ctor_get(x_155, 1);
  lean_inc(x_159);
  lean_dec(x_155);
  if (lean_is_scalar(x_158)) {
   x_160 = lean_alloc_ctor(8, 4, 8);
  } else {
   x_160 = x_158;
  }
  lean_ctor_set(x_160, 0, x_123);
  lean_ctor_set(x_160, 1, x_124);
  lean_ctor_set(x_160, 2, x_125);
  lean_ctor_set(x_160, 3, x_126);
  lean_ctor_set_uint64(x_160, sizeof(void*)*4, x_127);
  x_161 = lean_expr_update_let(x_160, x_129, x_132, x_154);
  lean_inc(x_161);
  x_162 = lean_array_uset(x_159, x_6, x_161);
  x_163 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_163, 0, x_157);
  lean_ctor_set(x_163, 1, x_162);
  x_164 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_164, 0, x_161);
  lean_ctor_set(x_164, 1, x_163);
  return x_164;
  }
  }
  case 10:
  {
  lean_object* x_165; lean_object* x_166; uint64_t x_167; lean_object* x_168; uint8_t x_169; 
  x_165 = lean_ctor_get(x_3, 0);
  lean_inc(x_165);
  x_166 = lean_ctor_get(x_3, 1);
  lean_inc(x_166);
  x_167 = lean_ctor_get_uint64(x_3, sizeof(void*)*2);
  lean_inc(x_166);
  x_168 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_2, x_166, x_4);
  x_169 = !lean_is_exclusive(x_168);
  if (x_169 == 0)
  {
  lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; 
  x_170 = lean_ctor_get(x_168, 0);
  x_171 = lean_ctor_get(x_168, 1);
  x_172 = lean_ctor_get(x_171, 0);
  lean_inc(x_172);
  lean_inc(x_3);
  x_173 = lean_array_uset(x_172, x_6, x_3);
  x_174 = !lean_is_exclusive(x_3);
  if (x_174 == 0)
  {
  lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; 
  x_175 = lean_ctor_get(x_3, 1);
  lean_dec(x_175);
  x_176 = lean_ctor_get(x_3, 0);
  lean_dec(x_176);
  x_177 = lean_ctor_get(x_171, 1);
  lean_inc(x_177);
  lean_dec(x_171);
  x_178 = lean_expr_update_mdata(x_3, x_170);
  lean_inc(x_178);
  x_179 = lean_array_uset(x_177, x_6, x_178);
  x_180 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_180, 0, x_173);
  lean_ctor_set(x_180, 1, x_179);
  lean_ctor_set(x_168, 1, x_180);
  lean_ctor_set(x_168, 0, x_178);
  return x_168;
  }
  else
  {
  lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; 
  lean_dec(x_3);
  x_181 = lean_ctor_get(x_171, 1);
  lean_inc(x_181);
  lean_dec(x_171);
  x_182 = lean_alloc_ctor(10, 2, 8);
  lean_ctor_set(x_182, 0, x_165);
  lean_ctor_set(x_182, 1, x_166);
  lean_ctor_set_uint64(x_182, sizeof(void*)*2, x_167);
  x_183 = lean_expr_update_mdata(x_182, x_170);
  lean_inc(x_183);
  x_184 = lean_array_uset(x_181, x_6, x_183);
  x_185 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_185, 0, x_173);
  lean_ctor_set(x_185, 1, x_184);
  lean_ctor_set(x_168, 1, x_185);
  lean_ctor_set(x_168, 0, x_183);
  return x_168;
  }
  }
  else
  {
  lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; 
  x_186 = lean_ctor_get(x_168, 0);
  x_187 = lean_ctor_get(x_168, 1);
  lean_inc(x_187);
  lean_inc(x_186);
  lean_dec(x_168);
  x_188 = lean_ctor_get(x_187, 0);
  lean_inc(x_188);
  lean_inc(x_3);
  x_189 = lean_array_uset(x_188, x_6, x_3);
  if (lean_is_exclusive(x_3)) {
   lean_ctor_release(x_3, 0);
   lean_ctor_release(x_3, 1);
   x_190 = x_3;
  } else {
   lean_dec_ref(x_3);
   x_190 = lean_box(0);
  }
  x_191 = lean_ctor_get(x_187, 1);
  lean_inc(x_191);
  lean_dec(x_187);
  if (lean_is_scalar(x_190)) {
   x_192 = lean_alloc_ctor(10, 2, 8);
  } else {
   x_192 = x_190;
  }
  lean_ctor_set(x_192, 0, x_165);
  lean_ctor_set(x_192, 1, x_166);
  lean_ctor_set_uint64(x_192, sizeof(void*)*2, x_167);
  x_193 = lean_expr_update_mdata(x_192, x_186);
  lean_inc(x_193);
  x_194 = lean_array_uset(x_191, x_6, x_193);
  x_195 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_195, 0, x_189);
  lean_ctor_set(x_195, 1, x_194);
  x_196 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_196, 0, x_193);
  lean_ctor_set(x_196, 1, x_195);
  return x_196;
  }
  }
  case 11:
  {
  lean_object* x_197; lean_object* x_198; lean_object* x_199; uint64_t x_200; lean_object* x_201; uint8_t x_202; 
  x_197 = lean_ctor_get(x_3, 0);
  lean_inc(x_197);
  x_198 = lean_ctor_get(x_3, 1);
  lean_inc(x_198);
  x_199 = lean_ctor_get(x_3, 2);
  lean_inc(x_199);
  x_200 = lean_ctor_get_uint64(x_3, sizeof(void*)*3);
  lean_inc(x_199);
  x_201 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_2, x_199, x_4);
  x_202 = !lean_is_exclusive(x_201);
  if (x_202 == 0)
  {
  lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; 
  x_203 = lean_ctor_get(x_201, 0);
  x_204 = lean_ctor_get(x_201, 1);
  x_205 = lean_ctor_get(x_204, 0);
  lean_inc(x_205);
  lean_inc(x_3);
  x_206 = lean_array_uset(x_205, x_6, x_3);
  x_207 = !lean_is_exclusive(x_3);
  if (x_207 == 0)
  {
  lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; 
  x_208 = lean_ctor_get(x_3, 2);
  lean_dec(x_208);
  x_209 = lean_ctor_get(x_3, 1);
  lean_dec(x_209);
  x_210 = lean_ctor_get(x_3, 0);
  lean_dec(x_210);
  x_211 = lean_ctor_get(x_204, 1);
  lean_inc(x_211);
  lean_dec(x_204);
  x_212 = lean_expr_update_proj(x_3, x_203);
  lean_inc(x_212);
  x_213 = lean_array_uset(x_211, x_6, x_212);
  x_214 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_214, 0, x_206);
  lean_ctor_set(x_214, 1, x_213);
  lean_ctor_set(x_201, 1, x_214);
  lean_ctor_set(x_201, 0, x_212);
  return x_201;
  }
  else
  {
  lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
  lean_dec(x_3);
  x_215 = lean_ctor_get(x_204, 1);
  lean_inc(x_215);
  lean_dec(x_204);
  x_216 = lean_alloc_ctor(11, 3, 8);
  lean_ctor_set(x_216, 0, x_197);
  lean_ctor_set(x_216, 1, x_198);
  lean_ctor_set(x_216, 2, x_199);
  lean_ctor_set_uint64(x_216, sizeof(void*)*3, x_200);
  x_217 = lean_expr_update_proj(x_216, x_203);
  lean_inc(x_217);
  x_218 = lean_array_uset(x_215, x_6, x_217);
  x_219 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_219, 0, x_206);
  lean_ctor_set(x_219, 1, x_218);
  lean_ctor_set(x_201, 1, x_219);
  lean_ctor_set(x_201, 0, x_217);
  return x_201;
  }
  }
  else
  {
  lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; 
  x_220 = lean_ctor_get(x_201, 0);
  x_221 = lean_ctor_get(x_201, 1);
  lean_inc(x_221);
  lean_inc(x_220);
  lean_dec(x_201);
  x_222 = lean_ctor_get(x_221, 0);
  lean_inc(x_222);
  lean_inc(x_3);
  x_223 = lean_array_uset(x_222, x_6, x_3);
  if (lean_is_exclusive(x_3)) {
   lean_ctor_release(x_3, 0);
   lean_ctor_release(x_3, 1);
   lean_ctor_release(x_3, 2);
   x_224 = x_3;
  } else {
   lean_dec_ref(x_3);
   x_224 = lean_box(0);
  }
  x_225 = lean_ctor_get(x_221, 1);
  lean_inc(x_225);
  lean_dec(x_221);
  if (lean_is_scalar(x_224)) {
   x_226 = lean_alloc_ctor(11, 3, 8);
  } else {
   x_226 = x_224;
  }
  lean_ctor_set(x_226, 0, x_197);
  lean_ctor_set(x_226, 1, x_198);
  lean_ctor_set(x_226, 2, x_199);
  lean_ctor_set_uint64(x_226, sizeof(void*)*3, x_200);
  x_227 = lean_expr_update_proj(x_226, x_220);
  lean_inc(x_227);
  x_228 = lean_array_uset(x_225, x_6, x_227);
  x_229 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_229, 0, x_223);
  lean_ctor_set(x_229, 1, x_228);
  x_230 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_230, 0, x_227);
  lean_ctor_set(x_230, 1, x_229);
  return x_230;
  }
  }
  default: 
  {
  lean_object* x_231; 
  x_231 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_231, 0, x_3);
  lean_ctor_set(x_231, 1, x_4);
  return x_231;
  }
  }
  }
  }
  }
  lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___boxed), 4, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_ParserCompiler_replaceParserTy___rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  size_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_3 = 8192;
  x_4 = l_Lean_Expr_ReplaceImpl_initCache;
  x_5 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_3, x_2, x_4);
  x_6 = lean_ctor_get(x_5, 0);
  lean_inc(x_6);
  lean_dec(x_5);
  return x_6;
  }
  }
  lean_object* l_Lean_ParserCompiler_replaceParserTy(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_replaceParserTy___rarg___boxed), 2, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  size_t x_5; lean_object* x_6; 
  x_5 = lean_unbox_usize(x_2);
  lean_dec(x_2);
  x_6 = l_Lean_Expr_ReplaceImpl_replaceUnsafeM_visit___at_Lean_ParserCompiler_replaceParserTy___spec__1___rarg(x_1, x_5, x_3, x_4);
  lean_dec(x_1);
  return x_6;
  }
  }
  lean_object* l_Lean_ParserCompiler_replaceParserTy___rarg___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_ParserCompiler_replaceParserTy___rarg(x_1, x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr_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_ctor_get(x_1, 0);
  lean_inc(x_4);
  lean_dec(x_1);
  x_5 = lean_apply_1(x_3, x_4);
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; 
  lean_dec(x_3);
  x_6 = lean_ctor_get(x_1, 0);
  lean_inc(x_6);
  lean_dec(x_1);
  x_7 = lean_apply_1(x_2, x_6);
  return x_7;
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr_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_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_Lean_ParserCompiler_compileParserExpr_match__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr_match__2___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr_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_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_Lean_ParserCompiler_compileParserExpr_match__3(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr_match__3___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__4___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; lean_object* x_7; 
  lean_dec(x_3);
  x_6 = lean_ctor_get(x_1, 0);
  lean_inc(x_6);
  lean_dec(x_1);
  x_7 = lean_apply_1(x_2, x_6);
  return x_7;
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__4(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr_match__4___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 4)
  {
  lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; 
  lean_dec(x_3);
  x_4 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  x_5 = lean_ctor_get(x_1, 1);
  lean_inc(x_5);
  x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  lean_dec(x_1);
  x_7 = lean_box_uint64(x_6);
  x_8 = lean_apply_3(x_2, x_4, x_5, x_7);
  return x_8;
  }
  else
  {
  lean_object* x_9; 
  lean_dec(x_2);
  x_9 = lean_apply_1(x_3, x_1);
  return x_9;
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__5(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr_match__5___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 1:
  {
  lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; 
  lean_dec(x_4);
  lean_dec(x_2);
  x_5 = lean_ctor_get(x_1, 0);
  lean_inc(x_5);
  x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  x_7 = lean_box_uint64(x_6);
  x_8 = lean_apply_3(x_3, x_1, x_5, x_7);
  return x_8;
  }
  case 6:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; uint64_t x_12; lean_object* x_13; lean_object* x_14; 
  lean_dec(x_4);
  lean_dec(x_3);
  x_9 = lean_ctor_get(x_1, 0);
  lean_inc(x_9);
  x_10 = lean_ctor_get(x_1, 1);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_1, 2);
  lean_inc(x_11);
  x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*3);
  x_13 = lean_box_uint64(x_12);
  x_14 = lean_apply_5(x_2, x_1, x_9, x_10, x_11, x_13);
  return x_14;
  }
  default: 
  {
  lean_object* x_15; 
  lean_dec(x_3);
  lean_dec(x_2);
  x_15 = lean_apply_1(x_4, x_1);
  return x_15;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr_match__6(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr_match__6___rarg), 4, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__1___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__1___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__2___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__2___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; uint8_t x_9; lean_object* x_10; 
  x_8 = lean_box(0);
  x_9 = 0;
  x_10 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(x_9, x_8, x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  if (lean_obj_tag(x_10) == 0)
  {
  uint8_t x_11; 
  x_11 = !lean_is_exclusive(x_10);
  if (x_11 == 0)
  {
  return x_10;
  }
  else
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_12 = lean_ctor_get(x_10, 0);
  x_13 = lean_ctor_get(x_10, 1);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_dec(x_10);
  x_14 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_14, 0, x_12);
  lean_ctor_set(x_14, 1, x_13);
  return x_14;
  }
  }
  else
  {
  uint8_t x_15; 
  x_15 = !lean_is_exclusive(x_10);
  if (x_15 == 0)
  {
  return x_10;
  }
  else
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  x_16 = lean_ctor_get(x_10, 0);
  x_17 = lean_ctor_get(x_10, 1);
  lean_inc(x_17);
  lean_inc(x_16);
  lean_dec(x_10);
  x_18 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_18, 0, x_16);
  lean_ctor_set(x_18, 1, x_17);
  return x_18;
  }
  }
  }
  }
  lean_object* l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg), 7, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  x_8 = l_Lean_mkApp(x_1, x_2);
  x_9 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_9, 0, x_8);
  x_10 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_10, 0, x_9);
  lean_ctor_set(x_10, 1, x_7);
  return x_10;
  }
  }
  static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___lambda__1___boxed), 7, 0);
  return x_1;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg(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, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  lean_object* x_15; uint8_t x_16; 
  x_15 = lean_ctor_get(x_6, 1);
  x_16 = lean_nat_dec_le(x_15, x_8);
  if (x_16 == 0)
  {
  lean_object* x_17; uint8_t x_18; 
  x_17 = lean_unsigned_to_nat(0u);
  x_18 = lean_nat_dec_eq(x_7, x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_19 = lean_unsigned_to_nat(1u);
  x_20 = lean_nat_sub(x_7, x_19);
  lean_dec(x_7);
  x_21 = l_Lean_instInhabitedExpr;
  x_22 = lean_array_get(x_21, x_4, x_8);
  x_23 = lean_array_get(x_21, x_5, x_8);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_24 = l_Lean_Meta_inferType(x_22, x_10, x_11, x_12, x_13, x_14);
  if (lean_obj_tag(x_24) == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_24, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_24, 1);
  lean_inc(x_26);
  lean_dec(x_24);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_3);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_25, x_3, x_10, x_11, x_12, x_13, x_26);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_33 = lean_apply_7(x_30, x_9, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_6, 2);
  x_44 = lean_nat_add(x_8, x_43);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_44;
  x_9 = x_42;
  x_14 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_53 = lean_apply_7(x_30, x_9, x_51, x_10, x_11, x_12, x_13, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_6, 2);
  x_64 = lean_nat_add(x_8, x_63);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_64;
  x_9 = x_62;
  x_14 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_78 = !lean_is_exclusive(x_24);
  if (x_78 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_24, 0);
  x_80 = lean_ctor_get(x_24, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_24);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_9);
  lean_ctor_set(x_82, 1, x_14);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_9);
  lean_ctor_set(x_83, 1, x_14);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___boxed), 14, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___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) {
  _start:
  {
  lean_object* x_7; lean_object* x_8; uint8_t x_9; 
  x_7 = lean_ctor_get(x_4, 3);
  x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
  x_9 = !lean_is_exclusive(x_8);
  if (x_9 == 0)
  {
  lean_object* x_10; lean_object* x_11; 
  x_10 = lean_ctor_get(x_8, 0);
  lean_inc(x_7);
  x_11 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_11, 0, x_7);
  lean_ctor_set(x_11, 1, x_10);
  lean_ctor_set_tag(x_8, 1);
  lean_ctor_set(x_8, 0, x_11);
  return x_8;
  }
  else
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = lean_ctor_get(x_8, 0);
  x_13 = lean_ctor_get(x_8, 1);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_dec(x_8);
  lean_inc(x_7);
  x_14 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_14, 0, x_7);
  lean_ctor_set(x_14, 1, x_12);
  x_15 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_15, 0, x_14);
  lean_ctor_set(x_15, 1, x_13);
  return x_15;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_8, 0, x_2);
  lean_ctor_set(x_8, 1, x_7);
  return x_8;
  }
  }
  static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___lambda__1___boxed), 7, 0);
  return x_1;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg(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, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_ctor_get(x_5, 1);
  x_15 = lean_nat_dec_le(x_14, x_7);
  if (x_15 == 0)
  {
  lean_object* x_16; uint8_t x_17; 
  x_16 = lean_unsigned_to_nat(0u);
  x_17 = lean_nat_dec_eq(x_6, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_18 = lean_unsigned_to_nat(1u);
  x_19 = lean_nat_sub(x_6, x_18);
  lean_dec(x_6);
  x_20 = l_Lean_instInhabitedExpr;
  x_21 = lean_array_get(x_20, x_3, x_7);
  x_22 = lean_array_get(x_20, x_4, x_7);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_23 = l_Lean_Meta_inferType(x_21, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_23, 1);
  lean_inc(x_25);
  lean_dec(x_23);
  x_26 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_24, x_26, x_9, x_10, x_11, x_12, x_25);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_33 = lean_apply_7(x_30, x_8, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_5, 2);
  x_44 = lean_nat_add(x_7, x_43);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_44;
  x_8 = x_42;
  x_13 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_53 = lean_apply_7(x_30, x_8, x_51, x_9, x_10, x_11, x_12, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_5, 2);
  x_64 = lean_nat_add(x_7, x_63);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_64;
  x_8 = x_62;
  x_13 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_19);
  lean_dec(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_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_78 = !lean_is_exclusive(x_23);
  if (x_78 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_23, 0);
  x_80 = lean_ctor_get(x_23, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_23);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_8);
  lean_ctor_set(x_82, 1, x_13);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_8);
  lean_ctor_set(x_83, 1, x_13);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___boxed), 13, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__7___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__7(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__7___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__8___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__8(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__8___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__9___rarg(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, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  lean_object* x_15; uint8_t x_16; 
  x_15 = lean_ctor_get(x_6, 1);
  x_16 = lean_nat_dec_le(x_15, x_8);
  if (x_16 == 0)
  {
  lean_object* x_17; uint8_t x_18; 
  x_17 = lean_unsigned_to_nat(0u);
  x_18 = lean_nat_dec_eq(x_7, x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_19 = lean_unsigned_to_nat(1u);
  x_20 = lean_nat_sub(x_7, x_19);
  lean_dec(x_7);
  x_21 = l_Lean_instInhabitedExpr;
  x_22 = lean_array_get(x_21, x_4, x_8);
  x_23 = lean_array_get(x_21, x_5, x_8);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_24 = l_Lean_Meta_inferType(x_22, x_10, x_11, x_12, x_13, x_14);
  if (lean_obj_tag(x_24) == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_24, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_24, 1);
  lean_inc(x_26);
  lean_dec(x_24);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_3);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_25, x_3, x_10, x_11, x_12, x_13, x_26);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_33 = lean_apply_7(x_30, x_9, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_6, 2);
  x_44 = lean_nat_add(x_8, x_43);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_44;
  x_9 = x_42;
  x_14 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_53 = lean_apply_7(x_30, x_9, x_51, x_10, x_11, x_12, x_13, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_6, 2);
  x_64 = lean_nat_add(x_8, x_63);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_64;
  x_9 = x_62;
  x_14 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_78 = !lean_is_exclusive(x_24);
  if (x_78 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_24, 0);
  x_80 = lean_ctor_get(x_24, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_24);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_9);
  lean_ctor_set(x_82, 1, x_14);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_9);
  lean_ctor_set(x_83, 1, x_14);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__9(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__9___rarg___boxed), 14, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__10___rarg(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, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_ctor_get(x_5, 1);
  x_15 = lean_nat_dec_le(x_14, x_7);
  if (x_15 == 0)
  {
  lean_object* x_16; uint8_t x_17; 
  x_16 = lean_unsigned_to_nat(0u);
  x_17 = lean_nat_dec_eq(x_6, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_18 = lean_unsigned_to_nat(1u);
  x_19 = lean_nat_sub(x_6, x_18);
  lean_dec(x_6);
  x_20 = l_Lean_instInhabitedExpr;
  x_21 = lean_array_get(x_20, x_3, x_7);
  x_22 = lean_array_get(x_20, x_4, x_7);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_23 = l_Lean_Meta_inferType(x_21, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_23, 1);
  lean_inc(x_25);
  lean_dec(x_23);
  x_26 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_24, x_26, x_9, x_10, x_11, x_12, x_25);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_33 = lean_apply_7(x_30, x_8, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_5, 2);
  x_44 = lean_nat_add(x_7, x_43);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_44;
  x_8 = x_42;
  x_13 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_53 = lean_apply_7(x_30, x_8, x_51, x_9, x_10, x_11, x_12, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_5, 2);
  x_64 = lean_nat_add(x_7, x_63);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_64;
  x_8 = x_62;
  x_13 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_19);
  lean_dec(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_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_78 = !lean_is_exclusive(x_23);
  if (x_78 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_23, 0);
  x_80 = lean_ctor_get(x_23, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_23);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_8);
  lean_ctor_set(x_82, 1, x_13);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_8);
  lean_ctor_set(x_83, 1, x_13);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__10(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__10___rarg___boxed), 13, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__11___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__11(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__11___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__12___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__12(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__12___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__13___rarg(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, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  lean_object* x_15; uint8_t x_16; 
  x_15 = lean_ctor_get(x_6, 1);
  x_16 = lean_nat_dec_le(x_15, x_8);
  if (x_16 == 0)
  {
  lean_object* x_17; uint8_t x_18; 
  x_17 = lean_unsigned_to_nat(0u);
  x_18 = lean_nat_dec_eq(x_7, x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_19 = lean_unsigned_to_nat(1u);
  x_20 = lean_nat_sub(x_7, x_19);
  lean_dec(x_7);
  x_21 = l_Lean_instInhabitedExpr;
  x_22 = lean_array_get(x_21, x_4, x_8);
  x_23 = lean_array_get(x_21, x_5, x_8);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_24 = l_Lean_Meta_inferType(x_22, x_10, x_11, x_12, x_13, x_14);
  if (lean_obj_tag(x_24) == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_24, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_24, 1);
  lean_inc(x_26);
  lean_dec(x_24);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_3);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_25, x_3, x_10, x_11, x_12, x_13, x_26);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_33 = lean_apply_7(x_30, x_9, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_6, 2);
  x_44 = lean_nat_add(x_8, x_43);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_44;
  x_9 = x_42;
  x_14 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_53 = lean_apply_7(x_30, x_9, x_51, x_10, x_11, x_12, x_13, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_6, 2);
  x_64 = lean_nat_add(x_8, x_63);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_64;
  x_9 = x_62;
  x_14 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_78 = !lean_is_exclusive(x_24);
  if (x_78 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_24, 0);
  x_80 = lean_ctor_get(x_24, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_24);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_9);
  lean_ctor_set(x_82, 1, x_14);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_9);
  lean_ctor_set(x_83, 1, x_14);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__13(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__13___rarg___boxed), 14, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__14___rarg(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, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_ctor_get(x_5, 1);
  x_15 = lean_nat_dec_le(x_14, x_7);
  if (x_15 == 0)
  {
  lean_object* x_16; uint8_t x_17; 
  x_16 = lean_unsigned_to_nat(0u);
  x_17 = lean_nat_dec_eq(x_6, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_18 = lean_unsigned_to_nat(1u);
  x_19 = lean_nat_sub(x_6, x_18);
  lean_dec(x_6);
  x_20 = l_Lean_instInhabitedExpr;
  x_21 = lean_array_get(x_20, x_3, x_7);
  x_22 = lean_array_get(x_20, x_4, x_7);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_23 = l_Lean_Meta_inferType(x_21, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_23, 1);
  lean_inc(x_25);
  lean_dec(x_23);
  x_26 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_24, x_26, x_9, x_10, x_11, x_12, x_25);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_33 = lean_apply_7(x_30, x_8, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_5, 2);
  x_44 = lean_nat_add(x_7, x_43);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_44;
  x_8 = x_42;
  x_13 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_53 = lean_apply_7(x_30, x_8, x_51, x_9, x_10, x_11, x_12, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_5, 2);
  x_64 = lean_nat_add(x_7, x_63);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_64;
  x_8 = x_62;
  x_13 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_19);
  lean_dec(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_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_78 = !lean_is_exclusive(x_23);
  if (x_78 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_23, 0);
  x_80 = lean_ctor_get(x_23, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_23);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_8);
  lean_ctor_set(x_82, 1, x_13);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_8);
  lean_ctor_set(x_83, 1, x_13);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__14(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__14___rarg___boxed), 13, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__15___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__15(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__15___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__16___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__16(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__16___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__17___rarg(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, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  lean_object* x_15; uint8_t x_16; 
  x_15 = lean_ctor_get(x_6, 1);
  x_16 = lean_nat_dec_le(x_15, x_8);
  if (x_16 == 0)
  {
  lean_object* x_17; uint8_t x_18; 
  x_17 = lean_unsigned_to_nat(0u);
  x_18 = lean_nat_dec_eq(x_7, x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_19 = lean_unsigned_to_nat(1u);
  x_20 = lean_nat_sub(x_7, x_19);
  lean_dec(x_7);
  x_21 = l_Lean_instInhabitedExpr;
  x_22 = lean_array_get(x_21, x_4, x_8);
  x_23 = lean_array_get(x_21, x_5, x_8);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_24 = l_Lean_Meta_inferType(x_22, x_10, x_11, x_12, x_13, x_14);
  if (lean_obj_tag(x_24) == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_24, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_24, 1);
  lean_inc(x_26);
  lean_dec(x_24);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_3);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_25, x_3, x_10, x_11, x_12, x_13, x_26);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_33 = lean_apply_7(x_30, x_9, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_6, 2);
  x_44 = lean_nat_add(x_8, x_43);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_44;
  x_9 = x_42;
  x_14 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_53 = lean_apply_7(x_30, x_9, x_51, x_10, x_11, x_12, x_13, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_6, 2);
  x_64 = lean_nat_add(x_8, x_63);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_64;
  x_9 = x_62;
  x_14 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_78 = !lean_is_exclusive(x_24);
  if (x_78 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_24, 0);
  x_80 = lean_ctor_get(x_24, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_24);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_9);
  lean_ctor_set(x_82, 1, x_14);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_9);
  lean_ctor_set(x_83, 1, x_14);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__17(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__17___rarg___boxed), 14, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__18___rarg(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, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_ctor_get(x_5, 1);
  x_15 = lean_nat_dec_le(x_14, x_7);
  if (x_15 == 0)
  {
  lean_object* x_16; uint8_t x_17; 
  x_16 = lean_unsigned_to_nat(0u);
  x_17 = lean_nat_dec_eq(x_6, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_18 = lean_unsigned_to_nat(1u);
  x_19 = lean_nat_sub(x_6, x_18);
  lean_dec(x_6);
  x_20 = l_Lean_instInhabitedExpr;
  x_21 = lean_array_get(x_20, x_3, x_7);
  x_22 = lean_array_get(x_20, x_4, x_7);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_23 = l_Lean_Meta_inferType(x_21, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_23, 1);
  lean_inc(x_25);
  lean_dec(x_23);
  x_26 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_24, x_26, x_9, x_10, x_11, x_12, x_25);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_33 = lean_apply_7(x_30, x_8, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_5, 2);
  x_44 = lean_nat_add(x_7, x_43);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_44;
  x_8 = x_42;
  x_13 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_53 = lean_apply_7(x_30, x_8, x_51, x_9, x_10, x_11, x_12, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_5, 2);
  x_64 = lean_nat_add(x_7, x_63);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_64;
  x_8 = x_62;
  x_13 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_19);
  lean_dec(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_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_78 = !lean_is_exclusive(x_23);
  if (x_78 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_23, 0);
  x_80 = lean_ctor_get(x_23, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_23);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_8);
  lean_ctor_set(x_82, 1, x_13);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_8);
  lean_ctor_set(x_83, 1, x_13);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__18(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__18___rarg___boxed), 13, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__19___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__19(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__19___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__20___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__20(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__20___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__21___rarg(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, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  lean_object* x_15; uint8_t x_16; 
  x_15 = lean_ctor_get(x_6, 1);
  x_16 = lean_nat_dec_le(x_15, x_8);
  if (x_16 == 0)
  {
  lean_object* x_17; uint8_t x_18; 
  x_17 = lean_unsigned_to_nat(0u);
  x_18 = lean_nat_dec_eq(x_7, x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_19 = lean_unsigned_to_nat(1u);
  x_20 = lean_nat_sub(x_7, x_19);
  lean_dec(x_7);
  x_21 = l_Lean_instInhabitedExpr;
  x_22 = lean_array_get(x_21, x_4, x_8);
  x_23 = lean_array_get(x_21, x_5, x_8);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_24 = l_Lean_Meta_inferType(x_22, x_10, x_11, x_12, x_13, x_14);
  if (lean_obj_tag(x_24) == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_24, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_24, 1);
  lean_inc(x_26);
  lean_dec(x_24);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_3);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_25, x_3, x_10, x_11, x_12, x_13, x_26);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_33 = lean_apply_7(x_30, x_9, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_6, 2);
  x_44 = lean_nat_add(x_8, x_43);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_44;
  x_9 = x_42;
  x_14 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_53 = lean_apply_7(x_30, x_9, x_51, x_10, x_11, x_12, x_13, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_6, 2);
  x_64 = lean_nat_add(x_8, x_63);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_64;
  x_9 = x_62;
  x_14 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_78 = !lean_is_exclusive(x_24);
  if (x_78 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_24, 0);
  x_80 = lean_ctor_get(x_24, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_24);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_9);
  lean_ctor_set(x_82, 1, x_14);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_9);
  lean_ctor_set(x_83, 1, x_14);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__21(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__21___rarg___boxed), 14, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__22___rarg(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, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_ctor_get(x_5, 1);
  x_15 = lean_nat_dec_le(x_14, x_7);
  if (x_15 == 0)
  {
  lean_object* x_16; uint8_t x_17; 
  x_16 = lean_unsigned_to_nat(0u);
  x_17 = lean_nat_dec_eq(x_6, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_18 = lean_unsigned_to_nat(1u);
  x_19 = lean_nat_sub(x_6, x_18);
  lean_dec(x_6);
  x_20 = l_Lean_instInhabitedExpr;
  x_21 = lean_array_get(x_20, x_3, x_7);
  x_22 = lean_array_get(x_20, x_4, x_7);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_23 = l_Lean_Meta_inferType(x_21, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_23, 1);
  lean_inc(x_25);
  lean_dec(x_23);
  x_26 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_24, x_26, x_9, x_10, x_11, x_12, x_25);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_33 = lean_apply_7(x_30, x_8, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_5, 2);
  x_44 = lean_nat_add(x_7, x_43);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_44;
  x_8 = x_42;
  x_13 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_53 = lean_apply_7(x_30, x_8, x_51, x_9, x_10, x_11, x_12, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_5, 2);
  x_64 = lean_nat_add(x_7, x_63);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_64;
  x_8 = x_62;
  x_13 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_19);
  lean_dec(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_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_78 = !lean_is_exclusive(x_23);
  if (x_78 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_23, 0);
  x_80 = lean_ctor_get(x_23, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_23);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_8);
  lean_ctor_set(x_82, 1, x_13);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_8);
  lean_ctor_set(x_83, 1, x_13);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__22(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__22___rarg___boxed), 13, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__23___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__23(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__23___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__24___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__24(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__24___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__25___rarg(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, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  lean_object* x_15; uint8_t x_16; 
  x_15 = lean_ctor_get(x_6, 1);
  x_16 = lean_nat_dec_le(x_15, x_8);
  if (x_16 == 0)
  {
  lean_object* x_17; uint8_t x_18; 
  x_17 = lean_unsigned_to_nat(0u);
  x_18 = lean_nat_dec_eq(x_7, x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_19 = lean_unsigned_to_nat(1u);
  x_20 = lean_nat_sub(x_7, x_19);
  lean_dec(x_7);
  x_21 = l_Lean_instInhabitedExpr;
  x_22 = lean_array_get(x_21, x_4, x_8);
  x_23 = lean_array_get(x_21, x_5, x_8);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_24 = l_Lean_Meta_inferType(x_22, x_10, x_11, x_12, x_13, x_14);
  if (lean_obj_tag(x_24) == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_24, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_24, 1);
  lean_inc(x_26);
  lean_dec(x_24);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_3);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_25, x_3, x_10, x_11, x_12, x_13, x_26);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_33 = lean_apply_7(x_30, x_9, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_6, 2);
  x_44 = lean_nat_add(x_8, x_43);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_44;
  x_9 = x_42;
  x_14 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_53 = lean_apply_7(x_30, x_9, x_51, x_10, x_11, x_12, x_13, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_6, 2);
  x_64 = lean_nat_add(x_8, x_63);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_64;
  x_9 = x_62;
  x_14 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_78 = !lean_is_exclusive(x_24);
  if (x_78 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_24, 0);
  x_80 = lean_ctor_get(x_24, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_24);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_9);
  lean_ctor_set(x_82, 1, x_14);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_9);
  lean_ctor_set(x_83, 1, x_14);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__25(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__25___rarg___boxed), 14, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__26___rarg(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, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_ctor_get(x_5, 1);
  x_15 = lean_nat_dec_le(x_14, x_7);
  if (x_15 == 0)
  {
  lean_object* x_16; uint8_t x_17; 
  x_16 = lean_unsigned_to_nat(0u);
  x_17 = lean_nat_dec_eq(x_6, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_18 = lean_unsigned_to_nat(1u);
  x_19 = lean_nat_sub(x_6, x_18);
  lean_dec(x_6);
  x_20 = l_Lean_instInhabitedExpr;
  x_21 = lean_array_get(x_20, x_3, x_7);
  x_22 = lean_array_get(x_20, x_4, x_7);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_23 = l_Lean_Meta_inferType(x_21, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_23, 1);
  lean_inc(x_25);
  lean_dec(x_23);
  x_26 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_24, x_26, x_9, x_10, x_11, x_12, x_25);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_33 = lean_apply_7(x_30, x_8, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_5, 2);
  x_44 = lean_nat_add(x_7, x_43);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_44;
  x_8 = x_42;
  x_13 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_53 = lean_apply_7(x_30, x_8, x_51, x_9, x_10, x_11, x_12, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_5, 2);
  x_64 = lean_nat_add(x_7, x_63);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_64;
  x_8 = x_62;
  x_13 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_19);
  lean_dec(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_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_78 = !lean_is_exclusive(x_23);
  if (x_78 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_23, 0);
  x_80 = lean_ctor_get(x_23, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_23);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_8);
  lean_ctor_set(x_82, 1, x_13);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_8);
  lean_ctor_set(x_83, 1, x_13);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__26(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__26___rarg___boxed), 13, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__27___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__27(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__27___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__28___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__28(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__28___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__29___rarg(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, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  lean_object* x_15; uint8_t x_16; 
  x_15 = lean_ctor_get(x_6, 1);
  x_16 = lean_nat_dec_le(x_15, x_8);
  if (x_16 == 0)
  {
  lean_object* x_17; uint8_t x_18; 
  x_17 = lean_unsigned_to_nat(0u);
  x_18 = lean_nat_dec_eq(x_7, x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_19 = lean_unsigned_to_nat(1u);
  x_20 = lean_nat_sub(x_7, x_19);
  lean_dec(x_7);
  x_21 = l_Lean_instInhabitedExpr;
  x_22 = lean_array_get(x_21, x_4, x_8);
  x_23 = lean_array_get(x_21, x_5, x_8);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_24 = l_Lean_Meta_inferType(x_22, x_10, x_11, x_12, x_13, x_14);
  if (lean_obj_tag(x_24) == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_24, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_24, 1);
  lean_inc(x_26);
  lean_dec(x_24);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_3);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_25, x_3, x_10, x_11, x_12, x_13, x_26);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_33 = lean_apply_7(x_30, x_9, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_6, 2);
  x_44 = lean_nat_add(x_8, x_43);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_44;
  x_9 = x_42;
  x_14 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_53 = lean_apply_7(x_30, x_9, x_51, x_10, x_11, x_12, x_13, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_6, 2);
  x_64 = lean_nat_add(x_8, x_63);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_64;
  x_9 = x_62;
  x_14 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_78 = !lean_is_exclusive(x_24);
  if (x_78 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_24, 0);
  x_80 = lean_ctor_get(x_24, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_24);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_9);
  lean_ctor_set(x_82, 1, x_14);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_9);
  lean_ctor_set(x_83, 1, x_14);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__29(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__29___rarg___boxed), 14, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__30___rarg(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, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_ctor_get(x_5, 1);
  x_15 = lean_nat_dec_le(x_14, x_7);
  if (x_15 == 0)
  {
  lean_object* x_16; uint8_t x_17; 
  x_16 = lean_unsigned_to_nat(0u);
  x_17 = lean_nat_dec_eq(x_6, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_18 = lean_unsigned_to_nat(1u);
  x_19 = lean_nat_sub(x_6, x_18);
  lean_dec(x_6);
  x_20 = l_Lean_instInhabitedExpr;
  x_21 = lean_array_get(x_20, x_3, x_7);
  x_22 = lean_array_get(x_20, x_4, x_7);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_23 = l_Lean_Meta_inferType(x_21, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_23, 1);
  lean_inc(x_25);
  lean_dec(x_23);
  x_26 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_24, x_26, x_9, x_10, x_11, x_12, x_25);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_33 = lean_apply_7(x_30, x_8, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_5, 2);
  x_44 = lean_nat_add(x_7, x_43);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_44;
  x_8 = x_42;
  x_13 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_53 = lean_apply_7(x_30, x_8, x_51, x_9, x_10, x_11, x_12, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_5, 2);
  x_64 = lean_nat_add(x_7, x_63);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_64;
  x_8 = x_62;
  x_13 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_19);
  lean_dec(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_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_78 = !lean_is_exclusive(x_23);
  if (x_78 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_23, 0);
  x_80 = lean_ctor_get(x_23, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_23);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_8);
  lean_ctor_set(x_82, 1, x_13);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_8);
  lean_ctor_set(x_83, 1, x_13);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__30(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__30___rarg___boxed), 13, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__31___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__31(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__31___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__32___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__32(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__32___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__33___rarg(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, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  lean_object* x_15; uint8_t x_16; 
  x_15 = lean_ctor_get(x_6, 1);
  x_16 = lean_nat_dec_le(x_15, x_8);
  if (x_16 == 0)
  {
  lean_object* x_17; uint8_t x_18; 
  x_17 = lean_unsigned_to_nat(0u);
  x_18 = lean_nat_dec_eq(x_7, x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_19 = lean_unsigned_to_nat(1u);
  x_20 = lean_nat_sub(x_7, x_19);
  lean_dec(x_7);
  x_21 = l_Lean_instInhabitedExpr;
  x_22 = lean_array_get(x_21, x_4, x_8);
  x_23 = lean_array_get(x_21, x_5, x_8);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_24 = l_Lean_Meta_inferType(x_22, x_10, x_11, x_12, x_13, x_14);
  if (lean_obj_tag(x_24) == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_24, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_24, 1);
  lean_inc(x_26);
  lean_dec(x_24);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_3);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_25, x_3, x_10, x_11, x_12, x_13, x_26);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_33 = lean_apply_7(x_30, x_9, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_6, 2);
  x_44 = lean_nat_add(x_8, x_43);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_44;
  x_9 = x_42;
  x_14 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_53 = lean_apply_7(x_30, x_9, x_51, x_10, x_11, x_12, x_13, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_6, 2);
  x_64 = lean_nat_add(x_8, x_63);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_64;
  x_9 = x_62;
  x_14 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_78 = !lean_is_exclusive(x_24);
  if (x_78 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_24, 0);
  x_80 = lean_ctor_get(x_24, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_24);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_9);
  lean_ctor_set(x_82, 1, x_14);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_9);
  lean_ctor_set(x_83, 1, x_14);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__33(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__33___rarg___boxed), 14, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__34___rarg(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, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_ctor_get(x_5, 1);
  x_15 = lean_nat_dec_le(x_14, x_7);
  if (x_15 == 0)
  {
  lean_object* x_16; uint8_t x_17; 
  x_16 = lean_unsigned_to_nat(0u);
  x_17 = lean_nat_dec_eq(x_6, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_18 = lean_unsigned_to_nat(1u);
  x_19 = lean_nat_sub(x_6, x_18);
  lean_dec(x_6);
  x_20 = l_Lean_instInhabitedExpr;
  x_21 = lean_array_get(x_20, x_3, x_7);
  x_22 = lean_array_get(x_20, x_4, x_7);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_23 = l_Lean_Meta_inferType(x_21, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_23, 1);
  lean_inc(x_25);
  lean_dec(x_23);
  x_26 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_24, x_26, x_9, x_10, x_11, x_12, x_25);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_33 = lean_apply_7(x_30, x_8, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_5, 2);
  x_44 = lean_nat_add(x_7, x_43);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_44;
  x_8 = x_42;
  x_13 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_53 = lean_apply_7(x_30, x_8, x_51, x_9, x_10, x_11, x_12, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_5, 2);
  x_64 = lean_nat_add(x_7, x_63);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_64;
  x_8 = x_62;
  x_13 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_19);
  lean_dec(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_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_78 = !lean_is_exclusive(x_23);
  if (x_78 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_23, 0);
  x_80 = lean_ctor_get(x_23, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_23);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_8);
  lean_ctor_set(x_82, 1, x_13);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_8);
  lean_ctor_set(x_83, 1, x_13);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__34(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__34___rarg___boxed), 13, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__35___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__35(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__35___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__36___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__36(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__36___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__37___rarg(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, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  lean_object* x_15; uint8_t x_16; 
  x_15 = lean_ctor_get(x_6, 1);
  x_16 = lean_nat_dec_le(x_15, x_8);
  if (x_16 == 0)
  {
  lean_object* x_17; uint8_t x_18; 
  x_17 = lean_unsigned_to_nat(0u);
  x_18 = lean_nat_dec_eq(x_7, x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_19 = lean_unsigned_to_nat(1u);
  x_20 = lean_nat_sub(x_7, x_19);
  lean_dec(x_7);
  x_21 = l_Lean_instInhabitedExpr;
  x_22 = lean_array_get(x_21, x_4, x_8);
  x_23 = lean_array_get(x_21, x_5, x_8);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_24 = l_Lean_Meta_inferType(x_22, x_10, x_11, x_12, x_13, x_14);
  if (lean_obj_tag(x_24) == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_24, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_24, 1);
  lean_inc(x_26);
  lean_dec(x_24);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_3);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_25, x_3, x_10, x_11, x_12, x_13, x_26);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_33 = lean_apply_7(x_30, x_9, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_6, 2);
  x_44 = lean_nat_add(x_8, x_43);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_44;
  x_9 = x_42;
  x_14 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_53 = lean_apply_7(x_30, x_9, x_51, x_10, x_11, x_12, x_13, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_6, 2);
  x_64 = lean_nat_add(x_8, x_63);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_64;
  x_9 = x_62;
  x_14 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_78 = !lean_is_exclusive(x_24);
  if (x_78 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_24, 0);
  x_80 = lean_ctor_get(x_24, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_24);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_9);
  lean_ctor_set(x_82, 1, x_14);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_9);
  lean_ctor_set(x_83, 1, x_14);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__37(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__37___rarg___boxed), 14, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__38___rarg(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, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_ctor_get(x_5, 1);
  x_15 = lean_nat_dec_le(x_14, x_7);
  if (x_15 == 0)
  {
  lean_object* x_16; uint8_t x_17; 
  x_16 = lean_unsigned_to_nat(0u);
  x_17 = lean_nat_dec_eq(x_6, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_18 = lean_unsigned_to_nat(1u);
  x_19 = lean_nat_sub(x_6, x_18);
  lean_dec(x_6);
  x_20 = l_Lean_instInhabitedExpr;
  x_21 = lean_array_get(x_20, x_3, x_7);
  x_22 = lean_array_get(x_20, x_4, x_7);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_23 = l_Lean_Meta_inferType(x_21, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_23, 1);
  lean_inc(x_25);
  lean_dec(x_23);
  x_26 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_24, x_26, x_9, x_10, x_11, x_12, x_25);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_33 = lean_apply_7(x_30, x_8, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_5, 2);
  x_44 = lean_nat_add(x_7, x_43);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_44;
  x_8 = x_42;
  x_13 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_53 = lean_apply_7(x_30, x_8, x_51, x_9, x_10, x_11, x_12, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_5, 2);
  x_64 = lean_nat_add(x_7, x_63);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_64;
  x_8 = x_62;
  x_13 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_19);
  lean_dec(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_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_78 = !lean_is_exclusive(x_23);
  if (x_78 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_23, 0);
  x_80 = lean_ctor_get(x_23, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_23);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_8);
  lean_ctor_set(x_82, 1, x_13);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_8);
  lean_ctor_set(x_83, 1, x_13);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__38(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__38___rarg___boxed), 13, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__39___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__39(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__39___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__40___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; 
  x_11 = x_3 == x_4;
  if (x_11 == 0)
  {
  size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = 1;
  x_13 = x_3 - x_12;
  x_14 = lean_array_uget(x_2, x_13);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l_Lean_Meta_inferType(x_14, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; 
  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_ParserCompiler_replaceParserTy___rarg(x_1, x_16);
  x_19 = l_Lean_mkSimpleThunk___closed__1;
  x_20 = 0;
  x_21 = l_Lean_mkForall(x_19, x_20, x_18, x_5);
  x_3 = x_13;
  x_5 = x_21;
  x_10 = x_17;
  goto _start;
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  x_23 = !lean_is_exclusive(x_15);
  if (x_23 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  x_24 = lean_ctor_get(x_15, 0);
  x_25 = lean_ctor_get(x_15, 1);
  lean_inc(x_25);
  lean_inc(x_24);
  lean_dec(x_15);
  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;
  }
  }
  }
  else
  {
  lean_object* x_27; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_5);
  lean_ctor_set(x_27, 1, x_10);
  return x_27;
  }
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__40(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__40___rarg___boxed), 10, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__41___rarg(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, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  lean_object* x_15; uint8_t x_16; 
  x_15 = lean_ctor_get(x_6, 1);
  x_16 = lean_nat_dec_le(x_15, x_8);
  if (x_16 == 0)
  {
  lean_object* x_17; uint8_t x_18; 
  x_17 = lean_unsigned_to_nat(0u);
  x_18 = lean_nat_dec_eq(x_7, x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_19 = lean_unsigned_to_nat(1u);
  x_20 = lean_nat_sub(x_7, x_19);
  lean_dec(x_7);
  x_21 = l_Lean_instInhabitedExpr;
  x_22 = lean_array_get(x_21, x_4, x_8);
  x_23 = lean_array_get(x_21, x_5, x_8);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_24 = l_Lean_Meta_inferType(x_22, x_10, x_11, x_12, x_13, x_14);
  if (lean_obj_tag(x_24) == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_24, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_24, 1);
  lean_inc(x_26);
  lean_dec(x_24);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_3);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_25, x_3, x_10, x_11, x_12, x_13, x_26);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_33 = lean_apply_7(x_30, x_9, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_6, 2);
  x_44 = lean_nat_add(x_8, x_43);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_44;
  x_9 = x_42;
  x_14 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_23, x_10, x_11, x_12, x_13, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  x_53 = lean_apply_7(x_30, x_9, x_51, x_10, x_11, x_12, x_13, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_6, 2);
  x_64 = lean_nat_add(x_8, x_63);
  lean_dec(x_8);
  x_7 = x_20;
  x_8 = x_64;
  x_9 = x_62;
  x_14 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_23);
  lean_dec(x_20);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_3);
  lean_dec(x_1);
  x_78 = !lean_is_exclusive(x_24);
  if (x_78 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_24, 0);
  x_80 = lean_ctor_get(x_24, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_24);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_9);
  lean_ctor_set(x_82, 1, x_14);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_9);
  lean_ctor_set(x_83, 1, x_14);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__41(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__41___rarg___boxed), 14, 0);
  return x_2;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__42___rarg(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, lean_object* x_13) {
  _start:
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_ctor_get(x_5, 1);
  x_15 = lean_nat_dec_le(x_14, x_7);
  if (x_15 == 0)
  {
  lean_object* x_16; uint8_t x_17; 
  x_16 = lean_unsigned_to_nat(0u);
  x_17 = lean_nat_dec_eq(x_6, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_18 = lean_unsigned_to_nat(1u);
  x_19 = lean_nat_sub(x_6, x_18);
  lean_dec(x_6);
  x_20 = l_Lean_instInhabitedExpr;
  x_21 = lean_array_get(x_20, x_3, x_7);
  x_22 = lean_array_get(x_20, x_4, x_7);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_23 = l_Lean_Meta_inferType(x_21, x_9, x_10, x_11, x_12, x_13);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_23, 1);
  lean_inc(x_25);
  lean_dec(x_23);
  x_26 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_24, x_26, x_9, x_10, x_11, x_12, x_25);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_30 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1;
  x_31 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_32 = l_Lean_Expr_isConstOf(x_28, x_31);
  lean_dec(x_31);
  lean_dec(x_28);
  if (x_32 == 0)
  {
  lean_object* x_33; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_33 = lean_apply_7(x_30, x_8, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; 
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_35 = !lean_is_exclusive(x_33);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_33, 0);
  lean_dec(x_36);
  x_37 = lean_ctor_get(x_34, 0);
  lean_inc(x_37);
  lean_dec(x_34);
  lean_ctor_set(x_33, 0, x_37);
  return x_33;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_dec(x_33);
  x_39 = lean_ctor_get(x_34, 0);
  lean_inc(x_39);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_39);
  lean_ctor_set(x_40, 1, x_38);
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_41 = lean_ctor_get(x_33, 1);
  lean_inc(x_41);
  lean_dec(x_33);
  x_42 = lean_ctor_get(x_34, 0);
  lean_inc(x_42);
  lean_dec(x_34);
  x_43 = lean_ctor_get(x_5, 2);
  x_44 = lean_nat_add(x_7, x_43);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_44;
  x_8 = x_42;
  x_13 = x_41;
  goto _start;
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_33);
  if (x_46 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_33, 0);
  x_48 = lean_ctor_get(x_33, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_33);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  }
  else
  {
  lean_object* x_50; 
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_1);
  x_50 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_22, x_9, x_10, x_11, x_12, x_29);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_53 = lean_apply_7(x_30, x_8, x_51, x_9, x_10, x_11, x_12, x_52);
  if (lean_obj_tag(x_53) == 0)
  {
  lean_object* x_54; 
  x_54 = lean_ctor_get(x_53, 0);
  lean_inc(x_54);
  if (lean_obj_tag(x_54) == 0)
  {
  uint8_t x_55; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_55 = !lean_is_exclusive(x_53);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_ctor_get(x_53, 0);
  lean_dec(x_56);
  x_57 = lean_ctor_get(x_54, 0);
  lean_inc(x_57);
  lean_dec(x_54);
  lean_ctor_set(x_53, 0, x_57);
  return x_53;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_53, 1);
  lean_inc(x_58);
  lean_dec(x_53);
  x_59 = lean_ctor_get(x_54, 0);
  lean_inc(x_59);
  lean_dec(x_54);
  x_60 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_58);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; 
  x_61 = lean_ctor_get(x_53, 1);
  lean_inc(x_61);
  lean_dec(x_53);
  x_62 = lean_ctor_get(x_54, 0);
  lean_inc(x_62);
  lean_dec(x_54);
  x_63 = lean_ctor_get(x_5, 2);
  x_64 = lean_nat_add(x_7, x_63);
  lean_dec(x_7);
  x_6 = x_19;
  x_7 = x_64;
  x_8 = x_62;
  x_13 = x_61;
  goto _start;
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_19);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_1);
  x_66 = !lean_is_exclusive(x_53);
  if (x_66 == 0)
  {
  return x_53;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_53, 0);
  x_68 = lean_ctor_get(x_53, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_53);
  x_69 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_69, 0, x_67);
  lean_ctor_set(x_69, 1, x_68);
  return x_69;
  }
  }
  }
  else
  {
  uint8_t x_70; 
  lean_dec(x_19);
  lean_dec(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_1);
  x_70 = !lean_is_exclusive(x_50);
  if (x_70 == 0)
  {
  return x_50;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_50, 0);
  x_72 = lean_ctor_get(x_50, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_50);
  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
  {
  uint8_t x_74; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_74 = !lean_is_exclusive(x_27);
  if (x_74 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_27, 0);
  x_76 = lean_ctor_get(x_27, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_27);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  else
  {
  uint8_t x_78; 
  lean_dec(x_22);
  lean_dec(x_19);
  lean_dec(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_1);
  x_78 = !lean_is_exclusive(x_23);
  if (x_78 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_23, 0);
  x_80 = lean_ctor_get(x_23, 1);
  lean_inc(x_80);
  lean_inc(x_79);
  lean_dec(x_23);
  x_81 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_81, 0, x_79);
  lean_ctor_set(x_81, 1, x_80);
  return x_81;
  }
  }
  }
  else
  {
  lean_object* x_82; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_82 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_82, 0, x_8);
  lean_ctor_set(x_82, 1, x_13);
  return x_82;
  }
  }
  else
  {
  lean_object* x_83; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_1);
  x_83 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_83, 0, x_8);
  lean_ctor_set(x_83, 1, x_13);
  return x_83;
  }
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__42(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__42___rarg___boxed), 13, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
  x_9 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_10 = lean_box(0);
  x_11 = l_Lean_mkConst(x_9, x_10);
  x_12 = lean_array_get_size(x_2);
  x_13 = lean_nat_dec_le(x_12, x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_unsigned_to_nat(0u);
  x_15 = lean_nat_dec_lt(x_14, x_12);
  if (x_15 == 0)
  {
  lean_object* x_16; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_16 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_16, 0, x_11);
  lean_ctor_set(x_16, 1, x_8);
  return x_16;
  }
  else
  {
  size_t x_17; size_t x_18; lean_object* x_19; 
  x_17 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_18 = 0;
  x_19 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__1___rarg(x_1, x_2, x_17, x_18, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_19;
  }
  }
  else
  {
  lean_object* x_20; uint8_t x_21; 
  x_20 = lean_unsigned_to_nat(0u);
  x_21 = lean_nat_dec_lt(x_20, x_12);
  if (x_21 == 0)
  {
  lean_object* x_22; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_11);
  lean_ctor_set(x_22, 1, x_8);
  return x_22;
  }
  else
  {
  size_t x_23; size_t x_24; lean_object* x_25; 
  x_23 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_24 = 0;
  x_25 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__2___rarg(x_1, x_2, x_23, x_24, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_25;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___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) {
  _start:
  {
  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; 
  x_13 = lean_unsigned_to_nat(0u);
  x_14 = l_Lean_Expr_getAppNumArgsAux(x_1, x_13);
  x_15 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_14);
  x_16 = lean_mk_array(x_14, x_15);
  x_17 = lean_unsigned_to_nat(1u);
  x_18 = lean_nat_sub(x_14, x_17);
  lean_dec(x_14);
  x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_16, x_18);
  x_20 = lean_array_get_size(x_6);
  x_21 = lean_array_get_size(x_19);
  x_22 = l_Nat_min(x_20, x_21);
  lean_dec(x_21);
  lean_dec(x_20);
  lean_inc(x_22);
  x_23 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_23, 0, x_13);
  lean_ctor_set(x_23, 1, x_22);
  lean_ctor_set(x_23, 2, x_17);
  x_24 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg(x_2, x_3, x_4, x_6, x_19, x_23, x_22, x_13, x_5, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_23);
  lean_dec(x_19);
  if (lean_obj_tag(x_24) == 0)
  {
  uint8_t x_25; 
  x_25 = !lean_is_exclusive(x_24);
  if (x_25 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_24, 0);
  x_27 = lean_ctor_get(x_24, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_24);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  else
  {
  uint8_t x_29; 
  x_29 = !lean_is_exclusive(x_24);
  if (x_29 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_24, 0);
  x_31 = lean_ctor_get(x_24, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_24);
  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_ParserCompiler_compileParserExpr___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_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) {
  _start:
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  lean_inc(x_3);
  x_15 = l_Lean_ParserCompiler_CombinatorAttribute_setDeclFor(x_1, x_9, x_2, x_3);
  x_16 = l_Lean_setEnv___at_Lean_Meta_addDefaultInstance___spec__1(x_15, x_10, x_11, x_12, x_13, x_14);
  x_17 = lean_ctor_get(x_16, 1);
  lean_inc(x_17);
  lean_dec(x_16);
  x_18 = l_Lean_mkConst(x_3, x_4);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_18);
  x_19 = l_Lean_Meta_inferType(x_18, x_10, x_11, x_12, x_13, x_17);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_box(x_7);
  x_23 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__2___boxed), 12, 5);
  lean_closure_set(x_23, 0, x_5);
  lean_closure_set(x_23, 1, x_6);
  lean_closure_set(x_23, 2, x_22);
  lean_closure_set(x_23, 3, x_8);
  lean_closure_set(x_23, 4, x_18);
  x_24 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_20, x_23, x_10, x_11, x_12, x_13, x_21);
  return x_24;
  }
  else
  {
  uint8_t x_25; 
  lean_dec(x_18);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  x_25 = !lean_is_exclusive(x_19);
  if (x_25 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_19, 0);
  x_27 = lean_ctor_get(x_19, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_19);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__4(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:
  {
  lean_object* x_16; lean_object* x_17; 
  x_16 = l_Lean_ParserCompiler_replaceParserTy___rarg(x_1, x_2);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_1);
  x_17 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_3, x_16, x_11, x_12, x_13, x_14, x_15);
  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_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  lean_inc(x_1);
  x_20 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__1___boxed), 8, 1);
  lean_closure_set(x_20, 0, x_1);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_21 = l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(x_4, x_20, x_11, x_12, x_13, x_14, x_19);
  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; uint8_t 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_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_box(0);
  lean_inc(x_5);
  x_25 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_25, 0, x_5);
  lean_ctor_set(x_25, 1, x_24);
  lean_ctor_set(x_25, 2, x_22);
  x_26 = lean_box(0);
  x_27 = 1;
  x_28 = lean_alloc_ctor(0, 3, 1);
  lean_ctor_set(x_28, 0, x_25);
  lean_ctor_set(x_28, 1, x_18);
  lean_ctor_set(x_28, 2, x_26);
  lean_ctor_set_uint8(x_28, sizeof(void*)*3, x_27);
  x_29 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_29, 0, x_28);
  x_30 = lean_st_ref_get(x_14, x_23);
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = lean_ctor_get(x_31, 0);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = l_Lean_Environment_addAndCompile(x_33, x_24, x_29);
  lean_dec(x_29);
  if (lean_obj_tag(x_34) == 0)
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  lean_dec(x_34);
  x_36 = l_Lean_KernelException_toMessageData(x_35, x_24);
  x_37 = lean_st_ref_get(x_14, x_32);
  x_38 = lean_ctor_get(x_37, 1);
  lean_inc(x_38);
  lean_dec(x_37);
  x_39 = lean_ctor_get(x_13, 3);
  lean_inc(x_39);
  x_40 = l_Lean_MessageData_toString(x_36, x_38);
  if (lean_obj_tag(x_40) == 0)
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
  lean_dec(x_39);
  x_41 = lean_ctor_get(x_40, 0);
  lean_inc(x_41);
  x_42 = lean_ctor_get(x_40, 1);
  lean_inc(x_42);
  lean_dec(x_40);
  x_43 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_43, 0, x_41);
  x_44 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_44, 0, x_43);
  x_45 = l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5(x_44, x_11, x_12, x_13, x_14, x_42);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_46 = !lean_is_exclusive(x_45);
  if (x_46 == 0)
  {
  return x_45;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_45, 0);
  x_48 = lean_ctor_get(x_45, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_45);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_50 = !lean_is_exclusive(x_40);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_51 = lean_ctor_get(x_40, 0);
  x_52 = lean_io_error_to_string(x_51);
  x_53 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_53, 0, x_52);
  x_54 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_54, 0, x_53);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_39);
  lean_ctor_set(x_55, 1, x_54);
  lean_ctor_set(x_40, 0, x_55);
  return x_40;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_56 = lean_ctor_get(x_40, 0);
  x_57 = lean_ctor_get(x_40, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_40);
  x_58 = lean_io_error_to_string(x_56);
  x_59 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_59, 0, x_58);
  x_60 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_60, 0, x_59);
  x_61 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_61, 0, x_39);
  lean_ctor_set(x_61, 1, x_60);
  x_62 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_62, 0, x_61);
  lean_ctor_set(x_62, 1, x_57);
  return x_62;
  }
  }
  }
  else
  {
  lean_object* x_63; lean_object* x_64; 
  x_63 = lean_ctor_get(x_34, 0);
  lean_inc(x_63);
  lean_dec(x_34);
  x_64 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__3(x_6, x_7, x_5, x_24, x_8, x_1, x_3, x_9, x_63, x_11, x_12, x_13, x_14, x_32);
  return x_64;
  }
  }
  else
  {
  uint8_t x_65; 
  lean_dec(x_18);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_65 = !lean_is_exclusive(x_21);
  if (x_65 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; 
  x_66 = lean_ctor_get(x_21, 0);
  x_67 = lean_ctor_get(x_21, 1);
  lean_inc(x_67);
  lean_inc(x_66);
  lean_dec(x_21);
  x_68 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_68, 0, x_66);
  lean_ctor_set(x_68, 1, x_67);
  return x_68;
  }
  }
  }
  else
  {
  uint8_t x_69; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_69 = !lean_is_exclusive(x_17);
  if (x_69 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_17, 0);
  x_71 = lean_ctor_get(x_17, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_17);
  x_72 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_72, 0, x_70);
  lean_ctor_set(x_72, 1, x_71);
  return x_72;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__5(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) {
  _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; 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_12 = lean_unsigned_to_nat(0u);
  x_13 = l_Lean_Expr_getAppNumArgsAux(x_1, x_12);
  x_14 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_13);
  x_15 = lean_mk_array(x_13, x_14);
  x_16 = lean_unsigned_to_nat(1u);
  x_17 = lean_nat_sub(x_13, x_16);
  lean_dec(x_13);
  x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_15, x_17);
  x_19 = lean_array_get_size(x_5);
  x_20 = lean_array_get_size(x_18);
  x_21 = l_Nat_min(x_19, x_20);
  lean_dec(x_20);
  lean_dec(x_19);
  lean_inc(x_21);
  x_22 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_22, 0, x_12);
  lean_ctor_set(x_22, 1, x_21);
  lean_ctor_set(x_22, 2, x_16);
  x_23 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg(x_2, x_3, x_5, x_18, x_22, x_21, x_12, x_4, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_22);
  lean_dec(x_18);
  if (lean_obj_tag(x_23) == 0)
  {
  uint8_t x_24; 
  x_24 = !lean_is_exclusive(x_23);
  if (x_24 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_23, 0);
  x_26 = lean_ctor_get(x_23, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_23);
  x_27 = lean_alloc_ctor(0, 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; 
  x_28 = !lean_is_exclusive(x_23);
  if (x_28 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_23, 0);
  x_30 = lean_ctor_get(x_23, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_23);
  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_ParserCompiler_compileParserExpr___rarg___lambda__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) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
  x_9 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_10 = lean_box(0);
  x_11 = l_Lean_mkConst(x_9, x_10);
  x_12 = lean_array_get_size(x_2);
  x_13 = lean_nat_dec_le(x_12, x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_unsigned_to_nat(0u);
  x_15 = lean_nat_dec_lt(x_14, x_12);
  if (x_15 == 0)
  {
  lean_object* x_16; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_16 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_16, 0, x_11);
  lean_ctor_set(x_16, 1, x_8);
  return x_16;
  }
  else
  {
  size_t x_17; size_t x_18; lean_object* x_19; 
  x_17 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_18 = 0;
  x_19 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__7___rarg(x_1, x_2, x_17, x_18, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_19;
  }
  }
  else
  {
  lean_object* x_20; uint8_t x_21; 
  x_20 = lean_unsigned_to_nat(0u);
  x_21 = lean_nat_dec_lt(x_20, x_12);
  if (x_21 == 0)
  {
  lean_object* x_22; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_11);
  lean_ctor_set(x_22, 1, x_8);
  return x_22;
  }
  else
  {
  size_t x_23; size_t x_24; lean_object* x_25; 
  x_23 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_24 = 0;
  x_25 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__8___rarg(x_1, x_2, x_23, x_24, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_25;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__7(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; 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; 
  x_13 = lean_unsigned_to_nat(0u);
  x_14 = l_Lean_Expr_getAppNumArgsAux(x_1, x_13);
  x_15 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_14);
  x_16 = lean_mk_array(x_14, x_15);
  x_17 = lean_unsigned_to_nat(1u);
  x_18 = lean_nat_sub(x_14, x_17);
  lean_dec(x_14);
  x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_16, x_18);
  x_20 = lean_array_get_size(x_6);
  x_21 = lean_array_get_size(x_19);
  x_22 = l_Nat_min(x_20, x_21);
  lean_dec(x_21);
  lean_dec(x_20);
  lean_inc(x_22);
  x_23 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_23, 0, x_13);
  lean_ctor_set(x_23, 1, x_22);
  lean_ctor_set(x_23, 2, x_17);
  x_24 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__9___rarg(x_2, x_3, x_4, x_6, x_19, x_23, x_22, x_13, x_5, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_23);
  lean_dec(x_19);
  if (lean_obj_tag(x_24) == 0)
  {
  uint8_t x_25; 
  x_25 = !lean_is_exclusive(x_24);
  if (x_25 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_24, 0);
  x_27 = lean_ctor_get(x_24, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_24);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  else
  {
  uint8_t x_29; 
  x_29 = !lean_is_exclusive(x_24);
  if (x_29 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_24, 0);
  x_31 = lean_ctor_get(x_24, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_24);
  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_ParserCompiler_compileParserExpr___rarg___lambda__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, uint8_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) {
  _start:
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  lean_inc(x_3);
  x_15 = l_Lean_ParserCompiler_CombinatorAttribute_setDeclFor(x_1, x_9, x_2, x_3);
  x_16 = l_Lean_setEnv___at_Lean_Meta_addDefaultInstance___spec__1(x_15, x_10, x_11, x_12, x_13, x_14);
  x_17 = lean_ctor_get(x_16, 1);
  lean_inc(x_17);
  lean_dec(x_16);
  x_18 = l_Lean_mkConst(x_3, x_4);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_18);
  x_19 = l_Lean_Meta_inferType(x_18, x_10, x_11, x_12, x_13, x_17);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_box(x_7);
  x_23 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__7___boxed), 12, 5);
  lean_closure_set(x_23, 0, x_5);
  lean_closure_set(x_23, 1, x_6);
  lean_closure_set(x_23, 2, x_22);
  lean_closure_set(x_23, 3, x_8);
  lean_closure_set(x_23, 4, x_18);
  x_24 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_20, x_23, x_10, x_11, x_12, x_13, x_21);
  return x_24;
  }
  else
  {
  uint8_t x_25; 
  lean_dec(x_18);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  x_25 = !lean_is_exclusive(x_19);
  if (x_25 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_19, 0);
  x_27 = lean_ctor_get(x_19, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_19);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__9(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:
  {
  lean_object* x_16; lean_object* x_17; 
  x_16 = l_Lean_ParserCompiler_replaceParserTy___rarg(x_1, x_2);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_1);
  x_17 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_3, x_16, x_11, x_12, x_13, x_14, x_15);
  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_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  lean_inc(x_1);
  x_20 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__6___boxed), 8, 1);
  lean_closure_set(x_20, 0, x_1);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_21 = l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(x_4, x_20, x_11, x_12, x_13, x_14, x_19);
  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; uint8_t 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_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_box(0);
  lean_inc(x_5);
  x_25 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_25, 0, x_5);
  lean_ctor_set(x_25, 1, x_24);
  lean_ctor_set(x_25, 2, x_22);
  x_26 = lean_box(0);
  x_27 = 1;
  x_28 = lean_alloc_ctor(0, 3, 1);
  lean_ctor_set(x_28, 0, x_25);
  lean_ctor_set(x_28, 1, x_18);
  lean_ctor_set(x_28, 2, x_26);
  lean_ctor_set_uint8(x_28, sizeof(void*)*3, x_27);
  x_29 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_29, 0, x_28);
  x_30 = lean_st_ref_get(x_14, x_23);
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = lean_ctor_get(x_31, 0);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = l_Lean_Environment_addAndCompile(x_33, x_24, x_29);
  lean_dec(x_29);
  if (lean_obj_tag(x_34) == 0)
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  lean_dec(x_34);
  x_36 = l_Lean_KernelException_toMessageData(x_35, x_24);
  x_37 = lean_st_ref_get(x_14, x_32);
  x_38 = lean_ctor_get(x_37, 1);
  lean_inc(x_38);
  lean_dec(x_37);
  x_39 = lean_ctor_get(x_13, 3);
  lean_inc(x_39);
  x_40 = l_Lean_MessageData_toString(x_36, x_38);
  if (lean_obj_tag(x_40) == 0)
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
  lean_dec(x_39);
  x_41 = lean_ctor_get(x_40, 0);
  lean_inc(x_41);
  x_42 = lean_ctor_get(x_40, 1);
  lean_inc(x_42);
  lean_dec(x_40);
  x_43 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_43, 0, x_41);
  x_44 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_44, 0, x_43);
  x_45 = l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5(x_44, x_11, x_12, x_13, x_14, x_42);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_46 = !lean_is_exclusive(x_45);
  if (x_46 == 0)
  {
  return x_45;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_45, 0);
  x_48 = lean_ctor_get(x_45, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_45);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_50 = !lean_is_exclusive(x_40);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_51 = lean_ctor_get(x_40, 0);
  x_52 = lean_io_error_to_string(x_51);
  x_53 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_53, 0, x_52);
  x_54 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_54, 0, x_53);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_39);
  lean_ctor_set(x_55, 1, x_54);
  lean_ctor_set(x_40, 0, x_55);
  return x_40;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_56 = lean_ctor_get(x_40, 0);
  x_57 = lean_ctor_get(x_40, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_40);
  x_58 = lean_io_error_to_string(x_56);
  x_59 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_59, 0, x_58);
  x_60 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_60, 0, x_59);
  x_61 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_61, 0, x_39);
  lean_ctor_set(x_61, 1, x_60);
  x_62 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_62, 0, x_61);
  lean_ctor_set(x_62, 1, x_57);
  return x_62;
  }
  }
  }
  else
  {
  lean_object* x_63; lean_object* x_64; 
  x_63 = lean_ctor_get(x_34, 0);
  lean_inc(x_63);
  lean_dec(x_34);
  x_64 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__8(x_6, x_7, x_5, x_24, x_8, x_1, x_3, x_9, x_63, x_11, x_12, x_13, x_14, x_32);
  return x_64;
  }
  }
  else
  {
  uint8_t x_65; 
  lean_dec(x_18);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_65 = !lean_is_exclusive(x_21);
  if (x_65 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; 
  x_66 = lean_ctor_get(x_21, 0);
  x_67 = lean_ctor_get(x_21, 1);
  lean_inc(x_67);
  lean_inc(x_66);
  lean_dec(x_21);
  x_68 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_68, 0, x_66);
  lean_ctor_set(x_68, 1, x_67);
  return x_68;
  }
  }
  }
  else
  {
  uint8_t x_69; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_69 = !lean_is_exclusive(x_17);
  if (x_69 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_17, 0);
  x_71 = lean_ctor_get(x_17, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_17);
  x_72 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_72, 0, x_70);
  lean_ctor_set(x_72, 1, x_71);
  return x_72;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__10(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) {
  _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; 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_12 = lean_unsigned_to_nat(0u);
  x_13 = l_Lean_Expr_getAppNumArgsAux(x_1, x_12);
  x_14 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_13);
  x_15 = lean_mk_array(x_13, x_14);
  x_16 = lean_unsigned_to_nat(1u);
  x_17 = lean_nat_sub(x_13, x_16);
  lean_dec(x_13);
  x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_15, x_17);
  x_19 = lean_array_get_size(x_5);
  x_20 = lean_array_get_size(x_18);
  x_21 = l_Nat_min(x_19, x_20);
  lean_dec(x_20);
  lean_dec(x_19);
  lean_inc(x_21);
  x_22 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_22, 0, x_12);
  lean_ctor_set(x_22, 1, x_21);
  lean_ctor_set(x_22, 2, x_16);
  x_23 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__10___rarg(x_2, x_3, x_5, x_18, x_22, x_21, x_12, x_4, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_22);
  lean_dec(x_18);
  if (lean_obj_tag(x_23) == 0)
  {
  uint8_t x_24; 
  x_24 = !lean_is_exclusive(x_23);
  if (x_24 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_23, 0);
  x_26 = lean_ctor_get(x_23, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_23);
  x_27 = lean_alloc_ctor(0, 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; 
  x_28 = !lean_is_exclusive(x_23);
  if (x_28 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_23, 0);
  x_30 = lean_ctor_get(x_23, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_23);
  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_ParserCompiler_compileParserExpr___rarg___lambda__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) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
  x_9 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_10 = lean_box(0);
  x_11 = l_Lean_mkConst(x_9, x_10);
  x_12 = lean_array_get_size(x_2);
  x_13 = lean_nat_dec_le(x_12, x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_unsigned_to_nat(0u);
  x_15 = lean_nat_dec_lt(x_14, x_12);
  if (x_15 == 0)
  {
  lean_object* x_16; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_16 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_16, 0, x_11);
  lean_ctor_set(x_16, 1, x_8);
  return x_16;
  }
  else
  {
  size_t x_17; size_t x_18; lean_object* x_19; 
  x_17 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_18 = 0;
  x_19 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__11___rarg(x_1, x_2, x_17, x_18, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_19;
  }
  }
  else
  {
  lean_object* x_20; uint8_t x_21; 
  x_20 = lean_unsigned_to_nat(0u);
  x_21 = lean_nat_dec_lt(x_20, x_12);
  if (x_21 == 0)
  {
  lean_object* x_22; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_11);
  lean_ctor_set(x_22, 1, x_8);
  return x_22;
  }
  else
  {
  size_t x_23; size_t x_24; lean_object* x_25; 
  x_23 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_24 = 0;
  x_25 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__12___rarg(x_1, x_2, x_23, x_24, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_25;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__12(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; 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; 
  x_13 = lean_unsigned_to_nat(0u);
  x_14 = l_Lean_Expr_getAppNumArgsAux(x_1, x_13);
  x_15 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_14);
  x_16 = lean_mk_array(x_14, x_15);
  x_17 = lean_unsigned_to_nat(1u);
  x_18 = lean_nat_sub(x_14, x_17);
  lean_dec(x_14);
  x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_16, x_18);
  x_20 = lean_array_get_size(x_6);
  x_21 = lean_array_get_size(x_19);
  x_22 = l_Nat_min(x_20, x_21);
  lean_dec(x_21);
  lean_dec(x_20);
  lean_inc(x_22);
  x_23 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_23, 0, x_13);
  lean_ctor_set(x_23, 1, x_22);
  lean_ctor_set(x_23, 2, x_17);
  x_24 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__13___rarg(x_2, x_3, x_4, x_6, x_19, x_23, x_22, x_13, x_5, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_23);
  lean_dec(x_19);
  if (lean_obj_tag(x_24) == 0)
  {
  uint8_t x_25; 
  x_25 = !lean_is_exclusive(x_24);
  if (x_25 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_24, 0);
  x_27 = lean_ctor_get(x_24, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_24);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  else
  {
  uint8_t x_29; 
  x_29 = !lean_is_exclusive(x_24);
  if (x_29 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_24, 0);
  x_31 = lean_ctor_get(x_24, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_24);
  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_ParserCompiler_compileParserExpr___rarg___lambda__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_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) {
  _start:
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  lean_inc(x_3);
  x_15 = l_Lean_ParserCompiler_CombinatorAttribute_setDeclFor(x_1, x_9, x_2, x_3);
  x_16 = l_Lean_setEnv___at_Lean_Meta_addDefaultInstance___spec__1(x_15, x_10, x_11, x_12, x_13, x_14);
  x_17 = lean_ctor_get(x_16, 1);
  lean_inc(x_17);
  lean_dec(x_16);
  x_18 = l_Lean_mkConst(x_3, x_4);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_18);
  x_19 = l_Lean_Meta_inferType(x_18, x_10, x_11, x_12, x_13, x_17);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_box(x_7);
  x_23 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__12___boxed), 12, 5);
  lean_closure_set(x_23, 0, x_5);
  lean_closure_set(x_23, 1, x_6);
  lean_closure_set(x_23, 2, x_22);
  lean_closure_set(x_23, 3, x_8);
  lean_closure_set(x_23, 4, x_18);
  x_24 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_20, x_23, x_10, x_11, x_12, x_13, x_21);
  return x_24;
  }
  else
  {
  uint8_t x_25; 
  lean_dec(x_18);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  x_25 = !lean_is_exclusive(x_19);
  if (x_25 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_19, 0);
  x_27 = lean_ctor_get(x_19, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_19);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__14(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:
  {
  lean_object* x_16; lean_object* x_17; 
  x_16 = l_Lean_ParserCompiler_replaceParserTy___rarg(x_1, x_2);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_1);
  x_17 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_3, x_16, x_11, x_12, x_13, x_14, x_15);
  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_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  lean_inc(x_1);
  x_20 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__11___boxed), 8, 1);
  lean_closure_set(x_20, 0, x_1);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_21 = l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(x_4, x_20, x_11, x_12, x_13, x_14, x_19);
  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; uint8_t 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_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_box(0);
  lean_inc(x_5);
  x_25 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_25, 0, x_5);
  lean_ctor_set(x_25, 1, x_24);
  lean_ctor_set(x_25, 2, x_22);
  x_26 = lean_box(0);
  x_27 = 1;
  x_28 = lean_alloc_ctor(0, 3, 1);
  lean_ctor_set(x_28, 0, x_25);
  lean_ctor_set(x_28, 1, x_18);
  lean_ctor_set(x_28, 2, x_26);
  lean_ctor_set_uint8(x_28, sizeof(void*)*3, x_27);
  x_29 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_29, 0, x_28);
  x_30 = lean_st_ref_get(x_14, x_23);
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = lean_ctor_get(x_31, 0);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = l_Lean_Environment_addAndCompile(x_33, x_24, x_29);
  lean_dec(x_29);
  if (lean_obj_tag(x_34) == 0)
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  lean_dec(x_34);
  x_36 = l_Lean_KernelException_toMessageData(x_35, x_24);
  x_37 = lean_st_ref_get(x_14, x_32);
  x_38 = lean_ctor_get(x_37, 1);
  lean_inc(x_38);
  lean_dec(x_37);
  x_39 = lean_ctor_get(x_13, 3);
  lean_inc(x_39);
  x_40 = l_Lean_MessageData_toString(x_36, x_38);
  if (lean_obj_tag(x_40) == 0)
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
  lean_dec(x_39);
  x_41 = lean_ctor_get(x_40, 0);
  lean_inc(x_41);
  x_42 = lean_ctor_get(x_40, 1);
  lean_inc(x_42);
  lean_dec(x_40);
  x_43 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_43, 0, x_41);
  x_44 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_44, 0, x_43);
  x_45 = l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5(x_44, x_11, x_12, x_13, x_14, x_42);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_46 = !lean_is_exclusive(x_45);
  if (x_46 == 0)
  {
  return x_45;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_45, 0);
  x_48 = lean_ctor_get(x_45, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_45);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_50 = !lean_is_exclusive(x_40);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_51 = lean_ctor_get(x_40, 0);
  x_52 = lean_io_error_to_string(x_51);
  x_53 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_53, 0, x_52);
  x_54 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_54, 0, x_53);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_39);
  lean_ctor_set(x_55, 1, x_54);
  lean_ctor_set(x_40, 0, x_55);
  return x_40;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_56 = lean_ctor_get(x_40, 0);
  x_57 = lean_ctor_get(x_40, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_40);
  x_58 = lean_io_error_to_string(x_56);
  x_59 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_59, 0, x_58);
  x_60 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_60, 0, x_59);
  x_61 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_61, 0, x_39);
  lean_ctor_set(x_61, 1, x_60);
  x_62 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_62, 0, x_61);
  lean_ctor_set(x_62, 1, x_57);
  return x_62;
  }
  }
  }
  else
  {
  lean_object* x_63; lean_object* x_64; 
  x_63 = lean_ctor_get(x_34, 0);
  lean_inc(x_63);
  lean_dec(x_34);
  x_64 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__13(x_6, x_7, x_5, x_24, x_8, x_1, x_3, x_9, x_63, x_11, x_12, x_13, x_14, x_32);
  return x_64;
  }
  }
  else
  {
  uint8_t x_65; 
  lean_dec(x_18);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_65 = !lean_is_exclusive(x_21);
  if (x_65 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; 
  x_66 = lean_ctor_get(x_21, 0);
  x_67 = lean_ctor_get(x_21, 1);
  lean_inc(x_67);
  lean_inc(x_66);
  lean_dec(x_21);
  x_68 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_68, 0, x_66);
  lean_ctor_set(x_68, 1, x_67);
  return x_68;
  }
  }
  }
  else
  {
  uint8_t x_69; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_69 = !lean_is_exclusive(x_17);
  if (x_69 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_17, 0);
  x_71 = lean_ctor_get(x_17, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_17);
  x_72 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_72, 0, x_70);
  lean_ctor_set(x_72, 1, x_71);
  return x_72;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__15(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) {
  _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; 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_12 = lean_unsigned_to_nat(0u);
  x_13 = l_Lean_Expr_getAppNumArgsAux(x_1, x_12);
  x_14 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_13);
  x_15 = lean_mk_array(x_13, x_14);
  x_16 = lean_unsigned_to_nat(1u);
  x_17 = lean_nat_sub(x_13, x_16);
  lean_dec(x_13);
  x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_15, x_17);
  x_19 = lean_array_get_size(x_5);
  x_20 = lean_array_get_size(x_18);
  x_21 = l_Nat_min(x_19, x_20);
  lean_dec(x_20);
  lean_dec(x_19);
  lean_inc(x_21);
  x_22 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_22, 0, x_12);
  lean_ctor_set(x_22, 1, x_21);
  lean_ctor_set(x_22, 2, x_16);
  x_23 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__14___rarg(x_2, x_3, x_5, x_18, x_22, x_21, x_12, x_4, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_22);
  lean_dec(x_18);
  if (lean_obj_tag(x_23) == 0)
  {
  uint8_t x_24; 
  x_24 = !lean_is_exclusive(x_23);
  if (x_24 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_23, 0);
  x_26 = lean_ctor_get(x_23, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_23);
  x_27 = lean_alloc_ctor(0, 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; 
  x_28 = !lean_is_exclusive(x_23);
  if (x_28 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_23, 0);
  x_30 = lean_ctor_get(x_23, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_23);
  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_ParserCompiler_compileParserExpr___rarg___lambda__16(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; uint8_t x_13; 
  x_9 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_10 = lean_box(0);
  x_11 = l_Lean_mkConst(x_9, x_10);
  x_12 = lean_array_get_size(x_2);
  x_13 = lean_nat_dec_le(x_12, x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_unsigned_to_nat(0u);
  x_15 = lean_nat_dec_lt(x_14, x_12);
  if (x_15 == 0)
  {
  lean_object* x_16; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_16 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_16, 0, x_11);
  lean_ctor_set(x_16, 1, x_8);
  return x_16;
  }
  else
  {
  size_t x_17; size_t x_18; lean_object* x_19; 
  x_17 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_18 = 0;
  x_19 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__15___rarg(x_1, x_2, x_17, x_18, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_19;
  }
  }
  else
  {
  lean_object* x_20; uint8_t x_21; 
  x_20 = lean_unsigned_to_nat(0u);
  x_21 = lean_nat_dec_lt(x_20, x_12);
  if (x_21 == 0)
  {
  lean_object* x_22; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_11);
  lean_ctor_set(x_22, 1, x_8);
  return x_22;
  }
  else
  {
  size_t x_23; size_t x_24; lean_object* x_25; 
  x_23 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_24 = 0;
  x_25 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__16___rarg(x_1, x_2, x_23, x_24, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_25;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__17(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; 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; 
  x_13 = lean_unsigned_to_nat(0u);
  x_14 = l_Lean_Expr_getAppNumArgsAux(x_1, x_13);
  x_15 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_14);
  x_16 = lean_mk_array(x_14, x_15);
  x_17 = lean_unsigned_to_nat(1u);
  x_18 = lean_nat_sub(x_14, x_17);
  lean_dec(x_14);
  x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_16, x_18);
  x_20 = lean_array_get_size(x_6);
  x_21 = lean_array_get_size(x_19);
  x_22 = l_Nat_min(x_20, x_21);
  lean_dec(x_21);
  lean_dec(x_20);
  lean_inc(x_22);
  x_23 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_23, 0, x_13);
  lean_ctor_set(x_23, 1, x_22);
  lean_ctor_set(x_23, 2, x_17);
  x_24 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__17___rarg(x_2, x_3, x_4, x_6, x_19, x_23, x_22, x_13, x_5, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_23);
  lean_dec(x_19);
  if (lean_obj_tag(x_24) == 0)
  {
  uint8_t x_25; 
  x_25 = !lean_is_exclusive(x_24);
  if (x_25 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_24, 0);
  x_27 = lean_ctor_get(x_24, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_24);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  else
  {
  uint8_t x_29; 
  x_29 = !lean_is_exclusive(x_24);
  if (x_29 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_24, 0);
  x_31 = lean_ctor_get(x_24, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_24);
  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_ParserCompiler_compileParserExpr___rarg___lambda__18(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_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) {
  _start:
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  lean_inc(x_3);
  x_15 = l_Lean_ParserCompiler_CombinatorAttribute_setDeclFor(x_1, x_9, x_2, x_3);
  x_16 = l_Lean_setEnv___at_Lean_Meta_addDefaultInstance___spec__1(x_15, x_10, x_11, x_12, x_13, x_14);
  x_17 = lean_ctor_get(x_16, 1);
  lean_inc(x_17);
  lean_dec(x_16);
  x_18 = l_Lean_mkConst(x_3, x_4);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_18);
  x_19 = l_Lean_Meta_inferType(x_18, x_10, x_11, x_12, x_13, x_17);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_box(x_7);
  x_23 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__17___boxed), 12, 5);
  lean_closure_set(x_23, 0, x_5);
  lean_closure_set(x_23, 1, x_6);
  lean_closure_set(x_23, 2, x_22);
  lean_closure_set(x_23, 3, x_8);
  lean_closure_set(x_23, 4, x_18);
  x_24 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_20, x_23, x_10, x_11, x_12, x_13, x_21);
  return x_24;
  }
  else
  {
  uint8_t x_25; 
  lean_dec(x_18);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  x_25 = !lean_is_exclusive(x_19);
  if (x_25 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_19, 0);
  x_27 = lean_ctor_get(x_19, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_19);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__19(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:
  {
  lean_object* x_16; lean_object* x_17; 
  x_16 = l_Lean_ParserCompiler_replaceParserTy___rarg(x_1, x_2);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_1);
  x_17 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_3, x_16, x_11, x_12, x_13, x_14, x_15);
  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_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  lean_inc(x_1);
  x_20 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__16___boxed), 8, 1);
  lean_closure_set(x_20, 0, x_1);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_21 = l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(x_4, x_20, x_11, x_12, x_13, x_14, x_19);
  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; uint8_t 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_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_box(0);
  lean_inc(x_5);
  x_25 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_25, 0, x_5);
  lean_ctor_set(x_25, 1, x_24);
  lean_ctor_set(x_25, 2, x_22);
  x_26 = lean_box(0);
  x_27 = 1;
  x_28 = lean_alloc_ctor(0, 3, 1);
  lean_ctor_set(x_28, 0, x_25);
  lean_ctor_set(x_28, 1, x_18);
  lean_ctor_set(x_28, 2, x_26);
  lean_ctor_set_uint8(x_28, sizeof(void*)*3, x_27);
  x_29 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_29, 0, x_28);
  x_30 = lean_st_ref_get(x_14, x_23);
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = lean_ctor_get(x_31, 0);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = l_Lean_Environment_addAndCompile(x_33, x_24, x_29);
  lean_dec(x_29);
  if (lean_obj_tag(x_34) == 0)
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  lean_dec(x_34);
  x_36 = l_Lean_KernelException_toMessageData(x_35, x_24);
  x_37 = lean_st_ref_get(x_14, x_32);
  x_38 = lean_ctor_get(x_37, 1);
  lean_inc(x_38);
  lean_dec(x_37);
  x_39 = lean_ctor_get(x_13, 3);
  lean_inc(x_39);
  x_40 = l_Lean_MessageData_toString(x_36, x_38);
  if (lean_obj_tag(x_40) == 0)
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
  lean_dec(x_39);
  x_41 = lean_ctor_get(x_40, 0);
  lean_inc(x_41);
  x_42 = lean_ctor_get(x_40, 1);
  lean_inc(x_42);
  lean_dec(x_40);
  x_43 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_43, 0, x_41);
  x_44 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_44, 0, x_43);
  x_45 = l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5(x_44, x_11, x_12, x_13, x_14, x_42);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_46 = !lean_is_exclusive(x_45);
  if (x_46 == 0)
  {
  return x_45;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_45, 0);
  x_48 = lean_ctor_get(x_45, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_45);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_50 = !lean_is_exclusive(x_40);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_51 = lean_ctor_get(x_40, 0);
  x_52 = lean_io_error_to_string(x_51);
  x_53 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_53, 0, x_52);
  x_54 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_54, 0, x_53);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_39);
  lean_ctor_set(x_55, 1, x_54);
  lean_ctor_set(x_40, 0, x_55);
  return x_40;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_56 = lean_ctor_get(x_40, 0);
  x_57 = lean_ctor_get(x_40, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_40);
  x_58 = lean_io_error_to_string(x_56);
  x_59 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_59, 0, x_58);
  x_60 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_60, 0, x_59);
  x_61 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_61, 0, x_39);
  lean_ctor_set(x_61, 1, x_60);
  x_62 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_62, 0, x_61);
  lean_ctor_set(x_62, 1, x_57);
  return x_62;
  }
  }
  }
  else
  {
  lean_object* x_63; lean_object* x_64; 
  x_63 = lean_ctor_get(x_34, 0);
  lean_inc(x_63);
  lean_dec(x_34);
  x_64 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__18(x_6, x_7, x_5, x_24, x_8, x_1, x_3, x_9, x_63, x_11, x_12, x_13, x_14, x_32);
  return x_64;
  }
  }
  else
  {
  uint8_t x_65; 
  lean_dec(x_18);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_65 = !lean_is_exclusive(x_21);
  if (x_65 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; 
  x_66 = lean_ctor_get(x_21, 0);
  x_67 = lean_ctor_get(x_21, 1);
  lean_inc(x_67);
  lean_inc(x_66);
  lean_dec(x_21);
  x_68 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_68, 0, x_66);
  lean_ctor_set(x_68, 1, x_67);
  return x_68;
  }
  }
  }
  else
  {
  uint8_t x_69; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_69 = !lean_is_exclusive(x_17);
  if (x_69 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_17, 0);
  x_71 = lean_ctor_get(x_17, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_17);
  x_72 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_72, 0, x_70);
  lean_ctor_set(x_72, 1, x_71);
  return x_72;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__20(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) {
  _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; 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_12 = lean_unsigned_to_nat(0u);
  x_13 = l_Lean_Expr_getAppNumArgsAux(x_1, x_12);
  x_14 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_13);
  x_15 = lean_mk_array(x_13, x_14);
  x_16 = lean_unsigned_to_nat(1u);
  x_17 = lean_nat_sub(x_13, x_16);
  lean_dec(x_13);
  x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_15, x_17);
  x_19 = lean_array_get_size(x_5);
  x_20 = lean_array_get_size(x_18);
  x_21 = l_Nat_min(x_19, x_20);
  lean_dec(x_20);
  lean_dec(x_19);
  lean_inc(x_21);
  x_22 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_22, 0, x_12);
  lean_ctor_set(x_22, 1, x_21);
  lean_ctor_set(x_22, 2, x_16);
  x_23 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__18___rarg(x_2, x_3, x_5, x_18, x_22, x_21, x_12, x_4, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_22);
  lean_dec(x_18);
  if (lean_obj_tag(x_23) == 0)
  {
  uint8_t x_24; 
  x_24 = !lean_is_exclusive(x_23);
  if (x_24 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_23, 0);
  x_26 = lean_ctor_get(x_23, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_23);
  x_27 = lean_alloc_ctor(0, 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; 
  x_28 = !lean_is_exclusive(x_23);
  if (x_28 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_23, 0);
  x_30 = lean_ctor_get(x_23, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_23);
  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_ParserCompiler_compileParserExpr___rarg___lambda__21(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; uint8_t x_13; 
  x_9 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_10 = lean_box(0);
  x_11 = l_Lean_mkConst(x_9, x_10);
  x_12 = lean_array_get_size(x_2);
  x_13 = lean_nat_dec_le(x_12, x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_unsigned_to_nat(0u);
  x_15 = lean_nat_dec_lt(x_14, x_12);
  if (x_15 == 0)
  {
  lean_object* x_16; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_16 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_16, 0, x_11);
  lean_ctor_set(x_16, 1, x_8);
  return x_16;
  }
  else
  {
  size_t x_17; size_t x_18; lean_object* x_19; 
  x_17 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_18 = 0;
  x_19 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__19___rarg(x_1, x_2, x_17, x_18, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_19;
  }
  }
  else
  {
  lean_object* x_20; uint8_t x_21; 
  x_20 = lean_unsigned_to_nat(0u);
  x_21 = lean_nat_dec_lt(x_20, x_12);
  if (x_21 == 0)
  {
  lean_object* x_22; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_11);
  lean_ctor_set(x_22, 1, x_8);
  return x_22;
  }
  else
  {
  size_t x_23; size_t x_24; lean_object* x_25; 
  x_23 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_24 = 0;
  x_25 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__20___rarg(x_1, x_2, x_23, x_24, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_25;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__22(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; 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; 
  x_13 = lean_unsigned_to_nat(0u);
  x_14 = l_Lean_Expr_getAppNumArgsAux(x_1, x_13);
  x_15 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_14);
  x_16 = lean_mk_array(x_14, x_15);
  x_17 = lean_unsigned_to_nat(1u);
  x_18 = lean_nat_sub(x_14, x_17);
  lean_dec(x_14);
  x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_16, x_18);
  x_20 = lean_array_get_size(x_6);
  x_21 = lean_array_get_size(x_19);
  x_22 = l_Nat_min(x_20, x_21);
  lean_dec(x_21);
  lean_dec(x_20);
  lean_inc(x_22);
  x_23 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_23, 0, x_13);
  lean_ctor_set(x_23, 1, x_22);
  lean_ctor_set(x_23, 2, x_17);
  x_24 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__21___rarg(x_2, x_3, x_4, x_6, x_19, x_23, x_22, x_13, x_5, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_23);
  lean_dec(x_19);
  if (lean_obj_tag(x_24) == 0)
  {
  uint8_t x_25; 
  x_25 = !lean_is_exclusive(x_24);
  if (x_25 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_24, 0);
  x_27 = lean_ctor_get(x_24, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_24);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  else
  {
  uint8_t x_29; 
  x_29 = !lean_is_exclusive(x_24);
  if (x_29 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_24, 0);
  x_31 = lean_ctor_get(x_24, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_24);
  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_ParserCompiler_compileParserExpr___rarg___lambda__23(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_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) {
  _start:
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  lean_inc(x_3);
  x_15 = l_Lean_ParserCompiler_CombinatorAttribute_setDeclFor(x_1, x_9, x_2, x_3);
  x_16 = l_Lean_setEnv___at_Lean_Meta_addDefaultInstance___spec__1(x_15, x_10, x_11, x_12, x_13, x_14);
  x_17 = lean_ctor_get(x_16, 1);
  lean_inc(x_17);
  lean_dec(x_16);
  x_18 = l_Lean_mkConst(x_3, x_4);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_18);
  x_19 = l_Lean_Meta_inferType(x_18, x_10, x_11, x_12, x_13, x_17);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_box(x_7);
  x_23 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__22___boxed), 12, 5);
  lean_closure_set(x_23, 0, x_5);
  lean_closure_set(x_23, 1, x_6);
  lean_closure_set(x_23, 2, x_22);
  lean_closure_set(x_23, 3, x_8);
  lean_closure_set(x_23, 4, x_18);
  x_24 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_20, x_23, x_10, x_11, x_12, x_13, x_21);
  return x_24;
  }
  else
  {
  uint8_t x_25; 
  lean_dec(x_18);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  x_25 = !lean_is_exclusive(x_19);
  if (x_25 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_19, 0);
  x_27 = lean_ctor_get(x_19, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_19);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__24(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:
  {
  lean_object* x_16; lean_object* x_17; 
  x_16 = l_Lean_ParserCompiler_replaceParserTy___rarg(x_1, x_2);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_1);
  x_17 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_3, x_16, x_11, x_12, x_13, x_14, x_15);
  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_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  lean_inc(x_1);
  x_20 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__21___boxed), 8, 1);
  lean_closure_set(x_20, 0, x_1);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_21 = l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(x_4, x_20, x_11, x_12, x_13, x_14, x_19);
  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; uint8_t 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_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_box(0);
  lean_inc(x_5);
  x_25 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_25, 0, x_5);
  lean_ctor_set(x_25, 1, x_24);
  lean_ctor_set(x_25, 2, x_22);
  x_26 = lean_box(0);
  x_27 = 1;
  x_28 = lean_alloc_ctor(0, 3, 1);
  lean_ctor_set(x_28, 0, x_25);
  lean_ctor_set(x_28, 1, x_18);
  lean_ctor_set(x_28, 2, x_26);
  lean_ctor_set_uint8(x_28, sizeof(void*)*3, x_27);
  x_29 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_29, 0, x_28);
  x_30 = lean_st_ref_get(x_14, x_23);
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = lean_ctor_get(x_31, 0);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = l_Lean_Environment_addAndCompile(x_33, x_24, x_29);
  lean_dec(x_29);
  if (lean_obj_tag(x_34) == 0)
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  lean_dec(x_34);
  x_36 = l_Lean_KernelException_toMessageData(x_35, x_24);
  x_37 = lean_st_ref_get(x_14, x_32);
  x_38 = lean_ctor_get(x_37, 1);
  lean_inc(x_38);
  lean_dec(x_37);
  x_39 = lean_ctor_get(x_13, 3);
  lean_inc(x_39);
  x_40 = l_Lean_MessageData_toString(x_36, x_38);
  if (lean_obj_tag(x_40) == 0)
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
  lean_dec(x_39);
  x_41 = lean_ctor_get(x_40, 0);
  lean_inc(x_41);
  x_42 = lean_ctor_get(x_40, 1);
  lean_inc(x_42);
  lean_dec(x_40);
  x_43 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_43, 0, x_41);
  x_44 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_44, 0, x_43);
  x_45 = l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5(x_44, x_11, x_12, x_13, x_14, x_42);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_46 = !lean_is_exclusive(x_45);
  if (x_46 == 0)
  {
  return x_45;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_45, 0);
  x_48 = lean_ctor_get(x_45, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_45);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_50 = !lean_is_exclusive(x_40);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_51 = lean_ctor_get(x_40, 0);
  x_52 = lean_io_error_to_string(x_51);
  x_53 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_53, 0, x_52);
  x_54 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_54, 0, x_53);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_39);
  lean_ctor_set(x_55, 1, x_54);
  lean_ctor_set(x_40, 0, x_55);
  return x_40;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_56 = lean_ctor_get(x_40, 0);
  x_57 = lean_ctor_get(x_40, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_40);
  x_58 = lean_io_error_to_string(x_56);
  x_59 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_59, 0, x_58);
  x_60 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_60, 0, x_59);
  x_61 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_61, 0, x_39);
  lean_ctor_set(x_61, 1, x_60);
  x_62 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_62, 0, x_61);
  lean_ctor_set(x_62, 1, x_57);
  return x_62;
  }
  }
  }
  else
  {
  lean_object* x_63; lean_object* x_64; 
  x_63 = lean_ctor_get(x_34, 0);
  lean_inc(x_63);
  lean_dec(x_34);
  x_64 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__23(x_6, x_7, x_5, x_24, x_8, x_1, x_3, x_9, x_63, x_11, x_12, x_13, x_14, x_32);
  return x_64;
  }
  }
  else
  {
  uint8_t x_65; 
  lean_dec(x_18);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_65 = !lean_is_exclusive(x_21);
  if (x_65 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; 
  x_66 = lean_ctor_get(x_21, 0);
  x_67 = lean_ctor_get(x_21, 1);
  lean_inc(x_67);
  lean_inc(x_66);
  lean_dec(x_21);
  x_68 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_68, 0, x_66);
  lean_ctor_set(x_68, 1, x_67);
  return x_68;
  }
  }
  }
  else
  {
  uint8_t x_69; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_69 = !lean_is_exclusive(x_17);
  if (x_69 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_17, 0);
  x_71 = lean_ctor_get(x_17, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_17);
  x_72 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_72, 0, x_70);
  lean_ctor_set(x_72, 1, x_71);
  return x_72;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__25(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) {
  _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; 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_12 = lean_unsigned_to_nat(0u);
  x_13 = l_Lean_Expr_getAppNumArgsAux(x_1, x_12);
  x_14 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_13);
  x_15 = lean_mk_array(x_13, x_14);
  x_16 = lean_unsigned_to_nat(1u);
  x_17 = lean_nat_sub(x_13, x_16);
  lean_dec(x_13);
  x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_15, x_17);
  x_19 = lean_array_get_size(x_5);
  x_20 = lean_array_get_size(x_18);
  x_21 = l_Nat_min(x_19, x_20);
  lean_dec(x_20);
  lean_dec(x_19);
  lean_inc(x_21);
  x_22 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_22, 0, x_12);
  lean_ctor_set(x_22, 1, x_21);
  lean_ctor_set(x_22, 2, x_16);
  x_23 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__22___rarg(x_2, x_3, x_5, x_18, x_22, x_21, x_12, x_4, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_22);
  lean_dec(x_18);
  if (lean_obj_tag(x_23) == 0)
  {
  uint8_t x_24; 
  x_24 = !lean_is_exclusive(x_23);
  if (x_24 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_23, 0);
  x_26 = lean_ctor_get(x_23, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_23);
  x_27 = lean_alloc_ctor(0, 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; 
  x_28 = !lean_is_exclusive(x_23);
  if (x_28 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_23, 0);
  x_30 = lean_ctor_get(x_23, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_23);
  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_ParserCompiler_compileParserExpr___rarg___lambda__26(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:
  {
  lean_object* x_10; 
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_10 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_2, x_4, 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_Meta_mkLambdaFVars(x_3, x_11, x_5, x_6, x_7, x_8, x_12);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  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_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;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__27(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; uint8_t x_13; 
  x_9 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_10 = lean_box(0);
  x_11 = l_Lean_mkConst(x_9, x_10);
  x_12 = lean_array_get_size(x_2);
  x_13 = lean_nat_dec_le(x_12, x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_unsigned_to_nat(0u);
  x_15 = lean_nat_dec_lt(x_14, x_12);
  if (x_15 == 0)
  {
  lean_object* x_16; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_16 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_16, 0, x_11);
  lean_ctor_set(x_16, 1, x_8);
  return x_16;
  }
  else
  {
  size_t x_17; size_t x_18; lean_object* x_19; 
  x_17 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_18 = 0;
  x_19 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__23___rarg(x_1, x_2, x_17, x_18, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_19;
  }
  }
  else
  {
  lean_object* x_20; uint8_t x_21; 
  x_20 = lean_unsigned_to_nat(0u);
  x_21 = lean_nat_dec_lt(x_20, x_12);
  if (x_21 == 0)
  {
  lean_object* x_22; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_11);
  lean_ctor_set(x_22, 1, x_8);
  return x_22;
  }
  else
  {
  size_t x_23; size_t x_24; lean_object* x_25; 
  x_23 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_24 = 0;
  x_25 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__24___rarg(x_1, x_2, x_23, x_24, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_25;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__28(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; 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; 
  x_13 = lean_unsigned_to_nat(0u);
  x_14 = l_Lean_Expr_getAppNumArgsAux(x_1, x_13);
  x_15 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_14);
  x_16 = lean_mk_array(x_14, x_15);
  x_17 = lean_unsigned_to_nat(1u);
  x_18 = lean_nat_sub(x_14, x_17);
  lean_dec(x_14);
  x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_16, x_18);
  x_20 = lean_array_get_size(x_6);
  x_21 = lean_array_get_size(x_19);
  x_22 = l_Nat_min(x_20, x_21);
  lean_dec(x_21);
  lean_dec(x_20);
  lean_inc(x_22);
  x_23 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_23, 0, x_13);
  lean_ctor_set(x_23, 1, x_22);
  lean_ctor_set(x_23, 2, x_17);
  x_24 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__25___rarg(x_2, x_3, x_4, x_6, x_19, x_23, x_22, x_13, x_5, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_23);
  lean_dec(x_19);
  if (lean_obj_tag(x_24) == 0)
  {
  uint8_t x_25; 
  x_25 = !lean_is_exclusive(x_24);
  if (x_25 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_24, 0);
  x_27 = lean_ctor_get(x_24, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_24);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  else
  {
  uint8_t x_29; 
  x_29 = !lean_is_exclusive(x_24);
  if (x_29 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_24, 0);
  x_31 = lean_ctor_get(x_24, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_24);
  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_ParserCompiler_compileParserExpr___rarg___lambda__29(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_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) {
  _start:
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  lean_inc(x_3);
  x_15 = l_Lean_ParserCompiler_CombinatorAttribute_setDeclFor(x_1, x_9, x_2, x_3);
  x_16 = l_Lean_setEnv___at_Lean_Meta_addDefaultInstance___spec__1(x_15, x_10, x_11, x_12, x_13, x_14);
  x_17 = lean_ctor_get(x_16, 1);
  lean_inc(x_17);
  lean_dec(x_16);
  x_18 = l_Lean_mkConst(x_3, x_4);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_18);
  x_19 = l_Lean_Meta_inferType(x_18, x_10, x_11, x_12, x_13, x_17);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_box(x_7);
  x_23 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__28___boxed), 12, 5);
  lean_closure_set(x_23, 0, x_5);
  lean_closure_set(x_23, 1, x_6);
  lean_closure_set(x_23, 2, x_22);
  lean_closure_set(x_23, 3, x_8);
  lean_closure_set(x_23, 4, x_18);
  x_24 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_20, x_23, x_10, x_11, x_12, x_13, x_21);
  return x_24;
  }
  else
  {
  uint8_t x_25; 
  lean_dec(x_18);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  x_25 = !lean_is_exclusive(x_19);
  if (x_25 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_19, 0);
  x_27 = lean_ctor_get(x_19, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_19);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__30(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:
  {
  lean_object* x_16; lean_object* x_17; 
  x_16 = l_Lean_ParserCompiler_replaceParserTy___rarg(x_1, x_2);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_1);
  x_17 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_3, x_16, x_11, x_12, x_13, x_14, x_15);
  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_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  lean_inc(x_1);
  x_20 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__27___boxed), 8, 1);
  lean_closure_set(x_20, 0, x_1);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_21 = l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(x_4, x_20, x_11, x_12, x_13, x_14, x_19);
  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; uint8_t 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_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_box(0);
  lean_inc(x_5);
  x_25 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_25, 0, x_5);
  lean_ctor_set(x_25, 1, x_24);
  lean_ctor_set(x_25, 2, x_22);
  x_26 = lean_box(0);
  x_27 = 1;
  x_28 = lean_alloc_ctor(0, 3, 1);
  lean_ctor_set(x_28, 0, x_25);
  lean_ctor_set(x_28, 1, x_18);
  lean_ctor_set(x_28, 2, x_26);
  lean_ctor_set_uint8(x_28, sizeof(void*)*3, x_27);
  x_29 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_29, 0, x_28);
  x_30 = lean_st_ref_get(x_14, x_23);
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = lean_ctor_get(x_31, 0);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = l_Lean_Environment_addAndCompile(x_33, x_24, x_29);
  lean_dec(x_29);
  if (lean_obj_tag(x_34) == 0)
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  lean_dec(x_34);
  x_36 = l_Lean_KernelException_toMessageData(x_35, x_24);
  x_37 = lean_st_ref_get(x_14, x_32);
  x_38 = lean_ctor_get(x_37, 1);
  lean_inc(x_38);
  lean_dec(x_37);
  x_39 = lean_ctor_get(x_13, 3);
  lean_inc(x_39);
  x_40 = l_Lean_MessageData_toString(x_36, x_38);
  if (lean_obj_tag(x_40) == 0)
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
  lean_dec(x_39);
  x_41 = lean_ctor_get(x_40, 0);
  lean_inc(x_41);
  x_42 = lean_ctor_get(x_40, 1);
  lean_inc(x_42);
  lean_dec(x_40);
  x_43 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_43, 0, x_41);
  x_44 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_44, 0, x_43);
  x_45 = l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5(x_44, x_11, x_12, x_13, x_14, x_42);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_46 = !lean_is_exclusive(x_45);
  if (x_46 == 0)
  {
  return x_45;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_45, 0);
  x_48 = lean_ctor_get(x_45, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_45);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_50 = !lean_is_exclusive(x_40);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_51 = lean_ctor_get(x_40, 0);
  x_52 = lean_io_error_to_string(x_51);
  x_53 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_53, 0, x_52);
  x_54 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_54, 0, x_53);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_39);
  lean_ctor_set(x_55, 1, x_54);
  lean_ctor_set(x_40, 0, x_55);
  return x_40;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_56 = lean_ctor_get(x_40, 0);
  x_57 = lean_ctor_get(x_40, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_40);
  x_58 = lean_io_error_to_string(x_56);
  x_59 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_59, 0, x_58);
  x_60 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_60, 0, x_59);
  x_61 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_61, 0, x_39);
  lean_ctor_set(x_61, 1, x_60);
  x_62 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_62, 0, x_61);
  lean_ctor_set(x_62, 1, x_57);
  return x_62;
  }
  }
  }
  else
  {
  lean_object* x_63; lean_object* x_64; 
  x_63 = lean_ctor_get(x_34, 0);
  lean_inc(x_63);
  lean_dec(x_34);
  x_64 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__29(x_6, x_7, x_5, x_24, x_8, x_1, x_3, x_9, x_63, x_11, x_12, x_13, x_14, x_32);
  return x_64;
  }
  }
  else
  {
  uint8_t x_65; 
  lean_dec(x_18);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_65 = !lean_is_exclusive(x_21);
  if (x_65 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; 
  x_66 = lean_ctor_get(x_21, 0);
  x_67 = lean_ctor_get(x_21, 1);
  lean_inc(x_67);
  lean_inc(x_66);
  lean_dec(x_21);
  x_68 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_68, 0, x_66);
  lean_ctor_set(x_68, 1, x_67);
  return x_68;
  }
  }
  }
  else
  {
  uint8_t x_69; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_69 = !lean_is_exclusive(x_17);
  if (x_69 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_17, 0);
  x_71 = lean_ctor_get(x_17, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_17);
  x_72 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_72, 0, x_70);
  lean_ctor_set(x_72, 1, x_71);
  return x_72;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__31(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) {
  _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; 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_12 = lean_unsigned_to_nat(0u);
  x_13 = l_Lean_Expr_getAppNumArgsAux(x_1, x_12);
  x_14 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_13);
  x_15 = lean_mk_array(x_13, x_14);
  x_16 = lean_unsigned_to_nat(1u);
  x_17 = lean_nat_sub(x_13, x_16);
  lean_dec(x_13);
  x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_15, x_17);
  x_19 = lean_array_get_size(x_5);
  x_20 = lean_array_get_size(x_18);
  x_21 = l_Nat_min(x_19, x_20);
  lean_dec(x_20);
  lean_dec(x_19);
  lean_inc(x_21);
  x_22 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_22, 0, x_12);
  lean_ctor_set(x_22, 1, x_21);
  lean_ctor_set(x_22, 2, x_16);
  x_23 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__26___rarg(x_2, x_3, x_5, x_18, x_22, x_21, x_12, x_4, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_22);
  lean_dec(x_18);
  if (lean_obj_tag(x_23) == 0)
  {
  uint8_t x_24; 
  x_24 = !lean_is_exclusive(x_23);
  if (x_24 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_23, 0);
  x_26 = lean_ctor_get(x_23, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_23);
  x_27 = lean_alloc_ctor(0, 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; 
  x_28 = !lean_is_exclusive(x_23);
  if (x_28 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_23, 0);
  x_30 = lean_ctor_get(x_23, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_23);
  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_ParserCompiler_compileParserExpr___rarg___lambda__32(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; uint8_t x_13; 
  x_9 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_10 = lean_box(0);
  x_11 = l_Lean_mkConst(x_9, x_10);
  x_12 = lean_array_get_size(x_2);
  x_13 = lean_nat_dec_le(x_12, x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_unsigned_to_nat(0u);
  x_15 = lean_nat_dec_lt(x_14, x_12);
  if (x_15 == 0)
  {
  lean_object* x_16; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_16 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_16, 0, x_11);
  lean_ctor_set(x_16, 1, x_8);
  return x_16;
  }
  else
  {
  size_t x_17; size_t x_18; lean_object* x_19; 
  x_17 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_18 = 0;
  x_19 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__27___rarg(x_1, x_2, x_17, x_18, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_19;
  }
  }
  else
  {
  lean_object* x_20; uint8_t x_21; 
  x_20 = lean_unsigned_to_nat(0u);
  x_21 = lean_nat_dec_lt(x_20, x_12);
  if (x_21 == 0)
  {
  lean_object* x_22; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_11);
  lean_ctor_set(x_22, 1, x_8);
  return x_22;
  }
  else
  {
  size_t x_23; size_t x_24; lean_object* x_25; 
  x_23 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_24 = 0;
  x_25 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__28___rarg(x_1, x_2, x_23, x_24, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_25;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__33(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; 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; 
  x_13 = lean_unsigned_to_nat(0u);
  x_14 = l_Lean_Expr_getAppNumArgsAux(x_1, x_13);
  x_15 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_14);
  x_16 = lean_mk_array(x_14, x_15);
  x_17 = lean_unsigned_to_nat(1u);
  x_18 = lean_nat_sub(x_14, x_17);
  lean_dec(x_14);
  x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_16, x_18);
  x_20 = lean_array_get_size(x_6);
  x_21 = lean_array_get_size(x_19);
  x_22 = l_Nat_min(x_20, x_21);
  lean_dec(x_21);
  lean_dec(x_20);
  lean_inc(x_22);
  x_23 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_23, 0, x_13);
  lean_ctor_set(x_23, 1, x_22);
  lean_ctor_set(x_23, 2, x_17);
  x_24 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__29___rarg(x_2, x_3, x_4, x_6, x_19, x_23, x_22, x_13, x_5, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_23);
  lean_dec(x_19);
  if (lean_obj_tag(x_24) == 0)
  {
  uint8_t x_25; 
  x_25 = !lean_is_exclusive(x_24);
  if (x_25 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_24, 0);
  x_27 = lean_ctor_get(x_24, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_24);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  else
  {
  uint8_t x_29; 
  x_29 = !lean_is_exclusive(x_24);
  if (x_29 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_24, 0);
  x_31 = lean_ctor_get(x_24, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_24);
  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_ParserCompiler_compileParserExpr___rarg___lambda__34(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_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) {
  _start:
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  lean_inc(x_3);
  x_15 = l_Lean_ParserCompiler_CombinatorAttribute_setDeclFor(x_1, x_9, x_2, x_3);
  x_16 = l_Lean_setEnv___at_Lean_Meta_addDefaultInstance___spec__1(x_15, x_10, x_11, x_12, x_13, x_14);
  x_17 = lean_ctor_get(x_16, 1);
  lean_inc(x_17);
  lean_dec(x_16);
  x_18 = l_Lean_mkConst(x_3, x_4);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_18);
  x_19 = l_Lean_Meta_inferType(x_18, x_10, x_11, x_12, x_13, x_17);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_box(x_7);
  x_23 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__33___boxed), 12, 5);
  lean_closure_set(x_23, 0, x_5);
  lean_closure_set(x_23, 1, x_6);
  lean_closure_set(x_23, 2, x_22);
  lean_closure_set(x_23, 3, x_8);
  lean_closure_set(x_23, 4, x_18);
  x_24 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_20, x_23, x_10, x_11, x_12, x_13, x_21);
  return x_24;
  }
  else
  {
  uint8_t x_25; 
  lean_dec(x_18);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  x_25 = !lean_is_exclusive(x_19);
  if (x_25 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_19, 0);
  x_27 = lean_ctor_get(x_19, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_19);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__35(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:
  {
  lean_object* x_16; lean_object* x_17; 
  x_16 = l_Lean_ParserCompiler_replaceParserTy___rarg(x_1, x_2);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_1);
  x_17 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_3, x_16, x_11, x_12, x_13, x_14, x_15);
  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_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  lean_inc(x_1);
  x_20 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__32___boxed), 8, 1);
  lean_closure_set(x_20, 0, x_1);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_21 = l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(x_4, x_20, x_11, x_12, x_13, x_14, x_19);
  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; uint8_t 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_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_box(0);
  lean_inc(x_5);
  x_25 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_25, 0, x_5);
  lean_ctor_set(x_25, 1, x_24);
  lean_ctor_set(x_25, 2, x_22);
  x_26 = lean_box(0);
  x_27 = 1;
  x_28 = lean_alloc_ctor(0, 3, 1);
  lean_ctor_set(x_28, 0, x_25);
  lean_ctor_set(x_28, 1, x_18);
  lean_ctor_set(x_28, 2, x_26);
  lean_ctor_set_uint8(x_28, sizeof(void*)*3, x_27);
  x_29 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_29, 0, x_28);
  x_30 = lean_st_ref_get(x_14, x_23);
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = lean_ctor_get(x_31, 0);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = l_Lean_Environment_addAndCompile(x_33, x_24, x_29);
  lean_dec(x_29);
  if (lean_obj_tag(x_34) == 0)
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  lean_dec(x_34);
  x_36 = l_Lean_KernelException_toMessageData(x_35, x_24);
  x_37 = lean_st_ref_get(x_14, x_32);
  x_38 = lean_ctor_get(x_37, 1);
  lean_inc(x_38);
  lean_dec(x_37);
  x_39 = lean_ctor_get(x_13, 3);
  lean_inc(x_39);
  x_40 = l_Lean_MessageData_toString(x_36, x_38);
  if (lean_obj_tag(x_40) == 0)
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
  lean_dec(x_39);
  x_41 = lean_ctor_get(x_40, 0);
  lean_inc(x_41);
  x_42 = lean_ctor_get(x_40, 1);
  lean_inc(x_42);
  lean_dec(x_40);
  x_43 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_43, 0, x_41);
  x_44 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_44, 0, x_43);
  x_45 = l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5(x_44, x_11, x_12, x_13, x_14, x_42);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_46 = !lean_is_exclusive(x_45);
  if (x_46 == 0)
  {
  return x_45;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_45, 0);
  x_48 = lean_ctor_get(x_45, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_45);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_50 = !lean_is_exclusive(x_40);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_51 = lean_ctor_get(x_40, 0);
  x_52 = lean_io_error_to_string(x_51);
  x_53 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_53, 0, x_52);
  x_54 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_54, 0, x_53);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_39);
  lean_ctor_set(x_55, 1, x_54);
  lean_ctor_set(x_40, 0, x_55);
  return x_40;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_56 = lean_ctor_get(x_40, 0);
  x_57 = lean_ctor_get(x_40, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_40);
  x_58 = lean_io_error_to_string(x_56);
  x_59 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_59, 0, x_58);
  x_60 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_60, 0, x_59);
  x_61 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_61, 0, x_39);
  lean_ctor_set(x_61, 1, x_60);
  x_62 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_62, 0, x_61);
  lean_ctor_set(x_62, 1, x_57);
  return x_62;
  }
  }
  }
  else
  {
  lean_object* x_63; lean_object* x_64; 
  x_63 = lean_ctor_get(x_34, 0);
  lean_inc(x_63);
  lean_dec(x_34);
  x_64 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__34(x_6, x_7, x_5, x_24, x_8, x_1, x_3, x_9, x_63, x_11, x_12, x_13, x_14, x_32);
  return x_64;
  }
  }
  else
  {
  uint8_t x_65; 
  lean_dec(x_18);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_65 = !lean_is_exclusive(x_21);
  if (x_65 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; 
  x_66 = lean_ctor_get(x_21, 0);
  x_67 = lean_ctor_get(x_21, 1);
  lean_inc(x_67);
  lean_inc(x_66);
  lean_dec(x_21);
  x_68 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_68, 0, x_66);
  lean_ctor_set(x_68, 1, x_67);
  return x_68;
  }
  }
  }
  else
  {
  uint8_t x_69; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_69 = !lean_is_exclusive(x_17);
  if (x_69 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_17, 0);
  x_71 = lean_ctor_get(x_17, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_17);
  x_72 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_72, 0, x_70);
  lean_ctor_set(x_72, 1, x_71);
  return x_72;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__36(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) {
  _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; 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_12 = lean_unsigned_to_nat(0u);
  x_13 = l_Lean_Expr_getAppNumArgsAux(x_1, x_12);
  x_14 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_13);
  x_15 = lean_mk_array(x_13, x_14);
  x_16 = lean_unsigned_to_nat(1u);
  x_17 = lean_nat_sub(x_13, x_16);
  lean_dec(x_13);
  x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_15, x_17);
  x_19 = lean_array_get_size(x_5);
  x_20 = lean_array_get_size(x_18);
  x_21 = l_Nat_min(x_19, x_20);
  lean_dec(x_20);
  lean_dec(x_19);
  lean_inc(x_21);
  x_22 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_22, 0, x_12);
  lean_ctor_set(x_22, 1, x_21);
  lean_ctor_set(x_22, 2, x_16);
  x_23 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__30___rarg(x_2, x_3, x_5, x_18, x_22, x_21, x_12, x_4, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_22);
  lean_dec(x_18);
  if (lean_obj_tag(x_23) == 0)
  {
  uint8_t x_24; 
  x_24 = !lean_is_exclusive(x_23);
  if (x_24 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_23, 0);
  x_26 = lean_ctor_get(x_23, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_23);
  x_27 = lean_alloc_ctor(0, 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; 
  x_28 = !lean_is_exclusive(x_23);
  if (x_28 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_23, 0);
  x_30 = lean_ctor_get(x_23, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_23);
  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_ParserCompiler_compileParserExpr___rarg___lambda__37(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; uint8_t x_13; 
  x_9 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_10 = lean_box(0);
  x_11 = l_Lean_mkConst(x_9, x_10);
  x_12 = lean_array_get_size(x_2);
  x_13 = lean_nat_dec_le(x_12, x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_unsigned_to_nat(0u);
  x_15 = lean_nat_dec_lt(x_14, x_12);
  if (x_15 == 0)
  {
  lean_object* x_16; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_16 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_16, 0, x_11);
  lean_ctor_set(x_16, 1, x_8);
  return x_16;
  }
  else
  {
  size_t x_17; size_t x_18; lean_object* x_19; 
  x_17 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_18 = 0;
  x_19 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__31___rarg(x_1, x_2, x_17, x_18, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_19;
  }
  }
  else
  {
  lean_object* x_20; uint8_t x_21; 
  x_20 = lean_unsigned_to_nat(0u);
  x_21 = lean_nat_dec_lt(x_20, x_12);
  if (x_21 == 0)
  {
  lean_object* x_22; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_11);
  lean_ctor_set(x_22, 1, x_8);
  return x_22;
  }
  else
  {
  size_t x_23; size_t x_24; lean_object* x_25; 
  x_23 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_24 = 0;
  x_25 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__32___rarg(x_1, x_2, x_23, x_24, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_25;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__38(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; 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; 
  x_13 = lean_unsigned_to_nat(0u);
  x_14 = l_Lean_Expr_getAppNumArgsAux(x_1, x_13);
  x_15 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_14);
  x_16 = lean_mk_array(x_14, x_15);
  x_17 = lean_unsigned_to_nat(1u);
  x_18 = lean_nat_sub(x_14, x_17);
  lean_dec(x_14);
  x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_16, x_18);
  x_20 = lean_array_get_size(x_6);
  x_21 = lean_array_get_size(x_19);
  x_22 = l_Nat_min(x_20, x_21);
  lean_dec(x_21);
  lean_dec(x_20);
  lean_inc(x_22);
  x_23 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_23, 0, x_13);
  lean_ctor_set(x_23, 1, x_22);
  lean_ctor_set(x_23, 2, x_17);
  x_24 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__33___rarg(x_2, x_3, x_4, x_6, x_19, x_23, x_22, x_13, x_5, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_23);
  lean_dec(x_19);
  if (lean_obj_tag(x_24) == 0)
  {
  uint8_t x_25; 
  x_25 = !lean_is_exclusive(x_24);
  if (x_25 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_24, 0);
  x_27 = lean_ctor_get(x_24, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_24);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  else
  {
  uint8_t x_29; 
  x_29 = !lean_is_exclusive(x_24);
  if (x_29 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_24, 0);
  x_31 = lean_ctor_get(x_24, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_24);
  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_ParserCompiler_compileParserExpr___rarg___lambda__39(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_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) {
  _start:
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  lean_inc(x_3);
  x_15 = l_Lean_ParserCompiler_CombinatorAttribute_setDeclFor(x_1, x_9, x_2, x_3);
  x_16 = l_Lean_setEnv___at_Lean_Meta_addDefaultInstance___spec__1(x_15, x_10, x_11, x_12, x_13, x_14);
  x_17 = lean_ctor_get(x_16, 1);
  lean_inc(x_17);
  lean_dec(x_16);
  x_18 = l_Lean_mkConst(x_3, x_4);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_18);
  x_19 = l_Lean_Meta_inferType(x_18, x_10, x_11, x_12, x_13, x_17);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_box(x_7);
  x_23 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__38___boxed), 12, 5);
  lean_closure_set(x_23, 0, x_5);
  lean_closure_set(x_23, 1, x_6);
  lean_closure_set(x_23, 2, x_22);
  lean_closure_set(x_23, 3, x_8);
  lean_closure_set(x_23, 4, x_18);
  x_24 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_20, x_23, x_10, x_11, x_12, x_13, x_21);
  return x_24;
  }
  else
  {
  uint8_t x_25; 
  lean_dec(x_18);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  x_25 = !lean_is_exclusive(x_19);
  if (x_25 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_19, 0);
  x_27 = lean_ctor_get(x_19, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_19);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__40(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:
  {
  lean_object* x_16; lean_object* x_17; 
  x_16 = l_Lean_ParserCompiler_replaceParserTy___rarg(x_1, x_2);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_1);
  x_17 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_3, x_16, x_11, x_12, x_13, x_14, x_15);
  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_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  lean_inc(x_1);
  x_20 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__37___boxed), 8, 1);
  lean_closure_set(x_20, 0, x_1);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_21 = l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(x_4, x_20, x_11, x_12, x_13, x_14, x_19);
  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; uint8_t 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_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_box(0);
  lean_inc(x_5);
  x_25 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_25, 0, x_5);
  lean_ctor_set(x_25, 1, x_24);
  lean_ctor_set(x_25, 2, x_22);
  x_26 = lean_box(0);
  x_27 = 1;
  x_28 = lean_alloc_ctor(0, 3, 1);
  lean_ctor_set(x_28, 0, x_25);
  lean_ctor_set(x_28, 1, x_18);
  lean_ctor_set(x_28, 2, x_26);
  lean_ctor_set_uint8(x_28, sizeof(void*)*3, x_27);
  x_29 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_29, 0, x_28);
  x_30 = lean_st_ref_get(x_14, x_23);
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = lean_ctor_get(x_31, 0);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = l_Lean_Environment_addAndCompile(x_33, x_24, x_29);
  lean_dec(x_29);
  if (lean_obj_tag(x_34) == 0)
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  lean_dec(x_34);
  x_36 = l_Lean_KernelException_toMessageData(x_35, x_24);
  x_37 = lean_st_ref_get(x_14, x_32);
  x_38 = lean_ctor_get(x_37, 1);
  lean_inc(x_38);
  lean_dec(x_37);
  x_39 = lean_ctor_get(x_13, 3);
  lean_inc(x_39);
  x_40 = l_Lean_MessageData_toString(x_36, x_38);
  if (lean_obj_tag(x_40) == 0)
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
  lean_dec(x_39);
  x_41 = lean_ctor_get(x_40, 0);
  lean_inc(x_41);
  x_42 = lean_ctor_get(x_40, 1);
  lean_inc(x_42);
  lean_dec(x_40);
  x_43 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_43, 0, x_41);
  x_44 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_44, 0, x_43);
  x_45 = l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5(x_44, x_11, x_12, x_13, x_14, x_42);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_46 = !lean_is_exclusive(x_45);
  if (x_46 == 0)
  {
  return x_45;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_45, 0);
  x_48 = lean_ctor_get(x_45, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_45);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_50 = !lean_is_exclusive(x_40);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_51 = lean_ctor_get(x_40, 0);
  x_52 = lean_io_error_to_string(x_51);
  x_53 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_53, 0, x_52);
  x_54 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_54, 0, x_53);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_39);
  lean_ctor_set(x_55, 1, x_54);
  lean_ctor_set(x_40, 0, x_55);
  return x_40;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_56 = lean_ctor_get(x_40, 0);
  x_57 = lean_ctor_get(x_40, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_40);
  x_58 = lean_io_error_to_string(x_56);
  x_59 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_59, 0, x_58);
  x_60 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_60, 0, x_59);
  x_61 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_61, 0, x_39);
  lean_ctor_set(x_61, 1, x_60);
  x_62 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_62, 0, x_61);
  lean_ctor_set(x_62, 1, x_57);
  return x_62;
  }
  }
  }
  else
  {
  lean_object* x_63; lean_object* x_64; 
  x_63 = lean_ctor_get(x_34, 0);
  lean_inc(x_63);
  lean_dec(x_34);
  x_64 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__39(x_6, x_7, x_5, x_24, x_8, x_1, x_3, x_9, x_63, x_11, x_12, x_13, x_14, x_32);
  return x_64;
  }
  }
  else
  {
  uint8_t x_65; 
  lean_dec(x_18);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_65 = !lean_is_exclusive(x_21);
  if (x_65 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; 
  x_66 = lean_ctor_get(x_21, 0);
  x_67 = lean_ctor_get(x_21, 1);
  lean_inc(x_67);
  lean_inc(x_66);
  lean_dec(x_21);
  x_68 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_68, 0, x_66);
  lean_ctor_set(x_68, 1, x_67);
  return x_68;
  }
  }
  }
  else
  {
  uint8_t x_69; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_69 = !lean_is_exclusive(x_17);
  if (x_69 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_17, 0);
  x_71 = lean_ctor_get(x_17, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_17);
  x_72 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_72, 0, x_70);
  lean_ctor_set(x_72, 1, x_71);
  return x_72;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__41(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) {
  _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; 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_12 = lean_unsigned_to_nat(0u);
  x_13 = l_Lean_Expr_getAppNumArgsAux(x_1, x_12);
  x_14 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_13);
  x_15 = lean_mk_array(x_13, x_14);
  x_16 = lean_unsigned_to_nat(1u);
  x_17 = lean_nat_sub(x_13, x_16);
  lean_dec(x_13);
  x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_15, x_17);
  x_19 = lean_array_get_size(x_5);
  x_20 = lean_array_get_size(x_18);
  x_21 = l_Nat_min(x_19, x_20);
  lean_dec(x_20);
  lean_dec(x_19);
  lean_inc(x_21);
  x_22 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_22, 0, x_12);
  lean_ctor_set(x_22, 1, x_21);
  lean_ctor_set(x_22, 2, x_16);
  x_23 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__34___rarg(x_2, x_3, x_5, x_18, x_22, x_21, x_12, x_4, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_22);
  lean_dec(x_18);
  if (lean_obj_tag(x_23) == 0)
  {
  uint8_t x_24; 
  x_24 = !lean_is_exclusive(x_23);
  if (x_24 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_23, 0);
  x_26 = lean_ctor_get(x_23, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_23);
  x_27 = lean_alloc_ctor(0, 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; 
  x_28 = !lean_is_exclusive(x_23);
  if (x_28 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_23, 0);
  x_30 = lean_ctor_get(x_23, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_23);
  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_ParserCompiler_compileParserExpr___rarg___lambda__42(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; uint8_t x_13; 
  x_9 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_10 = lean_box(0);
  x_11 = l_Lean_mkConst(x_9, x_10);
  x_12 = lean_array_get_size(x_2);
  x_13 = lean_nat_dec_le(x_12, x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_unsigned_to_nat(0u);
  x_15 = lean_nat_dec_lt(x_14, x_12);
  if (x_15 == 0)
  {
  lean_object* x_16; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_16 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_16, 0, x_11);
  lean_ctor_set(x_16, 1, x_8);
  return x_16;
  }
  else
  {
  size_t x_17; size_t x_18; lean_object* x_19; 
  x_17 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_18 = 0;
  x_19 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__35___rarg(x_1, x_2, x_17, x_18, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_19;
  }
  }
  else
  {
  lean_object* x_20; uint8_t x_21; 
  x_20 = lean_unsigned_to_nat(0u);
  x_21 = lean_nat_dec_lt(x_20, x_12);
  if (x_21 == 0)
  {
  lean_object* x_22; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_11);
  lean_ctor_set(x_22, 1, x_8);
  return x_22;
  }
  else
  {
  size_t x_23; size_t x_24; lean_object* x_25; 
  x_23 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_24 = 0;
  x_25 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__36___rarg(x_1, x_2, x_23, x_24, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_25;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__43(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; 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; 
  x_13 = lean_unsigned_to_nat(0u);
  x_14 = l_Lean_Expr_getAppNumArgsAux(x_1, x_13);
  x_15 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_14);
  x_16 = lean_mk_array(x_14, x_15);
  x_17 = lean_unsigned_to_nat(1u);
  x_18 = lean_nat_sub(x_14, x_17);
  lean_dec(x_14);
  x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_16, x_18);
  x_20 = lean_array_get_size(x_6);
  x_21 = lean_array_get_size(x_19);
  x_22 = l_Nat_min(x_20, x_21);
  lean_dec(x_21);
  lean_dec(x_20);
  lean_inc(x_22);
  x_23 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_23, 0, x_13);
  lean_ctor_set(x_23, 1, x_22);
  lean_ctor_set(x_23, 2, x_17);
  x_24 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__37___rarg(x_2, x_3, x_4, x_6, x_19, x_23, x_22, x_13, x_5, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_23);
  lean_dec(x_19);
  if (lean_obj_tag(x_24) == 0)
  {
  uint8_t x_25; 
  x_25 = !lean_is_exclusive(x_24);
  if (x_25 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_24, 0);
  x_27 = lean_ctor_get(x_24, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_24);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  else
  {
  uint8_t x_29; 
  x_29 = !lean_is_exclusive(x_24);
  if (x_29 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_24, 0);
  x_31 = lean_ctor_get(x_24, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_24);
  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_ParserCompiler_compileParserExpr___rarg___lambda__44(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_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) {
  _start:
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  lean_inc(x_3);
  x_15 = l_Lean_ParserCompiler_CombinatorAttribute_setDeclFor(x_1, x_9, x_2, x_3);
  x_16 = l_Lean_setEnv___at_Lean_Meta_addDefaultInstance___spec__1(x_15, x_10, x_11, x_12, x_13, x_14);
  x_17 = lean_ctor_get(x_16, 1);
  lean_inc(x_17);
  lean_dec(x_16);
  x_18 = l_Lean_mkConst(x_3, x_4);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_18);
  x_19 = l_Lean_Meta_inferType(x_18, x_10, x_11, x_12, x_13, x_17);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_box(x_7);
  x_23 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__43___boxed), 12, 5);
  lean_closure_set(x_23, 0, x_5);
  lean_closure_set(x_23, 1, x_6);
  lean_closure_set(x_23, 2, x_22);
  lean_closure_set(x_23, 3, x_8);
  lean_closure_set(x_23, 4, x_18);
  x_24 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_20, x_23, x_10, x_11, x_12, x_13, x_21);
  return x_24;
  }
  else
  {
  uint8_t x_25; 
  lean_dec(x_18);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  x_25 = !lean_is_exclusive(x_19);
  if (x_25 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_19, 0);
  x_27 = lean_ctor_get(x_19, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_19);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__45(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:
  {
  lean_object* x_16; lean_object* x_17; 
  x_16 = l_Lean_ParserCompiler_replaceParserTy___rarg(x_1, x_2);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_1);
  x_17 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_3, x_16, x_11, x_12, x_13, x_14, x_15);
  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_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  lean_inc(x_1);
  x_20 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__42___boxed), 8, 1);
  lean_closure_set(x_20, 0, x_1);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_21 = l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(x_4, x_20, x_11, x_12, x_13, x_14, x_19);
  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; uint8_t 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_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_box(0);
  lean_inc(x_5);
  x_25 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_25, 0, x_5);
  lean_ctor_set(x_25, 1, x_24);
  lean_ctor_set(x_25, 2, x_22);
  x_26 = lean_box(0);
  x_27 = 1;
  x_28 = lean_alloc_ctor(0, 3, 1);
  lean_ctor_set(x_28, 0, x_25);
  lean_ctor_set(x_28, 1, x_18);
  lean_ctor_set(x_28, 2, x_26);
  lean_ctor_set_uint8(x_28, sizeof(void*)*3, x_27);
  x_29 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_29, 0, x_28);
  x_30 = lean_st_ref_get(x_14, x_23);
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = lean_ctor_get(x_31, 0);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = l_Lean_Environment_addAndCompile(x_33, x_24, x_29);
  lean_dec(x_29);
  if (lean_obj_tag(x_34) == 0)
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  lean_dec(x_34);
  x_36 = l_Lean_KernelException_toMessageData(x_35, x_24);
  x_37 = lean_st_ref_get(x_14, x_32);
  x_38 = lean_ctor_get(x_37, 1);
  lean_inc(x_38);
  lean_dec(x_37);
  x_39 = lean_ctor_get(x_13, 3);
  lean_inc(x_39);
  x_40 = l_Lean_MessageData_toString(x_36, x_38);
  if (lean_obj_tag(x_40) == 0)
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
  lean_dec(x_39);
  x_41 = lean_ctor_get(x_40, 0);
  lean_inc(x_41);
  x_42 = lean_ctor_get(x_40, 1);
  lean_inc(x_42);
  lean_dec(x_40);
  x_43 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_43, 0, x_41);
  x_44 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_44, 0, x_43);
  x_45 = l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5(x_44, x_11, x_12, x_13, x_14, x_42);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_46 = !lean_is_exclusive(x_45);
  if (x_46 == 0)
  {
  return x_45;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_45, 0);
  x_48 = lean_ctor_get(x_45, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_45);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_50 = !lean_is_exclusive(x_40);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_51 = lean_ctor_get(x_40, 0);
  x_52 = lean_io_error_to_string(x_51);
  x_53 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_53, 0, x_52);
  x_54 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_54, 0, x_53);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_39);
  lean_ctor_set(x_55, 1, x_54);
  lean_ctor_set(x_40, 0, x_55);
  return x_40;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_56 = lean_ctor_get(x_40, 0);
  x_57 = lean_ctor_get(x_40, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_40);
  x_58 = lean_io_error_to_string(x_56);
  x_59 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_59, 0, x_58);
  x_60 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_60, 0, x_59);
  x_61 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_61, 0, x_39);
  lean_ctor_set(x_61, 1, x_60);
  x_62 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_62, 0, x_61);
  lean_ctor_set(x_62, 1, x_57);
  return x_62;
  }
  }
  }
  else
  {
  lean_object* x_63; lean_object* x_64; 
  x_63 = lean_ctor_get(x_34, 0);
  lean_inc(x_63);
  lean_dec(x_34);
  x_64 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__44(x_6, x_7, x_5, x_24, x_8, x_1, x_3, x_9, x_63, x_11, x_12, x_13, x_14, x_32);
  return x_64;
  }
  }
  else
  {
  uint8_t x_65; 
  lean_dec(x_18);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_65 = !lean_is_exclusive(x_21);
  if (x_65 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; 
  x_66 = lean_ctor_get(x_21, 0);
  x_67 = lean_ctor_get(x_21, 1);
  lean_inc(x_67);
  lean_inc(x_66);
  lean_dec(x_21);
  x_68 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_68, 0, x_66);
  lean_ctor_set(x_68, 1, x_67);
  return x_68;
  }
  }
  }
  else
  {
  uint8_t x_69; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_69 = !lean_is_exclusive(x_17);
  if (x_69 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_17, 0);
  x_71 = lean_ctor_get(x_17, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_17);
  x_72 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_72, 0, x_70);
  lean_ctor_set(x_72, 1, x_71);
  return x_72;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__46(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) {
  _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; 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_12 = lean_unsigned_to_nat(0u);
  x_13 = l_Lean_Expr_getAppNumArgsAux(x_1, x_12);
  x_14 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_13);
  x_15 = lean_mk_array(x_13, x_14);
  x_16 = lean_unsigned_to_nat(1u);
  x_17 = lean_nat_sub(x_13, x_16);
  lean_dec(x_13);
  x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_15, x_17);
  x_19 = lean_array_get_size(x_5);
  x_20 = lean_array_get_size(x_18);
  x_21 = l_Nat_min(x_19, x_20);
  lean_dec(x_20);
  lean_dec(x_19);
  lean_inc(x_21);
  x_22 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_22, 0, x_12);
  lean_ctor_set(x_22, 1, x_21);
  lean_ctor_set(x_22, 2, x_16);
  x_23 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__38___rarg(x_2, x_3, x_5, x_18, x_22, x_21, x_12, x_4, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_22);
  lean_dec(x_18);
  if (lean_obj_tag(x_23) == 0)
  {
  uint8_t x_24; 
  x_24 = !lean_is_exclusive(x_23);
  if (x_24 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_23, 0);
  x_26 = lean_ctor_get(x_23, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_23);
  x_27 = lean_alloc_ctor(0, 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; 
  x_28 = !lean_is_exclusive(x_23);
  if (x_28 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_23, 0);
  x_30 = lean_ctor_get(x_23, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_23);
  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_ParserCompiler_compileParserExpr___rarg___lambda__47(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; uint8_t x_13; 
  x_9 = l_Lean_ParserCompiler_Context_tyName___rarg(x_1);
  x_10 = lean_box(0);
  x_11 = l_Lean_mkConst(x_9, x_10);
  x_12 = lean_array_get_size(x_2);
  x_13 = lean_nat_dec_le(x_12, x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_unsigned_to_nat(0u);
  x_15 = lean_nat_dec_lt(x_14, x_12);
  if (x_15 == 0)
  {
  lean_object* x_16; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_16 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_16, 0, x_11);
  lean_ctor_set(x_16, 1, x_8);
  return x_16;
  }
  else
  {
  size_t x_17; size_t x_18; lean_object* x_19; 
  x_17 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_18 = 0;
  x_19 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__39___rarg(x_1, x_2, x_17, x_18, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_19;
  }
  }
  else
  {
  lean_object* x_20; uint8_t x_21; 
  x_20 = lean_unsigned_to_nat(0u);
  x_21 = lean_nat_dec_lt(x_20, x_12);
  if (x_21 == 0)
  {
  lean_object* x_22; 
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_11);
  lean_ctor_set(x_22, 1, x_8);
  return x_22;
  }
  else
  {
  size_t x_23; size_t x_24; lean_object* x_25; 
  x_23 = lean_usize_of_nat(x_12);
  lean_dec(x_12);
  x_24 = 0;
  x_25 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__40___rarg(x_1, x_2, x_23, x_24, x_11, x_4, x_5, x_6, x_7, x_8);
  return x_25;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__48(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; 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; 
  x_13 = lean_unsigned_to_nat(0u);
  x_14 = l_Lean_Expr_getAppNumArgsAux(x_1, x_13);
  x_15 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_14);
  x_16 = lean_mk_array(x_14, x_15);
  x_17 = lean_unsigned_to_nat(1u);
  x_18 = lean_nat_sub(x_14, x_17);
  lean_dec(x_14);
  x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_16, x_18);
  x_20 = lean_array_get_size(x_6);
  x_21 = lean_array_get_size(x_19);
  x_22 = l_Nat_min(x_20, x_21);
  lean_dec(x_21);
  lean_dec(x_20);
  lean_inc(x_22);
  x_23 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_23, 0, x_13);
  lean_ctor_set(x_23, 1, x_22);
  lean_ctor_set(x_23, 2, x_17);
  x_24 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__41___rarg(x_2, x_3, x_4, x_6, x_19, x_23, x_22, x_13, x_5, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_23);
  lean_dec(x_19);
  if (lean_obj_tag(x_24) == 0)
  {
  uint8_t x_25; 
  x_25 = !lean_is_exclusive(x_24);
  if (x_25 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_24, 0);
  x_27 = lean_ctor_get(x_24, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_24);
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  else
  {
  uint8_t x_29; 
  x_29 = !lean_is_exclusive(x_24);
  if (x_29 == 0)
  {
  return x_24;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_24, 0);
  x_31 = lean_ctor_get(x_24, 1);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_dec(x_24);
  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_ParserCompiler_compileParserExpr___rarg___lambda__49(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_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) {
  _start:
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  lean_inc(x_3);
  x_15 = l_Lean_ParserCompiler_CombinatorAttribute_setDeclFor(x_1, x_9, x_2, x_3);
  x_16 = l_Lean_setEnv___at_Lean_Meta_addDefaultInstance___spec__1(x_15, x_10, x_11, x_12, x_13, x_14);
  x_17 = lean_ctor_get(x_16, 1);
  lean_inc(x_17);
  lean_dec(x_16);
  x_18 = l_Lean_mkConst(x_3, x_4);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_18);
  x_19 = l_Lean_Meta_inferType(x_18, x_10, x_11, x_12, x_13, x_17);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_box(x_7);
  x_23 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__48___boxed), 12, 5);
  lean_closure_set(x_23, 0, x_5);
  lean_closure_set(x_23, 1, x_6);
  lean_closure_set(x_23, 2, x_22);
  lean_closure_set(x_23, 3, x_8);
  lean_closure_set(x_23, 4, x_18);
  x_24 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_20, x_23, x_10, x_11, x_12, x_13, x_21);
  return x_24;
  }
  else
  {
  uint8_t x_25; 
  lean_dec(x_18);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  x_25 = !lean_is_exclusive(x_19);
  if (x_25 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_19, 0);
  x_27 = lean_ctor_get(x_19, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_19);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__50(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:
  {
  lean_object* x_16; lean_object* x_17; 
  x_16 = l_Lean_ParserCompiler_replaceParserTy___rarg(x_1, x_2);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_1);
  x_17 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_3, x_16, x_11, x_12, x_13, x_14, x_15);
  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_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  lean_inc(x_1);
  x_20 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__47___boxed), 8, 1);
  lean_closure_set(x_20, 0, x_1);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_21 = l_Lean_Meta_forallTelescope___at_Lean_ParserCompiler_compileParserExpr___spec__3___rarg(x_4, x_20, x_11, x_12, x_13, x_14, x_19);
  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; uint8_t 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_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_box(0);
  lean_inc(x_5);
  x_25 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_25, 0, x_5);
  lean_ctor_set(x_25, 1, x_24);
  lean_ctor_set(x_25, 2, x_22);
  x_26 = lean_box(0);
  x_27 = 1;
  x_28 = lean_alloc_ctor(0, 3, 1);
  lean_ctor_set(x_28, 0, x_25);
  lean_ctor_set(x_28, 1, x_18);
  lean_ctor_set(x_28, 2, x_26);
  lean_ctor_set_uint8(x_28, sizeof(void*)*3, x_27);
  x_29 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_29, 0, x_28);
  x_30 = lean_st_ref_get(x_14, x_23);
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = lean_ctor_get(x_31, 0);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = l_Lean_Environment_addAndCompile(x_33, x_24, x_29);
  lean_dec(x_29);
  if (lean_obj_tag(x_34) == 0)
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  lean_dec(x_34);
  x_36 = l_Lean_KernelException_toMessageData(x_35, x_24);
  x_37 = lean_st_ref_get(x_14, x_32);
  x_38 = lean_ctor_get(x_37, 1);
  lean_inc(x_38);
  lean_dec(x_37);
  x_39 = lean_ctor_get(x_13, 3);
  lean_inc(x_39);
  x_40 = l_Lean_MessageData_toString(x_36, x_38);
  if (lean_obj_tag(x_40) == 0)
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
  lean_dec(x_39);
  x_41 = lean_ctor_get(x_40, 0);
  lean_inc(x_41);
  x_42 = lean_ctor_get(x_40, 1);
  lean_inc(x_42);
  lean_dec(x_40);
  x_43 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_43, 0, x_41);
  x_44 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_44, 0, x_43);
  x_45 = l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5(x_44, x_11, x_12, x_13, x_14, x_42);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_46 = !lean_is_exclusive(x_45);
  if (x_46 == 0)
  {
  return x_45;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_45, 0);
  x_48 = lean_ctor_get(x_45, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_45);
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  return x_49;
  }
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  x_50 = !lean_is_exclusive(x_40);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_51 = lean_ctor_get(x_40, 0);
  x_52 = lean_io_error_to_string(x_51);
  x_53 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_53, 0, x_52);
  x_54 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_54, 0, x_53);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_39);
  lean_ctor_set(x_55, 1, x_54);
  lean_ctor_set(x_40, 0, x_55);
  return x_40;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_56 = lean_ctor_get(x_40, 0);
  x_57 = lean_ctor_get(x_40, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_40);
  x_58 = lean_io_error_to_string(x_56);
  x_59 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_59, 0, x_58);
  x_60 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_60, 0, x_59);
  x_61 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_61, 0, x_39);
  lean_ctor_set(x_61, 1, x_60);
  x_62 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_62, 0, x_61);
  lean_ctor_set(x_62, 1, x_57);
  return x_62;
  }
  }
  }
  else
  {
  lean_object* x_63; lean_object* x_64; 
  x_63 = lean_ctor_get(x_34, 0);
  lean_inc(x_63);
  lean_dec(x_34);
  x_64 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__49(x_6, x_7, x_5, x_24, x_8, x_1, x_3, x_9, x_63, x_11, x_12, x_13, x_14, x_32);
  return x_64;
  }
  }
  else
  {
  uint8_t x_65; 
  lean_dec(x_18);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_65 = !lean_is_exclusive(x_21);
  if (x_65 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; 
  x_66 = lean_ctor_get(x_21, 0);
  x_67 = lean_ctor_get(x_21, 1);
  lean_inc(x_67);
  lean_inc(x_66);
  lean_dec(x_21);
  x_68 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_68, 0, x_66);
  lean_ctor_set(x_68, 1, x_67);
  return x_68;
  }
  }
  }
  else
  {
  uint8_t x_69; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_69 = !lean_is_exclusive(x_17);
  if (x_69 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_17, 0);
  x_71 = lean_ctor_get(x_17, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_17);
  x_72 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_72, 0, x_70);
  lean_ctor_set(x_72, 1, x_71);
  return x_72;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__51(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) {
  _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; 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_12 = lean_unsigned_to_nat(0u);
  x_13 = l_Lean_Expr_getAppNumArgsAux(x_1, x_12);
  x_14 = l_Lean_Expr_getAppArgs___closed__1;
  lean_inc(x_13);
  x_15 = lean_mk_array(x_13, x_14);
  x_16 = lean_unsigned_to_nat(1u);
  x_17 = lean_nat_sub(x_13, x_16);
  lean_dec(x_13);
  x_18 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_15, x_17);
  x_19 = lean_array_get_size(x_5);
  x_20 = lean_array_get_size(x_18);
  x_21 = l_Nat_min(x_19, x_20);
  lean_dec(x_20);
  lean_dec(x_19);
  lean_inc(x_21);
  x_22 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_22, 0, x_12);
  lean_ctor_set(x_22, 1, x_21);
  lean_ctor_set(x_22, 2, x_16);
  x_23 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__42___rarg(x_2, x_3, x_5, x_18, x_22, x_21, x_12, x_4, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_22);
  lean_dec(x_18);
  if (lean_obj_tag(x_23) == 0)
  {
  uint8_t x_24; 
  x_24 = !lean_is_exclusive(x_23);
  if (x_24 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_23, 0);
  x_26 = lean_ctor_get(x_23, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_23);
  x_27 = lean_alloc_ctor(0, 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; 
  x_28 = !lean_is_exclusive(x_23);
  if (x_28 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_23, 0);
  x_30 = lean_ctor_get(x_23, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_23);
  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;
  }
  }
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("call of unknown parser at '");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("don't know how to generate ");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__3;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__5() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string(" for non-definition '");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__5;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__7() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("refusing to generate code for imported parser declaration '");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__7;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__9() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("'; use `@[runParserAttributeHooks]` on its definition instead.");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__9;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__11() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string(" for non-parser combinator '");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__11;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg(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) {
  _start:
  {
  lean_object* x_9; 
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  x_9 = l___private_Lean_Meta_WHNF_0__Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__2(x_3, x_4, x_5, x_6, x_7, x_8);
  if (lean_obj_tag(x_9) == 0)
  {
  lean_object* x_10; 
  x_10 = lean_ctor_get(x_9, 0);
  lean_inc(x_10);
  switch (lean_obj_tag(x_10)) {
  case 0:
  {
  lean_object* x_11; lean_object* x_12; 
  x_11 = lean_ctor_get(x_9, 1);
  lean_inc(x_11);
  lean_dec(x_9);
  x_12 = l_Lean_Expr_getAppFn(x_10);
  if (lean_obj_tag(x_12) == 4)
  {
  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_12, 0);
  lean_inc(x_13);
  lean_dec(x_12);
  x_14 = lean_st_ref_get(x_7, x_11);
  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, 0);
  lean_inc(x_17);
  lean_dec(x_15);
  x_18 = lean_ctor_get(x_1, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_1, 2);
  lean_inc(x_19);
  x_20 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_19, x_17, x_13);
  if (lean_obj_tag(x_20) == 0)
  {
  lean_object* x_21; lean_object* x_22; 
  lean_inc(x_18);
  x_21 = l_Lean_Name_append(x_13, x_18);
  lean_inc(x_13);
  x_22 = l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(x_13, x_4, x_5, x_6, x_7, x_16);
  if (lean_obj_tag(x_22) == 0)
  {
  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_22, 0);
  lean_inc(x_23);
  x_24 = lean_ctor_get(x_22, 1);
  lean_inc(x_24);
  lean_dec(x_22);
  x_25 = l_Lean_ConstantInfo_type(x_23);
  x_26 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_25);
  x_27 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_25, x_26, x_4, x_5, x_6, x_7, x_24);
  if (lean_obj_tag(x_27) == 0)
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_59; uint8_t x_60; 
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_27, 1);
  lean_inc(x_29);
  lean_dec(x_27);
  x_59 = l_Lean_Parser_evalParserConstUnsafe___closed__3;
  x_60 = l_Lean_Expr_isConstOf(x_28, x_59);
  if (x_60 == 0)
  {
  lean_object* x_61; uint8_t x_62; 
  x_61 = l_Lean_Parser_evalParserConstUnsafe___closed__1;
  x_62 = l_Lean_Expr_isConstOf(x_28, x_61);
  lean_dec(x_28);
  if (x_62 == 0)
  {
  lean_object* x_63; 
  lean_dec(x_25);
  lean_dec(x_23);
  lean_dec(x_21);
  lean_dec(x_19);
  lean_dec(x_17);
  lean_dec(x_13);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_10);
  x_63 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_4, x_5, x_6, x_7, x_29);
  if (lean_obj_tag(x_63) == 0)
  {
  lean_object* x_64; 
  x_64 = lean_ctor_get(x_63, 0);
  lean_inc(x_64);
  if (lean_obj_tag(x_64) == 0)
  {
  lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
  lean_dec(x_1);
  x_65 = lean_ctor_get(x_63, 1);
  lean_inc(x_65);
  lean_dec(x_63);
  x_66 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_66, 0, x_18);
  x_67 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_68 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_68, 0, x_67);
  lean_ctor_set(x_68, 1, x_66);
  x_69 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12;
  x_70 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_70, 0, x_68);
  lean_ctor_set(x_70, 1, x_69);
  x_71 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_71, 0, x_10);
  x_72 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_72, 0, x_70);
  lean_ctor_set(x_72, 1, x_71);
  x_73 = l_Lean_KernelException_toMessageData___closed__3;
  x_74 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_74, 0, x_72);
  lean_ctor_set(x_74, 1, x_73);
  x_75 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_74, x_4, x_5, x_6, x_7, x_65);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_75;
  }
  else
  {
  lean_object* x_76; lean_object* x_77; 
  lean_dec(x_18);
  lean_dec(x_10);
  x_76 = lean_ctor_get(x_63, 1);
  lean_inc(x_76);
  lean_dec(x_63);
  x_77 = lean_ctor_get(x_64, 0);
  lean_inc(x_77);
  lean_dec(x_64);
  x_3 = x_77;
  x_8 = x_76;
  goto _start;
  }
  }
  else
  {
  uint8_t x_79; 
  lean_dec(x_18);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_79 = !lean_is_exclusive(x_63);
  if (x_79 == 0)
  {
  return x_63;
  }
  else
  {
  lean_object* x_80; lean_object* x_81; lean_object* x_82; 
  x_80 = lean_ctor_get(x_63, 0);
  x_81 = lean_ctor_get(x_63, 1);
  lean_inc(x_81);
  lean_inc(x_80);
  lean_dec(x_63);
  x_82 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_82, 0, x_80);
  lean_ctor_set(x_82, 1, x_81);
  return x_82;
  }
  }
  }
  else
  {
  lean_object* x_83; 
  x_83 = lean_box(0);
  x_30 = x_83;
  goto block_58;
  }
  }
  else
  {
  lean_object* x_84; 
  lean_dec(x_28);
  x_84 = lean_box(0);
  x_30 = x_84;
  goto block_58;
  }
  block_58:
  {
  lean_object* x_31; 
  lean_dec(x_30);
  x_31 = l_Lean_ConstantInfo_value_x3f(x_23);
  lean_dec(x_23);
  if (lean_obj_tag(x_31) == 0)
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; 
  lean_dec(x_25);
  lean_dec(x_21);
  lean_dec(x_19);
  lean_dec(x_17);
  lean_dec(x_13);
  lean_dec(x_1);
  x_32 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_32, 0, x_18);
  x_33 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  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_ParserCompiler_compileParserExpr___rarg___closed__6;
  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 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_37, 0, x_10);
  x_38 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_38, 0, x_36);
  lean_ctor_set(x_38, 1, x_37);
  x_39 = l_Lean_KernelException_toMessageData___closed__3;
  x_40 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_40, 0, x_38);
  lean_ctor_set(x_40, 1, x_39);
  x_41 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_40, x_4, x_5, x_6, x_7, x_29);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_41;
  }
  else
  {
  lean_object* x_42; lean_object* x_43; 
  lean_dec(x_18);
  x_42 = lean_ctor_get(x_31, 0);
  lean_inc(x_42);
  lean_dec(x_31);
  x_43 = l_Lean_Environment_getModuleIdxFor_x3f(x_17, x_13);
  lean_dec(x_17);
  if (lean_obj_tag(x_43) == 0)
  {
  lean_object* x_44; lean_object* x_45; 
  x_44 = lean_box(0);
  x_45 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__4(x_1, x_42, x_2, x_25, x_21, x_19, x_13, x_10, x_26, x_44, x_4, x_5, x_6, x_7, x_29);
  return x_45;
  }
  else
  {
  lean_dec(x_43);
  if (x_2 == 0)
  {
  lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; 
  lean_dec(x_42);
  lean_dec(x_25);
  lean_dec(x_21);
  lean_dec(x_19);
  lean_dec(x_10);
  lean_dec(x_1);
  x_46 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_46, 0, x_13);
  x_47 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8;
  x_48 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_48, 0, x_47);
  lean_ctor_set(x_48, 1, x_46);
  x_49 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10;
  x_50 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_50, 0, x_48);
  lean_ctor_set(x_50, 1, x_49);
  x_51 = l_Lean_throwError___at_Lean_Meta_whnf___spec__1(x_50, x_4, x_5, x_6, x_7, x_29);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_52 = !lean_is_exclusive(x_51);
  if (x_52 == 0)
  {
  return x_51;
  }
  else
  {
  lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_53 = lean_ctor_get(x_51, 0);
  x_54 = lean_ctor_get(x_51, 1);
  lean_inc(x_54);
  lean_inc(x_53);
  lean_dec(x_51);
  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;
  }
  }
  else
  {
  lean_object* x_56; lean_object* x_57; 
  x_56 = lean_box(0);
  x_57 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__4(x_1, x_42, x_2, x_25, x_21, x_19, x_13, x_10, x_26, x_56, x_4, x_5, x_6, x_7, x_29);
  return x_57;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_85; 
  lean_dec(x_25);
  lean_dec(x_23);
  lean_dec(x_21);
  lean_dec(x_19);
  lean_dec(x_18);
  lean_dec(x_17);
  lean_dec(x_13);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_85 = !lean_is_exclusive(x_27);
  if (x_85 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_86; lean_object* x_87; lean_object* x_88; 
  x_86 = lean_ctor_get(x_27, 0);
  x_87 = lean_ctor_get(x_27, 1);
  lean_inc(x_87);
  lean_inc(x_86);
  lean_dec(x_27);
  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_21);
  lean_dec(x_19);
  lean_dec(x_18);
  lean_dec(x_17);
  lean_dec(x_13);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_89 = !lean_is_exclusive(x_22);
  if (x_89 == 0)
  {
  return x_22;
  }
  else
  {
  lean_object* x_90; lean_object* x_91; lean_object* x_92; 
  x_90 = lean_ctor_get(x_22, 0);
  x_91 = lean_ctor_get(x_22, 1);
  lean_inc(x_91);
  lean_inc(x_90);
  lean_dec(x_22);
  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_dec(x_19);
  lean_dec(x_18);
  lean_dec(x_17);
  lean_dec(x_13);
  x_93 = lean_ctor_get(x_20, 0);
  lean_inc(x_93);
  lean_dec(x_20);
  x_94 = lean_box(0);
  x_95 = l_Lean_mkConst(x_93, x_94);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_95);
  x_96 = l_Lean_Meta_inferType(x_95, x_4, x_5, x_6, x_7, x_16);
  if (lean_obj_tag(x_96) == 0)
  {
  lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
  x_97 = lean_ctor_get(x_96, 0);
  lean_inc(x_97);
  x_98 = lean_ctor_get(x_96, 1);
  lean_inc(x_98);
  lean_dec(x_96);
  x_99 = lean_box(x_2);
  x_100 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__5___boxed), 11, 4);
  lean_closure_set(x_100, 0, x_10);
  lean_closure_set(x_100, 1, x_1);
  lean_closure_set(x_100, 2, x_99);
  lean_closure_set(x_100, 3, x_95);
  x_101 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_97, x_100, x_4, x_5, x_6, x_7, x_98);
  return x_101;
  }
  else
  {
  uint8_t x_102; 
  lean_dec(x_95);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_102 = !lean_is_exclusive(x_96);
  if (x_102 == 0)
  {
  return x_96;
  }
  else
  {
  lean_object* x_103; lean_object* x_104; lean_object* x_105; 
  x_103 = lean_ctor_get(x_96, 0);
  x_104 = lean_ctor_get(x_96, 1);
  lean_inc(x_104);
  lean_inc(x_103);
  lean_dec(x_96);
  x_105 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_105, 0, x_103);
  lean_ctor_set(x_105, 1, x_104);
  return x_105;
  }
  }
  }
  }
  else
  {
  lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; 
  lean_dec(x_12);
  lean_dec(x_1);
  x_106 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_106, 0, x_10);
  x_107 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2;
  x_108 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_108, 0, x_107);
  lean_ctor_set(x_108, 1, x_106);
  x_109 = l_Lean_KernelException_toMessageData___closed__3;
  x_110 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_110, 0, x_108);
  lean_ctor_set(x_110, 1, x_109);
  x_111 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_110, x_4, x_5, x_6, x_7, x_11);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_111;
  }
  }
  case 1:
  {
  uint8_t x_112; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_112 = !lean_is_exclusive(x_9);
  if (x_112 == 0)
  {
  lean_object* x_113; 
  x_113 = lean_ctor_get(x_9, 0);
  lean_dec(x_113);
  return x_9;
  }
  else
  {
  lean_object* x_114; lean_object* x_115; 
  x_114 = lean_ctor_get(x_9, 1);
  lean_inc(x_114);
  lean_dec(x_9);
  x_115 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_115, 0, x_10);
  lean_ctor_set(x_115, 1, x_114);
  return x_115;
  }
  }
  case 2:
  {
  lean_object* x_116; lean_object* x_117; 
  x_116 = lean_ctor_get(x_9, 1);
  lean_inc(x_116);
  lean_dec(x_9);
  x_117 = l_Lean_Expr_getAppFn(x_10);
  if (lean_obj_tag(x_117) == 4)
  {
  lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; 
  x_118 = lean_ctor_get(x_117, 0);
  lean_inc(x_118);
  lean_dec(x_117);
  x_119 = lean_st_ref_get(x_7, x_116);
  x_120 = lean_ctor_get(x_119, 0);
  lean_inc(x_120);
  x_121 = lean_ctor_get(x_119, 1);
  lean_inc(x_121);
  lean_dec(x_119);
  x_122 = lean_ctor_get(x_120, 0);
  lean_inc(x_122);
  lean_dec(x_120);
  x_123 = lean_ctor_get(x_1, 0);
  lean_inc(x_123);
  x_124 = lean_ctor_get(x_1, 2);
  lean_inc(x_124);
  x_125 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_124, x_122, x_118);
  if (lean_obj_tag(x_125) == 0)
  {
  lean_object* x_126; lean_object* x_127; 
  lean_inc(x_123);
  x_126 = l_Lean_Name_append(x_118, x_123);
  lean_inc(x_118);
  x_127 = l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(x_118, x_4, x_5, x_6, x_7, x_121);
  if (lean_obj_tag(x_127) == 0)
  {
  lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; 
  x_128 = lean_ctor_get(x_127, 0);
  lean_inc(x_128);
  x_129 = lean_ctor_get(x_127, 1);
  lean_inc(x_129);
  lean_dec(x_127);
  x_130 = l_Lean_ConstantInfo_type(x_128);
  x_131 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_130);
  x_132 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_130, x_131, x_4, x_5, x_6, x_7, x_129);
  if (lean_obj_tag(x_132) == 0)
  {
  lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_164; uint8_t x_165; 
  x_133 = lean_ctor_get(x_132, 0);
  lean_inc(x_133);
  x_134 = lean_ctor_get(x_132, 1);
  lean_inc(x_134);
  lean_dec(x_132);
  x_164 = l_Lean_Parser_evalParserConstUnsafe___closed__3;
  x_165 = l_Lean_Expr_isConstOf(x_133, x_164);
  if (x_165 == 0)
  {
  lean_object* x_166; uint8_t x_167; 
  x_166 = l_Lean_Parser_evalParserConstUnsafe___closed__1;
  x_167 = l_Lean_Expr_isConstOf(x_133, x_166);
  lean_dec(x_133);
  if (x_167 == 0)
  {
  lean_object* x_168; 
  lean_dec(x_130);
  lean_dec(x_128);
  lean_dec(x_126);
  lean_dec(x_124);
  lean_dec(x_122);
  lean_dec(x_118);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_10);
  x_168 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_4, x_5, x_6, x_7, x_134);
  if (lean_obj_tag(x_168) == 0)
  {
  lean_object* x_169; 
  x_169 = lean_ctor_get(x_168, 0);
  lean_inc(x_169);
  if (lean_obj_tag(x_169) == 0)
  {
  lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; 
  lean_dec(x_1);
  x_170 = lean_ctor_get(x_168, 1);
  lean_inc(x_170);
  lean_dec(x_168);
  x_171 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_171, 0, x_123);
  x_172 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_173 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_173, 0, x_172);
  lean_ctor_set(x_173, 1, x_171);
  x_174 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12;
  x_175 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_175, 0, x_173);
  lean_ctor_set(x_175, 1, x_174);
  x_176 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_176, 0, x_10);
  x_177 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_177, 0, x_175);
  lean_ctor_set(x_177, 1, x_176);
  x_178 = l_Lean_KernelException_toMessageData___closed__3;
  x_179 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_179, 0, x_177);
  lean_ctor_set(x_179, 1, x_178);
  x_180 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_179, x_4, x_5, x_6, x_7, x_170);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_180;
  }
  else
  {
  lean_object* x_181; lean_object* x_182; 
  lean_dec(x_123);
  lean_dec(x_10);
  x_181 = lean_ctor_get(x_168, 1);
  lean_inc(x_181);
  lean_dec(x_168);
  x_182 = lean_ctor_get(x_169, 0);
  lean_inc(x_182);
  lean_dec(x_169);
  x_3 = x_182;
  x_8 = x_181;
  goto _start;
  }
  }
  else
  {
  uint8_t x_184; 
  lean_dec(x_123);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_184 = !lean_is_exclusive(x_168);
  if (x_184 == 0)
  {
  return x_168;
  }
  else
  {
  lean_object* x_185; lean_object* x_186; lean_object* x_187; 
  x_185 = lean_ctor_get(x_168, 0);
  x_186 = lean_ctor_get(x_168, 1);
  lean_inc(x_186);
  lean_inc(x_185);
  lean_dec(x_168);
  x_187 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_187, 0, x_185);
  lean_ctor_set(x_187, 1, x_186);
  return x_187;
  }
  }
  }
  else
  {
  lean_object* x_188; 
  x_188 = lean_box(0);
  x_135 = x_188;
  goto block_163;
  }
  }
  else
  {
  lean_object* x_189; 
  lean_dec(x_133);
  x_189 = lean_box(0);
  x_135 = x_189;
  goto block_163;
  }
  block_163:
  {
  lean_object* x_136; 
  lean_dec(x_135);
  x_136 = l_Lean_ConstantInfo_value_x3f(x_128);
  lean_dec(x_128);
  if (lean_obj_tag(x_136) == 0)
  {
  lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; 
  lean_dec(x_130);
  lean_dec(x_126);
  lean_dec(x_124);
  lean_dec(x_122);
  lean_dec(x_118);
  lean_dec(x_1);
  x_137 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_137, 0, x_123);
  x_138 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_139 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_139, 0, x_138);
  lean_ctor_set(x_139, 1, x_137);
  x_140 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6;
  x_141 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_141, 0, x_139);
  lean_ctor_set(x_141, 1, x_140);
  x_142 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_142, 0, x_10);
  x_143 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_143, 0, x_141);
  lean_ctor_set(x_143, 1, x_142);
  x_144 = l_Lean_KernelException_toMessageData___closed__3;
  x_145 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_145, 0, x_143);
  lean_ctor_set(x_145, 1, x_144);
  x_146 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_145, x_4, x_5, x_6, x_7, x_134);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_146;
  }
  else
  {
  lean_object* x_147; lean_object* x_148; 
  lean_dec(x_123);
  x_147 = lean_ctor_get(x_136, 0);
  lean_inc(x_147);
  lean_dec(x_136);
  x_148 = l_Lean_Environment_getModuleIdxFor_x3f(x_122, x_118);
  lean_dec(x_122);
  if (lean_obj_tag(x_148) == 0)
  {
  lean_object* x_149; lean_object* x_150; 
  x_149 = lean_box(0);
  x_150 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__9(x_1, x_147, x_2, x_130, x_126, x_124, x_118, x_10, x_131, x_149, x_4, x_5, x_6, x_7, x_134);
  return x_150;
  }
  else
  {
  lean_dec(x_148);
  if (x_2 == 0)
  {
  lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; 
  lean_dec(x_147);
  lean_dec(x_130);
  lean_dec(x_126);
  lean_dec(x_124);
  lean_dec(x_10);
  lean_dec(x_1);
  x_151 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_151, 0, x_118);
  x_152 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8;
  x_153 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_153, 0, x_152);
  lean_ctor_set(x_153, 1, x_151);
  x_154 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10;
  x_155 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_155, 0, x_153);
  lean_ctor_set(x_155, 1, x_154);
  x_156 = l_Lean_throwError___at_Lean_Meta_whnf___spec__1(x_155, x_4, x_5, x_6, x_7, x_134);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_157 = !lean_is_exclusive(x_156);
  if (x_157 == 0)
  {
  return x_156;
  }
  else
  {
  lean_object* x_158; lean_object* x_159; lean_object* x_160; 
  x_158 = lean_ctor_get(x_156, 0);
  x_159 = lean_ctor_get(x_156, 1);
  lean_inc(x_159);
  lean_inc(x_158);
  lean_dec(x_156);
  x_160 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_160, 0, x_158);
  lean_ctor_set(x_160, 1, x_159);
  return x_160;
  }
  }
  else
  {
  lean_object* x_161; lean_object* x_162; 
  x_161 = lean_box(0);
  x_162 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__9(x_1, x_147, x_2, x_130, x_126, x_124, x_118, x_10, x_131, x_161, x_4, x_5, x_6, x_7, x_134);
  return x_162;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_190; 
  lean_dec(x_130);
  lean_dec(x_128);
  lean_dec(x_126);
  lean_dec(x_124);
  lean_dec(x_123);
  lean_dec(x_122);
  lean_dec(x_118);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_190 = !lean_is_exclusive(x_132);
  if (x_190 == 0)
  {
  return x_132;
  }
  else
  {
  lean_object* x_191; lean_object* x_192; lean_object* x_193; 
  x_191 = lean_ctor_get(x_132, 0);
  x_192 = lean_ctor_get(x_132, 1);
  lean_inc(x_192);
  lean_inc(x_191);
  lean_dec(x_132);
  x_193 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_193, 0, x_191);
  lean_ctor_set(x_193, 1, x_192);
  return x_193;
  }
  }
  }
  else
  {
  uint8_t x_194; 
  lean_dec(x_126);
  lean_dec(x_124);
  lean_dec(x_123);
  lean_dec(x_122);
  lean_dec(x_118);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_194 = !lean_is_exclusive(x_127);
  if (x_194 == 0)
  {
  return x_127;
  }
  else
  {
  lean_object* x_195; lean_object* x_196; lean_object* x_197; 
  x_195 = lean_ctor_get(x_127, 0);
  x_196 = lean_ctor_get(x_127, 1);
  lean_inc(x_196);
  lean_inc(x_195);
  lean_dec(x_127);
  x_197 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_197, 0, x_195);
  lean_ctor_set(x_197, 1, x_196);
  return x_197;
  }
  }
  }
  else
  {
  lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
  lean_dec(x_124);
  lean_dec(x_123);
  lean_dec(x_122);
  lean_dec(x_118);
  x_198 = lean_ctor_get(x_125, 0);
  lean_inc(x_198);
  lean_dec(x_125);
  x_199 = lean_box(0);
  x_200 = l_Lean_mkConst(x_198, x_199);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_200);
  x_201 = l_Lean_Meta_inferType(x_200, x_4, x_5, x_6, x_7, x_121);
  if (lean_obj_tag(x_201) == 0)
  {
  lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; 
  x_202 = lean_ctor_get(x_201, 0);
  lean_inc(x_202);
  x_203 = lean_ctor_get(x_201, 1);
  lean_inc(x_203);
  lean_dec(x_201);
  x_204 = lean_box(x_2);
  x_205 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__10___boxed), 11, 4);
  lean_closure_set(x_205, 0, x_10);
  lean_closure_set(x_205, 1, x_1);
  lean_closure_set(x_205, 2, x_204);
  lean_closure_set(x_205, 3, x_200);
  x_206 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_202, x_205, x_4, x_5, x_6, x_7, x_203);
  return x_206;
  }
  else
  {
  uint8_t x_207; 
  lean_dec(x_200);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_207 = !lean_is_exclusive(x_201);
  if (x_207 == 0)
  {
  return x_201;
  }
  else
  {
  lean_object* x_208; lean_object* x_209; lean_object* x_210; 
  x_208 = lean_ctor_get(x_201, 0);
  x_209 = lean_ctor_get(x_201, 1);
  lean_inc(x_209);
  lean_inc(x_208);
  lean_dec(x_201);
  x_210 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_210, 0, x_208);
  lean_ctor_set(x_210, 1, x_209);
  return x_210;
  }
  }
  }
  }
  else
  {
  lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
  lean_dec(x_117);
  lean_dec(x_1);
  x_211 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_211, 0, x_10);
  x_212 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2;
  x_213 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_213, 0, x_212);
  lean_ctor_set(x_213, 1, x_211);
  x_214 = l_Lean_KernelException_toMessageData___closed__3;
  x_215 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_215, 0, x_213);
  lean_ctor_set(x_215, 1, x_214);
  x_216 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_215, x_4, x_5, x_6, x_7, x_116);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_216;
  }
  }
  case 3:
  {
  lean_object* x_217; lean_object* x_218; 
  x_217 = lean_ctor_get(x_9, 1);
  lean_inc(x_217);
  lean_dec(x_9);
  x_218 = l_Lean_Expr_getAppFn(x_10);
  if (lean_obj_tag(x_218) == 4)
  {
  lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; 
  x_219 = lean_ctor_get(x_218, 0);
  lean_inc(x_219);
  lean_dec(x_218);
  x_220 = lean_st_ref_get(x_7, x_217);
  x_221 = lean_ctor_get(x_220, 0);
  lean_inc(x_221);
  x_222 = lean_ctor_get(x_220, 1);
  lean_inc(x_222);
  lean_dec(x_220);
  x_223 = lean_ctor_get(x_221, 0);
  lean_inc(x_223);
  lean_dec(x_221);
  x_224 = lean_ctor_get(x_1, 0);
  lean_inc(x_224);
  x_225 = lean_ctor_get(x_1, 2);
  lean_inc(x_225);
  x_226 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_225, x_223, x_219);
  if (lean_obj_tag(x_226) == 0)
  {
  lean_object* x_227; lean_object* x_228; 
  lean_inc(x_224);
  x_227 = l_Lean_Name_append(x_219, x_224);
  lean_inc(x_219);
  x_228 = l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(x_219, x_4, x_5, x_6, x_7, x_222);
  if (lean_obj_tag(x_228) == 0)
  {
  lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; 
  x_229 = lean_ctor_get(x_228, 0);
  lean_inc(x_229);
  x_230 = lean_ctor_get(x_228, 1);
  lean_inc(x_230);
  lean_dec(x_228);
  x_231 = l_Lean_ConstantInfo_type(x_229);
  x_232 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_231);
  x_233 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_231, x_232, x_4, x_5, x_6, x_7, x_230);
  if (lean_obj_tag(x_233) == 0)
  {
  lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_265; uint8_t x_266; 
  x_234 = lean_ctor_get(x_233, 0);
  lean_inc(x_234);
  x_235 = lean_ctor_get(x_233, 1);
  lean_inc(x_235);
  lean_dec(x_233);
  x_265 = l_Lean_Parser_evalParserConstUnsafe___closed__3;
  x_266 = l_Lean_Expr_isConstOf(x_234, x_265);
  if (x_266 == 0)
  {
  lean_object* x_267; uint8_t x_268; 
  x_267 = l_Lean_Parser_evalParserConstUnsafe___closed__1;
  x_268 = l_Lean_Expr_isConstOf(x_234, x_267);
  lean_dec(x_234);
  if (x_268 == 0)
  {
  lean_object* x_269; 
  lean_dec(x_231);
  lean_dec(x_229);
  lean_dec(x_227);
  lean_dec(x_225);
  lean_dec(x_223);
  lean_dec(x_219);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_10);
  x_269 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_4, x_5, x_6, x_7, x_235);
  if (lean_obj_tag(x_269) == 0)
  {
  lean_object* x_270; 
  x_270 = lean_ctor_get(x_269, 0);
  lean_inc(x_270);
  if (lean_obj_tag(x_270) == 0)
  {
  lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; 
  lean_dec(x_1);
  x_271 = lean_ctor_get(x_269, 1);
  lean_inc(x_271);
  lean_dec(x_269);
  x_272 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_272, 0, x_224);
  x_273 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_274 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_274, 0, x_273);
  lean_ctor_set(x_274, 1, x_272);
  x_275 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12;
  x_276 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_276, 0, x_274);
  lean_ctor_set(x_276, 1, x_275);
  x_277 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_277, 0, x_10);
  x_278 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_278, 0, x_276);
  lean_ctor_set(x_278, 1, x_277);
  x_279 = l_Lean_KernelException_toMessageData___closed__3;
  x_280 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_280, 0, x_278);
  lean_ctor_set(x_280, 1, x_279);
  x_281 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_280, x_4, x_5, x_6, x_7, x_271);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_281;
  }
  else
  {
  lean_object* x_282; lean_object* x_283; 
  lean_dec(x_224);
  lean_dec(x_10);
  x_282 = lean_ctor_get(x_269, 1);
  lean_inc(x_282);
  lean_dec(x_269);
  x_283 = lean_ctor_get(x_270, 0);
  lean_inc(x_283);
  lean_dec(x_270);
  x_3 = x_283;
  x_8 = x_282;
  goto _start;
  }
  }
  else
  {
  uint8_t x_285; 
  lean_dec(x_224);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_285 = !lean_is_exclusive(x_269);
  if (x_285 == 0)
  {
  return x_269;
  }
  else
  {
  lean_object* x_286; lean_object* x_287; lean_object* x_288; 
  x_286 = lean_ctor_get(x_269, 0);
  x_287 = lean_ctor_get(x_269, 1);
  lean_inc(x_287);
  lean_inc(x_286);
  lean_dec(x_269);
  x_288 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_288, 0, x_286);
  lean_ctor_set(x_288, 1, x_287);
  return x_288;
  }
  }
  }
  else
  {
  lean_object* x_289; 
  x_289 = lean_box(0);
  x_236 = x_289;
  goto block_264;
  }
  }
  else
  {
  lean_object* x_290; 
  lean_dec(x_234);
  x_290 = lean_box(0);
  x_236 = x_290;
  goto block_264;
  }
  block_264:
  {
  lean_object* x_237; 
  lean_dec(x_236);
  x_237 = l_Lean_ConstantInfo_value_x3f(x_229);
  lean_dec(x_229);
  if (lean_obj_tag(x_237) == 0)
  {
  lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; 
  lean_dec(x_231);
  lean_dec(x_227);
  lean_dec(x_225);
  lean_dec(x_223);
  lean_dec(x_219);
  lean_dec(x_1);
  x_238 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_238, 0, x_224);
  x_239 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_240 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_240, 0, x_239);
  lean_ctor_set(x_240, 1, x_238);
  x_241 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6;
  x_242 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_242, 0, x_240);
  lean_ctor_set(x_242, 1, x_241);
  x_243 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_243, 0, x_10);
  x_244 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_244, 0, x_242);
  lean_ctor_set(x_244, 1, x_243);
  x_245 = l_Lean_KernelException_toMessageData___closed__3;
  x_246 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_246, 0, x_244);
  lean_ctor_set(x_246, 1, x_245);
  x_247 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_246, x_4, x_5, x_6, x_7, x_235);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_247;
  }
  else
  {
  lean_object* x_248; lean_object* x_249; 
  lean_dec(x_224);
  x_248 = lean_ctor_get(x_237, 0);
  lean_inc(x_248);
  lean_dec(x_237);
  x_249 = l_Lean_Environment_getModuleIdxFor_x3f(x_223, x_219);
  lean_dec(x_223);
  if (lean_obj_tag(x_249) == 0)
  {
  lean_object* x_250; lean_object* x_251; 
  x_250 = lean_box(0);
  x_251 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__14(x_1, x_248, x_2, x_231, x_227, x_225, x_219, x_10, x_232, x_250, x_4, x_5, x_6, x_7, x_235);
  return x_251;
  }
  else
  {
  lean_dec(x_249);
  if (x_2 == 0)
  {
  lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; 
  lean_dec(x_248);
  lean_dec(x_231);
  lean_dec(x_227);
  lean_dec(x_225);
  lean_dec(x_10);
  lean_dec(x_1);
  x_252 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_252, 0, x_219);
  x_253 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8;
  x_254 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_254, 0, x_253);
  lean_ctor_set(x_254, 1, x_252);
  x_255 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10;
  x_256 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_256, 0, x_254);
  lean_ctor_set(x_256, 1, x_255);
  x_257 = l_Lean_throwError___at_Lean_Meta_whnf___spec__1(x_256, x_4, x_5, x_6, x_7, x_235);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_258 = !lean_is_exclusive(x_257);
  if (x_258 == 0)
  {
  return x_257;
  }
  else
  {
  lean_object* x_259; lean_object* x_260; lean_object* x_261; 
  x_259 = lean_ctor_get(x_257, 0);
  x_260 = lean_ctor_get(x_257, 1);
  lean_inc(x_260);
  lean_inc(x_259);
  lean_dec(x_257);
  x_261 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_261, 0, x_259);
  lean_ctor_set(x_261, 1, x_260);
  return x_261;
  }
  }
  else
  {
  lean_object* x_262; lean_object* x_263; 
  x_262 = lean_box(0);
  x_263 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__14(x_1, x_248, x_2, x_231, x_227, x_225, x_219, x_10, x_232, x_262, x_4, x_5, x_6, x_7, x_235);
  return x_263;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_291; 
  lean_dec(x_231);
  lean_dec(x_229);
  lean_dec(x_227);
  lean_dec(x_225);
  lean_dec(x_224);
  lean_dec(x_223);
  lean_dec(x_219);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_291 = !lean_is_exclusive(x_233);
  if (x_291 == 0)
  {
  return x_233;
  }
  else
  {
  lean_object* x_292; lean_object* x_293; lean_object* x_294; 
  x_292 = lean_ctor_get(x_233, 0);
  x_293 = lean_ctor_get(x_233, 1);
  lean_inc(x_293);
  lean_inc(x_292);
  lean_dec(x_233);
  x_294 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_294, 0, x_292);
  lean_ctor_set(x_294, 1, x_293);
  return x_294;
  }
  }
  }
  else
  {
  uint8_t x_295; 
  lean_dec(x_227);
  lean_dec(x_225);
  lean_dec(x_224);
  lean_dec(x_223);
  lean_dec(x_219);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_295 = !lean_is_exclusive(x_228);
  if (x_295 == 0)
  {
  return x_228;
  }
  else
  {
  lean_object* x_296; lean_object* x_297; lean_object* x_298; 
  x_296 = lean_ctor_get(x_228, 0);
  x_297 = lean_ctor_get(x_228, 1);
  lean_inc(x_297);
  lean_inc(x_296);
  lean_dec(x_228);
  x_298 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_298, 0, x_296);
  lean_ctor_set(x_298, 1, x_297);
  return x_298;
  }
  }
  }
  else
  {
  lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; 
  lean_dec(x_225);
  lean_dec(x_224);
  lean_dec(x_223);
  lean_dec(x_219);
  x_299 = lean_ctor_get(x_226, 0);
  lean_inc(x_299);
  lean_dec(x_226);
  x_300 = lean_box(0);
  x_301 = l_Lean_mkConst(x_299, x_300);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_301);
  x_302 = l_Lean_Meta_inferType(x_301, x_4, x_5, x_6, x_7, x_222);
  if (lean_obj_tag(x_302) == 0)
  {
  lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; 
  x_303 = lean_ctor_get(x_302, 0);
  lean_inc(x_303);
  x_304 = lean_ctor_get(x_302, 1);
  lean_inc(x_304);
  lean_dec(x_302);
  x_305 = lean_box(x_2);
  x_306 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__15___boxed), 11, 4);
  lean_closure_set(x_306, 0, x_10);
  lean_closure_set(x_306, 1, x_1);
  lean_closure_set(x_306, 2, x_305);
  lean_closure_set(x_306, 3, x_301);
  x_307 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_303, x_306, x_4, x_5, x_6, x_7, x_304);
  return x_307;
  }
  else
  {
  uint8_t x_308; 
  lean_dec(x_301);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_308 = !lean_is_exclusive(x_302);
  if (x_308 == 0)
  {
  return x_302;
  }
  else
  {
  lean_object* x_309; lean_object* x_310; lean_object* x_311; 
  x_309 = lean_ctor_get(x_302, 0);
  x_310 = lean_ctor_get(x_302, 1);
  lean_inc(x_310);
  lean_inc(x_309);
  lean_dec(x_302);
  x_311 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_311, 0, x_309);
  lean_ctor_set(x_311, 1, x_310);
  return x_311;
  }
  }
  }
  }
  else
  {
  lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; 
  lean_dec(x_218);
  lean_dec(x_1);
  x_312 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_312, 0, x_10);
  x_313 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2;
  x_314 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_314, 0, x_313);
  lean_ctor_set(x_314, 1, x_312);
  x_315 = l_Lean_KernelException_toMessageData___closed__3;
  x_316 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_316, 0, x_314);
  lean_ctor_set(x_316, 1, x_315);
  x_317 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_316, x_4, x_5, x_6, x_7, x_217);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_317;
  }
  }
  case 4:
  {
  lean_object* x_318; lean_object* x_319; 
  x_318 = lean_ctor_get(x_9, 1);
  lean_inc(x_318);
  lean_dec(x_9);
  x_319 = l_Lean_Expr_getAppFn(x_10);
  if (lean_obj_tag(x_319) == 4)
  {
  lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; 
  x_320 = lean_ctor_get(x_319, 0);
  lean_inc(x_320);
  lean_dec(x_319);
  x_321 = lean_st_ref_get(x_7, x_318);
  x_322 = lean_ctor_get(x_321, 0);
  lean_inc(x_322);
  x_323 = lean_ctor_get(x_321, 1);
  lean_inc(x_323);
  lean_dec(x_321);
  x_324 = lean_ctor_get(x_322, 0);
  lean_inc(x_324);
  lean_dec(x_322);
  x_325 = lean_ctor_get(x_1, 0);
  lean_inc(x_325);
  x_326 = lean_ctor_get(x_1, 2);
  lean_inc(x_326);
  x_327 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_326, x_324, x_320);
  if (lean_obj_tag(x_327) == 0)
  {
  lean_object* x_328; lean_object* x_329; 
  lean_inc(x_325);
  x_328 = l_Lean_Name_append(x_320, x_325);
  lean_inc(x_320);
  x_329 = l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(x_320, x_4, x_5, x_6, x_7, x_323);
  if (lean_obj_tag(x_329) == 0)
  {
  lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; 
  x_330 = lean_ctor_get(x_329, 0);
  lean_inc(x_330);
  x_331 = lean_ctor_get(x_329, 1);
  lean_inc(x_331);
  lean_dec(x_329);
  x_332 = l_Lean_ConstantInfo_type(x_330);
  x_333 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_332);
  x_334 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_332, x_333, x_4, x_5, x_6, x_7, x_331);
  if (lean_obj_tag(x_334) == 0)
  {
  lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_366; uint8_t x_367; 
  x_335 = lean_ctor_get(x_334, 0);
  lean_inc(x_335);
  x_336 = lean_ctor_get(x_334, 1);
  lean_inc(x_336);
  lean_dec(x_334);
  x_366 = l_Lean_Parser_evalParserConstUnsafe___closed__3;
  x_367 = l_Lean_Expr_isConstOf(x_335, x_366);
  if (x_367 == 0)
  {
  lean_object* x_368; uint8_t x_369; 
  x_368 = l_Lean_Parser_evalParserConstUnsafe___closed__1;
  x_369 = l_Lean_Expr_isConstOf(x_335, x_368);
  lean_dec(x_335);
  if (x_369 == 0)
  {
  lean_object* x_370; 
  lean_dec(x_332);
  lean_dec(x_330);
  lean_dec(x_328);
  lean_dec(x_326);
  lean_dec(x_324);
  lean_dec(x_320);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_10);
  x_370 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_4, x_5, x_6, x_7, x_336);
  if (lean_obj_tag(x_370) == 0)
  {
  lean_object* x_371; 
  x_371 = lean_ctor_get(x_370, 0);
  lean_inc(x_371);
  if (lean_obj_tag(x_371) == 0)
  {
  lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; 
  lean_dec(x_1);
  x_372 = lean_ctor_get(x_370, 1);
  lean_inc(x_372);
  lean_dec(x_370);
  x_373 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_373, 0, x_325);
  x_374 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_375 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_375, 0, x_374);
  lean_ctor_set(x_375, 1, x_373);
  x_376 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12;
  x_377 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_377, 0, x_375);
  lean_ctor_set(x_377, 1, x_376);
  x_378 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_378, 0, x_10);
  x_379 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_379, 0, x_377);
  lean_ctor_set(x_379, 1, x_378);
  x_380 = l_Lean_KernelException_toMessageData___closed__3;
  x_381 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_381, 0, x_379);
  lean_ctor_set(x_381, 1, x_380);
  x_382 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_381, x_4, x_5, x_6, x_7, x_372);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_382;
  }
  else
  {
  lean_object* x_383; lean_object* x_384; 
  lean_dec(x_325);
  lean_dec(x_10);
  x_383 = lean_ctor_get(x_370, 1);
  lean_inc(x_383);
  lean_dec(x_370);
  x_384 = lean_ctor_get(x_371, 0);
  lean_inc(x_384);
  lean_dec(x_371);
  x_3 = x_384;
  x_8 = x_383;
  goto _start;
  }
  }
  else
  {
  uint8_t x_386; 
  lean_dec(x_325);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_386 = !lean_is_exclusive(x_370);
  if (x_386 == 0)
  {
  return x_370;
  }
  else
  {
  lean_object* x_387; lean_object* x_388; lean_object* x_389; 
  x_387 = lean_ctor_get(x_370, 0);
  x_388 = lean_ctor_get(x_370, 1);
  lean_inc(x_388);
  lean_inc(x_387);
  lean_dec(x_370);
  x_389 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_389, 0, x_387);
  lean_ctor_set(x_389, 1, x_388);
  return x_389;
  }
  }
  }
  else
  {
  lean_object* x_390; 
  x_390 = lean_box(0);
  x_337 = x_390;
  goto block_365;
  }
  }
  else
  {
  lean_object* x_391; 
  lean_dec(x_335);
  x_391 = lean_box(0);
  x_337 = x_391;
  goto block_365;
  }
  block_365:
  {
  lean_object* x_338; 
  lean_dec(x_337);
  x_338 = l_Lean_ConstantInfo_value_x3f(x_330);
  lean_dec(x_330);
  if (lean_obj_tag(x_338) == 0)
  {
  lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; 
  lean_dec(x_332);
  lean_dec(x_328);
  lean_dec(x_326);
  lean_dec(x_324);
  lean_dec(x_320);
  lean_dec(x_1);
  x_339 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_339, 0, x_325);
  x_340 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_341 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_341, 0, x_340);
  lean_ctor_set(x_341, 1, x_339);
  x_342 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6;
  x_343 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_343, 0, x_341);
  lean_ctor_set(x_343, 1, x_342);
  x_344 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_344, 0, x_10);
  x_345 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_345, 0, x_343);
  lean_ctor_set(x_345, 1, x_344);
  x_346 = l_Lean_KernelException_toMessageData___closed__3;
  x_347 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_347, 0, x_345);
  lean_ctor_set(x_347, 1, x_346);
  x_348 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_347, x_4, x_5, x_6, x_7, x_336);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_348;
  }
  else
  {
  lean_object* x_349; lean_object* x_350; 
  lean_dec(x_325);
  x_349 = lean_ctor_get(x_338, 0);
  lean_inc(x_349);
  lean_dec(x_338);
  x_350 = l_Lean_Environment_getModuleIdxFor_x3f(x_324, x_320);
  lean_dec(x_324);
  if (lean_obj_tag(x_350) == 0)
  {
  lean_object* x_351; lean_object* x_352; 
  x_351 = lean_box(0);
  x_352 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__19(x_1, x_349, x_2, x_332, x_328, x_326, x_320, x_10, x_333, x_351, x_4, x_5, x_6, x_7, x_336);
  return x_352;
  }
  else
  {
  lean_dec(x_350);
  if (x_2 == 0)
  {
  lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; 
  lean_dec(x_349);
  lean_dec(x_332);
  lean_dec(x_328);
  lean_dec(x_326);
  lean_dec(x_10);
  lean_dec(x_1);
  x_353 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_353, 0, x_320);
  x_354 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8;
  x_355 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_355, 0, x_354);
  lean_ctor_set(x_355, 1, x_353);
  x_356 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10;
  x_357 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_357, 0, x_355);
  lean_ctor_set(x_357, 1, x_356);
  x_358 = l_Lean_throwError___at_Lean_Meta_whnf___spec__1(x_357, x_4, x_5, x_6, x_7, x_336);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_359 = !lean_is_exclusive(x_358);
  if (x_359 == 0)
  {
  return x_358;
  }
  else
  {
  lean_object* x_360; lean_object* x_361; lean_object* x_362; 
  x_360 = lean_ctor_get(x_358, 0);
  x_361 = lean_ctor_get(x_358, 1);
  lean_inc(x_361);
  lean_inc(x_360);
  lean_dec(x_358);
  x_362 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_362, 0, x_360);
  lean_ctor_set(x_362, 1, x_361);
  return x_362;
  }
  }
  else
  {
  lean_object* x_363; lean_object* x_364; 
  x_363 = lean_box(0);
  x_364 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__19(x_1, x_349, x_2, x_332, x_328, x_326, x_320, x_10, x_333, x_363, x_4, x_5, x_6, x_7, x_336);
  return x_364;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_392; 
  lean_dec(x_332);
  lean_dec(x_330);
  lean_dec(x_328);
  lean_dec(x_326);
  lean_dec(x_325);
  lean_dec(x_324);
  lean_dec(x_320);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_392 = !lean_is_exclusive(x_334);
  if (x_392 == 0)
  {
  return x_334;
  }
  else
  {
  lean_object* x_393; lean_object* x_394; lean_object* x_395; 
  x_393 = lean_ctor_get(x_334, 0);
  x_394 = lean_ctor_get(x_334, 1);
  lean_inc(x_394);
  lean_inc(x_393);
  lean_dec(x_334);
  x_395 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_395, 0, x_393);
  lean_ctor_set(x_395, 1, x_394);
  return x_395;
  }
  }
  }
  else
  {
  uint8_t x_396; 
  lean_dec(x_328);
  lean_dec(x_326);
  lean_dec(x_325);
  lean_dec(x_324);
  lean_dec(x_320);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_396 = !lean_is_exclusive(x_329);
  if (x_396 == 0)
  {
  return x_329;
  }
  else
  {
  lean_object* x_397; lean_object* x_398; lean_object* x_399; 
  x_397 = lean_ctor_get(x_329, 0);
  x_398 = lean_ctor_get(x_329, 1);
  lean_inc(x_398);
  lean_inc(x_397);
  lean_dec(x_329);
  x_399 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_399, 0, x_397);
  lean_ctor_set(x_399, 1, x_398);
  return x_399;
  }
  }
  }
  else
  {
  lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; 
  lean_dec(x_326);
  lean_dec(x_325);
  lean_dec(x_324);
  lean_dec(x_320);
  x_400 = lean_ctor_get(x_327, 0);
  lean_inc(x_400);
  lean_dec(x_327);
  x_401 = lean_box(0);
  x_402 = l_Lean_mkConst(x_400, x_401);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_402);
  x_403 = l_Lean_Meta_inferType(x_402, x_4, x_5, x_6, x_7, x_323);
  if (lean_obj_tag(x_403) == 0)
  {
  lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; 
  x_404 = lean_ctor_get(x_403, 0);
  lean_inc(x_404);
  x_405 = lean_ctor_get(x_403, 1);
  lean_inc(x_405);
  lean_dec(x_403);
  x_406 = lean_box(x_2);
  x_407 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__20___boxed), 11, 4);
  lean_closure_set(x_407, 0, x_10);
  lean_closure_set(x_407, 1, x_1);
  lean_closure_set(x_407, 2, x_406);
  lean_closure_set(x_407, 3, x_402);
  x_408 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_404, x_407, x_4, x_5, x_6, x_7, x_405);
  return x_408;
  }
  else
  {
  uint8_t x_409; 
  lean_dec(x_402);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_409 = !lean_is_exclusive(x_403);
  if (x_409 == 0)
  {
  return x_403;
  }
  else
  {
  lean_object* x_410; lean_object* x_411; lean_object* x_412; 
  x_410 = lean_ctor_get(x_403, 0);
  x_411 = lean_ctor_get(x_403, 1);
  lean_inc(x_411);
  lean_inc(x_410);
  lean_dec(x_403);
  x_412 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_412, 0, x_410);
  lean_ctor_set(x_412, 1, x_411);
  return x_412;
  }
  }
  }
  }
  else
  {
  lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; 
  lean_dec(x_319);
  lean_dec(x_1);
  x_413 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_413, 0, x_10);
  x_414 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2;
  x_415 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_415, 0, x_414);
  lean_ctor_set(x_415, 1, x_413);
  x_416 = l_Lean_KernelException_toMessageData___closed__3;
  x_417 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_417, 0, x_415);
  lean_ctor_set(x_417, 1, x_416);
  x_418 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_417, x_4, x_5, x_6, x_7, x_318);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_418;
  }
  }
  case 5:
  {
  lean_object* x_419; lean_object* x_420; 
  x_419 = lean_ctor_get(x_9, 1);
  lean_inc(x_419);
  lean_dec(x_9);
  x_420 = l_Lean_Expr_getAppFn(x_10);
  if (lean_obj_tag(x_420) == 4)
  {
  lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; 
  x_421 = lean_ctor_get(x_420, 0);
  lean_inc(x_421);
  lean_dec(x_420);
  x_422 = lean_st_ref_get(x_7, x_419);
  x_423 = lean_ctor_get(x_422, 0);
  lean_inc(x_423);
  x_424 = lean_ctor_get(x_422, 1);
  lean_inc(x_424);
  lean_dec(x_422);
  x_425 = lean_ctor_get(x_423, 0);
  lean_inc(x_425);
  lean_dec(x_423);
  x_426 = lean_ctor_get(x_1, 0);
  lean_inc(x_426);
  x_427 = lean_ctor_get(x_1, 2);
  lean_inc(x_427);
  x_428 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_427, x_425, x_421);
  if (lean_obj_tag(x_428) == 0)
  {
  lean_object* x_429; lean_object* x_430; 
  lean_inc(x_426);
  x_429 = l_Lean_Name_append(x_421, x_426);
  lean_inc(x_421);
  x_430 = l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(x_421, x_4, x_5, x_6, x_7, x_424);
  if (lean_obj_tag(x_430) == 0)
  {
  lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; 
  x_431 = lean_ctor_get(x_430, 0);
  lean_inc(x_431);
  x_432 = lean_ctor_get(x_430, 1);
  lean_inc(x_432);
  lean_dec(x_430);
  x_433 = l_Lean_ConstantInfo_type(x_431);
  x_434 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_433);
  x_435 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_433, x_434, x_4, x_5, x_6, x_7, x_432);
  if (lean_obj_tag(x_435) == 0)
  {
  lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_467; uint8_t x_468; 
  x_436 = lean_ctor_get(x_435, 0);
  lean_inc(x_436);
  x_437 = lean_ctor_get(x_435, 1);
  lean_inc(x_437);
  lean_dec(x_435);
  x_467 = l_Lean_Parser_evalParserConstUnsafe___closed__3;
  x_468 = l_Lean_Expr_isConstOf(x_436, x_467);
  if (x_468 == 0)
  {
  lean_object* x_469; uint8_t x_470; 
  x_469 = l_Lean_Parser_evalParserConstUnsafe___closed__1;
  x_470 = l_Lean_Expr_isConstOf(x_436, x_469);
  lean_dec(x_436);
  if (x_470 == 0)
  {
  lean_object* x_471; 
  lean_dec(x_433);
  lean_dec(x_431);
  lean_dec(x_429);
  lean_dec(x_427);
  lean_dec(x_425);
  lean_dec(x_421);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_10);
  x_471 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_4, x_5, x_6, x_7, x_437);
  if (lean_obj_tag(x_471) == 0)
  {
  lean_object* x_472; 
  x_472 = lean_ctor_get(x_471, 0);
  lean_inc(x_472);
  if (lean_obj_tag(x_472) == 0)
  {
  lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; 
  lean_dec(x_1);
  x_473 = lean_ctor_get(x_471, 1);
  lean_inc(x_473);
  lean_dec(x_471);
  x_474 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_474, 0, x_426);
  x_475 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_476 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_476, 0, x_475);
  lean_ctor_set(x_476, 1, x_474);
  x_477 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12;
  x_478 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_478, 0, x_476);
  lean_ctor_set(x_478, 1, x_477);
  x_479 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_479, 0, x_10);
  x_480 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_480, 0, x_478);
  lean_ctor_set(x_480, 1, x_479);
  x_481 = l_Lean_KernelException_toMessageData___closed__3;
  x_482 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_482, 0, x_480);
  lean_ctor_set(x_482, 1, x_481);
  x_483 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_482, x_4, x_5, x_6, x_7, x_473);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_483;
  }
  else
  {
  lean_object* x_484; lean_object* x_485; 
  lean_dec(x_426);
  lean_dec(x_10);
  x_484 = lean_ctor_get(x_471, 1);
  lean_inc(x_484);
  lean_dec(x_471);
  x_485 = lean_ctor_get(x_472, 0);
  lean_inc(x_485);
  lean_dec(x_472);
  x_3 = x_485;
  x_8 = x_484;
  goto _start;
  }
  }
  else
  {
  uint8_t x_487; 
  lean_dec(x_426);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_487 = !lean_is_exclusive(x_471);
  if (x_487 == 0)
  {
  return x_471;
  }
  else
  {
  lean_object* x_488; lean_object* x_489; lean_object* x_490; 
  x_488 = lean_ctor_get(x_471, 0);
  x_489 = lean_ctor_get(x_471, 1);
  lean_inc(x_489);
  lean_inc(x_488);
  lean_dec(x_471);
  x_490 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_490, 0, x_488);
  lean_ctor_set(x_490, 1, x_489);
  return x_490;
  }
  }
  }
  else
  {
  lean_object* x_491; 
  x_491 = lean_box(0);
  x_438 = x_491;
  goto block_466;
  }
  }
  else
  {
  lean_object* x_492; 
  lean_dec(x_436);
  x_492 = lean_box(0);
  x_438 = x_492;
  goto block_466;
  }
  block_466:
  {
  lean_object* x_439; 
  lean_dec(x_438);
  x_439 = l_Lean_ConstantInfo_value_x3f(x_431);
  lean_dec(x_431);
  if (lean_obj_tag(x_439) == 0)
  {
  lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; 
  lean_dec(x_433);
  lean_dec(x_429);
  lean_dec(x_427);
  lean_dec(x_425);
  lean_dec(x_421);
  lean_dec(x_1);
  x_440 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_440, 0, x_426);
  x_441 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_442 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_442, 0, x_441);
  lean_ctor_set(x_442, 1, x_440);
  x_443 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6;
  x_444 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_444, 0, x_442);
  lean_ctor_set(x_444, 1, x_443);
  x_445 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_445, 0, x_10);
  x_446 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_446, 0, x_444);
  lean_ctor_set(x_446, 1, x_445);
  x_447 = l_Lean_KernelException_toMessageData___closed__3;
  x_448 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_448, 0, x_446);
  lean_ctor_set(x_448, 1, x_447);
  x_449 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_448, x_4, x_5, x_6, x_7, x_437);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_449;
  }
  else
  {
  lean_object* x_450; lean_object* x_451; 
  lean_dec(x_426);
  x_450 = lean_ctor_get(x_439, 0);
  lean_inc(x_450);
  lean_dec(x_439);
  x_451 = l_Lean_Environment_getModuleIdxFor_x3f(x_425, x_421);
  lean_dec(x_425);
  if (lean_obj_tag(x_451) == 0)
  {
  lean_object* x_452; lean_object* x_453; 
  x_452 = lean_box(0);
  x_453 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__24(x_1, x_450, x_2, x_433, x_429, x_427, x_421, x_10, x_434, x_452, x_4, x_5, x_6, x_7, x_437);
  return x_453;
  }
  else
  {
  lean_dec(x_451);
  if (x_2 == 0)
  {
  lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; uint8_t x_460; 
  lean_dec(x_450);
  lean_dec(x_433);
  lean_dec(x_429);
  lean_dec(x_427);
  lean_dec(x_10);
  lean_dec(x_1);
  x_454 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_454, 0, x_421);
  x_455 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8;
  x_456 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_456, 0, x_455);
  lean_ctor_set(x_456, 1, x_454);
  x_457 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10;
  x_458 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_458, 0, x_456);
  lean_ctor_set(x_458, 1, x_457);
  x_459 = l_Lean_throwError___at_Lean_Meta_whnf___spec__1(x_458, x_4, x_5, x_6, x_7, x_437);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_460 = !lean_is_exclusive(x_459);
  if (x_460 == 0)
  {
  return x_459;
  }
  else
  {
  lean_object* x_461; lean_object* x_462; lean_object* x_463; 
  x_461 = lean_ctor_get(x_459, 0);
  x_462 = lean_ctor_get(x_459, 1);
  lean_inc(x_462);
  lean_inc(x_461);
  lean_dec(x_459);
  x_463 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_463, 0, x_461);
  lean_ctor_set(x_463, 1, x_462);
  return x_463;
  }
  }
  else
  {
  lean_object* x_464; lean_object* x_465; 
  x_464 = lean_box(0);
  x_465 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__24(x_1, x_450, x_2, x_433, x_429, x_427, x_421, x_10, x_434, x_464, x_4, x_5, x_6, x_7, x_437);
  return x_465;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_493; 
  lean_dec(x_433);
  lean_dec(x_431);
  lean_dec(x_429);
  lean_dec(x_427);
  lean_dec(x_426);
  lean_dec(x_425);
  lean_dec(x_421);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_493 = !lean_is_exclusive(x_435);
  if (x_493 == 0)
  {
  return x_435;
  }
  else
  {
  lean_object* x_494; lean_object* x_495; lean_object* x_496; 
  x_494 = lean_ctor_get(x_435, 0);
  x_495 = lean_ctor_get(x_435, 1);
  lean_inc(x_495);
  lean_inc(x_494);
  lean_dec(x_435);
  x_496 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_496, 0, x_494);
  lean_ctor_set(x_496, 1, x_495);
  return x_496;
  }
  }
  }
  else
  {
  uint8_t x_497; 
  lean_dec(x_429);
  lean_dec(x_427);
  lean_dec(x_426);
  lean_dec(x_425);
  lean_dec(x_421);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_497 = !lean_is_exclusive(x_430);
  if (x_497 == 0)
  {
  return x_430;
  }
  else
  {
  lean_object* x_498; lean_object* x_499; lean_object* x_500; 
  x_498 = lean_ctor_get(x_430, 0);
  x_499 = lean_ctor_get(x_430, 1);
  lean_inc(x_499);
  lean_inc(x_498);
  lean_dec(x_430);
  x_500 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_500, 0, x_498);
  lean_ctor_set(x_500, 1, x_499);
  return x_500;
  }
  }
  }
  else
  {
  lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; 
  lean_dec(x_427);
  lean_dec(x_426);
  lean_dec(x_425);
  lean_dec(x_421);
  x_501 = lean_ctor_get(x_428, 0);
  lean_inc(x_501);
  lean_dec(x_428);
  x_502 = lean_box(0);
  x_503 = l_Lean_mkConst(x_501, x_502);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_503);
  x_504 = l_Lean_Meta_inferType(x_503, x_4, x_5, x_6, x_7, x_424);
  if (lean_obj_tag(x_504) == 0)
  {
  lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; 
  x_505 = lean_ctor_get(x_504, 0);
  lean_inc(x_505);
  x_506 = lean_ctor_get(x_504, 1);
  lean_inc(x_506);
  lean_dec(x_504);
  x_507 = lean_box(x_2);
  x_508 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__25___boxed), 11, 4);
  lean_closure_set(x_508, 0, x_10);
  lean_closure_set(x_508, 1, x_1);
  lean_closure_set(x_508, 2, x_507);
  lean_closure_set(x_508, 3, x_503);
  x_509 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_505, x_508, x_4, x_5, x_6, x_7, x_506);
  return x_509;
  }
  else
  {
  uint8_t x_510; 
  lean_dec(x_503);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_510 = !lean_is_exclusive(x_504);
  if (x_510 == 0)
  {
  return x_504;
  }
  else
  {
  lean_object* x_511; lean_object* x_512; lean_object* x_513; 
  x_511 = lean_ctor_get(x_504, 0);
  x_512 = lean_ctor_get(x_504, 1);
  lean_inc(x_512);
  lean_inc(x_511);
  lean_dec(x_504);
  x_513 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_513, 0, x_511);
  lean_ctor_set(x_513, 1, x_512);
  return x_513;
  }
  }
  }
  }
  else
  {
  lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; 
  lean_dec(x_420);
  lean_dec(x_1);
  x_514 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_514, 0, x_10);
  x_515 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2;
  x_516 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_516, 0, x_515);
  lean_ctor_set(x_516, 1, x_514);
  x_517 = l_Lean_KernelException_toMessageData___closed__3;
  x_518 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_518, 0, x_516);
  lean_ctor_set(x_518, 1, x_517);
  x_519 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_518, x_4, x_5, x_6, x_7, x_419);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_519;
  }
  }
  case 6:
  {
  lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; 
  x_520 = lean_ctor_get(x_9, 1);
  lean_inc(x_520);
  lean_dec(x_9);
  x_521 = lean_box(x_2);
  x_522 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__26___boxed), 9, 2);
  lean_closure_set(x_522, 0, x_1);
  lean_closure_set(x_522, 1, x_521);
  x_523 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_10, x_522, x_4, x_5, x_6, x_7, x_520);
  return x_523;
  }
  case 7:
  {
  lean_object* x_524; lean_object* x_525; 
  x_524 = lean_ctor_get(x_9, 1);
  lean_inc(x_524);
  lean_dec(x_9);
  x_525 = l_Lean_Expr_getAppFn(x_10);
  if (lean_obj_tag(x_525) == 4)
  {
  lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
  x_526 = lean_ctor_get(x_525, 0);
  lean_inc(x_526);
  lean_dec(x_525);
  x_527 = lean_st_ref_get(x_7, x_524);
  x_528 = lean_ctor_get(x_527, 0);
  lean_inc(x_528);
  x_529 = lean_ctor_get(x_527, 1);
  lean_inc(x_529);
  lean_dec(x_527);
  x_530 = lean_ctor_get(x_528, 0);
  lean_inc(x_530);
  lean_dec(x_528);
  x_531 = lean_ctor_get(x_1, 0);
  lean_inc(x_531);
  x_532 = lean_ctor_get(x_1, 2);
  lean_inc(x_532);
  x_533 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_532, x_530, x_526);
  if (lean_obj_tag(x_533) == 0)
  {
  lean_object* x_534; lean_object* x_535; 
  lean_inc(x_531);
  x_534 = l_Lean_Name_append(x_526, x_531);
  lean_inc(x_526);
  x_535 = l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(x_526, x_4, x_5, x_6, x_7, x_529);
  if (lean_obj_tag(x_535) == 0)
  {
  lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; 
  x_536 = lean_ctor_get(x_535, 0);
  lean_inc(x_536);
  x_537 = lean_ctor_get(x_535, 1);
  lean_inc(x_537);
  lean_dec(x_535);
  x_538 = l_Lean_ConstantInfo_type(x_536);
  x_539 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_538);
  x_540 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_538, x_539, x_4, x_5, x_6, x_7, x_537);
  if (lean_obj_tag(x_540) == 0)
  {
  lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_572; uint8_t x_573; 
  x_541 = lean_ctor_get(x_540, 0);
  lean_inc(x_541);
  x_542 = lean_ctor_get(x_540, 1);
  lean_inc(x_542);
  lean_dec(x_540);
  x_572 = l_Lean_Parser_evalParserConstUnsafe___closed__3;
  x_573 = l_Lean_Expr_isConstOf(x_541, x_572);
  if (x_573 == 0)
  {
  lean_object* x_574; uint8_t x_575; 
  x_574 = l_Lean_Parser_evalParserConstUnsafe___closed__1;
  x_575 = l_Lean_Expr_isConstOf(x_541, x_574);
  lean_dec(x_541);
  if (x_575 == 0)
  {
  lean_object* x_576; 
  lean_dec(x_538);
  lean_dec(x_536);
  lean_dec(x_534);
  lean_dec(x_532);
  lean_dec(x_530);
  lean_dec(x_526);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_10);
  x_576 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_4, x_5, x_6, x_7, x_542);
  if (lean_obj_tag(x_576) == 0)
  {
  lean_object* x_577; 
  x_577 = lean_ctor_get(x_576, 0);
  lean_inc(x_577);
  if (lean_obj_tag(x_577) == 0)
  {
  lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; 
  lean_dec(x_1);
  x_578 = lean_ctor_get(x_576, 1);
  lean_inc(x_578);
  lean_dec(x_576);
  x_579 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_579, 0, x_531);
  x_580 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_581 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_581, 0, x_580);
  lean_ctor_set(x_581, 1, x_579);
  x_582 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12;
  x_583 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_583, 0, x_581);
  lean_ctor_set(x_583, 1, x_582);
  x_584 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_584, 0, x_10);
  x_585 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_585, 0, x_583);
  lean_ctor_set(x_585, 1, x_584);
  x_586 = l_Lean_KernelException_toMessageData___closed__3;
  x_587 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_587, 0, x_585);
  lean_ctor_set(x_587, 1, x_586);
  x_588 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_587, x_4, x_5, x_6, x_7, x_578);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_588;
  }
  else
  {
  lean_object* x_589; lean_object* x_590; 
  lean_dec(x_531);
  lean_dec(x_10);
  x_589 = lean_ctor_get(x_576, 1);
  lean_inc(x_589);
  lean_dec(x_576);
  x_590 = lean_ctor_get(x_577, 0);
  lean_inc(x_590);
  lean_dec(x_577);
  x_3 = x_590;
  x_8 = x_589;
  goto _start;
  }
  }
  else
  {
  uint8_t x_592; 
  lean_dec(x_531);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_592 = !lean_is_exclusive(x_576);
  if (x_592 == 0)
  {
  return x_576;
  }
  else
  {
  lean_object* x_593; lean_object* x_594; lean_object* x_595; 
  x_593 = lean_ctor_get(x_576, 0);
  x_594 = lean_ctor_get(x_576, 1);
  lean_inc(x_594);
  lean_inc(x_593);
  lean_dec(x_576);
  x_595 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_595, 0, x_593);
  lean_ctor_set(x_595, 1, x_594);
  return x_595;
  }
  }
  }
  else
  {
  lean_object* x_596; 
  x_596 = lean_box(0);
  x_543 = x_596;
  goto block_571;
  }
  }
  else
  {
  lean_object* x_597; 
  lean_dec(x_541);
  x_597 = lean_box(0);
  x_543 = x_597;
  goto block_571;
  }
  block_571:
  {
  lean_object* x_544; 
  lean_dec(x_543);
  x_544 = l_Lean_ConstantInfo_value_x3f(x_536);
  lean_dec(x_536);
  if (lean_obj_tag(x_544) == 0)
  {
  lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; 
  lean_dec(x_538);
  lean_dec(x_534);
  lean_dec(x_532);
  lean_dec(x_530);
  lean_dec(x_526);
  lean_dec(x_1);
  x_545 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_545, 0, x_531);
  x_546 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_547 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_547, 0, x_546);
  lean_ctor_set(x_547, 1, x_545);
  x_548 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6;
  x_549 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_549, 0, x_547);
  lean_ctor_set(x_549, 1, x_548);
  x_550 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_550, 0, x_10);
  x_551 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_551, 0, x_549);
  lean_ctor_set(x_551, 1, x_550);
  x_552 = l_Lean_KernelException_toMessageData___closed__3;
  x_553 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_553, 0, x_551);
  lean_ctor_set(x_553, 1, x_552);
  x_554 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_553, x_4, x_5, x_6, x_7, x_542);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_554;
  }
  else
  {
  lean_object* x_555; lean_object* x_556; 
  lean_dec(x_531);
  x_555 = lean_ctor_get(x_544, 0);
  lean_inc(x_555);
  lean_dec(x_544);
  x_556 = l_Lean_Environment_getModuleIdxFor_x3f(x_530, x_526);
  lean_dec(x_530);
  if (lean_obj_tag(x_556) == 0)
  {
  lean_object* x_557; lean_object* x_558; 
  x_557 = lean_box(0);
  x_558 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__30(x_1, x_555, x_2, x_538, x_534, x_532, x_526, x_10, x_539, x_557, x_4, x_5, x_6, x_7, x_542);
  return x_558;
  }
  else
  {
  lean_dec(x_556);
  if (x_2 == 0)
  {
  lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; uint8_t x_565; 
  lean_dec(x_555);
  lean_dec(x_538);
  lean_dec(x_534);
  lean_dec(x_532);
  lean_dec(x_10);
  lean_dec(x_1);
  x_559 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_559, 0, x_526);
  x_560 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8;
  x_561 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_561, 0, x_560);
  lean_ctor_set(x_561, 1, x_559);
  x_562 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10;
  x_563 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_563, 0, x_561);
  lean_ctor_set(x_563, 1, x_562);
  x_564 = l_Lean_throwError___at_Lean_Meta_whnf___spec__1(x_563, x_4, x_5, x_6, x_7, x_542);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_565 = !lean_is_exclusive(x_564);
  if (x_565 == 0)
  {
  return x_564;
  }
  else
  {
  lean_object* x_566; lean_object* x_567; lean_object* x_568; 
  x_566 = lean_ctor_get(x_564, 0);
  x_567 = lean_ctor_get(x_564, 1);
  lean_inc(x_567);
  lean_inc(x_566);
  lean_dec(x_564);
  x_568 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_568, 0, x_566);
  lean_ctor_set(x_568, 1, x_567);
  return x_568;
  }
  }
  else
  {
  lean_object* x_569; lean_object* x_570; 
  x_569 = lean_box(0);
  x_570 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__30(x_1, x_555, x_2, x_538, x_534, x_532, x_526, x_10, x_539, x_569, x_4, x_5, x_6, x_7, x_542);
  return x_570;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_598; 
  lean_dec(x_538);
  lean_dec(x_536);
  lean_dec(x_534);
  lean_dec(x_532);
  lean_dec(x_531);
  lean_dec(x_530);
  lean_dec(x_526);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_598 = !lean_is_exclusive(x_540);
  if (x_598 == 0)
  {
  return x_540;
  }
  else
  {
  lean_object* x_599; lean_object* x_600; lean_object* x_601; 
  x_599 = lean_ctor_get(x_540, 0);
  x_600 = lean_ctor_get(x_540, 1);
  lean_inc(x_600);
  lean_inc(x_599);
  lean_dec(x_540);
  x_601 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_601, 0, x_599);
  lean_ctor_set(x_601, 1, x_600);
  return x_601;
  }
  }
  }
  else
  {
  uint8_t x_602; 
  lean_dec(x_534);
  lean_dec(x_532);
  lean_dec(x_531);
  lean_dec(x_530);
  lean_dec(x_526);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_602 = !lean_is_exclusive(x_535);
  if (x_602 == 0)
  {
  return x_535;
  }
  else
  {
  lean_object* x_603; lean_object* x_604; lean_object* x_605; 
  x_603 = lean_ctor_get(x_535, 0);
  x_604 = lean_ctor_get(x_535, 1);
  lean_inc(x_604);
  lean_inc(x_603);
  lean_dec(x_535);
  x_605 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_605, 0, x_603);
  lean_ctor_set(x_605, 1, x_604);
  return x_605;
  }
  }
  }
  else
  {
  lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; 
  lean_dec(x_532);
  lean_dec(x_531);
  lean_dec(x_530);
  lean_dec(x_526);
  x_606 = lean_ctor_get(x_533, 0);
  lean_inc(x_606);
  lean_dec(x_533);
  x_607 = lean_box(0);
  x_608 = l_Lean_mkConst(x_606, x_607);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_608);
  x_609 = l_Lean_Meta_inferType(x_608, x_4, x_5, x_6, x_7, x_529);
  if (lean_obj_tag(x_609) == 0)
  {
  lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; 
  x_610 = lean_ctor_get(x_609, 0);
  lean_inc(x_610);
  x_611 = lean_ctor_get(x_609, 1);
  lean_inc(x_611);
  lean_dec(x_609);
  x_612 = lean_box(x_2);
  x_613 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__31___boxed), 11, 4);
  lean_closure_set(x_613, 0, x_10);
  lean_closure_set(x_613, 1, x_1);
  lean_closure_set(x_613, 2, x_612);
  lean_closure_set(x_613, 3, x_608);
  x_614 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_610, x_613, x_4, x_5, x_6, x_7, x_611);
  return x_614;
  }
  else
  {
  uint8_t x_615; 
  lean_dec(x_608);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_615 = !lean_is_exclusive(x_609);
  if (x_615 == 0)
  {
  return x_609;
  }
  else
  {
  lean_object* x_616; lean_object* x_617; lean_object* x_618; 
  x_616 = lean_ctor_get(x_609, 0);
  x_617 = lean_ctor_get(x_609, 1);
  lean_inc(x_617);
  lean_inc(x_616);
  lean_dec(x_609);
  x_618 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_618, 0, x_616);
  lean_ctor_set(x_618, 1, x_617);
  return x_618;
  }
  }
  }
  }
  else
  {
  lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; 
  lean_dec(x_525);
  lean_dec(x_1);
  x_619 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_619, 0, x_10);
  x_620 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2;
  x_621 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_621, 0, x_620);
  lean_ctor_set(x_621, 1, x_619);
  x_622 = l_Lean_KernelException_toMessageData___closed__3;
  x_623 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_623, 0, x_621);
  lean_ctor_set(x_623, 1, x_622);
  x_624 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_623, x_4, x_5, x_6, x_7, x_524);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_624;
  }
  }
  case 8:
  {
  lean_object* x_625; lean_object* x_626; 
  x_625 = lean_ctor_get(x_9, 1);
  lean_inc(x_625);
  lean_dec(x_9);
  x_626 = l_Lean_Expr_getAppFn(x_10);
  if (lean_obj_tag(x_626) == 4)
  {
  lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; 
  x_627 = lean_ctor_get(x_626, 0);
  lean_inc(x_627);
  lean_dec(x_626);
  x_628 = lean_st_ref_get(x_7, x_625);
  x_629 = lean_ctor_get(x_628, 0);
  lean_inc(x_629);
  x_630 = lean_ctor_get(x_628, 1);
  lean_inc(x_630);
  lean_dec(x_628);
  x_631 = lean_ctor_get(x_629, 0);
  lean_inc(x_631);
  lean_dec(x_629);
  x_632 = lean_ctor_get(x_1, 0);
  lean_inc(x_632);
  x_633 = lean_ctor_get(x_1, 2);
  lean_inc(x_633);
  x_634 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_633, x_631, x_627);
  if (lean_obj_tag(x_634) == 0)
  {
  lean_object* x_635; lean_object* x_636; 
  lean_inc(x_632);
  x_635 = l_Lean_Name_append(x_627, x_632);
  lean_inc(x_627);
  x_636 = l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(x_627, x_4, x_5, x_6, x_7, x_630);
  if (lean_obj_tag(x_636) == 0)
  {
  lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; 
  x_637 = lean_ctor_get(x_636, 0);
  lean_inc(x_637);
  x_638 = lean_ctor_get(x_636, 1);
  lean_inc(x_638);
  lean_dec(x_636);
  x_639 = l_Lean_ConstantInfo_type(x_637);
  x_640 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_639);
  x_641 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_639, x_640, x_4, x_5, x_6, x_7, x_638);
  if (lean_obj_tag(x_641) == 0)
  {
  lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_673; uint8_t x_674; 
  x_642 = lean_ctor_get(x_641, 0);
  lean_inc(x_642);
  x_643 = lean_ctor_get(x_641, 1);
  lean_inc(x_643);
  lean_dec(x_641);
  x_673 = l_Lean_Parser_evalParserConstUnsafe___closed__3;
  x_674 = l_Lean_Expr_isConstOf(x_642, x_673);
  if (x_674 == 0)
  {
  lean_object* x_675; uint8_t x_676; 
  x_675 = l_Lean_Parser_evalParserConstUnsafe___closed__1;
  x_676 = l_Lean_Expr_isConstOf(x_642, x_675);
  lean_dec(x_642);
  if (x_676 == 0)
  {
  lean_object* x_677; 
  lean_dec(x_639);
  lean_dec(x_637);
  lean_dec(x_635);
  lean_dec(x_633);
  lean_dec(x_631);
  lean_dec(x_627);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_10);
  x_677 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_4, x_5, x_6, x_7, x_643);
  if (lean_obj_tag(x_677) == 0)
  {
  lean_object* x_678; 
  x_678 = lean_ctor_get(x_677, 0);
  lean_inc(x_678);
  if (lean_obj_tag(x_678) == 0)
  {
  lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; 
  lean_dec(x_1);
  x_679 = lean_ctor_get(x_677, 1);
  lean_inc(x_679);
  lean_dec(x_677);
  x_680 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_680, 0, x_632);
  x_681 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_682 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_682, 0, x_681);
  lean_ctor_set(x_682, 1, x_680);
  x_683 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12;
  x_684 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_684, 0, x_682);
  lean_ctor_set(x_684, 1, x_683);
  x_685 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_685, 0, x_10);
  x_686 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_686, 0, x_684);
  lean_ctor_set(x_686, 1, x_685);
  x_687 = l_Lean_KernelException_toMessageData___closed__3;
  x_688 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_688, 0, x_686);
  lean_ctor_set(x_688, 1, x_687);
  x_689 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_688, x_4, x_5, x_6, x_7, x_679);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_689;
  }
  else
  {
  lean_object* x_690; lean_object* x_691; 
  lean_dec(x_632);
  lean_dec(x_10);
  x_690 = lean_ctor_get(x_677, 1);
  lean_inc(x_690);
  lean_dec(x_677);
  x_691 = lean_ctor_get(x_678, 0);
  lean_inc(x_691);
  lean_dec(x_678);
  x_3 = x_691;
  x_8 = x_690;
  goto _start;
  }
  }
  else
  {
  uint8_t x_693; 
  lean_dec(x_632);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_693 = !lean_is_exclusive(x_677);
  if (x_693 == 0)
  {
  return x_677;
  }
  else
  {
  lean_object* x_694; lean_object* x_695; lean_object* x_696; 
  x_694 = lean_ctor_get(x_677, 0);
  x_695 = lean_ctor_get(x_677, 1);
  lean_inc(x_695);
  lean_inc(x_694);
  lean_dec(x_677);
  x_696 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_696, 0, x_694);
  lean_ctor_set(x_696, 1, x_695);
  return x_696;
  }
  }
  }
  else
  {
  lean_object* x_697; 
  x_697 = lean_box(0);
  x_644 = x_697;
  goto block_672;
  }
  }
  else
  {
  lean_object* x_698; 
  lean_dec(x_642);
  x_698 = lean_box(0);
  x_644 = x_698;
  goto block_672;
  }
  block_672:
  {
  lean_object* x_645; 
  lean_dec(x_644);
  x_645 = l_Lean_ConstantInfo_value_x3f(x_637);
  lean_dec(x_637);
  if (lean_obj_tag(x_645) == 0)
  {
  lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; 
  lean_dec(x_639);
  lean_dec(x_635);
  lean_dec(x_633);
  lean_dec(x_631);
  lean_dec(x_627);
  lean_dec(x_1);
  x_646 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_646, 0, x_632);
  x_647 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_648 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_648, 0, x_647);
  lean_ctor_set(x_648, 1, x_646);
  x_649 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6;
  x_650 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_650, 0, x_648);
  lean_ctor_set(x_650, 1, x_649);
  x_651 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_651, 0, x_10);
  x_652 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_652, 0, x_650);
  lean_ctor_set(x_652, 1, x_651);
  x_653 = l_Lean_KernelException_toMessageData___closed__3;
  x_654 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_654, 0, x_652);
  lean_ctor_set(x_654, 1, x_653);
  x_655 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_654, x_4, x_5, x_6, x_7, x_643);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_655;
  }
  else
  {
  lean_object* x_656; lean_object* x_657; 
  lean_dec(x_632);
  x_656 = lean_ctor_get(x_645, 0);
  lean_inc(x_656);
  lean_dec(x_645);
  x_657 = l_Lean_Environment_getModuleIdxFor_x3f(x_631, x_627);
  lean_dec(x_631);
  if (lean_obj_tag(x_657) == 0)
  {
  lean_object* x_658; lean_object* x_659; 
  x_658 = lean_box(0);
  x_659 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__35(x_1, x_656, x_2, x_639, x_635, x_633, x_627, x_10, x_640, x_658, x_4, x_5, x_6, x_7, x_643);
  return x_659;
  }
  else
  {
  lean_dec(x_657);
  if (x_2 == 0)
  {
  lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; uint8_t x_666; 
  lean_dec(x_656);
  lean_dec(x_639);
  lean_dec(x_635);
  lean_dec(x_633);
  lean_dec(x_10);
  lean_dec(x_1);
  x_660 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_660, 0, x_627);
  x_661 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8;
  x_662 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_662, 0, x_661);
  lean_ctor_set(x_662, 1, x_660);
  x_663 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10;
  x_664 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_664, 0, x_662);
  lean_ctor_set(x_664, 1, x_663);
  x_665 = l_Lean_throwError___at_Lean_Meta_whnf___spec__1(x_664, x_4, x_5, x_6, x_7, x_643);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_666 = !lean_is_exclusive(x_665);
  if (x_666 == 0)
  {
  return x_665;
  }
  else
  {
  lean_object* x_667; lean_object* x_668; lean_object* x_669; 
  x_667 = lean_ctor_get(x_665, 0);
  x_668 = lean_ctor_get(x_665, 1);
  lean_inc(x_668);
  lean_inc(x_667);
  lean_dec(x_665);
  x_669 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_669, 0, x_667);
  lean_ctor_set(x_669, 1, x_668);
  return x_669;
  }
  }
  else
  {
  lean_object* x_670; lean_object* x_671; 
  x_670 = lean_box(0);
  x_671 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__35(x_1, x_656, x_2, x_639, x_635, x_633, x_627, x_10, x_640, x_670, x_4, x_5, x_6, x_7, x_643);
  return x_671;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_699; 
  lean_dec(x_639);
  lean_dec(x_637);
  lean_dec(x_635);
  lean_dec(x_633);
  lean_dec(x_632);
  lean_dec(x_631);
  lean_dec(x_627);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_699 = !lean_is_exclusive(x_641);
  if (x_699 == 0)
  {
  return x_641;
  }
  else
  {
  lean_object* x_700; lean_object* x_701; lean_object* x_702; 
  x_700 = lean_ctor_get(x_641, 0);
  x_701 = lean_ctor_get(x_641, 1);
  lean_inc(x_701);
  lean_inc(x_700);
  lean_dec(x_641);
  x_702 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_702, 0, x_700);
  lean_ctor_set(x_702, 1, x_701);
  return x_702;
  }
  }
  }
  else
  {
  uint8_t x_703; 
  lean_dec(x_635);
  lean_dec(x_633);
  lean_dec(x_632);
  lean_dec(x_631);
  lean_dec(x_627);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_703 = !lean_is_exclusive(x_636);
  if (x_703 == 0)
  {
  return x_636;
  }
  else
  {
  lean_object* x_704; lean_object* x_705; lean_object* x_706; 
  x_704 = lean_ctor_get(x_636, 0);
  x_705 = lean_ctor_get(x_636, 1);
  lean_inc(x_705);
  lean_inc(x_704);
  lean_dec(x_636);
  x_706 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_706, 0, x_704);
  lean_ctor_set(x_706, 1, x_705);
  return x_706;
  }
  }
  }
  else
  {
  lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; 
  lean_dec(x_633);
  lean_dec(x_632);
  lean_dec(x_631);
  lean_dec(x_627);
  x_707 = lean_ctor_get(x_634, 0);
  lean_inc(x_707);
  lean_dec(x_634);
  x_708 = lean_box(0);
  x_709 = l_Lean_mkConst(x_707, x_708);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_709);
  x_710 = l_Lean_Meta_inferType(x_709, x_4, x_5, x_6, x_7, x_630);
  if (lean_obj_tag(x_710) == 0)
  {
  lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; 
  x_711 = lean_ctor_get(x_710, 0);
  lean_inc(x_711);
  x_712 = lean_ctor_get(x_710, 1);
  lean_inc(x_712);
  lean_dec(x_710);
  x_713 = lean_box(x_2);
  x_714 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__36___boxed), 11, 4);
  lean_closure_set(x_714, 0, x_10);
  lean_closure_set(x_714, 1, x_1);
  lean_closure_set(x_714, 2, x_713);
  lean_closure_set(x_714, 3, x_709);
  x_715 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_711, x_714, x_4, x_5, x_6, x_7, x_712);
  return x_715;
  }
  else
  {
  uint8_t x_716; 
  lean_dec(x_709);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_716 = !lean_is_exclusive(x_710);
  if (x_716 == 0)
  {
  return x_710;
  }
  else
  {
  lean_object* x_717; lean_object* x_718; lean_object* x_719; 
  x_717 = lean_ctor_get(x_710, 0);
  x_718 = lean_ctor_get(x_710, 1);
  lean_inc(x_718);
  lean_inc(x_717);
  lean_dec(x_710);
  x_719 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_719, 0, x_717);
  lean_ctor_set(x_719, 1, x_718);
  return x_719;
  }
  }
  }
  }
  else
  {
  lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; 
  lean_dec(x_626);
  lean_dec(x_1);
  x_720 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_720, 0, x_10);
  x_721 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2;
  x_722 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_722, 0, x_721);
  lean_ctor_set(x_722, 1, x_720);
  x_723 = l_Lean_KernelException_toMessageData___closed__3;
  x_724 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_724, 0, x_722);
  lean_ctor_set(x_724, 1, x_723);
  x_725 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_724, x_4, x_5, x_6, x_7, x_625);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_725;
  }
  }
  case 9:
  {
  lean_object* x_726; lean_object* x_727; 
  x_726 = lean_ctor_get(x_9, 1);
  lean_inc(x_726);
  lean_dec(x_9);
  x_727 = l_Lean_Expr_getAppFn(x_10);
  if (lean_obj_tag(x_727) == 4)
  {
  lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; 
  x_728 = lean_ctor_get(x_727, 0);
  lean_inc(x_728);
  lean_dec(x_727);
  x_729 = lean_st_ref_get(x_7, x_726);
  x_730 = lean_ctor_get(x_729, 0);
  lean_inc(x_730);
  x_731 = lean_ctor_get(x_729, 1);
  lean_inc(x_731);
  lean_dec(x_729);
  x_732 = lean_ctor_get(x_730, 0);
  lean_inc(x_732);
  lean_dec(x_730);
  x_733 = lean_ctor_get(x_1, 0);
  lean_inc(x_733);
  x_734 = lean_ctor_get(x_1, 2);
  lean_inc(x_734);
  x_735 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_734, x_732, x_728);
  if (lean_obj_tag(x_735) == 0)
  {
  lean_object* x_736; lean_object* x_737; 
  lean_inc(x_733);
  x_736 = l_Lean_Name_append(x_728, x_733);
  lean_inc(x_728);
  x_737 = l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(x_728, x_4, x_5, x_6, x_7, x_731);
  if (lean_obj_tag(x_737) == 0)
  {
  lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; 
  x_738 = lean_ctor_get(x_737, 0);
  lean_inc(x_738);
  x_739 = lean_ctor_get(x_737, 1);
  lean_inc(x_739);
  lean_dec(x_737);
  x_740 = l_Lean_ConstantInfo_type(x_738);
  x_741 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_740);
  x_742 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_740, x_741, x_4, x_5, x_6, x_7, x_739);
  if (lean_obj_tag(x_742) == 0)
  {
  lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_774; uint8_t x_775; 
  x_743 = lean_ctor_get(x_742, 0);
  lean_inc(x_743);
  x_744 = lean_ctor_get(x_742, 1);
  lean_inc(x_744);
  lean_dec(x_742);
  x_774 = l_Lean_Parser_evalParserConstUnsafe___closed__3;
  x_775 = l_Lean_Expr_isConstOf(x_743, x_774);
  if (x_775 == 0)
  {
  lean_object* x_776; uint8_t x_777; 
  x_776 = l_Lean_Parser_evalParserConstUnsafe___closed__1;
  x_777 = l_Lean_Expr_isConstOf(x_743, x_776);
  lean_dec(x_743);
  if (x_777 == 0)
  {
  lean_object* x_778; 
  lean_dec(x_740);
  lean_dec(x_738);
  lean_dec(x_736);
  lean_dec(x_734);
  lean_dec(x_732);
  lean_dec(x_728);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_10);
  x_778 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_4, x_5, x_6, x_7, x_744);
  if (lean_obj_tag(x_778) == 0)
  {
  lean_object* x_779; 
  x_779 = lean_ctor_get(x_778, 0);
  lean_inc(x_779);
  if (lean_obj_tag(x_779) == 0)
  {
  lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; 
  lean_dec(x_1);
  x_780 = lean_ctor_get(x_778, 1);
  lean_inc(x_780);
  lean_dec(x_778);
  x_781 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_781, 0, x_733);
  x_782 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_783 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_783, 0, x_782);
  lean_ctor_set(x_783, 1, x_781);
  x_784 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12;
  x_785 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_785, 0, x_783);
  lean_ctor_set(x_785, 1, x_784);
  x_786 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_786, 0, x_10);
  x_787 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_787, 0, x_785);
  lean_ctor_set(x_787, 1, x_786);
  x_788 = l_Lean_KernelException_toMessageData___closed__3;
  x_789 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_789, 0, x_787);
  lean_ctor_set(x_789, 1, x_788);
  x_790 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_789, x_4, x_5, x_6, x_7, x_780);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_790;
  }
  else
  {
  lean_object* x_791; lean_object* x_792; 
  lean_dec(x_733);
  lean_dec(x_10);
  x_791 = lean_ctor_get(x_778, 1);
  lean_inc(x_791);
  lean_dec(x_778);
  x_792 = lean_ctor_get(x_779, 0);
  lean_inc(x_792);
  lean_dec(x_779);
  x_3 = x_792;
  x_8 = x_791;
  goto _start;
  }
  }
  else
  {
  uint8_t x_794; 
  lean_dec(x_733);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_794 = !lean_is_exclusive(x_778);
  if (x_794 == 0)
  {
  return x_778;
  }
  else
  {
  lean_object* x_795; lean_object* x_796; lean_object* x_797; 
  x_795 = lean_ctor_get(x_778, 0);
  x_796 = lean_ctor_get(x_778, 1);
  lean_inc(x_796);
  lean_inc(x_795);
  lean_dec(x_778);
  x_797 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_797, 0, x_795);
  lean_ctor_set(x_797, 1, x_796);
  return x_797;
  }
  }
  }
  else
  {
  lean_object* x_798; 
  x_798 = lean_box(0);
  x_745 = x_798;
  goto block_773;
  }
  }
  else
  {
  lean_object* x_799; 
  lean_dec(x_743);
  x_799 = lean_box(0);
  x_745 = x_799;
  goto block_773;
  }
  block_773:
  {
  lean_object* x_746; 
  lean_dec(x_745);
  x_746 = l_Lean_ConstantInfo_value_x3f(x_738);
  lean_dec(x_738);
  if (lean_obj_tag(x_746) == 0)
  {
  lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; 
  lean_dec(x_740);
  lean_dec(x_736);
  lean_dec(x_734);
  lean_dec(x_732);
  lean_dec(x_728);
  lean_dec(x_1);
  x_747 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_747, 0, x_733);
  x_748 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_749 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_749, 0, x_748);
  lean_ctor_set(x_749, 1, x_747);
  x_750 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6;
  x_751 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_751, 0, x_749);
  lean_ctor_set(x_751, 1, x_750);
  x_752 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_752, 0, x_10);
  x_753 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_753, 0, x_751);
  lean_ctor_set(x_753, 1, x_752);
  x_754 = l_Lean_KernelException_toMessageData___closed__3;
  x_755 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_755, 0, x_753);
  lean_ctor_set(x_755, 1, x_754);
  x_756 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_755, x_4, x_5, x_6, x_7, x_744);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_756;
  }
  else
  {
  lean_object* x_757; lean_object* x_758; 
  lean_dec(x_733);
  x_757 = lean_ctor_get(x_746, 0);
  lean_inc(x_757);
  lean_dec(x_746);
  x_758 = l_Lean_Environment_getModuleIdxFor_x3f(x_732, x_728);
  lean_dec(x_732);
  if (lean_obj_tag(x_758) == 0)
  {
  lean_object* x_759; lean_object* x_760; 
  x_759 = lean_box(0);
  x_760 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__40(x_1, x_757, x_2, x_740, x_736, x_734, x_728, x_10, x_741, x_759, x_4, x_5, x_6, x_7, x_744);
  return x_760;
  }
  else
  {
  lean_dec(x_758);
  if (x_2 == 0)
  {
  lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; uint8_t x_767; 
  lean_dec(x_757);
  lean_dec(x_740);
  lean_dec(x_736);
  lean_dec(x_734);
  lean_dec(x_10);
  lean_dec(x_1);
  x_761 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_761, 0, x_728);
  x_762 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8;
  x_763 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_763, 0, x_762);
  lean_ctor_set(x_763, 1, x_761);
  x_764 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10;
  x_765 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_765, 0, x_763);
  lean_ctor_set(x_765, 1, x_764);
  x_766 = l_Lean_throwError___at_Lean_Meta_whnf___spec__1(x_765, x_4, x_5, x_6, x_7, x_744);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_767 = !lean_is_exclusive(x_766);
  if (x_767 == 0)
  {
  return x_766;
  }
  else
  {
  lean_object* x_768; lean_object* x_769; lean_object* x_770; 
  x_768 = lean_ctor_get(x_766, 0);
  x_769 = lean_ctor_get(x_766, 1);
  lean_inc(x_769);
  lean_inc(x_768);
  lean_dec(x_766);
  x_770 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_770, 0, x_768);
  lean_ctor_set(x_770, 1, x_769);
  return x_770;
  }
  }
  else
  {
  lean_object* x_771; lean_object* x_772; 
  x_771 = lean_box(0);
  x_772 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__40(x_1, x_757, x_2, x_740, x_736, x_734, x_728, x_10, x_741, x_771, x_4, x_5, x_6, x_7, x_744);
  return x_772;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_800; 
  lean_dec(x_740);
  lean_dec(x_738);
  lean_dec(x_736);
  lean_dec(x_734);
  lean_dec(x_733);
  lean_dec(x_732);
  lean_dec(x_728);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_800 = !lean_is_exclusive(x_742);
  if (x_800 == 0)
  {
  return x_742;
  }
  else
  {
  lean_object* x_801; lean_object* x_802; lean_object* x_803; 
  x_801 = lean_ctor_get(x_742, 0);
  x_802 = lean_ctor_get(x_742, 1);
  lean_inc(x_802);
  lean_inc(x_801);
  lean_dec(x_742);
  x_803 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_803, 0, x_801);
  lean_ctor_set(x_803, 1, x_802);
  return x_803;
  }
  }
  }
  else
  {
  uint8_t x_804; 
  lean_dec(x_736);
  lean_dec(x_734);
  lean_dec(x_733);
  lean_dec(x_732);
  lean_dec(x_728);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_804 = !lean_is_exclusive(x_737);
  if (x_804 == 0)
  {
  return x_737;
  }
  else
  {
  lean_object* x_805; lean_object* x_806; lean_object* x_807; 
  x_805 = lean_ctor_get(x_737, 0);
  x_806 = lean_ctor_get(x_737, 1);
  lean_inc(x_806);
  lean_inc(x_805);
  lean_dec(x_737);
  x_807 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_807, 0, x_805);
  lean_ctor_set(x_807, 1, x_806);
  return x_807;
  }
  }
  }
  else
  {
  lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; 
  lean_dec(x_734);
  lean_dec(x_733);
  lean_dec(x_732);
  lean_dec(x_728);
  x_808 = lean_ctor_get(x_735, 0);
  lean_inc(x_808);
  lean_dec(x_735);
  x_809 = lean_box(0);
  x_810 = l_Lean_mkConst(x_808, x_809);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_810);
  x_811 = l_Lean_Meta_inferType(x_810, x_4, x_5, x_6, x_7, x_731);
  if (lean_obj_tag(x_811) == 0)
  {
  lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; 
  x_812 = lean_ctor_get(x_811, 0);
  lean_inc(x_812);
  x_813 = lean_ctor_get(x_811, 1);
  lean_inc(x_813);
  lean_dec(x_811);
  x_814 = lean_box(x_2);
  x_815 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__41___boxed), 11, 4);
  lean_closure_set(x_815, 0, x_10);
  lean_closure_set(x_815, 1, x_1);
  lean_closure_set(x_815, 2, x_814);
  lean_closure_set(x_815, 3, x_810);
  x_816 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_812, x_815, x_4, x_5, x_6, x_7, x_813);
  return x_816;
  }
  else
  {
  uint8_t x_817; 
  lean_dec(x_810);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_817 = !lean_is_exclusive(x_811);
  if (x_817 == 0)
  {
  return x_811;
  }
  else
  {
  lean_object* x_818; lean_object* x_819; lean_object* x_820; 
  x_818 = lean_ctor_get(x_811, 0);
  x_819 = lean_ctor_get(x_811, 1);
  lean_inc(x_819);
  lean_inc(x_818);
  lean_dec(x_811);
  x_820 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_820, 0, x_818);
  lean_ctor_set(x_820, 1, x_819);
  return x_820;
  }
  }
  }
  }
  else
  {
  lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; 
  lean_dec(x_727);
  lean_dec(x_1);
  x_821 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_821, 0, x_10);
  x_822 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2;
  x_823 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_823, 0, x_822);
  lean_ctor_set(x_823, 1, x_821);
  x_824 = l_Lean_KernelException_toMessageData___closed__3;
  x_825 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_825, 0, x_823);
  lean_ctor_set(x_825, 1, x_824);
  x_826 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_825, x_4, x_5, x_6, x_7, x_726);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_826;
  }
  }
  case 10:
  {
  lean_object* x_827; lean_object* x_828; 
  x_827 = lean_ctor_get(x_9, 1);
  lean_inc(x_827);
  lean_dec(x_9);
  x_828 = l_Lean_Expr_getAppFn(x_10);
  if (lean_obj_tag(x_828) == 4)
  {
  lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; 
  x_829 = lean_ctor_get(x_828, 0);
  lean_inc(x_829);
  lean_dec(x_828);
  x_830 = lean_st_ref_get(x_7, x_827);
  x_831 = lean_ctor_get(x_830, 0);
  lean_inc(x_831);
  x_832 = lean_ctor_get(x_830, 1);
  lean_inc(x_832);
  lean_dec(x_830);
  x_833 = lean_ctor_get(x_831, 0);
  lean_inc(x_833);
  lean_dec(x_831);
  x_834 = lean_ctor_get(x_1, 0);
  lean_inc(x_834);
  x_835 = lean_ctor_get(x_1, 2);
  lean_inc(x_835);
  x_836 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_835, x_833, x_829);
  if (lean_obj_tag(x_836) == 0)
  {
  lean_object* x_837; lean_object* x_838; 
  lean_inc(x_834);
  x_837 = l_Lean_Name_append(x_829, x_834);
  lean_inc(x_829);
  x_838 = l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(x_829, x_4, x_5, x_6, x_7, x_832);
  if (lean_obj_tag(x_838) == 0)
  {
  lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; 
  x_839 = lean_ctor_get(x_838, 0);
  lean_inc(x_839);
  x_840 = lean_ctor_get(x_838, 1);
  lean_inc(x_840);
  lean_dec(x_838);
  x_841 = l_Lean_ConstantInfo_type(x_839);
  x_842 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_841);
  x_843 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_841, x_842, x_4, x_5, x_6, x_7, x_840);
  if (lean_obj_tag(x_843) == 0)
  {
  lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_875; uint8_t x_876; 
  x_844 = lean_ctor_get(x_843, 0);
  lean_inc(x_844);
  x_845 = lean_ctor_get(x_843, 1);
  lean_inc(x_845);
  lean_dec(x_843);
  x_875 = l_Lean_Parser_evalParserConstUnsafe___closed__3;
  x_876 = l_Lean_Expr_isConstOf(x_844, x_875);
  if (x_876 == 0)
  {
  lean_object* x_877; uint8_t x_878; 
  x_877 = l_Lean_Parser_evalParserConstUnsafe___closed__1;
  x_878 = l_Lean_Expr_isConstOf(x_844, x_877);
  lean_dec(x_844);
  if (x_878 == 0)
  {
  lean_object* x_879; 
  lean_dec(x_841);
  lean_dec(x_839);
  lean_dec(x_837);
  lean_dec(x_835);
  lean_dec(x_833);
  lean_dec(x_829);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_10);
  x_879 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_4, x_5, x_6, x_7, x_845);
  if (lean_obj_tag(x_879) == 0)
  {
  lean_object* x_880; 
  x_880 = lean_ctor_get(x_879, 0);
  lean_inc(x_880);
  if (lean_obj_tag(x_880) == 0)
  {
  lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; 
  lean_dec(x_1);
  x_881 = lean_ctor_get(x_879, 1);
  lean_inc(x_881);
  lean_dec(x_879);
  x_882 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_882, 0, x_834);
  x_883 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_884 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_884, 0, x_883);
  lean_ctor_set(x_884, 1, x_882);
  x_885 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12;
  x_886 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_886, 0, x_884);
  lean_ctor_set(x_886, 1, x_885);
  x_887 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_887, 0, x_10);
  x_888 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_888, 0, x_886);
  lean_ctor_set(x_888, 1, x_887);
  x_889 = l_Lean_KernelException_toMessageData___closed__3;
  x_890 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_890, 0, x_888);
  lean_ctor_set(x_890, 1, x_889);
  x_891 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_890, x_4, x_5, x_6, x_7, x_881);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_891;
  }
  else
  {
  lean_object* x_892; lean_object* x_893; 
  lean_dec(x_834);
  lean_dec(x_10);
  x_892 = lean_ctor_get(x_879, 1);
  lean_inc(x_892);
  lean_dec(x_879);
  x_893 = lean_ctor_get(x_880, 0);
  lean_inc(x_893);
  lean_dec(x_880);
  x_3 = x_893;
  x_8 = x_892;
  goto _start;
  }
  }
  else
  {
  uint8_t x_895; 
  lean_dec(x_834);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_895 = !lean_is_exclusive(x_879);
  if (x_895 == 0)
  {
  return x_879;
  }
  else
  {
  lean_object* x_896; lean_object* x_897; lean_object* x_898; 
  x_896 = lean_ctor_get(x_879, 0);
  x_897 = lean_ctor_get(x_879, 1);
  lean_inc(x_897);
  lean_inc(x_896);
  lean_dec(x_879);
  x_898 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_898, 0, x_896);
  lean_ctor_set(x_898, 1, x_897);
  return x_898;
  }
  }
  }
  else
  {
  lean_object* x_899; 
  x_899 = lean_box(0);
  x_846 = x_899;
  goto block_874;
  }
  }
  else
  {
  lean_object* x_900; 
  lean_dec(x_844);
  x_900 = lean_box(0);
  x_846 = x_900;
  goto block_874;
  }
  block_874:
  {
  lean_object* x_847; 
  lean_dec(x_846);
  x_847 = l_Lean_ConstantInfo_value_x3f(x_839);
  lean_dec(x_839);
  if (lean_obj_tag(x_847) == 0)
  {
  lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; 
  lean_dec(x_841);
  lean_dec(x_837);
  lean_dec(x_835);
  lean_dec(x_833);
  lean_dec(x_829);
  lean_dec(x_1);
  x_848 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_848, 0, x_834);
  x_849 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_850 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_850, 0, x_849);
  lean_ctor_set(x_850, 1, x_848);
  x_851 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6;
  x_852 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_852, 0, x_850);
  lean_ctor_set(x_852, 1, x_851);
  x_853 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_853, 0, x_10);
  x_854 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_854, 0, x_852);
  lean_ctor_set(x_854, 1, x_853);
  x_855 = l_Lean_KernelException_toMessageData___closed__3;
  x_856 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_856, 0, x_854);
  lean_ctor_set(x_856, 1, x_855);
  x_857 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_856, x_4, x_5, x_6, x_7, x_845);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_857;
  }
  else
  {
  lean_object* x_858; lean_object* x_859; 
  lean_dec(x_834);
  x_858 = lean_ctor_get(x_847, 0);
  lean_inc(x_858);
  lean_dec(x_847);
  x_859 = l_Lean_Environment_getModuleIdxFor_x3f(x_833, x_829);
  lean_dec(x_833);
  if (lean_obj_tag(x_859) == 0)
  {
  lean_object* x_860; lean_object* x_861; 
  x_860 = lean_box(0);
  x_861 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__45(x_1, x_858, x_2, x_841, x_837, x_835, x_829, x_10, x_842, x_860, x_4, x_5, x_6, x_7, x_845);
  return x_861;
  }
  else
  {
  lean_dec(x_859);
  if (x_2 == 0)
  {
  lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; uint8_t x_868; 
  lean_dec(x_858);
  lean_dec(x_841);
  lean_dec(x_837);
  lean_dec(x_835);
  lean_dec(x_10);
  lean_dec(x_1);
  x_862 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_862, 0, x_829);
  x_863 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8;
  x_864 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_864, 0, x_863);
  lean_ctor_set(x_864, 1, x_862);
  x_865 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10;
  x_866 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_866, 0, x_864);
  lean_ctor_set(x_866, 1, x_865);
  x_867 = l_Lean_throwError___at_Lean_Meta_whnf___spec__1(x_866, x_4, x_5, x_6, x_7, x_845);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_868 = !lean_is_exclusive(x_867);
  if (x_868 == 0)
  {
  return x_867;
  }
  else
  {
  lean_object* x_869; lean_object* x_870; lean_object* x_871; 
  x_869 = lean_ctor_get(x_867, 0);
  x_870 = lean_ctor_get(x_867, 1);
  lean_inc(x_870);
  lean_inc(x_869);
  lean_dec(x_867);
  x_871 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_871, 0, x_869);
  lean_ctor_set(x_871, 1, x_870);
  return x_871;
  }
  }
  else
  {
  lean_object* x_872; lean_object* x_873; 
  x_872 = lean_box(0);
  x_873 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__45(x_1, x_858, x_2, x_841, x_837, x_835, x_829, x_10, x_842, x_872, x_4, x_5, x_6, x_7, x_845);
  return x_873;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_901; 
  lean_dec(x_841);
  lean_dec(x_839);
  lean_dec(x_837);
  lean_dec(x_835);
  lean_dec(x_834);
  lean_dec(x_833);
  lean_dec(x_829);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_901 = !lean_is_exclusive(x_843);
  if (x_901 == 0)
  {
  return x_843;
  }
  else
  {
  lean_object* x_902; lean_object* x_903; lean_object* x_904; 
  x_902 = lean_ctor_get(x_843, 0);
  x_903 = lean_ctor_get(x_843, 1);
  lean_inc(x_903);
  lean_inc(x_902);
  lean_dec(x_843);
  x_904 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_904, 0, x_902);
  lean_ctor_set(x_904, 1, x_903);
  return x_904;
  }
  }
  }
  else
  {
  uint8_t x_905; 
  lean_dec(x_837);
  lean_dec(x_835);
  lean_dec(x_834);
  lean_dec(x_833);
  lean_dec(x_829);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_905 = !lean_is_exclusive(x_838);
  if (x_905 == 0)
  {
  return x_838;
  }
  else
  {
  lean_object* x_906; lean_object* x_907; lean_object* x_908; 
  x_906 = lean_ctor_get(x_838, 0);
  x_907 = lean_ctor_get(x_838, 1);
  lean_inc(x_907);
  lean_inc(x_906);
  lean_dec(x_838);
  x_908 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_908, 0, x_906);
  lean_ctor_set(x_908, 1, x_907);
  return x_908;
  }
  }
  }
  else
  {
  lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; 
  lean_dec(x_835);
  lean_dec(x_834);
  lean_dec(x_833);
  lean_dec(x_829);
  x_909 = lean_ctor_get(x_836, 0);
  lean_inc(x_909);
  lean_dec(x_836);
  x_910 = lean_box(0);
  x_911 = l_Lean_mkConst(x_909, x_910);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_911);
  x_912 = l_Lean_Meta_inferType(x_911, x_4, x_5, x_6, x_7, x_832);
  if (lean_obj_tag(x_912) == 0)
  {
  lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; 
  x_913 = lean_ctor_get(x_912, 0);
  lean_inc(x_913);
  x_914 = lean_ctor_get(x_912, 1);
  lean_inc(x_914);
  lean_dec(x_912);
  x_915 = lean_box(x_2);
  x_916 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__46___boxed), 11, 4);
  lean_closure_set(x_916, 0, x_10);
  lean_closure_set(x_916, 1, x_1);
  lean_closure_set(x_916, 2, x_915);
  lean_closure_set(x_916, 3, x_911);
  x_917 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_913, x_916, x_4, x_5, x_6, x_7, x_914);
  return x_917;
  }
  else
  {
  uint8_t x_918; 
  lean_dec(x_911);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_918 = !lean_is_exclusive(x_912);
  if (x_918 == 0)
  {
  return x_912;
  }
  else
  {
  lean_object* x_919; lean_object* x_920; lean_object* x_921; 
  x_919 = lean_ctor_get(x_912, 0);
  x_920 = lean_ctor_get(x_912, 1);
  lean_inc(x_920);
  lean_inc(x_919);
  lean_dec(x_912);
  x_921 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_921, 0, x_919);
  lean_ctor_set(x_921, 1, x_920);
  return x_921;
  }
  }
  }
  }
  else
  {
  lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; 
  lean_dec(x_828);
  lean_dec(x_1);
  x_922 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_922, 0, x_10);
  x_923 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2;
  x_924 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_924, 0, x_923);
  lean_ctor_set(x_924, 1, x_922);
  x_925 = l_Lean_KernelException_toMessageData___closed__3;
  x_926 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_926, 0, x_924);
  lean_ctor_set(x_926, 1, x_925);
  x_927 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_926, x_4, x_5, x_6, x_7, x_827);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_927;
  }
  }
  default: 
  {
  lean_object* x_928; lean_object* x_929; 
  x_928 = lean_ctor_get(x_9, 1);
  lean_inc(x_928);
  lean_dec(x_9);
  x_929 = l_Lean_Expr_getAppFn(x_10);
  if (lean_obj_tag(x_929) == 4)
  {
  lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; 
  x_930 = lean_ctor_get(x_929, 0);
  lean_inc(x_930);
  lean_dec(x_929);
  x_931 = lean_st_ref_get(x_7, x_928);
  x_932 = lean_ctor_get(x_931, 0);
  lean_inc(x_932);
  x_933 = lean_ctor_get(x_931, 1);
  lean_inc(x_933);
  lean_dec(x_931);
  x_934 = lean_ctor_get(x_932, 0);
  lean_inc(x_934);
  lean_dec(x_932);
  x_935 = lean_ctor_get(x_1, 0);
  lean_inc(x_935);
  x_936 = lean_ctor_get(x_1, 2);
  lean_inc(x_936);
  x_937 = l_Lean_ParserCompiler_CombinatorAttribute_getDeclFor_x3f(x_936, x_934, x_930);
  if (lean_obj_tag(x_937) == 0)
  {
  lean_object* x_938; lean_object* x_939; 
  lean_inc(x_935);
  x_938 = l_Lean_Name_append(x_930, x_935);
  lean_inc(x_930);
  x_939 = l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(x_930, x_4, x_5, x_6, x_7, x_933);
  if (lean_obj_tag(x_939) == 0)
  {
  lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; 
  x_940 = lean_ctor_get(x_939, 0);
  lean_inc(x_940);
  x_941 = lean_ctor_get(x_939, 1);
  lean_inc(x_941);
  lean_dec(x_939);
  x_942 = l_Lean_ConstantInfo_type(x_940);
  x_943 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1;
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_942);
  x_944 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_942, x_943, x_4, x_5, x_6, x_7, x_941);
  if (lean_obj_tag(x_944) == 0)
  {
  lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_976; uint8_t x_977; 
  x_945 = lean_ctor_get(x_944, 0);
  lean_inc(x_945);
  x_946 = lean_ctor_get(x_944, 1);
  lean_inc(x_946);
  lean_dec(x_944);
  x_976 = l_Lean_Parser_evalParserConstUnsafe___closed__3;
  x_977 = l_Lean_Expr_isConstOf(x_945, x_976);
  if (x_977 == 0)
  {
  lean_object* x_978; uint8_t x_979; 
  x_978 = l_Lean_Parser_evalParserConstUnsafe___closed__1;
  x_979 = l_Lean_Expr_isConstOf(x_945, x_978);
  lean_dec(x_945);
  if (x_979 == 0)
  {
  lean_object* x_980; 
  lean_dec(x_942);
  lean_dec(x_940);
  lean_dec(x_938);
  lean_dec(x_936);
  lean_dec(x_934);
  lean_dec(x_930);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_10);
  x_980 = l_Lean_Meta_unfoldDefinition_x3f(x_10, x_4, x_5, x_6, x_7, x_946);
  if (lean_obj_tag(x_980) == 0)
  {
  lean_object* x_981; 
  x_981 = lean_ctor_get(x_980, 0);
  lean_inc(x_981);
  if (lean_obj_tag(x_981) == 0)
  {
  lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; 
  lean_dec(x_1);
  x_982 = lean_ctor_get(x_980, 1);
  lean_inc(x_982);
  lean_dec(x_980);
  x_983 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_983, 0, x_935);
  x_984 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_985 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_985, 0, x_984);
  lean_ctor_set(x_985, 1, x_983);
  x_986 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12;
  x_987 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_987, 0, x_985);
  lean_ctor_set(x_987, 1, x_986);
  x_988 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_988, 0, x_10);
  x_989 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_989, 0, x_987);
  lean_ctor_set(x_989, 1, x_988);
  x_990 = l_Lean_KernelException_toMessageData___closed__3;
  x_991 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_991, 0, x_989);
  lean_ctor_set(x_991, 1, x_990);
  x_992 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_991, x_4, x_5, x_6, x_7, x_982);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_992;
  }
  else
  {
  lean_object* x_993; lean_object* x_994; 
  lean_dec(x_935);
  lean_dec(x_10);
  x_993 = lean_ctor_get(x_980, 1);
  lean_inc(x_993);
  lean_dec(x_980);
  x_994 = lean_ctor_get(x_981, 0);
  lean_inc(x_994);
  lean_dec(x_981);
  x_3 = x_994;
  x_8 = x_993;
  goto _start;
  }
  }
  else
  {
  uint8_t x_996; 
  lean_dec(x_935);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_996 = !lean_is_exclusive(x_980);
  if (x_996 == 0)
  {
  return x_980;
  }
  else
  {
  lean_object* x_997; lean_object* x_998; lean_object* x_999; 
  x_997 = lean_ctor_get(x_980, 0);
  x_998 = lean_ctor_get(x_980, 1);
  lean_inc(x_998);
  lean_inc(x_997);
  lean_dec(x_980);
  x_999 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_999, 0, x_997);
  lean_ctor_set(x_999, 1, x_998);
  return x_999;
  }
  }
  }
  else
  {
  lean_object* x_1000; 
  x_1000 = lean_box(0);
  x_947 = x_1000;
  goto block_975;
  }
  }
  else
  {
  lean_object* x_1001; 
  lean_dec(x_945);
  x_1001 = lean_box(0);
  x_947 = x_1001;
  goto block_975;
  }
  block_975:
  {
  lean_object* x_948; 
  lean_dec(x_947);
  x_948 = l_Lean_ConstantInfo_value_x3f(x_940);
  lean_dec(x_940);
  if (lean_obj_tag(x_948) == 0)
  {
  lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; 
  lean_dec(x_942);
  lean_dec(x_938);
  lean_dec(x_936);
  lean_dec(x_934);
  lean_dec(x_930);
  lean_dec(x_1);
  x_949 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_949, 0, x_935);
  x_950 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4;
  x_951 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_951, 0, x_950);
  lean_ctor_set(x_951, 1, x_949);
  x_952 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6;
  x_953 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_953, 0, x_951);
  lean_ctor_set(x_953, 1, x_952);
  x_954 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_954, 0, x_10);
  x_955 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_955, 0, x_953);
  lean_ctor_set(x_955, 1, x_954);
  x_956 = l_Lean_KernelException_toMessageData___closed__3;
  x_957 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_957, 0, x_955);
  lean_ctor_set(x_957, 1, x_956);
  x_958 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_957, x_4, x_5, x_6, x_7, x_946);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_958;
  }
  else
  {
  lean_object* x_959; lean_object* x_960; 
  lean_dec(x_935);
  x_959 = lean_ctor_get(x_948, 0);
  lean_inc(x_959);
  lean_dec(x_948);
  x_960 = l_Lean_Environment_getModuleIdxFor_x3f(x_934, x_930);
  lean_dec(x_934);
  if (lean_obj_tag(x_960) == 0)
  {
  lean_object* x_961; lean_object* x_962; 
  x_961 = lean_box(0);
  x_962 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__50(x_1, x_959, x_2, x_942, x_938, x_936, x_930, x_10, x_943, x_961, x_4, x_5, x_6, x_7, x_946);
  return x_962;
  }
  else
  {
  lean_dec(x_960);
  if (x_2 == 0)
  {
  lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; uint8_t x_969; 
  lean_dec(x_959);
  lean_dec(x_942);
  lean_dec(x_938);
  lean_dec(x_936);
  lean_dec(x_10);
  lean_dec(x_1);
  x_963 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_963, 0, x_930);
  x_964 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8;
  x_965 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_965, 0, x_964);
  lean_ctor_set(x_965, 1, x_963);
  x_966 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10;
  x_967 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_967, 0, x_965);
  lean_ctor_set(x_967, 1, x_966);
  x_968 = l_Lean_throwError___at_Lean_Meta_whnf___spec__1(x_967, x_4, x_5, x_6, x_7, x_946);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_969 = !lean_is_exclusive(x_968);
  if (x_969 == 0)
  {
  return x_968;
  }
  else
  {
  lean_object* x_970; lean_object* x_971; lean_object* x_972; 
  x_970 = lean_ctor_get(x_968, 0);
  x_971 = lean_ctor_get(x_968, 1);
  lean_inc(x_971);
  lean_inc(x_970);
  lean_dec(x_968);
  x_972 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_972, 0, x_970);
  lean_ctor_set(x_972, 1, x_971);
  return x_972;
  }
  }
  else
  {
  lean_object* x_973; lean_object* x_974; 
  x_973 = lean_box(0);
  x_974 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__50(x_1, x_959, x_2, x_942, x_938, x_936, x_930, x_10, x_943, x_973, x_4, x_5, x_6, x_7, x_946);
  return x_974;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_1002; 
  lean_dec(x_942);
  lean_dec(x_940);
  lean_dec(x_938);
  lean_dec(x_936);
  lean_dec(x_935);
  lean_dec(x_934);
  lean_dec(x_930);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_1002 = !lean_is_exclusive(x_944);
  if (x_1002 == 0)
  {
  return x_944;
  }
  else
  {
  lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; 
  x_1003 = lean_ctor_get(x_944, 0);
  x_1004 = lean_ctor_get(x_944, 1);
  lean_inc(x_1004);
  lean_inc(x_1003);
  lean_dec(x_944);
  x_1005 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_1005, 0, x_1003);
  lean_ctor_set(x_1005, 1, x_1004);
  return x_1005;
  }
  }
  }
  else
  {
  uint8_t x_1006; 
  lean_dec(x_938);
  lean_dec(x_936);
  lean_dec(x_935);
  lean_dec(x_934);
  lean_dec(x_930);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_1006 = !lean_is_exclusive(x_939);
  if (x_1006 == 0)
  {
  return x_939;
  }
  else
  {
  lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; 
  x_1007 = lean_ctor_get(x_939, 0);
  x_1008 = lean_ctor_get(x_939, 1);
  lean_inc(x_1008);
  lean_inc(x_1007);
  lean_dec(x_939);
  x_1009 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_1009, 0, x_1007);
  lean_ctor_set(x_1009, 1, x_1008);
  return x_1009;
  }
  }
  }
  else
  {
  lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; 
  lean_dec(x_936);
  lean_dec(x_935);
  lean_dec(x_934);
  lean_dec(x_930);
  x_1010 = lean_ctor_get(x_937, 0);
  lean_inc(x_1010);
  lean_dec(x_937);
  x_1011 = lean_box(0);
  x_1012 = l_Lean_mkConst(x_1010, x_1011);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_1012);
  x_1013 = l_Lean_Meta_inferType(x_1012, x_4, x_5, x_6, x_7, x_933);
  if (lean_obj_tag(x_1013) == 0)
  {
  lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; 
  x_1014 = lean_ctor_get(x_1013, 0);
  lean_inc(x_1014);
  x_1015 = lean_ctor_get(x_1013, 1);
  lean_inc(x_1015);
  lean_dec(x_1013);
  x_1016 = lean_box(x_2);
  x_1017 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__51___boxed), 11, 4);
  lean_closure_set(x_1017, 0, x_10);
  lean_closure_set(x_1017, 1, x_1);
  lean_closure_set(x_1017, 2, x_1016);
  lean_closure_set(x_1017, 3, x_1012);
  x_1018 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_1014, x_1017, x_4, x_5, x_6, x_7, x_1015);
  return x_1018;
  }
  else
  {
  uint8_t x_1019; 
  lean_dec(x_1012);
  lean_dec(x_10);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_1019 = !lean_is_exclusive(x_1013);
  if (x_1019 == 0)
  {
  return x_1013;
  }
  else
  {
  lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; 
  x_1020 = lean_ctor_get(x_1013, 0);
  x_1021 = lean_ctor_get(x_1013, 1);
  lean_inc(x_1021);
  lean_inc(x_1020);
  lean_dec(x_1013);
  x_1022 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_1022, 0, x_1020);
  lean_ctor_set(x_1022, 1, x_1021);
  return x_1022;
  }
  }
  }
  }
  else
  {
  lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; 
  lean_dec(x_929);
  lean_dec(x_1);
  x_1023 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_1023, 0, x_10);
  x_1024 = l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2;
  x_1025 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_1025, 0, x_1024);
  lean_ctor_set(x_1025, 1, x_1023);
  x_1026 = l_Lean_KernelException_toMessageData___closed__3;
  x_1027 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_1027, 0, x_1025);
  lean_ctor_set(x_1027, 1, x_1026);
  x_1028 = l_Lean_throwError___at_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_967____spec__1(x_1027, x_4, x_5, x_6, x_7, x_928);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_1028;
  }
  }
  }
  }
  else
  {
  uint8_t x_1029; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_1029 = !lean_is_exclusive(x_9);
  if (x_1029 == 0)
  {
  return x_9;
  }
  else
  {
  lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; 
  x_1030 = lean_ctor_get(x_9, 0);
  x_1031 = lean_ctor_get(x_9, 1);
  lean_inc(x_1031);
  lean_inc(x_1030);
  lean_dec(x_9);
  x_1032 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_1032, 0, x_1030);
  lean_ctor_set(x_1032, 1, x_1031);
  return x_1032;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileParserExpr___rarg___boxed), 8, 0);
  return x_2;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__1___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__2___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_8;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_2);
  lean_dec(x_2);
  x_16 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_16;
  }
  }
  lean_object* l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___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) {
  _start:
  {
  lean_object* x_7; 
  x_7 = l_Lean_throwError___at_Lean_ParserCompiler_compileParserExpr___spec__5(x_1, x_2, x_3, x_4, x_5, x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_7;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_1);
  return x_8;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  uint8_t x_14; lean_object* x_15; 
  x_14 = lean_unbox(x_2);
  lean_dec(x_2);
  x_15 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_15;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__7___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__8___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__8___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__9___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_2);
  lean_dec(x_2);
  x_16 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__9___rarg(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_16;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__10___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  uint8_t x_14; lean_object* x_15; 
  x_14 = lean_unbox(x_2);
  lean_dec(x_2);
  x_15 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__10___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_15;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__11___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__11___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__12___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__12___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__13___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_2);
  lean_dec(x_2);
  x_16 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__13___rarg(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_16;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__14___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  uint8_t x_14; lean_object* x_15; 
  x_14 = lean_unbox(x_2);
  lean_dec(x_2);
  x_15 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__14___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_15;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__15___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__15___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__16___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__16___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__17___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_2);
  lean_dec(x_2);
  x_16 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__17___rarg(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_16;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__18___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  uint8_t x_14; lean_object* x_15; 
  x_14 = lean_unbox(x_2);
  lean_dec(x_2);
  x_15 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__18___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_15;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__19___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__19___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__20___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__20___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__21___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_2);
  lean_dec(x_2);
  x_16 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__21___rarg(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_16;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__22___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  uint8_t x_14; lean_object* x_15; 
  x_14 = lean_unbox(x_2);
  lean_dec(x_2);
  x_15 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__22___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_15;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__23___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__23___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__24___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__24___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__25___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_2);
  lean_dec(x_2);
  x_16 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__25___rarg(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_16;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__26___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  uint8_t x_14; lean_object* x_15; 
  x_14 = lean_unbox(x_2);
  lean_dec(x_2);
  x_15 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__26___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_15;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__27___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__27___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__28___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__28___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__29___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_2);
  lean_dec(x_2);
  x_16 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__29___rarg(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_16;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__30___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  uint8_t x_14; lean_object* x_15; 
  x_14 = lean_unbox(x_2);
  lean_dec(x_2);
  x_15 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__30___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_15;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__31___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__31___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__32___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__32___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__33___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_2);
  lean_dec(x_2);
  x_16 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__33___rarg(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_16;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__34___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  uint8_t x_14; lean_object* x_15; 
  x_14 = lean_unbox(x_2);
  lean_dec(x_2);
  x_15 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__34___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_15;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__35___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__35___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__36___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__36___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__37___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_2);
  lean_dec(x_2);
  x_16 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__37___rarg(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_16;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__38___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  uint8_t x_14; lean_object* x_15; 
  x_14 = lean_unbox(x_2);
  lean_dec(x_2);
  x_15 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__38___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_15;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__39___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__39___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__40___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  size_t x_11; size_t x_12; lean_object* x_13; 
  x_11 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_12 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_13 = l_Array_foldrMUnsafe_fold___at_Lean_ParserCompiler_compileParserExpr___spec__40___rarg(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_13;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__41___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_2);
  lean_dec(x_2);
  x_16 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__41___rarg(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_16;
  }
  }
  lean_object* l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__42___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  uint8_t x_14; lean_object* x_15; 
  x_14 = lean_unbox(x_2);
  lean_dec(x_2);
  x_15 = l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__42___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_15;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_9;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___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_3);
  lean_dec(x_3);
  x_14 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__2(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);
  return x_14;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_7);
  lean_dec(x_7);
  x_16 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  return x_16;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__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, 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_ParserCompiler_compileParserExpr___rarg___lambda__4(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);
  return x_17;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__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, lean_object* x_11) {
  _start:
  {
  uint8_t x_12; lean_object* x_13; 
  x_12 = lean_unbox(x_3);
  lean_dec(x_3);
  x_13 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__5(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_13;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__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) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_9;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__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, 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_ParserCompiler_compileParserExpr___rarg___lambda__7(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);
  return x_14;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__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, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_7);
  lean_dec(x_7);
  x_16 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  return x_16;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__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, 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_ParserCompiler_compileParserExpr___rarg___lambda__9(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);
  return x_17;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__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:
  {
  uint8_t x_12; lean_object* x_13; 
  x_12 = lean_unbox(x_3);
  lean_dec(x_3);
  x_13 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__10(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_13;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__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) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_9;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__12___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_ParserCompiler_compileParserExpr___rarg___lambda__12(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);
  return x_14;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__13___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) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_7);
  lean_dec(x_7);
  x_16 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__13(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  return x_16;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__14___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_ParserCompiler_compileParserExpr___rarg___lambda__14(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);
  return x_17;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__15___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:
  {
  uint8_t x_12; lean_object* x_13; 
  x_12 = lean_unbox(x_3);
  lean_dec(x_3);
  x_13 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__15(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_13;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__16(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_9;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__17___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_ParserCompiler_compileParserExpr___rarg___lambda__17(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);
  return x_14;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__18___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) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_7);
  lean_dec(x_7);
  x_16 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__18(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  return x_16;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__19___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_ParserCompiler_compileParserExpr___rarg___lambda__19(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);
  return x_17;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__20___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:
  {
  uint8_t x_12; lean_object* x_13; 
  x_12 = lean_unbox(x_3);
  lean_dec(x_3);
  x_13 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__20(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_13;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__21(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_9;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__22___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_ParserCompiler_compileParserExpr___rarg___lambda__22(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);
  return x_14;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__23___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) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_7);
  lean_dec(x_7);
  x_16 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__23(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  return x_16;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__24___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_ParserCompiler_compileParserExpr___rarg___lambda__24(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);
  return x_17;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__25___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:
  {
  uint8_t x_12; lean_object* x_13; 
  x_12 = lean_unbox(x_3);
  lean_dec(x_3);
  x_13 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__25(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_13;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__26___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_ParserCompiler_compileParserExpr___rarg___lambda__26(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  return x_11;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__27___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__27(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_9;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__28___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_ParserCompiler_compileParserExpr___rarg___lambda__28(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);
  return x_14;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__29___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) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_7);
  lean_dec(x_7);
  x_16 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__29(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  return x_16;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__30___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_ParserCompiler_compileParserExpr___rarg___lambda__30(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);
  return x_17;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__31___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:
  {
  uint8_t x_12; lean_object* x_13; 
  x_12 = lean_unbox(x_3);
  lean_dec(x_3);
  x_13 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__31(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_13;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__32___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__32(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_9;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__33___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_ParserCompiler_compileParserExpr___rarg___lambda__33(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);
  return x_14;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__34___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) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_7);
  lean_dec(x_7);
  x_16 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__34(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  return x_16;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__35___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_ParserCompiler_compileParserExpr___rarg___lambda__35(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);
  return x_17;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__36___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:
  {
  uint8_t x_12; lean_object* x_13; 
  x_12 = lean_unbox(x_3);
  lean_dec(x_3);
  x_13 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__36(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_13;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__37___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__37(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_9;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__38___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_ParserCompiler_compileParserExpr___rarg___lambda__38(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);
  return x_14;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__39___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) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_7);
  lean_dec(x_7);
  x_16 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__39(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  return x_16;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__40___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_ParserCompiler_compileParserExpr___rarg___lambda__40(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);
  return x_17;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__41___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:
  {
  uint8_t x_12; lean_object* x_13; 
  x_12 = lean_unbox(x_3);
  lean_dec(x_3);
  x_13 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__41(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_13;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__42___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__42(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_9;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__43___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_ParserCompiler_compileParserExpr___rarg___lambda__43(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);
  return x_14;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__44___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) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_7);
  lean_dec(x_7);
  x_16 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__44(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  return x_16;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__45___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_ParserCompiler_compileParserExpr___rarg___lambda__45(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);
  return x_17;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__46___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:
  {
  uint8_t x_12; lean_object* x_13; 
  x_12 = lean_unbox(x_3);
  lean_dec(x_3);
  x_13 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__46(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_13;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__47___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__47(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_9;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__48___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_ParserCompiler_compileParserExpr___rarg___lambda__48(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);
  return x_14;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__49___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) {
  _start:
  {
  uint8_t x_15; lean_object* x_16; 
  x_15 = lean_unbox(x_7);
  lean_dec(x_7);
  x_16 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__49(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_8, x_9, x_10, x_11, x_12, x_13, x_14);
  return x_16;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__50___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_ParserCompiler_compileParserExpr___rarg___lambda__50(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);
  return x_17;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__51___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:
  {
  uint8_t x_12; lean_object* x_13; 
  x_12 = lean_unbox(x_3);
  lean_dec(x_3);
  x_13 = l_Lean_ParserCompiler_compileParserExpr___rarg___lambda__51(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_13;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileParserExpr___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  uint8_t x_9; lean_object* x_10; 
  x_9 = lean_unbox(x_2);
  lean_dec(x_2);
  x_10 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8);
  return x_10;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileCategoryParser_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 4)
  {
  lean_object* x_4; lean_object* x_5; uint64_t x_6; lean_object* x_7; lean_object* x_8; 
  lean_dec(x_3);
  x_4 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  x_5 = lean_ctor_get(x_1, 1);
  lean_inc(x_5);
  x_6 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  lean_dec(x_1);
  x_7 = lean_box_uint64(x_6);
  x_8 = lean_apply_3(x_2, x_4, x_5, x_7);
  return x_8;
  }
  else
  {
  lean_object* x_9; 
  lean_dec(x_2);
  x_9 = lean_apply_1(x_3, x_1);
  return x_9;
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileCategoryParser_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileCategoryParser_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Core_instInhabitedCoreM___boxed), 3, 1);
  lean_closure_set(x_1, 0, lean_box(0));
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Lean.ParserCompiler");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Lean.ParserCompiler.compileCategoryParser");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_1 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__2;
  x_2 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__3;
  x_3 = lean_unsigned_to_nat(110u);
  x_4 = lean_unsigned_to_nat(6u);
  x_5 = l_Lean_Syntax_strLitToAtom___closed__3;
  x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
  return x_6;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileCategoryParser___rarg(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  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; uint8_t x_15; lean_object* x_16; lean_object* x_17; 
  x_7 = lean_box(0);
  lean_inc(x_2);
  x_8 = l_Lean_mkConst(x_2, x_7);
  x_9 = lean_st_ref_get(x_5, x_6);
  x_10 = lean_ctor_get(x_9, 1);
  lean_inc(x_10);
  lean_dec(x_9);
  x_11 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2;
  x_12 = lean_st_mk_ref(x_11, x_10);
  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_Meta_instMetaEvalMetaM___rarg___closed__1;
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_13);
  lean_inc(x_1);
  x_17 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_15, x_8, x_16, x_13, x_4, x_5, x_14);
  if (lean_obj_tag(x_17) == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_18 = lean_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  x_20 = lean_st_ref_get(x_5, x_19);
  x_21 = lean_ctor_get(x_20, 1);
  lean_inc(x_21);
  lean_dec(x_20);
  x_22 = lean_st_ref_get(x_13, x_21);
  lean_dec(x_13);
  if (lean_obj_tag(x_18) == 4)
  {
  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_23 = lean_ctor_get(x_22, 1);
  lean_inc(x_23);
  lean_dec(x_22);
  x_24 = lean_ctor_get(x_18, 0);
  lean_inc(x_24);
  lean_dec(x_18);
  x_25 = lean_mk_syntax_ident(x_2);
  x_26 = l_Lean_mkOptionalNode___closed__2;
  x_27 = lean_array_push(x_26, x_25);
  x_28 = l_Lean_nullKind;
  x_29 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_29, 0, x_28);
  lean_ctor_set(x_29, 1, x_27);
  if (x_3 == 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; lean_object* x_38; uint8_t x_39; lean_object* x_40; 
  x_30 = lean_ctor_get(x_1, 1);
  lean_inc(x_30);
  lean_dec(x_1);
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  lean_dec(x_30);
  x_32 = lean_ctor_get(x_31, 1);
  lean_inc(x_32);
  lean_dec(x_31);
  lean_inc(x_32);
  x_33 = lean_mk_syntax_ident(x_32);
  x_34 = l_Lean_Syntax_mkApp___closed__1;
  x_35 = lean_array_push(x_34, x_33);
  x_36 = lean_array_push(x_35, x_29);
  x_37 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1098____closed__15;
  x_38 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_38, 0, x_37);
  lean_ctor_set(x_38, 1, x_36);
  x_39 = 0;
  x_40 = l_Lean_Attribute_add(x_24, x_32, x_38, x_39, x_4, x_5, x_23);
  return x_40;
  }
  else
  {
  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; uint8_t x_50; lean_object* x_51; 
  x_41 = lean_ctor_get(x_1, 1);
  lean_inc(x_41);
  lean_dec(x_1);
  x_42 = lean_ctor_get(x_41, 0);
  lean_inc(x_42);
  lean_dec(x_41);
  x_43 = lean_ctor_get(x_42, 0);
  lean_inc(x_43);
  lean_dec(x_42);
  lean_inc(x_43);
  x_44 = lean_mk_syntax_ident(x_43);
  x_45 = l_Lean_Syntax_mkApp___closed__1;
  x_46 = lean_array_push(x_45, x_44);
  x_47 = lean_array_push(x_46, x_29);
  x_48 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1098____closed__15;
  x_49 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_49, 0, x_48);
  lean_ctor_set(x_49, 1, x_47);
  x_50 = 0;
  x_51 = l_Lean_Attribute_add(x_24, x_43, x_49, x_50, x_4, x_5, x_23);
  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_dec(x_18);
  lean_dec(x_2);
  lean_dec(x_1);
  x_52 = lean_ctor_get(x_22, 1);
  lean_inc(x_52);
  lean_dec(x_22);
  x_53 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__1;
  x_54 = l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__4;
  x_55 = lean_panic_fn(x_53, x_54);
  x_56 = lean_apply_3(x_55, x_4, x_5, x_52);
  return x_56;
  }
  }
  else
  {
  uint8_t x_57; 
  lean_dec(x_13);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_2);
  lean_dec(x_1);
  x_57 = !lean_is_exclusive(x_17);
  if (x_57 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_58 = lean_ctor_get(x_17, 0);
  x_59 = lean_ctor_get(x_17, 1);
  lean_inc(x_59);
  lean_inc(x_58);
  lean_dec(x_17);
  x_60 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_60, 0, x_58);
  lean_ctor_set(x_60, 1, x_59);
  return x_60;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileCategoryParser(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileCategoryParser___rarg___boxed), 6, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileCategoryParser___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  uint8_t x_7; lean_object* x_8; 
  x_7 = lean_unbox(x_3);
  lean_dec(x_3);
  x_8 = l_Lean_ParserCompiler_compileCategoryParser___rarg(x_1, x_2, x_7, x_4, x_5, x_6);
  return x_8;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileEmbeddedParsers_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 0:
  {
  lean_object* x_14; lean_object* x_15; 
  lean_dec(x_13);
  lean_dec(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);
  x_14 = lean_ctor_get(x_1, 0);
  lean_inc(x_14);
  lean_dec(x_1);
  x_15 = lean_apply_1(x_2, x_14);
  return x_15;
  }
  case 1:
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  lean_dec(x_13);
  lean_dec(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_2);
  x_16 = lean_ctor_get(x_1, 0);
  lean_inc(x_16);
  x_17 = lean_ctor_get(x_1, 1);
  lean_inc(x_17);
  lean_dec(x_1);
  x_18 = lean_apply_2(x_3, x_16, x_17);
  return x_18;
  }
  case 2:
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  lean_dec(x_13);
  lean_dec(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_3);
  lean_dec(x_2);
  x_19 = lean_ctor_get(x_1, 0);
  lean_inc(x_19);
  x_20 = lean_ctor_get(x_1, 1);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_1, 2);
  lean_inc(x_21);
  lean_dec(x_1);
  x_22 = lean_apply_3(x_4, x_19, x_20, x_21);
  return x_22;
  }
  case 3:
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  lean_dec(x_13);
  lean_dec(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_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_23 = lean_ctor_get(x_1, 0);
  lean_inc(x_23);
  x_24 = lean_ctor_get(x_1, 1);
  lean_inc(x_24);
  x_25 = lean_ctor_get(x_1, 2);
  lean_inc(x_25);
  lean_dec(x_1);
  x_26 = lean_apply_3(x_6, x_23, x_24, x_25);
  return x_26;
  }
  case 4:
  {
  lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  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_27 = lean_ctor_get(x_1, 0);
  lean_inc(x_27);
  x_28 = lean_ctor_get(x_1, 1);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_1, 2);
  lean_inc(x_29);
  lean_dec(x_1);
  x_30 = lean_apply_3(x_10, x_27, x_28, x_29);
  return x_30;
  }
  case 5:
  {
  lean_object* x_31; lean_object* x_32; 
  lean_dec(x_13);
  lean_dec(x_12);
  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);
  x_31 = lean_ctor_get(x_1, 0);
  lean_inc(x_31);
  lean_dec(x_1);
  x_32 = lean_apply_1(x_11, x_31);
  return x_32;
  }
  case 6:
  {
  lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; 
  lean_dec(x_13);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_33 = lean_ctor_get(x_1, 0);
  lean_inc(x_33);
  x_34 = lean_ctor_get_uint8(x_1, sizeof(void*)*1);
  lean_dec(x_1);
  x_35 = lean_box(x_34);
  x_36 = lean_apply_2(x_12, x_33, x_35);
  return x_36;
  }
  case 7:
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  lean_dec(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);
  lean_dec(x_2);
  x_37 = lean_ctor_get(x_1, 0);
  lean_inc(x_37);
  x_38 = lean_ctor_get(x_1, 1);
  lean_inc(x_38);
  lean_dec(x_1);
  x_39 = lean_apply_2(x_13, x_37, x_38);
  return x_39;
  }
  case 8:
  {
  lean_object* x_40; lean_object* x_41; 
  lean_dec(x_13);
  lean_dec(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_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_40 = lean_ctor_get(x_1, 0);
  lean_inc(x_40);
  lean_dec(x_1);
  x_41 = lean_apply_1(x_5, x_40);
  return x_41;
  }
  case 9:
  {
  lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_42 = lean_ctor_get(x_1, 0);
  lean_inc(x_42);
  x_43 = lean_ctor_get(x_1, 1);
  lean_inc(x_43);
  x_44 = lean_ctor_get(x_1, 2);
  lean_inc(x_44);
  lean_dec(x_1);
  x_45 = lean_apply_3(x_7, x_42, x_43, x_44);
  return x_45;
  }
  case 10:
  {
  lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_46 = lean_ctor_get(x_1, 0);
  lean_inc(x_46);
  x_47 = lean_ctor_get(x_1, 1);
  lean_inc(x_47);
  x_48 = lean_ctor_get(x_1, 2);
  lean_inc(x_48);
  x_49 = lean_ctor_get_uint8(x_1, sizeof(void*)*3);
  lean_dec(x_1);
  x_50 = lean_box(x_49);
  x_51 = lean_apply_4(x_8, x_46, x_47, x_48, x_50);
  return x_51;
  }
  default: 
  {
  lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; 
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(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);
  lean_dec(x_2);
  x_52 = lean_ctor_get(x_1, 0);
  lean_inc(x_52);
  x_53 = lean_ctor_get(x_1, 1);
  lean_inc(x_53);
  x_54 = lean_ctor_get(x_1, 2);
  lean_inc(x_54);
  x_55 = lean_ctor_get_uint8(x_1, sizeof(void*)*3);
  lean_dec(x_1);
  x_56 = lean_box(x_55);
  x_57 = lean_apply_4(x_9, x_52, x_53, x_54, x_56);
  return x_57;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileEmbeddedParsers_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileEmbeddedParsers_match__1___rarg), 13, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_ParserCompiler_compileEmbeddedParsers___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  switch (lean_obj_tag(x_2)) {
  case 1:
  {
  lean_object* x_8; 
  x_8 = lean_ctor_get(x_2, 1);
  lean_inc(x_8);
  lean_dec(x_2);
  x_2 = x_8;
  goto _start;
  }
  case 2:
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_10 = lean_ctor_get(x_2, 1);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_2, 2);
  lean_inc(x_11);
  lean_dec(x_2);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_1);
  x_12 = l_Lean_ParserCompiler_compileEmbeddedParsers___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7);
  if (lean_obj_tag(x_12) == 0)
  {
  lean_object* x_13; 
  x_13 = lean_ctor_get(x_12, 1);
  lean_inc(x_13);
  lean_dec(x_12);
  x_2 = x_11;
  x_7 = x_13;
  goto _start;
  }
  else
  {
  uint8_t x_15; 
  lean_dec(x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_1);
  x_15 = !lean_is_exclusive(x_12);
  if (x_15 == 0)
  {
  return x_12;
  }
  else
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  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);
  x_18 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_18, 0, x_16);
  lean_ctor_set(x_18, 1, x_17);
  return x_18;
  }
  }
  }
  case 3:
  {
  lean_object* x_19; 
  x_19 = lean_ctor_get(x_2, 2);
  lean_inc(x_19);
  lean_dec(x_2);
  x_2 = x_19;
  goto _start;
  }
  case 4:
  {
  lean_object* x_21; 
  x_21 = lean_ctor_get(x_2, 2);
  lean_inc(x_21);
  lean_dec(x_2);
  x_2 = x_21;
  goto _start;
  }
  case 8:
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; 
  x_23 = lean_ctor_get(x_2, 0);
  lean_inc(x_23);
  lean_dec(x_2);
  x_24 = lean_box(0);
  x_25 = l_Lean_mkConst(x_23, x_24);
  x_26 = 0;
  x_27 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_26, x_25, x_3, x_4, x_5, x_6, x_7);
  if (lean_obj_tag(x_27) == 0)
  {
  uint8_t x_28; 
  x_28 = !lean_is_exclusive(x_27);
  if (x_28 == 0)
  {
  lean_object* x_29; lean_object* x_30; 
  x_29 = lean_ctor_get(x_27, 0);
  lean_dec(x_29);
  x_30 = lean_box(0);
  lean_ctor_set(x_27, 0, x_30);
  return x_27;
  }
  else
  {
  lean_object* x_31; lean_object* x_32; lean_object* x_33; 
  x_31 = lean_ctor_get(x_27, 1);
  lean_inc(x_31);
  lean_dec(x_27);
  x_32 = lean_box(0);
  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; 
  x_34 = !lean_is_exclusive(x_27);
  if (x_34 == 0)
  {
  return x_27;
  }
  else
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  x_35 = lean_ctor_get(x_27, 0);
  x_36 = lean_ctor_get(x_27, 1);
  lean_inc(x_36);
  lean_inc(x_35);
  lean_dec(x_27);
  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;
  }
  }
  }
  case 9:
  {
  lean_object* x_38; 
  x_38 = lean_ctor_get(x_2, 2);
  lean_inc(x_38);
  lean_dec(x_2);
  x_2 = x_38;
  goto _start;
  }
  case 10:
  {
  lean_object* x_40; lean_object* x_41; lean_object* x_42; 
  x_40 = lean_ctor_get(x_2, 0);
  lean_inc(x_40);
  x_41 = lean_ctor_get(x_2, 2);
  lean_inc(x_41);
  lean_dec(x_2);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_1);
  x_42 = l_Lean_ParserCompiler_compileEmbeddedParsers___rarg(x_1, x_40, x_3, x_4, x_5, x_6, x_7);
  if (lean_obj_tag(x_42) == 0)
  {
  lean_object* x_43; 
  x_43 = lean_ctor_get(x_42, 1);
  lean_inc(x_43);
  lean_dec(x_42);
  x_2 = x_41;
  x_7 = x_43;
  goto _start;
  }
  else
  {
  uint8_t x_45; 
  lean_dec(x_41);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_1);
  x_45 = !lean_is_exclusive(x_42);
  if (x_45 == 0)
  {
  return x_42;
  }
  else
  {
  lean_object* x_46; lean_object* x_47; lean_object* x_48; 
  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, 2, 0);
  lean_ctor_set(x_48, 0, x_46);
  lean_ctor_set(x_48, 1, x_47);
  return x_48;
  }
  }
  }
  case 11:
  {
  lean_object* x_49; lean_object* x_50; lean_object* x_51; 
  x_49 = lean_ctor_get(x_2, 0);
  lean_inc(x_49);
  x_50 = lean_ctor_get(x_2, 2);
  lean_inc(x_50);
  lean_dec(x_2);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_1);
  x_51 = l_Lean_ParserCompiler_compileEmbeddedParsers___rarg(x_1, x_49, x_3, x_4, x_5, x_6, x_7);
  if (lean_obj_tag(x_51) == 0)
  {
  lean_object* x_52; 
  x_52 = lean_ctor_get(x_51, 1);
  lean_inc(x_52);
  lean_dec(x_51);
  x_2 = x_50;
  x_7 = x_52;
  goto _start;
  }
  else
  {
  uint8_t x_54; 
  lean_dec(x_50);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_1);
  x_54 = !lean_is_exclusive(x_51);
  if (x_54 == 0)
  {
  return x_51;
  }
  else
  {
  lean_object* x_55; lean_object* x_56; lean_object* x_57; 
  x_55 = lean_ctor_get(x_51, 0);
  x_56 = lean_ctor_get(x_51, 1);
  lean_inc(x_56);
  lean_inc(x_55);
  lean_dec(x_51);
  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;
  }
  }
  }
  default: 
  {
  lean_object* x_58; lean_object* x_59; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_58 = lean_box(0);
  x_59 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_59, 0, x_58);
  lean_ctor_set(x_59, 1, x_7);
  return x_59;
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_compileEmbeddedParsers(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_compileEmbeddedParsers___rarg), 7, 0);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___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_Parser_mkParserOfConstantUnsafe_match__1___rarg___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2() {
  _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_Parser_mkParserOfConstantUnsafe_match__1___rarg___closed__2;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_32; 
  lean_inc(x_3);
  x_32 = l_Lean_getConstInfo___at_Lean_registerInitAttrUnsafe___spec__1(x_3, x_5, x_6, x_7);
  if (lean_obj_tag(x_32) == 0)
  {
  lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 
  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_ConstantInfo_type(x_33);
  lean_dec(x_33);
  x_36 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1;
  x_37 = l_Lean_Expr_isConstOf(x_35, x_36);
  if (x_37 == 0)
  {
  lean_object* x_38; uint8_t x_39; 
  x_38 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2;
  x_39 = l_Lean_Expr_isConstOf(x_35, x_38);
  lean_dec(x_35);
  if (x_39 == 0)
  {
  uint8_t x_40; 
  x_40 = l_Lean_Name_isAnonymous(x_2);
  if (x_40 == 0)
  {
  lean_object* x_41; 
  x_41 = l_Lean_ParserCompiler_compileCategoryParser___rarg(x_1, x_3, x_4, x_5, x_6, x_34);
  return x_41;
  }
  else
  {
  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; uint8_t x_50; lean_object* x_51; lean_object* x_52; 
  x_42 = lean_box(0);
  x_43 = l_Lean_mkConst(x_3, x_42);
  x_44 = lean_st_ref_get(x_6, x_34);
  x_45 = lean_ctor_get(x_44, 1);
  lean_inc(x_45);
  lean_dec(x_44);
  x_46 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2;
  x_47 = lean_st_mk_ref(x_46, x_45);
  x_48 = lean_ctor_get(x_47, 0);
  lean_inc(x_48);
  x_49 = lean_ctor_get(x_47, 1);
  lean_inc(x_49);
  lean_dec(x_47);
  x_50 = 1;
  x_51 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__1;
  lean_inc(x_6);
  lean_inc(x_48);
  x_52 = l_Lean_ParserCompiler_compileParserExpr___rarg(x_1, x_50, x_43, x_51, x_48, x_5, x_6, x_49);
  if (lean_obj_tag(x_52) == 0)
  {
  lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; 
  x_53 = lean_ctor_get(x_52, 1);
  lean_inc(x_53);
  lean_dec(x_52);
  x_54 = lean_st_ref_get(x_6, x_53);
  lean_dec(x_6);
  x_55 = lean_ctor_get(x_54, 1);
  lean_inc(x_55);
  lean_dec(x_54);
  x_56 = lean_st_ref_get(x_48, x_55);
  lean_dec(x_48);
  x_57 = !lean_is_exclusive(x_56);
  if (x_57 == 0)
  {
  lean_object* x_58; lean_object* x_59; 
  x_58 = lean_ctor_get(x_56, 0);
  lean_dec(x_58);
  x_59 = lean_box(0);
  lean_ctor_set(x_56, 0, x_59);
  return x_56;
  }
  else
  {
  lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_60 = lean_ctor_get(x_56, 1);
  lean_inc(x_60);
  lean_dec(x_56);
  x_61 = lean_box(0);
  x_62 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_62, 0, x_61);
  lean_ctor_set(x_62, 1, x_60);
  return x_62;
  }
  }
  else
  {
  uint8_t x_63; 
  lean_dec(x_48);
  lean_dec(x_6);
  x_63 = !lean_is_exclusive(x_52);
  if (x_63 == 0)
  {
  return x_52;
  }
  else
  {
  lean_object* x_64; lean_object* x_65; lean_object* x_66; 
  x_64 = lean_ctor_get(x_52, 0);
  x_65 = lean_ctor_get(x_52, 1);
  lean_inc(x_65);
  lean_inc(x_64);
  lean_dec(x_52);
  x_66 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_66, 0, x_64);
  lean_ctor_set(x_66, 1, x_65);
  return x_66;
  }
  }
  }
  }
  else
  {
  lean_object* x_67; 
  lean_inc(x_3);
  x_67 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(x_36, x_3, x_5, x_6, x_34);
  if (lean_obj_tag(x_67) == 0)
  {
  lean_object* x_68; lean_object* x_69; 
  lean_dec(x_3);
  x_68 = lean_ctor_get(x_67, 0);
  lean_inc(x_68);
  x_69 = lean_ctor_get(x_67, 1);
  lean_inc(x_69);
  lean_dec(x_67);
  x_8 = x_68;
  x_9 = x_69;
  goto block_31;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; 
  x_70 = lean_ctor_get(x_67, 1);
  lean_inc(x_70);
  lean_dec(x_67);
  x_71 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(x_38, x_3, x_5, x_6, x_70);
  if (lean_obj_tag(x_71) == 0)
  {
  lean_object* x_72; lean_object* x_73; 
  x_72 = lean_ctor_get(x_71, 0);
  lean_inc(x_72);
  x_73 = lean_ctor_get(x_71, 1);
  lean_inc(x_73);
  lean_dec(x_71);
  x_8 = x_72;
  x_9 = x_73;
  goto block_31;
  }
  else
  {
  uint8_t x_74; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_74 = !lean_is_exclusive(x_71);
  if (x_74 == 0)
  {
  return x_71;
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_71, 0);
  x_76 = lean_ctor_get(x_71, 1);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_71);
  x_77 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_77, 0, x_75);
  lean_ctor_set(x_77, 1, x_76);
  return x_77;
  }
  }
  }
  }
  }
  else
  {
  lean_object* x_78; 
  lean_dec(x_35);
  lean_inc(x_3);
  x_78 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(x_36, x_3, x_5, x_6, x_34);
  if (lean_obj_tag(x_78) == 0)
  {
  lean_object* x_79; lean_object* x_80; 
  lean_dec(x_3);
  x_79 = lean_ctor_get(x_78, 0);
  lean_inc(x_79);
  x_80 = lean_ctor_get(x_78, 1);
  lean_inc(x_80);
  lean_dec(x_78);
  x_8 = x_79;
  x_9 = x_80;
  goto block_31;
  }
  else
  {
  lean_object* x_81; lean_object* x_82; lean_object* x_83; 
  x_81 = lean_ctor_get(x_78, 1);
  lean_inc(x_81);
  lean_dec(x_78);
  x_82 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2;
  x_83 = l_Lean_evalConstCheck___at_Lean_KeyedDeclsAttribute_init___spec__5___rarg(x_82, x_3, x_5, x_6, x_81);
  if (lean_obj_tag(x_83) == 0)
  {
  lean_object* x_84; lean_object* x_85; 
  x_84 = lean_ctor_get(x_83, 0);
  lean_inc(x_84);
  x_85 = lean_ctor_get(x_83, 1);
  lean_inc(x_85);
  lean_dec(x_83);
  x_8 = x_84;
  x_9 = x_85;
  goto block_31;
  }
  else
  {
  uint8_t x_86; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_1);
  x_86 = !lean_is_exclusive(x_83);
  if (x_86 == 0)
  {
  return x_83;
  }
  else
  {
  lean_object* x_87; lean_object* x_88; lean_object* x_89; 
  x_87 = lean_ctor_get(x_83, 0);
  x_88 = lean_ctor_get(x_83, 1);
  lean_inc(x_88);
  lean_inc(x_87);
  lean_dec(x_83);
  x_89 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_89, 0, x_87);
  lean_ctor_set(x_89, 1, x_88);
  return x_89;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_90; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_3);
  lean_dec(x_1);
  x_90 = !lean_is_exclusive(x_32);
  if (x_90 == 0)
  {
  return x_32;
  }
  else
  {
  lean_object* x_91; lean_object* x_92; lean_object* x_93; 
  x_91 = lean_ctor_get(x_32, 0);
  x_92 = lean_ctor_get(x_32, 1);
  lean_inc(x_92);
  lean_inc(x_91);
  lean_dec(x_32);
  x_93 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_93, 0, x_91);
  lean_ctor_set(x_93, 1, x_92);
  return x_93;
  }
  }
  block_31:
  {
  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; 
  x_10 = lean_st_ref_get(x_6, x_9);
  x_11 = lean_ctor_get(x_10, 1);
  lean_inc(x_11);
  lean_dec(x_10);
  x_12 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__2;
  x_13 = lean_st_mk_ref(x_12, x_11);
  x_14 = lean_ctor_get(x_13, 0);
  lean_inc(x_14);
  x_15 = lean_ctor_get(x_13, 1);
  lean_inc(x_15);
  lean_dec(x_13);
  x_16 = l_Lean_Meta_instMetaEvalMetaM___rarg___closed__1;
  lean_inc(x_6);
  lean_inc(x_14);
  x_17 = l_Lean_ParserCompiler_compileEmbeddedParsers___rarg(x_1, x_8, x_16, x_14, x_5, x_6, x_15);
  if (lean_obj_tag(x_17) == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; 
  x_18 = lean_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  x_20 = lean_st_ref_get(x_6, x_19);
  lean_dec(x_6);
  x_21 = lean_ctor_get(x_20, 1);
  lean_inc(x_21);
  lean_dec(x_20);
  x_22 = lean_st_ref_get(x_14, x_21);
  lean_dec(x_14);
  x_23 = !lean_is_exclusive(x_22);
  if (x_23 == 0)
  {
  lean_object* x_24; 
  x_24 = lean_ctor_get(x_22, 0);
  lean_dec(x_24);
  lean_ctor_set(x_22, 0, x_18);
  return x_22;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; 
  x_25 = lean_ctor_get(x_22, 1);
  lean_inc(x_25);
  lean_dec(x_22);
  x_26 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_26, 0, x_18);
  lean_ctor_set(x_26, 1, x_25);
  return x_26;
  }
  }
  else
  {
  uint8_t x_27; 
  lean_dec(x_14);
  lean_dec(x_6);
  x_27 = !lean_is_exclusive(x_17);
  if (x_27 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_28 = lean_ctor_get(x_17, 0);
  x_29 = lean_ctor_get(x_17, 1);
  lean_inc(x_29);
  lean_inc(x_28);
  lean_dec(x_17);
  x_30 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_30, 0, x_28);
  lean_ctor_set(x_30, 1, x_29);
  return x_30;
  }
  }
  }
  }
  }
  lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; 
  x_3 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___boxed), 7, 1);
  lean_closure_set(x_3, 0, x_1);
  x_4 = l_Lean_Parser_registerParserAttributeHook(x_3, x_2);
  return x_4;
  }
  }
  lean_object* l_Lean_ParserCompiler_registerParserCompiler(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_ParserCompiler_registerParserCompiler___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  uint8_t x_8; lean_object* x_9; 
  x_8 = lean_unbox(x_4);
  lean_dec(x_4);
  x_9 = l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1(x_1, x_2, x_3, x_8, x_5, x_6, x_7);
  lean_dec(x_2);
  return x_9;
  }
  }
  lean_object* initialize_Init(lean_object*);
  lean_object* initialize_Lean_Util_ReplaceExpr(lean_object*);
  lean_object* initialize_Lean_Meta_Basic(lean_object*);
  lean_object* initialize_Lean_Meta_WHNF(lean_object*);
  lean_object* initialize_Lean_ParserCompiler_Attribute(lean_object*);
  lean_object* initialize_Lean_Parser_Extension(lean_object*);
  static bool _G_initialized = false;
  lean_object* initialize_Lean_ParserCompiler(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_Util_ReplaceExpr(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Meta_Basic(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Meta_WHNF(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_ParserCompiler_Attribute(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Parser_Extension(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1();
  lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__4___rarg___closed__1);
  l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1();
  lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_ParserCompiler_compileParserExpr___spec__6___rarg___closed__1);
  l_Lean_ParserCompiler_compileParserExpr___rarg___closed__1 = _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__1();
  lean_mark_persistent(l_Lean_ParserCompiler_compileParserExpr___rarg___closed__1);
  l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2 = _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2();
  lean_mark_persistent(l_Lean_ParserCompiler_compileParserExpr___rarg___closed__2);
  l_Lean_ParserCompiler_compileParserExpr___rarg___closed__3 = _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__3();
  lean_mark_persistent(l_Lean_ParserCompiler_compileParserExpr___rarg___closed__3);
  l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4 = _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4();
  lean_mark_persistent(l_Lean_ParserCompiler_compileParserExpr___rarg___closed__4);
  l_Lean_ParserCompiler_compileParserExpr___rarg___closed__5 = _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__5();
  lean_mark_persistent(l_Lean_ParserCompiler_compileParserExpr___rarg___closed__5);
  l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6 = _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6();
  lean_mark_persistent(l_Lean_ParserCompiler_compileParserExpr___rarg___closed__6);
  l_Lean_ParserCompiler_compileParserExpr___rarg___closed__7 = _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__7();
  lean_mark_persistent(l_Lean_ParserCompiler_compileParserExpr___rarg___closed__7);
  l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8 = _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8();
  lean_mark_persistent(l_Lean_ParserCompiler_compileParserExpr___rarg___closed__8);
  l_Lean_ParserCompiler_compileParserExpr___rarg___closed__9 = _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__9();
  lean_mark_persistent(l_Lean_ParserCompiler_compileParserExpr___rarg___closed__9);
  l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10 = _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10();
  lean_mark_persistent(l_Lean_ParserCompiler_compileParserExpr___rarg___closed__10);
  l_Lean_ParserCompiler_compileParserExpr___rarg___closed__11 = _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__11();
  lean_mark_persistent(l_Lean_ParserCompiler_compileParserExpr___rarg___closed__11);
  l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12 = _init_l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12();
  lean_mark_persistent(l_Lean_ParserCompiler_compileParserExpr___rarg___closed__12);
  l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__1 = _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__1();
  lean_mark_persistent(l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__1);
  l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__2 = _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__2();
  lean_mark_persistent(l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__2);
  l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__3 = _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__3();
  lean_mark_persistent(l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__3);
  l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__4 = _init_l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__4();
  lean_mark_persistent(l_Lean_ParserCompiler_compileCategoryParser___rarg___closed__4);
  l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1 = _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1();
  lean_mark_persistent(l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__1);
  l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2 = _init_l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2();
  lean_mark_persistent(l_Lean_ParserCompiler_registerParserCompiler___rarg___lambda__1___closed__2);
  return lean_io_result_mk_ok(lean_box(0));
  }
  #ifdef __cplusplus
  }
  #endif
  