text: // Lean compiler output
  // Module: Lean.Elab.Extra
  // Imports: Init Lean.Elab.App
  #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_Elab_Term_elabForIn_getMonad_match__1___rarg(lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__2;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__8;
  lean_object* l_Lean_Elab_Term_elabBinRel___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(lean_object*);
  lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewMCtxDepthImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__4;
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__3;
  static lean_object* l_Lean_Elab_Term_elabForIn___lambda__1___closed__1;
  lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_elabForIn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn_getMonad___closed__4;
  static lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__5;
  lean_object* l_Lean_stringToMessageData(lean_object*);
  lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_mk_empty_array_with_capacity(lean_object*);
  lean_object* l_Lean_mkSort(lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__10;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__17;
  static lean_object* l_Lean_Elab_Term_elabForIn___lambda__1___closed__4;
  extern lean_object* l_Lean_nullKind;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__21;
  lean_object* lean_name_mk_string(lean_object*, lean_object*);
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__1;
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__20;
  lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabForIn___closed__2;
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__8;
  static lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__3;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__2;
  lean_object* l_Lean_Elab_Term_elabBinRel_match__1(lean_object*);
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__14;
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__16;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__2;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__1;
  static lean_object* l_Lean_Elab_Term_elabForIn___lambda__1___closed__3;
  lean_object* l_Lean_addTrace_addTraceOptions(lean_object*);
  uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*);
  lean_object* lean_st_ref_get(lean_object*, lean_object*);
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___lambda__1___closed__5;
  static lean_object* l_Lean_Elab_Term_elabForIn_getMonad___closed__5;
  lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__13;
  lean_object* lean_array_push(lean_object*, lean_object*);
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__3;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__6;
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__12;
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabForIn___closed__1;
  static lean_object* l_Lean_Elab_Term_elabForIn_getMonad___closed__3;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__1;
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow___boxed(lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn_throwFailure___closed__2;
  lean_object* lean_string_utf8_byte_size(lean_object*);
  lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*);
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__5;
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__19;
  lean_object* l_Lean_Elab_Term_elabBinRel___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* l_Lean_throwError___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabBinRel___lambda__3___closed__1;
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr_match__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_elabForIn_getMonad_match__1(lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe_match__1(lean_object*);
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__5;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__2;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__3;
  lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_elabForIn_getMonad(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__18;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__15;
  static lean_object* l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__2;
  lean_object* l_Lean_Elab_Term_elabForIn_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*);
  static lean_object* l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__1;
  lean_object* l_Lean_Elab_Term_elabForIn_getMonad_match__2___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___lambda__1___closed__2;
  lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27(lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__11;
  lean_object* l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_218____spec__1(lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__14;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__5;
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_elabForIn_match__1(lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__12;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__1;
  lean_object* lean_st_ref_take(lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabBinRel___lambda__3___closed__2;
  static lean_object* l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__4;
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr_match__1(lean_object*);
  lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_elabBinRel___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__17;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__4;
  lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__3;
  lean_object* l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_mkCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabBinRel___lambda__2___closed__2;
  lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__1(lean_object*);
  lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_elabAppArgs(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go_match__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabBinRel___closed__1;
  lean_object* l_Lean_Elab_Term_elabBinRel___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__4;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__7;
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__10;
  lean_object* lean_st_mk_ref(lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabBinRel___lambda__2___closed__1;
  lean_object* l_Lean_Syntax_getId(lean_object*);
  lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__1;
  lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Meta_isExprDefEqGuarded(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2___closed__2;
  uint8_t l_Lean_Environment_contains(lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabBinRel___lambda__2___closed__4;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__6;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2___closed__1;
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__23;
  uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_resolveId_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn_getMonad___closed__2;
  extern lean_object* l_Lean_Elab_Term_maxCoeSize;
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__1;
  lean_object* l_Lean_Elab_Term_elabBinRel___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow_match__1(lean_object*);
  lean_object* l_Lean_Elab_Term_BinOp_initFn____x40_Lean_Elab_Extra___hyg_2693_(lean_object*);
  lean_object* l_Lean_Elab_Term_elabBinRel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__16;
  uint8_t l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow(lean_object*);
  lean_object* l_Lean_Elab_Term_elabBinRel_match__2(lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__2;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__10;
  lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__9;
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_mkOp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_mkConst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  extern lean_object* l_Lean_Elab_Term_termElabAttribute;
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__11;
  lean_object* l_Lean_Elab_Term_elabForIn_throwFailure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__4;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__20;
  static lean_object* l_Lean_Elab_Term_elabForIn_throwFailure___closed__1;
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__8;
  static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__3;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__5;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__3;
  lean_object* l_Lean_Elab_Term_elabBinRel___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabForIn___closed__3;
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__4;
  lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkLevelSucc(lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go_match__1(lean_object*);
  lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__12;
  lean_object* l___regBuiltin_Lean_Elab_Term_elabForIn(lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_elabBinRel_match__1___rarg(lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__6;
  lean_object* l_Lean_Elab_Term_elabBinRel_match__2___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_isTypeApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2(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*);
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__9;
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_AnalyzeResult_max_x3f___default;
  lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__21;
  lean_object* l_Lean_Elab_Term_elabForIn___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__7;
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__6;
  uint8_t l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_AnalyzeResult_hasUncomparable___default;
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__13;
  lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__3;
  lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go_match__1(lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__4;
  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___regBuiltin_Lean_Elab_Term_elabBinRel(lean_object*);
  lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__22;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__6;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__11;
  static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__2;
  lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__3;
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
  lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__1;
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__14;
  static lean_object* l_Lean_Elab_Term_elabBinRel___lambda__2___closed__3;
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_tryPostpone(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__25;
  lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabBinRel___lambda__2___closed__5;
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__2;
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__13;
  static lean_object* l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__3;
  lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabLetDeclCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4;
  lean_object* l_Lean_Elab_Term_elabForIn_getMonad_match__2(lean_object*);
  lean_object* l_Lean_indentExpr(lean_object*);
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__4;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__19;
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_isLocalIdent_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_mkConst(lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__7;
  lean_object* l_Lean_Elab_Term_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4;
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__24;
  static lean_object* l_Lean_Elab_Term_elabForIn_getMonad___closed__1;
  static lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__9;
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go_match__1___rarg(lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__1;
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__1;
  lean_object* l_Lean_Elab_Term_elabForIn_throwFailure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Elab_Term_elabForIn_getMonad___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__5;
  lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__15;
  static lean_object* l_Lean_Elab_Term_elabForIn___closed__18;
  lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*);
  static lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__7;
  static lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__1;
  static lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__2;
  static lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2;
  lean_object* l_Lean_Elab_Term_elabBinRel_match__1___rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = lean_ctor_get(x_1, 0);
  lean_inc(x_3);
  x_4 = lean_ctor_get(x_1, 1);
  lean_inc(x_4);
  lean_dec(x_1);
  x_5 = lean_apply_2(x_2, x_3, x_4);
  return x_5;
  }
  }
  lean_object* l_Lean_Elab_Term_elabBinRel_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinRel_match__1___rarg), 2, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Term_elabBinRel_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; lean_object* x_5; 
  lean_dec(x_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_Elab_Term_elabBinRel_match__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinRel_match__2___rarg), 3, 0);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("unknown constant '");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("'");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__3;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  x_9 = lean_box(0);
  x_10 = l_Lean_mkConst(x_1, x_9);
  x_11 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_11, 0, x_10);
  x_12 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__2;
  x_13 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_13, 0, x_12);
  lean_ctor_set(x_13, 1, x_11);
  x_14 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__4;
  x_15 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_15, 0, x_13);
  lean_ctor_set(x_15, 1, x_14);
  x_16 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  return x_16;
  }
  }
  lean_object* l_Lean_Elab_Term_elabBinRel___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; lean_object* x_12; 
  x_11 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_11, 0, x_1);
  lean_ctor_set(x_11, 1, x_2);
  x_12 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_12, 0, x_11);
  lean_ctor_set(x_12, 1, x_10);
  return x_12;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabBinRel___lambda__2___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinRel___lambda__1___boxed), 10, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabBinRel___lambda__2___closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("OfNat");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabBinRel___lambda__2___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Elab_Term_elabBinRel___lambda__2___closed__2;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabBinRel___lambda__2___closed__4() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("ofNat");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabBinRel___lambda__2___closed__5() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Term_elabBinRel___lambda__2___closed__3;
  x_2 = l_Lean_Elab_Term_elabBinRel___lambda__2___closed__4;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Elab_Term_elabBinRel___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  uint8_t x_11; lean_object* x_12; 
  x_11 = 1;
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_2);
  x_12 = l_Lean_Elab_Term_elabTerm(x_1, x_2, x_11, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_12) == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_13 = lean_ctor_get(x_12, 0);
  lean_inc(x_13);
  x_14 = lean_ctor_get(x_12, 1);
  lean_inc(x_14);
  lean_dec(x_12);
  x_15 = lean_unsigned_to_nat(3u);
  x_16 = l_Lean_Syntax_getArg(x_3, x_15);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_2);
  x_17 = l_Lean_Elab_Term_elabTerm(x_16, x_2, x_11, x_11, x_4, x_5, x_6, x_7, x_8, x_9, 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; uint8_t 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 = l_Lean_Elab_Term_elabBinRel___lambda__2___closed__1;
  x_21 = l_Lean_Elab_Term_elabBinRel___lambda__2___closed__5;
  x_22 = l_Lean_Expr_isAppOfArity(x_13, x_21, x_15);
  if (x_22 == 0)
  {
  uint8_t x_23; 
  x_23 = l_Lean_Expr_isAppOfArity(x_18, x_21, x_15);
  if (x_23 == 0)
  {
  lean_object* x_24; lean_object* x_25; 
  lean_dec(x_2);
  x_24 = lean_box(0);
  x_25 = lean_apply_10(x_20, x_13, x_18, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_19);
  return x_25;
  }
  else
  {
  lean_object* x_26; 
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_13);
  x_26 = lean_infer_type(x_13, x_6, x_7, x_8, x_9, x_19);
  if (lean_obj_tag(x_26) == 0)
  {
  lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_27 = lean_ctor_get(x_26, 0);
  lean_inc(x_27);
  x_28 = lean_ctor_get(x_26, 1);
  lean_inc(x_28);
  lean_dec(x_26);
  x_29 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_29, 0, x_27);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  x_30 = l_Lean_Elab_Term_ensureHasType(x_29, x_18, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_28);
  if (lean_obj_tag(x_30) == 0)
  {
  lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_30, 1);
  lean_inc(x_32);
  lean_dec(x_30);
  x_33 = lean_box(0);
  x_34 = lean_apply_10(x_20, x_13, x_31, x_33, x_4, x_5, x_6, x_7, x_8, x_9, x_32);
  return x_34;
  }
  else
  {
  uint8_t x_35; 
  lean_dec(x_13);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_35 = !lean_is_exclusive(x_30);
  if (x_35 == 0)
  {
  return x_30;
  }
  else
  {
  lean_object* x_36; lean_object* x_37; lean_object* x_38; 
  x_36 = lean_ctor_get(x_30, 0);
  x_37 = lean_ctor_get(x_30, 1);
  lean_inc(x_37);
  lean_inc(x_36);
  lean_dec(x_30);
  x_38 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_38, 0, x_36);
  lean_ctor_set(x_38, 1, x_37);
  return x_38;
  }
  }
  }
  else
  {
  uint8_t x_39; 
  lean_dec(x_18);
  lean_dec(x_13);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_2);
  x_39 = !lean_is_exclusive(x_26);
  if (x_39 == 0)
  {
  return x_26;
  }
  else
  {
  lean_object* x_40; lean_object* x_41; lean_object* x_42; 
  x_40 = lean_ctor_get(x_26, 0);
  x_41 = lean_ctor_get(x_26, 1);
  lean_inc(x_41);
  lean_inc(x_40);
  lean_dec(x_26);
  x_42 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_42, 0, x_40);
  lean_ctor_set(x_42, 1, x_41);
  return x_42;
  }
  }
  }
  }
  else
  {
  lean_object* x_43; 
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_18);
  x_43 = lean_infer_type(x_18, x_6, x_7, x_8, x_9, x_19);
  if (lean_obj_tag(x_43) == 0)
  {
  lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 
  x_44 = lean_ctor_get(x_43, 0);
  lean_inc(x_44);
  x_45 = lean_ctor_get(x_43, 1);
  lean_inc(x_45);
  lean_dec(x_43);
  x_46 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_46, 0, x_44);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  x_47 = l_Lean_Elab_Term_ensureHasType(x_46, x_13, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_45);
  if (lean_obj_tag(x_47) == 0)
  {
  lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
  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 = lean_box(0);
  x_51 = lean_apply_10(x_20, x_48, x_18, x_50, x_4, x_5, x_6, x_7, x_8, x_9, x_49);
  return x_51;
  }
  else
  {
  uint8_t x_52; 
  lean_dec(x_18);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_52 = !lean_is_exclusive(x_47);
  if (x_52 == 0)
  {
  return x_47;
  }
  else
  {
  lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_53 = lean_ctor_get(x_47, 0);
  x_54 = lean_ctor_get(x_47, 1);
  lean_inc(x_54);
  lean_inc(x_53);
  lean_dec(x_47);
  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
  {
  uint8_t x_56; 
  lean_dec(x_18);
  lean_dec(x_13);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_2);
  x_56 = !lean_is_exclusive(x_43);
  if (x_56 == 0)
  {
  return x_43;
  }
  else
  {
  lean_object* x_57; lean_object* x_58; lean_object* x_59; 
  x_57 = lean_ctor_get(x_43, 0);
  x_58 = lean_ctor_get(x_43, 1);
  lean_inc(x_58);
  lean_inc(x_57);
  lean_dec(x_43);
  x_59 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_59, 0, x_57);
  lean_ctor_set(x_59, 1, x_58);
  return x_59;
  }
  }
  }
  }
  else
  {
  uint8_t x_60; 
  lean_dec(x_13);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_2);
  x_60 = !lean_is_exclusive(x_17);
  if (x_60 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; 
  x_61 = lean_ctor_get(x_17, 0);
  x_62 = lean_ctor_get(x_17, 1);
  lean_inc(x_62);
  lean_inc(x_61);
  lean_dec(x_17);
  x_63 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_63, 0, x_61);
  lean_ctor_set(x_63, 1, x_62);
  return x_63;
  }
  }
  }
  else
  {
  uint8_t x_64; 
  lean_dec(x_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_64 = !lean_is_exclusive(x_12);
  if (x_64 == 0)
  {
  return x_12;
  }
  else
  {
  lean_object* x_65; lean_object* x_66; lean_object* x_67; 
  x_65 = lean_ctor_get(x_12, 0);
  x_66 = lean_ctor_get(x_12, 1);
  lean_inc(x_66);
  lean_inc(x_65);
  lean_dec(x_12);
  x_67 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_67, 0, x_65);
  lean_ctor_set(x_67, 1, x_66);
  return x_67;
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabBinRel___lambda__3___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(0u);
  x_2 = lean_mk_empty_array_with_capacity(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabBinRel___lambda__3___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(2u);
  x_2 = lean_mk_empty_array_with_capacity(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Term_elabBinRel___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; 
  x_11 = lean_ctor_get(x_3, 0);
  x_12 = lean_ctor_get(x_3, 1);
  lean_inc(x_11);
  x_13 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_13, 0, x_11);
  lean_inc(x_12);
  x_14 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_14, 0, x_12);
  x_15 = l_Lean_Elab_Term_elabBinRel___lambda__3___closed__2;
  x_16 = lean_array_push(x_15, x_13);
  x_17 = lean_array_push(x_16, x_14);
  x_18 = l_Lean_Elab_Term_elabBinRel___lambda__3___closed__1;
  x_19 = 0;
  x_20 = l_Lean_Elab_Term_elabAppArgs(x_1, x_18, x_17, x_2, x_19, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  return x_20;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabBinRel___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("term");
  return x_1;
  }
  }
  lean_object* l_Lean_Elab_Term_elabBinRel(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; 
  x_10 = lean_unsigned_to_nat(1u);
  x_11 = l_Lean_Syntax_getArg(x_1, x_10);
  x_12 = l_Lean_Elab_Term_elabBinRel___closed__1;
  x_13 = 0;
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_11);
  x_14 = l_Lean_Elab_Term_resolveId_x3f(x_11, x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  if (lean_obj_tag(x_14) == 0)
  {
  lean_object* x_15; 
  x_15 = lean_ctor_get(x_14, 0);
  lean_inc(x_15);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  lean_dec(x_2);
  lean_dec(x_1);
  x_16 = lean_ctor_get(x_14, 1);
  lean_inc(x_16);
  lean_dec(x_14);
  x_17 = l_Lean_Syntax_getId(x_11);
  lean_dec(x_11);
  x_18 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_16);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_18;
  }
  else
  {
  lean_object* x_19; uint8_t x_20; 
  lean_dec(x_11);
  x_19 = lean_ctor_get(x_14, 1);
  lean_inc(x_19);
  lean_dec(x_14);
  x_20 = !lean_is_exclusive(x_15);
  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; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; 
  x_21 = lean_ctor_get(x_15, 0);
  x_22 = l_Lean_Elab_Term_saveState___rarg(x_4, x_5, x_6, x_7, x_8, x_19);
  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 = lean_unsigned_to_nat(2u);
  x_26 = l_Lean_Syntax_getArg(x_1, x_25);
  x_27 = lean_box(0);
  lean_inc(x_1);
  lean_inc(x_26);
  x_28 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinRel___lambda__2___boxed), 10, 3);
  lean_closure_set(x_28, 0, x_26);
  lean_closure_set(x_28, 1, x_27);
  lean_closure_set(x_28, 2, x_1);
  x_29 = 1;
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_30 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(x_28, x_29, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_24);
  if (lean_obj_tag(x_30) == 0)
  {
  lean_object* x_31; lean_object* x_32; uint8_t x_33; 
  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_is_exclusive(x_31);
  if (x_33 == 0)
  {
  lean_object* x_34; lean_object* x_35; lean_object* x_36; 
  x_34 = lean_ctor_get(x_31, 0);
  x_35 = lean_ctor_get(x_31, 1);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_34);
  x_36 = lean_infer_type(x_34, x_5, x_6, x_7, x_8, x_32);
  if (lean_obj_tag(x_36) == 0)
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  x_37 = lean_ctor_get(x_36, 0);
  lean_inc(x_37);
  x_38 = lean_ctor_get(x_36, 1);
  lean_inc(x_38);
  lean_dec(x_36);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_35);
  x_39 = lean_infer_type(x_35, x_5, x_6, x_7, x_8, x_38);
  if (lean_obj_tag(x_39) == 0)
  {
  lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
  x_40 = lean_ctor_get(x_39, 0);
  lean_inc(x_40);
  x_41 = lean_ctor_get(x_39, 1);
  lean_inc(x_41);
  lean_dec(x_39);
  x_42 = lean_unsigned_to_nat(3u);
  x_43 = l_Lean_Syntax_getArg(x_1, x_42);
  lean_dec(x_1);
  lean_ctor_set(x_15, 0, x_37);
  x_44 = lean_ctor_get(x_7, 0);
  lean_inc(x_44);
  x_45 = lean_ctor_get(x_7, 1);
  lean_inc(x_45);
  x_46 = lean_ctor_get(x_7, 2);
  lean_inc(x_46);
  x_47 = lean_ctor_get(x_7, 3);
  lean_inc(x_47);
  x_48 = lean_ctor_get(x_7, 4);
  lean_inc(x_48);
  x_49 = lean_ctor_get(x_7, 5);
  lean_inc(x_49);
  x_50 = lean_ctor_get(x_7, 6);
  lean_inc(x_50);
  x_51 = lean_ctor_get(x_7, 7);
  lean_inc(x_51);
  x_52 = l_Lean_replaceRef(x_43, x_47);
  lean_inc(x_51);
  lean_inc(x_50);
  lean_inc(x_49);
  lean_inc(x_48);
  lean_inc(x_46);
  lean_inc(x_45);
  lean_inc(x_44);
  x_53 = lean_alloc_ctor(0, 8, 0);
  lean_ctor_set(x_53, 0, x_44);
  lean_ctor_set(x_53, 1, x_45);
  lean_ctor_set(x_53, 2, x_46);
  lean_ctor_set(x_53, 3, x_52);
  lean_ctor_set(x_53, 4, x_48);
  lean_ctor_set(x_53, 5, x_49);
  lean_ctor_set(x_53, 6, x_50);
  lean_ctor_set(x_53, 7, x_51);
  lean_inc(x_8);
  lean_inc(x_53);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_35);
  x_54 = l_Lean_Elab_Term_ensureHasType(x_15, x_35, x_27, x_3, x_4, x_5, x_6, x_53, x_8, x_41);
  if (lean_obj_tag(x_54) == 0)
  {
  lean_object* x_55; lean_object* x_56; lean_object* x_57; 
  lean_dec(x_53);
  lean_dec(x_51);
  lean_dec(x_50);
  lean_dec(x_49);
  lean_dec(x_48);
  lean_dec(x_47);
  lean_dec(x_46);
  lean_dec(x_45);
  lean_dec(x_44);
  lean_dec(x_43);
  lean_dec(x_40);
  lean_dec(x_35);
  lean_dec(x_26);
  lean_dec(x_23);
  x_55 = lean_ctor_get(x_54, 0);
  lean_inc(x_55);
  x_56 = lean_ctor_get(x_54, 1);
  lean_inc(x_56);
  lean_dec(x_54);
  lean_ctor_set(x_31, 1, x_55);
  x_57 = l_Lean_Elab_Term_elabBinRel___lambda__3(x_21, x_2, x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_56);
  lean_dec(x_31);
  return x_57;
  }
  else
  {
  lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_58 = lean_ctor_get(x_54, 1);
  lean_inc(x_58);
  lean_dec(x_54);
  x_59 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_59, 0, x_40);
  x_60 = l_Lean_replaceRef(x_26, x_47);
  lean_dec(x_47);
  x_61 = lean_alloc_ctor(0, 8, 0);
  lean_ctor_set(x_61, 0, x_44);
  lean_ctor_set(x_61, 1, x_45);
  lean_ctor_set(x_61, 2, x_46);
  lean_ctor_set(x_61, 3, x_60);
  lean_ctor_set(x_61, 4, x_48);
  lean_ctor_set(x_61, 5, x_49);
  lean_ctor_set(x_61, 6, x_50);
  lean_ctor_set(x_61, 7, x_51);
  lean_inc(x_8);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_62 = l_Lean_Elab_Term_ensureHasType(x_59, x_34, x_27, x_3, x_4, x_5, x_6, x_61, x_8, x_58);
  if (lean_obj_tag(x_62) == 0)
  {
  lean_object* x_63; lean_object* x_64; lean_object* x_65; 
  lean_dec(x_53);
  lean_dec(x_43);
  lean_dec(x_26);
  lean_dec(x_23);
  x_63 = lean_ctor_get(x_62, 0);
  lean_inc(x_63);
  x_64 = lean_ctor_get(x_62, 1);
  lean_inc(x_64);
  lean_dec(x_62);
  lean_ctor_set(x_31, 0, x_63);
  x_65 = l_Lean_Elab_Term_elabBinRel___lambda__3(x_21, x_2, x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_64);
  lean_dec(x_31);
  return x_65;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  lean_dec(x_35);
  x_66 = lean_ctor_get(x_62, 1);
  lean_inc(x_66);
  lean_dec(x_62);
  x_67 = l_Lean_Elab_Term_SavedState_restore(x_23, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_66);
  x_68 = lean_ctor_get(x_67, 1);
  lean_inc(x_68);
  lean_dec(x_67);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_69 = l_Lean_Elab_Term_elabTerm(x_26, x_27, x_29, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_68);
  if (lean_obj_tag(x_69) == 0)
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_69, 0);
  lean_inc(x_70);
  x_71 = lean_ctor_get(x_69, 1);
  lean_inc(x_71);
  lean_dec(x_69);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_72 = l_Lean_Elab_Term_elabTerm(x_43, x_27, x_29, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_71);
  if (lean_obj_tag(x_72) == 0)
  {
  lean_object* x_73; lean_object* x_74; lean_object* x_75; 
  x_73 = lean_ctor_get(x_72, 0);
  lean_inc(x_73);
  x_74 = lean_ctor_get(x_72, 1);
  lean_inc(x_74);
  lean_dec(x_72);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_70);
  x_75 = lean_infer_type(x_70, x_5, x_6, x_7, x_8, x_74);
  if (lean_obj_tag(x_75) == 0)
  {
  lean_object* x_76; lean_object* x_77; lean_object* x_78; 
  x_76 = lean_ctor_get(x_75, 0);
  lean_inc(x_76);
  x_77 = lean_ctor_get(x_75, 1);
  lean_inc(x_77);
  lean_dec(x_75);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_73);
  x_78 = lean_infer_type(x_73, x_5, x_6, x_7, x_8, x_77);
  if (lean_obj_tag(x_78) == 0)
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; 
  x_79 = lean_ctor_get(x_78, 1);
  lean_inc(x_79);
  lean_dec(x_78);
  x_80 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_80, 0, x_76);
  lean_inc(x_8);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_81 = l_Lean_Elab_Term_ensureHasType(x_80, x_73, x_27, x_3, x_4, x_5, x_6, x_53, x_8, x_79);
  if (lean_obj_tag(x_81) == 0)
  {
  lean_object* x_82; lean_object* x_83; lean_object* x_84; 
  x_82 = lean_ctor_get(x_81, 0);
  lean_inc(x_82);
  x_83 = lean_ctor_get(x_81, 1);
  lean_inc(x_83);
  lean_dec(x_81);
  lean_ctor_set(x_31, 1, x_82);
  lean_ctor_set(x_31, 0, x_70);
  x_84 = l_Lean_Elab_Term_elabBinRel___lambda__3(x_21, x_2, x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_83);
  lean_dec(x_31);
  return x_84;
  }
  else
  {
  uint8_t x_85; 
  lean_dec(x_70);
  lean_free_object(x_31);
  lean_dec(x_21);
  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_85 = !lean_is_exclusive(x_81);
  if (x_85 == 0)
  {
  return x_81;
  }
  else
  {
  lean_object* x_86; lean_object* x_87; lean_object* x_88; 
  x_86 = lean_ctor_get(x_81, 0);
  x_87 = lean_ctor_get(x_81, 1);
  lean_inc(x_87);
  lean_inc(x_86);
  lean_dec(x_81);
  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_76);
  lean_dec(x_73);
  lean_dec(x_70);
  lean_dec(x_53);
  lean_free_object(x_31);
  lean_dec(x_21);
  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_89 = !lean_is_exclusive(x_78);
  if (x_89 == 0)
  {
  return x_78;
  }
  else
  {
  lean_object* x_90; lean_object* x_91; lean_object* x_92; 
  x_90 = lean_ctor_get(x_78, 0);
  x_91 = lean_ctor_get(x_78, 1);
  lean_inc(x_91);
  lean_inc(x_90);
  lean_dec(x_78);
  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
  {
  uint8_t x_93; 
  lean_dec(x_73);
  lean_dec(x_70);
  lean_dec(x_53);
  lean_free_object(x_31);
  lean_dec(x_21);
  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_93 = !lean_is_exclusive(x_75);
  if (x_93 == 0)
  {
  return x_75;
  }
  else
  {
  lean_object* x_94; lean_object* x_95; lean_object* x_96; 
  x_94 = lean_ctor_get(x_75, 0);
  x_95 = lean_ctor_get(x_75, 1);
  lean_inc(x_95);
  lean_inc(x_94);
  lean_dec(x_75);
  x_96 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_96, 0, x_94);
  lean_ctor_set(x_96, 1, x_95);
  return x_96;
  }
  }
  }
  else
  {
  uint8_t x_97; 
  lean_dec(x_70);
  lean_dec(x_53);
  lean_free_object(x_31);
  lean_dec(x_21);
  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_97 = !lean_is_exclusive(x_72);
  if (x_97 == 0)
  {
  return x_72;
  }
  else
  {
  lean_object* x_98; lean_object* x_99; lean_object* x_100; 
  x_98 = lean_ctor_get(x_72, 0);
  x_99 = lean_ctor_get(x_72, 1);
  lean_inc(x_99);
  lean_inc(x_98);
  lean_dec(x_72);
  x_100 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_100, 0, x_98);
  lean_ctor_set(x_100, 1, x_99);
  return x_100;
  }
  }
  }
  else
  {
  uint8_t x_101; 
  lean_dec(x_53);
  lean_dec(x_43);
  lean_free_object(x_31);
  lean_dec(x_21);
  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_101 = !lean_is_exclusive(x_69);
  if (x_101 == 0)
  {
  return x_69;
  }
  else
  {
  lean_object* x_102; lean_object* x_103; lean_object* x_104; 
  x_102 = lean_ctor_get(x_69, 0);
  x_103 = lean_ctor_get(x_69, 1);
  lean_inc(x_103);
  lean_inc(x_102);
  lean_dec(x_69);
  x_104 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_104, 0, x_102);
  lean_ctor_set(x_104, 1, x_103);
  return x_104;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_105; 
  lean_dec(x_37);
  lean_free_object(x_31);
  lean_dec(x_35);
  lean_dec(x_34);
  lean_dec(x_26);
  lean_dec(x_23);
  lean_free_object(x_15);
  lean_dec(x_21);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_105 = !lean_is_exclusive(x_39);
  if (x_105 == 0)
  {
  return x_39;
  }
  else
  {
  lean_object* x_106; lean_object* x_107; lean_object* x_108; 
  x_106 = lean_ctor_get(x_39, 0);
  x_107 = lean_ctor_get(x_39, 1);
  lean_inc(x_107);
  lean_inc(x_106);
  lean_dec(x_39);
  x_108 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_108, 0, x_106);
  lean_ctor_set(x_108, 1, x_107);
  return x_108;
  }
  }
  }
  else
  {
  uint8_t x_109; 
  lean_free_object(x_31);
  lean_dec(x_35);
  lean_dec(x_34);
  lean_dec(x_26);
  lean_dec(x_23);
  lean_free_object(x_15);
  lean_dec(x_21);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_109 = !lean_is_exclusive(x_36);
  if (x_109 == 0)
  {
  return x_36;
  }
  else
  {
  lean_object* x_110; lean_object* x_111; lean_object* x_112; 
  x_110 = lean_ctor_get(x_36, 0);
  x_111 = lean_ctor_get(x_36, 1);
  lean_inc(x_111);
  lean_inc(x_110);
  lean_dec(x_36);
  x_112 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_112, 0, x_110);
  lean_ctor_set(x_112, 1, x_111);
  return x_112;
  }
  }
  }
  else
  {
  lean_object* x_113; lean_object* x_114; lean_object* x_115; 
  x_113 = lean_ctor_get(x_31, 0);
  x_114 = lean_ctor_get(x_31, 1);
  lean_inc(x_114);
  lean_inc(x_113);
  lean_dec(x_31);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_113);
  x_115 = lean_infer_type(x_113, x_5, x_6, x_7, x_8, x_32);
  if (lean_obj_tag(x_115) == 0)
  {
  lean_object* x_116; lean_object* x_117; lean_object* x_118; 
  x_116 = lean_ctor_get(x_115, 0);
  lean_inc(x_116);
  x_117 = lean_ctor_get(x_115, 1);
  lean_inc(x_117);
  lean_dec(x_115);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_114);
  x_118 = lean_infer_type(x_114, x_5, x_6, x_7, x_8, x_117);
  if (lean_obj_tag(x_118) == 0)
  {
  lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; 
  x_119 = lean_ctor_get(x_118, 0);
  lean_inc(x_119);
  x_120 = lean_ctor_get(x_118, 1);
  lean_inc(x_120);
  lean_dec(x_118);
  x_121 = lean_unsigned_to_nat(3u);
  x_122 = l_Lean_Syntax_getArg(x_1, x_121);
  lean_dec(x_1);
  lean_ctor_set(x_15, 0, x_116);
  x_123 = lean_ctor_get(x_7, 0);
  lean_inc(x_123);
  x_124 = lean_ctor_get(x_7, 1);
  lean_inc(x_124);
  x_125 = lean_ctor_get(x_7, 2);
  lean_inc(x_125);
  x_126 = lean_ctor_get(x_7, 3);
  lean_inc(x_126);
  x_127 = lean_ctor_get(x_7, 4);
  lean_inc(x_127);
  x_128 = lean_ctor_get(x_7, 5);
  lean_inc(x_128);
  x_129 = lean_ctor_get(x_7, 6);
  lean_inc(x_129);
  x_130 = lean_ctor_get(x_7, 7);
  lean_inc(x_130);
  x_131 = l_Lean_replaceRef(x_122, x_126);
  lean_inc(x_130);
  lean_inc(x_129);
  lean_inc(x_128);
  lean_inc(x_127);
  lean_inc(x_125);
  lean_inc(x_124);
  lean_inc(x_123);
  x_132 = lean_alloc_ctor(0, 8, 0);
  lean_ctor_set(x_132, 0, x_123);
  lean_ctor_set(x_132, 1, x_124);
  lean_ctor_set(x_132, 2, x_125);
  lean_ctor_set(x_132, 3, x_131);
  lean_ctor_set(x_132, 4, x_127);
  lean_ctor_set(x_132, 5, x_128);
  lean_ctor_set(x_132, 6, x_129);
  lean_ctor_set(x_132, 7, x_130);
  lean_inc(x_8);
  lean_inc(x_132);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_114);
  x_133 = l_Lean_Elab_Term_ensureHasType(x_15, x_114, x_27, x_3, x_4, x_5, x_6, x_132, x_8, x_120);
  if (lean_obj_tag(x_133) == 0)
  {
  lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; 
  lean_dec(x_132);
  lean_dec(x_130);
  lean_dec(x_129);
  lean_dec(x_128);
  lean_dec(x_127);
  lean_dec(x_126);
  lean_dec(x_125);
  lean_dec(x_124);
  lean_dec(x_123);
  lean_dec(x_122);
  lean_dec(x_119);
  lean_dec(x_114);
  lean_dec(x_26);
  lean_dec(x_23);
  x_134 = lean_ctor_get(x_133, 0);
  lean_inc(x_134);
  x_135 = lean_ctor_get(x_133, 1);
  lean_inc(x_135);
  lean_dec(x_133);
  x_136 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_136, 0, x_113);
  lean_ctor_set(x_136, 1, x_134);
  x_137 = l_Lean_Elab_Term_elabBinRel___lambda__3(x_21, x_2, x_136, x_3, x_4, x_5, x_6, x_7, x_8, x_135);
  lean_dec(x_136);
  return x_137;
  }
  else
  {
  lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; 
  x_138 = lean_ctor_get(x_133, 1);
  lean_inc(x_138);
  lean_dec(x_133);
  x_139 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_139, 0, x_119);
  x_140 = l_Lean_replaceRef(x_26, x_126);
  lean_dec(x_126);
  x_141 = lean_alloc_ctor(0, 8, 0);
  lean_ctor_set(x_141, 0, x_123);
  lean_ctor_set(x_141, 1, x_124);
  lean_ctor_set(x_141, 2, x_125);
  lean_ctor_set(x_141, 3, x_140);
  lean_ctor_set(x_141, 4, x_127);
  lean_ctor_set(x_141, 5, x_128);
  lean_ctor_set(x_141, 6, x_129);
  lean_ctor_set(x_141, 7, x_130);
  lean_inc(x_8);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_142 = l_Lean_Elab_Term_ensureHasType(x_139, x_113, x_27, x_3, x_4, x_5, x_6, x_141, x_8, x_138);
  if (lean_obj_tag(x_142) == 0)
  {
  lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; 
  lean_dec(x_132);
  lean_dec(x_122);
  lean_dec(x_26);
  lean_dec(x_23);
  x_143 = lean_ctor_get(x_142, 0);
  lean_inc(x_143);
  x_144 = lean_ctor_get(x_142, 1);
  lean_inc(x_144);
  lean_dec(x_142);
  x_145 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_145, 0, x_143);
  lean_ctor_set(x_145, 1, x_114);
  x_146 = l_Lean_Elab_Term_elabBinRel___lambda__3(x_21, x_2, x_145, x_3, x_4, x_5, x_6, x_7, x_8, x_144);
  lean_dec(x_145);
  return x_146;
  }
  else
  {
  lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; 
  lean_dec(x_114);
  x_147 = lean_ctor_get(x_142, 1);
  lean_inc(x_147);
  lean_dec(x_142);
  x_148 = l_Lean_Elab_Term_SavedState_restore(x_23, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_147);
  x_149 = lean_ctor_get(x_148, 1);
  lean_inc(x_149);
  lean_dec(x_148);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_150 = l_Lean_Elab_Term_elabTerm(x_26, x_27, x_29, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_149);
  if (lean_obj_tag(x_150) == 0)
  {
  lean_object* x_151; lean_object* x_152; lean_object* x_153; 
  x_151 = lean_ctor_get(x_150, 0);
  lean_inc(x_151);
  x_152 = lean_ctor_get(x_150, 1);
  lean_inc(x_152);
  lean_dec(x_150);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_153 = l_Lean_Elab_Term_elabTerm(x_122, x_27, x_29, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_152);
  if (lean_obj_tag(x_153) == 0)
  {
  lean_object* x_154; lean_object* x_155; lean_object* x_156; 
  x_154 = lean_ctor_get(x_153, 0);
  lean_inc(x_154);
  x_155 = lean_ctor_get(x_153, 1);
  lean_inc(x_155);
  lean_dec(x_153);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_151);
  x_156 = lean_infer_type(x_151, x_5, x_6, x_7, x_8, x_155);
  if (lean_obj_tag(x_156) == 0)
  {
  lean_object* x_157; lean_object* x_158; lean_object* x_159; 
  x_157 = lean_ctor_get(x_156, 0);
  lean_inc(x_157);
  x_158 = lean_ctor_get(x_156, 1);
  lean_inc(x_158);
  lean_dec(x_156);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_154);
  x_159 = lean_infer_type(x_154, x_5, x_6, x_7, x_8, x_158);
  if (lean_obj_tag(x_159) == 0)
  {
  lean_object* x_160; lean_object* x_161; lean_object* x_162; 
  x_160 = lean_ctor_get(x_159, 1);
  lean_inc(x_160);
  lean_dec(x_159);
  x_161 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_161, 0, x_157);
  lean_inc(x_8);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_162 = l_Lean_Elab_Term_ensureHasType(x_161, x_154, x_27, x_3, x_4, x_5, x_6, x_132, x_8, x_160);
  if (lean_obj_tag(x_162) == 0)
  {
  lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; 
  x_163 = lean_ctor_get(x_162, 0);
  lean_inc(x_163);
  x_164 = lean_ctor_get(x_162, 1);
  lean_inc(x_164);
  lean_dec(x_162);
  x_165 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_165, 0, x_151);
  lean_ctor_set(x_165, 1, x_163);
  x_166 = l_Lean_Elab_Term_elabBinRel___lambda__3(x_21, x_2, x_165, x_3, x_4, x_5, x_6, x_7, x_8, x_164);
  lean_dec(x_165);
  return x_166;
  }
  else
  {
  lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; 
  lean_dec(x_151);
  lean_dec(x_21);
  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_167 = lean_ctor_get(x_162, 0);
  lean_inc(x_167);
  x_168 = lean_ctor_get(x_162, 1);
  lean_inc(x_168);
  if (lean_is_exclusive(x_162)) {
   lean_ctor_release(x_162, 0);
   lean_ctor_release(x_162, 1);
   x_169 = x_162;
  } else {
   lean_dec_ref(x_162);
   x_169 = lean_box(0);
  }
  if (lean_is_scalar(x_169)) {
   x_170 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_170 = x_169;
  }
  lean_ctor_set(x_170, 0, x_167);
  lean_ctor_set(x_170, 1, x_168);
  return x_170;
  }
  }
  else
  {
  lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; 
  lean_dec(x_157);
  lean_dec(x_154);
  lean_dec(x_151);
  lean_dec(x_132);
  lean_dec(x_21);
  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_171 = lean_ctor_get(x_159, 0);
  lean_inc(x_171);
  x_172 = lean_ctor_get(x_159, 1);
  lean_inc(x_172);
  if (lean_is_exclusive(x_159)) {
   lean_ctor_release(x_159, 0);
   lean_ctor_release(x_159, 1);
   x_173 = x_159;
  } else {
   lean_dec_ref(x_159);
   x_173 = lean_box(0);
  }
  if (lean_is_scalar(x_173)) {
   x_174 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_174 = x_173;
  }
  lean_ctor_set(x_174, 0, x_171);
  lean_ctor_set(x_174, 1, x_172);
  return x_174;
  }
  }
  else
  {
  lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; 
  lean_dec(x_154);
  lean_dec(x_151);
  lean_dec(x_132);
  lean_dec(x_21);
  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_175 = lean_ctor_get(x_156, 0);
  lean_inc(x_175);
  x_176 = lean_ctor_get(x_156, 1);
  lean_inc(x_176);
  if (lean_is_exclusive(x_156)) {
   lean_ctor_release(x_156, 0);
   lean_ctor_release(x_156, 1);
   x_177 = x_156;
  } else {
   lean_dec_ref(x_156);
   x_177 = lean_box(0);
  }
  if (lean_is_scalar(x_177)) {
   x_178 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_178 = x_177;
  }
  lean_ctor_set(x_178, 0, x_175);
  lean_ctor_set(x_178, 1, x_176);
  return x_178;
  }
  }
  else
  {
  lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; 
  lean_dec(x_151);
  lean_dec(x_132);
  lean_dec(x_21);
  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_179 = lean_ctor_get(x_153, 0);
  lean_inc(x_179);
  x_180 = lean_ctor_get(x_153, 1);
  lean_inc(x_180);
  if (lean_is_exclusive(x_153)) {
   lean_ctor_release(x_153, 0);
   lean_ctor_release(x_153, 1);
   x_181 = x_153;
  } else {
   lean_dec_ref(x_153);
   x_181 = lean_box(0);
  }
  if (lean_is_scalar(x_181)) {
   x_182 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_182 = x_181;
  }
  lean_ctor_set(x_182, 0, x_179);
  lean_ctor_set(x_182, 1, x_180);
  return x_182;
  }
  }
  else
  {
  lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; 
  lean_dec(x_132);
  lean_dec(x_122);
  lean_dec(x_21);
  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_183 = lean_ctor_get(x_150, 0);
  lean_inc(x_183);
  x_184 = lean_ctor_get(x_150, 1);
  lean_inc(x_184);
  if (lean_is_exclusive(x_150)) {
   lean_ctor_release(x_150, 0);
   lean_ctor_release(x_150, 1);
   x_185 = x_150;
  } else {
   lean_dec_ref(x_150);
   x_185 = lean_box(0);
  }
  if (lean_is_scalar(x_185)) {
   x_186 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_186 = x_185;
  }
  lean_ctor_set(x_186, 0, x_183);
  lean_ctor_set(x_186, 1, x_184);
  return x_186;
  }
  }
  }
  }
  else
  {
  lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; 
  lean_dec(x_116);
  lean_dec(x_114);
  lean_dec(x_113);
  lean_dec(x_26);
  lean_dec(x_23);
  lean_free_object(x_15);
  lean_dec(x_21);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_187 = lean_ctor_get(x_118, 0);
  lean_inc(x_187);
  x_188 = lean_ctor_get(x_118, 1);
  lean_inc(x_188);
  if (lean_is_exclusive(x_118)) {
   lean_ctor_release(x_118, 0);
   lean_ctor_release(x_118, 1);
   x_189 = x_118;
  } else {
   lean_dec_ref(x_118);
   x_189 = lean_box(0);
  }
  if (lean_is_scalar(x_189)) {
   x_190 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_190 = x_189;
  }
  lean_ctor_set(x_190, 0, x_187);
  lean_ctor_set(x_190, 1, x_188);
  return x_190;
  }
  }
  else
  {
  lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; 
  lean_dec(x_114);
  lean_dec(x_113);
  lean_dec(x_26);
  lean_dec(x_23);
  lean_free_object(x_15);
  lean_dec(x_21);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_191 = lean_ctor_get(x_115, 0);
  lean_inc(x_191);
  x_192 = lean_ctor_get(x_115, 1);
  lean_inc(x_192);
  if (lean_is_exclusive(x_115)) {
   lean_ctor_release(x_115, 0);
   lean_ctor_release(x_115, 1);
   x_193 = x_115;
  } else {
   lean_dec_ref(x_115);
   x_193 = lean_box(0);
  }
  if (lean_is_scalar(x_193)) {
   x_194 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_194 = x_193;
  }
  lean_ctor_set(x_194, 0, x_191);
  lean_ctor_set(x_194, 1, x_192);
  return x_194;
  }
  }
  }
  else
  {
  uint8_t x_195; 
  lean_dec(x_26);
  lean_dec(x_23);
  lean_free_object(x_15);
  lean_dec(x_21);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_195 = !lean_is_exclusive(x_30);
  if (x_195 == 0)
  {
  return x_30;
  }
  else
  {
  lean_object* x_196; lean_object* x_197; lean_object* x_198; 
  x_196 = lean_ctor_get(x_30, 0);
  x_197 = lean_ctor_get(x_30, 1);
  lean_inc(x_197);
  lean_inc(x_196);
  lean_dec(x_30);
  x_198 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_198, 0, x_196);
  lean_ctor_set(x_198, 1, x_197);
  return x_198;
  }
  }
  }
  else
  {
  lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; lean_object* x_208; 
  x_199 = lean_ctor_get(x_15, 0);
  lean_inc(x_199);
  lean_dec(x_15);
  x_200 = l_Lean_Elab_Term_saveState___rarg(x_4, x_5, x_6, x_7, x_8, x_19);
  x_201 = lean_ctor_get(x_200, 0);
  lean_inc(x_201);
  x_202 = lean_ctor_get(x_200, 1);
  lean_inc(x_202);
  lean_dec(x_200);
  x_203 = lean_unsigned_to_nat(2u);
  x_204 = l_Lean_Syntax_getArg(x_1, x_203);
  x_205 = lean_box(0);
  lean_inc(x_1);
  lean_inc(x_204);
  x_206 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinRel___lambda__2___boxed), 10, 3);
  lean_closure_set(x_206, 0, x_204);
  lean_closure_set(x_206, 1, x_205);
  lean_closure_set(x_206, 2, x_1);
  x_207 = 1;
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_208 = l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp___rarg(x_206, x_207, x_207, x_3, x_4, x_5, x_6, x_7, x_8, x_202);
  if (lean_obj_tag(x_208) == 0)
  {
  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_209 = lean_ctor_get(x_208, 0);
  lean_inc(x_209);
  x_210 = lean_ctor_get(x_208, 1);
  lean_inc(x_210);
  lean_dec(x_208);
  x_211 = lean_ctor_get(x_209, 0);
  lean_inc(x_211);
  x_212 = lean_ctor_get(x_209, 1);
  lean_inc(x_212);
  if (lean_is_exclusive(x_209)) {
   lean_ctor_release(x_209, 0);
   lean_ctor_release(x_209, 1);
   x_213 = x_209;
  } else {
   lean_dec_ref(x_209);
   x_213 = lean_box(0);
  }
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_211);
  x_214 = lean_infer_type(x_211, x_5, x_6, x_7, x_8, x_210);
  if (lean_obj_tag(x_214) == 0)
  {
  lean_object* x_215; lean_object* x_216; lean_object* x_217; 
  x_215 = lean_ctor_get(x_214, 0);
  lean_inc(x_215);
  x_216 = lean_ctor_get(x_214, 1);
  lean_inc(x_216);
  lean_dec(x_214);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_212);
  x_217 = lean_infer_type(x_212, x_5, x_6, x_7, x_8, x_216);
  if (lean_obj_tag(x_217) == 0)
  {
  lean_object* x_218; 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; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; 
  x_218 = lean_ctor_get(x_217, 0);
  lean_inc(x_218);
  x_219 = lean_ctor_get(x_217, 1);
  lean_inc(x_219);
  lean_dec(x_217);
  x_220 = lean_unsigned_to_nat(3u);
  x_221 = l_Lean_Syntax_getArg(x_1, x_220);
  lean_dec(x_1);
  x_222 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_222, 0, x_215);
  x_223 = lean_ctor_get(x_7, 0);
  lean_inc(x_223);
  x_224 = lean_ctor_get(x_7, 1);
  lean_inc(x_224);
  x_225 = lean_ctor_get(x_7, 2);
  lean_inc(x_225);
  x_226 = lean_ctor_get(x_7, 3);
  lean_inc(x_226);
  x_227 = lean_ctor_get(x_7, 4);
  lean_inc(x_227);
  x_228 = lean_ctor_get(x_7, 5);
  lean_inc(x_228);
  x_229 = lean_ctor_get(x_7, 6);
  lean_inc(x_229);
  x_230 = lean_ctor_get(x_7, 7);
  lean_inc(x_230);
  x_231 = l_Lean_replaceRef(x_221, x_226);
  lean_inc(x_230);
  lean_inc(x_229);
  lean_inc(x_228);
  lean_inc(x_227);
  lean_inc(x_225);
  lean_inc(x_224);
  lean_inc(x_223);
  x_232 = lean_alloc_ctor(0, 8, 0);
  lean_ctor_set(x_232, 0, x_223);
  lean_ctor_set(x_232, 1, x_224);
  lean_ctor_set(x_232, 2, x_225);
  lean_ctor_set(x_232, 3, x_231);
  lean_ctor_set(x_232, 4, x_227);
  lean_ctor_set(x_232, 5, x_228);
  lean_ctor_set(x_232, 6, x_229);
  lean_ctor_set(x_232, 7, x_230);
  lean_inc(x_8);
  lean_inc(x_232);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_212);
  x_233 = l_Lean_Elab_Term_ensureHasType(x_222, x_212, x_205, x_3, x_4, x_5, x_6, x_232, x_8, x_219);
  if (lean_obj_tag(x_233) == 0)
  {
  lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; 
  lean_dec(x_232);
  lean_dec(x_230);
  lean_dec(x_229);
  lean_dec(x_228);
  lean_dec(x_227);
  lean_dec(x_226);
  lean_dec(x_225);
  lean_dec(x_224);
  lean_dec(x_223);
  lean_dec(x_221);
  lean_dec(x_218);
  lean_dec(x_212);
  lean_dec(x_204);
  lean_dec(x_201);
  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);
  if (lean_is_scalar(x_213)) {
   x_236 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_236 = x_213;
  }
  lean_ctor_set(x_236, 0, x_211);
  lean_ctor_set(x_236, 1, x_234);
  x_237 = l_Lean_Elab_Term_elabBinRel___lambda__3(x_199, x_2, x_236, x_3, x_4, x_5, x_6, x_7, x_8, x_235);
  lean_dec(x_236);
  return x_237;
  }
  else
  {
  lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; 
  x_238 = lean_ctor_get(x_233, 1);
  lean_inc(x_238);
  lean_dec(x_233);
  x_239 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_239, 0, x_218);
  x_240 = l_Lean_replaceRef(x_204, x_226);
  lean_dec(x_226);
  x_241 = lean_alloc_ctor(0, 8, 0);
  lean_ctor_set(x_241, 0, x_223);
  lean_ctor_set(x_241, 1, x_224);
  lean_ctor_set(x_241, 2, x_225);
  lean_ctor_set(x_241, 3, x_240);
  lean_ctor_set(x_241, 4, x_227);
  lean_ctor_set(x_241, 5, x_228);
  lean_ctor_set(x_241, 6, x_229);
  lean_ctor_set(x_241, 7, x_230);
  lean_inc(x_8);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_242 = l_Lean_Elab_Term_ensureHasType(x_239, x_211, x_205, x_3, x_4, x_5, x_6, x_241, x_8, x_238);
  if (lean_obj_tag(x_242) == 0)
  {
  lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; 
  lean_dec(x_232);
  lean_dec(x_221);
  lean_dec(x_204);
  lean_dec(x_201);
  x_243 = lean_ctor_get(x_242, 0);
  lean_inc(x_243);
  x_244 = lean_ctor_get(x_242, 1);
  lean_inc(x_244);
  lean_dec(x_242);
  if (lean_is_scalar(x_213)) {
   x_245 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_245 = x_213;
  }
  lean_ctor_set(x_245, 0, x_243);
  lean_ctor_set(x_245, 1, x_212);
  x_246 = l_Lean_Elab_Term_elabBinRel___lambda__3(x_199, x_2, x_245, x_3, x_4, x_5, x_6, x_7, x_8, x_244);
  lean_dec(x_245);
  return x_246;
  }
  else
  {
  lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; 
  lean_dec(x_212);
  x_247 = lean_ctor_get(x_242, 1);
  lean_inc(x_247);
  lean_dec(x_242);
  x_248 = l_Lean_Elab_Term_SavedState_restore(x_201, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_247);
  x_249 = lean_ctor_get(x_248, 1);
  lean_inc(x_249);
  lean_dec(x_248);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_250 = l_Lean_Elab_Term_elabTerm(x_204, x_205, x_207, x_207, x_3, x_4, x_5, x_6, x_7, x_8, x_249);
  if (lean_obj_tag(x_250) == 0)
  {
  lean_object* x_251; lean_object* x_252; lean_object* x_253; 
  x_251 = lean_ctor_get(x_250, 0);
  lean_inc(x_251);
  x_252 = lean_ctor_get(x_250, 1);
  lean_inc(x_252);
  lean_dec(x_250);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_253 = l_Lean_Elab_Term_elabTerm(x_221, x_205, x_207, x_207, x_3, x_4, x_5, x_6, x_7, x_8, x_252);
  if (lean_obj_tag(x_253) == 0)
  {
  lean_object* x_254; lean_object* x_255; lean_object* x_256; 
  x_254 = lean_ctor_get(x_253, 0);
  lean_inc(x_254);
  x_255 = lean_ctor_get(x_253, 1);
  lean_inc(x_255);
  lean_dec(x_253);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_251);
  x_256 = lean_infer_type(x_251, x_5, x_6, x_7, x_8, x_255);
  if (lean_obj_tag(x_256) == 0)
  {
  lean_object* x_257; lean_object* x_258; lean_object* x_259; 
  x_257 = lean_ctor_get(x_256, 0);
  lean_inc(x_257);
  x_258 = lean_ctor_get(x_256, 1);
  lean_inc(x_258);
  lean_dec(x_256);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_254);
  x_259 = lean_infer_type(x_254, x_5, x_6, x_7, x_8, x_258);
  if (lean_obj_tag(x_259) == 0)
  {
  lean_object* x_260; lean_object* x_261; lean_object* x_262; 
  x_260 = lean_ctor_get(x_259, 1);
  lean_inc(x_260);
  lean_dec(x_259);
  x_261 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_261, 0, x_257);
  lean_inc(x_8);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_262 = l_Lean_Elab_Term_ensureHasType(x_261, x_254, x_205, x_3, x_4, x_5, x_6, x_232, x_8, x_260);
  if (lean_obj_tag(x_262) == 0)
  {
  lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; 
  x_263 = lean_ctor_get(x_262, 0);
  lean_inc(x_263);
  x_264 = lean_ctor_get(x_262, 1);
  lean_inc(x_264);
  lean_dec(x_262);
  if (lean_is_scalar(x_213)) {
   x_265 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_265 = x_213;
  }
  lean_ctor_set(x_265, 0, x_251);
  lean_ctor_set(x_265, 1, x_263);
  x_266 = l_Lean_Elab_Term_elabBinRel___lambda__3(x_199, x_2, x_265, x_3, x_4, x_5, x_6, x_7, x_8, x_264);
  lean_dec(x_265);
  return x_266;
  }
  else
  {
  lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; 
  lean_dec(x_251);
  lean_dec(x_213);
  lean_dec(x_199);
  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_267 = lean_ctor_get(x_262, 0);
  lean_inc(x_267);
  x_268 = lean_ctor_get(x_262, 1);
  lean_inc(x_268);
  if (lean_is_exclusive(x_262)) {
   lean_ctor_release(x_262, 0);
   lean_ctor_release(x_262, 1);
   x_269 = x_262;
  } else {
   lean_dec_ref(x_262);
   x_269 = lean_box(0);
  }
  if (lean_is_scalar(x_269)) {
   x_270 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_270 = x_269;
  }
  lean_ctor_set(x_270, 0, x_267);
  lean_ctor_set(x_270, 1, x_268);
  return x_270;
  }
  }
  else
  {
  lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; 
  lean_dec(x_257);
  lean_dec(x_254);
  lean_dec(x_251);
  lean_dec(x_232);
  lean_dec(x_213);
  lean_dec(x_199);
  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_271 = lean_ctor_get(x_259, 0);
  lean_inc(x_271);
  x_272 = lean_ctor_get(x_259, 1);
  lean_inc(x_272);
  if (lean_is_exclusive(x_259)) {
   lean_ctor_release(x_259, 0);
   lean_ctor_release(x_259, 1);
   x_273 = x_259;
  } else {
   lean_dec_ref(x_259);
   x_273 = lean_box(0);
  }
  if (lean_is_scalar(x_273)) {
   x_274 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_274 = x_273;
  }
  lean_ctor_set(x_274, 0, x_271);
  lean_ctor_set(x_274, 1, x_272);
  return x_274;
  }
  }
  else
  {
  lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; 
  lean_dec(x_254);
  lean_dec(x_251);
  lean_dec(x_232);
  lean_dec(x_213);
  lean_dec(x_199);
  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_275 = lean_ctor_get(x_256, 0);
  lean_inc(x_275);
  x_276 = lean_ctor_get(x_256, 1);
  lean_inc(x_276);
  if (lean_is_exclusive(x_256)) {
   lean_ctor_release(x_256, 0);
   lean_ctor_release(x_256, 1);
   x_277 = x_256;
  } else {
   lean_dec_ref(x_256);
   x_277 = lean_box(0);
  }
  if (lean_is_scalar(x_277)) {
   x_278 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_278 = x_277;
  }
  lean_ctor_set(x_278, 0, x_275);
  lean_ctor_set(x_278, 1, x_276);
  return x_278;
  }
  }
  else
  {
  lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; 
  lean_dec(x_251);
  lean_dec(x_232);
  lean_dec(x_213);
  lean_dec(x_199);
  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_279 = lean_ctor_get(x_253, 0);
  lean_inc(x_279);
  x_280 = lean_ctor_get(x_253, 1);
  lean_inc(x_280);
  if (lean_is_exclusive(x_253)) {
   lean_ctor_release(x_253, 0);
   lean_ctor_release(x_253, 1);
   x_281 = x_253;
  } else {
   lean_dec_ref(x_253);
   x_281 = lean_box(0);
  }
  if (lean_is_scalar(x_281)) {
   x_282 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_282 = x_281;
  }
  lean_ctor_set(x_282, 0, x_279);
  lean_ctor_set(x_282, 1, x_280);
  return x_282;
  }
  }
  else
  {
  lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; 
  lean_dec(x_232);
  lean_dec(x_221);
  lean_dec(x_213);
  lean_dec(x_199);
  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_283 = lean_ctor_get(x_250, 0);
  lean_inc(x_283);
  x_284 = lean_ctor_get(x_250, 1);
  lean_inc(x_284);
  if (lean_is_exclusive(x_250)) {
   lean_ctor_release(x_250, 0);
   lean_ctor_release(x_250, 1);
   x_285 = x_250;
  } else {
   lean_dec_ref(x_250);
   x_285 = lean_box(0);
  }
  if (lean_is_scalar(x_285)) {
   x_286 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_286 = x_285;
  }
  lean_ctor_set(x_286, 0, x_283);
  lean_ctor_set(x_286, 1, x_284);
  return x_286;
  }
  }
  }
  }
  else
  {
  lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
  lean_dec(x_215);
  lean_dec(x_213);
  lean_dec(x_212);
  lean_dec(x_211);
  lean_dec(x_204);
  lean_dec(x_201);
  lean_dec(x_199);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_287 = lean_ctor_get(x_217, 0);
  lean_inc(x_287);
  x_288 = lean_ctor_get(x_217, 1);
  lean_inc(x_288);
  if (lean_is_exclusive(x_217)) {
   lean_ctor_release(x_217, 0);
   lean_ctor_release(x_217, 1);
   x_289 = x_217;
  } else {
   lean_dec_ref(x_217);
   x_289 = lean_box(0);
  }
  if (lean_is_scalar(x_289)) {
   x_290 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_290 = x_289;
  }
  lean_ctor_set(x_290, 0, x_287);
  lean_ctor_set(x_290, 1, x_288);
  return x_290;
  }
  }
  else
  {
  lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; 
  lean_dec(x_213);
  lean_dec(x_212);
  lean_dec(x_211);
  lean_dec(x_204);
  lean_dec(x_201);
  lean_dec(x_199);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_291 = lean_ctor_get(x_214, 0);
  lean_inc(x_291);
  x_292 = lean_ctor_get(x_214, 1);
  lean_inc(x_292);
  if (lean_is_exclusive(x_214)) {
   lean_ctor_release(x_214, 0);
   lean_ctor_release(x_214, 1);
   x_293 = x_214;
  } else {
   lean_dec_ref(x_214);
   x_293 = lean_box(0);
  }
  if (lean_is_scalar(x_293)) {
   x_294 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_294 = x_293;
  }
  lean_ctor_set(x_294, 0, x_291);
  lean_ctor_set(x_294, 1, x_292);
  return x_294;
  }
  }
  else
  {
  lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
  lean_dec(x_204);
  lean_dec(x_201);
  lean_dec(x_199);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_295 = lean_ctor_get(x_208, 0);
  lean_inc(x_295);
  x_296 = lean_ctor_get(x_208, 1);
  lean_inc(x_296);
  if (lean_is_exclusive(x_208)) {
   lean_ctor_release(x_208, 0);
   lean_ctor_release(x_208, 1);
   x_297 = x_208;
  } else {
   lean_dec_ref(x_208);
   x_297 = lean_box(0);
  }
  if (lean_is_scalar(x_297)) {
   x_298 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_298 = x_297;
  }
  lean_ctor_set(x_298, 0, x_295);
  lean_ctor_set(x_298, 1, x_296);
  return x_298;
  }
  }
  }
  }
  else
  {
  uint8_t x_299; 
  lean_dec(x_11);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_299 = !lean_is_exclusive(x_14);
  if (x_299 == 0)
  {
  return x_14;
  }
  else
  {
  lean_object* x_300; lean_object* x_301; lean_object* x_302; 
  x_300 = lean_ctor_get(x_14, 0);
  x_301 = lean_ctor_get(x_14, 1);
  lean_inc(x_301);
  lean_inc(x_300);
  lean_dec(x_14);
  x_302 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_302, 0, x_300);
  lean_ctor_set(x_302, 1, x_301);
  return x_302;
  }
  }
  }
  }
  lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_9;
  }
  }
  lean_object* l_Lean_Elab_Term_elabBinRel___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_Elab_Term_elabBinRel___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_11;
  }
  }
  lean_object* l_Lean_Elab_Term_elabBinRel___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_Elab_Term_elabBinRel___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_3);
  return x_11;
  }
  }
  lean_object* l_Lean_Elab_Term_elabBinRel___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) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_Elab_Term_elabBinRel___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_3);
  return x_11;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Lean");
  return x_1;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Parser");
  return x_1;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__2;
  x_2 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__3;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__5() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Term");
  return x_1;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__6() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__4;
  x_2 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__5;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__7() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("binrel");
  return x_1;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__8() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__6;
  x_2 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__7;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__9() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("Elab");
  return x_1;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__10() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__2;
  x_2 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__9;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__11() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__10;
  x_2 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__5;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__12() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("elabBinRel");
  return x_1;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__13() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__11;
  x_2 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__12;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__14() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinRel), 9, 0);
  return x_1;
  }
  }
  lean_object* l___regBuiltin_Lean_Elab_Term_elabBinRel(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_2 = l_Lean_Elab_Term_termElabAttribute;
  x_3 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__8;
  x_4 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__13;
  x_5 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__14;
  x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
  return x_6;
  }
  }
  lean_object* l_Lean_Elab_Term_elabForIn_getMonad_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; lean_object* x_5; 
  lean_dec(x_2);
  x_4 = lean_box(0);
  x_5 = lean_apply_1(x_3, x_4);
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  lean_dec(x_3);
  x_6 = lean_ctor_get(x_1, 0);
  lean_inc(x_6);
  lean_dec(x_1);
  x_7 = lean_ctor_get(x_6, 0);
  lean_inc(x_7);
  x_8 = lean_ctor_get(x_6, 1);
  lean_inc(x_8);
  lean_dec(x_6);
  x_9 = lean_apply_2(x_2, x_7, x_8);
  return x_9;
  }
  }
  }
  lean_object* l_Lean_Elab_Term_elabForIn_getMonad_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabForIn_getMonad_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Term_elabForIn_getMonad_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; lean_object* x_5; 
  lean_dec(x_3);
  x_4 = lean_box(0);
  x_5 = lean_apply_1(x_2, x_4);
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; 
  lean_dec(x_2);
  x_6 = lean_ctor_get(x_1, 0);
  lean_inc(x_6);
  lean_dec(x_1);
  x_7 = lean_apply_1(x_3, x_6);
  return x_7;
  }
  }
  }
  lean_object* l_Lean_Elab_Term_elabForIn_getMonad_match__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabForIn_getMonad_match__2___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Term_elabForIn_match__1___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 0:
  {
  lean_object* x_5; lean_object* x_6; 
  lean_dec(x_3);
  lean_dec(x_2);
  x_5 = lean_box(0);
  x_6 = lean_apply_1(x_4, x_5);
  return x_6;
  }
  case 1:
  {
  lean_object* x_7; lean_object* x_8; 
  lean_dec(x_4);
  lean_dec(x_3);
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_apply_1(x_2, x_7);
  return x_8;
  }
  default: 
  {
  lean_object* x_9; lean_object* x_10; 
  lean_dec(x_4);
  lean_dec(x_2);
  x_9 = lean_box(0);
  x_10 = lean_apply_1(x_3, x_9);
  return x_10;
  }
  }
  }
  }
  lean_object* l_Lean_Elab_Term_elabForIn_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabForIn_match__1___rarg), 4, 0);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn_getMonad___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("invalid 'forIn%' notation, expected type is not available");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn_getMonad___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_elabForIn_getMonad___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn_getMonad___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("invalid 'forIn%' notation, expected type is not of of the form `M α`");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn_getMonad___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_elabForIn_getMonad___closed__3;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn_getMonad___closed__5() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn_getMonad___closed__6() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_elabForIn_getMonad___closed__5;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Term_elabForIn_getMonad(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:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_9; lean_object* x_10; 
  x_9 = l_Lean_Elab_Term_elabForIn_getMonad___closed__2;
  x_10 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_10;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; 
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_11);
  x_12 = l_Lean_Elab_Term_isTypeApp_x3f(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  if (lean_obj_tag(x_12) == 0)
  {
  lean_object* x_13; 
  x_13 = lean_ctor_get(x_12, 0);
  lean_inc(x_13);
  if (lean_obj_tag(x_13) == 0)
  {
  lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_14 = lean_ctor_get(x_12, 1);
  lean_inc(x_14);
  lean_dec(x_12);
  x_15 = l_Lean_indentExpr(x_11);
  x_16 = l_Lean_Elab_Term_elabForIn_getMonad___closed__4;
  x_17 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_17, 0, x_16);
  lean_ctor_set(x_17, 1, x_15);
  x_18 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_19 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_19, 0, x_17);
  lean_ctor_set(x_19, 1, x_18);
  x_20 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_14);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_20;
  }
  else
  {
  lean_object* x_21; uint8_t x_22; 
  lean_dec(x_11);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_2);
  x_21 = lean_ctor_get(x_13, 0);
  lean_inc(x_21);
  lean_dec(x_13);
  x_22 = !lean_is_exclusive(x_12);
  if (x_22 == 0)
  {
  lean_object* x_23; lean_object* x_24; 
  x_23 = lean_ctor_get(x_12, 0);
  lean_dec(x_23);
  x_24 = lean_ctor_get(x_21, 0);
  lean_inc(x_24);
  lean_dec(x_21);
  lean_ctor_set(x_12, 0, x_24);
  return x_12;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_12, 1);
  lean_inc(x_25);
  lean_dec(x_12);
  x_26 = lean_ctor_get(x_21, 0);
  lean_inc(x_26);
  lean_dec(x_21);
  x_27 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_27, 0, x_26);
  lean_ctor_set(x_27, 1, x_25);
  return x_27;
  }
  }
  }
  else
  {
  uint8_t x_28; 
  lean_dec(x_11);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_2);
  x_28 = !lean_is_exclusive(x_12);
  if (x_28 == 0)
  {
  return x_12;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_12, 0);
  x_30 = lean_ctor_get(x_12, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_12);
  x_31 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_31, 0, x_29);
  lean_ctor_set(x_31, 1, x_30);
  return x_31;
  }
  }
  }
  }
  }
  lean_object* l_Lean_Elab_Term_elabForIn_getMonad___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_Elab_Term_elabForIn_getMonad(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_3);
  return x_9;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn_throwFailure___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("failed to synthesize instance for 'forIn%' notation");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn_throwFailure___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_elabForIn_throwFailure___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Term_elabForIn_throwFailure(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_9 = l_Lean_indentExpr(x_1);
  x_10 = l_Lean_Elab_Term_elabForIn_throwFailure___closed__2;
  x_11 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_11, 0, x_10);
  lean_ctor_set(x_11, 1, x_9);
  x_12 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_13 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_13, 0, x_11);
  lean_ctor_set(x_13, 1, x_12);
  x_14 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  return x_14;
  }
  }
  lean_object* l_Lean_Elab_Term_elabForIn_throwFailure___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_Elab_Term_elabForIn_throwFailure(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_9;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___lambda__1___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("ForIn");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___lambda__1___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___lambda__1___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("forIn");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___lambda__1___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__2;
  x_2 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__3;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___lambda__1___closed__5() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(3u);
  x_2 = lean_mk_empty_array_with_capacity(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Term_elabForIn___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  lean_object* x_13; lean_object* x_14; 
  x_13 = lean_box(0);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_5);
  x_14 = l_Lean_Meta_trySynthInstance(x_5, x_13, x_8, x_9, x_10, x_11, x_12);
  if (lean_obj_tag(x_14) == 0)
  {
  lean_object* x_15; 
  x_15 = lean_ctor_get(x_14, 0);
  lean_inc(x_15);
  switch (lean_obj_tag(x_15)) {
  case 0:
  {
  lean_object* x_16; lean_object* x_17; 
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_16 = lean_ctor_get(x_14, 1);
  lean_inc(x_16);
  lean_dec(x_14);
  x_17 = l_Lean_Elab_Term_elabForIn_throwFailure(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_16);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  return x_17;
  }
  case 1:
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
  lean_dec(x_15);
  lean_dec(x_5);
  x_18 = lean_ctor_get(x_14, 1);
  lean_inc(x_18);
  lean_dec(x_14);
  x_19 = lean_box(0);
  x_20 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__4;
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_6);
  x_21 = l_Lean_Elab_Term_mkConst(x_20, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_18);
  if (lean_obj_tag(x_21) == 0)
  {
  lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; 
  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_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_24, 0, x_1);
  x_25 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_25, 0, x_2);
  x_26 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_26, 0, x_3);
  x_27 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__5;
  x_28 = lean_array_push(x_27, x_24);
  x_29 = lean_array_push(x_28, x_25);
  x_30 = lean_array_push(x_29, x_26);
  x_31 = l_Lean_Elab_Term_elabBinRel___lambda__3___closed__1;
  x_32 = 0;
  x_33 = l_Lean_Elab_Term_elabAppArgs(x_22, x_31, x_30, x_4, x_32, x_32, x_6, x_7, x_8, x_9, x_10, x_11, x_23);
  return x_33;
  }
  else
  {
  uint8_t x_34; 
  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);
  lean_dec(x_1);
  x_34 = !lean_is_exclusive(x_21);
  if (x_34 == 0)
  {
  return x_21;
  }
  else
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  x_35 = lean_ctor_get(x_21, 0);
  x_36 = lean_ctor_get(x_21, 1);
  lean_inc(x_36);
  lean_inc(x_35);
  lean_dec(x_21);
  x_37 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_37, 0, x_35);
  lean_ctor_set(x_37, 1, x_36);
  return x_37;
  }
  }
  }
  default: 
  {
  lean_object* x_38; lean_object* x_39; 
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_38 = lean_ctor_get(x_14, 1);
  lean_inc(x_38);
  lean_dec(x_14);
  lean_inc(x_6);
  x_39 = l_Lean_Elab_Term_tryPostpone(x_6, x_7, x_8, x_9, x_10, x_11, x_38);
  if (lean_obj_tag(x_39) == 0)
  {
  lean_object* x_40; lean_object* x_41; 
  x_40 = lean_ctor_get(x_39, 1);
  lean_inc(x_40);
  lean_dec(x_39);
  x_41 = l_Lean_Elab_Term_elabForIn_throwFailure(x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_40);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  return x_41;
  }
  else
  {
  uint8_t x_42; 
  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);
  x_42 = !lean_is_exclusive(x_39);
  if (x_42 == 0)
  {
  return x_39;
  }
  else
  {
  lean_object* x_43; lean_object* x_44; lean_object* x_45; 
  x_43 = lean_ctor_get(x_39, 0);
  x_44 = lean_ctor_get(x_39, 1);
  lean_inc(x_44);
  lean_inc(x_43);
  lean_dec(x_39);
  x_45 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_45, 0, x_43);
  lean_ctor_set(x_45, 1, x_44);
  return x_45;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_46; 
  lean_dec(x_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);
  lean_dec(x_1);
  x_46 = !lean_is_exclusive(x_14);
  if (x_46 == 0)
  {
  return x_14;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_47 = lean_ctor_get(x_14, 0);
  x_48 = lean_ctor_get(x_14, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_14);
  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;
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("forInMacro");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__6;
  x_2 = l_Lean_Elab_Term_elabForIn___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("let");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__6;
  x_2 = l_Lean_Elab_Term_elabForIn___closed__3;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__5() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("letDecl");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__6() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__6;
  x_2 = l_Lean_Elab_Term_elabForIn___closed__5;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__7() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("letIdDecl");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__8() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__6;
  x_2 = l_Lean_Elab_Term_elabForIn___closed__7;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__9() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("col");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__10() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_elabForIn___closed__9;
  x_2 = lean_string_utf8_byte_size(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__11() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
  x_1 = l_Lean_Elab_Term_elabForIn___closed__9;
  x_2 = lean_unsigned_to_nat(0u);
  x_3 = l_Lean_Elab_Term_elabForIn___closed__10;
  x_4 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_4, 0, x_1);
  lean_ctor_set(x_4, 1, x_2);
  lean_ctor_set(x_4, 2, x_3);
  return x_4;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__12() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Elab_Term_elabForIn___closed__9;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__13() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("null");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__14() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Elab_Term_elabForIn___closed__13;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__15() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Term_elabForIn___closed__14;
  x_2 = l_Lean_Elab_Term_elabBinRel___lambda__3___closed__1;
  x_3 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__16() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string(":=");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__17() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(5u);
  x_2 = lean_mk_empty_array_with_capacity(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__18() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(1u);
  x_2 = lean_mk_empty_array_with_capacity(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__19() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string(";");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__20() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("forIn%");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__21() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(4u);
  x_2 = lean_mk_empty_array_with_capacity(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__22() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("failed to construct 'ForIn' instance for collection");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__23() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_elabForIn___closed__22;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__24() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("\nand monad");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_elabForIn___closed__25() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_elabForIn___closed__24;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Term_elabForIn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; uint8_t x_11; 
  x_10 = l_Lean_Elab_Term_elabForIn___closed__2;
  lean_inc(x_1);
  x_11 = l_Lean_Syntax_isOfKind(x_1, x_10);
  if (x_11 == 0)
  {
  lean_object* x_12; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_elabForall___spec__1___rarg(x_9);
  return x_12;
  }
  else
  {
  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_unsigned_to_nat(1u);
  x_14 = l_Lean_Syntax_getArg(x_1, x_13);
  x_15 = lean_unsigned_to_nat(2u);
  x_16 = l_Lean_Syntax_getArg(x_1, x_15);
  x_17 = lean_unsigned_to_nat(3u);
  x_18 = l_Lean_Syntax_getArg(x_1, x_17);
  lean_dec(x_1);
  lean_inc(x_5);
  lean_inc(x_14);
  x_19 = l_Lean_Elab_Term_isLocalIdent_x3f(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  if (lean_obj_tag(x_20) == 0)
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_object* x_73; 
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  lean_inc(x_7);
  x_22 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg(x_7, x_8, x_21);
  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_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_24);
  x_26 = lean_ctor_get(x_25, 0);
  lean_inc(x_26);
  x_27 = lean_ctor_get(x_25, 1);
  lean_inc(x_27);
  lean_dec(x_25);
  x_28 = l_Lean_Elab_Term_getMainModule___rarg(x_8, x_27);
  x_29 = lean_ctor_get(x_28, 0);
  lean_inc(x_29);
  x_30 = lean_ctor_get(x_28, 1);
  lean_inc(x_30);
  lean_dec(x_28);
  x_31 = l_Lean_Elab_Term_elabForIn___closed__3;
  lean_inc(x_23);
  x_32 = lean_alloc_ctor(2, 2, 0);
  lean_ctor_set(x_32, 0, x_23);
  lean_ctor_set(x_32, 1, x_31);
  x_33 = l_Lean_Elab_Term_elabForIn___closed__12;
  x_34 = l_Lean_addMacroScope(x_29, x_33, x_26);
  x_35 = lean_box(0);
  x_36 = l_Lean_Elab_Term_elabForIn___closed__11;
  lean_inc(x_23);
  x_37 = lean_alloc_ctor(3, 4, 0);
  lean_ctor_set(x_37, 0, x_23);
  lean_ctor_set(x_37, 1, x_36);
  lean_ctor_set(x_37, 2, x_34);
  lean_ctor_set(x_37, 3, x_35);
  x_38 = l_Lean_Elab_Term_elabForIn___closed__16;
  lean_inc(x_23);
  x_39 = lean_alloc_ctor(2, 2, 0);
  lean_ctor_set(x_39, 0, x_23);
  lean_ctor_set(x_39, 1, x_38);
  x_40 = l_Lean_Elab_Term_elabForIn___closed__17;
  lean_inc(x_37);
  x_41 = lean_array_push(x_40, x_37);
  x_42 = l_Lean_Elab_Term_elabForIn___closed__15;
  x_43 = lean_array_push(x_41, x_42);
  x_44 = lean_array_push(x_43, x_42);
  x_45 = lean_array_push(x_44, x_39);
  x_46 = lean_array_push(x_45, x_14);
  x_47 = l_Lean_Elab_Term_elabForIn___closed__8;
  x_48 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_48, 0, x_47);
  lean_ctor_set(x_48, 1, x_46);
  x_49 = l_Lean_Elab_Term_elabForIn___closed__18;
  x_50 = lean_array_push(x_49, x_48);
  x_51 = l_Lean_Elab_Term_elabForIn___closed__6;
  x_52 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_52, 0, x_51);
  lean_ctor_set(x_52, 1, x_50);
  x_53 = l_Lean_Elab_Term_elabForIn___closed__19;
  lean_inc(x_23);
  x_54 = lean_alloc_ctor(2, 2, 0);
  lean_ctor_set(x_54, 0, x_23);
  lean_ctor_set(x_54, 1, x_53);
  x_55 = lean_array_push(x_49, x_54);
  x_56 = l_Lean_Elab_Term_elabForIn___closed__14;
  x_57 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_57, 0, x_56);
  lean_ctor_set(x_57, 1, x_55);
  x_58 = l_Lean_Elab_Term_elabForIn___closed__20;
  x_59 = lean_alloc_ctor(2, 2, 0);
  lean_ctor_set(x_59, 0, x_23);
  lean_ctor_set(x_59, 1, x_58);
  x_60 = l_Lean_Elab_Term_elabForIn___closed__21;
  x_61 = lean_array_push(x_60, x_59);
  x_62 = lean_array_push(x_61, x_37);
  x_63 = lean_array_push(x_62, x_16);
  x_64 = lean_array_push(x_63, x_18);
  x_65 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_65, 0, x_10);
  lean_ctor_set(x_65, 1, x_64);
  x_66 = lean_array_push(x_60, x_32);
  x_67 = lean_array_push(x_66, x_52);
  x_68 = lean_array_push(x_67, x_57);
  x_69 = lean_array_push(x_68, x_65);
  x_70 = l_Lean_Elab_Term_elabForIn___closed__4;
  x_71 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_71, 0, x_70);
  lean_ctor_set(x_71, 1, x_69);
  x_72 = 1;
  x_73 = l_Lean_Elab_Term_elabTerm(x_71, x_2, x_72, x_72, x_3, x_4, x_5, x_6, x_7, x_8, x_30);
  return x_73;
  }
  else
  {
  lean_object* x_74; uint8_t x_75; 
  x_74 = lean_ctor_get(x_19, 1);
  lean_inc(x_74);
  lean_dec(x_19);
  x_75 = !lean_is_exclusive(x_20);
  if (x_75 == 0)
  {
  lean_object* x_76; lean_object* x_77; 
  x_76 = lean_ctor_get(x_20, 0);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_3);
  lean_inc(x_2);
  x_77 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_74);
  if (lean_obj_tag(x_77) == 0)
  {
  lean_object* x_78; lean_object* x_79; 
  x_78 = lean_ctor_get(x_77, 1);
  lean_inc(x_78);
  lean_dec(x_77);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_3);
  lean_inc(x_2);
  x_79 = l_Lean_Elab_Term_elabForIn_getMonad(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_78);
  if (lean_obj_tag(x_79) == 0)
  {
  lean_object* x_80; lean_object* x_81; lean_object* x_82; 
  x_80 = lean_ctor_get(x_79, 0);
  lean_inc(x_80);
  x_81 = lean_ctor_get(x_79, 1);
  lean_inc(x_81);
  lean_dec(x_79);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_82 = lean_infer_type(x_76, x_5, x_6, x_7, x_8, x_81);
  if (lean_obj_tag(x_82) == 0)
  {
  lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; 
  x_83 = lean_ctor_get(x_82, 0);
  lean_inc(x_83);
  x_84 = lean_ctor_get(x_82, 1);
  lean_inc(x_84);
  lean_dec(x_82);
  x_85 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_6, x_7, x_8, x_84);
  x_86 = lean_ctor_get(x_85, 0);
  lean_inc(x_86);
  x_87 = lean_ctor_get(x_85, 1);
  lean_inc(x_87);
  lean_dec(x_85);
  x_88 = l_Lean_mkLevelSucc(x_86);
  x_89 = l_Lean_mkSort(x_88);
  lean_ctor_set(x_20, 0, x_89);
  x_90 = 0;
  x_91 = lean_box(0);
  lean_inc(x_5);
  x_92 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_20, x_90, x_91, x_5, x_6, x_7, x_8, x_87);
  x_93 = lean_ctor_get(x_92, 0);
  lean_inc(x_93);
  x_94 = lean_ctor_get(x_92, 1);
  lean_inc(x_94);
  lean_dec(x_92);
  x_95 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__5;
  lean_inc(x_80);
  x_96 = lean_array_push(x_95, x_80);
  lean_inc(x_83);
  x_97 = lean_array_push(x_96, x_83);
  x_98 = lean_array_push(x_97, x_93);
  x_99 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__2;
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_100 = l_Lean_Meta_mkAppM(x_99, x_98, x_5, x_6, x_7, x_8, x_94);
  if (lean_obj_tag(x_100) == 0)
  {
  lean_object* x_101; lean_object* x_102; lean_object* x_103; 
  lean_dec(x_83);
  lean_dec(x_80);
  x_101 = lean_ctor_get(x_100, 0);
  lean_inc(x_101);
  x_102 = lean_ctor_get(x_100, 1);
  lean_inc(x_102);
  lean_dec(x_100);
  x_103 = l_Lean_Elab_Term_elabForIn___lambda__1(x_14, x_16, x_18, x_2, x_101, x_3, x_4, x_5, x_6, x_7, x_8, x_102);
  return x_103;
  }
  else
  {
  lean_object* x_104; lean_object* x_105; 
  lean_dec(x_18);
  lean_dec(x_16);
  lean_dec(x_14);
  lean_dec(x_2);
  x_104 = lean_ctor_get(x_100, 1);
  lean_inc(x_104);
  lean_dec(x_100);
  lean_inc(x_3);
  x_105 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_104);
  if (lean_obj_tag(x_105) == 0)
  {
  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_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; 
  x_106 = lean_ctor_get(x_105, 1);
  lean_inc(x_106);
  lean_dec(x_105);
  x_107 = l_Lean_indentExpr(x_83);
  x_108 = l_Lean_Elab_Term_elabForIn___closed__23;
  x_109 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_109, 0, x_108);
  lean_ctor_set(x_109, 1, x_107);
  x_110 = l_Lean_Elab_Term_elabForIn___closed__25;
  x_111 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_111, 0, x_109);
  lean_ctor_set(x_111, 1, x_110);
  x_112 = l_Lean_indentExpr(x_80);
  x_113 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_113, 0, x_111);
  lean_ctor_set(x_113, 1, x_112);
  x_114 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_115 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_115, 0, x_113);
  lean_ctor_set(x_115, 1, x_114);
  x_116 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(x_115, x_3, x_4, x_5, x_6, x_7, x_8, x_106);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_117 = !lean_is_exclusive(x_116);
  if (x_117 == 0)
  {
  return x_116;
  }
  else
  {
  lean_object* x_118; lean_object* x_119; lean_object* x_120; 
  x_118 = lean_ctor_get(x_116, 0);
  x_119 = lean_ctor_get(x_116, 1);
  lean_inc(x_119);
  lean_inc(x_118);
  lean_dec(x_116);
  x_120 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_120, 0, x_118);
  lean_ctor_set(x_120, 1, x_119);
  return x_120;
  }
  }
  else
  {
  uint8_t x_121; 
  lean_dec(x_83);
  lean_dec(x_80);
  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_121 = !lean_is_exclusive(x_105);
  if (x_121 == 0)
  {
  return x_105;
  }
  else
  {
  lean_object* x_122; lean_object* x_123; lean_object* x_124; 
  x_122 = lean_ctor_get(x_105, 0);
  x_123 = lean_ctor_get(x_105, 1);
  lean_inc(x_123);
  lean_inc(x_122);
  lean_dec(x_105);
  x_124 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_124, 0, x_122);
  lean_ctor_set(x_124, 1, x_123);
  return x_124;
  }
  }
  }
  }
  else
  {
  uint8_t x_125; 
  lean_dec(x_80);
  lean_free_object(x_20);
  lean_dec(x_18);
  lean_dec(x_16);
  lean_dec(x_14);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_125 = !lean_is_exclusive(x_82);
  if (x_125 == 0)
  {
  return x_82;
  }
  else
  {
  lean_object* x_126; lean_object* x_127; lean_object* x_128; 
  x_126 = lean_ctor_get(x_82, 0);
  x_127 = lean_ctor_get(x_82, 1);
  lean_inc(x_127);
  lean_inc(x_126);
  lean_dec(x_82);
  x_128 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_128, 0, x_126);
  lean_ctor_set(x_128, 1, x_127);
  return x_128;
  }
  }
  }
  else
  {
  uint8_t x_129; 
  lean_free_object(x_20);
  lean_dec(x_76);
  lean_dec(x_18);
  lean_dec(x_16);
  lean_dec(x_14);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_129 = !lean_is_exclusive(x_79);
  if (x_129 == 0)
  {
  return x_79;
  }
  else
  {
  lean_object* x_130; lean_object* x_131; lean_object* x_132; 
  x_130 = lean_ctor_get(x_79, 0);
  x_131 = lean_ctor_get(x_79, 1);
  lean_inc(x_131);
  lean_inc(x_130);
  lean_dec(x_79);
  x_132 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_132, 0, x_130);
  lean_ctor_set(x_132, 1, x_131);
  return x_132;
  }
  }
  }
  else
  {
  uint8_t x_133; 
  lean_free_object(x_20);
  lean_dec(x_76);
  lean_dec(x_18);
  lean_dec(x_16);
  lean_dec(x_14);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_133 = !lean_is_exclusive(x_77);
  if (x_133 == 0)
  {
  return x_77;
  }
  else
  {
  lean_object* x_134; lean_object* x_135; lean_object* x_136; 
  x_134 = lean_ctor_get(x_77, 0);
  x_135 = lean_ctor_get(x_77, 1);
  lean_inc(x_135);
  lean_inc(x_134);
  lean_dec(x_77);
  x_136 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_136, 0, x_134);
  lean_ctor_set(x_136, 1, x_135);
  return x_136;
  }
  }
  }
  else
  {
  lean_object* x_137; lean_object* x_138; 
  x_137 = lean_ctor_get(x_20, 0);
  lean_inc(x_137);
  lean_dec(x_20);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_3);
  lean_inc(x_2);
  x_138 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_74);
  if (lean_obj_tag(x_138) == 0)
  {
  lean_object* x_139; lean_object* x_140; 
  x_139 = lean_ctor_get(x_138, 1);
  lean_inc(x_139);
  lean_dec(x_138);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_3);
  lean_inc(x_2);
  x_140 = l_Lean_Elab_Term_elabForIn_getMonad(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_139);
  if (lean_obj_tag(x_140) == 0)
  {
  lean_object* x_141; lean_object* x_142; lean_object* x_143; 
  x_141 = lean_ctor_get(x_140, 0);
  lean_inc(x_141);
  x_142 = lean_ctor_get(x_140, 1);
  lean_inc(x_142);
  lean_dec(x_140);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_143 = lean_infer_type(x_137, x_5, x_6, x_7, x_8, x_142);
  if (lean_obj_tag(x_143) == 0)
  {
  lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; uint8_t x_152; lean_object* x_153; 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; 
  x_144 = lean_ctor_get(x_143, 0);
  lean_inc(x_144);
  x_145 = lean_ctor_get(x_143, 1);
  lean_inc(x_145);
  lean_dec(x_143);
  x_146 = l_Lean_Meta_mkFreshLevelMVar___rarg(x_6, x_7, x_8, x_145);
  x_147 = lean_ctor_get(x_146, 0);
  lean_inc(x_147);
  x_148 = lean_ctor_get(x_146, 1);
  lean_inc(x_148);
  lean_dec(x_146);
  x_149 = l_Lean_mkLevelSucc(x_147);
  x_150 = l_Lean_mkSort(x_149);
  x_151 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_151, 0, x_150);
  x_152 = 0;
  x_153 = lean_box(0);
  lean_inc(x_5);
  x_154 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_151, x_152, x_153, x_5, x_6, x_7, x_8, x_148);
  x_155 = lean_ctor_get(x_154, 0);
  lean_inc(x_155);
  x_156 = lean_ctor_get(x_154, 1);
  lean_inc(x_156);
  lean_dec(x_154);
  x_157 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__5;
  lean_inc(x_141);
  x_158 = lean_array_push(x_157, x_141);
  lean_inc(x_144);
  x_159 = lean_array_push(x_158, x_144);
  x_160 = lean_array_push(x_159, x_155);
  x_161 = l_Lean_Elab_Term_elabForIn___lambda__1___closed__2;
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_162 = l_Lean_Meta_mkAppM(x_161, x_160, x_5, x_6, x_7, x_8, x_156);
  if (lean_obj_tag(x_162) == 0)
  {
  lean_object* x_163; lean_object* x_164; lean_object* x_165; 
  lean_dec(x_144);
  lean_dec(x_141);
  x_163 = lean_ctor_get(x_162, 0);
  lean_inc(x_163);
  x_164 = lean_ctor_get(x_162, 1);
  lean_inc(x_164);
  lean_dec(x_162);
  x_165 = l_Lean_Elab_Term_elabForIn___lambda__1(x_14, x_16, x_18, x_2, x_163, x_3, x_4, x_5, x_6, x_7, x_8, x_164);
  return x_165;
  }
  else
  {
  lean_object* x_166; lean_object* x_167; 
  lean_dec(x_18);
  lean_dec(x_16);
  lean_dec(x_14);
  lean_dec(x_2);
  x_166 = lean_ctor_get(x_162, 1);
  lean_inc(x_166);
  lean_dec(x_162);
  lean_inc(x_3);
  x_167 = l_Lean_Elab_Term_tryPostpone(x_3, x_4, x_5, x_6, x_7, x_8, x_166);
  if (lean_obj_tag(x_167) == 0)
  {
  lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; 
  x_168 = lean_ctor_get(x_167, 1);
  lean_inc(x_168);
  lean_dec(x_167);
  x_169 = l_Lean_indentExpr(x_144);
  x_170 = l_Lean_Elab_Term_elabForIn___closed__23;
  x_171 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_171, 0, x_170);
  lean_ctor_set(x_171, 1, x_169);
  x_172 = l_Lean_Elab_Term_elabForIn___closed__25;
  x_173 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_173, 0, x_171);
  lean_ctor_set(x_173, 1, x_172);
  x_174 = l_Lean_indentExpr(x_141);
  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 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  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_throwError___at_Lean_Elab_Term_synthesizeInst___spec__1(x_177, x_3, x_4, x_5, x_6, x_7, x_8, x_168);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_179 = lean_ctor_get(x_178, 0);
  lean_inc(x_179);
  x_180 = lean_ctor_get(x_178, 1);
  lean_inc(x_180);
  if (lean_is_exclusive(x_178)) {
   lean_ctor_release(x_178, 0);
   lean_ctor_release(x_178, 1);
   x_181 = x_178;
  } else {
   lean_dec_ref(x_178);
   x_181 = lean_box(0);
  }
  if (lean_is_scalar(x_181)) {
   x_182 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_182 = x_181;
  }
  lean_ctor_set(x_182, 0, x_179);
  lean_ctor_set(x_182, 1, x_180);
  return x_182;
  }
  else
  {
  lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; 
  lean_dec(x_144);
  lean_dec(x_141);
  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_183 = lean_ctor_get(x_167, 0);
  lean_inc(x_183);
  x_184 = lean_ctor_get(x_167, 1);
  lean_inc(x_184);
  if (lean_is_exclusive(x_167)) {
   lean_ctor_release(x_167, 0);
   lean_ctor_release(x_167, 1);
   x_185 = x_167;
  } else {
   lean_dec_ref(x_167);
   x_185 = lean_box(0);
  }
  if (lean_is_scalar(x_185)) {
   x_186 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_186 = x_185;
  }
  lean_ctor_set(x_186, 0, x_183);
  lean_ctor_set(x_186, 1, x_184);
  return x_186;
  }
  }
  }
  else
  {
  lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; 
  lean_dec(x_141);
  lean_dec(x_18);
  lean_dec(x_16);
  lean_dec(x_14);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_187 = lean_ctor_get(x_143, 0);
  lean_inc(x_187);
  x_188 = lean_ctor_get(x_143, 1);
  lean_inc(x_188);
  if (lean_is_exclusive(x_143)) {
   lean_ctor_release(x_143, 0);
   lean_ctor_release(x_143, 1);
   x_189 = x_143;
  } else {
   lean_dec_ref(x_143);
   x_189 = lean_box(0);
  }
  if (lean_is_scalar(x_189)) {
   x_190 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_190 = x_189;
  }
  lean_ctor_set(x_190, 0, x_187);
  lean_ctor_set(x_190, 1, x_188);
  return x_190;
  }
  }
  else
  {
  lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; 
  lean_dec(x_137);
  lean_dec(x_18);
  lean_dec(x_16);
  lean_dec(x_14);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_191 = lean_ctor_get(x_140, 0);
  lean_inc(x_191);
  x_192 = lean_ctor_get(x_140, 1);
  lean_inc(x_192);
  if (lean_is_exclusive(x_140)) {
   lean_ctor_release(x_140, 0);
   lean_ctor_release(x_140, 1);
   x_193 = x_140;
  } else {
   lean_dec_ref(x_140);
   x_193 = lean_box(0);
  }
  if (lean_is_scalar(x_193)) {
   x_194 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_194 = x_193;
  }
  lean_ctor_set(x_194, 0, x_191);
  lean_ctor_set(x_194, 1, x_192);
  return x_194;
  }
  }
  else
  {
  lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; 
  lean_dec(x_137);
  lean_dec(x_18);
  lean_dec(x_16);
  lean_dec(x_14);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_195 = lean_ctor_get(x_138, 0);
  lean_inc(x_195);
  x_196 = lean_ctor_get(x_138, 1);
  lean_inc(x_196);
  if (lean_is_exclusive(x_138)) {
   lean_ctor_release(x_138, 0);
   lean_ctor_release(x_138, 1);
   x_197 = x_138;
  } else {
   lean_dec_ref(x_138);
   x_197 = lean_box(0);
  }
  if (lean_is_scalar(x_197)) {
   x_198 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_198 = x_197;
  }
  lean_ctor_set(x_198, 0, x_195);
  lean_ctor_set(x_198, 1, x_196);
  return x_198;
  }
  }
  }
  }
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabForIn___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("elabForIn");
  return x_1;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabForIn___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__11;
  x_2 = l___regBuiltin_Lean_Elab_Term_elabForIn___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_elabForIn___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabForIn), 9, 0);
  return x_1;
  }
  }
  lean_object* l___regBuiltin_Lean_Elab_Term_elabForIn(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_2 = l_Lean_Elab_Term_termElabAttribute;
  x_3 = l_Lean_Elab_Term_elabForIn___closed__2;
  x_4 = l___regBuiltin_Lean_Elab_Term_elabForIn___closed__2;
  x_5 = l___regBuiltin_Lean_Elab_Term_elabForIn___closed__3;
  x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
  return x_6;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; 
  lean_dec(x_2);
  x_4 = lean_apply_1(x_3, x_1);
  return x_4;
  }
  else
  {
  lean_object* x_5; lean_object* x_6; 
  lean_dec(x_3);
  x_5 = lean_ctor_get(x_1, 0);
  lean_inc(x_5);
  lean_dec(x_1);
  x_6 = lean_apply_1(x_2, x_5);
  return x_6;
  }
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
  x_9 = lean_ctor_get(x_6, 3);
  x_10 = lean_ctor_get(x_2, 3);
  lean_inc(x_10);
  lean_inc(x_10);
  x_11 = l_Lean_Elab_getBetterRef(x_9, x_10);
  x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8);
  x_13 = lean_ctor_get(x_12, 0);
  lean_inc(x_13);
  x_14 = lean_ctor_get(x_12, 1);
  lean_inc(x_14);
  lean_dec(x_12);
  x_15 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_13, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_14);
  lean_dec(x_2);
  lean_dec(x_10);
  x_16 = !lean_is_exclusive(x_15);
  if (x_16 == 0)
  {
  lean_object* x_17; lean_object* x_18; 
  x_17 = lean_ctor_get(x_15, 0);
  x_18 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_18, 0, x_11);
  lean_ctor_set(x_18, 1, x_17);
  lean_ctor_set_tag(x_15, 1);
  lean_ctor_set(x_15, 0, x_18);
  return x_15;
  }
  else
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_19 = lean_ctor_get(x_15, 0);
  x_20 = lean_ctor_get(x_15, 1);
  lean_inc(x_20);
  lean_inc(x_19);
  lean_dec(x_15);
  x_21 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_21, 0, x_11);
  lean_ctor_set(x_21, 1, x_19);
  x_22 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_22, 0, x_21);
  lean_ctor_set(x_22, 1, x_20);
  return x_22;
  }
  }
  }
  lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  x_9 = lean_box(0);
  x_10 = l_Lean_mkConst(x_1, x_9);
  x_11 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_11, 0, x_10);
  x_12 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__2;
  x_13 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_13, 0, x_12);
  lean_ctor_set(x_13, 1, x_11);
  x_14 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__4;
  x_15 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_15, 0, x_13);
  lean_ctor_set(x_15, 1, x_14);
  x_16 = l_Lean_throwError___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___spec__2(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  return x_16;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("binop");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__6;
  x_2 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("paren");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__6;
  x_2 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__3;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go(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; uint8_t x_10; 
  x_9 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__2;
  lean_inc(x_1);
  x_10 = l_Lean_Syntax_isOfKind(x_1, x_9);
  if (x_10 == 0)
  {
  lean_object* x_11; uint8_t x_12; 
  x_11 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__4;
  lean_inc(x_1);
  x_12 = l_Lean_Syntax_isOfKind(x_1, x_11);
  if (x_12 == 0)
  {
  lean_object* x_13; uint8_t x_14; lean_object* x_15; 
  x_13 = lean_box(0);
  x_14 = 1;
  lean_inc(x_1);
  x_15 = l_Lean_Elab_Term_elabTerm(x_1, x_13, x_14, x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  if (lean_obj_tag(x_15) == 0)
  {
  uint8_t x_16; 
  x_16 = !lean_is_exclusive(x_15);
  if (x_16 == 0)
  {
  lean_object* x_17; lean_object* x_18; 
  x_17 = lean_ctor_get(x_15, 0);
  x_18 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_18, 0, x_1);
  lean_ctor_set(x_18, 1, x_17);
  lean_ctor_set(x_15, 0, x_18);
  return x_15;
  }
  else
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_19 = lean_ctor_get(x_15, 0);
  x_20 = lean_ctor_get(x_15, 1);
  lean_inc(x_20);
  lean_inc(x_19);
  lean_dec(x_15);
  x_21 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_21, 0, x_1);
  lean_ctor_set(x_21, 1, x_19);
  x_22 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_22, 0, x_21);
  lean_ctor_set(x_22, 1, x_20);
  return x_22;
  }
  }
  else
  {
  uint8_t x_23; 
  lean_dec(x_1);
  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_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; 
  x_27 = lean_unsigned_to_nat(1u);
  x_28 = l_Lean_Syntax_getArg(x_1, x_27);
  x_29 = l_Lean_nullKind;
  x_30 = lean_unsigned_to_nat(2u);
  lean_inc(x_28);
  x_31 = l_Lean_Syntax_isNodeOf(x_28, x_29, x_30);
  if (x_31 == 0)
  {
  lean_object* x_32; uint8_t x_33; lean_object* x_34; 
  lean_dec(x_28);
  x_32 = lean_box(0);
  x_33 = 1;
  lean_inc(x_1);
  x_34 = l_Lean_Elab_Term_elabTerm(x_1, x_32, x_33, x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  if (lean_obj_tag(x_34) == 0)
  {
  uint8_t x_35; 
  x_35 = !lean_is_exclusive(x_34);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_34, 0);
  x_37 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_37, 0, x_1);
  lean_ctor_set(x_37, 1, x_36);
  lean_ctor_set(x_34, 0, x_37);
  return x_34;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; 
  x_38 = lean_ctor_get(x_34, 0);
  x_39 = lean_ctor_get(x_34, 1);
  lean_inc(x_39);
  lean_inc(x_38);
  lean_dec(x_34);
  x_40 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_40, 0, x_1);
  lean_ctor_set(x_40, 1, x_38);
  x_41 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_41, 0, x_40);
  lean_ctor_set(x_41, 1, x_39);
  return x_41;
  }
  }
  else
  {
  uint8_t x_42; 
  lean_dec(x_1);
  x_42 = !lean_is_exclusive(x_34);
  if (x_42 == 0)
  {
  return x_34;
  }
  else
  {
  lean_object* x_43; lean_object* x_44; lean_object* x_45; 
  x_43 = lean_ctor_get(x_34, 0);
  x_44 = lean_ctor_get(x_34, 1);
  lean_inc(x_44);
  lean_inc(x_43);
  lean_dec(x_34);
  x_45 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_45, 0, x_43);
  lean_ctor_set(x_45, 1, x_44);
  return x_45;
  }
  }
  }
  else
  {
  lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; 
  x_46 = lean_unsigned_to_nat(0u);
  x_47 = l_Lean_Syntax_getArg(x_28, x_46);
  x_48 = l_Lean_Syntax_getArg(x_28, x_27);
  lean_dec(x_28);
  x_49 = l_Lean_Syntax_isNodeOf(x_48, x_29, x_46);
  if (x_49 == 0)
  {
  lean_object* x_50; uint8_t x_51; lean_object* x_52; 
  lean_dec(x_47);
  x_50 = lean_box(0);
  x_51 = 1;
  lean_inc(x_1);
  x_52 = l_Lean_Elab_Term_elabTerm(x_1, x_50, x_51, x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  if (lean_obj_tag(x_52) == 0)
  {
  uint8_t x_53; 
  x_53 = !lean_is_exclusive(x_52);
  if (x_53 == 0)
  {
  lean_object* x_54; lean_object* x_55; 
  x_54 = lean_ctor_get(x_52, 0);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_1);
  lean_ctor_set(x_55, 1, x_54);
  lean_ctor_set(x_52, 0, x_55);
  return x_52;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
  x_56 = lean_ctor_get(x_52, 0);
  x_57 = lean_ctor_get(x_52, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_52);
  x_58 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_58, 0, x_1);
  lean_ctor_set(x_58, 1, x_56);
  x_59 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_59, 0, x_58);
  lean_ctor_set(x_59, 1, x_57);
  return x_59;
  }
  }
  else
  {
  uint8_t x_60; 
  lean_dec(x_1);
  x_60 = !lean_is_exclusive(x_52);
  if (x_60 == 0)
  {
  return x_52;
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; 
  x_61 = lean_ctor_get(x_52, 0);
  x_62 = lean_ctor_get(x_52, 1);
  lean_inc(x_62);
  lean_inc(x_61);
  lean_dec(x_52);
  x_63 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_63, 0, x_61);
  lean_ctor_set(x_63, 1, x_62);
  return x_63;
  }
  }
  }
  else
  {
  lean_object* x_64; 
  lean_dec(x_1);
  x_64 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go(x_47, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  if (lean_obj_tag(x_64) == 0)
  {
  uint8_t x_65; 
  x_65 = !lean_is_exclusive(x_64);
  if (x_65 == 0)
  {
  return x_64;
  }
  else
  {
  lean_object* x_66; lean_object* x_67; lean_object* x_68; 
  x_66 = lean_ctor_get(x_64, 0);
  x_67 = lean_ctor_get(x_64, 1);
  lean_inc(x_67);
  lean_inc(x_66);
  lean_dec(x_64);
  x_68 = lean_alloc_ctor(0, 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; 
  x_69 = !lean_is_exclusive(x_64);
  if (x_69 == 0)
  {
  return x_64;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_64, 0);
  x_71 = lean_ctor_get(x_64, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_64);
  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;
  }
  }
  }
  }
  }
  }
  else
  {
  lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; 
  x_73 = lean_unsigned_to_nat(1u);
  x_74 = l_Lean_Syntax_getArg(x_1, x_73);
  x_75 = lean_unsigned_to_nat(2u);
  x_76 = l_Lean_Syntax_getArg(x_1, x_75);
  x_77 = lean_unsigned_to_nat(3u);
  x_78 = l_Lean_Syntax_getArg(x_1, x_77);
  x_79 = l_Lean_Elab_Term_elabBinRel___closed__1;
  x_80 = 0;
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  lean_inc(x_74);
  x_81 = l_Lean_Elab_Term_resolveId_x3f(x_74, x_79, x_80, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  if (lean_obj_tag(x_81) == 0)
  {
  lean_object* x_82; 
  x_82 = lean_ctor_get(x_81, 0);
  lean_inc(x_82);
  if (lean_obj_tag(x_82) == 0)
  {
  lean_object* x_83; lean_object* x_84; lean_object* x_85; 
  lean_dec(x_78);
  lean_dec(x_76);
  lean_dec(x_1);
  x_83 = lean_ctor_get(x_81, 1);
  lean_inc(x_83);
  lean_dec(x_81);
  x_84 = l_Lean_Syntax_getId(x_74);
  lean_dec(x_74);
  x_85 = l_Lean_throwUnknownConstant___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___spec__1(x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_83);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_85;
  }
  else
  {
  lean_object* x_86; lean_object* x_87; lean_object* x_88; 
  lean_dec(x_74);
  x_86 = lean_ctor_get(x_81, 1);
  lean_inc(x_86);
  lean_dec(x_81);
  x_87 = lean_ctor_get(x_82, 0);
  lean_inc(x_87);
  lean_dec(x_82);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_88 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go(x_76, x_2, x_3, x_4, x_5, x_6, x_7, x_86);
  if (lean_obj_tag(x_88) == 0)
  {
  lean_object* x_89; lean_object* x_90; lean_object* x_91; 
  x_89 = lean_ctor_get(x_88, 0);
  lean_inc(x_89);
  x_90 = lean_ctor_get(x_88, 1);
  lean_inc(x_90);
  lean_dec(x_88);
  x_91 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go(x_78, x_2, x_3, x_4, x_5, x_6, x_7, x_90);
  if (lean_obj_tag(x_91) == 0)
  {
  uint8_t x_92; 
  x_92 = !lean_is_exclusive(x_91);
  if (x_92 == 0)
  {
  lean_object* x_93; lean_object* x_94; 
  x_93 = lean_ctor_get(x_91, 0);
  x_94 = lean_alloc_ctor(1, 4, 0);
  lean_ctor_set(x_94, 0, x_1);
  lean_ctor_set(x_94, 1, x_87);
  lean_ctor_set(x_94, 2, x_89);
  lean_ctor_set(x_94, 3, x_93);
  lean_ctor_set(x_91, 0, x_94);
  return x_91;
  }
  else
  {
  lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; 
  x_95 = lean_ctor_get(x_91, 0);
  x_96 = lean_ctor_get(x_91, 1);
  lean_inc(x_96);
  lean_inc(x_95);
  lean_dec(x_91);
  x_97 = lean_alloc_ctor(1, 4, 0);
  lean_ctor_set(x_97, 0, x_1);
  lean_ctor_set(x_97, 1, x_87);
  lean_ctor_set(x_97, 2, x_89);
  lean_ctor_set(x_97, 3, x_95);
  x_98 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_98, 0, x_97);
  lean_ctor_set(x_98, 1, x_96);
  return x_98;
  }
  }
  else
  {
  uint8_t x_99; 
  lean_dec(x_89);
  lean_dec(x_87);
  lean_dec(x_1);
  x_99 = !lean_is_exclusive(x_91);
  if (x_99 == 0)
  {
  return x_91;
  }
  else
  {
  lean_object* x_100; lean_object* x_101; lean_object* x_102; 
  x_100 = lean_ctor_get(x_91, 0);
  x_101 = lean_ctor_get(x_91, 1);
  lean_inc(x_101);
  lean_inc(x_100);
  lean_dec(x_91);
  x_102 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_102, 0, x_100);
  lean_ctor_set(x_102, 1, x_101);
  return x_102;
  }
  }
  }
  else
  {
  uint8_t x_103; 
  lean_dec(x_87);
  lean_dec(x_78);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_103 = !lean_is_exclusive(x_88);
  if (x_103 == 0)
  {
  return x_88;
  }
  else
  {
  lean_object* x_104; lean_object* x_105; lean_object* x_106; 
  x_104 = lean_ctor_get(x_88, 0);
  x_105 = lean_ctor_get(x_88, 1);
  lean_inc(x_105);
  lean_inc(x_104);
  lean_dec(x_88);
  x_106 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_106, 0, x_104);
  lean_ctor_set(x_106, 1, x_105);
  return x_106;
  }
  }
  }
  }
  else
  {
  uint8_t x_107; 
  lean_dec(x_78);
  lean_dec(x_76);
  lean_dec(x_74);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_107 = !lean_is_exclusive(x_81);
  if (x_107 == 0)
  {
  return x_81;
  }
  else
  {
  lean_object* x_108; lean_object* x_109; lean_object* x_110; 
  x_108 = lean_ctor_get(x_81, 0);
  x_109 = lean_ctor_get(x_81, 1);
  lean_inc(x_109);
  lean_inc(x_108);
  lean_dec(x_81);
  x_110 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_110, 0, x_108);
  lean_ctor_set(x_110, 1, x_109);
  return x_110;
  }
  }
  }
  }
  }
  lean_object* l_Lean_throwError___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_throwError___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_9;
  }
  }
  lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_throwUnknownConstant___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_9;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; 
  x_9 = lean_alloc_closure((void*)(l_Lean_expandMacros), 3, 1);
  lean_closure_set(x_9, 0, x_1);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_10 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_elabLetDeclCore___spec__1(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  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);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_13 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_12);
  if (lean_obj_tag(x_13) == 0)
  {
  lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; 
  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 = 1;
  x_17 = 0;
  x_18 = lean_box(0);
  x_19 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_16, x_17, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_15);
  if (lean_obj_tag(x_19) == 0)
  {
  uint8_t x_20; 
  x_20 = !lean_is_exclusive(x_19);
  if (x_20 == 0)
  {
  lean_object* x_21; 
  x_21 = lean_ctor_get(x_19, 0);
  lean_dec(x_21);
  lean_ctor_set(x_19, 0, x_14);
  return x_19;
  }
  else
  {
  lean_object* x_22; lean_object* x_23; 
  x_22 = lean_ctor_get(x_19, 1);
  lean_inc(x_22);
  lean_dec(x_19);
  x_23 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_23, 0, x_14);
  lean_ctor_set(x_23, 1, x_22);
  return x_23;
  }
  }
  else
  {
  uint8_t x_24; 
  lean_dec(x_14);
  x_24 = !lean_is_exclusive(x_19);
  if (x_24 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_19, 0);
  x_26 = lean_ctor_get(x_19, 1);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_19);
  x_27 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_27, 0, x_25);
  lean_ctor_set(x_27, 1, x_26);
  return x_27;
  }
  }
  }
  else
  {
  uint8_t x_28; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_28 = !lean_is_exclusive(x_13);
  if (x_28 == 0)
  {
  return x_13;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_13, 0);
  x_30 = lean_ctor_get(x_13, 1);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_13);
  x_31 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_31, 0, x_29);
  lean_ctor_set(x_31, 1, x_30);
  return x_31;
  }
  }
  }
  else
  {
  uint8_t x_32; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_32 = !lean_is_exclusive(x_10);
  if (x_32 == 0)
  {
  return x_10;
  }
  else
  {
  lean_object* x_33; lean_object* x_34; lean_object* x_35; 
  x_33 = lean_ctor_get(x_10, 0);
  x_34 = lean_ctor_get(x_10, 1);
  lean_inc(x_34);
  lean_inc(x_33);
  lean_dec(x_10);
  x_35 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_35, 0, x_33);
  lean_ctor_set(x_35, 1, x_34);
  return x_35;
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe_match__1___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 0:
  {
  lean_object* x_5; lean_object* x_6; 
  lean_dec(x_4);
  lean_dec(x_2);
  x_5 = lean_box(0);
  x_6 = lean_apply_1(x_3, x_5);
  return x_6;
  }
  case 1:
  {
  lean_object* x_7; lean_object* x_8; 
  lean_dec(x_4);
  lean_dec(x_3);
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_apply_1(x_2, x_7);
  return x_8;
  }
  default: 
  {
  lean_object* x_9; lean_object* x_10; 
  lean_dec(x_3);
  lean_dec(x_2);
  x_9 = lean_box(0);
  x_10 = lean_apply_1(x_4, x_9);
  return x_10;
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe_match__1___rarg), 4, 0);
  return x_2;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("CoeHTCT");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; uint8_t x_11; 
  x_10 = lean_st_ref_get(x_8, x_9);
  x_11 = !lean_is_exclusive(x_10);
  if (x_11 == 0)
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
  x_12 = lean_ctor_get(x_10, 0);
  x_13 = lean_ctor_get(x_10, 1);
  x_14 = lean_ctor_get(x_12, 0);
  lean_inc(x_14);
  lean_dec(x_12);
  x_15 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__2;
  x_16 = l_Lean_Environment_contains(x_14, x_15);
  if (x_16 == 0)
  {
  uint8_t x_17; lean_object* x_18; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_2);
  lean_dec(x_1);
  x_17 = 0;
  x_18 = lean_box(x_17);
  lean_ctor_set(x_10, 0, x_18);
  return x_10;
  }
  else
  {
  lean_object* x_19; 
  lean_free_object(x_10);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_1);
  x_19 = l_Lean_Meta_getLevel(x_1, x_5, x_6, x_7, x_8, x_13);
  if (lean_obj_tag(x_19) == 0)
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  x_21 = lean_ctor_get(x_19, 1);
  lean_inc(x_21);
  lean_dec(x_19);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_2);
  x_22 = l_Lean_Meta_getLevel(x_2, x_5, x_6, x_7, x_8, x_21);
  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; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  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 = lean_box(0);
  x_26 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_26, 0, x_23);
  lean_ctor_set(x_26, 1, x_25);
  x_27 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_27, 0, x_20);
  lean_ctor_set(x_27, 1, x_26);
  x_28 = l_Lean_mkConst(x_15, x_27);
  x_29 = l_Lean_Elab_Term_elabBinRel___lambda__3___closed__2;
  x_30 = lean_array_push(x_29, x_1);
  x_31 = lean_array_push(x_30, x_2);
  x_32 = l_Lean_mkAppN(x_28, x_31);
  x_33 = lean_ctor_get(x_7, 0);
  lean_inc(x_33);
  x_34 = l_Lean_Elab_Term_maxCoeSize;
  x_35 = l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_218____spec__1(x_33, x_34);
  lean_dec(x_33);
  x_36 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_36, 0, x_35);
  x_37 = l_Lean_Meta_trySynthInstance(x_32, x_36, x_5, x_6, x_7, x_8, x_24);
  if (lean_obj_tag(x_37) == 0)
  {
  lean_object* x_38; 
  x_38 = lean_ctor_get(x_37, 0);
  lean_inc(x_38);
  if (lean_obj_tag(x_38) == 1)
  {
  uint8_t x_39; 
  lean_dec(x_38);
  x_39 = !lean_is_exclusive(x_37);
  if (x_39 == 0)
  {
  lean_object* x_40; uint8_t x_41; lean_object* x_42; 
  x_40 = lean_ctor_get(x_37, 0);
  lean_dec(x_40);
  x_41 = 1;
  x_42 = lean_box(x_41);
  lean_ctor_set(x_37, 0, x_42);
  return x_37;
  }
  else
  {
  lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; 
  x_43 = lean_ctor_get(x_37, 1);
  lean_inc(x_43);
  lean_dec(x_37);
  x_44 = 1;
  x_45 = lean_box(x_44);
  x_46 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_46, 0, x_45);
  lean_ctor_set(x_46, 1, x_43);
  return x_46;
  }
  }
  else
  {
  uint8_t x_47; 
  lean_dec(x_38);
  x_47 = !lean_is_exclusive(x_37);
  if (x_47 == 0)
  {
  lean_object* x_48; uint8_t x_49; lean_object* x_50; 
  x_48 = lean_ctor_get(x_37, 0);
  lean_dec(x_48);
  x_49 = 0;
  x_50 = lean_box(x_49);
  lean_ctor_set(x_37, 0, x_50);
  return x_37;
  }
  else
  {
  lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; 
  x_51 = lean_ctor_get(x_37, 1);
  lean_inc(x_51);
  lean_dec(x_37);
  x_52 = 0;
  x_53 = lean_box(x_52);
  x_54 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_54, 0, x_53);
  lean_ctor_set(x_54, 1, x_51);
  return x_54;
  }
  }
  }
  else
  {
  uint8_t x_55; 
  x_55 = !lean_is_exclusive(x_37);
  if (x_55 == 0)
  {
  return x_37;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; 
  x_56 = lean_ctor_get(x_37, 0);
  x_57 = lean_ctor_get(x_37, 1);
  lean_inc(x_57);
  lean_inc(x_56);
  lean_dec(x_37);
  x_58 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_58, 0, x_56);
  lean_ctor_set(x_58, 1, x_57);
  return x_58;
  }
  }
  }
  else
  {
  uint8_t x_59; 
  lean_dec(x_20);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_2);
  lean_dec(x_1);
  x_59 = !lean_is_exclusive(x_22);
  if (x_59 == 0)
  {
  return x_22;
  }
  else
  {
  lean_object* x_60; lean_object* x_61; lean_object* x_62; 
  x_60 = lean_ctor_get(x_22, 0);
  x_61 = lean_ctor_get(x_22, 1);
  lean_inc(x_61);
  lean_inc(x_60);
  lean_dec(x_22);
  x_62 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_62, 0, x_60);
  lean_ctor_set(x_62, 1, x_61);
  return x_62;
  }
  }
  }
  else
  {
  uint8_t x_63; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_2);
  lean_dec(x_1);
  x_63 = !lean_is_exclusive(x_19);
  if (x_63 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_64; lean_object* x_65; lean_object* x_66; 
  x_64 = lean_ctor_get(x_19, 0);
  x_65 = lean_ctor_get(x_19, 1);
  lean_inc(x_65);
  lean_inc(x_64);
  lean_dec(x_19);
  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_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; 
  x_67 = lean_ctor_get(x_10, 0);
  x_68 = lean_ctor_get(x_10, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_10);
  x_69 = lean_ctor_get(x_67, 0);
  lean_inc(x_69);
  lean_dec(x_67);
  x_70 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__2;
  x_71 = l_Lean_Environment_contains(x_69, x_70);
  if (x_71 == 0)
  {
  uint8_t x_72; lean_object* x_73; lean_object* x_74; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_2);
  lean_dec(x_1);
  x_72 = 0;
  x_73 = lean_box(x_72);
  x_74 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_74, 0, x_73);
  lean_ctor_set(x_74, 1, x_68);
  return x_74;
  }
  else
  {
  lean_object* x_75; 
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_1);
  x_75 = l_Lean_Meta_getLevel(x_1, x_5, x_6, x_7, x_8, x_68);
  if (lean_obj_tag(x_75) == 0)
  {
  lean_object* x_76; lean_object* x_77; lean_object* x_78; 
  x_76 = lean_ctor_get(x_75, 0);
  lean_inc(x_76);
  x_77 = lean_ctor_get(x_75, 1);
  lean_inc(x_77);
  lean_dec(x_75);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_2);
  x_78 = l_Lean_Meta_getLevel(x_2, x_5, x_6, x_7, x_8, x_77);
  if (lean_obj_tag(x_78) == 0)
  {
  lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; 
  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_81 = lean_box(0);
  x_82 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_82, 0, x_79);
  lean_ctor_set(x_82, 1, x_81);
  x_83 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_83, 0, x_76);
  lean_ctor_set(x_83, 1, x_82);
  x_84 = l_Lean_mkConst(x_70, x_83);
  x_85 = l_Lean_Elab_Term_elabBinRel___lambda__3___closed__2;
  x_86 = lean_array_push(x_85, x_1);
  x_87 = lean_array_push(x_86, x_2);
  x_88 = l_Lean_mkAppN(x_84, x_87);
  x_89 = lean_ctor_get(x_7, 0);
  lean_inc(x_89);
  x_90 = l_Lean_Elab_Term_maxCoeSize;
  x_91 = l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_218____spec__1(x_89, x_90);
  lean_dec(x_89);
  x_92 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_92, 0, x_91);
  x_93 = l_Lean_Meta_trySynthInstance(x_88, x_92, x_5, x_6, x_7, x_8, x_80);
  if (lean_obj_tag(x_93) == 0)
  {
  lean_object* x_94; 
  x_94 = lean_ctor_get(x_93, 0);
  lean_inc(x_94);
  if (lean_obj_tag(x_94) == 1)
  {
  lean_object* x_95; lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; 
  lean_dec(x_94);
  x_95 = lean_ctor_get(x_93, 1);
  lean_inc(x_95);
  if (lean_is_exclusive(x_93)) {
   lean_ctor_release(x_93, 0);
   lean_ctor_release(x_93, 1);
   x_96 = x_93;
  } else {
   lean_dec_ref(x_93);
   x_96 = lean_box(0);
  }
  x_97 = 1;
  x_98 = lean_box(x_97);
  if (lean_is_scalar(x_96)) {
   x_99 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_99 = x_96;
  }
  lean_ctor_set(x_99, 0, x_98);
  lean_ctor_set(x_99, 1, x_95);
  return x_99;
  }
  else
  {
  lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; 
  lean_dec(x_94);
  x_100 = lean_ctor_get(x_93, 1);
  lean_inc(x_100);
  if (lean_is_exclusive(x_93)) {
   lean_ctor_release(x_93, 0);
   lean_ctor_release(x_93, 1);
   x_101 = x_93;
  } else {
   lean_dec_ref(x_93);
   x_101 = lean_box(0);
  }
  x_102 = 0;
  x_103 = lean_box(x_102);
  if (lean_is_scalar(x_101)) {
   x_104 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_104 = x_101;
  }
  lean_ctor_set(x_104, 0, x_103);
  lean_ctor_set(x_104, 1, x_100);
  return x_104;
  }
  }
  else
  {
  lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; 
  x_105 = lean_ctor_get(x_93, 0);
  lean_inc(x_105);
  x_106 = lean_ctor_get(x_93, 1);
  lean_inc(x_106);
  if (lean_is_exclusive(x_93)) {
   lean_ctor_release(x_93, 0);
   lean_ctor_release(x_93, 1);
   x_107 = x_93;
  } else {
   lean_dec_ref(x_93);
   x_107 = lean_box(0);
  }
  if (lean_is_scalar(x_107)) {
   x_108 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_108 = x_107;
  }
  lean_ctor_set(x_108, 0, x_105);
  lean_ctor_set(x_108, 1, x_106);
  return x_108;
  }
  }
  else
  {
  lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; 
  lean_dec(x_76);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_2);
  lean_dec(x_1);
  x_109 = lean_ctor_get(x_78, 0);
  lean_inc(x_109);
  x_110 = lean_ctor_get(x_78, 1);
  lean_inc(x_110);
  if (lean_is_exclusive(x_78)) {
   lean_ctor_release(x_78, 0);
   lean_ctor_release(x_78, 1);
   x_111 = x_78;
  } else {
   lean_dec_ref(x_78);
   x_111 = lean_box(0);
  }
  if (lean_is_scalar(x_111)) {
   x_112 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_112 = x_111;
  }
  lean_ctor_set(x_112, 0, x_109);
  lean_ctor_set(x_112, 1, x_110);
  return x_112;
  }
  }
  else
  {
  lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_2);
  lean_dec(x_1);
  x_113 = lean_ctor_get(x_75, 0);
  lean_inc(x_113);
  x_114 = lean_ctor_get(x_75, 1);
  lean_inc(x_114);
  if (lean_is_exclusive(x_75)) {
   lean_ctor_release(x_75, 0);
   lean_ctor_release(x_75, 1);
   x_115 = x_75;
  } else {
   lean_dec_ref(x_75);
   x_115 = lean_box(0);
  }
  if (lean_is_scalar(x_115)) {
   x_116 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_116 = x_115;
  }
  lean_ctor_set(x_116, 0, x_113);
  lean_ctor_set(x_116, 1, x_114);
  return x_116;
  }
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; 
  x_10 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_10;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_AnalyzeResult_max_x3f___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  static uint8_t _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_AnalyzeResult_hasUncomparable___default() {
  _start:
  {
  uint8_t x_1; 
  x_1 = 0;
  return x_1;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow_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) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 2:
  {
  lean_object* x_7; uint64_t x_8; lean_object* x_9; lean_object* x_10; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*1);
  lean_dec(x_1);
  x_9 = lean_box_uint64(x_8);
  x_10 = lean_apply_2(x_2, x_7, x_9);
  return x_10;
  }
  case 5:
  {
  lean_object* x_11; lean_object* x_12; uint64_t x_13; lean_object* x_14; lean_object* x_15; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_2);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  x_12 = lean_ctor_get(x_1, 1);
  lean_inc(x_12);
  x_13 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
  lean_dec(x_1);
  x_14 = lean_box_uint64(x_13);
  x_15 = lean_apply_3(x_3, x_11, x_12, x_14);
  return x_15;
  }
  case 8:
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint64_t x_20; lean_object* x_21; lean_object* x_22; 
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_3);
  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);
  x_18 = lean_ctor_get(x_1, 2);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_1, 3);
  lean_inc(x_19);
  x_20 = lean_ctor_get_uint64(x_1, sizeof(void*)*4);
  lean_dec(x_1);
  x_21 = lean_box_uint64(x_20);
  x_22 = lean_apply_5(x_4, x_16, x_17, x_18, x_19, x_21);
  return x_22;
  }
  case 10:
  {
  lean_object* x_23; lean_object* x_24; uint64_t x_25; lean_object* x_26; lean_object* x_27; 
  lean_dec(x_6);
  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_uint64(x_1, sizeof(void*)*2);
  lean_dec(x_1);
  x_26 = lean_box_uint64(x_25);
  x_27 = lean_apply_3(x_5, x_23, x_24, x_26);
  return x_27;
  }
  default: 
  {
  lean_object* x_28; 
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_28 = lean_apply_1(x_6, x_1);
  return x_28;
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow_match__1___rarg), 6, 0);
  return x_2;
  }
  }
  uint8_t l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow(lean_object* x_1) {
  _start:
  {
  switch (lean_obj_tag(x_1)) {
  case 2:
  {
  uint8_t x_2; 
  x_2 = 1;
  return x_2;
  }
  case 5:
  {
  lean_object* x_3; 
  x_3 = lean_ctor_get(x_1, 0);
  x_1 = x_3;
  goto _start;
  }
  case 8:
  {
  lean_object* x_5; 
  x_5 = lean_ctor_get(x_1, 3);
  x_1 = x_5;
  goto _start;
  }
  case 10:
  {
  lean_object* x_7; 
  x_7 = lean_ctor_get(x_1, 1);
  x_1 = x_7;
  goto _start;
  }
  default: 
  {
  uint8_t x_9; 
  x_9 = 0;
  return x_9;
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow(x_1);
  lean_dec(x_1);
  x_3 = lean_box(x_2);
  return x_3;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  lean_dec(x_2);
  x_4 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  x_5 = lean_ctor_get(x_1, 1);
  lean_inc(x_5);
  lean_dec(x_1);
  x_6 = lean_apply_2(x_3, x_4, x_5);
  return x_6;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
  lean_dec(x_3);
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  x_8 = lean_ctor_get(x_1, 1);
  lean_inc(x_8);
  x_9 = lean_ctor_get(x_1, 2);
  lean_inc(x_9);
  x_10 = lean_ctor_get(x_1, 3);
  lean_inc(x_10);
  lean_dec(x_1);
  x_11 = lean_apply_4(x_2, x_7, x_8, x_9, x_10);
  return x_11;
  }
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; lean_object* x_11; 
  x_10 = lean_apply_3(x_1, x_2, x_3, x_4);
  x_11 = l___private_Lean_Meta_Basic_0__Lean_Meta_withNewMCtxDepthImp___rarg(x_10, x_5, x_6, x_7, x_8, x_9);
  if (lean_obj_tag(x_11) == 0)
  {
  uint8_t x_12; 
  x_12 = !lean_is_exclusive(x_11);
  if (x_12 == 0)
  {
  return x_11;
  }
  else
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_13 = lean_ctor_get(x_11, 0);
  x_14 = lean_ctor_get(x_11, 1);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_dec(x_11);
  x_15 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_15, 0, x_13);
  lean_ctor_set(x_15, 1, x_14);
  return x_15;
  }
  }
  else
  {
  uint8_t x_16; 
  x_16 = !lean_is_exclusive(x_11);
  if (x_16 == 0)
  {
  return x_11;
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_17 = lean_ctor_get(x_11, 0);
  x_18 = lean_ctor_get(x_11, 1);
  lean_inc(x_18);
  lean_inc(x_17);
  lean_dec(x_11);
  x_19 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_19, 0, x_17);
  lean_ctor_set(x_19, 1, x_18);
  return x_19;
  }
  }
  }
  }
  lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__1___rarg), 9, 0);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("[");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("] ");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__3;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; lean_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; uint8_t x_20; 
  x_11 = lean_ctor_get(x_8, 3);
  x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_6, x_7, x_8, x_9, 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 = l_Lean_addTrace_addTraceOptions(x_13);
  x_16 = lean_st_ref_take(x_9, x_14);
  x_17 = lean_ctor_get(x_16, 0);
  lean_inc(x_17);
  x_18 = lean_ctor_get(x_17, 3);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_16, 1);
  lean_inc(x_19);
  lean_dec(x_16);
  x_20 = !lean_is_exclusive(x_17);
  if (x_20 == 0)
  {
  lean_object* x_21; uint8_t x_22; 
  x_21 = lean_ctor_get(x_17, 3);
  lean_dec(x_21);
  x_22 = !lean_is_exclusive(x_18);
  if (x_22 == 0)
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; 
  x_23 = lean_ctor_get(x_18, 0);
  lean_inc(x_1);
  x_24 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_24, 0, x_1);
  x_25 = l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__2;
  x_26 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_26, 0, x_25);
  lean_ctor_set(x_26, 1, x_24);
  x_27 = l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__4;
  x_28 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  x_29 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_29, 0, x_28);
  lean_ctor_set(x_29, 1, x_15);
  x_30 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_31 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_31, 0, x_29);
  lean_ctor_set(x_31, 1, x_30);
  x_32 = lean_alloc_ctor(11, 2, 0);
  lean_ctor_set(x_32, 0, x_1);
  lean_ctor_set(x_32, 1, x_31);
  lean_inc(x_11);
  x_33 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_33, 0, x_11);
  lean_ctor_set(x_33, 1, x_32);
  x_34 = l_Std_PersistentArray_push___rarg(x_23, x_33);
  lean_ctor_set(x_18, 0, x_34);
  x_35 = lean_st_ref_set(x_9, x_17, x_19);
  x_36 = !lean_is_exclusive(x_35);
  if (x_36 == 0)
  {
  lean_object* x_37; lean_object* x_38; 
  x_37 = lean_ctor_get(x_35, 0);
  lean_dec(x_37);
  x_38 = lean_box(0);
  lean_ctor_set(x_35, 0, x_38);
  return x_35;
  }
  else
  {
  lean_object* x_39; lean_object* x_40; lean_object* x_41; 
  x_39 = lean_ctor_get(x_35, 1);
  lean_inc(x_39);
  lean_dec(x_35);
  x_40 = lean_box(0);
  x_41 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_41, 0, x_40);
  lean_ctor_set(x_41, 1, x_39);
  return x_41;
  }
  }
  else
  {
  uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; 
  x_42 = lean_ctor_get_uint8(x_18, sizeof(void*)*1);
  x_43 = lean_ctor_get(x_18, 0);
  lean_inc(x_43);
  lean_dec(x_18);
  lean_inc(x_1);
  x_44 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_44, 0, x_1);
  x_45 = l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__2;
  x_46 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_46, 0, x_45);
  lean_ctor_set(x_46, 1, x_44);
  x_47 = l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__4;
  x_48 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_48, 0, x_46);
  lean_ctor_set(x_48, 1, x_47);
  x_49 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_49, 0, x_48);
  lean_ctor_set(x_49, 1, x_15);
  x_50 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_51 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_51, 0, x_49);
  lean_ctor_set(x_51, 1, x_50);
  x_52 = lean_alloc_ctor(11, 2, 0);
  lean_ctor_set(x_52, 0, x_1);
  lean_ctor_set(x_52, 1, x_51);
  lean_inc(x_11);
  x_53 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_53, 0, x_11);
  lean_ctor_set(x_53, 1, x_52);
  x_54 = l_Std_PersistentArray_push___rarg(x_43, x_53);
  x_55 = lean_alloc_ctor(0, 1, 1);
  lean_ctor_set(x_55, 0, x_54);
  lean_ctor_set_uint8(x_55, sizeof(void*)*1, x_42);
  lean_ctor_set(x_17, 3, x_55);
  x_56 = lean_st_ref_set(x_9, x_17, x_19);
  x_57 = lean_ctor_get(x_56, 1);
  lean_inc(x_57);
  if (lean_is_exclusive(x_56)) {
   lean_ctor_release(x_56, 0);
   lean_ctor_release(x_56, 1);
   x_58 = x_56;
  } else {
   lean_dec_ref(x_56);
   x_58 = lean_box(0);
  }
  x_59 = lean_box(0);
  if (lean_is_scalar(x_58)) {
   x_60 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_60 = x_58;
  }
  lean_ctor_set(x_60, 0, x_59);
  lean_ctor_set(x_60, 1, x_57);
  return x_60;
  }
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; 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; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; 
  x_61 = lean_ctor_get(x_17, 0);
  x_62 = lean_ctor_get(x_17, 1);
  x_63 = lean_ctor_get(x_17, 2);
  lean_inc(x_63);
  lean_inc(x_62);
  lean_inc(x_61);
  lean_dec(x_17);
  x_64 = lean_ctor_get_uint8(x_18, sizeof(void*)*1);
  x_65 = lean_ctor_get(x_18, 0);
  lean_inc(x_65);
  if (lean_is_exclusive(x_18)) {
   lean_ctor_release(x_18, 0);
   x_66 = x_18;
  } else {
   lean_dec_ref(x_18);
   x_66 = lean_box(0);
  }
  lean_inc(x_1);
  x_67 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_67, 0, x_1);
  x_68 = l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__2;
  x_69 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_69, 0, x_68);
  lean_ctor_set(x_69, 1, x_67);
  x_70 = l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__4;
  x_71 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_71, 0, x_69);
  lean_ctor_set(x_71, 1, x_70);
  x_72 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_72, 0, x_71);
  lean_ctor_set(x_72, 1, x_15);
  x_73 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  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 = lean_alloc_ctor(11, 2, 0);
  lean_ctor_set(x_75, 0, x_1);
  lean_ctor_set(x_75, 1, x_74);
  lean_inc(x_11);
  x_76 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_76, 0, x_11);
  lean_ctor_set(x_76, 1, x_75);
  x_77 = l_Std_PersistentArray_push___rarg(x_65, x_76);
  if (lean_is_scalar(x_66)) {
   x_78 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_78 = x_66;
  }
  lean_ctor_set(x_78, 0, x_77);
  lean_ctor_set_uint8(x_78, sizeof(void*)*1, x_64);
  x_79 = lean_alloc_ctor(0, 4, 0);
  lean_ctor_set(x_79, 0, x_61);
  lean_ctor_set(x_79, 1, x_62);
  lean_ctor_set(x_79, 2, x_63);
  lean_ctor_set(x_79, 3, x_78);
  x_80 = lean_st_ref_set(x_9, x_79, x_19);
  x_81 = lean_ctor_get(x_80, 1);
  lean_inc(x_81);
  if (lean_is_exclusive(x_80)) {
   lean_ctor_release(x_80, 0);
   lean_ctor_release(x_80, 1);
   x_82 = x_80;
  } else {
   lean_dec_ref(x_80);
   x_82 = lean_box(0);
  }
  x_83 = lean_box(0);
  if (lean_is_scalar(x_82)) {
   x_84 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_84 = x_82;
  }
  lean_ctor_set(x_84, 0, x_83);
  lean_ctor_set(x_84, 1, x_81);
  return x_84;
  }
  }
  }
  lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; 
  x_10 = lean_ctor_get(x_7, 0);
  x_11 = l_Lean_checkTraceOption(x_10, x_1);
  x_12 = lean_box(x_11);
  x_13 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_13, 0, x_12);
  lean_ctor_set(x_13, 1, x_9);
  return x_13;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; 
  x_10 = l_Lean_Meta_isExprDefEqGuarded(x_1, x_2, x_5, x_6, x_7, x_8, x_9);
  return x_10;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
  x_10 = lean_st_ref_get(x_8, x_9);
  x_11 = lean_ctor_get(x_10, 1);
  lean_inc(x_11);
  lean_dec(x_10);
  x_12 = lean_st_ref_take(x_2, x_11);
  x_13 = lean_ctor_get(x_12, 0);
  lean_inc(x_13);
  x_14 = lean_ctor_get(x_12, 1);
  lean_inc(x_14);
  lean_dec(x_12);
  x_15 = !lean_is_exclusive(x_13);
  if (x_15 == 0)
  {
  uint8_t x_16; lean_object* x_17; uint8_t x_18; 
  x_16 = 1;
  lean_ctor_set_uint8(x_13, sizeof(void*)*1, x_16);
  x_17 = lean_st_ref_set(x_2, x_13, x_14);
  x_18 = !lean_is_exclusive(x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; 
  x_19 = lean_ctor_get(x_17, 0);
  lean_dec(x_19);
  x_20 = lean_box(0);
  lean_ctor_set(x_17, 0, x_20);
  return x_17;
  }
  else
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_21 = lean_ctor_get(x_17, 1);
  lean_inc(x_21);
  lean_dec(x_17);
  x_22 = lean_box(0);
  x_23 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_23, 0, x_22);
  lean_ctor_set(x_23, 1, x_21);
  return x_23;
  }
  }
  else
  {
  lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_24 = lean_ctor_get(x_13, 0);
  lean_inc(x_24);
  lean_dec(x_13);
  x_25 = 1;
  x_26 = lean_alloc_ctor(0, 1, 1);
  lean_ctor_set(x_26, 0, x_24);
  lean_ctor_set_uint8(x_26, sizeof(void*)*1, x_25);
  x_27 = lean_st_ref_set(x_2, x_26, x_14);
  x_28 = lean_ctor_get(x_27, 1);
  lean_inc(x_28);
  if (lean_is_exclusive(x_27)) {
   lean_ctor_release(x_27, 0);
   lean_ctor_release(x_27, 1);
   x_29 = x_27;
  } else {
   lean_dec_ref(x_27);
   x_29 = lean_box(0);
  }
  x_30 = lean_box(0);
  if (lean_is_scalar(x_29)) {
   x_31 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_31 = x_29;
  }
  lean_ctor_set(x_31, 0, x_30);
  lean_ctor_set(x_31, 1, x_28);
  return x_31;
  }
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__9;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__1;
  x_2 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__2___boxed), 9, 0);
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__4() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("uncomparable types: ");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__5() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__4;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__6() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string(", ");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__7() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__6;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
  x_10 = lean_st_ref_get(x_8, x_9);
  x_11 = lean_ctor_get(x_10, 1);
  lean_inc(x_11);
  lean_dec(x_10);
  x_12 = lean_st_ref_get(x_2, x_11);
  x_13 = lean_ctor_get(x_12, 0);
  lean_inc(x_13);
  x_14 = lean_ctor_get_uint8(x_13, sizeof(void*)*1);
  lean_dec(x_13);
  if (x_14 == 0)
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_15 = lean_ctor_get(x_12, 1);
  lean_inc(x_15);
  lean_dec(x_12);
  x_16 = lean_ctor_get(x_1, 1);
  lean_inc(x_16);
  lean_dec(x_1);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_17 = lean_infer_type(x_16, x_5, x_6, x_7, x_8, x_15);
  if (lean_obj_tag(x_17) == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_18 = lean_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_20 = l_Lean_Meta_instantiateMVars(x_18, x_5, x_6, x_7, x_8, x_19);
  if (lean_obj_tag(x_20) == 0)
  {
  uint8_t x_21; 
  x_21 = !lean_is_exclusive(x_20);
  if (x_21 == 0)
  {
  lean_object* x_22; lean_object* x_23; uint8_t x_24; 
  x_22 = lean_ctor_get(x_20, 0);
  x_23 = lean_ctor_get(x_20, 1);
  x_24 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow(x_22);
  if (x_24 == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
  lean_free_object(x_20);
  x_25 = lean_st_ref_get(x_8, x_23);
  x_26 = lean_ctor_get(x_25, 1);
  lean_inc(x_26);
  lean_dec(x_25);
  x_27 = lean_st_ref_get(x_2, x_26);
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  x_29 = lean_ctor_get(x_28, 0);
  lean_inc(x_29);
  lean_dec(x_28);
  if (lean_obj_tag(x_29) == 0)
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_30 = lean_ctor_get(x_27, 1);
  lean_inc(x_30);
  lean_dec(x_27);
  x_31 = lean_st_ref_get(x_8, x_30);
  lean_dec(x_8);
  x_32 = lean_ctor_get(x_31, 1);
  lean_inc(x_32);
  lean_dec(x_31);
  x_33 = lean_st_ref_take(x_2, x_32);
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  x_35 = lean_ctor_get(x_33, 1);
  lean_inc(x_35);
  lean_dec(x_33);
  x_36 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_36, 0, x_22);
  x_37 = !lean_is_exclusive(x_34);
  if (x_37 == 0)
  {
  lean_object* x_38; lean_object* x_39; uint8_t x_40; 
  x_38 = lean_ctor_get(x_34, 0);
  lean_dec(x_38);
  lean_ctor_set(x_34, 0, x_36);
  x_39 = lean_st_ref_set(x_2, x_34, x_35);
  lean_dec(x_2);
  x_40 = !lean_is_exclusive(x_39);
  if (x_40 == 0)
  {
  lean_object* x_41; lean_object* x_42; 
  x_41 = lean_ctor_get(x_39, 0);
  lean_dec(x_41);
  x_42 = lean_box(0);
  lean_ctor_set(x_39, 0, x_42);
  return x_39;
  }
  else
  {
  lean_object* x_43; lean_object* x_44; lean_object* x_45; 
  x_43 = lean_ctor_get(x_39, 1);
  lean_inc(x_43);
  lean_dec(x_39);
  x_44 = lean_box(0);
  x_45 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_45, 0, x_44);
  lean_ctor_set(x_45, 1, x_43);
  return x_45;
  }
  }
  else
  {
  uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
  x_46 = lean_ctor_get_uint8(x_34, sizeof(void*)*1);
  lean_dec(x_34);
  x_47 = lean_alloc_ctor(0, 1, 1);
  lean_ctor_set(x_47, 0, x_36);
  lean_ctor_set_uint8(x_47, sizeof(void*)*1, x_46);
  x_48 = lean_st_ref_set(x_2, x_47, x_35);
  lean_dec(x_2);
  x_49 = lean_ctor_get(x_48, 1);
  lean_inc(x_49);
  if (lean_is_exclusive(x_48)) {
   lean_ctor_release(x_48, 0);
   lean_ctor_release(x_48, 1);
   x_50 = x_48;
  } else {
   lean_dec_ref(x_48);
   x_50 = lean_box(0);
  }
  x_51 = lean_box(0);
  if (lean_is_scalar(x_50)) {
   x_52 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_52 = x_50;
  }
  lean_ctor_set(x_52, 0, x_51);
  lean_ctor_set(x_52, 1, x_49);
  return x_52;
  }
  }
  else
  {
  lean_object* x_53; uint8_t x_54; 
  x_53 = lean_ctor_get(x_27, 1);
  lean_inc(x_53);
  lean_dec(x_27);
  x_54 = !lean_is_exclusive(x_29);
  if (x_54 == 0)
  {
  lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; 
  x_55 = lean_ctor_get(x_29, 0);
  lean_inc(x_22);
  lean_inc(x_55);
  x_56 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__1___boxed), 9, 2);
  lean_closure_set(x_56, 0, x_55);
  lean_closure_set(x_56, 1, x_22);
  x_57 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
  lean_closure_set(x_57, 0, x_56);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_58 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__1___rarg(x_57, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_53);
  if (lean_obj_tag(x_58) == 0)
  {
  lean_object* x_59; uint8_t x_60; 
  x_59 = lean_ctor_get(x_58, 0);
  lean_inc(x_59);
  x_60 = lean_unbox(x_59);
  lean_dec(x_59);
  if (x_60 == 0)
  {
  lean_object* x_61; lean_object* x_62; 
  x_61 = lean_ctor_get(x_58, 1);
  lean_inc(x_61);
  lean_dec(x_58);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_55);
  lean_inc(x_22);
  x_62 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe(x_22, x_55, x_3, x_4, x_5, x_6, x_7, x_8, x_61);
  if (lean_obj_tag(x_62) == 0)
  {
  lean_object* x_63; uint8_t x_64; 
  x_63 = lean_ctor_get(x_62, 0);
  lean_inc(x_63);
  x_64 = lean_unbox(x_63);
  lean_dec(x_63);
  if (x_64 == 0)
  {
  lean_object* x_65; lean_object* x_66; 
  x_65 = lean_ctor_get(x_62, 1);
  lean_inc(x_65);
  lean_dec(x_62);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_22);
  lean_inc(x_55);
  x_66 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe(x_55, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_65);
  if (lean_obj_tag(x_66) == 0)
  {
  lean_object* x_67; uint8_t x_68; 
  x_67 = lean_ctor_get(x_66, 0);
  lean_inc(x_67);
  x_68 = lean_unbox(x_67);
  lean_dec(x_67);
  if (x_68 == 0)
  {
  lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; 
  lean_free_object(x_29);
  x_69 = lean_ctor_get(x_66, 1);
  lean_inc(x_69);
  lean_dec(x_66);
  x_70 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__2;
  x_90 = lean_st_ref_get(x_8, x_69);
  x_91 = lean_ctor_get(x_90, 0);
  lean_inc(x_91);
  x_92 = lean_ctor_get(x_91, 3);
  lean_inc(x_92);
  lean_dec(x_91);
  x_93 = lean_ctor_get_uint8(x_92, sizeof(void*)*1);
  lean_dec(x_92);
  if (x_93 == 0)
  {
  lean_object* x_94; uint8_t x_95; 
  x_94 = lean_ctor_get(x_90, 1);
  lean_inc(x_94);
  lean_dec(x_90);
  x_95 = 0;
  x_71 = x_95;
  x_72 = x_94;
  goto block_89;
  }
  else
  {
  lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; 
  x_96 = lean_ctor_get(x_90, 1);
  lean_inc(x_96);
  lean_dec(x_90);
  x_97 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__3(x_70, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_96);
  x_98 = lean_ctor_get(x_97, 0);
  lean_inc(x_98);
  x_99 = lean_ctor_get(x_97, 1);
  lean_inc(x_99);
  lean_dec(x_97);
  x_100 = lean_unbox(x_98);
  lean_dec(x_98);
  x_71 = x_100;
  x_72 = x_99;
  goto block_89;
  }
  block_89:
  {
  lean_object* x_73; 
  x_73 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__3;
  if (x_71 == 0)
  {
  lean_object* x_74; lean_object* x_75; 
  lean_dec(x_55);
  lean_dec(x_22);
  x_74 = lean_box(0);
  x_75 = lean_apply_9(x_73, x_74, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_72);
  return x_75;
  }
  else
  {
  lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; 
  x_76 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_76, 0, x_55);
  x_77 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__5;
  x_78 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_78, 0, x_77);
  lean_ctor_set(x_78, 1, x_76);
  x_79 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__7;
  x_80 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_80, 0, x_78);
  lean_ctor_set(x_80, 1, x_79);
  x_81 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_81, 0, x_22);
  x_82 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_82, 0, x_80);
  lean_ctor_set(x_82, 1, x_81);
  x_83 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_84 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_84, 0, x_82);
  lean_ctor_set(x_84, 1, x_83);
  x_85 = l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2(x_70, x_84, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_72);
  x_86 = lean_ctor_get(x_85, 0);
  lean_inc(x_86);
  x_87 = lean_ctor_get(x_85, 1);
  lean_inc(x_87);
  lean_dec(x_85);
  x_88 = lean_apply_9(x_73, x_86, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_87);
  return x_88;
  }
  }
  }
  else
  {
  lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; 
  lean_dec(x_55);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_101 = lean_ctor_get(x_66, 1);
  lean_inc(x_101);
  lean_dec(x_66);
  x_102 = lean_st_ref_get(x_8, x_101);
  lean_dec(x_8);
  x_103 = lean_ctor_get(x_102, 1);
  lean_inc(x_103);
  lean_dec(x_102);
  x_104 = lean_st_ref_take(x_2, x_103);
  x_105 = lean_ctor_get(x_104, 0);
  lean_inc(x_105);
  x_106 = lean_ctor_get(x_104, 1);
  lean_inc(x_106);
  lean_dec(x_104);
  lean_ctor_set(x_29, 0, x_22);
  x_107 = !lean_is_exclusive(x_105);
  if (x_107 == 0)
  {
  lean_object* x_108; lean_object* x_109; uint8_t x_110; 
  x_108 = lean_ctor_get(x_105, 0);
  lean_dec(x_108);
  lean_ctor_set(x_105, 0, x_29);
  x_109 = lean_st_ref_set(x_2, x_105, x_106);
  lean_dec(x_2);
  x_110 = !lean_is_exclusive(x_109);
  if (x_110 == 0)
  {
  lean_object* x_111; lean_object* x_112; 
  x_111 = lean_ctor_get(x_109, 0);
  lean_dec(x_111);
  x_112 = lean_box(0);
  lean_ctor_set(x_109, 0, x_112);
  return x_109;
  }
  else
  {
  lean_object* x_113; lean_object* x_114; lean_object* x_115; 
  x_113 = lean_ctor_get(x_109, 1);
  lean_inc(x_113);
  lean_dec(x_109);
  x_114 = lean_box(0);
  x_115 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_115, 0, x_114);
  lean_ctor_set(x_115, 1, x_113);
  return x_115;
  }
  }
  else
  {
  uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; 
  x_116 = lean_ctor_get_uint8(x_105, sizeof(void*)*1);
  lean_dec(x_105);
  x_117 = lean_alloc_ctor(0, 1, 1);
  lean_ctor_set(x_117, 0, x_29);
  lean_ctor_set_uint8(x_117, sizeof(void*)*1, x_116);
  x_118 = lean_st_ref_set(x_2, x_117, x_106);
  lean_dec(x_2);
  x_119 = lean_ctor_get(x_118, 1);
  lean_inc(x_119);
  if (lean_is_exclusive(x_118)) {
   lean_ctor_release(x_118, 0);
   lean_ctor_release(x_118, 1);
   x_120 = x_118;
  } else {
   lean_dec_ref(x_118);
   x_120 = lean_box(0);
  }
  x_121 = lean_box(0);
  if (lean_is_scalar(x_120)) {
   x_122 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_122 = x_120;
  }
  lean_ctor_set(x_122, 0, x_121);
  lean_ctor_set(x_122, 1, x_119);
  return x_122;
  }
  }
  }
  else
  {
  uint8_t x_123; 
  lean_free_object(x_29);
  lean_dec(x_55);
  lean_dec(x_22);
  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_123 = !lean_is_exclusive(x_66);
  if (x_123 == 0)
  {
  return x_66;
  }
  else
  {
  lean_object* x_124; lean_object* x_125; lean_object* x_126; 
  x_124 = lean_ctor_get(x_66, 0);
  x_125 = lean_ctor_get(x_66, 1);
  lean_inc(x_125);
  lean_inc(x_124);
  lean_dec(x_66);
  x_126 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_126, 0, x_124);
  lean_ctor_set(x_126, 1, x_125);
  return x_126;
  }
  }
  }
  else
  {
  uint8_t x_127; 
  lean_free_object(x_29);
  lean_dec(x_55);
  lean_dec(x_22);
  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_127 = !lean_is_exclusive(x_62);
  if (x_127 == 0)
  {
  lean_object* x_128; lean_object* x_129; 
  x_128 = lean_ctor_get(x_62, 0);
  lean_dec(x_128);
  x_129 = lean_box(0);
  lean_ctor_set(x_62, 0, x_129);
  return x_62;
  }
  else
  {
  lean_object* x_130; lean_object* x_131; lean_object* x_132; 
  x_130 = lean_ctor_get(x_62, 1);
  lean_inc(x_130);
  lean_dec(x_62);
  x_131 = lean_box(0);
  x_132 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_132, 0, x_131);
  lean_ctor_set(x_132, 1, x_130);
  return x_132;
  }
  }
  }
  else
  {
  uint8_t x_133; 
  lean_free_object(x_29);
  lean_dec(x_55);
  lean_dec(x_22);
  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_133 = !lean_is_exclusive(x_62);
  if (x_133 == 0)
  {
  return x_62;
  }
  else
  {
  lean_object* x_134; lean_object* x_135; lean_object* x_136; 
  x_134 = lean_ctor_get(x_62, 0);
  x_135 = lean_ctor_get(x_62, 1);
  lean_inc(x_135);
  lean_inc(x_134);
  lean_dec(x_62);
  x_136 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_136, 0, x_134);
  lean_ctor_set(x_136, 1, x_135);
  return x_136;
  }
  }
  }
  else
  {
  uint8_t x_137; 
  lean_free_object(x_29);
  lean_dec(x_55);
  lean_dec(x_22);
  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_137 = !lean_is_exclusive(x_58);
  if (x_137 == 0)
  {
  lean_object* x_138; lean_object* x_139; 
  x_138 = lean_ctor_get(x_58, 0);
  lean_dec(x_138);
  x_139 = lean_box(0);
  lean_ctor_set(x_58, 0, x_139);
  return x_58;
  }
  else
  {
  lean_object* x_140; lean_object* x_141; lean_object* x_142; 
  x_140 = lean_ctor_get(x_58, 1);
  lean_inc(x_140);
  lean_dec(x_58);
  x_141 = lean_box(0);
  x_142 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_142, 0, x_141);
  lean_ctor_set(x_142, 1, x_140);
  return x_142;
  }
  }
  }
  else
  {
  uint8_t x_143; 
  lean_free_object(x_29);
  lean_dec(x_55);
  lean_dec(x_22);
  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_143 = !lean_is_exclusive(x_58);
  if (x_143 == 0)
  {
  return x_58;
  }
  else
  {
  lean_object* x_144; lean_object* x_145; lean_object* x_146; 
  x_144 = lean_ctor_get(x_58, 0);
  x_145 = lean_ctor_get(x_58, 1);
  lean_inc(x_145);
  lean_inc(x_144);
  lean_dec(x_58);
  x_146 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_146, 0, x_144);
  lean_ctor_set(x_146, 1, x_145);
  return x_146;
  }
  }
  }
  else
  {
  lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; 
  x_147 = lean_ctor_get(x_29, 0);
  lean_inc(x_147);
  lean_dec(x_29);
  lean_inc(x_22);
  lean_inc(x_147);
  x_148 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__1___boxed), 9, 2);
  lean_closure_set(x_148, 0, x_147);
  lean_closure_set(x_148, 1, x_22);
  x_149 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
  lean_closure_set(x_149, 0, x_148);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_150 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__1___rarg(x_149, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_53);
  if (lean_obj_tag(x_150) == 0)
  {
  lean_object* x_151; uint8_t x_152; 
  x_151 = lean_ctor_get(x_150, 0);
  lean_inc(x_151);
  x_152 = lean_unbox(x_151);
  lean_dec(x_151);
  if (x_152 == 0)
  {
  lean_object* x_153; lean_object* x_154; 
  x_153 = lean_ctor_get(x_150, 1);
  lean_inc(x_153);
  lean_dec(x_150);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_147);
  lean_inc(x_22);
  x_154 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe(x_22, x_147, x_3, x_4, x_5, x_6, x_7, x_8, x_153);
  if (lean_obj_tag(x_154) == 0)
  {
  lean_object* x_155; uint8_t x_156; 
  x_155 = lean_ctor_get(x_154, 0);
  lean_inc(x_155);
  x_156 = lean_unbox(x_155);
  lean_dec(x_155);
  if (x_156 == 0)
  {
  lean_object* x_157; lean_object* x_158; 
  x_157 = lean_ctor_get(x_154, 1);
  lean_inc(x_157);
  lean_dec(x_154);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_22);
  lean_inc(x_147);
  x_158 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe(x_147, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_157);
  if (lean_obj_tag(x_158) == 0)
  {
  lean_object* x_159; uint8_t x_160; 
  x_159 = lean_ctor_get(x_158, 0);
  lean_inc(x_159);
  x_160 = lean_unbox(x_159);
  lean_dec(x_159);
  if (x_160 == 0)
  {
  lean_object* x_161; lean_object* x_162; uint8_t x_163; lean_object* x_164; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; 
  x_161 = lean_ctor_get(x_158, 1);
  lean_inc(x_161);
  lean_dec(x_158);
  x_162 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__2;
  x_182 = lean_st_ref_get(x_8, x_161);
  x_183 = lean_ctor_get(x_182, 0);
  lean_inc(x_183);
  x_184 = lean_ctor_get(x_183, 3);
  lean_inc(x_184);
  lean_dec(x_183);
  x_185 = lean_ctor_get_uint8(x_184, sizeof(void*)*1);
  lean_dec(x_184);
  if (x_185 == 0)
  {
  lean_object* x_186; uint8_t x_187; 
  x_186 = lean_ctor_get(x_182, 1);
  lean_inc(x_186);
  lean_dec(x_182);
  x_187 = 0;
  x_163 = x_187;
  x_164 = x_186;
  goto block_181;
  }
  else
  {
  lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; 
  x_188 = lean_ctor_get(x_182, 1);
  lean_inc(x_188);
  lean_dec(x_182);
  x_189 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__3(x_162, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_188);
  x_190 = lean_ctor_get(x_189, 0);
  lean_inc(x_190);
  x_191 = lean_ctor_get(x_189, 1);
  lean_inc(x_191);
  lean_dec(x_189);
  x_192 = lean_unbox(x_190);
  lean_dec(x_190);
  x_163 = x_192;
  x_164 = x_191;
  goto block_181;
  }
  block_181:
  {
  lean_object* x_165; 
  x_165 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__3;
  if (x_163 == 0)
  {
  lean_object* x_166; lean_object* x_167; 
  lean_dec(x_147);
  lean_dec(x_22);
  x_166 = lean_box(0);
  x_167 = lean_apply_9(x_165, x_166, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_164);
  return x_167;
  }
  else
  {
  lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; 
  x_168 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_168, 0, x_147);
  x_169 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__5;
  x_170 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_170, 0, x_169);
  lean_ctor_set(x_170, 1, x_168);
  x_171 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__7;
  x_172 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_172, 0, x_170);
  lean_ctor_set(x_172, 1, x_171);
  x_173 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_173, 0, x_22);
  x_174 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_174, 0, x_172);
  lean_ctor_set(x_174, 1, x_173);
  x_175 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_176 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_176, 0, x_174);
  lean_ctor_set(x_176, 1, x_175);
  x_177 = l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2(x_162, x_176, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_164);
  x_178 = lean_ctor_get(x_177, 0);
  lean_inc(x_178);
  x_179 = lean_ctor_get(x_177, 1);
  lean_inc(x_179);
  lean_dec(x_177);
  x_180 = lean_apply_9(x_165, x_178, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_179);
  return x_180;
  }
  }
  }
  else
  {
  lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; 
  lean_dec(x_147);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_193 = lean_ctor_get(x_158, 1);
  lean_inc(x_193);
  lean_dec(x_158);
  x_194 = lean_st_ref_get(x_8, x_193);
  lean_dec(x_8);
  x_195 = lean_ctor_get(x_194, 1);
  lean_inc(x_195);
  lean_dec(x_194);
  x_196 = lean_st_ref_take(x_2, x_195);
  x_197 = lean_ctor_get(x_196, 0);
  lean_inc(x_197);
  x_198 = lean_ctor_get(x_196, 1);
  lean_inc(x_198);
  lean_dec(x_196);
  x_199 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_199, 0, x_22);
  x_200 = lean_ctor_get_uint8(x_197, sizeof(void*)*1);
  if (lean_is_exclusive(x_197)) {
   lean_ctor_release(x_197, 0);
   x_201 = x_197;
  } else {
   lean_dec_ref(x_197);
   x_201 = lean_box(0);
  }
  if (lean_is_scalar(x_201)) {
   x_202 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_202 = x_201;
  }
  lean_ctor_set(x_202, 0, x_199);
  lean_ctor_set_uint8(x_202, sizeof(void*)*1, x_200);
  x_203 = lean_st_ref_set(x_2, x_202, x_198);
  lean_dec(x_2);
  x_204 = lean_ctor_get(x_203, 1);
  lean_inc(x_204);
  if (lean_is_exclusive(x_203)) {
   lean_ctor_release(x_203, 0);
   lean_ctor_release(x_203, 1);
   x_205 = x_203;
  } else {
   lean_dec_ref(x_203);
   x_205 = lean_box(0);
  }
  x_206 = lean_box(0);
  if (lean_is_scalar(x_205)) {
   x_207 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_207 = x_205;
  }
  lean_ctor_set(x_207, 0, x_206);
  lean_ctor_set(x_207, 1, x_204);
  return x_207;
  }
  }
  else
  {
  lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; 
  lean_dec(x_147);
  lean_dec(x_22);
  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_208 = lean_ctor_get(x_158, 0);
  lean_inc(x_208);
  x_209 = lean_ctor_get(x_158, 1);
  lean_inc(x_209);
  if (lean_is_exclusive(x_158)) {
   lean_ctor_release(x_158, 0);
   lean_ctor_release(x_158, 1);
   x_210 = x_158;
  } else {
   lean_dec_ref(x_158);
   x_210 = lean_box(0);
  }
  if (lean_is_scalar(x_210)) {
   x_211 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_211 = x_210;
  }
  lean_ctor_set(x_211, 0, x_208);
  lean_ctor_set(x_211, 1, x_209);
  return x_211;
  }
  }
  else
  {
  lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; 
  lean_dec(x_147);
  lean_dec(x_22);
  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_212 = lean_ctor_get(x_154, 1);
  lean_inc(x_212);
  if (lean_is_exclusive(x_154)) {
   lean_ctor_release(x_154, 0);
   lean_ctor_release(x_154, 1);
   x_213 = x_154;
  } else {
   lean_dec_ref(x_154);
   x_213 = lean_box(0);
  }
  x_214 = lean_box(0);
  if (lean_is_scalar(x_213)) {
   x_215 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_215 = x_213;
  }
  lean_ctor_set(x_215, 0, x_214);
  lean_ctor_set(x_215, 1, x_212);
  return x_215;
  }
  }
  else
  {
  lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
  lean_dec(x_147);
  lean_dec(x_22);
  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_216 = lean_ctor_get(x_154, 0);
  lean_inc(x_216);
  x_217 = lean_ctor_get(x_154, 1);
  lean_inc(x_217);
  if (lean_is_exclusive(x_154)) {
   lean_ctor_release(x_154, 0);
   lean_ctor_release(x_154, 1);
   x_218 = x_154;
  } else {
   lean_dec_ref(x_154);
   x_218 = lean_box(0);
  }
  if (lean_is_scalar(x_218)) {
   x_219 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_219 = x_218;
  }
  lean_ctor_set(x_219, 0, x_216);
  lean_ctor_set(x_219, 1, x_217);
  return x_219;
  }
  }
  else
  {
  lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; 
  lean_dec(x_147);
  lean_dec(x_22);
  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_220 = lean_ctor_get(x_150, 1);
  lean_inc(x_220);
  if (lean_is_exclusive(x_150)) {
   lean_ctor_release(x_150, 0);
   lean_ctor_release(x_150, 1);
   x_221 = x_150;
  } else {
   lean_dec_ref(x_150);
   x_221 = lean_box(0);
  }
  x_222 = lean_box(0);
  if (lean_is_scalar(x_221)) {
   x_223 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_223 = x_221;
  }
  lean_ctor_set(x_223, 0, x_222);
  lean_ctor_set(x_223, 1, x_220);
  return x_223;
  }
  }
  else
  {
  lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; 
  lean_dec(x_147);
  lean_dec(x_22);
  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_224 = lean_ctor_get(x_150, 0);
  lean_inc(x_224);
  x_225 = lean_ctor_get(x_150, 1);
  lean_inc(x_225);
  if (lean_is_exclusive(x_150)) {
   lean_ctor_release(x_150, 0);
   lean_ctor_release(x_150, 1);
   x_226 = x_150;
  } else {
   lean_dec_ref(x_150);
   x_226 = lean_box(0);
  }
  if (lean_is_scalar(x_226)) {
   x_227 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_227 = x_226;
  }
  lean_ctor_set(x_227, 0, x_224);
  lean_ctor_set(x_227, 1, x_225);
  return x_227;
  }
  }
  }
  }
  else
  {
  lean_object* x_228; 
  lean_dec(x_22);
  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_228 = lean_box(0);
  lean_ctor_set(x_20, 0, x_228);
  return x_20;
  }
  }
  else
  {
  lean_object* x_229; lean_object* x_230; uint8_t x_231; 
  x_229 = lean_ctor_get(x_20, 0);
  x_230 = lean_ctor_get(x_20, 1);
  lean_inc(x_230);
  lean_inc(x_229);
  lean_dec(x_20);
  x_231 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow(x_229);
  if (x_231 == 0)
  {
  lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; 
  x_232 = lean_st_ref_get(x_8, x_230);
  x_233 = lean_ctor_get(x_232, 1);
  lean_inc(x_233);
  lean_dec(x_232);
  x_234 = lean_st_ref_get(x_2, x_233);
  x_235 = lean_ctor_get(x_234, 0);
  lean_inc(x_235);
  x_236 = lean_ctor_get(x_235, 0);
  lean_inc(x_236);
  lean_dec(x_235);
  if (lean_obj_tag(x_236) == 0)
  {
  lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; uint8_t x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_237 = lean_ctor_get(x_234, 1);
  lean_inc(x_237);
  lean_dec(x_234);
  x_238 = lean_st_ref_get(x_8, x_237);
  lean_dec(x_8);
  x_239 = lean_ctor_get(x_238, 1);
  lean_inc(x_239);
  lean_dec(x_238);
  x_240 = lean_st_ref_take(x_2, x_239);
  x_241 = lean_ctor_get(x_240, 0);
  lean_inc(x_241);
  x_242 = lean_ctor_get(x_240, 1);
  lean_inc(x_242);
  lean_dec(x_240);
  x_243 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_243, 0, x_229);
  x_244 = lean_ctor_get_uint8(x_241, sizeof(void*)*1);
  if (lean_is_exclusive(x_241)) {
   lean_ctor_release(x_241, 0);
   x_245 = x_241;
  } else {
   lean_dec_ref(x_241);
   x_245 = lean_box(0);
  }
  if (lean_is_scalar(x_245)) {
   x_246 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_246 = x_245;
  }
  lean_ctor_set(x_246, 0, x_243);
  lean_ctor_set_uint8(x_246, sizeof(void*)*1, x_244);
  x_247 = lean_st_ref_set(x_2, x_246, x_242);
  lean_dec(x_2);
  x_248 = lean_ctor_get(x_247, 1);
  lean_inc(x_248);
  if (lean_is_exclusive(x_247)) {
   lean_ctor_release(x_247, 0);
   lean_ctor_release(x_247, 1);
   x_249 = x_247;
  } else {
   lean_dec_ref(x_247);
   x_249 = lean_box(0);
  }
  x_250 = lean_box(0);
  if (lean_is_scalar(x_249)) {
   x_251 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_251 = x_249;
  }
  lean_ctor_set(x_251, 0, x_250);
  lean_ctor_set(x_251, 1, x_248);
  return x_251;
  }
  else
  {
  lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; 
  x_252 = lean_ctor_get(x_234, 1);
  lean_inc(x_252);
  lean_dec(x_234);
  x_253 = lean_ctor_get(x_236, 0);
  lean_inc(x_253);
  if (lean_is_exclusive(x_236)) {
   lean_ctor_release(x_236, 0);
   x_254 = x_236;
  } else {
   lean_dec_ref(x_236);
   x_254 = lean_box(0);
  }
  lean_inc(x_229);
  lean_inc(x_253);
  x_255 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__1___boxed), 9, 2);
  lean_closure_set(x_255, 0, x_253);
  lean_closure_set(x_255, 1, x_229);
  x_256 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1);
  lean_closure_set(x_256, 0, x_255);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_257 = l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__1___rarg(x_256, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_252);
  if (lean_obj_tag(x_257) == 0)
  {
  lean_object* x_258; uint8_t x_259; 
  x_258 = lean_ctor_get(x_257, 0);
  lean_inc(x_258);
  x_259 = lean_unbox(x_258);
  lean_dec(x_258);
  if (x_259 == 0)
  {
  lean_object* x_260; lean_object* x_261; 
  x_260 = lean_ctor_get(x_257, 1);
  lean_inc(x_260);
  lean_dec(x_257);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_253);
  lean_inc(x_229);
  x_261 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe(x_229, x_253, x_3, x_4, x_5, x_6, x_7, x_8, x_260);
  if (lean_obj_tag(x_261) == 0)
  {
  lean_object* x_262; uint8_t x_263; 
  x_262 = lean_ctor_get(x_261, 0);
  lean_inc(x_262);
  x_263 = lean_unbox(x_262);
  lean_dec(x_262);
  if (x_263 == 0)
  {
  lean_object* x_264; lean_object* x_265; 
  x_264 = lean_ctor_get(x_261, 1);
  lean_inc(x_264);
  lean_dec(x_261);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_229);
  lean_inc(x_253);
  x_265 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe(x_253, x_229, x_3, x_4, x_5, x_6, x_7, x_8, x_264);
  if (lean_obj_tag(x_265) == 0)
  {
  lean_object* x_266; uint8_t x_267; 
  x_266 = lean_ctor_get(x_265, 0);
  lean_inc(x_266);
  x_267 = lean_unbox(x_266);
  lean_dec(x_266);
  if (x_267 == 0)
  {
  lean_object* x_268; lean_object* x_269; uint8_t x_270; lean_object* x_271; lean_object* x_289; lean_object* x_290; lean_object* x_291; uint8_t x_292; 
  lean_dec(x_254);
  x_268 = lean_ctor_get(x_265, 1);
  lean_inc(x_268);
  lean_dec(x_265);
  x_269 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__2;
  x_289 = lean_st_ref_get(x_8, x_268);
  x_290 = lean_ctor_get(x_289, 0);
  lean_inc(x_290);
  x_291 = lean_ctor_get(x_290, 3);
  lean_inc(x_291);
  lean_dec(x_290);
  x_292 = lean_ctor_get_uint8(x_291, sizeof(void*)*1);
  lean_dec(x_291);
  if (x_292 == 0)
  {
  lean_object* x_293; uint8_t x_294; 
  x_293 = lean_ctor_get(x_289, 1);
  lean_inc(x_293);
  lean_dec(x_289);
  x_294 = 0;
  x_270 = x_294;
  x_271 = x_293;
  goto block_288;
  }
  else
  {
  lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; uint8_t x_299; 
  x_295 = lean_ctor_get(x_289, 1);
  lean_inc(x_295);
  lean_dec(x_289);
  x_296 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__3(x_269, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_295);
  x_297 = lean_ctor_get(x_296, 0);
  lean_inc(x_297);
  x_298 = lean_ctor_get(x_296, 1);
  lean_inc(x_298);
  lean_dec(x_296);
  x_299 = lean_unbox(x_297);
  lean_dec(x_297);
  x_270 = x_299;
  x_271 = x_298;
  goto block_288;
  }
  block_288:
  {
  lean_object* x_272; 
  x_272 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__3;
  if (x_270 == 0)
  {
  lean_object* x_273; lean_object* x_274; 
  lean_dec(x_253);
  lean_dec(x_229);
  x_273 = lean_box(0);
  x_274 = lean_apply_9(x_272, x_273, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_271);
  return x_274;
  }
  else
  {
  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_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; 
  x_275 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_275, 0, x_253);
  x_276 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__5;
  x_277 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_277, 0, x_276);
  lean_ctor_set(x_277, 1, x_275);
  x_278 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__7;
  x_279 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_279, 0, x_277);
  lean_ctor_set(x_279, 1, x_278);
  x_280 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_280, 0, x_229);
  x_281 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_281, 0, x_279);
  lean_ctor_set(x_281, 1, x_280);
  x_282 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_283 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_283, 0, x_281);
  lean_ctor_set(x_283, 1, x_282);
  x_284 = l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2(x_269, x_283, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_271);
  x_285 = lean_ctor_get(x_284, 0);
  lean_inc(x_285);
  x_286 = lean_ctor_get(x_284, 1);
  lean_inc(x_286);
  lean_dec(x_284);
  x_287 = lean_apply_9(x_272, x_285, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_286);
  return x_287;
  }
  }
  }
  else
  {
  lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; 
  lean_dec(x_253);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  x_300 = lean_ctor_get(x_265, 1);
  lean_inc(x_300);
  lean_dec(x_265);
  x_301 = lean_st_ref_get(x_8, x_300);
  lean_dec(x_8);
  x_302 = lean_ctor_get(x_301, 1);
  lean_inc(x_302);
  lean_dec(x_301);
  x_303 = lean_st_ref_take(x_2, x_302);
  x_304 = lean_ctor_get(x_303, 0);
  lean_inc(x_304);
  x_305 = lean_ctor_get(x_303, 1);
  lean_inc(x_305);
  lean_dec(x_303);
  if (lean_is_scalar(x_254)) {
   x_306 = lean_alloc_ctor(1, 1, 0);
  } else {
   x_306 = x_254;
  }
  lean_ctor_set(x_306, 0, x_229);
  x_307 = lean_ctor_get_uint8(x_304, sizeof(void*)*1);
  if (lean_is_exclusive(x_304)) {
   lean_ctor_release(x_304, 0);
   x_308 = x_304;
  } else {
   lean_dec_ref(x_304);
   x_308 = lean_box(0);
  }
  if (lean_is_scalar(x_308)) {
   x_309 = lean_alloc_ctor(0, 1, 1);
  } else {
   x_309 = x_308;
  }
  lean_ctor_set(x_309, 0, x_306);
  lean_ctor_set_uint8(x_309, sizeof(void*)*1, x_307);
  x_310 = lean_st_ref_set(x_2, x_309, x_305);
  lean_dec(x_2);
  x_311 = lean_ctor_get(x_310, 1);
  lean_inc(x_311);
  if (lean_is_exclusive(x_310)) {
   lean_ctor_release(x_310, 0);
   lean_ctor_release(x_310, 1);
   x_312 = x_310;
  } else {
   lean_dec_ref(x_310);
   x_312 = lean_box(0);
  }
  x_313 = lean_box(0);
  if (lean_is_scalar(x_312)) {
   x_314 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_314 = x_312;
  }
  lean_ctor_set(x_314, 0, x_313);
  lean_ctor_set(x_314, 1, x_311);
  return x_314;
  }
  }
  else
  {
  lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; 
  lean_dec(x_254);
  lean_dec(x_253);
  lean_dec(x_229);
  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_315 = lean_ctor_get(x_265, 0);
  lean_inc(x_315);
  x_316 = lean_ctor_get(x_265, 1);
  lean_inc(x_316);
  if (lean_is_exclusive(x_265)) {
   lean_ctor_release(x_265, 0);
   lean_ctor_release(x_265, 1);
   x_317 = x_265;
  } else {
   lean_dec_ref(x_265);
   x_317 = lean_box(0);
  }
  if (lean_is_scalar(x_317)) {
   x_318 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_318 = x_317;
  }
  lean_ctor_set(x_318, 0, x_315);
  lean_ctor_set(x_318, 1, x_316);
  return x_318;
  }
  }
  else
  {
  lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; 
  lean_dec(x_254);
  lean_dec(x_253);
  lean_dec(x_229);
  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_319 = lean_ctor_get(x_261, 1);
  lean_inc(x_319);
  if (lean_is_exclusive(x_261)) {
   lean_ctor_release(x_261, 0);
   lean_ctor_release(x_261, 1);
   x_320 = x_261;
  } else {
   lean_dec_ref(x_261);
   x_320 = lean_box(0);
  }
  x_321 = lean_box(0);
  if (lean_is_scalar(x_320)) {
   x_322 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_322 = x_320;
  }
  lean_ctor_set(x_322, 0, x_321);
  lean_ctor_set(x_322, 1, x_319);
  return x_322;
  }
  }
  else
  {
  lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; 
  lean_dec(x_254);
  lean_dec(x_253);
  lean_dec(x_229);
  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_323 = lean_ctor_get(x_261, 0);
  lean_inc(x_323);
  x_324 = lean_ctor_get(x_261, 1);
  lean_inc(x_324);
  if (lean_is_exclusive(x_261)) {
   lean_ctor_release(x_261, 0);
   lean_ctor_release(x_261, 1);
   x_325 = x_261;
  } else {
   lean_dec_ref(x_261);
   x_325 = lean_box(0);
  }
  if (lean_is_scalar(x_325)) {
   x_326 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_326 = x_325;
  }
  lean_ctor_set(x_326, 0, x_323);
  lean_ctor_set(x_326, 1, x_324);
  return x_326;
  }
  }
  else
  {
  lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; 
  lean_dec(x_254);
  lean_dec(x_253);
  lean_dec(x_229);
  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_327 = lean_ctor_get(x_257, 1);
  lean_inc(x_327);
  if (lean_is_exclusive(x_257)) {
   lean_ctor_release(x_257, 0);
   lean_ctor_release(x_257, 1);
   x_328 = x_257;
  } else {
   lean_dec_ref(x_257);
   x_328 = lean_box(0);
  }
  x_329 = lean_box(0);
  if (lean_is_scalar(x_328)) {
   x_330 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_330 = x_328;
  }
  lean_ctor_set(x_330, 0, x_329);
  lean_ctor_set(x_330, 1, x_327);
  return x_330;
  }
  }
  else
  {
  lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; 
  lean_dec(x_254);
  lean_dec(x_253);
  lean_dec(x_229);
  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_331 = lean_ctor_get(x_257, 0);
  lean_inc(x_331);
  x_332 = lean_ctor_get(x_257, 1);
  lean_inc(x_332);
  if (lean_is_exclusive(x_257)) {
   lean_ctor_release(x_257, 0);
   lean_ctor_release(x_257, 1);
   x_333 = x_257;
  } else {
   lean_dec_ref(x_257);
   x_333 = lean_box(0);
  }
  if (lean_is_scalar(x_333)) {
   x_334 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_334 = x_333;
  }
  lean_ctor_set(x_334, 0, x_331);
  lean_ctor_set(x_334, 1, x_332);
  return x_334;
  }
  }
  }
  else
  {
  lean_object* x_335; lean_object* x_336; 
  lean_dec(x_229);
  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_335 = lean_box(0);
  x_336 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_336, 0, x_335);
  lean_ctor_set(x_336, 1, x_230);
  return x_336;
  }
  }
  }
  else
  {
  uint8_t x_337; 
  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_337 = !lean_is_exclusive(x_20);
  if (x_337 == 0)
  {
  return x_20;
  }
  else
  {
  lean_object* x_338; lean_object* x_339; lean_object* x_340; 
  x_338 = lean_ctor_get(x_20, 0);
  x_339 = lean_ctor_get(x_20, 1);
  lean_inc(x_339);
  lean_inc(x_338);
  lean_dec(x_20);
  x_340 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_340, 0, x_338);
  lean_ctor_set(x_340, 1, x_339);
  return x_340;
  }
  }
  }
  else
  {
  uint8_t x_341; 
  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_341 = !lean_is_exclusive(x_17);
  if (x_341 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_342; lean_object* x_343; lean_object* x_344; 
  x_342 = lean_ctor_get(x_17, 0);
  x_343 = lean_ctor_get(x_17, 1);
  lean_inc(x_343);
  lean_inc(x_342);
  lean_dec(x_17);
  x_344 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_344, 0, x_342);
  lean_ctor_set(x_344, 1, x_343);
  return x_344;
  }
  }
  }
  else
  {
  lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; 
  x_345 = lean_ctor_get(x_12, 1);
  lean_inc(x_345);
  lean_dec(x_12);
  x_346 = lean_ctor_get(x_1, 2);
  lean_inc(x_346);
  x_347 = lean_ctor_get(x_1, 3);
  lean_inc(x_347);
  lean_dec(x_1);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_348 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go(x_346, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_345);
  if (lean_obj_tag(x_348) == 0)
  {
  lean_object* x_349; 
  x_349 = lean_ctor_get(x_348, 1);
  lean_inc(x_349);
  lean_dec(x_348);
  x_1 = x_347;
  x_9 = x_349;
  goto _start;
  }
  else
  {
  uint8_t x_351; 
  lean_dec(x_347);
  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_351 = !lean_is_exclusive(x_348);
  if (x_351 == 0)
  {
  return x_348;
  }
  else
  {
  lean_object* x_352; lean_object* x_353; lean_object* x_354; 
  x_352 = lean_ctor_get(x_348, 0);
  x_353 = lean_ctor_get(x_348, 1);
  lean_inc(x_353);
  lean_inc(x_352);
  lean_dec(x_348);
  x_354 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_354, 0, x_352);
  lean_ctor_set(x_354, 1, x_353);
  return x_354;
  }
  }
  }
  }
  else
  {
  uint8_t x_355; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_355 = !lean_is_exclusive(x_12);
  if (x_355 == 0)
  {
  lean_object* x_356; lean_object* x_357; 
  x_356 = lean_ctor_get(x_12, 0);
  lean_dec(x_356);
  x_357 = lean_box(0);
  lean_ctor_set(x_12, 0, x_357);
  return x_12;
  }
  else
  {
  lean_object* x_358; lean_object* x_359; lean_object* x_360; 
  x_358 = lean_ctor_get(x_12, 1);
  lean_inc(x_358);
  lean_dec(x_12);
  x_359 = lean_box(0);
  x_360 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_360, 0, x_359);
  lean_ctor_set(x_360, 1, x_358);
  return x_360;
  }
  }
  }
  }
  lean_object* l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_11;
  }
  }
  lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; 
  x_10 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_10;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; 
  x_10 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  lean_dec(x_4);
  lean_dec(x_3);
  return x_10;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; 
  x_10 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_10;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  uint8_t 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 = 0;
  x_11 = lean_alloc_ctor(0, 1, 1);
  lean_ctor_set(x_11, 0, x_2);
  lean_ctor_set_uint8(x_11, sizeof(void*)*1, x_10);
  x_12 = lean_st_ref_get(x_8, x_9);
  x_13 = lean_ctor_get(x_12, 1);
  lean_inc(x_13);
  lean_dec(x_12);
  x_14 = lean_st_mk_ref(x_11, x_13);
  x_15 = lean_ctor_get(x_14, 0);
  lean_inc(x_15);
  x_16 = lean_ctor_get(x_14, 1);
  lean_inc(x_16);
  lean_dec(x_14);
  lean_inc(x_8);
  lean_inc(x_15);
  x_17 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_16);
  if (lean_obj_tag(x_17) == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 
  x_18 = lean_ctor_get(x_17, 1);
  lean_inc(x_18);
  lean_dec(x_17);
  x_19 = lean_st_ref_get(x_8, x_18);
  x_20 = lean_ctor_get(x_19, 1);
  lean_inc(x_20);
  lean_dec(x_19);
  x_21 = lean_st_ref_get(x_15, x_20);
  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_st_ref_get(x_8, x_23);
  lean_dec(x_8);
  x_25 = lean_ctor_get(x_24, 1);
  lean_inc(x_25);
  lean_dec(x_24);
  x_26 = lean_st_ref_get(x_15, x_25);
  lean_dec(x_15);
  x_27 = !lean_is_exclusive(x_26);
  if (x_27 == 0)
  {
  lean_object* x_28; 
  x_28 = lean_ctor_get(x_26, 0);
  lean_dec(x_28);
  lean_ctor_set(x_26, 0, x_22);
  return x_26;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; 
  x_29 = lean_ctor_get(x_26, 1);
  lean_inc(x_29);
  lean_dec(x_26);
  x_30 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_30, 0, x_22);
  lean_ctor_set(x_30, 1, x_29);
  return x_30;
  }
  }
  else
  {
  uint8_t x_31; 
  lean_dec(x_15);
  lean_dec(x_8);
  x_31 = !lean_is_exclusive(x_17);
  if (x_31 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; 
  x_32 = lean_ctor_get(x_17, 0);
  x_33 = lean_ctor_get(x_17, 1);
  lean_inc(x_33);
  lean_inc(x_32);
  lean_dec(x_17);
  x_34 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_34, 0, x_32);
  lean_ctor_set(x_34, 1, x_33);
  return x_34;
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze(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:
  {
  if (lean_obj_tag(x_2) == 0)
  {
  lean_object* x_10; lean_object* x_11; 
  x_10 = lean_box(0);
  x_11 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze___lambda__1(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  return x_11;
  }
  else
  {
  uint8_t x_12; 
  x_12 = !lean_is_exclusive(x_2);
  if (x_12 == 0)
  {
  lean_object* x_13; lean_object* x_14; 
  x_13 = lean_ctor_get(x_2, 0);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_14 = l_Lean_Meta_instantiateMVars(x_13, x_5, x_6, x_7, x_8, x_9);
  if (lean_obj_tag(x_14) == 0)
  {
  lean_object* x_15; lean_object* x_16; uint8_t x_17; 
  x_15 = lean_ctor_get(x_14, 0);
  lean_inc(x_15);
  x_16 = lean_ctor_get(x_14, 1);
  lean_inc(x_16);
  lean_dec(x_14);
  x_17 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow(x_15);
  if (x_17 == 0)
  {
  lean_object* x_18; 
  lean_ctor_set(x_2, 0, x_15);
  x_18 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_16);
  return x_18;
  }
  else
  {
  lean_object* x_19; lean_object* x_20; 
  lean_dec(x_15);
  lean_free_object(x_2);
  x_19 = lean_box(0);
  x_20 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze___lambda__1(x_1, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_16);
  return x_20;
  }
  }
  else
  {
  uint8_t x_21; 
  lean_free_object(x_2);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_1);
  x_21 = !lean_is_exclusive(x_14);
  if (x_21 == 0)
  {
  return x_14;
  }
  else
  {
  lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_22 = lean_ctor_get(x_14, 0);
  x_23 = lean_ctor_get(x_14, 1);
  lean_inc(x_23);
  lean_inc(x_22);
  lean_dec(x_14);
  x_24 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_24, 0, x_22);
  lean_ctor_set(x_24, 1, x_23);
  return x_24;
  }
  }
  }
  else
  {
  lean_object* x_25; lean_object* x_26; 
  x_25 = lean_ctor_get(x_2, 0);
  lean_inc(x_25);
  lean_dec(x_2);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  x_26 = l_Lean_Meta_instantiateMVars(x_25, x_5, x_6, x_7, x_8, x_9);
  if (lean_obj_tag(x_26) == 0)
  {
  lean_object* x_27; lean_object* x_28; uint8_t x_29; 
  x_27 = lean_ctor_get(x_26, 0);
  lean_inc(x_27);
  x_28 = lean_ctor_get(x_26, 1);
  lean_inc(x_28);
  lean_dec(x_26);
  x_29 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_isUnknow(x_27);
  if (x_29 == 0)
  {
  lean_object* x_30; lean_object* x_31; 
  x_30 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_30, 0, x_27);
  x_31 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze___lambda__1(x_1, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_28);
  return x_31;
  }
  else
  {
  lean_object* x_32; lean_object* x_33; 
  lean_dec(x_27);
  x_32 = lean_box(0);
  x_33 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze___lambda__1(x_1, x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_28);
  return x_33;
  }
  }
  else
  {
  lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_1);
  x_34 = lean_ctor_get(x_26, 0);
  lean_inc(x_34);
  x_35 = lean_ctor_get(x_26, 1);
  lean_inc(x_35);
  if (lean_is_exclusive(x_26)) {
   lean_ctor_release(x_26, 0);
   lean_ctor_release(x_26, 1);
   x_36 = x_26;
  } else {
   lean_dec_ref(x_26);
   x_36 = lean_box(0);
  }
  if (lean_is_scalar(x_36)) {
   x_37 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_37 = x_36;
  }
  lean_ctor_set(x_37, 0, x_34);
  lean_ctor_set(x_37, 1, x_35);
  return x_37;
  }
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_mkOp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; 
  x_11 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_11, 0, x_2);
  x_12 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_12, 0, x_3);
  x_13 = l_Lean_Elab_Term_elabBinRel___lambda__3___closed__2;
  x_14 = lean_array_push(x_13, x_11);
  x_15 = lean_array_push(x_14, x_12);
  x_16 = lean_box(0);
  x_17 = l_Lean_Elab_Term_elabBinRel___lambda__3___closed__1;
  x_18 = 0;
  x_19 = l_Lean_Elab_Term_elabAppArgs(x_1, x_17, x_15, x_16, x_18, x_18, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  return x_19;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  lean_dec(x_3);
  x_4 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  x_5 = lean_ctor_get(x_1, 1);
  lean_inc(x_5);
  lean_dec(x_1);
  x_6 = lean_apply_2(x_2, x_4, x_5);
  return x_6;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
  lean_dec(x_2);
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  x_8 = lean_ctor_get(x_1, 1);
  lean_inc(x_8);
  x_9 = lean_ctor_get(x_1, 2);
  lean_inc(x_9);
  x_10 = lean_ctor_get(x_1, 3);
  lean_inc(x_10);
  lean_dec(x_1);
  x_11 = lean_apply_4(x_3, x_7, x_8, x_9, x_10);
  return x_11;
  }
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr_match__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr_match__1___rarg), 3, 0);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr(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:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_9; lean_object* x_10; 
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_9 = lean_ctor_get(x_1, 1);
  lean_inc(x_9);
  lean_dec(x_1);
  x_10 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_10, 0, x_9);
  lean_ctor_set(x_10, 1, x_8);
  return x_10;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  x_12 = lean_ctor_get(x_1, 1);
  lean_inc(x_12);
  x_13 = lean_ctor_get(x_1, 2);
  lean_inc(x_13);
  x_14 = lean_ctor_get(x_1, 3);
  lean_inc(x_14);
  lean_dec(x_1);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_15 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  x_16 = lean_ctor_get(x_15, 0);
  lean_inc(x_16);
  x_17 = lean_ctor_get(x_15, 1);
  lean_inc(x_17);
  lean_dec(x_15);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_18 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_17);
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_19; lean_object* x_20; uint8_t x_21; 
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  x_20 = lean_ctor_get(x_18, 1);
  lean_inc(x_20);
  lean_dec(x_18);
  x_21 = !lean_is_exclusive(x_6);
  if (x_21 == 0)
  {
  lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_22 = lean_ctor_get(x_6, 3);
  x_23 = l_Lean_replaceRef(x_11, x_22);
  lean_dec(x_22);
  lean_dec(x_11);
  lean_ctor_set(x_6, 3, x_23);
  x_24 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_mkOp(x_12, x_16, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_20);
  return x_24;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
  x_25 = lean_ctor_get(x_6, 0);
  x_26 = lean_ctor_get(x_6, 1);
  x_27 = lean_ctor_get(x_6, 2);
  x_28 = lean_ctor_get(x_6, 3);
  x_29 = lean_ctor_get(x_6, 4);
  x_30 = lean_ctor_get(x_6, 5);
  x_31 = lean_ctor_get(x_6, 6);
  x_32 = lean_ctor_get(x_6, 7);
  lean_inc(x_32);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_inc(x_28);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_inc(x_25);
  lean_dec(x_6);
  x_33 = l_Lean_replaceRef(x_11, x_28);
  lean_dec(x_28);
  lean_dec(x_11);
  x_34 = lean_alloc_ctor(0, 8, 0);
  lean_ctor_set(x_34, 0, x_25);
  lean_ctor_set(x_34, 1, x_26);
  lean_ctor_set(x_34, 2, x_27);
  lean_ctor_set(x_34, 3, x_33);
  lean_ctor_set(x_34, 4, x_29);
  lean_ctor_set(x_34, 5, x_30);
  lean_ctor_set(x_34, 6, x_31);
  lean_ctor_set(x_34, 7, x_32);
  x_35 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_mkOp(x_12, x_16, x_19, x_2, x_3, x_4, x_5, x_34, x_7, x_20);
  return x_35;
  }
  }
  else
  {
  uint8_t x_36; 
  lean_dec(x_16);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_36 = !lean_is_exclusive(x_18);
  if (x_36 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  x_37 = lean_ctor_get(x_18, 0);
  x_38 = lean_ctor_get(x_18, 1);
  lean_inc(x_38);
  lean_inc(x_37);
  lean_dec(x_18);
  x_39 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_39, 0, x_37);
  lean_ctor_set(x_39, 1, x_38);
  return x_39;
  }
  }
  }
  else
  {
  uint8_t x_40; 
  lean_dec(x_14);
  lean_dec(x_12);
  lean_dec(x_11);
  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_40 = !lean_is_exclusive(x_15);
  if (x_40 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; 
  x_41 = lean_ctor_get(x_15, 0);
  x_42 = lean_ctor_get(x_15, 1);
  lean_inc(x_42);
  lean_inc(x_41);
  lean_dec(x_15);
  x_43 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_43, 0, x_41);
  lean_ctor_set(x_43, 1, x_42);
  return x_43;
  }
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  lean_object* x_13; uint8_t x_14; 
  x_13 = lean_box(0);
  x_14 = !lean_is_exclusive(x_10);
  if (x_14 == 0)
  {
  lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_15 = lean_ctor_get(x_10, 3);
  x_16 = l_Lean_replaceRef(x_1, x_15);
  lean_dec(x_15);
  lean_ctor_set(x_10, 3, x_16);
  x_17 = l_Lean_Elab_Term_mkCoe(x_2, x_3, x_4, x_13, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  if (lean_obj_tag(x_17) == 0)
  {
  uint8_t x_18; 
  x_18 = !lean_is_exclusive(x_17);
  if (x_18 == 0)
  {
  lean_object* x_19; lean_object* x_20; 
  x_19 = lean_ctor_get(x_17, 0);
  x_20 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_20, 0, x_1);
  lean_ctor_set(x_20, 1, x_19);
  lean_ctor_set(x_17, 0, x_20);
  return x_17;
  }
  else
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_21 = lean_ctor_get(x_17, 0);
  x_22 = lean_ctor_get(x_17, 1);
  lean_inc(x_22);
  lean_inc(x_21);
  lean_dec(x_17);
  x_23 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_23, 0, x_1);
  lean_ctor_set(x_23, 1, x_21);
  x_24 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_24, 0, x_23);
  lean_ctor_set(x_24, 1, x_22);
  return x_24;
  }
  }
  else
  {
  uint8_t x_25; 
  lean_dec(x_1);
  x_25 = !lean_is_exclusive(x_17);
  if (x_25 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_17, 0);
  x_27 = lean_ctor_get(x_17, 1);
  lean_inc(x_27);
  lean_inc(x_26);
  lean_dec(x_17);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  return x_28;
  }
  }
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  x_29 = lean_ctor_get(x_10, 0);
  x_30 = lean_ctor_get(x_10, 1);
  x_31 = lean_ctor_get(x_10, 2);
  x_32 = lean_ctor_get(x_10, 3);
  x_33 = lean_ctor_get(x_10, 4);
  x_34 = lean_ctor_get(x_10, 5);
  x_35 = lean_ctor_get(x_10, 6);
  x_36 = lean_ctor_get(x_10, 7);
  lean_inc(x_36);
  lean_inc(x_35);
  lean_inc(x_34);
  lean_inc(x_33);
  lean_inc(x_32);
  lean_inc(x_31);
  lean_inc(x_30);
  lean_inc(x_29);
  lean_dec(x_10);
  x_37 = l_Lean_replaceRef(x_1, x_32);
  lean_dec(x_32);
  x_38 = lean_alloc_ctor(0, 8, 0);
  lean_ctor_set(x_38, 0, x_29);
  lean_ctor_set(x_38, 1, x_30);
  lean_ctor_set(x_38, 2, x_31);
  lean_ctor_set(x_38, 3, x_37);
  lean_ctor_set(x_38, 4, x_33);
  lean_ctor_set(x_38, 5, x_34);
  lean_ctor_set(x_38, 6, x_35);
  lean_ctor_set(x_38, 7, x_36);
  x_39 = l_Lean_Elab_Term_mkCoe(x_2, x_3, x_4, x_13, x_13, x_6, x_7, x_8, x_9, x_38, x_11, x_12);
  if (lean_obj_tag(x_39) == 0)
  {
  lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_40 = lean_ctor_get(x_39, 0);
  lean_inc(x_40);
  x_41 = lean_ctor_get(x_39, 1);
  lean_inc(x_41);
  if (lean_is_exclusive(x_39)) {
   lean_ctor_release(x_39, 0);
   lean_ctor_release(x_39, 1);
   x_42 = x_39;
  } else {
   lean_dec_ref(x_39);
   x_42 = lean_box(0);
  }
  x_43 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_43, 0, x_1);
  lean_ctor_set(x_43, 1, x_40);
  if (lean_is_scalar(x_42)) {
   x_44 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_44 = x_42;
  }
  lean_ctor_set(x_44, 0, x_43);
  lean_ctor_set(x_44, 1, x_41);
  return x_44;
  }
  else
  {
  lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; 
  lean_dec(x_1);
  x_45 = lean_ctor_get(x_39, 0);
  lean_inc(x_45);
  x_46 = lean_ctor_get(x_39, 1);
  lean_inc(x_46);
  if (lean_is_exclusive(x_39)) {
   lean_ctor_release(x_39, 0);
   lean_ctor_release(x_39, 1);
   x_47 = x_39;
  } else {
   lean_dec_ref(x_39);
   x_47 = lean_box(0);
  }
  if (lean_is_scalar(x_47)) {
   x_48 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_48 = x_47;
  }
  lean_ctor_set(x_48, 0, x_45);
  lean_ctor_set(x_48, 1, x_46);
  return x_48;
  }
  }
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("added coercion: ");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string(" : ");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__3;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__5() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string(" => ");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__6() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__5;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, 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; uint8_t x_17; 
  lean_dec(x_7);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_2);
  lean_inc(x_1);
  x_15 = l_Lean_Meta_isExprDefEqGuarded(x_1, x_2, x_10, x_11, x_12, x_13, x_14);
  x_16 = lean_ctor_get(x_15, 0);
  lean_inc(x_16);
  x_17 = lean_unbox(x_16);
  lean_dec(x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; 
  lean_dec(x_6);
  x_18 = lean_ctor_get(x_15, 1);
  lean_inc(x_18);
  lean_dec(x_15);
  x_41 = lean_st_ref_get(x_13, x_18);
  x_42 = lean_ctor_get(x_41, 0);
  lean_inc(x_42);
  x_43 = lean_ctor_get(x_42, 3);
  lean_inc(x_43);
  lean_dec(x_42);
  x_44 = lean_ctor_get_uint8(x_43, sizeof(void*)*1);
  lean_dec(x_43);
  if (x_44 == 0)
  {
  lean_object* x_45; uint8_t x_46; 
  x_45 = lean_ctor_get(x_41, 1);
  lean_inc(x_45);
  lean_dec(x_41);
  x_46 = 0;
  x_19 = x_46;
  x_20 = x_45;
  goto block_40;
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; 
  x_47 = lean_ctor_get(x_41, 1);
  lean_inc(x_47);
  lean_dec(x_41);
  lean_inc(x_5);
  x_48 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_5, x_8, x_9, x_10, x_11, x_12, x_13, x_47);
  x_49 = lean_ctor_get(x_48, 0);
  lean_inc(x_49);
  x_50 = lean_ctor_get(x_48, 1);
  lean_inc(x_50);
  lean_dec(x_48);
  x_51 = lean_unbox(x_49);
  lean_dec(x_49);
  x_19 = x_51;
  x_20 = x_50;
  goto block_40;
  }
  block_40:
  {
  if (x_19 == 0)
  {
  lean_object* x_21; lean_object* x_22; 
  lean_dec(x_5);
  x_21 = lean_box(0);
  x_22 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__1(x_3, x_1, x_2, x_4, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_20);
  return x_22;
  }
  else
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  lean_inc(x_4);
  x_23 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_23, 0, x_4);
  x_24 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__2;
  x_25 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_25, 0, x_24);
  lean_ctor_set(x_25, 1, x_23);
  x_26 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__4;
  x_27 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_27, 0, x_25);
  lean_ctor_set(x_27, 1, x_26);
  lean_inc(x_2);
  x_28 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_28, 0, x_2);
  x_29 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_29, 0, x_27);
  lean_ctor_set(x_29, 1, x_28);
  x_30 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__6;
  x_31 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_31, 0, x_29);
  lean_ctor_set(x_31, 1, x_30);
  lean_inc(x_1);
  x_32 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_32, 0, x_1);
  x_33 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_33, 0, x_31);
  lean_ctor_set(x_33, 1, x_32);
  x_34 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_35 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_35, 0, x_33);
  lean_ctor_set(x_35, 1, x_34);
  x_36 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_5, x_35, x_8, x_9, x_10, x_11, x_12, x_13, x_20);
  x_37 = lean_ctor_get(x_36, 0);
  lean_inc(x_37);
  x_38 = lean_ctor_get(x_36, 1);
  lean_inc(x_38);
  lean_dec(x_36);
  x_39 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__1(x_3, x_1, x_2, x_4, x_37, x_8, x_9, x_10, x_11, x_12, x_13, x_38);
  lean_dec(x_37);
  return x_39;
  }
  }
  }
  else
  {
  uint8_t x_52; 
  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_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_52 = !lean_is_exclusive(x_15);
  if (x_52 == 0)
  {
  lean_object* x_53; 
  x_53 = lean_ctor_get(x_15, 0);
  lean_dec(x_53);
  lean_ctor_set(x_15, 0, x_6);
  return x_15;
  }
  else
  {
  lean_object* x_54; lean_object* x_55; 
  x_54 = lean_ctor_get(x_15, 1);
  lean_inc(x_54);
  lean_dec(x_15);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_6);
  lean_ctor_set(x_55, 1, x_54);
  return x_55;
  }
  }
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("visiting ");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string(" =?= ");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__3;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go(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:
  {
  if (lean_obj_tag(x_2) == 0)
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_10 = lean_ctor_get(x_2, 0);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_2, 1);
  lean_inc(x_11);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_11);
  x_12 = lean_infer_type(x_11, x_5, x_6, x_7, x_8, x_9);
  if (lean_obj_tag(x_12) == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; 
  x_13 = lean_ctor_get(x_12, 0);
  lean_inc(x_13);
  x_14 = lean_ctor_get(x_12, 1);
  lean_inc(x_14);
  lean_dec(x_12);
  x_15 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__2;
  x_38 = lean_st_ref_get(x_8, x_14);
  x_39 = lean_ctor_get(x_38, 0);
  lean_inc(x_39);
  x_40 = lean_ctor_get(x_39, 3);
  lean_inc(x_40);
  lean_dec(x_39);
  x_41 = lean_ctor_get_uint8(x_40, sizeof(void*)*1);
  lean_dec(x_40);
  if (x_41 == 0)
  {
  lean_object* x_42; uint8_t x_43; 
  x_42 = lean_ctor_get(x_38, 1);
  lean_inc(x_42);
  lean_dec(x_38);
  x_43 = 0;
  x_16 = x_43;
  x_17 = x_42;
  goto block_37;
  }
  else
  {
  lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; 
  x_44 = lean_ctor_get(x_38, 1);
  lean_inc(x_44);
  lean_dec(x_38);
  x_45 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_44);
  x_46 = lean_ctor_get(x_45, 0);
  lean_inc(x_46);
  x_47 = lean_ctor_get(x_45, 1);
  lean_inc(x_47);
  lean_dec(x_45);
  x_48 = lean_unbox(x_46);
  lean_dec(x_46);
  x_16 = x_48;
  x_17 = x_47;
  goto block_37;
  }
  block_37:
  {
  if (x_16 == 0)
  {
  lean_object* x_18; lean_object* x_19; 
  x_18 = lean_box(0);
  x_19 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2(x_1, x_13, x_10, x_11, x_15, x_2, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_17);
  return x_19;
  }
  else
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
  lean_inc(x_11);
  x_20 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_20, 0, x_11);
  x_21 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__2;
  x_22 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_22, 0, x_21);
  lean_ctor_set(x_22, 1, x_20);
  x_23 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__4;
  x_24 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_24, 0, x_22);
  lean_ctor_set(x_24, 1, x_23);
  lean_inc(x_13);
  x_25 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_25, 0, x_13);
  x_26 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_26, 0, x_24);
  lean_ctor_set(x_26, 1, x_25);
  x_27 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__4;
  x_28 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_28, 0, x_26);
  lean_ctor_set(x_28, 1, x_27);
  lean_inc(x_1);
  x_29 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_29, 0, x_1);
  x_30 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_30, 0, x_28);
  lean_ctor_set(x_30, 1, x_29);
  x_31 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_32 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_32, 0, x_30);
  lean_ctor_set(x_32, 1, x_31);
  x_33 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_15, x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_17);
  x_34 = lean_ctor_get(x_33, 0);
  lean_inc(x_34);
  x_35 = lean_ctor_get(x_33, 1);
  lean_inc(x_35);
  lean_dec(x_33);
  x_36 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2(x_1, x_13, x_10, x_11, x_15, x_2, x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_35);
  return x_36;
  }
  }
  }
  else
  {
  uint8_t x_49; 
  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);
  lean_dec(x_1);
  x_49 = !lean_is_exclusive(x_12);
  if (x_49 == 0)
  {
  return x_12;
  }
  else
  {
  lean_object* x_50; lean_object* x_51; lean_object* x_52; 
  x_50 = lean_ctor_get(x_12, 0);
  x_51 = lean_ctor_get(x_12, 1);
  lean_inc(x_51);
  lean_inc(x_50);
  lean_dec(x_12);
  x_52 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_52, 0, x_50);
  lean_ctor_set(x_52, 1, x_51);
  return x_52;
  }
  }
  }
  else
  {
  uint8_t x_53; 
  x_53 = !lean_is_exclusive(x_2);
  if (x_53 == 0)
  {
  lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; 
  x_54 = lean_ctor_get(x_2, 0);
  x_55 = lean_ctor_get(x_2, 1);
  x_56 = lean_ctor_get(x_2, 2);
  x_57 = lean_ctor_get(x_2, 3);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_1);
  x_58 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  if (lean_obj_tag(x_58) == 0)
  {
  lean_object* x_59; lean_object* x_60; lean_object* x_61; 
  x_59 = lean_ctor_get(x_58, 0);
  lean_inc(x_59);
  x_60 = lean_ctor_get(x_58, 1);
  lean_inc(x_60);
  lean_dec(x_58);
  x_61 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go(x_1, x_57, x_3, x_4, x_5, x_6, x_7, x_8, x_60);
  if (lean_obj_tag(x_61) == 0)
  {
  uint8_t x_62; 
  x_62 = !lean_is_exclusive(x_61);
  if (x_62 == 0)
  {
  lean_object* x_63; 
  x_63 = lean_ctor_get(x_61, 0);
  lean_ctor_set(x_2, 3, x_63);
  lean_ctor_set(x_2, 2, x_59);
  lean_ctor_set(x_61, 0, x_2);
  return x_61;
  }
  else
  {
  lean_object* x_64; lean_object* x_65; lean_object* x_66; 
  x_64 = lean_ctor_get(x_61, 0);
  x_65 = lean_ctor_get(x_61, 1);
  lean_inc(x_65);
  lean_inc(x_64);
  lean_dec(x_61);
  lean_ctor_set(x_2, 3, x_64);
  lean_ctor_set(x_2, 2, x_59);
  x_66 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_66, 0, x_2);
  lean_ctor_set(x_66, 1, x_65);
  return x_66;
  }
  }
  else
  {
  uint8_t x_67; 
  lean_dec(x_59);
  lean_free_object(x_2);
  lean_dec(x_55);
  lean_dec(x_54);
  x_67 = !lean_is_exclusive(x_61);
  if (x_67 == 0)
  {
  return x_61;
  }
  else
  {
  lean_object* x_68; lean_object* x_69; lean_object* x_70; 
  x_68 = lean_ctor_get(x_61, 0);
  x_69 = lean_ctor_get(x_61, 1);
  lean_inc(x_69);
  lean_inc(x_68);
  lean_dec(x_61);
  x_70 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_70, 0, x_68);
  lean_ctor_set(x_70, 1, x_69);
  return x_70;
  }
  }
  }
  else
  {
  uint8_t x_71; 
  lean_free_object(x_2);
  lean_dec(x_57);
  lean_dec(x_55);
  lean_dec(x_54);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_1);
  x_71 = !lean_is_exclusive(x_58);
  if (x_71 == 0)
  {
  return x_58;
  }
  else
  {
  lean_object* x_72; lean_object* x_73; lean_object* x_74; 
  x_72 = lean_ctor_get(x_58, 0);
  x_73 = lean_ctor_get(x_58, 1);
  lean_inc(x_73);
  lean_inc(x_72);
  lean_dec(x_58);
  x_74 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_74, 0, x_72);
  lean_ctor_set(x_74, 1, x_73);
  return x_74;
  }
  }
  }
  else
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; 
  x_75 = lean_ctor_get(x_2, 0);
  x_76 = lean_ctor_get(x_2, 1);
  x_77 = lean_ctor_get(x_2, 2);
  x_78 = lean_ctor_get(x_2, 3);
  lean_inc(x_78);
  lean_inc(x_77);
  lean_inc(x_76);
  lean_inc(x_75);
  lean_dec(x_2);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_1);
  x_79 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go(x_1, x_77, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  if (lean_obj_tag(x_79) == 0)
  {
  lean_object* x_80; lean_object* x_81; lean_object* x_82; 
  x_80 = lean_ctor_get(x_79, 0);
  lean_inc(x_80);
  x_81 = lean_ctor_get(x_79, 1);
  lean_inc(x_81);
  lean_dec(x_79);
  x_82 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go(x_1, x_78, x_3, x_4, x_5, x_6, x_7, x_8, x_81);
  if (lean_obj_tag(x_82) == 0)
  {
  lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
  x_83 = lean_ctor_get(x_82, 0);
  lean_inc(x_83);
  x_84 = lean_ctor_get(x_82, 1);
  lean_inc(x_84);
  if (lean_is_exclusive(x_82)) {
   lean_ctor_release(x_82, 0);
   lean_ctor_release(x_82, 1);
   x_85 = x_82;
  } else {
   lean_dec_ref(x_82);
   x_85 = lean_box(0);
  }
  x_86 = lean_alloc_ctor(1, 4, 0);
  lean_ctor_set(x_86, 0, x_75);
  lean_ctor_set(x_86, 1, x_76);
  lean_ctor_set(x_86, 2, x_80);
  lean_ctor_set(x_86, 3, x_83);
  if (lean_is_scalar(x_85)) {
   x_87 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_87 = x_85;
  }
  lean_ctor_set(x_87, 0, x_86);
  lean_ctor_set(x_87, 1, x_84);
  return x_87;
  }
  else
  {
  lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; 
  lean_dec(x_80);
  lean_dec(x_76);
  lean_dec(x_75);
  x_88 = lean_ctor_get(x_82, 0);
  lean_inc(x_88);
  x_89 = lean_ctor_get(x_82, 1);
  lean_inc(x_89);
  if (lean_is_exclusive(x_82)) {
   lean_ctor_release(x_82, 0);
   lean_ctor_release(x_82, 1);
   x_90 = x_82;
  } else {
   lean_dec_ref(x_82);
   x_90 = lean_box(0);
  }
  if (lean_is_scalar(x_90)) {
   x_91 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_91 = x_90;
  }
  lean_ctor_set(x_91, 0, x_88);
  lean_ctor_set(x_91, 1, x_89);
  return x_91;
  }
  }
  else
  {
  lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; 
  lean_dec(x_78);
  lean_dec(x_76);
  lean_dec(x_75);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_1);
  x_92 = lean_ctor_get(x_79, 0);
  lean_inc(x_92);
  x_93 = lean_ctor_get(x_79, 1);
  lean_inc(x_93);
  if (lean_is_exclusive(x_79)) {
   lean_ctor_release(x_79, 0);
   lean_ctor_release(x_79, 1);
   x_94 = x_79;
  } else {
   lean_dec_ref(x_79);
   x_94 = lean_box(0);
  }
  if (lean_is_scalar(x_94)) {
   x_95 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_95 = x_94;
  }
  lean_ctor_set(x_95, 0, x_92);
  lean_ctor_set(x_95, 1, x_93);
  return x_95;
  }
  }
  }
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  lean_object* x_13; 
  x_13 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  lean_dec(x_5);
  return x_13;
  }
  }
  lean_object* l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; 
  x_10 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go(x_2, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
  return x_10;
  }
  }
  lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; lean_object* x_12; 
  x_11 = lean_box(0);
  x_12 = l_Lean_Elab_Term_ensureHasType(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  return x_12;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("result: ");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  uint8_t x_13; 
  lean_dec(x_5);
  x_13 = lean_ctor_get_uint8(x_1, sizeof(void*)*1);
  if (x_13 == 0)
  {
  lean_object* x_14; 
  x_14 = lean_ctor_get(x_1, 0);
  lean_inc(x_14);
  lean_dec(x_1);
  if (lean_obj_tag(x_14) == 0)
  {
  lean_object* x_15; 
  lean_dec(x_4);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_15 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr(x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  if (lean_obj_tag(x_15) == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_16 = lean_ctor_get(x_15, 0);
  lean_inc(x_16);
  x_17 = lean_ctor_get(x_15, 1);
  lean_inc(x_17);
  lean_dec(x_15);
  x_18 = lean_box(0);
  x_19 = l_Lean_Elab_Term_ensureHasType(x_3, x_16, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_17);
  return x_19;
  }
  else
  {
  uint8_t x_20; 
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_3);
  x_20 = !lean_is_exclusive(x_15);
  if (x_20 == 0)
  {
  return x_15;
  }
  else
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_21 = lean_ctor_get(x_15, 0);
  x_22 = lean_ctor_get(x_15, 1);
  lean_inc(x_22);
  lean_inc(x_21);
  lean_dec(x_15);
  x_23 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_23, 0, x_21);
  lean_ctor_set(x_23, 1, x_22);
  return x_23;
  }
  }
  }
  else
  {
  lean_object* x_24; lean_object* x_25; 
  x_24 = lean_ctor_get(x_14, 0);
  lean_inc(x_24);
  lean_dec(x_14);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_25 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go(x_24, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  if (lean_obj_tag(x_25) == 0)
  {
  lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_26 = lean_ctor_get(x_25, 0);
  lean_inc(x_26);
  x_27 = lean_ctor_get(x_25, 1);
  lean_inc(x_27);
  lean_dec(x_25);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_28 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr(x_26, x_6, x_7, x_8, x_9, x_10, x_11, x_27);
  if (lean_obj_tag(x_28) == 0)
  {
  lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; 
  x_29 = lean_ctor_get(x_28, 0);
  lean_inc(x_29);
  x_30 = lean_ctor_get(x_28, 1);
  lean_inc(x_30);
  lean_dec(x_28);
  x_45 = lean_st_ref_get(x_11, x_30);
  x_46 = lean_ctor_get(x_45, 0);
  lean_inc(x_46);
  x_47 = lean_ctor_get(x_46, 3);
  lean_inc(x_47);
  lean_dec(x_46);
  x_48 = lean_ctor_get_uint8(x_47, sizeof(void*)*1);
  lean_dec(x_47);
  if (x_48 == 0)
  {
  lean_object* x_49; uint8_t x_50; 
  x_49 = lean_ctor_get(x_45, 1);
  lean_inc(x_49);
  lean_dec(x_45);
  x_50 = 0;
  x_31 = x_50;
  x_32 = x_49;
  goto block_44;
  }
  else
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; 
  x_51 = lean_ctor_get(x_45, 1);
  lean_inc(x_51);
  lean_dec(x_45);
  lean_inc(x_4);
  x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_51);
  x_53 = lean_ctor_get(x_52, 0);
  lean_inc(x_53);
  x_54 = lean_ctor_get(x_52, 1);
  lean_inc(x_54);
  lean_dec(x_52);
  x_55 = lean_unbox(x_53);
  lean_dec(x_53);
  x_31 = x_55;
  x_32 = x_54;
  goto block_44;
  }
  block_44:
  {
  if (x_31 == 0)
  {
  lean_object* x_33; lean_object* x_34; 
  lean_dec(x_4);
  x_33 = lean_box(0);
  x_34 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__1(x_3, x_29, x_33, x_6, x_7, x_8, x_9, x_10, x_11, x_32);
  return x_34;
  }
  else
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
  lean_inc(x_29);
  x_35 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_35, 0, x_29);
  x_36 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2___closed__2;
  x_37 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_37, 0, x_36);
  lean_ctor_set(x_37, 1, x_35);
  x_38 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_39 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_39, 0, x_37);
  lean_ctor_set(x_39, 1, x_38);
  x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_4, x_39, x_6, x_7, x_8, x_9, x_10, x_11, x_32);
  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 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__1(x_3, x_29, x_41, x_6, x_7, x_8, x_9, x_10, x_11, x_42);
  lean_dec(x_41);
  return x_43;
  }
  }
  }
  else
  {
  uint8_t x_56; 
  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);
  x_56 = !lean_is_exclusive(x_28);
  if (x_56 == 0)
  {
  return x_28;
  }
  else
  {
  lean_object* x_57; lean_object* x_58; lean_object* x_59; 
  x_57 = lean_ctor_get(x_28, 0);
  x_58 = lean_ctor_get(x_28, 1);
  lean_inc(x_58);
  lean_inc(x_57);
  lean_dec(x_28);
  x_59 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_59, 0, x_57);
  lean_ctor_set(x_59, 1, x_58);
  return x_59;
  }
  }
  }
  else
  {
  uint8_t x_60; 
  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);
  x_60 = !lean_is_exclusive(x_25);
  if (x_60 == 0)
  {
  return x_25;
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; 
  x_61 = lean_ctor_get(x_25, 0);
  x_62 = lean_ctor_get(x_25, 1);
  lean_inc(x_62);
  lean_inc(x_61);
  lean_dec(x_25);
  x_63 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_63, 0, x_61);
  lean_ctor_set(x_63, 1, x_62);
  return x_63;
  }
  }
  }
  }
  else
  {
  lean_object* x_64; 
  lean_dec(x_4);
  lean_dec(x_1);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_64 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toExpr(x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  if (lean_obj_tag(x_64) == 0)
  {
  lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
  x_65 = lean_ctor_get(x_64, 0);
  lean_inc(x_65);
  x_66 = lean_ctor_get(x_64, 1);
  lean_inc(x_66);
  lean_dec(x_64);
  x_67 = lean_box(0);
  x_68 = l_Lean_Elab_Term_ensureHasType(x_3, x_65, x_67, x_6, x_7, x_8, x_9, x_10, x_11, x_66);
  return x_68;
  }
  else
  {
  uint8_t x_69; 
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_3);
  x_69 = !lean_is_exclusive(x_64);
  if (x_69 == 0)
  {
  return x_64;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_64, 0);
  x_71 = lean_ctor_get(x_64, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_64);
  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;
  }
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("hasUncomparable: ");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string(", maxType: ");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__3;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__5() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("false");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__6() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__5;
  x_2 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__7() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__6;
  x_2 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__8() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2;
  x_2 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__7;
  x_3 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__9() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__8;
  x_2 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4;
  x_3 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__10() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("<not-available>");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__11() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__10;
  x_2 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__12() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__11;
  x_2 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__13() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__9;
  x_2 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__12;
  x_3 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__14() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__13;
  x_2 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_3 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__15() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("true");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__16() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__15;
  x_2 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__17() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__16;
  x_2 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__18() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2;
  x_2 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__17;
  x_3 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__19() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__18;
  x_2 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4;
  x_3 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__20() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__19;
  x_2 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__12;
  x_3 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__21() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__20;
  x_2 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_3 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; 
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  x_10 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree(x_1, x_3, 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);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  lean_inc(x_11);
  x_13 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
  if (lean_obj_tag(x_13) == 0)
  {
  lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; 
  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___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__2;
  x_55 = lean_st_ref_get(x_8, x_15);
  x_56 = lean_ctor_get(x_55, 0);
  lean_inc(x_56);
  x_57 = lean_ctor_get(x_56, 3);
  lean_inc(x_57);
  lean_dec(x_56);
  x_58 = lean_ctor_get_uint8(x_57, sizeof(void*)*1);
  lean_dec(x_57);
  if (x_58 == 0)
  {
  lean_object* x_59; uint8_t x_60; 
  x_59 = lean_ctor_get(x_55, 1);
  lean_inc(x_59);
  lean_dec(x_55);
  x_60 = 0;
  x_17 = x_60;
  x_18 = x_59;
  goto block_54;
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; 
  x_61 = lean_ctor_get(x_55, 1);
  lean_inc(x_61);
  lean_dec(x_55);
  x_62 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_61);
  x_63 = lean_ctor_get(x_62, 0);
  lean_inc(x_63);
  x_64 = lean_ctor_get(x_62, 1);
  lean_inc(x_64);
  lean_dec(x_62);
  x_65 = lean_unbox(x_63);
  lean_dec(x_63);
  x_17 = x_65;
  x_18 = x_64;
  goto block_54;
  }
  block_54:
  {
  if (x_17 == 0)
  {
  lean_object* x_19; lean_object* x_20; 
  x_19 = lean_box(0);
  x_20 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2(x_14, x_11, x_2, x_16, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_18);
  return x_20;
  }
  else
  {
  uint8_t x_21; 
  x_21 = lean_ctor_get_uint8(x_14, sizeof(void*)*1);
  if (x_21 == 0)
  {
  lean_object* x_22; 
  x_22 = lean_ctor_get(x_14, 0);
  lean_inc(x_22);
  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 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__14;
  x_24 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_16, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_18);
  x_25 = lean_ctor_get(x_24, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_24, 1);
  lean_inc(x_26);
  lean_dec(x_24);
  x_27 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2(x_14, x_11, x_2, x_16, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_26);
  return x_27;
  }
  else
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  x_28 = lean_ctor_get(x_22, 0);
  lean_inc(x_28);
  lean_dec(x_22);
  x_29 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_29, 0, x_28);
  x_30 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__9;
  x_31 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_31, 0, x_30);
  lean_ctor_set(x_31, 1, x_29);
  x_32 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_33 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_33, 0, x_31);
  lean_ctor_set(x_33, 1, x_32);
  x_34 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_16, x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_18);
  x_35 = lean_ctor_get(x_34, 0);
  lean_inc(x_35);
  x_36 = lean_ctor_get(x_34, 1);
  lean_inc(x_36);
  lean_dec(x_34);
  x_37 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2(x_14, x_11, x_2, x_16, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_36);
  return x_37;
  }
  }
  else
  {
  lean_object* x_38; 
  x_38 = lean_ctor_get(x_14, 0);
  lean_inc(x_38);
  if (lean_obj_tag(x_38) == 0)
  {
  lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
  x_39 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__21;
  x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_16, x_39, x_3, x_4, x_5, x_6, x_7, x_8, x_18);
  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 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2(x_14, x_11, x_2, x_16, x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_42);
  return x_43;
  }
  else
  {
  lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; 
  x_44 = lean_ctor_get(x_38, 0);
  lean_inc(x_44);
  lean_dec(x_38);
  x_45 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_45, 0, x_44);
  x_46 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__19;
  x_47 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_47, 0, x_46);
  lean_ctor_set(x_47, 1, x_45);
  x_48 = l_Lean_Elab_Term_elabForIn_getMonad___closed__6;
  x_49 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  x_50 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(x_16, x_49, x_3, x_4, x_5, x_6, x_7, x_8, x_18);
  x_51 = lean_ctor_get(x_50, 0);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_50, 1);
  lean_inc(x_52);
  lean_dec(x_50);
  x_53 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2(x_14, x_11, x_2, x_16, x_51, x_3, x_4, x_5, x_6, x_7, x_8, x_52);
  return x_53;
  }
  }
  }
  }
  }
  else
  {
  uint8_t x_66; 
  lean_dec(x_11);
  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_66 = !lean_is_exclusive(x_13);
  if (x_66 == 0)
  {
  return x_13;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; 
  x_67 = lean_ctor_get(x_13, 0);
  x_68 = lean_ctor_get(x_13, 1);
  lean_inc(x_68);
  lean_inc(x_67);
  lean_dec(x_13);
  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_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_70 = !lean_is_exclusive(x_10);
  if (x_70 == 0)
  {
  return x_10;
  }
  else
  {
  lean_object* x_71; lean_object* x_72; lean_object* x_73; 
  x_71 = lean_ctor_get(x_10, 0);
  x_72 = lean_ctor_get(x_10, 1);
  lean_inc(x_72);
  lean_inc(x_71);
  lean_dec(x_10);
  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;
  }
  }
  }
  }
  lean_object* l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  lean_dec(x_3);
  return x_11;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("BinOp");
  return x_1;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__11;
  x_2 = l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__1;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("elabBinOp'");
  return x_1;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2;
  x_2 = l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__3;
  x_3 = lean_name_mk_string(x_1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__5() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_BinOp_elabBinOp_x27), 9, 0);
  return x_1;
  }
  }
  lean_object* l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_2 = l_Lean_Elab_Term_termElabAttribute;
  x_3 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__2;
  x_4 = l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4;
  x_5 = l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__5;
  x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
  return x_6;
  }
  }
  lean_object* l_Lean_Elab_Term_BinOp_initFn____x40_Lean_Elab_Extra___hyg_2693_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__2;
  x_3 = l_Lean_registerTraceClass(x_2, x_1);
  return x_3;
  }
  }
  lean_object* initialize_Init(lean_object*);
  lean_object* initialize_Lean_Elab_App(lean_object*);
  static bool _G_initialized = false;
  lean_object* initialize_Lean_Elab_Extra(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_Elab_App(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__1 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__1();
  lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__1);
  l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__2 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__2();
  lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__2);
  l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__3 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__3();
  lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__3);
  l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__4 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__4();
  lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabBinRel___spec__1___closed__4);
  l_Lean_Elab_Term_elabBinRel___lambda__2___closed__1 = _init_l_Lean_Elab_Term_elabBinRel___lambda__2___closed__1();
  lean_mark_persistent(l_Lean_Elab_Term_elabBinRel___lambda__2___closed__1);
  l_Lean_Elab_Term_elabBinRel___lambda__2___closed__2 = _init_l_Lean_Elab_Term_elabBinRel___lambda__2___closed__2();
  lean_mark_persistent(l_Lean_Elab_Term_elabBinRel___lambda__2___closed__2);
  l_Lean_Elab_Term_elabBinRel___lambda__2___closed__3 = _init_l_Lean_Elab_Term_elabBinRel___lambda__2___closed__3();
  lean_mark_persistent(l_Lean_Elab_Term_elabBinRel___lambda__2___closed__3);
  l_Lean_Elab_Term_elabBinRel___lambda__2___closed__4 = _init_l_Lean_Elab_Term_elabBinRel___lambda__2___closed__4();
  lean_mark_persistent(l_Lean_Elab_Term_elabBinRel___lambda__2___closed__4);
  l_Lean_Elab_Term_elabBinRel___lambda__2___closed__5 = _init_l_Lean_Elab_Term_elabBinRel___lambda__2___closed__5();
  lean_mark_persistent(l_Lean_Elab_Term_elabBinRel___lambda__2___closed__5);
  l_Lean_Elab_Term_elabBinRel___lambda__3___closed__1 = _init_l_Lean_Elab_Term_elabBinRel___lambda__3___closed__1();
  lean_mark_persistent(l_Lean_Elab_Term_elabBinRel___lambda__3___closed__1);
  l_Lean_Elab_Term_elabBinRel___lambda__3___closed__2 = _init_l_Lean_Elab_Term_elabBinRel___lambda__3___closed__2();
  lean_mark_persistent(l_Lean_Elab_Term_elabBinRel___lambda__3___closed__2);
  l_Lean_Elab_Term_elabBinRel___closed__1 = _init_l_Lean_Elab_Term_elabBinRel___closed__1();
  lean_mark_persistent(l_Lean_Elab_Term_elabBinRel___closed__1);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__1();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__1);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__2();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__2);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__3();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__3);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__4();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__4);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__5();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__5);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__6 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__6();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__6);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__7 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__7();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__7);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__8 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__8();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__8);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__9 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__9();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__9);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__10 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__10();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__10);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__11 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__11();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__11);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__12 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__12();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__12);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__13 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__13();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__13);
  l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__14 = _init_l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__14();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__14);
  res = l___regBuiltin_Lean_Elab_Term_elabBinRel(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l_Lean_Elab_Term_elabForIn_getMonad___closed__1 = _init_l_Lean_Elab_Term_elabForIn_getMonad___closed__1();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn_getMonad___closed__1);
  l_Lean_Elab_Term_elabForIn_getMonad___closed__2 = _init_l_Lean_Elab_Term_elabForIn_getMonad___closed__2();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn_getMonad___closed__2);
  l_Lean_Elab_Term_elabForIn_getMonad___closed__3 = _init_l_Lean_Elab_Term_elabForIn_getMonad___closed__3();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn_getMonad___closed__3);
  l_Lean_Elab_Term_elabForIn_getMonad___closed__4 = _init_l_Lean_Elab_Term_elabForIn_getMonad___closed__4();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn_getMonad___closed__4);
  l_Lean_Elab_Term_elabForIn_getMonad___closed__5 = _init_l_Lean_Elab_Term_elabForIn_getMonad___closed__5();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn_getMonad___closed__5);
  l_Lean_Elab_Term_elabForIn_getMonad___closed__6 = _init_l_Lean_Elab_Term_elabForIn_getMonad___closed__6();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn_getMonad___closed__6);
  l_Lean_Elab_Term_elabForIn_throwFailure___closed__1 = _init_l_Lean_Elab_Term_elabForIn_throwFailure___closed__1();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn_throwFailure___closed__1);
  l_Lean_Elab_Term_elabForIn_throwFailure___closed__2 = _init_l_Lean_Elab_Term_elabForIn_throwFailure___closed__2();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn_throwFailure___closed__2);
  l_Lean_Elab_Term_elabForIn___lambda__1___closed__1 = _init_l_Lean_Elab_Term_elabForIn___lambda__1___closed__1();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___lambda__1___closed__1);
  l_Lean_Elab_Term_elabForIn___lambda__1___closed__2 = _init_l_Lean_Elab_Term_elabForIn___lambda__1___closed__2();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___lambda__1___closed__2);
  l_Lean_Elab_Term_elabForIn___lambda__1___closed__3 = _init_l_Lean_Elab_Term_elabForIn___lambda__1___closed__3();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___lambda__1___closed__3);
  l_Lean_Elab_Term_elabForIn___lambda__1___closed__4 = _init_l_Lean_Elab_Term_elabForIn___lambda__1___closed__4();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___lambda__1___closed__4);
  l_Lean_Elab_Term_elabForIn___lambda__1___closed__5 = _init_l_Lean_Elab_Term_elabForIn___lambda__1___closed__5();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___lambda__1___closed__5);
  l_Lean_Elab_Term_elabForIn___closed__1 = _init_l_Lean_Elab_Term_elabForIn___closed__1();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__1);
  l_Lean_Elab_Term_elabForIn___closed__2 = _init_l_Lean_Elab_Term_elabForIn___closed__2();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__2);
  l_Lean_Elab_Term_elabForIn___closed__3 = _init_l_Lean_Elab_Term_elabForIn___closed__3();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__3);
  l_Lean_Elab_Term_elabForIn___closed__4 = _init_l_Lean_Elab_Term_elabForIn___closed__4();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__4);
  l_Lean_Elab_Term_elabForIn___closed__5 = _init_l_Lean_Elab_Term_elabForIn___closed__5();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__5);
  l_Lean_Elab_Term_elabForIn___closed__6 = _init_l_Lean_Elab_Term_elabForIn___closed__6();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__6);
  l_Lean_Elab_Term_elabForIn___closed__7 = _init_l_Lean_Elab_Term_elabForIn___closed__7();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__7);
  l_Lean_Elab_Term_elabForIn___closed__8 = _init_l_Lean_Elab_Term_elabForIn___closed__8();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__8);
  l_Lean_Elab_Term_elabForIn___closed__9 = _init_l_Lean_Elab_Term_elabForIn___closed__9();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__9);
  l_Lean_Elab_Term_elabForIn___closed__10 = _init_l_Lean_Elab_Term_elabForIn___closed__10();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__10);
  l_Lean_Elab_Term_elabForIn___closed__11 = _init_l_Lean_Elab_Term_elabForIn___closed__11();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__11);
  l_Lean_Elab_Term_elabForIn___closed__12 = _init_l_Lean_Elab_Term_elabForIn___closed__12();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__12);
  l_Lean_Elab_Term_elabForIn___closed__13 = _init_l_Lean_Elab_Term_elabForIn___closed__13();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__13);
  l_Lean_Elab_Term_elabForIn___closed__14 = _init_l_Lean_Elab_Term_elabForIn___closed__14();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__14);
  l_Lean_Elab_Term_elabForIn___closed__15 = _init_l_Lean_Elab_Term_elabForIn___closed__15();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__15);
  l_Lean_Elab_Term_elabForIn___closed__16 = _init_l_Lean_Elab_Term_elabForIn___closed__16();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__16);
  l_Lean_Elab_Term_elabForIn___closed__17 = _init_l_Lean_Elab_Term_elabForIn___closed__17();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__17);
  l_Lean_Elab_Term_elabForIn___closed__18 = _init_l_Lean_Elab_Term_elabForIn___closed__18();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__18);
  l_Lean_Elab_Term_elabForIn___closed__19 = _init_l_Lean_Elab_Term_elabForIn___closed__19();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__19);
  l_Lean_Elab_Term_elabForIn___closed__20 = _init_l_Lean_Elab_Term_elabForIn___closed__20();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__20);
  l_Lean_Elab_Term_elabForIn___closed__21 = _init_l_Lean_Elab_Term_elabForIn___closed__21();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__21);
  l_Lean_Elab_Term_elabForIn___closed__22 = _init_l_Lean_Elab_Term_elabForIn___closed__22();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__22);
  l_Lean_Elab_Term_elabForIn___closed__23 = _init_l_Lean_Elab_Term_elabForIn___closed__23();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__23);
  l_Lean_Elab_Term_elabForIn___closed__24 = _init_l_Lean_Elab_Term_elabForIn___closed__24();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__24);
  l_Lean_Elab_Term_elabForIn___closed__25 = _init_l_Lean_Elab_Term_elabForIn___closed__25();
  lean_mark_persistent(l_Lean_Elab_Term_elabForIn___closed__25);
  l___regBuiltin_Lean_Elab_Term_elabForIn___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabForIn___closed__1();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabForIn___closed__1);
  l___regBuiltin_Lean_Elab_Term_elabForIn___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabForIn___closed__2();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabForIn___closed__2);
  l___regBuiltin_Lean_Elab_Term_elabForIn___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_elabForIn___closed__3();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabForIn___closed__3);
  res = l___regBuiltin_Lean_Elab_Term_elabForIn(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__1 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__1();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__1);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__2 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__2();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__2);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__3 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__3();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__3);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__4 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__4();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_toTree_go___closed__4);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__1 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__1();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__1);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__2 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__2();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_hasCoe___closed__2);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_AnalyzeResult_max_x3f___default = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_AnalyzeResult_max_x3f___default();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_AnalyzeResult_max_x3f___default);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_AnalyzeResult_hasUncomparable___default = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_AnalyzeResult_hasUncomparable___default();
  l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__1 = _init_l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__1();
  lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__1);
  l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__2 = _init_l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__2();
  lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__2);
  l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__3 = _init_l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__3();
  lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__3);
  l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__4 = _init_l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__4();
  lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___spec__2___closed__4);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__1 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__1();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__1);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__2 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__2();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__2);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__3 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__3();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__3);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__4 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__4();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__4);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__5 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__5();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__5);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__6 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__6();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__6);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__7 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__7();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_analyze_go___closed__7);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__1 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__1();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__1);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__2 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__2();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__2);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__3 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__3();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__3);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__4 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__4();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__4);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__5 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__5();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__5);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__6 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__6();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___lambda__2___closed__6);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__1 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__1();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__1);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__2 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__2();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__2);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__3 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__3();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__3);
  l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__4 = _init_l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__4();
  lean_mark_persistent(l___private_Lean_Elab_Extra_0__Lean_Elab_Term_BinOp_applyCoe_go___closed__4);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2___closed__1 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2___closed__1();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2___closed__1);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2___closed__2 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2___closed__2();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___lambda__2___closed__2);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__1 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__1();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__1);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__3 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__3();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__3);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__5 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__5();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__5);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__6 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__6();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__6);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__7 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__7();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__7);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__8 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__8();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__8);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__9 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__9();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__9);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__10 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__10();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__10);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__11 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__11();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__11);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__12 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__12();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__12);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__13 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__13();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__13);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__14 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__14();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__14);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__15 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__15();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__15);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__16 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__16();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__16);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__17 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__17();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__17);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__18 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__18();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__18);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__19 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__19();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__19);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__20 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__20();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__20);
  l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__21 = _init_l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__21();
  lean_mark_persistent(l_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__21);
  l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__1();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__1);
  l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__2);
  l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__3 = _init_l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__3();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__3);
  l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4 = _init_l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__4);
  l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__5 = _init_l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__5();
  lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27___closed__5);
  res = l___regBuiltin_Lean_Elab_Term_BinOp_elabBinOp_x27(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = l_Lean_Elab_Term_BinOp_initFn____x40_Lean_Elab_Extra___hyg_2693_(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  return lean_io_result_mk_ok(lean_box(0));
  }
  #ifdef __cplusplus
  }
  #endif
  