text: // Lean compiler output
  // Module: Lean.Widget.InteractiveGoal
  // Imports: Init Lean.Meta.PPGoal Lean.Widget.InteractiveCode
  #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_List_reverse___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg(lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__1;
  LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_goalToInteractive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedInteractiveHypothesisBundle;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
  size_t lean_usize_add(size_t, size_t);
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__4(lean_object*);
  lean_object* lean_erase_macro_scopes(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_stringToMessageData(lean_object*);
  lean_object* lean_mk_empty_array_with_capacity(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__4(lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__6(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_411____rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__2;
  lean_object* l_Lean_Widget_ppExprTagged(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*);
  lean_object* lean_array_uget(lean_object*, size_t);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__12(lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_goalToInteractive___closed__3;
  lean_object* l_Lean_Json_getObjValAs_x3f(lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__2;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket(lean_object*);
  lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
  lean_object* l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__5___closed__1;
  extern lean_object* l_Lean_Meta_pp_auxDecls;
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__3;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__2___rarg(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_st_ref_get(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_addInteractiveHypothesisBundle___closed__2;
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__1(lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__3;
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__3(lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_InteractiveGoal_pretty___closed__2;
  LEAN_EXPORT lean_object* l_Lean_Widget_addInteractiveHypothesisBundle___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__3(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__1(lean_object*);
  lean_object* lean_array_push(lean_object*, lean_object*);
  lean_object* lean_array_get_size(lean_object*);
  static lean_object* l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__1;
  lean_object* l_Lean_Meta_isClass_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg___lambda__1(lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__2;
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1225_(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_411_(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2234_(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2637_(lean_object*);
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__2(lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg___boxed(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___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___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__3;
  lean_object* l_List_join___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t lean_usize_dec_lt(size_t, size_t);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_addInteractiveHypothesisBundle___closed__1;
  lean_object* l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg___closed__1;
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1225____rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3(lean_object*, lean_object*, size_t, size_t, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_InteractiveGoal_addLine(lean_object*);
  lean_object* l_Lean_Widget_TaggedText_stripTags___rarg(lean_object*);
  static lean_object* l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_InteractiveGoal_pretty(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_InteractiveHypothesisBundle_val_x3f___default;
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__3(lean_object*);
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_addInteractiveHypothesisBundle___spec__2___boxed(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_goalToInteractive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__2(lean_object*);
  uint8_t l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__4;
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__4;
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_addInteractiveHypothesisBundle___spec__1___boxed(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedInteractiveGoal;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__3(lean_object*);
  static lean_object* l_Lean_Widget_InteractiveGoal_pretty___closed__3;
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_goalToInteractive___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_Lean_Meta_withLCtx___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_goalToInteractive___lambda__1___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__3___rarg(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal(lean_object*);
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Widget_goalToInteractive___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_goalToInteractive___lambda__1___closed__2;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket(lean_object*);
  static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__5;
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg(lean_object*, lean_object*);
  static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__3;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_addInteractiveHypothesisBundle___spec__1(size_t, size_t, lean_object*);
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__4(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1(lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* lean_array_to_list(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Widget_goalToInteractive___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__7;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__1(lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__4(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2637____rarg(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Widget_InteractiveGoal_pretty___spec__2(lean_object*, lean_object*);
  uint8_t l_Array_isEmpty___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_List_filterAux___at_Lean_Widget_InteractiveGoal_pretty___spec__1(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__6(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__4(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  size_t lean_usize_of_nat(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_LocalDecl_fvarId(lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__2(lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_LocalDecl_type(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_addInteractiveHypothesisBundle___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Widget_goalToInteractive___spec__2(uint8_t, 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_Widget_goalToInteractive___closed__1;
  lean_object* l_String_intercalate(lean_object*, lean_object*);
  static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__10;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Json_opt___rarg(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__3(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__4___rarg(lean_object*);
  static lean_object* l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__2(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_addInteractiveHypothesisBundle(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket(lean_object*);
  static lean_object* l_Lean_Widget_goalToInteractive___closed__2;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_822____at_Lean_Meta_ppGoal_ppVars___spec__1(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal___boxed(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket(lean_object*);
  static lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg___closed__1;
  static lean_object* l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__2;
  uint8_t l_Lean_Name_isAnonymous(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__3___rarg(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__1(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_Json_mkObj(lean_object*);
  static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__6;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedInteractiveTermGoal;
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_MetavarContext_findDecl_x3f(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
  lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2234____rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__5(lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032_(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097_(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199_(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578_(lean_object*);
  static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_goalToInteractive___closed__4;
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_addInteractiveHypothesisBundle___spec__2(size_t, size_t, lean_object*);
  static lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__4;
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___spec__1(lean_object*);
  lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__1;
  static lean_object* l_Lean_Widget_InteractiveGoal_pretty___closed__1;
  static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__9;
  LEAN_EXPORT lean_object* l_Lean_Widget_goalToInteractive___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Widget_instInhabitedInteractiveGoal___closed__1;
  static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__4;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__8;
  static lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___closed__1;
  static lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__2;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg___lambda__3(lean_object*, lean_object*);
  lean_object* l_Lean_Meta_ToHide_collect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__4___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__5(lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__2(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_InteractiveGoal_mvarId_x3f___default;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* lean_simp_macro_scopes(lean_object*);
  static lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__6;
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__4(lean_object*);
  lean_object* l_Lean_Meta_getGoalPrefix(lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__2(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Widget_goalToInteractive___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__3;
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__1(lean_object*);
  lean_object* lean_nat_to_int(lean_object*);
  uint8_t l_Std_Format_isNil(lean_object*);
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t l_Lean_Expr_isSort(lean_object*);
  lean_object* l_Lean_LocalContext_sanitizeNames(lean_object*, lean_object*);
  static lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__5;
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__1(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Widget_goalToInteractive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  uint8_t lean_string_dec_eq(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* _init_l_Lean_Widget_InteractiveHypothesisBundle_val_x3f___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___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_Widget_instInhabitedInteractiveHypothesisBundle___closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("", 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__2;
  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_Widget_instInhabitedInteractiveHypothesisBundle___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__1;
  x_3 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__3;
  x_4 = 0;
  x_5 = lean_alloc_ctor(0, 4, 2);
  lean_ctor_set(x_5, 0, x_2);
  lean_ctor_set(x_5, 1, x_2);
  lean_ctor_set(x_5, 2, x_3);
  lean_ctor_set(x_5, 3, x_1);
  lean_ctor_set_uint8(x_5, sizeof(void*)*4, x_4);
  lean_ctor_set_uint8(x_5, sizeof(void*)*4 + 1, x_4);
  return x_5;
  }
  }
  static lean_object* _init_l_Lean_Widget_instInhabitedInteractiveHypothesisBundle() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__4;
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_box(0);
  x_2 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Json_getObjValD(x_2, x_3);
  if (lean_obj_tag(x_4) == 0)
  {
  lean_object* x_5; 
  lean_dec(x_1);
  x_5 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___closed__1;
  return x_5;
  }
  else
  {
  lean_object* x_6; 
  x_6 = lean_apply_1(x_1, x_4);
  if (lean_obj_tag(x_6) == 0)
  {
  uint8_t x_7; 
  x_7 = !lean_is_exclusive(x_6);
  if (x_7 == 0)
  {
  return x_6;
  }
  else
  {
  lean_object* x_8; lean_object* x_9; 
  x_8 = lean_ctor_get(x_6, 0);
  lean_inc(x_8);
  lean_dec(x_6);
  x_9 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_9, 0, x_8);
  return x_9;
  }
  }
  else
  {
  uint8_t x_10; 
  x_10 = !lean_is_exclusive(x_6);
  if (x_10 == 0)
  {
  lean_object* x_11; lean_object* x_12; 
  x_11 = lean_ctor_get(x_6, 0);
  x_12 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_12, 0, x_11);
  lean_ctor_set(x_6, 0, x_12);
  return x_6;
  }
  else
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_13 = lean_ctor_get(x_6, 0);
  lean_inc(x_13);
  lean_dec(x_6);
  x_14 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_14, 0, x_13);
  x_15 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_15, 0, x_14);
  return x_15;
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___boxed), 3, 0);
  return x_2;
  }
  }
  static lean_object* _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("names", 5);
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("fvarIds", 7);
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("type", 4);
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__4() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("val", 3);
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__5() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("isInstance", 10);
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__6() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("isType", 6);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  lean_object* x_6; lean_object* x_7; 
  x_6 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__1;
  x_7 = l_Lean_Json_getObjValAs_x3f(x_5, lean_box(0), x_1, x_6);
  if (lean_obj_tag(x_7) == 0)
  {
  uint8_t x_8; 
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_8 = !lean_is_exclusive(x_7);
  if (x_8 == 0)
  {
  return x_7;
  }
  else
  {
  lean_object* x_9; lean_object* x_10; 
  x_9 = lean_ctor_get(x_7, 0);
  lean_inc(x_9);
  lean_dec(x_7);
  x_10 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_10, 0, x_9);
  return x_10;
  }
  }
  else
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_11 = lean_ctor_get(x_7, 0);
  lean_inc(x_11);
  lean_dec(x_7);
  x_12 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__2;
  x_13 = l_Lean_Json_getObjValAs_x3f(x_5, lean_box(0), x_2, x_12);
  if (lean_obj_tag(x_13) == 0)
  {
  uint8_t x_14; 
  lean_dec(x_11);
  lean_dec(x_4);
  lean_dec(x_3);
  x_14 = !lean_is_exclusive(x_13);
  if (x_14 == 0)
  {
  return x_13;
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  x_15 = lean_ctor_get(x_13, 0);
  lean_inc(x_15);
  lean_dec(x_13);
  x_16 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_16, 0, x_15);
  return x_16;
  }
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_17 = lean_ctor_get(x_13, 0);
  lean_inc(x_17);
  lean_dec(x_13);
  x_18 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__3;
  lean_inc(x_3);
  x_19 = l_Lean_Json_getObjValAs_x3f(x_5, lean_box(0), x_3, x_18);
  if (lean_obj_tag(x_19) == 0)
  {
  uint8_t x_20; 
  lean_dec(x_17);
  lean_dec(x_11);
  lean_dec(x_4);
  lean_dec(x_3);
  x_20 = !lean_is_exclusive(x_19);
  if (x_20 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_21; lean_object* x_22; 
  x_21 = lean_ctor_get(x_19, 0);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_22, 0, x_21);
  return x_22;
  }
  }
  else
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; 
  x_23 = lean_ctor_get(x_19, 0);
  lean_inc(x_23);
  lean_dec(x_19);
  x_24 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__4;
  x_25 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg(x_3, x_5, x_24);
  if (lean_obj_tag(x_25) == 0)
  {
  uint8_t x_26; 
  lean_dec(x_23);
  lean_dec(x_17);
  lean_dec(x_11);
  lean_dec(x_4);
  x_26 = !lean_is_exclusive(x_25);
  if (x_26 == 0)
  {
  return x_25;
  }
  else
  {
  lean_object* x_27; lean_object* x_28; 
  x_27 = lean_ctor_get(x_25, 0);
  lean_inc(x_27);
  lean_dec(x_25);
  x_28 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_28, 0, x_27);
  return x_28;
  }
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_25, 0);
  lean_inc(x_29);
  lean_dec(x_25);
  x_30 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__5;
  lean_inc(x_4);
  x_31 = l_Lean_Json_getObjValAs_x3f(x_5, lean_box(0), x_4, x_30);
  if (lean_obj_tag(x_31) == 0)
  {
  uint8_t x_32; 
  lean_dec(x_29);
  lean_dec(x_23);
  lean_dec(x_17);
  lean_dec(x_11);
  lean_dec(x_4);
  x_32 = !lean_is_exclusive(x_31);
  if (x_32 == 0)
  {
  return x_31;
  }
  else
  {
  lean_object* x_33; lean_object* x_34; 
  x_33 = lean_ctor_get(x_31, 0);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_34, 0, x_33);
  return x_34;
  }
  }
  else
  {
  lean_object* x_35; lean_object* x_36; lean_object* x_37; 
  x_35 = lean_ctor_get(x_31, 0);
  lean_inc(x_35);
  lean_dec(x_31);
  x_36 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__6;
  x_37 = l_Lean_Json_getObjValAs_x3f(x_5, lean_box(0), x_4, x_36);
  if (lean_obj_tag(x_37) == 0)
  {
  uint8_t x_38; 
  lean_dec(x_35);
  lean_dec(x_29);
  lean_dec(x_23);
  lean_dec(x_17);
  lean_dec(x_11);
  x_38 = !lean_is_exclusive(x_37);
  if (x_38 == 0)
  {
  return x_37;
  }
  else
  {
  lean_object* x_39; lean_object* x_40; 
  x_39 = lean_ctor_get(x_37, 0);
  lean_inc(x_39);
  lean_dec(x_37);
  x_40 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_40, 0, x_39);
  return x_40;
  }
  }
  else
  {
  uint8_t x_41; 
  x_41 = !lean_is_exclusive(x_37);
  if (x_41 == 0)
  {
  lean_object* x_42; lean_object* x_43; 
  x_42 = lean_ctor_get(x_37, 0);
  x_43 = lean_alloc_ctor(0, 6, 0);
  lean_ctor_set(x_43, 0, x_11);
  lean_ctor_set(x_43, 1, x_17);
  lean_ctor_set(x_43, 2, x_23);
  lean_ctor_set(x_43, 3, x_29);
  lean_ctor_set(x_43, 4, x_35);
  lean_ctor_set(x_43, 5, x_42);
  lean_ctor_set(x_37, 0, x_43);
  return x_37;
  }
  else
  {
  lean_object* x_44; lean_object* x_45; lean_object* x_46; 
  x_44 = lean_ctor_get(x_37, 0);
  lean_inc(x_44);
  lean_dec(x_37);
  x_45 = lean_alloc_ctor(0, 6, 0);
  lean_ctor_set(x_45, 0, x_11);
  lean_ctor_set(x_45, 1, x_17);
  lean_ctor_set(x_45, 2, x_23);
  lean_ctor_set(x_45, 3, x_29);
  lean_ctor_set(x_45, 4, x_35);
  lean_ctor_set(x_45, 5, x_44);
  x_46 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_46, 0, x_45);
  return x_46;
  }
  }
  }
  }
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___boxed), 5, 0);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  lean_object* x_6; 
  x_6 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_5);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___boxed), 5, 4);
  lean_closure_set(x_5, 0, x_1);
  lean_closure_set(x_5, 1, x_2);
  lean_closure_set(x_5, 2, x_3);
  lean_closure_set(x_5, 3, x_4);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_alloc_closure((void*)(l_Lean_Widget_instFromJsonRpcEncodingPacket__1___rarg), 4, 0);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_411____rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 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; 
  x_6 = lean_ctor_get(x_5, 0);
  lean_inc(x_6);
  x_7 = lean_apply_1(x_1, x_6);
  x_8 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__1;
  x_9 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_9, 0, x_8);
  lean_ctor_set(x_9, 1, x_7);
  x_10 = lean_box(0);
  x_11 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_11, 0, x_9);
  lean_ctor_set(x_11, 1, x_10);
  x_12 = lean_ctor_get(x_5, 1);
  lean_inc(x_12);
  x_13 = lean_apply_1(x_2, x_12);
  x_14 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__2;
  x_15 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_15, 0, x_14);
  lean_ctor_set(x_15, 1, x_13);
  x_16 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_16, 0, x_15);
  lean_ctor_set(x_16, 1, x_10);
  x_17 = lean_ctor_get(x_5, 2);
  lean_inc(x_17);
  lean_inc(x_3);
  x_18 = lean_apply_1(x_3, x_17);
  x_19 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__3;
  x_20 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_20, 0, x_19);
  lean_ctor_set(x_20, 1, x_18);
  x_21 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_21, 0, x_20);
  lean_ctor_set(x_21, 1, x_10);
  x_22 = lean_ctor_get(x_5, 3);
  lean_inc(x_22);
  x_23 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__4;
  x_24 = l_Lean_Json_opt___rarg(x_3, x_23, x_22);
  x_25 = lean_ctor_get(x_5, 4);
  lean_inc(x_25);
  lean_inc(x_4);
  x_26 = lean_apply_1(x_4, x_25);
  x_27 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__5;
  x_28 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_28, 0, x_27);
  lean_ctor_set(x_28, 1, x_26);
  x_29 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_29, 0, x_28);
  lean_ctor_set(x_29, 1, x_10);
  x_30 = lean_ctor_get(x_5, 5);
  lean_inc(x_30);
  lean_dec(x_5);
  x_31 = lean_apply_1(x_4, x_30);
  x_32 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__6;
  x_33 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_33, 0, x_32);
  lean_ctor_set(x_33, 1, x_31);
  x_34 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_34, 0, x_33);
  lean_ctor_set(x_34, 1, x_10);
  x_35 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_35, 0, x_34);
  lean_ctor_set(x_35, 1, x_10);
  x_36 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_36, 0, x_29);
  lean_ctor_set(x_36, 1, x_35);
  x_37 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_37, 0, x_24);
  lean_ctor_set(x_37, 1, x_36);
  x_38 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_38, 0, x_21);
  lean_ctor_set(x_38, 1, x_37);
  x_39 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_39, 0, x_16);
  lean_ctor_set(x_39, 1, x_38);
  x_40 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_40, 0, x_11);
  lean_ctor_set(x_40, 1, x_39);
  x_41 = l_List_join___rarg(x_40);
  x_42 = l_Lean_Json_mkObj(x_41);
  return x_42;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_411_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_411____rarg), 5, 0);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_411____rarg), 5, 4);
  lean_closure_set(x_5, 0, x_1);
  lean_closure_set(x_5, 1, x_2);
  lean_closure_set(x_5, 2, x_3);
  lean_closure_set(x_5, 3, x_4);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_alloc_closure((void*)(l_Lean_Widget_instToJsonRpcEncodingPacket__1___rarg), 4, 0);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__1___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__2___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__3(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__3___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__4(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__4___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__5(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__5___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__6(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__6___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
  x_8 = lean_ctor_get(x_1, 0);
  lean_inc(x_8);
  lean_dec(x_1);
  x_9 = lean_ctor_get(x_8, 1);
  lean_inc(x_9);
  lean_dec(x_8);
  x_10 = lean_alloc_ctor(0, 6, 0);
  lean_ctor_set(x_10, 0, x_2);
  lean_ctor_set(x_10, 1, x_3);
  lean_ctor_set(x_10, 2, x_4);
  lean_ctor_set(x_10, 3, x_5);
  lean_ctor_set(x_10, 4, x_6);
  lean_ctor_set(x_10, 5, x_7);
  x_11 = lean_apply_2(x_9, lean_box(0), x_10);
  return x_11;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___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; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_11 = lean_ctor_get_uint8(x_1, sizeof(void*)*4 + 1);
  x_12 = lean_box(x_11);
  lean_inc(x_3);
  x_13 = lean_apply_4(x_2, lean_box(0), x_3, x_4, x_12);
  x_14 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__1), 7, 6);
  lean_closure_set(x_14, 0, x_3);
  lean_closure_set(x_14, 1, x_5);
  lean_closure_set(x_14, 2, x_6);
  lean_closure_set(x_14, 3, x_7);
  lean_closure_set(x_14, 4, x_8);
  lean_closure_set(x_14, 5, x_10);
  x_15 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_13, x_14);
  return x_15;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; lean_object* x_14; lean_object* x_15; 
  x_10 = lean_ctor_get(x_1, 0);
  lean_inc(x_10);
  lean_dec(x_1);
  x_11 = lean_ctor_get_uint8(x_2, sizeof(void*)*4);
  x_12 = lean_box(x_11);
  lean_inc(x_10);
  lean_inc(x_4);
  lean_inc(x_3);
  x_13 = lean_apply_4(x_10, lean_box(0), x_3, x_4, x_12);
  lean_inc(x_8);
  x_14 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__2___boxed), 10, 9);
  lean_closure_set(x_14, 0, x_2);
  lean_closure_set(x_14, 1, x_10);
  lean_closure_set(x_14, 2, x_3);
  lean_closure_set(x_14, 3, x_4);
  lean_closure_set(x_14, 4, x_5);
  lean_closure_set(x_14, 5, x_6);
  lean_closure_set(x_14, 6, x_7);
  lean_closure_set(x_14, 7, x_9);
  lean_closure_set(x_14, 8, x_8);
  x_15 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_13, x_14);
  return x_15;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__4(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__5___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__4), 1, 0);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  lean_object* x_10; lean_object* x_11; 
  x_10 = lean_ctor_get(x_1, 3);
  lean_inc(x_10);
  lean_inc(x_7);
  lean_inc(x_4);
  lean_inc(x_3);
  x_11 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__3), 9, 8);
  lean_closure_set(x_11, 0, x_2);
  lean_closure_set(x_11, 1, x_1);
  lean_closure_set(x_11, 2, x_3);
  lean_closure_set(x_11, 3, x_4);
  lean_closure_set(x_11, 4, x_5);
  lean_closure_set(x_11, 5, x_6);
  lean_closure_set(x_11, 6, x_9);
  lean_closure_set(x_11, 7, x_7);
  if (lean_obj_tag(x_10) == 0)
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  lean_dec(x_8);
  lean_dec(x_4);
  x_12 = lean_ctor_get(x_3, 0);
  lean_inc(x_12);
  lean_dec(x_3);
  x_13 = lean_ctor_get(x_12, 1);
  lean_inc(x_13);
  lean_dec(x_12);
  x_14 = lean_box(0);
  x_15 = lean_apply_2(x_13, lean_box(0), x_14);
  x_16 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_15, x_11);
  return x_16;
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_17 = lean_ctor_get(x_10, 0);
  lean_inc(x_17);
  lean_dec(x_10);
  x_18 = lean_ctor_get(x_3, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  lean_dec(x_18);
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  lean_dec(x_19);
  x_21 = lean_apply_4(x_8, lean_box(0), x_3, x_4, x_17);
  x_22 = l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__5___closed__1;
  x_23 = lean_apply_4(x_20, lean_box(0), lean_box(0), x_22, x_21);
  x_24 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_23, x_11);
  return x_24;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_9 = lean_ctor_get(x_1, 0);
  lean_inc(x_9);
  lean_dec(x_1);
  x_10 = lean_ctor_get(x_2, 2);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_4);
  lean_inc(x_3);
  x_11 = lean_apply_4(x_9, lean_box(0), x_3, x_4, x_10);
  lean_inc(x_7);
  x_12 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__5), 9, 8);
  lean_closure_set(x_12, 0, x_2);
  lean_closure_set(x_12, 1, x_5);
  lean_closure_set(x_12, 2, x_3);
  lean_closure_set(x_12, 3, x_4);
  lean_closure_set(x_12, 4, x_6);
  lean_closure_set(x_12, 5, x_8);
  lean_closure_set(x_12, 6, x_7);
  lean_closure_set(x_12, 7, x_9);
  x_13 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_11, x_12);
  return x_13;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_9 = lean_ctor_get(x_1, 0);
  lean_inc(x_9);
  lean_dec(x_1);
  x_10 = lean_ctor_get(x_2, 1);
  lean_inc(x_10);
  lean_inc(x_4);
  lean_inc(x_3);
  x_11 = lean_apply_4(x_9, lean_box(0), x_3, x_4, x_10);
  lean_inc(x_7);
  x_12 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__6), 8, 7);
  lean_closure_set(x_12, 0, x_5);
  lean_closure_set(x_12, 1, x_2);
  lean_closure_set(x_12, 2, x_3);
  lean_closure_set(x_12, 3, x_4);
  lean_closure_set(x_12, 4, x_6);
  lean_closure_set(x_12, 5, x_8);
  lean_closure_set(x_12, 6, x_7);
  x_13 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_11, x_12);
  return x_13;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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 = lean_ctor_get(x_6, 1);
  lean_inc(x_9);
  x_10 = lean_ctor_get(x_1, 0);
  lean_inc(x_10);
  lean_dec(x_1);
  x_11 = lean_ctor_get(x_8, 0);
  lean_inc(x_11);
  lean_inc(x_7);
  lean_inc(x_6);
  x_12 = lean_apply_4(x_10, lean_box(0), x_6, x_7, x_11);
  lean_inc(x_9);
  x_13 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__7), 8, 7);
  lean_closure_set(x_13, 0, x_2);
  lean_closure_set(x_13, 1, x_8);
  lean_closure_set(x_13, 2, x_6);
  lean_closure_set(x_13, 3, x_7);
  lean_closure_set(x_13, 4, x_3);
  lean_closure_set(x_13, 5, x_4);
  lean_closure_set(x_13, 6, x_9);
  x_14 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_12, x_13);
  return x_14;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, uint8_t x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_8 = lean_alloc_ctor(0, 4, 2);
  lean_ctor_set(x_8, 0, x_1);
  lean_ctor_set(x_8, 1, x_2);
  lean_ctor_set(x_8, 2, x_3);
  lean_ctor_set(x_8, 3, x_4);
  lean_ctor_set_uint8(x_8, sizeof(void*)*4, x_5);
  lean_ctor_set_uint8(x_8, sizeof(void*)*4 + 1, x_7);
  x_9 = lean_ctor_get(x_6, 0);
  lean_inc(x_9);
  lean_dec(x_6);
  x_10 = lean_ctor_get(x_9, 1);
  lean_inc(x_10);
  lean_dec(x_9);
  x_11 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_11, 0, x_8);
  x_12 = lean_apply_2(x_10, lean_box(0), x_11);
  return x_12;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, uint8_t x_9) {
  _start:
  {
  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_10 = lean_ctor_get(x_1, 5);
  lean_inc(x_10);
  lean_dec(x_1);
  lean_inc(x_3);
  x_11 = lean_apply_4(x_2, lean_box(0), x_3, x_4, x_10);
  x_12 = lean_box(x_9);
  lean_inc(x_3);
  x_13 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__9___boxed), 7, 6);
  lean_closure_set(x_13, 0, x_5);
  lean_closure_set(x_13, 1, x_6);
  lean_closure_set(x_13, 2, x_7);
  lean_closure_set(x_13, 3, x_8);
  lean_closure_set(x_13, 4, x_12);
  lean_closure_set(x_13, 5, x_3);
  x_14 = lean_ctor_get(x_3, 1);
  lean_inc(x_14);
  x_15 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__1___rarg), 5, 4);
  lean_closure_set(x_15, 0, x_3);
  lean_closure_set(x_15, 1, lean_box(0));
  lean_closure_set(x_15, 2, lean_box(0));
  lean_closure_set(x_15, 3, x_13);
  x_16 = lean_apply_4(x_14, lean_box(0), lean_box(0), x_11, x_15);
  return x_16;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_9 = lean_ctor_get(x_1, 1);
  lean_inc(x_9);
  lean_dec(x_1);
  x_10 = lean_ctor_get(x_2, 4);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_4);
  lean_inc(x_3);
  x_11 = lean_apply_4(x_9, lean_box(0), x_3, x_4, x_10);
  lean_inc(x_3);
  x_12 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__10___boxed), 9, 8);
  lean_closure_set(x_12, 0, x_2);
  lean_closure_set(x_12, 1, x_9);
  lean_closure_set(x_12, 2, x_3);
  lean_closure_set(x_12, 3, x_4);
  lean_closure_set(x_12, 4, x_5);
  lean_closure_set(x_12, 5, x_6);
  lean_closure_set(x_12, 6, x_7);
  lean_closure_set(x_12, 7, x_8);
  x_13 = lean_ctor_get(x_3, 1);
  lean_inc(x_13);
  x_14 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__2___rarg), 5, 4);
  lean_closure_set(x_14, 0, x_3);
  lean_closure_set(x_14, 1, lean_box(0));
  lean_closure_set(x_14, 2, lean_box(0));
  lean_closure_set(x_14, 3, x_12);
  x_15 = lean_apply_4(x_13, lean_box(0), lean_box(0), x_11, x_14);
  return x_15;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__12(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_2) == 0)
  {
  uint8_t x_3; 
  x_3 = !lean_is_exclusive(x_2);
  if (x_3 == 0)
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_4 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  lean_dec(x_1);
  x_5 = lean_ctor_get(x_4, 1);
  lean_inc(x_5);
  lean_dec(x_4);
  x_6 = lean_apply_2(x_5, lean_box(0), x_2);
  return x_6;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
  x_7 = lean_ctor_get(x_2, 0);
  lean_inc(x_7);
  lean_dec(x_2);
  x_8 = lean_ctor_get(x_1, 0);
  lean_inc(x_8);
  lean_dec(x_1);
  x_9 = lean_ctor_get(x_8, 1);
  lean_inc(x_9);
  lean_dec(x_8);
  x_10 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_10, 0, x_7);
  x_11 = lean_apply_2(x_9, lean_box(0), x_10);
  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; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_13 = lean_ctor_get(x_2, 0);
  x_14 = lean_ctor_get(x_1, 0);
  lean_inc(x_14);
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_14, 1);
  lean_inc(x_15);
  lean_dec(x_14);
  x_16 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_16, 0, x_13);
  lean_ctor_set(x_2, 0, x_16);
  x_17 = lean_apply_2(x_15, lean_box(0), x_2);
  return x_17;
  }
  else
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_18 = lean_ctor_get(x_2, 0);
  lean_inc(x_18);
  lean_dec(x_2);
  x_19 = lean_ctor_get(x_1, 0);
  lean_inc(x_19);
  lean_dec(x_1);
  x_20 = lean_ctor_get(x_19, 1);
  lean_inc(x_20);
  lean_dec(x_19);
  x_21 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_21, 0, x_18);
  x_22 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_22, 0, x_21);
  x_23 = lean_apply_2(x_20, lean_box(0), x_22);
  return x_23;
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_9 = lean_ctor_get(x_1, 3);
  lean_inc(x_9);
  lean_inc(x_4);
  lean_inc(x_3);
  x_10 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__11), 8, 7);
  lean_closure_set(x_10, 0, x_2);
  lean_closure_set(x_10, 1, x_1);
  lean_closure_set(x_10, 2, x_3);
  lean_closure_set(x_10, 3, x_4);
  lean_closure_set(x_10, 4, x_5);
  lean_closure_set(x_10, 5, x_6);
  lean_closure_set(x_10, 6, x_8);
  x_11 = lean_ctor_get(x_3, 1);
  lean_inc(x_11);
  lean_inc(x_3);
  x_12 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__3___rarg), 5, 4);
  lean_closure_set(x_12, 0, x_3);
  lean_closure_set(x_12, 1, lean_box(0));
  lean_closure_set(x_12, 2, lean_box(0));
  lean_closure_set(x_12, 3, x_10);
  if (lean_obj_tag(x_9) == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  lean_dec(x_7);
  lean_dec(x_4);
  x_13 = lean_ctor_get(x_3, 0);
  lean_inc(x_13);
  lean_dec(x_3);
  x_14 = lean_ctor_get(x_13, 1);
  lean_inc(x_14);
  lean_dec(x_13);
  x_15 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___closed__1;
  x_16 = lean_apply_2(x_14, lean_box(0), x_15);
  x_17 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_16, x_12);
  return x_17;
  }
  else
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_18 = lean_ctor_get(x_9, 0);
  lean_inc(x_18);
  lean_dec(x_9);
  lean_inc(x_3);
  x_19 = lean_apply_4(x_7, lean_box(0), x_3, x_4, x_18);
  x_20 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__12), 2, 1);
  lean_closure_set(x_20, 0, x_3);
  lean_inc(x_11);
  x_21 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_19, x_20);
  x_22 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_21, x_12);
  return x_22;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_8 = lean_ctor_get(x_1, 1);
  lean_inc(x_8);
  lean_dec(x_1);
  x_9 = lean_ctor_get(x_2, 2);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_4);
  lean_inc(x_3);
  x_10 = lean_apply_4(x_8, lean_box(0), x_3, x_4, x_9);
  lean_inc(x_3);
  x_11 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__13), 8, 7);
  lean_closure_set(x_11, 0, x_2);
  lean_closure_set(x_11, 1, x_5);
  lean_closure_set(x_11, 2, x_3);
  lean_closure_set(x_11, 3, x_4);
  lean_closure_set(x_11, 4, x_6);
  lean_closure_set(x_11, 5, x_7);
  lean_closure_set(x_11, 6, x_8);
  x_12 = lean_ctor_get(x_3, 1);
  lean_inc(x_12);
  x_13 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__4___rarg), 5, 4);
  lean_closure_set(x_13, 0, x_3);
  lean_closure_set(x_13, 1, lean_box(0));
  lean_closure_set(x_13, 2, lean_box(0));
  lean_closure_set(x_13, 3, x_11);
  x_14 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_10, x_13);
  return x_14;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_8 = lean_ctor_get(x_1, 1);
  lean_inc(x_8);
  lean_dec(x_1);
  x_9 = lean_ctor_get(x_2, 1);
  lean_inc(x_9);
  lean_inc(x_4);
  lean_inc(x_3);
  x_10 = lean_apply_4(x_8, lean_box(0), x_3, x_4, x_9);
  lean_inc(x_3);
  x_11 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__14), 7, 6);
  lean_closure_set(x_11, 0, x_5);
  lean_closure_set(x_11, 1, x_2);
  lean_closure_set(x_11, 2, x_3);
  lean_closure_set(x_11, 3, x_4);
  lean_closure_set(x_11, 4, x_6);
  lean_closure_set(x_11, 5, x_7);
  x_12 = lean_ctor_get(x_3, 1);
  lean_inc(x_12);
  x_13 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__5___rarg), 5, 4);
  lean_closure_set(x_13, 0, x_3);
  lean_closure_set(x_13, 1, lean_box(0));
  lean_closure_set(x_13, 2, lean_box(0));
  lean_closure_set(x_13, 3, x_11);
  x_14 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_10, x_13);
  return x_14;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__16(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_9 = lean_ctor_get(x_1, 1);
  lean_inc(x_9);
  lean_dec(x_1);
  x_10 = lean_ctor_get(x_8, 0);
  lean_inc(x_10);
  lean_inc(x_7);
  lean_inc(x_6);
  x_11 = lean_apply_4(x_9, lean_box(0), x_6, x_7, x_10);
  lean_inc(x_6);
  x_12 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__15), 7, 6);
  lean_closure_set(x_12, 0, x_2);
  lean_closure_set(x_12, 1, x_8);
  lean_closure_set(x_12, 2, x_6);
  lean_closure_set(x_12, 3, x_7);
  lean_closure_set(x_12, 4, x_3);
  lean_closure_set(x_12, 5, x_4);
  x_13 = lean_ctor_get(x_6, 1);
  lean_inc(x_13);
  x_14 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___spec__6___rarg), 5, 4);
  lean_closure_set(x_14, 0, x_6);
  lean_closure_set(x_14, 1, lean_box(0));
  lean_closure_set(x_14, 2, lean_box(0));
  lean_closure_set(x_14, 3, x_12);
  x_15 = lean_apply_4(x_13, lean_box(0), lean_box(0), x_11, x_14);
  return x_15;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  lean_inc(x_7);
  lean_inc(x_5);
  lean_inc(x_3);
  lean_inc(x_1);
  x_8 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__8), 8, 4);
  lean_closure_set(x_8, 0, x_1);
  lean_closure_set(x_8, 1, x_3);
  lean_closure_set(x_8, 2, x_5);
  lean_closure_set(x_8, 3, x_7);
  x_9 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__16), 8, 4);
  lean_closure_set(x_9, 0, x_1);
  lean_closure_set(x_9, 1, x_3);
  lean_closure_set(x_9, 2, x_5);
  lean_closure_set(x_9, 3, x_7);
  x_10 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_10, 0, x_8);
  lean_ctor_set(x_10, 1, x_9);
  return x_10;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg), 7, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  x_11 = l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___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_1);
  return x_11;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  uint8_t x_8; uint8_t x_9; lean_object* x_10; 
  x_8 = lean_unbox(x_5);
  lean_dec(x_5);
  x_9 = lean_unbox(x_7);
  lean_dec(x_7);
  x_10 = l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__9(x_1, x_2, x_3, x_4, x_8, x_6, x_9);
  return x_10;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
  _start:
  {
  uint8_t x_10; lean_object* x_11; 
  x_10 = lean_unbox(x_9);
  lean_dec(x_9);
  x_11 = l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10);
  return x_11;
  }
  }
  static lean_object* _init_l_Lean_Widget_InteractiveGoal_mvarId_x3f___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Widget_instInhabitedInteractiveGoal___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__1;
  x_3 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__3;
  x_4 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__2;
  x_5 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_5, 0, x_2);
  lean_ctor_set(x_5, 1, x_3);
  lean_ctor_set(x_5, 2, x_1);
  lean_ctor_set(x_5, 3, x_4);
  lean_ctor_set(x_5, 4, x_1);
  return x_5;
  }
  }
  static lean_object* _init_l_Lean_Widget_instInhabitedInteractiveGoal() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Widget_instInhabitedInteractiveGoal___closed__1;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Json_getObjValD(x_2, x_3);
  if (lean_obj_tag(x_4) == 0)
  {
  lean_object* x_5; 
  lean_dec(x_1);
  x_5 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___closed__1;
  return x_5;
  }
  else
  {
  lean_object* x_6; 
  x_6 = lean_apply_1(x_1, x_4);
  if (lean_obj_tag(x_6) == 0)
  {
  uint8_t x_7; 
  x_7 = !lean_is_exclusive(x_6);
  if (x_7 == 0)
  {
  return x_6;
  }
  else
  {
  lean_object* x_8; lean_object* x_9; 
  x_8 = lean_ctor_get(x_6, 0);
  lean_inc(x_8);
  lean_dec(x_6);
  x_9 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_9, 0, x_8);
  return x_9;
  }
  }
  else
  {
  uint8_t x_10; 
  x_10 = !lean_is_exclusive(x_6);
  if (x_10 == 0)
  {
  lean_object* x_11; lean_object* x_12; 
  x_11 = lean_ctor_get(x_6, 0);
  x_12 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_12, 0, x_11);
  lean_ctor_set(x_6, 0, x_12);
  return x_6;
  }
  else
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_13 = lean_ctor_get(x_6, 0);
  lean_inc(x_13);
  lean_dec(x_6);
  x_14 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_14, 0, x_13);
  x_15 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_15, 0, x_14);
  return x_15;
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__1___rarg___boxed), 3, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Json_getObjValD(x_2, x_3);
  if (lean_obj_tag(x_4) == 0)
  {
  lean_object* x_5; 
  lean_dec(x_1);
  x_5 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___closed__1;
  return x_5;
  }
  else
  {
  lean_object* x_6; 
  x_6 = lean_apply_1(x_1, x_4);
  if (lean_obj_tag(x_6) == 0)
  {
  uint8_t x_7; 
  x_7 = !lean_is_exclusive(x_6);
  if (x_7 == 0)
  {
  return x_6;
  }
  else
  {
  lean_object* x_8; lean_object* x_9; 
  x_8 = lean_ctor_get(x_6, 0);
  lean_inc(x_8);
  lean_dec(x_6);
  x_9 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_9, 0, x_8);
  return x_9;
  }
  }
  else
  {
  uint8_t x_10; 
  x_10 = !lean_is_exclusive(x_6);
  if (x_10 == 0)
  {
  lean_object* x_11; lean_object* x_12; 
  x_11 = lean_ctor_get(x_6, 0);
  x_12 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_12, 0, x_11);
  lean_ctor_set(x_6, 0, x_12);
  return x_6;
  }
  else
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_13 = lean_ctor_get(x_6, 0);
  lean_inc(x_13);
  lean_dec(x_6);
  x_14 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_14, 0, x_13);
  x_15 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_15, 0, x_14);
  return x_15;
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__2___rarg___boxed), 3, 0);
  return x_2;
  }
  }
  static lean_object* _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("hyps", 4);
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("userName", 8);
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("goalPrefix", 10);
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__4() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("mvarId", 6);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  lean_object* x_6; lean_object* x_7; 
  x_6 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__1;
  x_7 = l_Lean_Json_getObjValAs_x3f(x_5, lean_box(0), x_1, x_6);
  if (lean_obj_tag(x_7) == 0)
  {
  uint8_t x_8; 
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_8 = !lean_is_exclusive(x_7);
  if (x_8 == 0)
  {
  return x_7;
  }
  else
  {
  lean_object* x_9; lean_object* x_10; 
  x_9 = lean_ctor_get(x_7, 0);
  lean_inc(x_9);
  lean_dec(x_7);
  x_10 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_10, 0, x_9);
  return x_10;
  }
  }
  else
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_11 = lean_ctor_get(x_7, 0);
  lean_inc(x_11);
  lean_dec(x_7);
  x_12 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__3;
  x_13 = l_Lean_Json_getObjValAs_x3f(x_5, lean_box(0), x_2, x_12);
  if (lean_obj_tag(x_13) == 0)
  {
  uint8_t x_14; 
  lean_dec(x_11);
  lean_dec(x_4);
  lean_dec(x_3);
  x_14 = !lean_is_exclusive(x_13);
  if (x_14 == 0)
  {
  return x_13;
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  x_15 = lean_ctor_get(x_13, 0);
  lean_inc(x_15);
  lean_dec(x_13);
  x_16 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_16, 0, x_15);
  return x_16;
  }
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_17 = lean_ctor_get(x_13, 0);
  lean_inc(x_17);
  lean_dec(x_13);
  x_18 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__2;
  lean_inc(x_3);
  x_19 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__1___rarg(x_3, x_5, x_18);
  if (lean_obj_tag(x_19) == 0)
  {
  uint8_t x_20; 
  lean_dec(x_17);
  lean_dec(x_11);
  lean_dec(x_4);
  lean_dec(x_3);
  x_20 = !lean_is_exclusive(x_19);
  if (x_20 == 0)
  {
  return x_19;
  }
  else
  {
  lean_object* x_21; lean_object* x_22; 
  x_21 = lean_ctor_get(x_19, 0);
  lean_inc(x_21);
  lean_dec(x_19);
  x_22 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_22, 0, x_21);
  return x_22;
  }
  }
  else
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; 
  x_23 = lean_ctor_get(x_19, 0);
  lean_inc(x_23);
  lean_dec(x_19);
  x_24 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__3;
  x_25 = l_Lean_Json_getObjValAs_x3f(x_5, lean_box(0), x_3, x_24);
  if (lean_obj_tag(x_25) == 0)
  {
  uint8_t x_26; 
  lean_dec(x_23);
  lean_dec(x_17);
  lean_dec(x_11);
  lean_dec(x_4);
  x_26 = !lean_is_exclusive(x_25);
  if (x_26 == 0)
  {
  return x_25;
  }
  else
  {
  lean_object* x_27; lean_object* x_28; 
  x_27 = lean_ctor_get(x_25, 0);
  lean_inc(x_27);
  lean_dec(x_25);
  x_28 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_28, 0, x_27);
  return x_28;
  }
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; 
  x_29 = lean_ctor_get(x_25, 0);
  lean_inc(x_29);
  lean_dec(x_25);
  x_30 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__4;
  x_31 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__2___rarg(x_4, x_5, x_30);
  if (lean_obj_tag(x_31) == 0)
  {
  uint8_t x_32; 
  lean_dec(x_29);
  lean_dec(x_23);
  lean_dec(x_17);
  lean_dec(x_11);
  x_32 = !lean_is_exclusive(x_31);
  if (x_32 == 0)
  {
  return x_31;
  }
  else
  {
  lean_object* x_33; lean_object* x_34; 
  x_33 = lean_ctor_get(x_31, 0);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_34, 0, x_33);
  return x_34;
  }
  }
  else
  {
  uint8_t x_35; 
  x_35 = !lean_is_exclusive(x_31);
  if (x_35 == 0)
  {
  lean_object* x_36; lean_object* x_37; 
  x_36 = lean_ctor_get(x_31, 0);
  x_37 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_37, 0, x_11);
  lean_ctor_set(x_37, 1, x_17);
  lean_ctor_set(x_37, 2, x_23);
  lean_ctor_set(x_37, 3, x_29);
  lean_ctor_set(x_37, 4, x_36);
  lean_ctor_set(x_31, 0, x_37);
  return x_31;
  }
  else
  {
  lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_38 = lean_ctor_get(x_31, 0);
  lean_inc(x_38);
  lean_dec(x_31);
  x_39 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_39, 0, x_11);
  lean_ctor_set(x_39, 1, x_17);
  lean_ctor_set(x_39, 2, x_23);
  lean_ctor_set(x_39, 3, x_29);
  lean_ctor_set(x_39, 4, x_38);
  x_40 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_40, 0, x_39);
  return x_40;
  }
  }
  }
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___boxed), 5, 0);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__1___rarg(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____spec__2___rarg(x_1, x_2, x_3);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  lean_object* x_6; 
  x_6 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_5);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___boxed), 5, 4);
  lean_closure_set(x_5, 0, x_1);
  lean_closure_set(x_5, 1, x_2);
  lean_closure_set(x_5, 2, x_3);
  lean_closure_set(x_5, 3, x_4);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_alloc_closure((void*)(l_Lean_Widget_instFromJsonRpcEncodingPacket__2___rarg), 4, 0);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1225____rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
  x_6 = lean_ctor_get(x_5, 0);
  lean_inc(x_6);
  x_7 = lean_apply_1(x_1, x_6);
  x_8 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__1;
  x_9 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_9, 0, x_8);
  lean_ctor_set(x_9, 1, x_7);
  x_10 = lean_box(0);
  x_11 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_11, 0, x_9);
  lean_ctor_set(x_11, 1, x_10);
  x_12 = lean_ctor_get(x_5, 1);
  lean_inc(x_12);
  x_13 = lean_apply_1(x_2, x_12);
  x_14 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__3;
  x_15 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_15, 0, x_14);
  lean_ctor_set(x_15, 1, x_13);
  x_16 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_16, 0, x_15);
  lean_ctor_set(x_16, 1, x_10);
  x_17 = lean_ctor_get(x_5, 2);
  lean_inc(x_17);
  x_18 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__2;
  lean_inc(x_3);
  x_19 = l_Lean_Json_opt___rarg(x_3, x_18, x_17);
  x_20 = lean_ctor_get(x_5, 3);
  lean_inc(x_20);
  x_21 = lean_apply_1(x_3, x_20);
  x_22 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__3;
  x_23 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_23, 0, x_22);
  lean_ctor_set(x_23, 1, x_21);
  x_24 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_24, 0, x_23);
  lean_ctor_set(x_24, 1, x_10);
  x_25 = lean_ctor_get(x_5, 4);
  lean_inc(x_25);
  lean_dec(x_5);
  x_26 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__4;
  x_27 = l_Lean_Json_opt___rarg(x_4, x_26, x_25);
  x_28 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_28, 0, x_27);
  lean_ctor_set(x_28, 1, x_10);
  x_29 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_29, 0, x_24);
  lean_ctor_set(x_29, 1, x_28);
  x_30 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_30, 0, x_19);
  lean_ctor_set(x_30, 1, x_29);
  x_31 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_31, 0, x_16);
  lean_ctor_set(x_31, 1, x_30);
  x_32 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_32, 0, x_11);
  lean_ctor_set(x_32, 1, x_31);
  x_33 = l_List_join___rarg(x_32);
  x_34 = l_Lean_Json_mkObj(x_33);
  return x_34;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1225_(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1225____rarg), 5, 0);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1225____rarg), 5, 4);
  lean_closure_set(x_5, 0, x_1);
  lean_closure_set(x_5, 1, x_2);
  lean_closure_set(x_5, 2, x_3);
  lean_closure_set(x_5, 3, x_4);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = lean_alloc_closure((void*)(l_Lean_Widget_instToJsonRpcEncodingPacket__2___rarg), 4, 0);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__1___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__2___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__3(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__3___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__4(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__4___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__5(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__5___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_9, 0, x_2);
  lean_ctor_set(x_9, 1, x_3);
  lean_ctor_set(x_9, 2, x_4);
  lean_ctor_set(x_9, 3, x_5);
  lean_ctor_set(x_9, 4, x_6);
  x_10 = lean_apply_2(x_8, lean_box(0), x_9);
  return x_10;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___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; 
  x_10 = lean_ctor_get(x_1, 4);
  lean_inc(x_10);
  lean_dec(x_1);
  lean_inc(x_2);
  x_11 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__1), 6, 5);
  lean_closure_set(x_11, 0, x_2);
  lean_closure_set(x_11, 1, x_3);
  lean_closure_set(x_11, 2, x_4);
  lean_closure_set(x_11, 3, x_5);
  lean_closure_set(x_11, 4, x_9);
  if (lean_obj_tag(x_10) == 0)
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  lean_dec(x_8);
  lean_dec(x_7);
  x_12 = lean_ctor_get(x_2, 0);
  lean_inc(x_12);
  lean_dec(x_2);
  x_13 = lean_ctor_get(x_12, 1);
  lean_inc(x_13);
  lean_dec(x_12);
  x_14 = lean_box(0);
  x_15 = lean_apply_2(x_13, lean_box(0), x_14);
  x_16 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_15, x_11);
  return x_16;
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
  x_17 = lean_ctor_get(x_10, 0);
  lean_inc(x_17);
  lean_dec(x_10);
  x_18 = lean_ctor_get(x_2, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  lean_dec(x_18);
  x_20 = lean_ctor_get(x_19, 0);
  lean_inc(x_20);
  lean_dec(x_19);
  x_21 = lean_ctor_get(x_7, 0);
  lean_inc(x_21);
  lean_dec(x_7);
  x_22 = lean_apply_4(x_21, lean_box(0), x_2, x_8, x_17);
  x_23 = l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__5___closed__1;
  x_24 = lean_apply_4(x_20, lean_box(0), lean_box(0), x_23, x_22);
  x_25 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_24, x_11);
  return x_25;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; 
  x_10 = lean_ctor_get(x_1, 0);
  lean_inc(x_10);
  lean_dec(x_1);
  x_11 = lean_ctor_get(x_2, 3);
  lean_inc(x_11);
  lean_inc(x_4);
  lean_inc(x_3);
  x_12 = lean_apply_4(x_10, lean_box(0), x_3, x_4, x_11);
  lean_inc(x_7);
  x_13 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__2), 9, 8);
  lean_closure_set(x_13, 0, x_2);
  lean_closure_set(x_13, 1, x_3);
  lean_closure_set(x_13, 2, x_5);
  lean_closure_set(x_13, 3, x_6);
  lean_closure_set(x_13, 4, x_9);
  lean_closure_set(x_13, 5, x_7);
  lean_closure_set(x_13, 6, x_8);
  lean_closure_set(x_13, 7, x_4);
  x_14 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_12, x_13);
  return x_14;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; 
  x_9 = lean_ctor_get(x_1, 2);
  lean_inc(x_9);
  lean_inc(x_6);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_10 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__3), 9, 8);
  lean_closure_set(x_10, 0, x_2);
  lean_closure_set(x_10, 1, x_1);
  lean_closure_set(x_10, 2, x_3);
  lean_closure_set(x_10, 3, x_4);
  lean_closure_set(x_10, 4, x_5);
  lean_closure_set(x_10, 5, x_8);
  lean_closure_set(x_10, 6, x_6);
  lean_closure_set(x_10, 7, x_7);
  if (lean_obj_tag(x_9) == 0)
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  lean_dec(x_4);
  lean_dec(x_2);
  x_11 = lean_ctor_get(x_3, 0);
  lean_inc(x_11);
  lean_dec(x_3);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_box(0);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  x_15 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_14, x_10);
  return x_15;
  }
  else
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
  x_16 = lean_ctor_get(x_9, 0);
  lean_inc(x_16);
  lean_dec(x_9);
  x_17 = lean_ctor_get(x_3, 0);
  lean_inc(x_17);
  x_18 = lean_ctor_get(x_17, 0);
  lean_inc(x_18);
  lean_dec(x_17);
  x_19 = lean_ctor_get(x_18, 0);
  lean_inc(x_19);
  lean_dec(x_18);
  x_20 = lean_ctor_get(x_2, 0);
  lean_inc(x_20);
  lean_dec(x_2);
  x_21 = lean_apply_4(x_20, lean_box(0), x_3, x_4, x_16);
  x_22 = l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__5___closed__1;
  x_23 = lean_apply_4(x_19, lean_box(0), lean_box(0), x_22, x_21);
  x_24 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_23, x_10);
  return x_24;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_9 = lean_ctor_get(x_1, 0);
  lean_inc(x_9);
  lean_dec(x_1);
  x_10 = lean_ctor_get(x_2, 1);
  lean_inc(x_10);
  lean_inc(x_4);
  lean_inc(x_3);
  x_11 = lean_apply_4(x_9, lean_box(0), x_3, x_4, x_10);
  lean_inc(x_6);
  x_12 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__4), 8, 7);
  lean_closure_set(x_12, 0, x_2);
  lean_closure_set(x_12, 1, x_5);
  lean_closure_set(x_12, 2, x_3);
  lean_closure_set(x_12, 3, x_4);
  lean_closure_set(x_12, 4, x_8);
  lean_closure_set(x_12, 5, x_6);
  lean_closure_set(x_12, 6, x_7);
  x_13 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_11, x_12);
  return x_13;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_9 = lean_ctor_get(x_6, 1);
  lean_inc(x_9);
  x_10 = lean_ctor_get(x_1, 0);
  lean_inc(x_10);
  lean_dec(x_1);
  x_11 = lean_ctor_get(x_8, 0);
  lean_inc(x_11);
  lean_inc(x_7);
  lean_inc(x_6);
  x_12 = lean_apply_4(x_10, lean_box(0), x_6, x_7, x_11);
  lean_inc(x_9);
  x_13 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__5), 8, 7);
  lean_closure_set(x_13, 0, x_2);
  lean_closure_set(x_13, 1, x_8);
  lean_closure_set(x_13, 2, x_6);
  lean_closure_set(x_13, 3, x_7);
  lean_closure_set(x_13, 4, x_3);
  lean_closure_set(x_13, 5, x_9);
  lean_closure_set(x_13, 6, x_4);
  x_14 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_12, x_13);
  return x_14;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
  x_7 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_7, 0, x_1);
  lean_ctor_set(x_7, 1, x_2);
  lean_ctor_set(x_7, 2, x_3);
  lean_ctor_set(x_7, 3, x_4);
  lean_ctor_set(x_7, 4, x_6);
  x_8 = lean_ctor_get(x_5, 0);
  lean_inc(x_8);
  lean_dec(x_5);
  x_9 = lean_ctor_get(x_8, 1);
  lean_inc(x_9);
  lean_dec(x_8);
  x_10 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_10, 0, x_7);
  x_11 = lean_apply_2(x_9, lean_box(0), x_10);
  return x_11;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _start:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_9 = lean_ctor_get(x_1, 4);
  lean_inc(x_9);
  lean_dec(x_1);
  lean_inc(x_5);
  x_10 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__7), 6, 5);
  lean_closure_set(x_10, 0, x_2);
  lean_closure_set(x_10, 1, x_3);
  lean_closure_set(x_10, 2, x_4);
  lean_closure_set(x_10, 3, x_8);
  lean_closure_set(x_10, 4, x_5);
  x_11 = lean_ctor_get(x_5, 1);
  lean_inc(x_11);
  lean_inc(x_5);
  x_12 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__1___rarg), 5, 4);
  lean_closure_set(x_12, 0, x_5);
  lean_closure_set(x_12, 1, lean_box(0));
  lean_closure_set(x_12, 2, lean_box(0));
  lean_closure_set(x_12, 3, x_10);
  if (lean_obj_tag(x_9) == 0)
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  lean_dec(x_7);
  lean_dec(x_6);
  x_13 = lean_ctor_get(x_5, 0);
  lean_inc(x_13);
  lean_dec(x_5);
  x_14 = lean_ctor_get(x_13, 1);
  lean_inc(x_14);
  lean_dec(x_13);
  x_15 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___closed__1;
  x_16 = lean_apply_2(x_14, lean_box(0), x_15);
  x_17 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_16, x_12);
  return x_17;
  }
  else
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_18 = lean_ctor_get(x_9, 0);
  lean_inc(x_18);
  lean_dec(x_9);
  x_19 = lean_ctor_get(x_6, 1);
  lean_inc(x_19);
  lean_dec(x_6);
  lean_inc(x_5);
  x_20 = lean_apply_4(x_19, lean_box(0), x_5, x_7, x_18);
  x_21 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__12), 2, 1);
  lean_closure_set(x_21, 0, x_5);
  lean_inc(x_11);
  x_22 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_20, x_21);
  x_23 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_22, x_12);
  return x_23;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
  _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; 
  x_9 = lean_ctor_get(x_1, 1);
  lean_inc(x_9);
  lean_dec(x_1);
  x_10 = lean_ctor_get(x_2, 3);
  lean_inc(x_10);
  lean_inc(x_4);
  lean_inc(x_3);
  x_11 = lean_apply_4(x_9, lean_box(0), x_3, x_4, x_10);
  lean_inc(x_3);
  x_12 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__8), 8, 7);
  lean_closure_set(x_12, 0, x_2);
  lean_closure_set(x_12, 1, x_5);
  lean_closure_set(x_12, 2, x_6);
  lean_closure_set(x_12, 3, x_8);
  lean_closure_set(x_12, 4, x_3);
  lean_closure_set(x_12, 5, x_7);
  lean_closure_set(x_12, 6, x_4);
  x_13 = lean_ctor_get(x_3, 1);
  lean_inc(x_13);
  x_14 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__2___rarg), 5, 4);
  lean_closure_set(x_14, 0, x_3);
  lean_closure_set(x_14, 1, lean_box(0));
  lean_closure_set(x_14, 2, lean_box(0));
  lean_closure_set(x_14, 3, x_12);
  x_15 = lean_apply_4(x_13, lean_box(0), lean_box(0), x_11, x_14);
  return x_15;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
  x_8 = lean_ctor_get(x_1, 2);
  lean_inc(x_8);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_9 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__9), 8, 7);
  lean_closure_set(x_9, 0, x_2);
  lean_closure_set(x_9, 1, x_1);
  lean_closure_set(x_9, 2, x_3);
  lean_closure_set(x_9, 3, x_4);
  lean_closure_set(x_9, 4, x_5);
  lean_closure_set(x_9, 5, x_7);
  lean_closure_set(x_9, 6, x_6);
  x_10 = lean_ctor_get(x_3, 1);
  lean_inc(x_10);
  lean_inc(x_3);
  x_11 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__3___rarg), 5, 4);
  lean_closure_set(x_11, 0, x_3);
  lean_closure_set(x_11, 1, lean_box(0));
  lean_closure_set(x_11, 2, lean_box(0));
  lean_closure_set(x_11, 3, x_9);
  if (lean_obj_tag(x_8) == 0)
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  lean_dec(x_4);
  lean_dec(x_2);
  x_12 = lean_ctor_get(x_3, 0);
  lean_inc(x_12);
  lean_dec(x_3);
  x_13 = lean_ctor_get(x_12, 1);
  lean_inc(x_13);
  lean_dec(x_12);
  x_14 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___closed__1;
  x_15 = lean_apply_2(x_13, lean_box(0), x_14);
  x_16 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_15, x_11);
  return x_16;
  }
  else
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_17 = lean_ctor_get(x_8, 0);
  lean_inc(x_17);
  lean_dec(x_8);
  x_18 = lean_ctor_get(x_2, 1);
  lean_inc(x_18);
  lean_dec(x_2);
  lean_inc(x_3);
  x_19 = lean_apply_4(x_18, lean_box(0), x_3, x_4, x_17);
  x_20 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__12), 2, 1);
  lean_closure_set(x_20, 0, x_3);
  lean_inc(x_10);
  x_21 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_19, x_20);
  x_22 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_21, x_11);
  return x_22;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  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; 
  x_8 = lean_ctor_get(x_1, 1);
  lean_inc(x_8);
  lean_dec(x_1);
  x_9 = lean_ctor_get(x_2, 1);
  lean_inc(x_9);
  lean_inc(x_4);
  lean_inc(x_3);
  x_10 = lean_apply_4(x_8, lean_box(0), x_3, x_4, x_9);
  lean_inc(x_3);
  x_11 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__10), 7, 6);
  lean_closure_set(x_11, 0, x_2);
  lean_closure_set(x_11, 1, x_5);
  lean_closure_set(x_11, 2, x_3);
  lean_closure_set(x_11, 3, x_4);
  lean_closure_set(x_11, 4, x_7);
  lean_closure_set(x_11, 5, x_6);
  x_12 = lean_ctor_get(x_3, 1);
  lean_inc(x_12);
  x_13 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__4___rarg), 5, 4);
  lean_closure_set(x_13, 0, x_3);
  lean_closure_set(x_13, 1, lean_box(0));
  lean_closure_set(x_13, 2, lean_box(0));
  lean_closure_set(x_13, 3, x_11);
  x_14 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_10, x_13);
  return x_14;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__12(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; 
  x_9 = lean_ctor_get(x_1, 1);
  lean_inc(x_9);
  lean_dec(x_1);
  x_10 = lean_ctor_get(x_8, 0);
  lean_inc(x_10);
  lean_inc(x_7);
  lean_inc(x_6);
  x_11 = lean_apply_4(x_9, lean_box(0), x_6, x_7, x_10);
  lean_inc(x_6);
  x_12 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__11), 7, 6);
  lean_closure_set(x_12, 0, x_2);
  lean_closure_set(x_12, 1, x_8);
  lean_closure_set(x_12, 2, x_6);
  lean_closure_set(x_12, 3, x_7);
  lean_closure_set(x_12, 4, x_3);
  lean_closure_set(x_12, 5, x_4);
  x_13 = lean_ctor_get(x_6, 1);
  lean_inc(x_13);
  x_14 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___spec__5___rarg), 5, 4);
  lean_closure_set(x_14, 0, x_6);
  lean_closure_set(x_14, 1, lean_box(0));
  lean_closure_set(x_14, 2, lean_box(0));
  lean_closure_set(x_14, 3, x_12);
  x_15 = lean_apply_4(x_13, lean_box(0), lean_box(0), x_11, x_14);
  return x_15;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  lean_inc(x_7);
  lean_inc(x_5);
  lean_inc(x_3);
  lean_inc(x_1);
  x_8 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__6), 8, 4);
  lean_closure_set(x_8, 0, x_1);
  lean_closure_set(x_8, 1, x_3);
  lean_closure_set(x_8, 2, x_5);
  lean_closure_set(x_8, 3, x_7);
  x_9 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg___lambda__12), 8, 4);
  lean_closure_set(x_9, 0, x_1);
  lean_closure_set(x_9, 1, x_3);
  lean_closure_set(x_9, 2, x_5);
  lean_closure_set(x_9, 3, x_7);
  x_10 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_10, 0, x_8);
  lean_ctor_set(x_10, 1, x_9);
  return x_10;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalRpcEncodingPacket___rarg), 7, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_InteractiveGoal_addLine(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; 
  x_2 = l_Std_Format_isNil(x_1);
  if (x_2 == 0)
  {
  lean_object* x_3; lean_object* x_4; 
  x_3 = lean_box(1);
  x_4 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_4, 0, x_1);
  lean_ctor_set(x_4, 1, x_3);
  return x_4;
  }
  else
  {
  return x_1;
  }
  }
  }
  LEAN_EXPORT lean_object* l_List_filterAux___at_Lean_Widget_InteractiveGoal_pretty___spec__1(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_3; 
  x_3 = l_List_reverse___rarg(x_2);
  return x_3;
  }
  else
  {
  uint8_t x_4; 
  x_4 = !lean_is_exclusive(x_1);
  if (x_4 == 0)
  {
  lean_object* x_5; lean_object* x_6; uint8_t x_7; 
  x_5 = lean_ctor_get(x_1, 0);
  x_6 = lean_ctor_get(x_1, 1);
  x_7 = l_Lean_Name_isAnonymous(x_5);
  if (x_7 == 0)
  {
  lean_ctor_set(x_1, 1, x_2);
  {
  lean_object* _tmp_0 = x_6;
  lean_object* _tmp_1 = x_1;
  x_1 = _tmp_0;
  x_2 = _tmp_1;
  }
  goto _start;
  }
  else
  {
  lean_free_object(x_1);
  lean_dec(x_5);
  x_1 = x_6;
  goto _start;
  }
  }
  else
  {
  lean_object* x_10; lean_object* x_11; uint8_t x_12; 
  x_10 = lean_ctor_get(x_1, 0);
  x_11 = lean_ctor_get(x_1, 1);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_dec(x_1);
  x_12 = l_Lean_Name_isAnonymous(x_10);
  if (x_12 == 0)
  {
  lean_object* x_13; 
  x_13 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_13, 0, x_10);
  lean_ctor_set(x_13, 1, x_2);
  x_1 = x_11;
  x_2 = x_13;
  goto _start;
  }
  else
  {
  lean_dec(x_10);
  x_1 = x_11;
  goto _start;
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Widget_InteractiveGoal_pretty___spec__2(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_1) == 0)
  {
  lean_object* x_3; 
  x_3 = l_List_reverse___rarg(x_2);
  return x_3;
  }
  else
  {
  uint8_t x_4; 
  x_4 = !lean_is_exclusive(x_1);
  if (x_4 == 0)
  {
  lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; 
  x_5 = lean_ctor_get(x_1, 0);
  x_6 = lean_ctor_get(x_1, 1);
  x_7 = 1;
  x_8 = l_Lean_Name_toString(x_5, x_7);
  lean_ctor_set(x_1, 1, x_2);
  lean_ctor_set(x_1, 0, x_8);
  {
  lean_object* _tmp_0 = x_6;
  lean_object* _tmp_1 = x_1;
  x_1 = _tmp_0;
  x_2 = _tmp_1;
  }
  goto _start;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_1, 0);
  x_11 = lean_ctor_get(x_1, 1);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_dec(x_1);
  x_12 = 1;
  x_13 = l_Lean_Name_toString(x_10, x_12);
  x_14 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_14, 0, x_13);
  lean_ctor_set(x_14, 1, x_2);
  x_1 = x_11;
  x_2 = x_14;
  goto _start;
  }
  }
  }
  }
  static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes(" ", 1);
  return x_1;
  }
  }
  static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__2;
  x_2 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes(" :", 2);
  return x_1;
  }
  }
  static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__3;
  x_2 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__5() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes(" : ", 3);
  return x_1;
  }
  }
  static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__6() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___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_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__7() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes(" :=", 3);
  return x_1;
  }
  }
  static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__8() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__7;
  x_2 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__9() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes(":", 1);
  return x_1;
  }
  }
  static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__10() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__9;
  x_2 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) {
  _start:
  {
  uint8_t x_6; 
  x_6 = lean_usize_dec_lt(x_4, x_3);
  if (x_6 == 0)
  {
  lean_dec(x_1);
  return x_5;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
  x_7 = lean_array_uget(x_2, x_4);
  x_8 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_InteractiveGoal_addLine(x_5);
  x_9 = lean_ctor_get(x_7, 0);
  lean_inc(x_9);
  x_10 = lean_array_to_list(lean_box(0), x_9);
  x_11 = lean_box(0);
  x_12 = l_List_filterAux___at_Lean_Widget_InteractiveGoal_pretty___spec__1(x_10, x_11);
  x_13 = l_List_mapTRAux___at_Lean_Widget_InteractiveGoal_pretty___spec__2(x_12, x_11);
  x_14 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__1;
  x_15 = l_String_intercalate(x_14, x_13);
  x_16 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__2;
  x_17 = lean_string_dec_eq(x_15, x_16);
  if (x_17 == 0)
  {
  lean_object* x_18; 
  x_18 = lean_ctor_get(x_7, 3);
  lean_inc(x_18);
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; size_t x_35; size_t x_36; 
  x_19 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_19, 0, x_15);
  x_20 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__2;
  x_21 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_21, 0, x_20);
  lean_ctor_set(x_21, 1, x_19);
  x_22 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__4;
  x_23 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_23, 0, x_21);
  lean_ctor_set(x_23, 1, x_22);
  x_24 = lean_ctor_get(x_7, 2);
  lean_inc(x_24);
  lean_dec(x_7);
  x_25 = l_Lean_Widget_TaggedText_stripTags___rarg(x_24);
  x_26 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_26, 0, x_25);
  x_27 = lean_box(1);
  x_28 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_28, 0, x_27);
  lean_ctor_set(x_28, 1, x_26);
  lean_inc(x_1);
  x_29 = lean_alloc_ctor(3, 2, 0);
  lean_ctor_set(x_29, 0, x_1);
  lean_ctor_set(x_29, 1, x_28);
  x_30 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_30, 0, x_23);
  lean_ctor_set(x_30, 1, x_29);
  x_31 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_31, 0, x_30);
  lean_ctor_set(x_31, 1, x_20);
  x_32 = 0;
  x_33 = lean_alloc_ctor(5, 1, 1);
  lean_ctor_set(x_33, 0, x_31);
  lean_ctor_set_uint8(x_33, sizeof(void*)*1, x_32);
  x_34 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_34, 0, x_8);
  lean_ctor_set(x_34, 1, x_33);
  x_35 = 1;
  x_36 = lean_usize_add(x_4, x_35);
  x_4 = x_36;
  x_5 = x_34;
  goto _start;
  }
  else
  {
  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; uint8_t x_57; lean_object* x_58; lean_object* x_59; size_t x_60; size_t x_61; 
  x_38 = lean_ctor_get(x_18, 0);
  lean_inc(x_38);
  lean_dec(x_18);
  x_39 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_39, 0, x_15);
  x_40 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__2;
  x_41 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_41, 0, x_40);
  lean_ctor_set(x_41, 1, x_39);
  x_42 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__6;
  x_43 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_43, 0, x_41);
  lean_ctor_set(x_43, 1, x_42);
  x_44 = lean_ctor_get(x_7, 2);
  lean_inc(x_44);
  lean_dec(x_7);
  x_45 = l_Lean_Widget_TaggedText_stripTags___rarg(x_44);
  x_46 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_46, 0, x_45);
  x_47 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_47, 0, x_43);
  lean_ctor_set(x_47, 1, x_46);
  x_48 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__8;
  x_49 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_49, 0, x_47);
  lean_ctor_set(x_49, 1, x_48);
  x_50 = l_Lean_Widget_TaggedText_stripTags___rarg(x_38);
  x_51 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_51, 0, x_50);
  x_52 = lean_box(1);
  x_53 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_53, 0, x_52);
  lean_ctor_set(x_53, 1, x_51);
  lean_inc(x_1);
  x_54 = lean_alloc_ctor(3, 2, 0);
  lean_ctor_set(x_54, 0, x_1);
  lean_ctor_set(x_54, 1, x_53);
  x_55 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_55, 0, x_49);
  lean_ctor_set(x_55, 1, x_54);
  x_56 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_56, 0, x_55);
  lean_ctor_set(x_56, 1, x_40);
  x_57 = 0;
  x_58 = lean_alloc_ctor(5, 1, 1);
  lean_ctor_set(x_58, 0, x_56);
  lean_ctor_set_uint8(x_58, sizeof(void*)*1, x_57);
  x_59 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_59, 0, x_8);
  lean_ctor_set(x_59, 1, x_58);
  x_60 = 1;
  x_61 = lean_usize_add(x_4, x_60);
  x_4 = x_61;
  x_5 = x_59;
  goto _start;
  }
  }
  else
  {
  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; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; size_t x_76; size_t x_77; 
  lean_dec(x_15);
  x_63 = lean_ctor_get(x_7, 2);
  lean_inc(x_63);
  lean_dec(x_7);
  x_64 = l_Lean_Widget_TaggedText_stripTags___rarg(x_63);
  x_65 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_65, 0, x_64);
  x_66 = lean_box(1);
  x_67 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_67, 0, x_66);
  lean_ctor_set(x_67, 1, x_65);
  lean_inc(x_1);
  x_68 = lean_alloc_ctor(3, 2, 0);
  lean_ctor_set(x_68, 0, x_1);
  lean_ctor_set(x_68, 1, x_67);
  x_69 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__10;
  x_70 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_70, 0, x_69);
  lean_ctor_set(x_70, 1, x_68);
  x_71 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__2;
  x_72 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_72, 0, x_70);
  lean_ctor_set(x_72, 1, x_71);
  x_73 = 0;
  x_74 = lean_alloc_ctor(5, 1, 1);
  lean_ctor_set(x_74, 0, x_72);
  lean_ctor_set_uint8(x_74, sizeof(void*)*1, x_73);
  x_75 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_75, 0, x_8);
  lean_ctor_set(x_75, 1, x_74);
  x_76 = 1;
  x_77 = lean_usize_add(x_4, x_76);
  x_4 = x_77;
  x_5 = x_75;
  goto _start;
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Widget_InteractiveGoal_pretty___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(2u);
  x_2 = lean_nat_to_int(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Widget_InteractiveGoal_pretty___closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("case ", 5);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Widget_InteractiveGoal_pretty___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Widget_InteractiveGoal_pretty___closed__2;
  x_2 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_InteractiveGoal_pretty(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  x_2 = lean_ctor_get(x_1, 2);
  lean_inc(x_2);
  x_3 = lean_ctor_get(x_1, 0);
  lean_inc(x_3);
  x_4 = lean_array_get_size(x_3);
  x_5 = lean_usize_of_nat(x_4);
  lean_dec(x_4);
  x_6 = 0;
  x_7 = lean_ctor_get(x_1, 3);
  lean_inc(x_7);
  x_8 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_8, 0, x_7);
  x_9 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__2;
  x_10 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_10, 0, x_9);
  lean_ctor_set(x_10, 1, x_8);
  x_11 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_11, 0, x_10);
  lean_ctor_set(x_11, 1, x_9);
  x_12 = lean_ctor_get(x_1, 1);
  lean_inc(x_12);
  lean_dec(x_1);
  x_13 = l_Lean_Widget_TaggedText_stripTags___rarg(x_12);
  x_14 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_14, 0, x_13);
  x_15 = l_Lean_Widget_InteractiveGoal_pretty___closed__1;
  x_16 = lean_alloc_ctor(3, 2, 0);
  lean_ctor_set(x_16, 0, x_15);
  lean_ctor_set(x_16, 1, x_14);
  x_17 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_17, 0, x_11);
  lean_ctor_set(x_17, 1, x_16);
  x_18 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_18, 0, x_17);
  lean_ctor_set(x_18, 1, x_9);
  if (lean_obj_tag(x_2) == 0)
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_19 = lean_box(0);
  x_20 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3(x_15, x_3, x_5, x_6, x_19);
  lean_dec(x_3);
  x_21 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_InteractiveGoal_addLine(x_20);
  x_22 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_22, 0, x_21);
  lean_ctor_set(x_22, 1, x_18);
  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; 
  x_23 = lean_ctor_get(x_2, 0);
  lean_inc(x_23);
  lean_dec(x_2);
  x_24 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_24, 0, x_23);
  x_25 = l_Lean_Widget_InteractiveGoal_pretty___closed__3;
  x_26 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_26, 0, x_25);
  lean_ctor_set(x_26, 1, x_24);
  x_27 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_27, 0, x_26);
  lean_ctor_set(x_27, 1, x_9);
  x_28 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3(x_15, x_3, x_5, x_6, x_27);
  lean_dec(x_3);
  x_29 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_InteractiveGoal_addLine(x_28);
  x_30 = lean_alloc_ctor(4, 2, 0);
  lean_ctor_set(x_30, 0, x_29);
  lean_ctor_set(x_30, 1, x_18);
  return x_30;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  size_t x_6; size_t x_7; lean_object* x_8; 
  x_6 = lean_unbox_usize(x_3);
  lean_dec(x_3);
  x_7 = lean_unbox_usize(x_4);
  lean_dec(x_4);
  x_8 = l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3(x_1, x_2, x_6, x_7, x_5);
  lean_dec(x_2);
  return x_8;
  }
  }
  static lean_object* _init_l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(0u);
  x_2 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_2, 0, x_1);
  lean_ctor_set(x_2, 1, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__1;
  x_2 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_2, 0, x_1);
  lean_ctor_set(x_2, 1, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
  x_1 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__1;
  x_2 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__3;
  x_3 = l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__2;
  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_Widget_instInhabitedInteractiveTermGoal() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__3;
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("range", 5);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; lean_object* x_6; 
  x_5 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__1;
  x_6 = l_Lean_Json_getObjValAs_x3f(x_4, lean_box(0), x_1, x_5);
  if (lean_obj_tag(x_6) == 0)
  {
  uint8_t x_7; 
  lean_dec(x_3);
  lean_dec(x_2);
  x_7 = !lean_is_exclusive(x_6);
  if (x_7 == 0)
  {
  return x_6;
  }
  else
  {
  lean_object* x_8; lean_object* x_9; 
  x_8 = lean_ctor_get(x_6, 0);
  lean_inc(x_8);
  lean_dec(x_6);
  x_9 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_9, 0, x_8);
  return x_9;
  }
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_10 = lean_ctor_get(x_6, 0);
  lean_inc(x_10);
  lean_dec(x_6);
  x_11 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__3;
  x_12 = l_Lean_Json_getObjValAs_x3f(x_4, lean_box(0), x_2, x_11);
  if (lean_obj_tag(x_12) == 0)
  {
  uint8_t x_13; 
  lean_dec(x_10);
  lean_dec(x_3);
  x_13 = !lean_is_exclusive(x_12);
  if (x_13 == 0)
  {
  return x_12;
  }
  else
  {
  lean_object* x_14; lean_object* x_15; 
  x_14 = lean_ctor_get(x_12, 0);
  lean_inc(x_14);
  lean_dec(x_12);
  x_15 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_15, 0, x_14);
  return x_15;
  }
  }
  else
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  x_16 = lean_ctor_get(x_12, 0);
  lean_inc(x_16);
  lean_dec(x_12);
  x_17 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg___closed__1;
  x_18 = l_Lean_Json_getObjValAs_x3f(x_4, lean_box(0), x_3, x_17);
  if (lean_obj_tag(x_18) == 0)
  {
  uint8_t x_19; 
  lean_dec(x_16);
  lean_dec(x_10);
  x_19 = !lean_is_exclusive(x_18);
  if (x_19 == 0)
  {
  return x_18;
  }
  else
  {
  lean_object* x_20; lean_object* x_21; 
  x_20 = lean_ctor_get(x_18, 0);
  lean_inc(x_20);
  lean_dec(x_18);
  x_21 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_21, 0, x_20);
  return x_21;
  }
  }
  else
  {
  uint8_t x_22; 
  x_22 = !lean_is_exclusive(x_18);
  if (x_22 == 0)
  {
  lean_object* x_23; lean_object* x_24; 
  x_23 = lean_ctor_get(x_18, 0);
  x_24 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_24, 0, x_10);
  lean_ctor_set(x_24, 1, x_16);
  lean_ctor_set(x_24, 2, x_23);
  lean_ctor_set(x_18, 0, x_24);
  return x_18;
  }
  else
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; 
  x_25 = lean_ctor_get(x_18, 0);
  lean_inc(x_25);
  lean_dec(x_18);
  x_26 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_26, 0, x_10);
  lean_ctor_set(x_26, 1, x_16);
  lean_ctor_set(x_26, 2, x_25);
  x_27 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_27, 0, x_26);
  return x_27;
  }
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097_(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg___boxed), 4, 0);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg(x_1, x_2, x_3, x_4);
  lean_dec(x_4);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg___boxed), 4, 3);
  lean_closure_set(x_4, 0, x_1);
  lean_closure_set(x_4, 1, x_2);
  lean_closure_set(x_4, 2, x_3);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_alloc_closure((void*)(l_Lean_Widget_instFromJsonRpcEncodingPacket__3___rarg), 3, 0);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2234____rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
  x_5 = lean_ctor_get(x_4, 0);
  lean_inc(x_5);
  x_6 = lean_apply_1(x_1, x_5);
  x_7 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__1;
  x_8 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_8, 0, x_7);
  lean_ctor_set(x_8, 1, x_6);
  x_9 = lean_box(0);
  x_10 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_10, 0, x_8);
  lean_ctor_set(x_10, 1, x_9);
  x_11 = lean_ctor_get(x_4, 1);
  lean_inc(x_11);
  x_12 = lean_apply_1(x_2, x_11);
  x_13 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__3;
  x_14 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_14, 0, x_13);
  lean_ctor_set(x_14, 1, x_12);
  x_15 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_15, 0, x_14);
  lean_ctor_set(x_15, 1, x_9);
  x_16 = lean_ctor_get(x_4, 2);
  lean_inc(x_16);
  lean_dec(x_4);
  x_17 = lean_apply_1(x_3, x_16);
  x_18 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg___closed__1;
  x_19 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_19, 0, x_18);
  lean_ctor_set(x_19, 1, x_17);
  x_20 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_20, 0, x_19);
  lean_ctor_set(x_20, 1, x_9);
  x_21 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_21, 0, x_20);
  lean_ctor_set(x_21, 1, x_9);
  x_22 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_22, 0, x_15);
  lean_ctor_set(x_22, 1, x_21);
  x_23 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_23, 0, x_10);
  lean_ctor_set(x_23, 1, x_22);
  x_24 = l_List_join___rarg(x_23);
  x_25 = l_Lean_Json_mkObj(x_24);
  return x_25;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2234_(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2234____rarg), 4, 0);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2234____rarg), 4, 3);
  lean_closure_set(x_4, 0, x_1);
  lean_closure_set(x_4, 1, x_2);
  lean_closure_set(x_4, 2, x_3);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_alloc_closure((void*)(l_Lean_Widget_instToJsonRpcEncodingPacket__3___rarg), 3, 0);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__1___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__2(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__2___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__3(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__3___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  x_5 = lean_ctor_get(x_1, 0);
  lean_inc(x_5);
  lean_dec(x_1);
  x_6 = lean_ctor_get(x_5, 1);
  lean_inc(x_6);
  lean_dec(x_5);
  x_7 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_7, 0, x_2);
  lean_ctor_set(x_7, 1, x_3);
  lean_ctor_set(x_7, 2, x_4);
  x_8 = lean_apply_2(x_6, lean_box(0), x_7);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___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) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_8 = lean_ctor_get(x_1, 0);
  lean_inc(x_8);
  lean_dec(x_1);
  x_9 = lean_ctor_get(x_2, 2);
  lean_inc(x_9);
  lean_dec(x_2);
  lean_inc(x_3);
  x_10 = lean_apply_4(x_8, lean_box(0), x_3, x_4, x_9);
  x_11 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__1), 4, 3);
  lean_closure_set(x_11, 0, x_3);
  lean_closure_set(x_11, 1, x_5);
  lean_closure_set(x_11, 2, x_7);
  x_12 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_10, x_11);
  return x_12;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_8 = lean_ctor_get(x_1, 0);
  lean_inc(x_8);
  lean_dec(x_1);
  x_9 = lean_ctor_get(x_2, 1);
  lean_inc(x_9);
  lean_inc(x_4);
  lean_inc(x_3);
  x_10 = lean_apply_4(x_8, lean_box(0), x_3, x_4, x_9);
  lean_inc(x_6);
  x_11 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__2), 7, 6);
  lean_closure_set(x_11, 0, x_5);
  lean_closure_set(x_11, 1, x_2);
  lean_closure_set(x_11, 2, x_3);
  lean_closure_set(x_11, 3, x_4);
  lean_closure_set(x_11, 4, x_7);
  lean_closure_set(x_11, 5, x_6);
  x_12 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_10, x_11);
  return x_12;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_8 = lean_ctor_get(x_5, 1);
  lean_inc(x_8);
  x_9 = lean_ctor_get(x_1, 0);
  lean_inc(x_9);
  lean_dec(x_1);
  x_10 = lean_ctor_get(x_7, 0);
  lean_inc(x_10);
  lean_inc(x_6);
  lean_inc(x_5);
  x_11 = lean_apply_4(x_9, lean_box(0), x_5, x_6, x_10);
  lean_inc(x_8);
  x_12 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__3), 7, 6);
  lean_closure_set(x_12, 0, x_2);
  lean_closure_set(x_12, 1, x_7);
  lean_closure_set(x_12, 2, x_5);
  lean_closure_set(x_12, 3, x_6);
  lean_closure_set(x_12, 4, x_3);
  lean_closure_set(x_12, 5, x_8);
  x_13 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_11, x_12);
  return x_13;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_5 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_5, 0, x_1);
  lean_ctor_set(x_5, 1, x_2);
  lean_ctor_set(x_5, 2, x_4);
  x_6 = lean_ctor_get(x_3, 0);
  lean_inc(x_6);
  lean_dec(x_3);
  x_7 = lean_ctor_get(x_6, 1);
  lean_inc(x_7);
  lean_dec(x_6);
  x_8 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_8, 0, x_5);
  x_9 = lean_apply_2(x_7, lean_box(0), x_8);
  return x_9;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_7 = lean_ctor_get(x_1, 1);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_2, 2);
  lean_inc(x_8);
  lean_dec(x_2);
  lean_inc(x_3);
  x_9 = lean_apply_4(x_7, lean_box(0), x_3, x_4, x_8);
  lean_inc(x_3);
  x_10 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__5), 4, 3);
  lean_closure_set(x_10, 0, x_5);
  lean_closure_set(x_10, 1, x_6);
  lean_closure_set(x_10, 2, x_3);
  x_11 = lean_ctor_get(x_3, 1);
  lean_inc(x_11);
  x_12 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__1___rarg), 5, 4);
  lean_closure_set(x_12, 0, x_3);
  lean_closure_set(x_12, 1, lean_box(0));
  lean_closure_set(x_12, 2, lean_box(0));
  lean_closure_set(x_12, 3, x_10);
  x_13 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_9, x_12);
  return x_13;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_7 = lean_ctor_get(x_1, 1);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_2, 1);
  lean_inc(x_8);
  lean_inc(x_4);
  lean_inc(x_3);
  x_9 = lean_apply_4(x_7, lean_box(0), x_3, x_4, x_8);
  lean_inc(x_3);
  x_10 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__6), 6, 5);
  lean_closure_set(x_10, 0, x_5);
  lean_closure_set(x_10, 1, x_2);
  lean_closure_set(x_10, 2, x_3);
  lean_closure_set(x_10, 3, x_4);
  lean_closure_set(x_10, 4, x_6);
  x_11 = lean_ctor_get(x_3, 1);
  lean_inc(x_11);
  x_12 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__2___rarg), 5, 4);
  lean_closure_set(x_12, 0, x_3);
  lean_closure_set(x_12, 1, lean_box(0));
  lean_closure_set(x_12, 2, lean_box(0));
  lean_closure_set(x_12, 3, x_10);
  x_13 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_9, x_12);
  return x_13;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  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; 
  x_8 = lean_ctor_get(x_1, 1);
  lean_inc(x_8);
  lean_dec(x_1);
  x_9 = lean_ctor_get(x_7, 0);
  lean_inc(x_9);
  lean_inc(x_6);
  lean_inc(x_5);
  x_10 = lean_apply_4(x_8, lean_box(0), x_5, x_6, x_9);
  lean_inc(x_5);
  x_11 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__7), 6, 5);
  lean_closure_set(x_11, 0, x_2);
  lean_closure_set(x_11, 1, x_7);
  lean_closure_set(x_11, 2, x_5);
  lean_closure_set(x_11, 3, x_6);
  lean_closure_set(x_11, 4, x_3);
  x_12 = lean_ctor_get(x_5, 1);
  lean_inc(x_12);
  x_13 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___spec__3___rarg), 5, 4);
  lean_closure_set(x_13, 0, x_5);
  lean_closure_set(x_13, 1, lean_box(0));
  lean_closure_set(x_13, 2, lean_box(0));
  lean_closure_set(x_13, 3, x_11);
  x_14 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_10, x_13);
  return x_14;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  lean_inc(x_5);
  lean_inc(x_3);
  lean_inc(x_1);
  x_6 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__4), 7, 3);
  lean_closure_set(x_6, 0, x_1);
  lean_closure_set(x_6, 1, x_3);
  lean_closure_set(x_6, 2, x_5);
  x_7 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg___lambda__8), 7, 3);
  lean_closure_set(x_7, 0, x_1);
  lean_closure_set(x_7, 1, x_3);
  lean_closure_set(x_7, 2, x_5);
  x_8 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_8, 0, x_6);
  lean_ctor_set(x_8, 1, x_7);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveTermGoalRpcEncodingPacket___rarg), 5, 0);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("⊢ ", 4);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal(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 = lean_ctor_get(x_1, 0);
  x_3 = lean_ctor_get(x_1, 1);
  x_4 = lean_box(0);
  x_5 = l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal___closed__1;
  lean_inc(x_3);
  lean_inc(x_2);
  x_6 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_6, 0, x_2);
  lean_ctor_set(x_6, 1, x_3);
  lean_ctor_set(x_6, 2, x_4);
  lean_ctor_set(x_6, 3, x_5);
  lean_ctor_set(x_6, 4, x_4);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("goals", 5);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; 
  x_3 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg___closed__1;
  x_4 = l_Lean_Json_getObjValAs_x3f(x_2, lean_box(0), x_1, x_3);
  if (lean_obj_tag(x_4) == 0)
  {
  uint8_t x_5; 
  x_5 = !lean_is_exclusive(x_4);
  if (x_5 == 0)
  {
  return x_4;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; 
  x_6 = lean_ctor_get(x_4, 0);
  lean_inc(x_6);
  lean_dec(x_4);
  x_7 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_7, 0, x_6);
  return x_7;
  }
  }
  else
  {
  uint8_t x_8; 
  x_8 = !lean_is_exclusive(x_4);
  if (x_8 == 0)
  {
  return x_4;
  }
  else
  {
  lean_object* x_9; lean_object* x_10; 
  x_9 = lean_ctor_get(x_4, 0);
  lean_inc(x_9);
  lean_dec(x_4);
  x_10 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_10, 0, x_9);
  return x_10;
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg___boxed), 2, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg(x_1, x_2);
  lean_dec(x_2);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__4___rarg(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg___boxed), 2, 1);
  lean_closure_set(x_2, 0, x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instFromJsonRpcEncodingPacket__4(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Widget_instFromJsonRpcEncodingPacket__4___rarg), 1, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2637____rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  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; 
  x_3 = lean_apply_1(x_1, x_2);
  x_4 = l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg___closed__1;
  x_5 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_5, 0, x_4);
  lean_ctor_set(x_5, 1, x_3);
  x_6 = lean_box(0);
  x_7 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_7, 0, x_5);
  lean_ctor_set(x_7, 1, x_6);
  x_8 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_8, 0, x_7);
  lean_ctor_set(x_8, 1, x_6);
  x_9 = l_List_join___rarg(x_8);
  x_10 = l_Lean_Json_mkObj(x_9);
  return x_10;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2637_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2637____rarg), 2, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__4___rarg(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_toJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2637____rarg), 2, 1);
  lean_closure_set(x_2, 0, x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonRpcEncodingPacket__4(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Widget_instToJsonRpcEncodingPacket__4___rarg), 1, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  lean_dec(x_4);
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_apply_2(x_8, lean_box(0), x_5);
  return x_9;
  }
  else
  {
  lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_10 = lean_ctor_get(x_5, 0);
  lean_inc(x_10);
  lean_dec(x_5);
  x_11 = lean_ctor_get(x_1, 0);
  lean_inc(x_11);
  lean_dec(x_1);
  x_12 = lean_ctor_get(x_11, 1);
  lean_inc(x_12);
  lean_dec(x_11);
  x_13 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_13, 0, x_10);
  x_14 = lean_apply_2(x_12, lean_box(0), x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; lean_object* x_16; 
  lean_dec(x_1);
  x_15 = lean_ctor_get(x_5, 0);
  lean_inc(x_15);
  lean_dec(x_5);
  x_16 = lean_apply_1(x_4, x_15);
  return x_16;
  }
  }
  }
  LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___spec__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___spec__1___rarg), 5, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg___lambda__1(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);
  lean_dec(x_1);
  x_4 = lean_ctor_get(x_3, 1);
  lean_inc(x_4);
  lean_dec(x_3);
  x_5 = lean_apply_2(x_4, lean_box(0), x_2);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  x_6 = lean_ctor_get(x_3, 1);
  lean_inc(x_6);
  x_7 = lean_ctor_get(x_1, 0);
  lean_inc(x_7);
  lean_dec(x_1);
  lean_inc(x_3);
  x_8 = lean_apply_4(x_7, lean_box(0), x_3, x_4, x_5);
  x_9 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg___lambda__1), 2, 1);
  lean_closure_set(x_9, 0, x_3);
  x_10 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_8, x_9);
  return x_10;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg___lambda__3(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
  x_3 = lean_ctor_get(x_1, 0);
  lean_inc(x_3);
  lean_dec(x_1);
  x_4 = lean_ctor_get(x_3, 1);
  lean_inc(x_4);
  lean_dec(x_3);
  x_5 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_5, 0, x_2);
  x_6 = lean_apply_2(x_4, lean_box(0), x_5);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
  _start:
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
  x_6 = lean_ctor_get(x_1, 1);
  lean_inc(x_6);
  lean_dec(x_1);
  lean_inc(x_3);
  x_7 = lean_apply_4(x_6, lean_box(0), x_3, x_4, x_5);
  lean_inc(x_3);
  x_8 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg___lambda__3), 2, 1);
  lean_closure_set(x_8, 0, x_3);
  x_9 = lean_ctor_get(x_3, 1);
  lean_inc(x_9);
  x_10 = lean_alloc_closure((void*)(l_ExceptT_bindCont___at_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___spec__1___rarg), 5, 4);
  lean_closure_set(x_10, 0, x_3);
  lean_closure_set(x_10, 1, lean_box(0));
  lean_closure_set(x_10, 2, lean_box(0));
  lean_closure_set(x_10, 3, x_8);
  x_11 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_7, x_10);
  return x_11;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; lean_object* x_4; 
  lean_inc(x_1);
  x_2 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg___lambda__2), 5, 1);
  lean_closure_set(x_2, 0, x_1);
  x_3 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg___lambda__4), 5, 1);
  lean_closure_set(x_3, 0, x_1);
  x_4 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_4, 0, x_2);
  lean_ctor_set(x_4, 1, x_3);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Widget_instRpcEncodingInteractiveGoalsRpcEncodingPacket___rarg), 1, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_addInteractiveHypothesisBundle___spec__1(size_t x_1, size_t x_2, lean_object* x_3) {
  _start:
  {
  uint8_t x_4; 
  x_4 = lean_usize_dec_lt(x_2, x_1);
  if (x_4 == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
  x_5 = lean_array_uget(x_3, x_2);
  x_6 = lean_unsigned_to_nat(0u);
  x_7 = lean_array_uset(x_3, x_2, x_6);
  x_8 = lean_ctor_get(x_5, 1);
  lean_inc(x_8);
  lean_dec(x_5);
  x_9 = 1;
  x_10 = lean_usize_add(x_2, x_9);
  x_11 = lean_array_uset(x_7, x_2, x_8);
  x_2 = x_10;
  x_3 = x_11;
  goto _start;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_addInteractiveHypothesisBundle___spec__2(size_t x_1, size_t x_2, lean_object* x_3) {
  _start:
  {
  uint8_t x_4; 
  x_4 = lean_usize_dec_lt(x_2, x_1);
  if (x_4 == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
  x_5 = lean_array_uget(x_3, x_2);
  x_6 = lean_unsigned_to_nat(0u);
  x_7 = lean_array_uset(x_3, x_2, x_6);
  x_8 = lean_ctor_get(x_5, 0);
  lean_inc(x_8);
  lean_dec(x_5);
  x_9 = 1;
  x_10 = lean_usize_add(x_2, x_9);
  x_11 = lean_array_uset(x_7, x_2, x_8);
  x_2 = x_10;
  x_3 = x_11;
  goto _start;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_addInteractiveHypothesisBundle___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; size_t x_12; size_t x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; 
  x_11 = lean_array_get_size(x_1);
  x_12 = lean_usize_of_nat(x_11);
  lean_dec(x_11);
  x_13 = 0;
  lean_inc(x_1);
  x_14 = l_Array_mapMUnsafe_map___at_Lean_Widget_addInteractiveHypothesisBundle___spec__1(x_12, x_13, x_1);
  x_15 = l_Array_mapMUnsafe_map___at_Lean_Widget_addInteractiveHypothesisBundle___spec__2(x_12, x_13, x_1);
  x_16 = 0;
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_2);
  x_17 = l_Lean_Widget_ppExprTagged(x_2, x_16, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_17) == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
  x_18 = lean_ctor_get(x_17, 0);
  lean_inc(x_18);
  x_19 = lean_ctor_get(x_17, 1);
  lean_inc(x_19);
  lean_dec(x_17);
  if (lean_obj_tag(x_4) == 0)
  {
  lean_object* x_49; 
  x_49 = lean_box(0);
  x_20 = x_49;
  x_21 = x_19;
  goto block_48;
  }
  else
  {
  uint8_t x_50; 
  x_50 = !lean_is_exclusive(x_4);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; 
  x_51 = lean_ctor_get(x_4, 0);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_52 = l_Lean_Widget_ppExprTagged(x_51, x_16, x_6, x_7, x_8, x_9, x_19);
  if (lean_obj_tag(x_52) == 0)
  {
  lean_object* x_53; lean_object* x_54; 
  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);
  lean_ctor_set(x_4, 0, x_53);
  x_20 = x_4;
  x_21 = x_54;
  goto block_48;
  }
  else
  {
  uint8_t x_55; 
  lean_free_object(x_4);
  lean_dec(x_18);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_3);
  lean_dec(x_2);
  x_55 = !lean_is_exclusive(x_52);
  if (x_55 == 0)
  {
  return x_52;
  }
  else
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; 
  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(1, 2, 0);
  lean_ctor_set(x_58, 0, x_56);
  lean_ctor_set(x_58, 1, x_57);
  return x_58;
  }
  }
  }
  else
  {
  lean_object* x_59; lean_object* x_60; 
  x_59 = lean_ctor_get(x_4, 0);
  lean_inc(x_59);
  lean_dec(x_4);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_60 = l_Lean_Widget_ppExprTagged(x_59, x_16, x_6, x_7, x_8, x_9, x_19);
  if (lean_obj_tag(x_60) == 0)
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; 
  x_61 = lean_ctor_get(x_60, 0);
  lean_inc(x_61);
  x_62 = lean_ctor_get(x_60, 1);
  lean_inc(x_62);
  lean_dec(x_60);
  x_63 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_63, 0, x_61);
  x_20 = x_63;
  x_21 = x_62;
  goto block_48;
  }
  else
  {
  lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; 
  lean_dec(x_18);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_3);
  lean_dec(x_2);
  x_64 = lean_ctor_get(x_60, 0);
  lean_inc(x_64);
  x_65 = lean_ctor_get(x_60, 1);
  lean_inc(x_65);
  if (lean_is_exclusive(x_60)) {
   lean_ctor_release(x_60, 0);
   lean_ctor_release(x_60, 1);
   x_66 = x_60;
  } else {
   lean_dec_ref(x_60);
   x_66 = lean_box(0);
  }
  if (lean_is_scalar(x_66)) {
   x_67 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_67 = x_66;
  }
  lean_ctor_set(x_67, 0, x_64);
  lean_ctor_set(x_67, 1, x_65);
  return x_67;
  }
  }
  }
  block_48:
  {
  lean_object* x_22; 
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_2);
  x_22 = l_Lean_Meta_isClass_x3f(x_2, x_6, x_7, x_8, x_9, x_21);
  if (lean_obj_tag(x_22) == 0)
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; 
  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_Meta_instantiateMVars(x_2, x_6, x_7, x_8, x_9, x_24);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_6);
  x_26 = !lean_is_exclusive(x_25);
  if (x_26 == 0)
  {
  lean_object* x_27; uint8_t x_28; 
  x_27 = lean_ctor_get(x_25, 0);
  x_28 = l_Lean_Expr_isSort(x_27);
  lean_dec(x_27);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_29; lean_object* x_30; 
  x_29 = lean_alloc_ctor(0, 4, 2);
  lean_ctor_set(x_29, 0, x_15);
  lean_ctor_set(x_29, 1, x_14);
  lean_ctor_set(x_29, 2, x_18);
  lean_ctor_set(x_29, 3, x_20);
  lean_ctor_set_uint8(x_29, sizeof(void*)*4, x_16);
  lean_ctor_set_uint8(x_29, sizeof(void*)*4 + 1, x_28);
  x_30 = lean_array_push(x_3, x_29);
  lean_ctor_set(x_25, 0, x_30);
  return x_25;
  }
  else
  {
  uint8_t x_31; lean_object* x_32; lean_object* x_33; 
  lean_dec(x_23);
  x_31 = 1;
  x_32 = lean_alloc_ctor(0, 4, 2);
  lean_ctor_set(x_32, 0, x_15);
  lean_ctor_set(x_32, 1, x_14);
  lean_ctor_set(x_32, 2, x_18);
  lean_ctor_set(x_32, 3, x_20);
  lean_ctor_set_uint8(x_32, sizeof(void*)*4, x_31);
  lean_ctor_set_uint8(x_32, sizeof(void*)*4 + 1, x_28);
  x_33 = lean_array_push(x_3, x_32);
  lean_ctor_set(x_25, 0, x_33);
  return x_25;
  }
  }
  else
  {
  lean_object* x_34; lean_object* x_35; uint8_t x_36; 
  x_34 = lean_ctor_get(x_25, 0);
  x_35 = lean_ctor_get(x_25, 1);
  lean_inc(x_35);
  lean_inc(x_34);
  lean_dec(x_25);
  x_36 = l_Lean_Expr_isSort(x_34);
  lean_dec(x_34);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  x_37 = lean_alloc_ctor(0, 4, 2);
  lean_ctor_set(x_37, 0, x_15);
  lean_ctor_set(x_37, 1, x_14);
  lean_ctor_set(x_37, 2, x_18);
  lean_ctor_set(x_37, 3, x_20);
  lean_ctor_set_uint8(x_37, sizeof(void*)*4, x_16);
  lean_ctor_set_uint8(x_37, sizeof(void*)*4 + 1, x_36);
  x_38 = lean_array_push(x_3, x_37);
  x_39 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_39, 0, x_38);
  lean_ctor_set(x_39, 1, x_35);
  return x_39;
  }
  else
  {
  uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
  lean_dec(x_23);
  x_40 = 1;
  x_41 = lean_alloc_ctor(0, 4, 2);
  lean_ctor_set(x_41, 0, x_15);
  lean_ctor_set(x_41, 1, x_14);
  lean_ctor_set(x_41, 2, x_18);
  lean_ctor_set(x_41, 3, x_20);
  lean_ctor_set_uint8(x_41, sizeof(void*)*4, x_40);
  lean_ctor_set_uint8(x_41, sizeof(void*)*4 + 1, x_36);
  x_42 = lean_array_push(x_3, x_41);
  x_43 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_43, 0, x_42);
  lean_ctor_set(x_43, 1, x_35);
  return x_43;
  }
  }
  }
  else
  {
  uint8_t x_44; 
  lean_dec(x_20);
  lean_dec(x_18);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_3);
  lean_dec(x_2);
  x_44 = !lean_is_exclusive(x_22);
  if (x_44 == 0)
  {
  return x_22;
  }
  else
  {
  lean_object* x_45; lean_object* x_46; lean_object* x_47; 
  x_45 = lean_ctor_get(x_22, 0);
  x_46 = lean_ctor_get(x_22, 1);
  lean_inc(x_46);
  lean_inc(x_45);
  lean_dec(x_22);
  x_47 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_47, 0, x_45);
  lean_ctor_set(x_47, 1, x_46);
  return x_47;
  }
  }
  }
  }
  else
  {
  uint8_t x_68; 
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_68 = !lean_is_exclusive(x_17);
  if (x_68 == 0)
  {
  return x_17;
  }
  else
  {
  lean_object* x_69; lean_object* x_70; lean_object* x_71; 
  x_69 = lean_ctor_get(x_17, 0);
  x_70 = lean_ctor_get(x_17, 1);
  lean_inc(x_70);
  lean_inc(x_69);
  lean_dec(x_17);
  x_71 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_71, 0, x_69);
  lean_ctor_set(x_71, 1, x_70);
  return x_71;
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Widget_addInteractiveHypothesisBundle___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("Can only add a nonzero number of ids as an InteractiveHypothesisBundle.", 71);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Widget_addInteractiveHypothesisBundle___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Widget_addInteractiveHypothesisBundle___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_addInteractiveHypothesisBundle(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; uint8_t x_12; 
  x_10 = lean_array_get_size(x_2);
  x_11 = lean_unsigned_to_nat(0u);
  x_12 = lean_nat_dec_eq(x_10, x_11);
  lean_dec(x_10);
  if (x_12 == 0)
  {
  lean_object* x_13; lean_object* x_14; 
  x_13 = lean_box(0);
  x_14 = l_Lean_Widget_addInteractiveHypothesisBundle___lambda__1(x_2, x_3, x_1, x_4, x_13, x_5, x_6, x_7, x_8, x_9);
  return x_14;
  }
  else
  {
  lean_object* x_15; lean_object* x_16; uint8_t x_17; 
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_15 = l_Lean_Widget_addInteractiveHypothesisBundle___closed__2;
  x_16 = l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(x_15, 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);
  x_17 = !lean_is_exclusive(x_16);
  if (x_17 == 0)
  {
  return x_16;
  }
  else
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_18 = lean_ctor_get(x_16, 0);
  x_19 = lean_ctor_get(x_16, 1);
  lean_inc(x_19);
  lean_inc(x_18);
  lean_dec(x_16);
  x_20 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_20, 0, x_18);
  lean_ctor_set(x_20, 1, x_19);
  return x_20;
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_addInteractiveHypothesisBundle___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  size_t x_4; size_t x_5; lean_object* x_6; 
  x_4 = lean_unbox_usize(x_1);
  lean_dec(x_1);
  x_5 = lean_unbox_usize(x_2);
  lean_dec(x_2);
  x_6 = l_Array_mapMUnsafe_map___at_Lean_Widget_addInteractiveHypothesisBundle___spec__1(x_4, x_5, x_3);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_addInteractiveHypothesisBundle___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  size_t x_4; size_t x_5; lean_object* x_6; 
  x_4 = lean_unbox_usize(x_1);
  lean_dec(x_1);
  x_5 = lean_unbox_usize(x_2);
  lean_dec(x_2);
  x_6 = l_Array_mapMUnsafe_map___at_Lean_Widget_addInteractiveHypothesisBundle___spec__2(x_4, x_5, x_3);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_addInteractiveHypothesisBundle___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_Widget_addInteractiveHypothesisBundle___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_5);
  return x_11;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_goalToInteractive___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; lean_object* x_8; uint8_t x_9; 
  x_7 = lean_ctor_get(x_4, 5);
  x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
  x_9 = !lean_is_exclusive(x_8);
  if (x_9 == 0)
  {
  lean_object* x_10; lean_object* x_11; 
  x_10 = lean_ctor_get(x_8, 0);
  lean_inc(x_7);
  x_11 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_11, 0, x_7);
  lean_ctor_set(x_11, 1, x_10);
  lean_ctor_set_tag(x_8, 1);
  lean_ctor_set(x_8, 0, x_11);
  return x_8;
  }
  else
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_12 = lean_ctor_get(x_8, 0);
  x_13 = lean_ctor_get(x_8, 1);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_dec(x_8);
  lean_inc(x_7);
  x_14 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_14, 0, x_7);
  lean_ctor_set(x_14, 1, x_12);
  x_15 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_15, 0, x_14);
  lean_ctor_set(x_15, 1, x_13);
  return x_15;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__4(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, size_t x_9, size_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) {
  _start:
  {
  uint8_t x_17; 
  x_17 = lean_usize_dec_lt(x_10, x_9);
  if (x_17 == 0)
  {
  lean_object* x_18; 
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  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_18 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_18, 0, x_11);
  lean_ctor_set(x_18, 1, x_16);
  return x_18;
  }
  else
  {
  lean_object* x_19; uint8_t x_20; 
  x_19 = lean_array_uget(x_8, x_10);
  x_20 = !lean_is_exclusive(x_11);
  if (x_20 == 0)
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  x_21 = lean_ctor_get(x_11, 1);
  x_22 = lean_ctor_get(x_11, 0);
  lean_dec(x_22);
  lean_inc(x_15);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_21);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_23 = l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_19, x_21, x_12, x_13, x_14, x_15, x_16);
  if (lean_obj_tag(x_23) == 0)
  {
  lean_object* x_24; 
  x_24 = lean_ctor_get(x_23, 0);
  lean_inc(x_24);
  if (lean_obj_tag(x_24) == 0)
  {
  uint8_t x_25; 
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_25 = !lean_is_exclusive(x_23);
  if (x_25 == 0)
  {
  lean_object* x_26; lean_object* x_27; 
  x_26 = lean_ctor_get(x_23, 0);
  lean_dec(x_26);
  x_27 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_27, 0, x_24);
  lean_ctor_set(x_11, 0, x_27);
  lean_ctor_set(x_23, 0, x_11);
  return x_23;
  }
  else
  {
  lean_object* x_28; lean_object* x_29; lean_object* x_30; 
  x_28 = lean_ctor_get(x_23, 1);
  lean_inc(x_28);
  lean_dec(x_23);
  x_29 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_29, 0, x_24);
  lean_ctor_set(x_11, 0, x_29);
  x_30 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_30, 0, x_11);
  lean_ctor_set(x_30, 1, x_28);
  return x_30;
  }
  }
  else
  {
  lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; 
  lean_dec(x_21);
  x_31 = lean_ctor_get(x_23, 1);
  lean_inc(x_31);
  lean_dec(x_23);
  x_32 = lean_ctor_get(x_24, 0);
  lean_inc(x_32);
  lean_dec(x_24);
  lean_inc(x_7);
  lean_ctor_set(x_11, 1, x_32);
  lean_ctor_set(x_11, 0, x_7);
  x_33 = 1;
  x_34 = lean_usize_add(x_10, x_33);
  x_10 = x_34;
  x_16 = x_31;
  goto _start;
  }
  }
  else
  {
  uint8_t x_36; 
  lean_free_object(x_11);
  lean_dec(x_21);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  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_23);
  if (x_36 == 0)
  {
  return x_23;
  }
  else
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  x_37 = lean_ctor_get(x_23, 0);
  x_38 = lean_ctor_get(x_23, 1);
  lean_inc(x_38);
  lean_inc(x_37);
  lean_dec(x_23);
  x_39 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_39, 0, x_37);
  lean_ctor_set(x_39, 1, x_38);
  return x_39;
  }
  }
  }
  else
  {
  lean_object* x_40; lean_object* x_41; 
  x_40 = lean_ctor_get(x_11, 1);
  lean_inc(x_40);
  lean_dec(x_11);
  lean_inc(x_15);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_40);
  lean_inc(x_6);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_41 = l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_19, x_40, x_12, x_13, x_14, x_15, x_16);
  if (lean_obj_tag(x_41) == 0)
  {
  lean_object* x_42; 
  x_42 = lean_ctor_get(x_41, 0);
  lean_inc(x_42);
  if (lean_obj_tag(x_42) == 0)
  {
  lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  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_43 = lean_ctor_get(x_41, 1);
  lean_inc(x_43);
  if (lean_is_exclusive(x_41)) {
   lean_ctor_release(x_41, 0);
   lean_ctor_release(x_41, 1);
   x_44 = x_41;
  } else {
   lean_dec_ref(x_41);
   x_44 = lean_box(0);
  }
  x_45 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_45, 0, x_42);
  x_46 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_46, 0, x_45);
  lean_ctor_set(x_46, 1, x_40);
  if (lean_is_scalar(x_44)) {
   x_47 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_47 = x_44;
  }
  lean_ctor_set(x_47, 0, x_46);
  lean_ctor_set(x_47, 1, x_43);
  return x_47;
  }
  else
  {
  lean_object* x_48; lean_object* x_49; lean_object* x_50; size_t x_51; size_t x_52; 
  lean_dec(x_40);
  x_48 = lean_ctor_get(x_41, 1);
  lean_inc(x_48);
  lean_dec(x_41);
  x_49 = lean_ctor_get(x_42, 0);
  lean_inc(x_49);
  lean_dec(x_42);
  lean_inc(x_7);
  x_50 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_50, 0, x_7);
  lean_ctor_set(x_50, 1, x_49);
  x_51 = 1;
  x_52 = lean_usize_add(x_10, x_51);
  x_10 = x_52;
  x_11 = x_50;
  x_16 = x_48;
  goto _start;
  }
  }
  else
  {
  lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
  lean_dec(x_40);
  lean_dec(x_15);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  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_54 = lean_ctor_get(x_41, 0);
  lean_inc(x_54);
  x_55 = lean_ctor_get(x_41, 1);
  lean_inc(x_55);
  if (lean_is_exclusive(x_41)) {
   lean_ctor_release(x_41, 0);
   lean_ctor_release(x_41, 1);
   x_56 = x_41;
  } else {
   lean_dec_ref(x_41);
   x_56 = lean_box(0);
  }
  if (lean_is_scalar(x_56)) {
   x_57 = lean_alloc_ctor(1, 2, 0);
  } else {
   x_57 = x_56;
  }
  lean_ctor_set(x_57, 0, x_54);
  lean_ctor_set(x_57, 1, x_55);
  return x_57;
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___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; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_11 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_11, 0, x_1);
  x_12 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_12, 0, x_11);
  lean_ctor_set(x_12, 1, x_4);
  x_13 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_13, 0, x_2);
  lean_ctor_set(x_13, 1, x_12);
  x_14 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_14, 0, x_13);
  x_15 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_15, 0, x_14);
  lean_ctor_set(x_15, 1, x_10);
  return x_15;
  }
  }
  static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1() {
  _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;
  }
  }
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, size_t x_8, size_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) {
  _start:
  {
  uint8_t x_16; 
  x_16 = lean_usize_dec_lt(x_9, x_8);
  if (x_16 == 0)
  {
  lean_object* x_17; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_17 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_17, 0, x_10);
  lean_ctor_set(x_17, 1, x_15);
  return x_17;
  }
  else
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_32; 
  x_18 = lean_array_uget(x_7, x_9);
  x_19 = lean_ctor_get(x_10, 1);
  lean_inc(x_19);
  if (lean_is_exclusive(x_10)) {
   lean_ctor_release(x_10, 0);
   lean_ctor_release(x_10, 1);
   x_20 = x_10;
  } else {
   lean_dec_ref(x_10);
   x_20 = lean_box(0);
  }
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_40; 
  lean_inc(x_19);
  x_40 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_40, 0, x_19);
  x_21 = x_40;
  x_22 = x_15;
  goto block_31;
  }
  else
  {
  lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; 
  x_41 = lean_ctor_get(x_19, 1);
  lean_inc(x_41);
  x_42 = lean_ctor_get(x_18, 0);
  lean_inc(x_42);
  if (lean_is_exclusive(x_18)) {
   lean_ctor_release(x_18, 0);
   x_43 = x_18;
  } else {
   lean_dec_ref(x_18);
   x_43 = lean_box(0);
  }
  x_44 = lean_ctor_get(x_19, 0);
  lean_inc(x_44);
  x_45 = lean_ctor_get(x_41, 0);
  lean_inc(x_45);
  x_46 = lean_ctor_get(x_41, 1);
  lean_inc(x_46);
  if (lean_is_exclusive(x_41)) {
   lean_ctor_release(x_41, 0);
   lean_ctor_release(x_41, 1);
   x_47 = x_41;
  } else {
   lean_dec_ref(x_41);
   x_47 = lean_box(0);
  }
  if (x_1 == 0)
  {
  uint8_t x_206; 
  x_206 = l_Lean_LocalDecl_isAuxDecl(x_42);
  if (x_206 == 0)
  {
  lean_object* x_207; lean_object* x_208; 
  x_207 = l_Lean_LocalDecl_fvarId(x_42);
  x_208 = l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(x_2, x_207);
  lean_dec(x_207);
  if (lean_obj_tag(x_208) == 0)
  {
  lean_object* x_209; 
  x_209 = lean_box(0);
  x_48 = x_209;
  goto block_205;
  }
  else
  {
  lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; 
  lean_dec(x_208);
  lean_dec(x_47);
  lean_dec(x_43);
  lean_dec(x_42);
  x_210 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_210, 0, x_45);
  lean_ctor_set(x_210, 1, x_46);
  x_211 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_211, 0, x_44);
  lean_ctor_set(x_211, 1, x_210);
  x_212 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_212, 0, x_211);
  x_213 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_213, 0, x_212);
  lean_ctor_set(x_213, 1, x_15);
  x_32 = x_213;
  goto block_39;
  }
  }
  else
  {
  lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; 
  lean_dec(x_47);
  lean_dec(x_43);
  lean_dec(x_42);
  x_214 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_214, 0, x_45);
  lean_ctor_set(x_214, 1, x_46);
  x_215 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_215, 0, x_44);
  lean_ctor_set(x_215, 1, x_214);
  x_216 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_216, 0, x_215);
  x_217 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_217, 0, x_216);
  lean_ctor_set(x_217, 1, x_15);
  x_32 = x_217;
  goto block_39;
  }
  }
  else
  {
  lean_object* x_218; lean_object* x_219; 
  x_218 = l_Lean_LocalDecl_fvarId(x_42);
  x_219 = l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(x_2, x_218);
  lean_dec(x_218);
  if (lean_obj_tag(x_219) == 0)
  {
  lean_object* x_220; 
  x_220 = lean_box(0);
  x_48 = x_220;
  goto block_205;
  }
  else
  {
  lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; 
  lean_dec(x_219);
  lean_dec(x_47);
  lean_dec(x_43);
  lean_dec(x_42);
  x_221 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_221, 0, x_45);
  lean_ctor_set(x_221, 1, x_46);
  x_222 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_222, 0, x_44);
  lean_ctor_set(x_222, 1, x_221);
  x_223 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_223, 0, x_222);
  x_224 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_224, 0, x_223);
  lean_ctor_set(x_224, 1, x_15);
  x_32 = x_224;
  goto block_39;
  }
  }
  block_205:
  {
  lean_object* x_49; lean_object* x_50; 
  lean_dec(x_48);
  x_49 = l_Lean_LocalDecl_fvarId(x_42);
  x_50 = l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(x_3, x_49);
  if (lean_obj_tag(x_50) == 0)
  {
  lean_dec(x_49);
  if (lean_obj_tag(x_42) == 0)
  {
  lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; 
  lean_dec(x_47);
  x_51 = lean_ctor_get(x_42, 1);
  lean_inc(x_51);
  x_52 = lean_ctor_get(x_42, 2);
  lean_inc(x_52);
  x_53 = lean_ctor_get(x_42, 3);
  lean_inc(x_53);
  lean_dec(x_42);
  x_54 = lean_simp_macro_scopes(x_52);
  lean_inc(x_12);
  x_55 = l_Lean_Meta_instantiateMVars(x_53, x_11, x_12, x_13, x_14, x_15);
  x_56 = lean_ctor_get(x_55, 0);
  lean_inc(x_56);
  x_57 = lean_ctor_get(x_55, 1);
  lean_inc(x_57);
  lean_dec(x_55);
  x_58 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_822____at_Lean_Meta_ppGoal_ppVars___spec__1(x_45, x_4);
  if (x_58 == 0)
  {
  lean_object* x_59; uint8_t x_60; 
  lean_inc(x_56);
  if (lean_is_scalar(x_43)) {
   x_59 = lean_alloc_ctor(1, 1, 0);
  } else {
   x_59 = x_43;
  }
  lean_ctor_set(x_59, 0, x_56);
  x_60 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_822____at_Lean_Meta_ppGoal_ppVars___spec__1(x_45, x_59);
  lean_dec(x_59);
  if (x_60 == 0)
  {
  uint8_t x_61; 
  x_61 = l_Array_isEmpty___rarg(x_46);
  if (x_61 == 0)
  {
  if (lean_obj_tag(x_45) == 0)
  {
  lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; 
  lean_dec(x_46);
  x_62 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_62, 0, x_54);
  lean_ctor_set(x_62, 1, x_51);
  x_63 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_64 = lean_array_push(x_63, x_62);
  x_65 = lean_box(0);
  x_66 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___lambda__1(x_56, x_44, x_45, x_64, x_65, x_11, x_12, x_13, x_14, x_57);
  x_32 = x_66;
  goto block_39;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; 
  x_67 = lean_ctor_get(x_45, 0);
  lean_inc(x_67);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_4);
  x_68 = l_Lean_Widget_addInteractiveHypothesisBundle(x_44, x_46, x_67, x_4, x_11, x_12, x_13, x_14, x_57);
  if (lean_obj_tag(x_68) == 0)
  {
  lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
  x_69 = lean_ctor_get(x_68, 0);
  lean_inc(x_69);
  x_70 = lean_ctor_get(x_68, 1);
  lean_inc(x_70);
  lean_dec(x_68);
  x_71 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_71, 0, x_54);
  lean_ctor_set(x_71, 1, x_51);
  x_72 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_73 = lean_array_push(x_72, x_71);
  x_74 = lean_box(0);
  x_75 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___lambda__1(x_56, x_69, x_45, x_73, x_74, x_11, x_12, x_13, x_14, x_70);
  lean_dec(x_45);
  x_32 = x_75;
  goto block_39;
  }
  else
  {
  uint8_t x_76; 
  lean_dec(x_56);
  lean_dec(x_54);
  lean_dec(x_51);
  lean_dec(x_45);
  x_76 = !lean_is_exclusive(x_68);
  if (x_76 == 0)
  {
  x_32 = x_68;
  goto block_39;
  }
  else
  {
  lean_object* x_77; lean_object* x_78; lean_object* x_79; 
  x_77 = lean_ctor_get(x_68, 0);
  x_78 = lean_ctor_get(x_68, 1);
  lean_inc(x_78);
  lean_inc(x_77);
  lean_dec(x_68);
  x_79 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_79, 0, x_77);
  lean_ctor_set(x_79, 1, x_78);
  x_32 = x_79;
  goto block_39;
  }
  }
  }
  }
  else
  {
  lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; 
  lean_dec(x_46);
  x_80 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_80, 0, x_54);
  lean_ctor_set(x_80, 1, x_51);
  x_81 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_82 = lean_array_push(x_81, x_80);
  x_83 = lean_box(0);
  x_84 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___lambda__1(x_56, x_44, x_45, x_82, x_83, x_11, x_12, x_13, x_14, x_57);
  lean_dec(x_45);
  x_32 = x_84;
  goto block_39;
  }
  }
  else
  {
  lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; 
  x_85 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_85, 0, x_54);
  lean_ctor_set(x_85, 1, x_51);
  x_86 = lean_array_push(x_46, x_85);
  x_87 = lean_box(0);
  x_88 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___lambda__1(x_56, x_44, x_45, x_86, x_87, x_11, x_12, x_13, x_14, x_57);
  lean_dec(x_45);
  x_32 = x_88;
  goto block_39;
  }
  }
  else
  {
  lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; 
  lean_dec(x_43);
  x_89 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_89, 0, x_54);
  lean_ctor_set(x_89, 1, x_51);
  x_90 = lean_array_push(x_46, x_89);
  x_91 = lean_box(0);
  x_92 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___lambda__1(x_56, x_44, x_45, x_90, x_91, x_11, x_12, x_13, x_14, x_57);
  lean_dec(x_45);
  x_32 = x_92;
  goto block_39;
  }
  }
  else
  {
  lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_125; uint8_t x_126; 
  x_93 = lean_ctor_get(x_42, 1);
  lean_inc(x_93);
  x_94 = lean_ctor_get(x_42, 2);
  lean_inc(x_94);
  x_95 = lean_ctor_get(x_42, 3);
  lean_inc(x_95);
  x_96 = lean_ctor_get(x_42, 4);
  lean_inc(x_96);
  lean_dec(x_42);
  x_97 = lean_simp_macro_scopes(x_94);
  x_125 = l_Array_isEmpty___rarg(x_46);
  if (x_125 == 0)
  {
  uint8_t x_136; 
  x_136 = 0;
  x_126 = x_136;
  goto block_135;
  }
  else
  {
  uint8_t x_137; 
  x_137 = 1;
  x_126 = x_137;
  goto block_135;
  }
  block_124:
  {
  lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; 
  lean_inc(x_12);
  x_100 = l_Lean_Meta_instantiateMVars(x_95, x_11, x_12, x_13, x_14, x_99);
  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);
  lean_inc(x_12);
  x_103 = l_Lean_Meta_instantiateMVars(x_96, x_11, x_12, x_13, x_14, x_102);
  x_104 = lean_ctor_get(x_103, 0);
  lean_inc(x_104);
  x_105 = lean_ctor_get(x_103, 1);
  lean_inc(x_105);
  lean_dec(x_103);
  x_106 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_106, 0, x_97);
  lean_ctor_set(x_106, 1, x_93);
  x_107 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_108 = lean_array_push(x_107, x_106);
  if (lean_is_scalar(x_43)) {
   x_109 = lean_alloc_ctor(1, 1, 0);
  } else {
   x_109 = x_43;
  }
  lean_ctor_set(x_109, 0, x_104);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_110 = l_Lean_Widget_addInteractiveHypothesisBundle(x_98, x_108, x_101, x_109, x_11, x_12, x_13, x_14, x_105);
  if (lean_obj_tag(x_110) == 0)
  {
  uint8_t x_111; 
  x_111 = !lean_is_exclusive(x_110);
  if (x_111 == 0)
  {
  lean_object* x_112; lean_object* x_113; lean_object* x_114; 
  x_112 = lean_ctor_get(x_110, 0);
  lean_inc(x_5);
  if (lean_is_scalar(x_47)) {
   x_113 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_113 = x_47;
  }
  lean_ctor_set(x_113, 0, x_112);
  lean_ctor_set(x_113, 1, x_5);
  x_114 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_114, 0, x_113);
  lean_ctor_set(x_110, 0, x_114);
  x_32 = x_110;
  goto block_39;
  }
  else
  {
  lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; 
  x_115 = lean_ctor_get(x_110, 0);
  x_116 = lean_ctor_get(x_110, 1);
  lean_inc(x_116);
  lean_inc(x_115);
  lean_dec(x_110);
  lean_inc(x_5);
  if (lean_is_scalar(x_47)) {
   x_117 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_117 = x_47;
  }
  lean_ctor_set(x_117, 0, x_115);
  lean_ctor_set(x_117, 1, x_5);
  x_118 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_118, 0, x_117);
  x_119 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_119, 0, x_118);
  lean_ctor_set(x_119, 1, x_116);
  x_32 = x_119;
  goto block_39;
  }
  }
  else
  {
  uint8_t x_120; 
  lean_dec(x_47);
  x_120 = !lean_is_exclusive(x_110);
  if (x_120 == 0)
  {
  x_32 = x_110;
  goto block_39;
  }
  else
  {
  lean_object* x_121; lean_object* x_122; lean_object* x_123; 
  x_121 = lean_ctor_get(x_110, 0);
  x_122 = lean_ctor_get(x_110, 1);
  lean_inc(x_122);
  lean_inc(x_121);
  lean_dec(x_110);
  x_123 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_123, 0, x_121);
  lean_ctor_set(x_123, 1, x_122);
  x_32 = x_123;
  goto block_39;
  }
  }
  }
  block_135:
  {
  if (x_126 == 0)
  {
  if (lean_obj_tag(x_45) == 0)
  {
  lean_dec(x_46);
  x_98 = x_44;
  x_99 = x_15;
  goto block_124;
  }
  else
  {
  lean_object* x_127; lean_object* x_128; 
  x_127 = lean_ctor_get(x_45, 0);
  lean_inc(x_127);
  lean_dec(x_45);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_4);
  x_128 = l_Lean_Widget_addInteractiveHypothesisBundle(x_44, x_46, x_127, x_4, x_11, x_12, x_13, x_14, x_15);
  if (lean_obj_tag(x_128) == 0)
  {
  lean_object* x_129; lean_object* x_130; 
  x_129 = lean_ctor_get(x_128, 0);
  lean_inc(x_129);
  x_130 = lean_ctor_get(x_128, 1);
  lean_inc(x_130);
  lean_dec(x_128);
  x_98 = x_129;
  x_99 = x_130;
  goto block_124;
  }
  else
  {
  uint8_t x_131; 
  lean_dec(x_97);
  lean_dec(x_96);
  lean_dec(x_95);
  lean_dec(x_93);
  lean_dec(x_47);
  lean_dec(x_43);
  x_131 = !lean_is_exclusive(x_128);
  if (x_131 == 0)
  {
  x_32 = x_128;
  goto block_39;
  }
  else
  {
  lean_object* x_132; lean_object* x_133; lean_object* x_134; 
  x_132 = lean_ctor_get(x_128, 0);
  x_133 = lean_ctor_get(x_128, 1);
  lean_inc(x_133);
  lean_inc(x_132);
  lean_dec(x_128);
  x_134 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_134, 0, x_132);
  lean_ctor_set(x_134, 1, x_133);
  x_32 = x_134;
  goto block_39;
  }
  }
  }
  }
  else
  {
  lean_dec(x_46);
  lean_dec(x_45);
  x_98 = x_44;
  x_99 = x_15;
  goto block_124;
  }
  }
  }
  }
  else
  {
  lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; 
  lean_dec(x_50);
  lean_dec(x_43);
  x_138 = l_Lean_LocalDecl_type(x_42);
  lean_dec(x_42);
  lean_inc(x_12);
  x_139 = l_Lean_Meta_instantiateMVars(x_138, x_11, x_12, x_13, x_14, x_15);
  x_140 = lean_ctor_get(x_139, 0);
  lean_inc(x_140);
  x_141 = lean_ctor_get(x_139, 1);
  lean_inc(x_141);
  lean_dec(x_139);
  x_142 = l_Array_isEmpty___rarg(x_46);
  if (x_142 == 0)
  {
  if (lean_obj_tag(x_45) == 0)
  {
  lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; 
  lean_dec(x_46);
  x_143 = lean_box(0);
  x_144 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_144, 0, x_143);
  lean_ctor_set(x_144, 1, x_49);
  x_145 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_146 = lean_array_push(x_145, x_144);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_4);
  x_147 = l_Lean_Widget_addInteractiveHypothesisBundle(x_44, x_146, x_140, x_4, x_11, x_12, x_13, x_14, x_141);
  if (lean_obj_tag(x_147) == 0)
  {
  uint8_t x_148; 
  x_148 = !lean_is_exclusive(x_147);
  if (x_148 == 0)
  {
  lean_object* x_149; lean_object* x_150; lean_object* x_151; 
  x_149 = lean_ctor_get(x_147, 0);
  lean_inc(x_5);
  if (lean_is_scalar(x_47)) {
   x_150 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_150 = x_47;
  }
  lean_ctor_set(x_150, 0, x_149);
  lean_ctor_set(x_150, 1, x_5);
  x_151 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_151, 0, x_150);
  lean_ctor_set(x_147, 0, x_151);
  x_32 = x_147;
  goto block_39;
  }
  else
  {
  lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 
  x_152 = lean_ctor_get(x_147, 0);
  x_153 = lean_ctor_get(x_147, 1);
  lean_inc(x_153);
  lean_inc(x_152);
  lean_dec(x_147);
  lean_inc(x_5);
  if (lean_is_scalar(x_47)) {
   x_154 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_154 = x_47;
  }
  lean_ctor_set(x_154, 0, x_152);
  lean_ctor_set(x_154, 1, x_5);
  x_155 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_155, 0, x_154);
  x_156 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_156, 0, x_155);
  lean_ctor_set(x_156, 1, x_153);
  x_32 = x_156;
  goto block_39;
  }
  }
  else
  {
  uint8_t x_157; 
  lean_dec(x_47);
  x_157 = !lean_is_exclusive(x_147);
  if (x_157 == 0)
  {
  x_32 = x_147;
  goto block_39;
  }
  else
  {
  lean_object* x_158; lean_object* x_159; lean_object* x_160; 
  x_158 = lean_ctor_get(x_147, 0);
  x_159 = lean_ctor_get(x_147, 1);
  lean_inc(x_159);
  lean_inc(x_158);
  lean_dec(x_147);
  x_160 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_160, 0, x_158);
  lean_ctor_set(x_160, 1, x_159);
  x_32 = x_160;
  goto block_39;
  }
  }
  }
  else
  {
  lean_object* x_161; lean_object* x_162; 
  x_161 = lean_ctor_get(x_45, 0);
  lean_inc(x_161);
  lean_dec(x_45);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_4);
  x_162 = l_Lean_Widget_addInteractiveHypothesisBundle(x_44, x_46, x_161, x_4, x_11, x_12, x_13, x_14, x_141);
  if (lean_obj_tag(x_162) == 0)
  {
  lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; 
  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_box(0);
  x_166 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_166, 0, x_165);
  lean_ctor_set(x_166, 1, x_49);
  x_167 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_168 = lean_array_push(x_167, x_166);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_4);
  x_169 = l_Lean_Widget_addInteractiveHypothesisBundle(x_163, x_168, x_140, x_4, x_11, x_12, x_13, x_14, x_164);
  if (lean_obj_tag(x_169) == 0)
  {
  uint8_t x_170; 
  x_170 = !lean_is_exclusive(x_169);
  if (x_170 == 0)
  {
  lean_object* x_171; lean_object* x_172; lean_object* x_173; 
  x_171 = lean_ctor_get(x_169, 0);
  lean_inc(x_5);
  if (lean_is_scalar(x_47)) {
   x_172 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_172 = x_47;
  }
  lean_ctor_set(x_172, 0, x_171);
  lean_ctor_set(x_172, 1, x_5);
  x_173 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_173, 0, x_172);
  lean_ctor_set(x_169, 0, x_173);
  x_32 = x_169;
  goto block_39;
  }
  else
  {
  lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; 
  x_174 = lean_ctor_get(x_169, 0);
  x_175 = lean_ctor_get(x_169, 1);
  lean_inc(x_175);
  lean_inc(x_174);
  lean_dec(x_169);
  lean_inc(x_5);
  if (lean_is_scalar(x_47)) {
   x_176 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_176 = x_47;
  }
  lean_ctor_set(x_176, 0, x_174);
  lean_ctor_set(x_176, 1, x_5);
  x_177 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_177, 0, x_176);
  x_178 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_178, 0, x_177);
  lean_ctor_set(x_178, 1, x_175);
  x_32 = x_178;
  goto block_39;
  }
  }
  else
  {
  uint8_t x_179; 
  lean_dec(x_47);
  x_179 = !lean_is_exclusive(x_169);
  if (x_179 == 0)
  {
  x_32 = x_169;
  goto block_39;
  }
  else
  {
  lean_object* x_180; lean_object* x_181; lean_object* x_182; 
  x_180 = lean_ctor_get(x_169, 0);
  x_181 = lean_ctor_get(x_169, 1);
  lean_inc(x_181);
  lean_inc(x_180);
  lean_dec(x_169);
  x_182 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_182, 0, x_180);
  lean_ctor_set(x_182, 1, x_181);
  x_32 = x_182;
  goto block_39;
  }
  }
  }
  else
  {
  uint8_t x_183; 
  lean_dec(x_140);
  lean_dec(x_49);
  lean_dec(x_47);
  x_183 = !lean_is_exclusive(x_162);
  if (x_183 == 0)
  {
  x_32 = x_162;
  goto block_39;
  }
  else
  {
  lean_object* x_184; lean_object* x_185; lean_object* x_186; 
  x_184 = lean_ctor_get(x_162, 0);
  x_185 = lean_ctor_get(x_162, 1);
  lean_inc(x_185);
  lean_inc(x_184);
  lean_dec(x_162);
  x_186 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_186, 0, x_184);
  lean_ctor_set(x_186, 1, x_185);
  x_32 = x_186;
  goto block_39;
  }
  }
  }
  }
  else
  {
  lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; 
  lean_dec(x_46);
  lean_dec(x_45);
  x_187 = lean_box(0);
  x_188 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_188, 0, x_187);
  lean_ctor_set(x_188, 1, x_49);
  x_189 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_190 = lean_array_push(x_189, x_188);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_4);
  x_191 = l_Lean_Widget_addInteractiveHypothesisBundle(x_44, x_190, x_140, x_4, x_11, x_12, x_13, x_14, x_141);
  if (lean_obj_tag(x_191) == 0)
  {
  uint8_t x_192; 
  x_192 = !lean_is_exclusive(x_191);
  if (x_192 == 0)
  {
  lean_object* x_193; lean_object* x_194; lean_object* x_195; 
  x_193 = lean_ctor_get(x_191, 0);
  lean_inc(x_5);
  if (lean_is_scalar(x_47)) {
   x_194 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_194 = x_47;
  }
  lean_ctor_set(x_194, 0, x_193);
  lean_ctor_set(x_194, 1, x_5);
  x_195 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_195, 0, x_194);
  lean_ctor_set(x_191, 0, x_195);
  x_32 = x_191;
  goto block_39;
  }
  else
  {
  lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; 
  x_196 = lean_ctor_get(x_191, 0);
  x_197 = lean_ctor_get(x_191, 1);
  lean_inc(x_197);
  lean_inc(x_196);
  lean_dec(x_191);
  lean_inc(x_5);
  if (lean_is_scalar(x_47)) {
   x_198 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_198 = x_47;
  }
  lean_ctor_set(x_198, 0, x_196);
  lean_ctor_set(x_198, 1, x_5);
  x_199 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_199, 0, x_198);
  x_200 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_200, 0, x_199);
  lean_ctor_set(x_200, 1, x_197);
  x_32 = x_200;
  goto block_39;
  }
  }
  else
  {
  uint8_t x_201; 
  lean_dec(x_47);
  x_201 = !lean_is_exclusive(x_191);
  if (x_201 == 0)
  {
  x_32 = x_191;
  goto block_39;
  }
  else
  {
  lean_object* x_202; lean_object* x_203; lean_object* x_204; 
  x_202 = lean_ctor_get(x_191, 0);
  x_203 = lean_ctor_get(x_191, 1);
  lean_inc(x_203);
  lean_inc(x_202);
  lean_dec(x_191);
  x_204 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_204, 0, x_202);
  lean_ctor_set(x_204, 1, x_203);
  x_32 = x_204;
  goto block_39;
  }
  }
  }
  }
  }
  }
  block_31:
  {
  if (lean_obj_tag(x_21) == 0)
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_23 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_23, 0, x_21);
  if (lean_is_scalar(x_20)) {
   x_24 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_24 = x_20;
  }
  lean_ctor_set(x_24, 0, x_23);
  lean_ctor_set(x_24, 1, x_19);
  x_25 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_25, 0, x_24);
  lean_ctor_set(x_25, 1, x_22);
  return x_25;
  }
  else
  {
  lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; 
  lean_dec(x_19);
  x_26 = lean_ctor_get(x_21, 0);
  lean_inc(x_26);
  lean_dec(x_21);
  lean_inc(x_6);
  if (lean_is_scalar(x_20)) {
   x_27 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_27 = x_20;
  }
  lean_ctor_set(x_27, 0, x_6);
  lean_ctor_set(x_27, 1, x_26);
  x_28 = 1;
  x_29 = lean_usize_add(x_9, x_28);
  x_9 = x_29;
  x_10 = x_27;
  x_15 = x_22;
  goto _start;
  }
  }
  block_39:
  {
  if (lean_obj_tag(x_32) == 0)
  {
  lean_object* x_33; lean_object* x_34; 
  x_33 = lean_ctor_get(x_32, 0);
  lean_inc(x_33);
  x_34 = lean_ctor_get(x_32, 1);
  lean_inc(x_34);
  lean_dec(x_32);
  x_21 = x_33;
  x_22 = x_34;
  goto block_31;
  }
  else
  {
  uint8_t x_35; 
  lean_dec(x_20);
  lean_dec(x_19);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_35 = !lean_is_exclusive(x_32);
  if (x_35 == 0)
  {
  return x_32;
  }
  else
  {
  lean_object* x_36; lean_object* x_37; lean_object* x_38; 
  x_36 = lean_ctor_get(x_32, 0);
  x_37 = lean_ctor_get(x_32, 1);
  lean_inc(x_37);
  lean_inc(x_36);
  lean_dec(x_32);
  x_38 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_38, 0, x_36);
  lean_ctor_set(x_38, 1, x_37);
  return x_38;
  }
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; lean_object* x_9; 
  x_8 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_8, 0, x_1);
  x_9 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_9, 0, x_8);
  lean_ctor_set(x_9, 1, x_7);
  return x_9;
  }
  }
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  if (lean_obj_tag(x_7) == 0)
  {
  lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; 
  x_14 = lean_ctor_get(x_7, 0);
  lean_inc(x_14);
  lean_dec(x_7);
  x_15 = lean_box(0);
  x_16 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_16, 0, x_15);
  lean_ctor_set(x_16, 1, x_8);
  x_17 = lean_array_get_size(x_14);
  x_18 = lean_usize_of_nat(x_17);
  lean_dec(x_17);
  x_19 = 0;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_20 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_15, x_14, x_18, x_19, x_16, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_14);
  if (lean_obj_tag(x_20) == 0)
  {
  lean_object* x_21; lean_object* x_22; 
  x_21 = lean_ctor_get(x_20, 0);
  lean_inc(x_21);
  x_22 = lean_ctor_get(x_21, 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; 
  x_23 = lean_ctor_get(x_20, 1);
  lean_inc(x_23);
  lean_dec(x_20);
  x_24 = lean_ctor_get(x_21, 1);
  lean_inc(x_24);
  lean_dec(x_21);
  x_25 = lean_box(0);
  x_26 = l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3___lambda__1(x_24, x_25, x_9, x_10, x_11, x_12, x_23);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  return x_26;
  }
  else
  {
  uint8_t x_27; 
  lean_dec(x_21);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  x_27 = !lean_is_exclusive(x_20);
  if (x_27 == 0)
  {
  lean_object* x_28; lean_object* x_29; 
  x_28 = lean_ctor_get(x_20, 0);
  lean_dec(x_28);
  x_29 = lean_ctor_get(x_22, 0);
  lean_inc(x_29);
  lean_dec(x_22);
  lean_ctor_set(x_20, 0, x_29);
  return x_20;
  }
  else
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; 
  x_30 = lean_ctor_get(x_20, 1);
  lean_inc(x_30);
  lean_dec(x_20);
  x_31 = lean_ctor_get(x_22, 0);
  lean_inc(x_31);
  lean_dec(x_22);
  x_32 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_32, 0, x_31);
  lean_ctor_set(x_32, 1, x_30);
  return x_32;
  }
  }
  }
  else
  {
  uint8_t x_33; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  x_33 = !lean_is_exclusive(x_20);
  if (x_33 == 0)
  {
  return x_20;
  }
  else
  {
  lean_object* x_34; lean_object* x_35; lean_object* x_36; 
  x_34 = lean_ctor_get(x_20, 0);
  x_35 = lean_ctor_get(x_20, 1);
  lean_inc(x_35);
  lean_inc(x_34);
  lean_dec(x_20);
  x_36 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_36, 0, x_34);
  lean_ctor_set(x_36, 1, x_35);
  return x_36;
  }
  }
  }
  else
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; 
  lean_dec(x_6);
  x_37 = lean_ctor_get(x_7, 0);
  lean_inc(x_37);
  lean_dec(x_7);
  x_38 = lean_box(0);
  x_39 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_39, 0, x_38);
  lean_ctor_set(x_39, 1, x_8);
  x_40 = lean_array_get_size(x_37);
  x_41 = lean_usize_of_nat(x_40);
  lean_dec(x_40);
  x_42 = 0;
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  x_43 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5(x_1, x_2, x_3, x_4, x_5, x_38, x_37, x_41, x_42, x_39, x_9, x_10, x_11, x_12, x_13);
  lean_dec(x_37);
  lean_dec(x_3);
  lean_dec(x_2);
  if (lean_obj_tag(x_43) == 0)
  {
  lean_object* x_44; lean_object* x_45; 
  x_44 = lean_ctor_get(x_43, 0);
  lean_inc(x_44);
  x_45 = lean_ctor_get(x_44, 0);
  lean_inc(x_45);
  if (lean_obj_tag(x_45) == 0)
  {
  lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_46 = lean_ctor_get(x_43, 1);
  lean_inc(x_46);
  lean_dec(x_43);
  x_47 = lean_ctor_get(x_44, 1);
  lean_inc(x_47);
  lean_dec(x_44);
  x_48 = lean_box(0);
  x_49 = l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3___lambda__1(x_47, x_48, x_9, x_10, x_11, x_12, x_46);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  return x_49;
  }
  else
  {
  uint8_t x_50; 
  lean_dec(x_44);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  x_50 = !lean_is_exclusive(x_43);
  if (x_50 == 0)
  {
  lean_object* x_51; lean_object* x_52; 
  x_51 = lean_ctor_get(x_43, 0);
  lean_dec(x_51);
  x_52 = lean_ctor_get(x_45, 0);
  lean_inc(x_52);
  lean_dec(x_45);
  lean_ctor_set(x_43, 0, x_52);
  return x_43;
  }
  else
  {
  lean_object* x_53; lean_object* x_54; lean_object* x_55; 
  x_53 = lean_ctor_get(x_43, 1);
  lean_inc(x_53);
  lean_dec(x_43);
  x_54 = lean_ctor_get(x_45, 0);
  lean_inc(x_54);
  lean_dec(x_45);
  x_55 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_55, 0, x_54);
  lean_ctor_set(x_55, 1, x_53);
  return x_55;
  }
  }
  }
  else
  {
  uint8_t x_56; 
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  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;
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__6(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, size_t x_8, size_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) {
  _start:
  {
  uint8_t x_16; 
  x_16 = lean_usize_dec_lt(x_9, x_8);
  if (x_16 == 0)
  {
  lean_object* x_17; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_17 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_17, 0, x_10);
  lean_ctor_set(x_17, 1, x_15);
  return x_17;
  }
  else
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_33; 
  x_18 = lean_array_uget(x_7, x_9);
  x_19 = lean_ctor_get(x_10, 1);
  lean_inc(x_19);
  if (lean_is_exclusive(x_10)) {
   lean_ctor_release(x_10, 0);
   lean_ctor_release(x_10, 1);
   x_20 = x_10;
  } else {
   lean_dec_ref(x_10);
   x_20 = lean_box(0);
  }
  if (lean_obj_tag(x_18) == 0)
  {
  lean_object* x_41; 
  lean_inc(x_19);
  x_41 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_41, 0, x_19);
  x_21 = x_41;
  x_22 = x_15;
  goto block_32;
  }
  else
  {
  lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
  x_42 = lean_ctor_get(x_19, 1);
  lean_inc(x_42);
  x_43 = lean_ctor_get(x_18, 0);
  lean_inc(x_43);
  if (lean_is_exclusive(x_18)) {
   lean_ctor_release(x_18, 0);
   x_44 = x_18;
  } else {
   lean_dec_ref(x_18);
   x_44 = lean_box(0);
  }
  x_45 = lean_ctor_get(x_19, 0);
  lean_inc(x_45);
  x_46 = lean_ctor_get(x_42, 0);
  lean_inc(x_46);
  x_47 = lean_ctor_get(x_42, 1);
  lean_inc(x_47);
  if (lean_is_exclusive(x_42)) {
   lean_ctor_release(x_42, 0);
   lean_ctor_release(x_42, 1);
   x_48 = x_42;
  } else {
   lean_dec_ref(x_42);
   x_48 = lean_box(0);
  }
  if (x_1 == 0)
  {
  uint8_t x_207; 
  x_207 = l_Lean_LocalDecl_isAuxDecl(x_43);
  if (x_207 == 0)
  {
  lean_object* x_208; lean_object* x_209; 
  x_208 = l_Lean_LocalDecl_fvarId(x_43);
  x_209 = l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(x_2, x_208);
  lean_dec(x_208);
  if (lean_obj_tag(x_209) == 0)
  {
  lean_object* x_210; 
  x_210 = lean_box(0);
  x_49 = x_210;
  goto block_206;
  }
  else
  {
  lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; 
  lean_dec(x_209);
  lean_dec(x_48);
  lean_dec(x_44);
  lean_dec(x_43);
  x_211 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_211, 0, x_46);
  lean_ctor_set(x_211, 1, x_47);
  x_212 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_212, 0, x_45);
  lean_ctor_set(x_212, 1, x_211);
  x_213 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_213, 0, x_212);
  x_214 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_214, 0, x_213);
  lean_ctor_set(x_214, 1, x_15);
  x_33 = x_214;
  goto block_40;
  }
  }
  else
  {
  lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; 
  lean_dec(x_48);
  lean_dec(x_44);
  lean_dec(x_43);
  x_215 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_215, 0, x_46);
  lean_ctor_set(x_215, 1, x_47);
  x_216 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_216, 0, x_45);
  lean_ctor_set(x_216, 1, x_215);
  x_217 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_217, 0, x_216);
  x_218 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_218, 0, x_217);
  lean_ctor_set(x_218, 1, x_15);
  x_33 = x_218;
  goto block_40;
  }
  }
  else
  {
  lean_object* x_219; lean_object* x_220; 
  x_219 = l_Lean_LocalDecl_fvarId(x_43);
  x_220 = l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(x_2, x_219);
  lean_dec(x_219);
  if (lean_obj_tag(x_220) == 0)
  {
  lean_object* x_221; 
  x_221 = lean_box(0);
  x_49 = x_221;
  goto block_206;
  }
  else
  {
  lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
  lean_dec(x_220);
  lean_dec(x_48);
  lean_dec(x_44);
  lean_dec(x_43);
  x_222 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_222, 0, x_46);
  lean_ctor_set(x_222, 1, x_47);
  x_223 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_223, 0, x_45);
  lean_ctor_set(x_223, 1, x_222);
  x_224 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_224, 0, x_223);
  x_225 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_225, 0, x_224);
  lean_ctor_set(x_225, 1, x_15);
  x_33 = x_225;
  goto block_40;
  }
  }
  block_206:
  {
  lean_object* x_50; lean_object* x_51; 
  lean_dec(x_49);
  x_50 = l_Lean_LocalDecl_fvarId(x_43);
  x_51 = l_Std_RBNode_findCore___at_Lean_Meta_Closure_process___spec__1(x_3, x_50);
  if (lean_obj_tag(x_51) == 0)
  {
  lean_dec(x_50);
  if (lean_obj_tag(x_43) == 0)
  {
  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; uint8_t x_59; 
  lean_dec(x_48);
  x_52 = lean_ctor_get(x_43, 1);
  lean_inc(x_52);
  x_53 = lean_ctor_get(x_43, 2);
  lean_inc(x_53);
  x_54 = lean_ctor_get(x_43, 3);
  lean_inc(x_54);
  lean_dec(x_43);
  x_55 = lean_simp_macro_scopes(x_53);
  lean_inc(x_12);
  x_56 = l_Lean_Meta_instantiateMVars(x_54, x_11, x_12, x_13, x_14, x_15);
  x_57 = lean_ctor_get(x_56, 0);
  lean_inc(x_57);
  x_58 = lean_ctor_get(x_56, 1);
  lean_inc(x_58);
  lean_dec(x_56);
  x_59 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_822____at_Lean_Meta_ppGoal_ppVars___spec__1(x_46, x_4);
  if (x_59 == 0)
  {
  lean_object* x_60; uint8_t x_61; 
  lean_inc(x_57);
  if (lean_is_scalar(x_44)) {
   x_60 = lean_alloc_ctor(1, 1, 0);
  } else {
   x_60 = x_44;
  }
  lean_ctor_set(x_60, 0, x_57);
  x_61 = l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_822____at_Lean_Meta_ppGoal_ppVars___spec__1(x_46, x_60);
  lean_dec(x_60);
  if (x_61 == 0)
  {
  uint8_t x_62; 
  x_62 = l_Array_isEmpty___rarg(x_47);
  if (x_62 == 0)
  {
  if (lean_obj_tag(x_46) == 0)
  {
  lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; 
  lean_dec(x_47);
  x_63 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_63, 0, x_55);
  lean_ctor_set(x_63, 1, x_52);
  x_64 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_65 = lean_array_push(x_64, x_63);
  x_66 = lean_box(0);
  x_67 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___lambda__1(x_57, x_45, x_46, x_65, x_66, x_11, x_12, x_13, x_14, x_58);
  x_33 = x_67;
  goto block_40;
  }
  else
  {
  lean_object* x_68; lean_object* x_69; 
  x_68 = lean_ctor_get(x_46, 0);
  lean_inc(x_68);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_4);
  x_69 = l_Lean_Widget_addInteractiveHypothesisBundle(x_45, x_47, x_68, x_4, x_11, x_12, x_13, x_14, x_58);
  if (lean_obj_tag(x_69) == 0)
  {
  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; 
  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);
  x_72 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_72, 0, x_55);
  lean_ctor_set(x_72, 1, x_52);
  x_73 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_74 = lean_array_push(x_73, x_72);
  x_75 = lean_box(0);
  x_76 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___lambda__1(x_57, x_70, x_46, x_74, x_75, x_11, x_12, x_13, x_14, x_71);
  lean_dec(x_46);
  x_33 = x_76;
  goto block_40;
  }
  else
  {
  uint8_t x_77; 
  lean_dec(x_57);
  lean_dec(x_55);
  lean_dec(x_52);
  lean_dec(x_46);
  x_77 = !lean_is_exclusive(x_69);
  if (x_77 == 0)
  {
  x_33 = x_69;
  goto block_40;
  }
  else
  {
  lean_object* x_78; lean_object* x_79; lean_object* x_80; 
  x_78 = lean_ctor_get(x_69, 0);
  x_79 = lean_ctor_get(x_69, 1);
  lean_inc(x_79);
  lean_inc(x_78);
  lean_dec(x_69);
  x_80 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_80, 0, x_78);
  lean_ctor_set(x_80, 1, x_79);
  x_33 = x_80;
  goto block_40;
  }
  }
  }
  }
  else
  {
  lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 
  lean_dec(x_47);
  x_81 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_81, 0, x_55);
  lean_ctor_set(x_81, 1, x_52);
  x_82 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_83 = lean_array_push(x_82, x_81);
  x_84 = lean_box(0);
  x_85 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___lambda__1(x_57, x_45, x_46, x_83, x_84, x_11, x_12, x_13, x_14, x_58);
  lean_dec(x_46);
  x_33 = x_85;
  goto block_40;
  }
  }
  else
  {
  lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; 
  x_86 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_86, 0, x_55);
  lean_ctor_set(x_86, 1, x_52);
  x_87 = lean_array_push(x_47, x_86);
  x_88 = lean_box(0);
  x_89 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___lambda__1(x_57, x_45, x_46, x_87, x_88, x_11, x_12, x_13, x_14, x_58);
  lean_dec(x_46);
  x_33 = x_89;
  goto block_40;
  }
  }
  else
  {
  lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; 
  lean_dec(x_44);
  x_90 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_90, 0, x_55);
  lean_ctor_set(x_90, 1, x_52);
  x_91 = lean_array_push(x_47, x_90);
  x_92 = lean_box(0);
  x_93 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___lambda__1(x_57, x_45, x_46, x_91, x_92, x_11, x_12, x_13, x_14, x_58);
  lean_dec(x_46);
  x_33 = x_93;
  goto block_40;
  }
  }
  else
  {
  lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_126; uint8_t x_127; 
  x_94 = lean_ctor_get(x_43, 1);
  lean_inc(x_94);
  x_95 = lean_ctor_get(x_43, 2);
  lean_inc(x_95);
  x_96 = lean_ctor_get(x_43, 3);
  lean_inc(x_96);
  x_97 = lean_ctor_get(x_43, 4);
  lean_inc(x_97);
  lean_dec(x_43);
  x_98 = lean_simp_macro_scopes(x_95);
  x_126 = l_Array_isEmpty___rarg(x_47);
  if (x_126 == 0)
  {
  uint8_t x_137; 
  x_137 = 0;
  x_127 = x_137;
  goto block_136;
  }
  else
  {
  uint8_t x_138; 
  x_138 = 1;
  x_127 = x_138;
  goto block_136;
  }
  block_125:
  {
  lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 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_inc(x_12);
  x_101 = l_Lean_Meta_instantiateMVars(x_96, x_11, x_12, x_13, x_14, x_100);
  x_102 = lean_ctor_get(x_101, 0);
  lean_inc(x_102);
  x_103 = lean_ctor_get(x_101, 1);
  lean_inc(x_103);
  lean_dec(x_101);
  lean_inc(x_12);
  x_104 = l_Lean_Meta_instantiateMVars(x_97, x_11, x_12, x_13, x_14, 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);
  x_107 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_107, 0, x_98);
  lean_ctor_set(x_107, 1, x_94);
  x_108 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_109 = lean_array_push(x_108, x_107);
  if (lean_is_scalar(x_44)) {
   x_110 = lean_alloc_ctor(1, 1, 0);
  } else {
   x_110 = x_44;
  }
  lean_ctor_set(x_110, 0, x_105);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  x_111 = l_Lean_Widget_addInteractiveHypothesisBundle(x_99, x_109, x_102, x_110, x_11, x_12, x_13, x_14, x_106);
  if (lean_obj_tag(x_111) == 0)
  {
  uint8_t x_112; 
  x_112 = !lean_is_exclusive(x_111);
  if (x_112 == 0)
  {
  lean_object* x_113; lean_object* x_114; lean_object* x_115; 
  x_113 = lean_ctor_get(x_111, 0);
  lean_inc(x_5);
  if (lean_is_scalar(x_48)) {
   x_114 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_114 = x_48;
  }
  lean_ctor_set(x_114, 0, x_113);
  lean_ctor_set(x_114, 1, x_5);
  x_115 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_115, 0, x_114);
  lean_ctor_set(x_111, 0, x_115);
  x_33 = x_111;
  goto block_40;
  }
  else
  {
  lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
  x_116 = lean_ctor_get(x_111, 0);
  x_117 = lean_ctor_get(x_111, 1);
  lean_inc(x_117);
  lean_inc(x_116);
  lean_dec(x_111);
  lean_inc(x_5);
  if (lean_is_scalar(x_48)) {
   x_118 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_118 = x_48;
  }
  lean_ctor_set(x_118, 0, x_116);
  lean_ctor_set(x_118, 1, x_5);
  x_119 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_119, 0, x_118);
  x_120 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_120, 0, x_119);
  lean_ctor_set(x_120, 1, x_117);
  x_33 = x_120;
  goto block_40;
  }
  }
  else
  {
  uint8_t x_121; 
  lean_dec(x_48);
  x_121 = !lean_is_exclusive(x_111);
  if (x_121 == 0)
  {
  x_33 = x_111;
  goto block_40;
  }
  else
  {
  lean_object* x_122; lean_object* x_123; lean_object* x_124; 
  x_122 = lean_ctor_get(x_111, 0);
  x_123 = lean_ctor_get(x_111, 1);
  lean_inc(x_123);
  lean_inc(x_122);
  lean_dec(x_111);
  x_124 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_124, 0, x_122);
  lean_ctor_set(x_124, 1, x_123);
  x_33 = x_124;
  goto block_40;
  }
  }
  }
  block_136:
  {
  if (x_127 == 0)
  {
  if (lean_obj_tag(x_46) == 0)
  {
  lean_dec(x_47);
  x_99 = x_45;
  x_100 = x_15;
  goto block_125;
  }
  else
  {
  lean_object* x_128; lean_object* x_129; 
  x_128 = lean_ctor_get(x_46, 0);
  lean_inc(x_128);
  lean_dec(x_46);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_4);
  x_129 = l_Lean_Widget_addInteractiveHypothesisBundle(x_45, x_47, x_128, x_4, x_11, x_12, x_13, x_14, x_15);
  if (lean_obj_tag(x_129) == 0)
  {
  lean_object* x_130; lean_object* x_131; 
  x_130 = lean_ctor_get(x_129, 0);
  lean_inc(x_130);
  x_131 = lean_ctor_get(x_129, 1);
  lean_inc(x_131);
  lean_dec(x_129);
  x_99 = x_130;
  x_100 = x_131;
  goto block_125;
  }
  else
  {
  uint8_t x_132; 
  lean_dec(x_98);
  lean_dec(x_97);
  lean_dec(x_96);
  lean_dec(x_94);
  lean_dec(x_48);
  lean_dec(x_44);
  x_132 = !lean_is_exclusive(x_129);
  if (x_132 == 0)
  {
  x_33 = x_129;
  goto block_40;
  }
  else
  {
  lean_object* x_133; lean_object* x_134; lean_object* x_135; 
  x_133 = lean_ctor_get(x_129, 0);
  x_134 = lean_ctor_get(x_129, 1);
  lean_inc(x_134);
  lean_inc(x_133);
  lean_dec(x_129);
  x_135 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_135, 0, x_133);
  lean_ctor_set(x_135, 1, x_134);
  x_33 = x_135;
  goto block_40;
  }
  }
  }
  }
  else
  {
  lean_dec(x_47);
  lean_dec(x_46);
  x_99 = x_45;
  x_100 = x_15;
  goto block_125;
  }
  }
  }
  }
  else
  {
  lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; 
  lean_dec(x_51);
  lean_dec(x_44);
  x_139 = l_Lean_LocalDecl_type(x_43);
  lean_dec(x_43);
  lean_inc(x_12);
  x_140 = l_Lean_Meta_instantiateMVars(x_139, x_11, x_12, x_13, x_14, x_15);
  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);
  x_143 = l_Array_isEmpty___rarg(x_47);
  if (x_143 == 0)
  {
  if (lean_obj_tag(x_46) == 0)
  {
  lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
  lean_dec(x_47);
  x_144 = lean_box(0);
  x_145 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_145, 0, x_144);
  lean_ctor_set(x_145, 1, x_50);
  x_146 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_147 = lean_array_push(x_146, x_145);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_4);
  x_148 = l_Lean_Widget_addInteractiveHypothesisBundle(x_45, x_147, x_141, x_4, x_11, x_12, x_13, x_14, x_142);
  if (lean_obj_tag(x_148) == 0)
  {
  uint8_t x_149; 
  x_149 = !lean_is_exclusive(x_148);
  if (x_149 == 0)
  {
  lean_object* x_150; lean_object* x_151; lean_object* x_152; 
  x_150 = lean_ctor_get(x_148, 0);
  lean_inc(x_5);
  if (lean_is_scalar(x_48)) {
   x_151 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_151 = x_48;
  }
  lean_ctor_set(x_151, 0, x_150);
  lean_ctor_set(x_151, 1, x_5);
  x_152 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_152, 0, x_151);
  lean_ctor_set(x_148, 0, x_152);
  x_33 = x_148;
  goto block_40;
  }
  else
  {
  lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; 
  x_153 = lean_ctor_get(x_148, 0);
  x_154 = lean_ctor_get(x_148, 1);
  lean_inc(x_154);
  lean_inc(x_153);
  lean_dec(x_148);
  lean_inc(x_5);
  if (lean_is_scalar(x_48)) {
   x_155 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_155 = x_48;
  }
  lean_ctor_set(x_155, 0, x_153);
  lean_ctor_set(x_155, 1, x_5);
  x_156 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_156, 0, x_155);
  x_157 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_157, 0, x_156);
  lean_ctor_set(x_157, 1, x_154);
  x_33 = x_157;
  goto block_40;
  }
  }
  else
  {
  uint8_t x_158; 
  lean_dec(x_48);
  x_158 = !lean_is_exclusive(x_148);
  if (x_158 == 0)
  {
  x_33 = x_148;
  goto block_40;
  }
  else
  {
  lean_object* x_159; lean_object* x_160; lean_object* x_161; 
  x_159 = lean_ctor_get(x_148, 0);
  x_160 = lean_ctor_get(x_148, 1);
  lean_inc(x_160);
  lean_inc(x_159);
  lean_dec(x_148);
  x_161 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_161, 0, x_159);
  lean_ctor_set(x_161, 1, x_160);
  x_33 = x_161;
  goto block_40;
  }
  }
  }
  else
  {
  lean_object* x_162; lean_object* x_163; 
  x_162 = lean_ctor_get(x_46, 0);
  lean_inc(x_162);
  lean_dec(x_46);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_4);
  x_163 = l_Lean_Widget_addInteractiveHypothesisBundle(x_45, x_47, x_162, x_4, x_11, x_12, x_13, x_14, x_142);
  if (lean_obj_tag(x_163) == 0)
  {
  lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; 
  x_164 = lean_ctor_get(x_163, 0);
  lean_inc(x_164);
  x_165 = lean_ctor_get(x_163, 1);
  lean_inc(x_165);
  lean_dec(x_163);
  x_166 = lean_box(0);
  x_167 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_167, 0, x_166);
  lean_ctor_set(x_167, 1, x_50);
  x_168 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_169 = lean_array_push(x_168, x_167);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_4);
  x_170 = l_Lean_Widget_addInteractiveHypothesisBundle(x_164, x_169, x_141, x_4, x_11, x_12, x_13, x_14, x_165);
  if (lean_obj_tag(x_170) == 0)
  {
  uint8_t x_171; 
  x_171 = !lean_is_exclusive(x_170);
  if (x_171 == 0)
  {
  lean_object* x_172; lean_object* x_173; lean_object* x_174; 
  x_172 = lean_ctor_get(x_170, 0);
  lean_inc(x_5);
  if (lean_is_scalar(x_48)) {
   x_173 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_173 = x_48;
  }
  lean_ctor_set(x_173, 0, x_172);
  lean_ctor_set(x_173, 1, x_5);
  x_174 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_174, 0, x_173);
  lean_ctor_set(x_170, 0, x_174);
  x_33 = x_170;
  goto block_40;
  }
  else
  {
  lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 
  x_175 = lean_ctor_get(x_170, 0);
  x_176 = lean_ctor_get(x_170, 1);
  lean_inc(x_176);
  lean_inc(x_175);
  lean_dec(x_170);
  lean_inc(x_5);
  if (lean_is_scalar(x_48)) {
   x_177 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_177 = x_48;
  }
  lean_ctor_set(x_177, 0, x_175);
  lean_ctor_set(x_177, 1, x_5);
  x_178 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_178, 0, x_177);
  x_179 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_179, 0, x_178);
  lean_ctor_set(x_179, 1, x_176);
  x_33 = x_179;
  goto block_40;
  }
  }
  else
  {
  uint8_t x_180; 
  lean_dec(x_48);
  x_180 = !lean_is_exclusive(x_170);
  if (x_180 == 0)
  {
  x_33 = x_170;
  goto block_40;
  }
  else
  {
  lean_object* x_181; lean_object* x_182; lean_object* x_183; 
  x_181 = lean_ctor_get(x_170, 0);
  x_182 = lean_ctor_get(x_170, 1);
  lean_inc(x_182);
  lean_inc(x_181);
  lean_dec(x_170);
  x_183 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_183, 0, x_181);
  lean_ctor_set(x_183, 1, x_182);
  x_33 = x_183;
  goto block_40;
  }
  }
  }
  else
  {
  uint8_t x_184; 
  lean_dec(x_141);
  lean_dec(x_50);
  lean_dec(x_48);
  x_184 = !lean_is_exclusive(x_163);
  if (x_184 == 0)
  {
  x_33 = x_163;
  goto block_40;
  }
  else
  {
  lean_object* x_185; lean_object* x_186; lean_object* x_187; 
  x_185 = lean_ctor_get(x_163, 0);
  x_186 = lean_ctor_get(x_163, 1);
  lean_inc(x_186);
  lean_inc(x_185);
  lean_dec(x_163);
  x_187 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_187, 0, x_185);
  lean_ctor_set(x_187, 1, x_186);
  x_33 = x_187;
  goto block_40;
  }
  }
  }
  }
  else
  {
  lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; 
  lean_dec(x_47);
  lean_dec(x_46);
  x_188 = lean_box(0);
  x_189 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_189, 0, x_188);
  lean_ctor_set(x_189, 1, x_50);
  x_190 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1;
  x_191 = lean_array_push(x_190, x_189);
  lean_inc(x_14);
  lean_inc(x_13);
  lean_inc(x_12);
  lean_inc(x_11);
  lean_inc(x_4);
  x_192 = l_Lean_Widget_addInteractiveHypothesisBundle(x_45, x_191, x_141, x_4, x_11, x_12, x_13, x_14, x_142);
  if (lean_obj_tag(x_192) == 0)
  {
  uint8_t x_193; 
  x_193 = !lean_is_exclusive(x_192);
  if (x_193 == 0)
  {
  lean_object* x_194; lean_object* x_195; lean_object* x_196; 
  x_194 = lean_ctor_get(x_192, 0);
  lean_inc(x_5);
  if (lean_is_scalar(x_48)) {
   x_195 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_195 = x_48;
  }
  lean_ctor_set(x_195, 0, x_194);
  lean_ctor_set(x_195, 1, x_5);
  x_196 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_196, 0, x_195);
  lean_ctor_set(x_192, 0, x_196);
  x_33 = x_192;
  goto block_40;
  }
  else
  {
  lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
  x_197 = lean_ctor_get(x_192, 0);
  x_198 = lean_ctor_get(x_192, 1);
  lean_inc(x_198);
  lean_inc(x_197);
  lean_dec(x_192);
  lean_inc(x_5);
  if (lean_is_scalar(x_48)) {
   x_199 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_199 = x_48;
  }
  lean_ctor_set(x_199, 0, x_197);
  lean_ctor_set(x_199, 1, x_5);
  x_200 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_200, 0, x_199);
  x_201 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_201, 0, x_200);
  lean_ctor_set(x_201, 1, x_198);
  x_33 = x_201;
  goto block_40;
  }
  }
  else
  {
  uint8_t x_202; 
  lean_dec(x_48);
  x_202 = !lean_is_exclusive(x_192);
  if (x_202 == 0)
  {
  x_33 = x_192;
  goto block_40;
  }
  else
  {
  lean_object* x_203; lean_object* x_204; lean_object* x_205; 
  x_203 = lean_ctor_get(x_192, 0);
  x_204 = lean_ctor_get(x_192, 1);
  lean_inc(x_204);
  lean_inc(x_203);
  lean_dec(x_192);
  x_205 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_205, 0, x_203);
  lean_ctor_set(x_205, 1, x_204);
  x_33 = x_205;
  goto block_40;
  }
  }
  }
  }
  }
  }
  block_32:
  {
  if (lean_obj_tag(x_21) == 0)
  {
  lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_23 = lean_ctor_get(x_21, 0);
  lean_inc(x_23);
  lean_dec(x_21);
  x_24 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_24, 0, x_23);
  if (lean_is_scalar(x_20)) {
   x_25 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_25 = x_20;
  }
  lean_ctor_set(x_25, 0, x_24);
  lean_ctor_set(x_25, 1, x_19);
  x_26 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_26, 0, x_25);
  lean_ctor_set(x_26, 1, x_22);
  return x_26;
  }
  else
  {
  lean_object* x_27; lean_object* x_28; size_t x_29; size_t x_30; 
  lean_dec(x_19);
  x_27 = lean_ctor_get(x_21, 0);
  lean_inc(x_27);
  lean_dec(x_21);
  lean_inc(x_6);
  if (lean_is_scalar(x_20)) {
   x_28 = lean_alloc_ctor(0, 2, 0);
  } else {
   x_28 = x_20;
  }
  lean_ctor_set(x_28, 0, x_6);
  lean_ctor_set(x_28, 1, x_27);
  x_29 = 1;
  x_30 = lean_usize_add(x_9, x_29);
  x_9 = x_30;
  x_10 = x_28;
  x_15 = x_22;
  goto _start;
  }
  }
  block_40:
  {
  if (lean_obj_tag(x_33) == 0)
  {
  lean_object* x_34; lean_object* x_35; 
  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_21 = x_34;
  x_22 = x_35;
  goto block_32;
  }
  else
  {
  uint8_t x_36; 
  lean_dec(x_20);
  lean_dec(x_19);
  lean_dec(x_14);
  lean_dec(x_13);
  lean_dec(x_12);
  lean_dec(x_11);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  x_36 = !lean_is_exclusive(x_33);
  if (x_36 == 0)
  {
  return x_33;
  }
  else
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  x_37 = lean_ctor_get(x_33, 0);
  x_38 = lean_ctor_get(x_33, 1);
  lean_inc(x_38);
  lean_inc(x_37);
  lean_dec(x_33);
  x_39 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_39, 0, x_37);
  lean_ctor_set(x_39, 1, x_38);
  return x_39;
  }
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Widget_goalToInteractive___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_8, 0, x_1);
  lean_ctor_set(x_8, 1, x_7);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Widget_goalToInteractive___spec__2(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  lean_object* x_13; lean_object* x_14; 
  x_13 = lean_ctor_get(x_6, 0);
  lean_inc(x_13);
  lean_inc(x_11);
  lean_inc(x_10);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_5);
  lean_inc(x_4);
  lean_inc(x_3);
  lean_inc(x_2);
  x_14 = l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3(x_1, x_2, x_3, x_4, x_5, x_7, x_13, x_7, 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);
  if (lean_obj_tag(x_15) == 0)
  {
  uint8_t x_16; 
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_16 = !lean_is_exclusive(x_14);
  if (x_16 == 0)
  {
  lean_object* x_17; lean_object* x_18; 
  x_17 = lean_ctor_get(x_14, 0);
  lean_dec(x_17);
  x_18 = lean_ctor_get(x_15, 0);
  lean_inc(x_18);
  lean_dec(x_15);
  lean_ctor_set(x_14, 0, x_18);
  return x_14;
  }
  else
  {
  lean_object* x_19; lean_object* x_20; lean_object* x_21; 
  x_19 = lean_ctor_get(x_14, 1);
  lean_inc(x_19);
  lean_dec(x_14);
  x_20 = lean_ctor_get(x_15, 0);
  lean_inc(x_20);
  lean_dec(x_15);
  x_21 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_21, 0, x_20);
  lean_ctor_set(x_21, 1, x_19);
  return x_21;
  }
  }
  else
  {
  lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; lean_object* x_30; 
  x_22 = lean_ctor_get(x_14, 1);
  lean_inc(x_22);
  lean_dec(x_14);
  x_23 = lean_ctor_get(x_15, 0);
  lean_inc(x_23);
  lean_dec(x_15);
  x_24 = lean_ctor_get(x_6, 1);
  lean_inc(x_24);
  lean_dec(x_6);
  x_25 = lean_box(0);
  x_26 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_26, 0, x_25);
  lean_ctor_set(x_26, 1, x_23);
  x_27 = lean_array_get_size(x_24);
  x_28 = lean_usize_of_nat(x_27);
  lean_dec(x_27);
  x_29 = 0;
  x_30 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__6(x_1, x_2, x_3, x_4, x_5, x_25, x_24, x_28, x_29, x_26, x_8, x_9, x_10, x_11, x_22);
  lean_dec(x_24);
  lean_dec(x_3);
  lean_dec(x_2);
  if (lean_obj_tag(x_30) == 0)
  {
  lean_object* x_31; lean_object* x_32; 
  x_31 = lean_ctor_get(x_30, 0);
  lean_inc(x_31);
  x_32 = lean_ctor_get(x_31, 0);
  lean_inc(x_32);
  if (lean_obj_tag(x_32) == 0)
  {
  uint8_t x_33; 
  x_33 = !lean_is_exclusive(x_30);
  if (x_33 == 0)
  {
  lean_object* x_34; lean_object* x_35; 
  x_34 = lean_ctor_get(x_30, 0);
  lean_dec(x_34);
  x_35 = lean_ctor_get(x_31, 1);
  lean_inc(x_35);
  lean_dec(x_31);
  lean_ctor_set(x_30, 0, x_35);
  return x_30;
  }
  else
  {
  lean_object* x_36; lean_object* x_37; lean_object* x_38; 
  x_36 = lean_ctor_get(x_30, 1);
  lean_inc(x_36);
  lean_dec(x_30);
  x_37 = lean_ctor_get(x_31, 1);
  lean_inc(x_37);
  lean_dec(x_31);
  x_38 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_38, 0, x_37);
  lean_ctor_set(x_38, 1, x_36);
  return x_38;
  }
  }
  else
  {
  uint8_t x_39; 
  lean_dec(x_31);
  x_39 = !lean_is_exclusive(x_30);
  if (x_39 == 0)
  {
  lean_object* x_40; lean_object* x_41; 
  x_40 = lean_ctor_get(x_30, 0);
  lean_dec(x_40);
  x_41 = lean_ctor_get(x_32, 0);
  lean_inc(x_41);
  lean_dec(x_32);
  lean_ctor_set(x_30, 0, x_41);
  return x_30;
  }
  else
  {
  lean_object* x_42; lean_object* x_43; lean_object* x_44; 
  x_42 = lean_ctor_get(x_30, 1);
  lean_inc(x_42);
  lean_dec(x_30);
  x_43 = lean_ctor_get(x_32, 0);
  lean_inc(x_43);
  lean_dec(x_32);
  x_44 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_44, 0, x_43);
  lean_ctor_set(x_44, 1, x_42);
  return x_44;
  }
  }
  }
  else
  {
  uint8_t x_45; 
  x_45 = !lean_is_exclusive(x_30);
  if (x_45 == 0)
  {
  return x_30;
  }
  else
  {
  lean_object* x_46; lean_object* x_47; lean_object* x_48; 
  x_46 = lean_ctor_get(x_30, 0);
  x_47 = lean_ctor_get(x_30, 1);
  lean_inc(x_47);
  lean_inc(x_46);
  lean_dec(x_30);
  x_48 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_48, 0, x_46);
  lean_ctor_set(x_48, 1, x_47);
  return x_48;
  }
  }
  }
  }
  else
  {
  uint8_t x_49; 
  lean_dec(x_11);
  lean_dec(x_10);
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  x_49 = !lean_is_exclusive(x_14);
  if (x_49 == 0)
  {
  return x_14;
  }
  else
  {
  lean_object* x_50; lean_object* x_51; lean_object* x_52; 
  x_50 = lean_ctor_get(x_14, 0);
  x_51 = lean_ctor_get(x_14, 1);
  lean_inc(x_51);
  lean_inc(x_50);
  lean_dec(x_14);
  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;
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Widget_goalToInteractive___lambda__1___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__1;
  x_3 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Widget_goalToInteractive___lambda__1___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__1;
  x_2 = l_Lean_Widget_goalToInteractive___lambda__1___closed__1;
  x_3 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_goalToInteractive___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
  _start:
  {
  lean_object* x_11; 
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  lean_inc(x_1);
  x_11 = l_Lean_Meta_ToHide_collect(x_1, x_6, x_7, x_8, x_9, x_10);
  if (lean_obj_tag(x_11) == 0)
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_12 = lean_ctor_get(x_11, 0);
  lean_inc(x_12);
  x_13 = lean_ctor_get(x_11, 1);
  lean_inc(x_13);
  lean_dec(x_11);
  x_14 = lean_ctor_get(x_12, 0);
  lean_inc(x_14);
  x_15 = lean_ctor_get(x_12, 1);
  lean_inc(x_15);
  lean_dec(x_12);
  x_16 = lean_box(0);
  x_17 = lean_ctor_get(x_2, 1);
  lean_inc(x_17);
  lean_dec(x_2);
  x_18 = l_Lean_Widget_goalToInteractive___lambda__1___closed__1;
  x_19 = l_Lean_Widget_goalToInteractive___lambda__1___closed__2;
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_20 = l_Std_PersistentArray_forIn___at_Lean_Widget_goalToInteractive___spec__2(x_3, x_14, x_15, x_16, x_18, x_17, x_19, x_6, x_7, x_8, x_9, x_13);
  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; uint8_t x_27; uint8_t x_28; 
  x_21 = lean_ctor_get(x_20, 0);
  lean_inc(x_21);
  x_22 = lean_ctor_get(x_21, 1);
  lean_inc(x_22);
  x_23 = lean_ctor_get(x_20, 1);
  lean_inc(x_23);
  lean_dec(x_20);
  x_24 = lean_ctor_get(x_21, 0);
  lean_inc(x_24);
  lean_dec(x_21);
  x_25 = lean_ctor_get(x_22, 0);
  lean_inc(x_25);
  x_26 = lean_ctor_get(x_22, 1);
  lean_inc(x_26);
  lean_dec(x_22);
  x_27 = l_Array_isEmpty___rarg(x_26);
  if (x_27 == 0)
  {
  uint8_t x_74; 
  x_74 = 0;
  x_28 = x_74;
  goto block_73;
  }
  else
  {
  uint8_t x_75; 
  x_75 = 1;
  x_28 = x_75;
  goto block_73;
  }
  block_73:
  {
  lean_object* x_29; lean_object* x_30; 
  if (x_28 == 0)
  {
  if (lean_obj_tag(x_25) == 0)
  {
  lean_dec(x_26);
  x_29 = x_24;
  x_30 = x_23;
  goto block_64;
  }
  else
  {
  lean_object* x_65; lean_object* x_66; 
  x_65 = lean_ctor_get(x_25, 0);
  lean_inc(x_65);
  lean_dec(x_25);
  lean_inc(x_9);
  lean_inc(x_8);
  lean_inc(x_7);
  lean_inc(x_6);
  x_66 = l_Lean_Widget_addInteractiveHypothesisBundle(x_24, x_26, x_65, x_16, x_6, x_7, x_8, x_9, x_23);
  if (lean_obj_tag(x_66) == 0)
  {
  lean_object* x_67; lean_object* x_68; 
  x_67 = lean_ctor_get(x_66, 0);
  lean_inc(x_67);
  x_68 = lean_ctor_get(x_66, 1);
  lean_inc(x_68);
  lean_dec(x_66);
  x_29 = x_67;
  x_30 = x_68;
  goto block_64;
  }
  else
  {
  uint8_t x_69; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_69 = !lean_is_exclusive(x_66);
  if (x_69 == 0)
  {
  return x_66;
  }
  else
  {
  lean_object* x_70; lean_object* x_71; lean_object* x_72; 
  x_70 = lean_ctor_get(x_66, 0);
  x_71 = lean_ctor_get(x_66, 1);
  lean_inc(x_71);
  lean_inc(x_70);
  lean_dec(x_66);
  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_dec(x_26);
  lean_dec(x_25);
  x_29 = x_24;
  x_30 = x_23;
  goto block_64;
  }
  block_64:
  {
  lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; 
  lean_inc(x_7);
  x_31 = l_Lean_Meta_instantiateMVars(x_1, x_6, x_7, x_8, x_9, x_30);
  x_32 = lean_ctor_get(x_31, 0);
  lean_inc(x_32);
  x_33 = lean_ctor_get(x_31, 1);
  lean_inc(x_33);
  lean_dec(x_31);
  x_34 = 0;
  x_35 = l_Lean_Widget_ppExprTagged(x_32, x_34, x_6, x_7, x_8, x_9, x_33);
  if (lean_obj_tag(x_35) == 0)
  {
  uint8_t x_36; 
  x_36 = !lean_is_exclusive(x_35);
  if (x_36 == 0)
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
  x_37 = lean_ctor_get(x_35, 0);
  x_38 = lean_ctor_get(x_4, 0);
  lean_inc(x_38);
  x_39 = l_Lean_Meta_getGoalPrefix(x_4);
  lean_dec(x_4);
  x_40 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_40, 0, x_5);
  if (lean_obj_tag(x_38) == 0)
  {
  lean_object* x_41; 
  x_41 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_41, 0, x_29);
  lean_ctor_set(x_41, 1, x_37);
  lean_ctor_set(x_41, 2, x_16);
  lean_ctor_set(x_41, 3, x_39);
  lean_ctor_set(x_41, 4, x_40);
  lean_ctor_set(x_35, 0, x_41);
  return x_35;
  }
  else
  {
  lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 
  x_42 = lean_erase_macro_scopes(x_38);
  x_43 = 1;
  x_44 = l_Lean_Name_toString(x_42, x_43);
  x_45 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_45, 0, x_44);
  x_46 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_46, 0, x_29);
  lean_ctor_set(x_46, 1, x_37);
  lean_ctor_set(x_46, 2, x_45);
  lean_ctor_set(x_46, 3, x_39);
  lean_ctor_set(x_46, 4, x_40);
  lean_ctor_set(x_35, 0, x_46);
  return x_35;
  }
  }
  else
  {
  lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
  x_47 = lean_ctor_get(x_35, 0);
  x_48 = lean_ctor_get(x_35, 1);
  lean_inc(x_48);
  lean_inc(x_47);
  lean_dec(x_35);
  x_49 = lean_ctor_get(x_4, 0);
  lean_inc(x_49);
  x_50 = l_Lean_Meta_getGoalPrefix(x_4);
  lean_dec(x_4);
  x_51 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_51, 0, x_5);
  if (lean_obj_tag(x_49) == 0)
  {
  lean_object* x_52; lean_object* x_53; 
  x_52 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_52, 0, x_29);
  lean_ctor_set(x_52, 1, x_47);
  lean_ctor_set(x_52, 2, x_16);
  lean_ctor_set(x_52, 3, x_50);
  lean_ctor_set(x_52, 4, x_51);
  x_53 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_53, 0, x_52);
  lean_ctor_set(x_53, 1, x_48);
  return x_53;
  }
  else
  {
  lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
  x_54 = lean_erase_macro_scopes(x_49);
  x_55 = 1;
  x_56 = l_Lean_Name_toString(x_54, x_55);
  x_57 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_57, 0, x_56);
  x_58 = lean_alloc_ctor(0, 5, 0);
  lean_ctor_set(x_58, 0, x_29);
  lean_ctor_set(x_58, 1, x_47);
  lean_ctor_set(x_58, 2, x_57);
  lean_ctor_set(x_58, 3, x_50);
  lean_ctor_set(x_58, 4, x_51);
  x_59 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_59, 0, x_58);
  lean_ctor_set(x_59, 1, x_48);
  return x_59;
  }
  }
  }
  else
  {
  uint8_t x_60; 
  lean_dec(x_29);
  lean_dec(x_5);
  lean_dec(x_4);
  x_60 = !lean_is_exclusive(x_35);
  if (x_60 == 0)
  {
  return x_35;
  }
  else
  {
  lean_object* x_61; lean_object* x_62; lean_object* x_63; 
  x_61 = lean_ctor_get(x_35, 0);
  x_62 = lean_ctor_get(x_35, 1);
  lean_inc(x_62);
  lean_inc(x_61);
  lean_dec(x_35);
  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_76; 
  lean_dec(x_9);
  lean_dec(x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_1);
  x_76 = !lean_is_exclusive(x_20);
  if (x_76 == 0)
  {
  return x_20;
  }
  else
  {
  lean_object* x_77; lean_object* x_78; lean_object* x_79; 
  x_77 = lean_ctor_get(x_20, 0);
  x_78 = lean_ctor_get(x_20, 1);
  lean_inc(x_78);
  lean_inc(x_77);
  lean_dec(x_20);
  x_79 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_79, 0, x_77);
  lean_ctor_set(x_79, 1, x_78);
  return x_79;
  }
  }
  }
  else
  {
  uint8_t x_80; 
  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);
  lean_dec(x_1);
  x_80 = !lean_is_exclusive(x_11);
  if (x_80 == 0)
  {
  return x_11;
  }
  else
  {
  lean_object* x_81; lean_object* x_82; lean_object* x_83; 
  x_81 = lean_ctor_get(x_11, 0);
  x_82 = lean_ctor_get(x_11, 1);
  lean_inc(x_82);
  lean_inc(x_81);
  lean_dec(x_11);
  x_83 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_83, 0, x_81);
  lean_ctor_set(x_83, 1, x_82);
  return x_83;
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Widget_goalToInteractive___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string_from_bytes("unknown goal ", 13);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Widget_goalToInteractive___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Widget_goalToInteractive___closed__1;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Widget_goalToInteractive___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__2;
  x_2 = l_Lean_stringToMessageData(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Widget_goalToInteractive___closed__4() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Meta_pp_auxDecls;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_goalToInteractive(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_7 = lean_st_ref_get(x_5, x_6);
  x_8 = lean_ctor_get(x_7, 1);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_st_ref_get(x_3, x_8);
  x_10 = lean_ctor_get(x_9, 0);
  lean_inc(x_10);
  x_11 = lean_ctor_get(x_9, 1);
  lean_inc(x_11);
  lean_dec(x_9);
  x_12 = lean_ctor_get(x_10, 0);
  lean_inc(x_12);
  lean_dec(x_10);
  lean_inc(x_1);
  x_13 = l_Lean_MetavarContext_findDecl_x3f(x_12, x_1);
  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; 
  x_14 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_14, 0, x_1);
  x_15 = l_Lean_Widget_goalToInteractive___closed__2;
  x_16 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_16, 0, x_15);
  lean_ctor_set(x_16, 1, x_14);
  x_17 = l_Lean_Widget_goalToInteractive___closed__3;
  x_18 = lean_alloc_ctor(10, 2, 0);
  lean_ctor_set(x_18, 0, x_16);
  lean_ctor_set(x_18, 1, x_17);
  x_19 = l_Lean_throwError___at_Lean_Widget_goalToInteractive___spec__1(x_18, x_2, x_3, x_4, x_5, x_11);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_19;
  }
  else
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t 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; 
  x_20 = lean_ctor_get(x_13, 0);
  lean_inc(x_20);
  lean_dec(x_13);
  x_21 = lean_ctor_get(x_4, 2);
  lean_inc(x_21);
  x_22 = l_Lean_Widget_goalToInteractive___closed__4;
  x_23 = l_Lean_Option_get___at_Lean_getSanitizeNames___spec__1(x_21, x_22);
  x_24 = lean_ctor_get(x_20, 1);
  lean_inc(x_24);
  x_25 = lean_box(0);
  x_26 = lean_alloc_ctor(0, 3, 0);
  lean_ctor_set(x_26, 0, x_21);
  lean_ctor_set(x_26, 1, x_25);
  lean_ctor_set(x_26, 2, x_25);
  x_27 = l_Lean_LocalContext_sanitizeNames(x_24, x_26);
  x_28 = lean_ctor_get(x_27, 0);
  lean_inc(x_28);
  lean_dec(x_27);
  x_29 = lean_ctor_get(x_20, 4);
  lean_inc(x_29);
  x_30 = lean_ctor_get(x_20, 2);
  lean_inc(x_30);
  x_31 = lean_box(x_23);
  lean_inc(x_28);
  x_32 = lean_alloc_closure((void*)(l_Lean_Widget_goalToInteractive___lambda__1___boxed), 10, 5);
  lean_closure_set(x_32, 0, x_30);
  lean_closure_set(x_32, 1, x_28);
  lean_closure_set(x_32, 2, x_31);
  lean_closure_set(x_32, 3, x_20);
  lean_closure_set(x_32, 4, x_1);
  x_33 = l_Lean_Meta_withLCtx___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__1___rarg(x_28, x_29, x_32, x_2, x_3, x_4, x_5, x_11);
  return x_33;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Widget_goalToInteractive___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; 
  x_7 = l_Lean_throwError___at_Lean_Widget_goalToInteractive___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_7;
  }
  }
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) {
  _start:
  {
  uint8_t x_17; size_t x_18; size_t x_19; lean_object* x_20; 
  x_17 = lean_unbox(x_1);
  lean_dec(x_1);
  x_18 = lean_unbox_usize(x_9);
  lean_dec(x_9);
  x_19 = lean_unbox_usize(x_10);
  lean_dec(x_10);
  x_20 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__4(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_18, x_19, x_11, x_12, x_13, x_14, x_15, x_16);
  lean_dec(x_8);
  return x_20;
  }
  }
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___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_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___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_3);
  return x_11;
  }
  }
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) {
  _start:
  {
  uint8_t x_16; size_t x_17; size_t x_18; lean_object* x_19; 
  x_16 = lean_unbox(x_1);
  lean_dec(x_1);
  x_17 = lean_unbox_usize(x_8);
  lean_dec(x_8);
  x_18 = lean_unbox_usize(x_9);
  lean_dec(x_9);
  x_19 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_17, x_18, x_10, x_11, x_12, x_13, x_14, x_15);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_19;
  }
  }
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
  _start:
  {
  uint8_t x_14; lean_object* x_15; 
  x_14 = lean_unbox(x_1);
  lean_dec(x_1);
  x_15 = l_Std_PersistentArray_forInAux___at_Lean_Widget_goalToInteractive___spec__3(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
  return x_15;
  }
  }
  LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) {
  _start:
  {
  uint8_t x_16; size_t x_17; size_t x_18; lean_object* x_19; 
  x_16 = lean_unbox(x_1);
  lean_dec(x_1);
  x_17 = lean_unbox_usize(x_8);
  lean_dec(x_8);
  x_18 = lean_unbox_usize(x_9);
  lean_dec(x_9);
  x_19 = l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__6(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_17, x_18, x_10, x_11, x_12, x_13, x_14, x_15);
  lean_dec(x_7);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_19;
  }
  }
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Widget_goalToInteractive___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Std_PersistentArray_forIn___at_Lean_Widget_goalToInteractive___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  lean_dec(x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Widget_goalToInteractive___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, lean_object* x_11, lean_object* x_12) {
  _start:
  {
  uint8_t x_13; lean_object* x_14; 
  x_13 = lean_unbox(x_1);
  lean_dec(x_1);
  x_14 = l_Std_PersistentArray_forIn___at_Lean_Widget_goalToInteractive___spec__2(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
  return x_14;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Widget_goalToInteractive___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:
  {
  uint8_t x_11; lean_object* x_12; 
  x_11 = lean_unbox(x_3);
  lean_dec(x_3);
  x_12 = l_Lean_Widget_goalToInteractive___lambda__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
  return x_12;
  }
  }
  lean_object* initialize_Init(uint8_t builtin, lean_object*);
  lean_object* initialize_Lean_Meta_PPGoal(uint8_t builtin, lean_object*);
  lean_object* initialize_Lean_Widget_InteractiveCode(uint8_t builtin, lean_object*);
  static bool _G_initialized = false;
  LEAN_EXPORT lean_object* initialize_Lean_Widget_InteractiveGoal(uint8_t builtin, lean_object* w) {
  lean_object * res;
  if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
  _G_initialized = true;
  res = initialize_Init(builtin, lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Meta_PPGoal(builtin, lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Widget_InteractiveCode(builtin, lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l_Lean_Widget_InteractiveHypothesisBundle_val_x3f___default = _init_l_Lean_Widget_InteractiveHypothesisBundle_val_x3f___default();
  lean_mark_persistent(l_Lean_Widget_InteractiveHypothesisBundle_val_x3f___default);
  l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__1 = _init_l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__1();
  lean_mark_persistent(l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__1);
  l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__2 = _init_l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__2();
  lean_mark_persistent(l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__2);
  l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__3 = _init_l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__3();
  lean_mark_persistent(l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__3);
  l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__4 = _init_l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__4();
  lean_mark_persistent(l_Lean_Widget_instInhabitedInteractiveHypothesisBundle___closed__4);
  l_Lean_Widget_instInhabitedInteractiveHypothesisBundle = _init_l_Lean_Widget_instInhabitedInteractiveHypothesisBundle();
  lean_mark_persistent(l_Lean_Widget_instInhabitedInteractiveHypothesisBundle);
  l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___closed__1();
  lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____spec__1___rarg___closed__1);
  l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__1 = _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__1();
  lean_mark_persistent(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__1);
  l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__2 = _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__2();
  lean_mark_persistent(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__2);
  l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__3 = _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__3();
  lean_mark_persistent(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__3);
  l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__4 = _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__4();
  lean_mark_persistent(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__4);
  l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__5 = _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__5();
  lean_mark_persistent(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__5);
  l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__6 = _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__6();
  lean_mark_persistent(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_199____rarg___closed__6);
  l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__5___closed__1 = _init_l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__5___closed__1();
  lean_mark_persistent(l_Lean_Widget_instRpcEncodingInteractiveHypothesisBundleRpcEncodingPacket___rarg___lambda__5___closed__1);
  l_Lean_Widget_InteractiveGoal_mvarId_x3f___default = _init_l_Lean_Widget_InteractiveGoal_mvarId_x3f___default();
  lean_mark_persistent(l_Lean_Widget_InteractiveGoal_mvarId_x3f___default);
  l_Lean_Widget_instInhabitedInteractiveGoal___closed__1 = _init_l_Lean_Widget_instInhabitedInteractiveGoal___closed__1();
  lean_mark_persistent(l_Lean_Widget_instInhabitedInteractiveGoal___closed__1);
  l_Lean_Widget_instInhabitedInteractiveGoal = _init_l_Lean_Widget_instInhabitedInteractiveGoal();
  lean_mark_persistent(l_Lean_Widget_instInhabitedInteractiveGoal);
  l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__1 = _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__1();
  lean_mark_persistent(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__1);
  l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__2 = _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__2();
  lean_mark_persistent(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__2);
  l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__3 = _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__3();
  lean_mark_persistent(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__3);
  l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__4 = _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__4();
  lean_mark_persistent(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_1032____rarg___closed__4);
  l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__1();
  lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__1);
  l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__2();
  lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__2);
  l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__3();
  lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__3);
  l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__4();
  lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__4);
  l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__5 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__5();
  lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__5);
  l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__6();
  lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__6);
  l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__7 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__7();
  lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__7);
  l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__8 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__8();
  lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__8);
  l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__9 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__9();
  lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__9);
  l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__10 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__10();
  lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_InteractiveGoal_pretty___spec__3___closed__10);
  l_Lean_Widget_InteractiveGoal_pretty___closed__1 = _init_l_Lean_Widget_InteractiveGoal_pretty___closed__1();
  lean_mark_persistent(l_Lean_Widget_InteractiveGoal_pretty___closed__1);
  l_Lean_Widget_InteractiveGoal_pretty___closed__2 = _init_l_Lean_Widget_InteractiveGoal_pretty___closed__2();
  lean_mark_persistent(l_Lean_Widget_InteractiveGoal_pretty___closed__2);
  l_Lean_Widget_InteractiveGoal_pretty___closed__3 = _init_l_Lean_Widget_InteractiveGoal_pretty___closed__3();
  lean_mark_persistent(l_Lean_Widget_InteractiveGoal_pretty___closed__3);
  l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__1 = _init_l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__1();
  lean_mark_persistent(l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__1);
  l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__2 = _init_l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__2();
  lean_mark_persistent(l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__2);
  l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__3 = _init_l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__3();
  lean_mark_persistent(l_Lean_Widget_instInhabitedInteractiveTermGoal___closed__3);
  l_Lean_Widget_instInhabitedInteractiveTermGoal = _init_l_Lean_Widget_instInhabitedInteractiveTermGoal();
  lean_mark_persistent(l_Lean_Widget_instInhabitedInteractiveTermGoal);
  l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg___closed__1 = _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg___closed__1();
  lean_mark_persistent(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2097____rarg___closed__1);
  l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal___closed__1 = _init_l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal___closed__1();
  lean_mark_persistent(l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal___closed__1);
  l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg___closed__1 = _init_l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg___closed__1();
  lean_mark_persistent(l___private_Lean_Widget_InteractiveGoal_0__Lean_Widget_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveGoal___hyg_2578____rarg___closed__1);
  l_Lean_Widget_addInteractiveHypothesisBundle___closed__1 = _init_l_Lean_Widget_addInteractiveHypothesisBundle___closed__1();
  lean_mark_persistent(l_Lean_Widget_addInteractiveHypothesisBundle___closed__1);
  l_Lean_Widget_addInteractiveHypothesisBundle___closed__2 = _init_l_Lean_Widget_addInteractiveHypothesisBundle___closed__2();
  lean_mark_persistent(l_Lean_Widget_addInteractiveHypothesisBundle___closed__2);
  l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1();
  lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Widget_goalToInteractive___spec__5___closed__1);
  l_Lean_Widget_goalToInteractive___lambda__1___closed__1 = _init_l_Lean_Widget_goalToInteractive___lambda__1___closed__1();
  lean_mark_persistent(l_Lean_Widget_goalToInteractive___lambda__1___closed__1);
  l_Lean_Widget_goalToInteractive___lambda__1___closed__2 = _init_l_Lean_Widget_goalToInteractive___lambda__1___closed__2();
  lean_mark_persistent(l_Lean_Widget_goalToInteractive___lambda__1___closed__2);
  l_Lean_Widget_goalToInteractive___closed__1 = _init_l_Lean_Widget_goalToInteractive___closed__1();
  lean_mark_persistent(l_Lean_Widget_goalToInteractive___closed__1);
  l_Lean_Widget_goalToInteractive___closed__2 = _init_l_Lean_Widget_goalToInteractive___closed__2();
  lean_mark_persistent(l_Lean_Widget_goalToInteractive___closed__2);
  l_Lean_Widget_goalToInteractive___closed__3 = _init_l_Lean_Widget_goalToInteractive___closed__3();
  lean_mark_persistent(l_Lean_Widget_goalToInteractive___closed__3);
  l_Lean_Widget_goalToInteractive___closed__4 = _init_l_Lean_Widget_goalToInteractive___closed__4();
  lean_mark_persistent(l_Lean_Widget_goalToInteractive___closed__4);
  return lean_io_result_mk_ok(lean_box(0));
  }
  #ifdef __cplusplus
  }
  #endif
  