text: // Lean compiler output
  // Module: Lean.Data.Lsp.InitShutdown
  // Imports: Init Lean.Data.Lsp.Capabilities Lean.Data.Lsp.Workspace Lean.Data.Json
  #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
  static lean_object* l_Lean_Lsp_instFromJsonTrace___closed__1;
  static lean_object* l_Lean_Lsp_instFromJsonTrace___closed__3;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649_(lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonTrace___closed__5;
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__1___boxed(lean_object*, lean_object*);
  static lean_object* l_Lean_Lsp_instToJsonInitializeResult___closed__1;
  size_t lean_usize_add(size_t, size_t);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTrace___boxed(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonClientInfo;
  static lean_object* l_Lean_Lsp_instFromJsonTrace___closed__2;
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____spec__1___boxed(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonInitializeParams(lean_object*);
  static lean_object* l_Lean_Lsp_instToJsonInitializationOptions___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__1(lean_object*, lean_object*);
  lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1847____spec__1(lean_object*, lean_object*);
  lean_object* lean_array_uget(lean_object*, size_t);
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializeResult_serverInfo_x3f___default;
  lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__2(lean_object*, lean_object*);
  lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1817____spec__1(lean_object*, lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__13;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____boxed(lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_543_(lean_object*);
  static lean_object* l_Lean_Lsp_Trace_hasToJson___closed__2;
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializedParams_noConfusion___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializeParams_processId_x3f___default;
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__14;
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____closed__1;
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__5;
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_noConfusion(lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonTrace___closed__6;
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__7(size_t, size_t, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__2___boxed(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonServerInfo;
  lean_object* l_Lean_Json_getStr_x3f(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonInitializedParams___boxed(lean_object*);
  lean_object* lean_array_get_size(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_hasToJson___boxed(lean_object*);
  lean_object* lean_string_append(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_hasToJson(uint8_t);
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_noConfusion___rarg___lambda__1___boxed(lean_object*);
  lean_object* l_List_join___rarg(lean_object*);
  uint8_t lean_usize_dec_lt(size_t, size_t);
  static lean_object* l_Lean_Lsp_instFromJsonTrace___closed__4;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonInitializedParams(lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__12;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_510____boxed(lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonServerInfo___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonInitializeParams;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonInitializeParams___boxed(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonInitializedParams___boxed(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonInitializationOptions;
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializedParams_noConfusion___rarg___boxed(lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonInitializedParams___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__1___boxed(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializeParams_clientInfo_x3f___default;
  static lean_object* l_Lean_Lsp_instToJsonServerInfo___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__3(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_60____boxed(lean_object*);
  lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24_(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_noConfusion___rarg___lambda__1(lean_object*);
  LEAN_EXPORT uint8_t l_Lean_Lsp_InitializeParams_trace___default;
  static lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___closed__2;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4___boxed(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(lean_object*, lean_object*);
  static lean_object* l_Lean_Lsp_Trace_hasToJson___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializedParams_noConfusion(lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_toCtorIdx(uint8_t);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_218____boxed(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__2(lean_object*, lean_object*);
  lean_object* l_Lean_Json_getInt_x3f(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___boxed(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1___boxed(lean_object*, lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__10;
  static lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___closed__1;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_60_(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__4(lean_object*, lean_object*);
  lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_1327____spec__1(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__5(size_t, size_t, lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__7;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27_(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_ServerInfo_version_x3f___default;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(lean_object*, lean_object*);
  lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(lean_object*, lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__16;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5___boxed(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____spec__1(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonInitializedParams(lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__6;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonInitializationOptions;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonInitializeResult;
  lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_216_(lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_510_(lean_object*);
  lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_1294____spec__1(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_218_(lean_object*);
  size_t lean_usize_of_nat(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(lean_object*, lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonClientInfo___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializedParams_toCtorIdx___boxed(lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__11;
  lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3___boxed(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonInitializeResult;
  static lean_object* l_Lean_Lsp_Trace_noConfusion___rarg___closed__1;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_543____boxed(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonClientInfo;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTrace(lean_object*);
  lean_object* l_Lean_Json_mkObj(lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__2;
  lean_object* l_Lean_Json_pretty(lean_object*, lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__9;
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__1;
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__1(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____boxed(lean_object*);
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__5___boxed(lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonInitializeResult___closed__1;
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__15;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2___boxed(lean_object*, lean_object*);
  static lean_object* l_Lean_Lsp_instToJsonInitializeParams___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__2___boxed(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonServerInfo;
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializedParams_noConfusion___rarg(lean_object*);
  lean_object* l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_120_(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializeParams_rootUri_x3f___default;
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__3;
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializeParams_initializationOptions_x3f___default;
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__7___boxed(lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__2___closed__1;
  lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_64_(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_noConfusion___rarg(uint8_t, uint8_t, lean_object*);
  lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__2;
  static lean_object* l_Lean_Lsp_instFromJsonTrace___closed__7;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_196_(lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonTrace___closed__8;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326_(lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonInitializationOptions___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default;
  LEAN_EXPORT lean_object* l_Lean_Lsp_ClientInfo_version_x3f___default;
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_toCtorIdx___boxed(lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__1;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(lean_object*, lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__4;
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_196____closed__1;
  static lean_object* l_Lean_Lsp_instToJsonClientInfo___closed__1;
  static lean_object* l_Lean_Lsp_Trace_hasToJson___closed__3;
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializedParams_toCtorIdx(lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__8;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616_(lean_object*);
  uint8_t lean_string_dec_eq(lean_object*, lean_object*);
  static lean_object* _init_l_Lean_Lsp_ClientInfo_version_x3f___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("name");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("version");
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27_(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; 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; 
  x_2 = lean_ctor_get(x_1, 0);
  x_3 = lean_ctor_get(x_1, 1);
  lean_inc(x_2);
  x_4 = lean_alloc_ctor(3, 1, 0);
  lean_ctor_set(x_4, 0, x_2);
  x_5 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__1;
  x_6 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_6, 0, x_5);
  lean_ctor_set(x_6, 1, x_4);
  x_7 = lean_box(0);
  x_8 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_8, 0, x_6);
  lean_ctor_set(x_8, 1, x_7);
  x_9 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__2;
  x_10 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1817____spec__1(x_9, x_3);
  x_11 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_11, 0, x_10);
  lean_ctor_set(x_11, 1, x_7);
  x_12 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_12, 0, x_8);
  lean_ctor_set(x_12, 1, x_11);
  x_13 = l_List_join___rarg(x_12);
  x_14 = l_Lean_Json_mkObj(x_13);
  return x_14;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27_(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonClientInfo___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____boxed), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonClientInfo() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instToJsonClientInfo___closed__1;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_60_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__1;
  x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_2);
  if (lean_obj_tag(x_3) == 0)
  {
  uint8_t x_4; 
  x_4 = !lean_is_exclusive(x_3);
  if (x_4 == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_5; lean_object* x_6; 
  x_5 = lean_ctor_get(x_3, 0);
  lean_inc(x_5);
  lean_dec(x_3);
  x_6 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_6, 0, x_5);
  return x_6;
  }
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_3, 0);
  lean_inc(x_7);
  lean_dec(x_3);
  x_8 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__2;
  x_9 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1847____spec__1(x_1, x_8);
  if (lean_obj_tag(x_9) == 0)
  {
  uint8_t x_10; 
  lean_dec(x_7);
  x_10 = !lean_is_exclusive(x_9);
  if (x_10 == 0)
  {
  return x_9;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; 
  x_11 = lean_ctor_get(x_9, 0);
  lean_inc(x_11);
  lean_dec(x_9);
  x_12 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_12, 0, x_11);
  return x_12;
  }
  }
  else
  {
  uint8_t x_13; 
  x_13 = !lean_is_exclusive(x_9);
  if (x_13 == 0)
  {
  lean_object* x_14; lean_object* x_15; 
  x_14 = lean_ctor_get(x_9, 0);
  x_15 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_15, 0, x_7);
  lean_ctor_set(x_15, 1, x_14);
  lean_ctor_set(x_9, 0, x_15);
  return x_9;
  }
  else
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  x_16 = lean_ctor_get(x_9, 0);
  lean_inc(x_16);
  lean_dec(x_9);
  x_17 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_17, 0, x_7);
  lean_ctor_set(x_17, 1, x_16);
  x_18 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_18, 0, x_17);
  return x_18;
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_60____boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_60_(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonClientInfo___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_60____boxed), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonClientInfo() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instFromJsonClientInfo___closed__1;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_toCtorIdx(uint8_t x_1) {
  _start:
  {
  switch (x_1) {
  case 0:
  {
  lean_object* x_2; 
  x_2 = lean_unsigned_to_nat(0u);
  return x_2;
  }
  case 1:
  {
  lean_object* x_3; 
  x_3 = lean_unsigned_to_nat(1u);
  return x_3;
  }
  default: 
  {
  lean_object* x_4; 
  x_4 = lean_unsigned_to_nat(2u);
  return x_4;
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_toCtorIdx___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = lean_unbox(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_Lsp_Trace_toCtorIdx(x_2);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_noConfusion___rarg___lambda__1(lean_object* x_1) {
  _start:
  {
  lean_inc(x_1);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_Trace_noConfusion___rarg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_Trace_noConfusion___rarg___lambda__1___boxed), 1, 0);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_noConfusion___rarg(uint8_t x_1, uint8_t x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Lsp_Trace_noConfusion___rarg___closed__1;
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_noConfusion(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Lsp_Trace_noConfusion___rarg___boxed), 3, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_noConfusion___rarg___lambda__1___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Lsp_Trace_noConfusion___rarg___lambda__1(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_noConfusion___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  uint8_t x_4; uint8_t x_5; lean_object* x_6; 
  x_4 = lean_unbox(x_1);
  lean_dec(x_1);
  x_5 = lean_unbox(x_2);
  lean_dec(x_2);
  x_6 = l_Lean_Lsp_Trace_noConfusion___rarg(x_4, x_5, x_3);
  return x_6;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonTrace___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("uknown trace");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonTrace___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Lsp_instFromJsonTrace___closed__1;
  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_Lsp_instFromJsonTrace___closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("off");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonTrace___closed__4() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("messages");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonTrace___closed__5() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("verbose");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonTrace___closed__6() {
  _start:
  {
  uint8_t x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = 2;
  x_2 = lean_box(x_1);
  x_3 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_3, 0, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonTrace___closed__7() {
  _start:
  {
  uint8_t x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = 1;
  x_2 = lean_box(x_1);
  x_3 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_3, 0, x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonTrace___closed__8() {
  _start:
  {
  uint8_t x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = 0;
  x_2 = lean_box(x_1);
  x_3 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_3, 0, x_2);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTrace(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Json_getStr_x3f(x_1);
  if (lean_obj_tag(x_2) == 0)
  {
  lean_object* x_3; 
  lean_dec(x_2);
  x_3 = l_Lean_Lsp_instFromJsonTrace___closed__2;
  return x_3;
  }
  else
  {
  lean_object* x_4; lean_object* x_5; uint8_t x_6; 
  x_4 = lean_ctor_get(x_2, 0);
  lean_inc(x_4);
  lean_dec(x_2);
  x_5 = l_Lean_Lsp_instFromJsonTrace___closed__3;
  x_6 = lean_string_dec_eq(x_4, x_5);
  if (x_6 == 0)
  {
  lean_object* x_7; uint8_t x_8; 
  x_7 = l_Lean_Lsp_instFromJsonTrace___closed__4;
  x_8 = lean_string_dec_eq(x_4, x_7);
  if (x_8 == 0)
  {
  lean_object* x_9; uint8_t x_10; 
  x_9 = l_Lean_Lsp_instFromJsonTrace___closed__5;
  x_10 = lean_string_dec_eq(x_4, x_9);
  lean_dec(x_4);
  if (x_10 == 0)
  {
  lean_object* x_11; 
  x_11 = l_Lean_Lsp_instFromJsonTrace___closed__2;
  return x_11;
  }
  else
  {
  lean_object* x_12; 
  x_12 = l_Lean_Lsp_instFromJsonTrace___closed__6;
  return x_12;
  }
  }
  else
  {
  lean_object* x_13; 
  lean_dec(x_4);
  x_13 = l_Lean_Lsp_instFromJsonTrace___closed__7;
  return x_13;
  }
  }
  else
  {
  lean_object* x_14; 
  lean_dec(x_4);
  x_14 = l_Lean_Lsp_instFromJsonTrace___closed__8;
  return x_14;
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonTrace___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Lsp_instFromJsonTrace(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_Trace_hasToJson___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Lsp_instFromJsonTrace___closed__3;
  x_2 = lean_alloc_ctor(3, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_Trace_hasToJson___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Lsp_instFromJsonTrace___closed__4;
  x_2 = lean_alloc_ctor(3, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_Trace_hasToJson___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Lsp_instFromJsonTrace___closed__5;
  x_2 = lean_alloc_ctor(3, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_hasToJson(uint8_t x_1) {
  _start:
  {
  switch (x_1) {
  case 0:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Lsp_Trace_hasToJson___closed__1;
  return x_2;
  }
  case 1:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Lsp_Trace_hasToJson___closed__2;
  return x_3;
  }
  default: 
  {
  lean_object* x_4; 
  x_4 = l_Lean_Lsp_Trace_hasToJson___closed__3;
  return x_4;
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_Trace_hasToJson___boxed(lean_object* x_1) {
  _start:
  {
  uint8_t x_2; lean_object* x_3; 
  x_2 = lean_unbox(x_1);
  lean_dec(x_1);
  x_3 = l_Lean_Lsp_Trace_hasToJson(x_2);
  return x_3;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_196____closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("editDelay");
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_196_(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; lean_object* x_7; 
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_196____closed__1;
  x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_1294____spec__1(x_2, x_1);
  x_4 = lean_box(0);
  x_5 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_5, 0, x_3);
  lean_ctor_set(x_5, 1, x_4);
  x_6 = l_List_join___rarg(x_5);
  x_7 = l_Lean_Json_mkObj(x_6);
  return x_7;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonInitializationOptions___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_196_), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonInitializationOptions() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instToJsonInitializationOptions___closed__1;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_218_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_196____closed__1;
  x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_1327____spec__1(x_1, x_2);
  if (lean_obj_tag(x_3) == 0)
  {
  uint8_t x_4; 
  x_4 = !lean_is_exclusive(x_3);
  if (x_4 == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_5; lean_object* x_6; 
  x_5 = lean_ctor_get(x_3, 0);
  lean_inc(x_5);
  lean_dec(x_3);
  x_6 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_6, 0, x_5);
  return x_6;
  }
  }
  else
  {
  uint8_t x_7; 
  x_7 = !lean_is_exclusive(x_3);
  if (x_7 == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_8; lean_object* x_9; 
  x_8 = lean_ctor_get(x_3, 0);
  lean_inc(x_8);
  lean_dec(x_3);
  x_9 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_9, 0, x_8);
  return x_9;
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_218____boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_218_(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonInitializationOptions___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_218____boxed), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonInitializationOptions() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instFromJsonInitializationOptions___closed__1;
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_InitializeParams_processId_x3f___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_InitializeParams_clientInfo_x3f___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_InitializeParams_rootUri_x3f___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_InitializeParams_initializationOptions_x3f___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  static uint8_t _init_l_Lean_Lsp_InitializeParams_trace___default() {
  _start:
  {
  uint8_t x_1; 
  x_1 = 0;
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__1(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_2) == 0)
  {
  lean_object* x_3; 
  lean_dec(x_1);
  x_3 = lean_box(0);
  return x_3;
  }
  else
  {
  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_4 = lean_ctor_get(x_2, 0);
  x_5 = lean_unsigned_to_nat(0u);
  lean_inc(x_4);
  x_6 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_6, 0, x_4);
  lean_ctor_set(x_6, 1, x_5);
  x_7 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_7, 0, x_6);
  x_8 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_8, 0, x_1);
  lean_ctor_set(x_8, 1, x_7);
  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);
  return x_10;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__2(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_2) == 0)
  {
  lean_object* x_3; 
  lean_dec(x_1);
  x_3 = lean_box(0);
  return x_3;
  }
  else
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  x_4 = lean_ctor_get(x_2, 0);
  x_5 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27_(x_4);
  x_6 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_6, 0, x_1);
  lean_ctor_set(x_6, 1, x_5);
  x_7 = lean_box(0);
  x_8 = lean_alloc_ctor(1, 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_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__3(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_2) == 0)
  {
  lean_object* x_3; 
  lean_dec(x_1);
  x_3 = lean_box(0);
  return x_3;
  }
  else
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  x_4 = lean_ctor_get(x_2, 0);
  lean_inc(x_4);
  lean_dec(x_2);
  x_5 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_196_(x_4);
  x_6 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_6, 0, x_1);
  lean_ctor_set(x_6, 1, x_5);
  x_7 = lean_box(0);
  x_8 = lean_alloc_ctor(1, 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_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__5(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)
  {
  lean_object* x_5; 
  x_5 = x_3;
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; 
  x_6 = lean_array_uget(x_3, x_2);
  x_7 = lean_unsigned_to_nat(0u);
  x_8 = lean_array_uset(x_3, x_2, x_7);
  x_9 = x_6;
  x_10 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24_(x_9);
  lean_dec(x_9);
  x_11 = 1;
  x_12 = lean_usize_add(x_2, x_11);
  x_13 = x_10;
  x_14 = lean_array_uset(x_8, x_2, x_13);
  x_2 = x_12;
  x_3 = x_14;
  goto _start;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__4(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_2) == 0)
  {
  lean_object* x_3; 
  lean_dec(x_1);
  x_3 = lean_box(0);
  return x_3;
  }
  else
  {
  lean_object* x_4; lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_4 = lean_ctor_get(x_2, 0);
  lean_inc(x_4);
  lean_dec(x_2);
  x_5 = lean_array_get_size(x_4);
  x_6 = lean_usize_of_nat(x_5);
  lean_dec(x_5);
  x_7 = 0;
  x_8 = x_4;
  x_9 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__5(x_6, x_7, x_8);
  x_10 = x_9;
  x_11 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_11, 0, x_10);
  x_12 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_12, 0, x_1);
  lean_ctor_set(x_12, 1, x_11);
  x_13 = lean_box(0);
  x_14 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_14, 0, x_12);
  lean_ctor_set(x_14, 1, x_13);
  return x_14;
  }
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("processId");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("clientInfo");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__3() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("rootUri");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__4() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("initializationOptions");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__5() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_box(0);
  x_2 = l_Lean_Json_mkObj(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__6() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("capabilities");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__7() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__6;
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__5;
  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___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__8() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__7;
  x_3 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_3, 0, x_2);
  lean_ctor_set(x_3, 1, x_1);
  return x_3;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__9() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("workspaceFolders");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__10() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("trace");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__11() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__10;
  x_2 = l_Lean_Lsp_Trace_hasToJson___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___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__12() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__11;
  x_3 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_3, 0, x_2);
  lean_ctor_set(x_3, 1, x_1);
  return x_3;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__13() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__10;
  x_2 = l_Lean_Lsp_Trace_hasToJson___closed__2;
  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___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__14() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__13;
  x_3 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_3, 0, x_2);
  lean_ctor_set(x_3, 1, x_1);
  return x_3;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__15() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__10;
  x_2 = l_Lean_Lsp_Trace_hasToJson___closed__3;
  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___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__16() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__15;
  x_3 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_3, 0, x_2);
  lean_ctor_set(x_3, 1, x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326_(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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_2 = lean_ctor_get(x_1, 0);
  lean_inc(x_2);
  x_3 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__1;
  x_4 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__1(x_3, x_2);
  lean_dec(x_2);
  x_5 = lean_ctor_get(x_1, 1);
  lean_inc(x_5);
  x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__2;
  x_7 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__2(x_6, x_5);
  lean_dec(x_5);
  x_8 = lean_ctor_get(x_1, 2);
  lean_inc(x_8);
  x_9 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__3;
  x_10 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1817____spec__1(x_9, x_8);
  lean_dec(x_8);
  x_11 = lean_ctor_get(x_1, 3);
  lean_inc(x_11);
  x_12 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__4;
  x_13 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__3(x_12, x_11);
  x_14 = lean_box(0);
  x_15 = lean_ctor_get_uint8(x_1, sizeof(void*)*6);
  x_16 = lean_ctor_get(x_1, 5);
  lean_inc(x_16);
  lean_dec(x_1);
  x_17 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__9;
  x_18 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__4(x_17, x_16);
  x_19 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_19, 0, x_18);
  lean_ctor_set(x_19, 1, x_14);
  switch (x_15) {
  case 0:
  {
  lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
  x_20 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__12;
  x_21 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_21, 0, x_20);
  lean_ctor_set(x_21, 1, x_19);
  x_22 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__8;
  x_23 = lean_alloc_ctor(1, 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_13);
  lean_ctor_set(x_24, 1, x_23);
  x_25 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_25, 0, x_10);
  lean_ctor_set(x_25, 1, x_24);
  x_26 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_26, 0, x_7);
  lean_ctor_set(x_26, 1, x_25);
  x_27 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_27, 0, x_4);
  lean_ctor_set(x_27, 1, x_26);
  x_28 = l_List_join___rarg(x_27);
  x_29 = l_Lean_Json_mkObj(x_28);
  return x_29;
  }
  case 1:
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  x_30 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__14;
  x_31 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_31, 0, x_30);
  lean_ctor_set(x_31, 1, x_19);
  x_32 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__8;
  x_33 = lean_alloc_ctor(1, 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_13);
  lean_ctor_set(x_34, 1, x_33);
  x_35 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_35, 0, x_10);
  lean_ctor_set(x_35, 1, x_34);
  x_36 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_36, 0, x_7);
  lean_ctor_set(x_36, 1, x_35);
  x_37 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_37, 0, x_4);
  lean_ctor_set(x_37, 1, x_36);
  x_38 = l_List_join___rarg(x_37);
  x_39 = l_Lean_Json_mkObj(x_38);
  return x_39;
  }
  default: 
  {
  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; 
  x_40 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__16;
  x_41 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_41, 0, x_40);
  lean_ctor_set(x_41, 1, x_19);
  x_42 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__8;
  x_43 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_43, 0, x_42);
  lean_ctor_set(x_43, 1, x_41);
  x_44 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_44, 0, x_13);
  lean_ctor_set(x_44, 1, x_43);
  x_45 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_45, 0, x_10);
  lean_ctor_set(x_45, 1, x_44);
  x_46 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_46, 0, x_7);
  lean_ctor_set(x_46, 1, x_45);
  x_47 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_47, 0, x_4);
  lean_ctor_set(x_47, 1, x_46);
  x_48 = l_List_join___rarg(x_47);
  x_49 = l_Lean_Json_mkObj(x_48);
  return x_49;
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__1___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__1(x_1, x_2);
  lean_dec(x_2);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__2___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__2(x_1, x_2);
  lean_dec(x_2);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__5___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___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____spec__5(x_4, x_5, x_3);
  return x_6;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonInitializeParams___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326_), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonInitializeParams() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instToJsonInitializeParams___closed__1;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; 
  x_3 = l_Lean_Json_getObjValD(x_1, x_2);
  x_4 = l_Lean_Json_getInt_x3f(x_3);
  lean_dec(x_3);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; 
  x_3 = l_Lean_Json_getObjValD(x_1, x_2);
  x_4 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_60_(x_3);
  lean_dec(x_3);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; 
  x_3 = l_Lean_Json_getObjValD(x_1, x_2);
  x_4 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_218_(x_3);
  lean_dec(x_3);
  return x_4;
  }
  }
  static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4___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_Lean_Lsp_instFromJsonInitializeParams___spec__4(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4___closed__1;
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; 
  x_3 = l_Lean_Json_getObjValD(x_1, x_2);
  x_4 = l_Lean_Json_getStr_x3f(x_3);
  lean_dec(x_3);
  if (lean_obj_tag(x_4) == 0)
  {
  lean_object* x_5; 
  lean_dec(x_4);
  x_5 = l_Lean_Lsp_instFromJsonTrace___closed__2;
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; uint8_t x_8; 
  x_6 = lean_ctor_get(x_4, 0);
  lean_inc(x_6);
  lean_dec(x_4);
  x_7 = l_Lean_Lsp_instFromJsonTrace___closed__3;
  x_8 = lean_string_dec_eq(x_6, x_7);
  if (x_8 == 0)
  {
  lean_object* x_9; uint8_t x_10; 
  x_9 = l_Lean_Lsp_instFromJsonTrace___closed__4;
  x_10 = lean_string_dec_eq(x_6, x_9);
  if (x_10 == 0)
  {
  lean_object* x_11; uint8_t x_12; 
  x_11 = l_Lean_Lsp_instFromJsonTrace___closed__5;
  x_12 = lean_string_dec_eq(x_6, x_11);
  lean_dec(x_6);
  if (x_12 == 0)
  {
  lean_object* x_13; 
  x_13 = l_Lean_Lsp_instFromJsonTrace___closed__2;
  return x_13;
  }
  else
  {
  lean_object* x_14; 
  x_14 = l_Lean_Lsp_instFromJsonTrace___closed__6;
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; 
  lean_dec(x_6);
  x_15 = l_Lean_Lsp_instFromJsonTrace___closed__7;
  return x_15;
  }
  }
  else
  {
  lean_object* x_16; 
  lean_dec(x_6);
  x_16 = l_Lean_Lsp_instFromJsonTrace___closed__8;
  return x_16;
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__7(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)
  {
  lean_object* x_5; lean_object* x_6; 
  x_5 = x_3;
  x_6 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_6, 0, x_5);
  return x_6;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
  x_7 = lean_array_uget(x_3, x_2);
  x_8 = lean_unsigned_to_nat(0u);
  x_9 = lean_array_uset(x_3, x_2, x_8);
  x_10 = x_7;
  x_11 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_64_(x_10);
  lean_dec(x_10);
  if (lean_obj_tag(x_11) == 0)
  {
  uint8_t x_12; 
  lean_dec(x_9);
  x_12 = !lean_is_exclusive(x_11);
  if (x_12 == 0)
  {
  return x_11;
  }
  else
  {
  lean_object* x_13; lean_object* x_14; 
  x_13 = lean_ctor_get(x_11, 0);
  lean_inc(x_13);
  lean_dec(x_11);
  x_14 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_14, 0, x_13);
  return x_14;
  }
  }
  else
  {
  lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; 
  x_15 = lean_ctor_get(x_11, 0);
  lean_inc(x_15);
  lean_dec(x_11);
  x_16 = 1;
  x_17 = lean_usize_add(x_2, x_16);
  x_18 = x_15;
  x_19 = lean_array_uset(x_9, x_2, x_18);
  x_2 = x_17;
  x_3 = x_19;
  goto _start;
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("expected JSON array, got '");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("'");
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValD(x_1, x_2);
  if (lean_obj_tag(x_3) == 4)
  {
  lean_object* x_4; lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  x_4 = lean_ctor_get(x_3, 0);
  lean_inc(x_4);
  lean_dec(x_3);
  x_5 = lean_array_get_size(x_4);
  x_6 = lean_usize_of_nat(x_5);
  lean_dec(x_5);
  x_7 = 0;
  x_8 = x_4;
  x_9 = l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__7(x_6, x_7, x_8);
  x_10 = x_9;
  return x_10;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
  x_11 = lean_unsigned_to_nat(80u);
  x_12 = l_Lean_Json_pretty(x_3, x_11);
  x_13 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___closed__1;
  x_14 = lean_string_append(x_13, x_12);
  lean_dec(x_12);
  x_15 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___closed__2;
  x_16 = lean_string_append(x_14, x_15);
  x_17 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_17, 0, x_16);
  return x_17;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonInitializeParams(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; 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; uint8_t x_14; 
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__1;
  x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(x_1, x_2);
  x_4 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__2;
  x_5 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(x_1, x_4);
  x_6 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__3;
  x_7 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_6);
  x_8 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__4;
  x_9 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(x_1, x_8);
  x_10 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__10;
  x_11 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_1, x_10);
  x_12 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__9;
  x_13 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(x_1, x_12);
  if (lean_obj_tag(x_11) == 0)
  {
  uint8_t x_180; 
  lean_dec(x_11);
  x_180 = 0;
  x_14 = x_180;
  goto block_179;
  }
  else
  {
  lean_object* x_181; uint8_t x_182; 
  x_181 = lean_ctor_get(x_11, 0);
  lean_inc(x_181);
  lean_dec(x_11);
  x_182 = lean_unbox(x_181);
  lean_dec(x_181);
  x_14 = x_182;
  goto block_179;
  }
  block_179:
  {
  lean_object* x_15; lean_object* x_92; lean_object* x_93; 
  if (lean_obj_tag(x_3) == 0)
  {
  lean_object* x_174; 
  lean_dec(x_3);
  x_174 = lean_box(0);
  if (lean_obj_tag(x_5) == 0)
  {
  lean_dec(x_5);
  x_15 = x_174;
  goto block_91;
  }
  else
  {
  lean_object* x_175; 
  x_175 = lean_ctor_get(x_5, 0);
  lean_inc(x_175);
  lean_dec(x_5);
  x_92 = x_174;
  x_93 = x_175;
  goto block_173;
  }
  }
  else
  {
  lean_object* x_176; lean_object* x_177; 
  x_176 = lean_ctor_get(x_3, 0);
  lean_inc(x_176);
  lean_dec(x_3);
  x_177 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_177, 0, x_176);
  if (lean_obj_tag(x_5) == 0)
  {
  lean_dec(x_5);
  x_15 = x_177;
  goto block_91;
  }
  else
  {
  lean_object* x_178; 
  x_178 = lean_ctor_get(x_5, 0);
  lean_inc(x_178);
  lean_dec(x_5);
  x_92 = x_177;
  x_93 = x_178;
  goto block_173;
  }
  }
  block_91:
  {
  lean_object* x_16; 
  x_16 = lean_box(0);
  if (lean_obj_tag(x_7) == 0)
  {
  lean_dec(x_7);
  if (lean_obj_tag(x_9) == 0)
  {
  lean_dec(x_9);
  if (lean_obj_tag(x_13) == 0)
  {
  uint8_t x_17; 
  x_17 = !lean_is_exclusive(x_13);
  if (x_17 == 0)
  {
  lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_18 = lean_ctor_get(x_13, 0);
  lean_dec(x_18);
  x_19 = lean_box(0);
  x_20 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_20, 0, x_15);
  lean_ctor_set(x_20, 1, x_16);
  lean_ctor_set(x_20, 2, x_16);
  lean_ctor_set(x_20, 3, x_16);
  lean_ctor_set(x_20, 4, x_19);
  lean_ctor_set(x_20, 5, x_16);
  lean_ctor_set_uint8(x_20, sizeof(void*)*6, x_14);
  lean_ctor_set_tag(x_13, 1);
  lean_ctor_set(x_13, 0, x_20);
  return x_13;
  }
  else
  {
  lean_object* x_21; lean_object* x_22; lean_object* x_23; 
  lean_dec(x_13);
  x_21 = lean_box(0);
  x_22 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_22, 0, x_15);
  lean_ctor_set(x_22, 1, x_16);
  lean_ctor_set(x_22, 2, x_16);
  lean_ctor_set(x_22, 3, x_16);
  lean_ctor_set(x_22, 4, x_21);
  lean_ctor_set(x_22, 5, x_16);
  lean_ctor_set_uint8(x_22, sizeof(void*)*6, x_14);
  x_23 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_23, 0, x_22);
  return x_23;
  }
  }
  else
  {
  uint8_t x_24; 
  x_24 = !lean_is_exclusive(x_13);
  if (x_24 == 0)
  {
  lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
  x_25 = lean_ctor_get(x_13, 0);
  x_26 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_26, 0, x_25);
  x_27 = lean_box(0);
  x_28 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_28, 0, x_15);
  lean_ctor_set(x_28, 1, x_16);
  lean_ctor_set(x_28, 2, x_16);
  lean_ctor_set(x_28, 3, x_16);
  lean_ctor_set(x_28, 4, x_27);
  lean_ctor_set(x_28, 5, x_26);
  lean_ctor_set_uint8(x_28, sizeof(void*)*6, x_14);
  lean_ctor_set(x_13, 0, x_28);
  return x_13;
  }
  else
  {
  lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
  x_29 = lean_ctor_get(x_13, 0);
  lean_inc(x_29);
  lean_dec(x_13);
  x_30 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_30, 0, x_29);
  x_31 = lean_box(0);
  x_32 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_32, 0, x_15);
  lean_ctor_set(x_32, 1, x_16);
  lean_ctor_set(x_32, 2, x_16);
  lean_ctor_set(x_32, 3, x_16);
  lean_ctor_set(x_32, 4, x_31);
  lean_ctor_set(x_32, 5, x_30);
  lean_ctor_set_uint8(x_32, sizeof(void*)*6, x_14);
  x_33 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_33, 0, x_32);
  return x_33;
  }
  }
  }
  else
  {
  lean_object* x_34; lean_object* x_35; 
  x_34 = lean_ctor_get(x_9, 0);
  lean_inc(x_34);
  lean_dec(x_9);
  x_35 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_35, 0, x_34);
  if (lean_obj_tag(x_13) == 0)
  {
  uint8_t x_36; 
  x_36 = !lean_is_exclusive(x_13);
  if (x_36 == 0)
  {
  lean_object* x_37; lean_object* x_38; lean_object* x_39; 
  x_37 = lean_ctor_get(x_13, 0);
  lean_dec(x_37);
  x_38 = lean_box(0);
  x_39 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_39, 0, x_15);
  lean_ctor_set(x_39, 1, x_16);
  lean_ctor_set(x_39, 2, x_16);
  lean_ctor_set(x_39, 3, x_35);
  lean_ctor_set(x_39, 4, x_38);
  lean_ctor_set(x_39, 5, x_16);
  lean_ctor_set_uint8(x_39, sizeof(void*)*6, x_14);
  lean_ctor_set_tag(x_13, 1);
  lean_ctor_set(x_13, 0, x_39);
  return x_13;
  }
  else
  {
  lean_object* x_40; lean_object* x_41; lean_object* x_42; 
  lean_dec(x_13);
  x_40 = lean_box(0);
  x_41 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_41, 0, x_15);
  lean_ctor_set(x_41, 1, x_16);
  lean_ctor_set(x_41, 2, x_16);
  lean_ctor_set(x_41, 3, x_35);
  lean_ctor_set(x_41, 4, x_40);
  lean_ctor_set(x_41, 5, x_16);
  lean_ctor_set_uint8(x_41, sizeof(void*)*6, x_14);
  x_42 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_42, 0, x_41);
  return x_42;
  }
  }
  else
  {
  uint8_t x_43; 
  x_43 = !lean_is_exclusive(x_13);
  if (x_43 == 0)
  {
  lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 
  x_44 = lean_ctor_get(x_13, 0);
  x_45 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_45, 0, x_44);
  x_46 = lean_box(0);
  x_47 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_47, 0, x_15);
  lean_ctor_set(x_47, 1, x_16);
  lean_ctor_set(x_47, 2, x_16);
  lean_ctor_set(x_47, 3, x_35);
  lean_ctor_set(x_47, 4, x_46);
  lean_ctor_set(x_47, 5, x_45);
  lean_ctor_set_uint8(x_47, sizeof(void*)*6, x_14);
  lean_ctor_set(x_13, 0, x_47);
  return x_13;
  }
  else
  {
  lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
  x_48 = lean_ctor_get(x_13, 0);
  lean_inc(x_48);
  lean_dec(x_13);
  x_49 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_49, 0, x_48);
  x_50 = lean_box(0);
  x_51 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_51, 0, x_15);
  lean_ctor_set(x_51, 1, x_16);
  lean_ctor_set(x_51, 2, x_16);
  lean_ctor_set(x_51, 3, x_35);
  lean_ctor_set(x_51, 4, x_50);
  lean_ctor_set(x_51, 5, x_49);
  lean_ctor_set_uint8(x_51, sizeof(void*)*6, x_14);
  x_52 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_52, 0, x_51);
  return x_52;
  }
  }
  }
  }
  else
  {
  lean_object* x_53; lean_object* x_54; 
  x_53 = lean_ctor_get(x_7, 0);
  lean_inc(x_53);
  lean_dec(x_7);
  x_54 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_54, 0, x_53);
  if (lean_obj_tag(x_9) == 0)
  {
  lean_dec(x_9);
  if (lean_obj_tag(x_13) == 0)
  {
  uint8_t x_55; 
  x_55 = !lean_is_exclusive(x_13);
  if (x_55 == 0)
  {
  lean_object* x_56; lean_object* x_57; lean_object* x_58; 
  x_56 = lean_ctor_get(x_13, 0);
  lean_dec(x_56);
  x_57 = lean_box(0);
  x_58 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_58, 0, x_15);
  lean_ctor_set(x_58, 1, x_16);
  lean_ctor_set(x_58, 2, x_54);
  lean_ctor_set(x_58, 3, x_16);
  lean_ctor_set(x_58, 4, x_57);
  lean_ctor_set(x_58, 5, x_16);
  lean_ctor_set_uint8(x_58, sizeof(void*)*6, x_14);
  lean_ctor_set_tag(x_13, 1);
  lean_ctor_set(x_13, 0, x_58);
  return x_13;
  }
  else
  {
  lean_object* x_59; lean_object* x_60; lean_object* x_61; 
  lean_dec(x_13);
  x_59 = lean_box(0);
  x_60 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_60, 0, x_15);
  lean_ctor_set(x_60, 1, x_16);
  lean_ctor_set(x_60, 2, x_54);
  lean_ctor_set(x_60, 3, x_16);
  lean_ctor_set(x_60, 4, x_59);
  lean_ctor_set(x_60, 5, x_16);
  lean_ctor_set_uint8(x_60, sizeof(void*)*6, x_14);
  x_61 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_61, 0, x_60);
  return x_61;
  }
  }
  else
  {
  uint8_t x_62; 
  x_62 = !lean_is_exclusive(x_13);
  if (x_62 == 0)
  {
  lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; 
  x_63 = lean_ctor_get(x_13, 0);
  x_64 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_64, 0, x_63);
  x_65 = lean_box(0);
  x_66 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_66, 0, x_15);
  lean_ctor_set(x_66, 1, x_16);
  lean_ctor_set(x_66, 2, x_54);
  lean_ctor_set(x_66, 3, x_16);
  lean_ctor_set(x_66, 4, x_65);
  lean_ctor_set(x_66, 5, x_64);
  lean_ctor_set_uint8(x_66, sizeof(void*)*6, x_14);
  lean_ctor_set(x_13, 0, x_66);
  return x_13;
  }
  else
  {
  lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; 
  x_67 = lean_ctor_get(x_13, 0);
  lean_inc(x_67);
  lean_dec(x_13);
  x_68 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_68, 0, x_67);
  x_69 = lean_box(0);
  x_70 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_70, 0, x_15);
  lean_ctor_set(x_70, 1, x_16);
  lean_ctor_set(x_70, 2, x_54);
  lean_ctor_set(x_70, 3, x_16);
  lean_ctor_set(x_70, 4, x_69);
  lean_ctor_set(x_70, 5, x_68);
  lean_ctor_set_uint8(x_70, sizeof(void*)*6, x_14);
  x_71 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_71, 0, x_70);
  return x_71;
  }
  }
  }
  else
  {
  lean_object* x_72; lean_object* x_73; 
  x_72 = lean_ctor_get(x_9, 0);
  lean_inc(x_72);
  lean_dec(x_9);
  x_73 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_73, 0, x_72);
  if (lean_obj_tag(x_13) == 0)
  {
  uint8_t x_74; 
  x_74 = !lean_is_exclusive(x_13);
  if (x_74 == 0)
  {
  lean_object* x_75; lean_object* x_76; lean_object* x_77; 
  x_75 = lean_ctor_get(x_13, 0);
  lean_dec(x_75);
  x_76 = lean_box(0);
  x_77 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_77, 0, x_15);
  lean_ctor_set(x_77, 1, x_16);
  lean_ctor_set(x_77, 2, x_54);
  lean_ctor_set(x_77, 3, x_73);
  lean_ctor_set(x_77, 4, x_76);
  lean_ctor_set(x_77, 5, x_16);
  lean_ctor_set_uint8(x_77, sizeof(void*)*6, x_14);
  lean_ctor_set_tag(x_13, 1);
  lean_ctor_set(x_13, 0, x_77);
  return x_13;
  }
  else
  {
  lean_object* x_78; lean_object* x_79; lean_object* x_80; 
  lean_dec(x_13);
  x_78 = lean_box(0);
  x_79 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_79, 0, x_15);
  lean_ctor_set(x_79, 1, x_16);
  lean_ctor_set(x_79, 2, x_54);
  lean_ctor_set(x_79, 3, x_73);
  lean_ctor_set(x_79, 4, x_78);
  lean_ctor_set(x_79, 5, x_16);
  lean_ctor_set_uint8(x_79, sizeof(void*)*6, x_14);
  x_80 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_80, 0, x_79);
  return x_80;
  }
  }
  else
  {
  uint8_t x_81; 
  x_81 = !lean_is_exclusive(x_13);
  if (x_81 == 0)
  {
  lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 
  x_82 = lean_ctor_get(x_13, 0);
  x_83 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_83, 0, x_82);
  x_84 = lean_box(0);
  x_85 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_85, 0, x_15);
  lean_ctor_set(x_85, 1, x_16);
  lean_ctor_set(x_85, 2, x_54);
  lean_ctor_set(x_85, 3, x_73);
  lean_ctor_set(x_85, 4, x_84);
  lean_ctor_set(x_85, 5, x_83);
  lean_ctor_set_uint8(x_85, sizeof(void*)*6, x_14);
  lean_ctor_set(x_13, 0, x_85);
  return x_13;
  }
  else
  {
  lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
  x_86 = lean_ctor_get(x_13, 0);
  lean_inc(x_86);
  lean_dec(x_13);
  x_87 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_87, 0, x_86);
  x_88 = lean_box(0);
  x_89 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_89, 0, x_15);
  lean_ctor_set(x_89, 1, x_16);
  lean_ctor_set(x_89, 2, x_54);
  lean_ctor_set(x_89, 3, x_73);
  lean_ctor_set(x_89, 4, x_88);
  lean_ctor_set(x_89, 5, x_87);
  lean_ctor_set_uint8(x_89, sizeof(void*)*6, x_14);
  x_90 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_90, 0, x_89);
  return x_90;
  }
  }
  }
  }
  }
  block_173:
  {
  lean_object* x_94; 
  x_94 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_94, 0, x_93);
  if (lean_obj_tag(x_7) == 0)
  {
  lean_object* x_95; 
  lean_dec(x_7);
  x_95 = lean_box(0);
  if (lean_obj_tag(x_9) == 0)
  {
  lean_dec(x_9);
  if (lean_obj_tag(x_13) == 0)
  {
  uint8_t x_96; 
  x_96 = !lean_is_exclusive(x_13);
  if (x_96 == 0)
  {
  lean_object* x_97; lean_object* x_98; lean_object* x_99; 
  x_97 = lean_ctor_get(x_13, 0);
  lean_dec(x_97);
  x_98 = lean_box(0);
  x_99 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_99, 0, x_92);
  lean_ctor_set(x_99, 1, x_94);
  lean_ctor_set(x_99, 2, x_95);
  lean_ctor_set(x_99, 3, x_95);
  lean_ctor_set(x_99, 4, x_98);
  lean_ctor_set(x_99, 5, x_95);
  lean_ctor_set_uint8(x_99, sizeof(void*)*6, x_14);
  lean_ctor_set_tag(x_13, 1);
  lean_ctor_set(x_13, 0, x_99);
  return x_13;
  }
  else
  {
  lean_object* x_100; lean_object* x_101; lean_object* x_102; 
  lean_dec(x_13);
  x_100 = lean_box(0);
  x_101 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_101, 0, x_92);
  lean_ctor_set(x_101, 1, x_94);
  lean_ctor_set(x_101, 2, x_95);
  lean_ctor_set(x_101, 3, x_95);
  lean_ctor_set(x_101, 4, x_100);
  lean_ctor_set(x_101, 5, x_95);
  lean_ctor_set_uint8(x_101, sizeof(void*)*6, x_14);
  x_102 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_102, 0, x_101);
  return x_102;
  }
  }
  else
  {
  uint8_t x_103; 
  x_103 = !lean_is_exclusive(x_13);
  if (x_103 == 0)
  {
  lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; 
  x_104 = lean_ctor_get(x_13, 0);
  x_105 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_105, 0, x_104);
  x_106 = lean_box(0);
  x_107 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_107, 0, x_92);
  lean_ctor_set(x_107, 1, x_94);
  lean_ctor_set(x_107, 2, x_95);
  lean_ctor_set(x_107, 3, x_95);
  lean_ctor_set(x_107, 4, x_106);
  lean_ctor_set(x_107, 5, x_105);
  lean_ctor_set_uint8(x_107, sizeof(void*)*6, x_14);
  lean_ctor_set(x_13, 0, x_107);
  return x_13;
  }
  else
  {
  lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; 
  x_108 = lean_ctor_get(x_13, 0);
  lean_inc(x_108);
  lean_dec(x_13);
  x_109 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_109, 0, x_108);
  x_110 = lean_box(0);
  x_111 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_111, 0, x_92);
  lean_ctor_set(x_111, 1, x_94);
  lean_ctor_set(x_111, 2, x_95);
  lean_ctor_set(x_111, 3, x_95);
  lean_ctor_set(x_111, 4, x_110);
  lean_ctor_set(x_111, 5, x_109);
  lean_ctor_set_uint8(x_111, sizeof(void*)*6, x_14);
  x_112 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_112, 0, x_111);
  return x_112;
  }
  }
  }
  else
  {
  lean_object* x_113; lean_object* x_114; 
  x_113 = lean_ctor_get(x_9, 0);
  lean_inc(x_113);
  lean_dec(x_9);
  x_114 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_114, 0, x_113);
  if (lean_obj_tag(x_13) == 0)
  {
  uint8_t x_115; 
  x_115 = !lean_is_exclusive(x_13);
  if (x_115 == 0)
  {
  lean_object* x_116; lean_object* x_117; lean_object* x_118; 
  x_116 = lean_ctor_get(x_13, 0);
  lean_dec(x_116);
  x_117 = lean_box(0);
  x_118 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_118, 0, x_92);
  lean_ctor_set(x_118, 1, x_94);
  lean_ctor_set(x_118, 2, x_95);
  lean_ctor_set(x_118, 3, x_114);
  lean_ctor_set(x_118, 4, x_117);
  lean_ctor_set(x_118, 5, x_95);
  lean_ctor_set_uint8(x_118, sizeof(void*)*6, x_14);
  lean_ctor_set_tag(x_13, 1);
  lean_ctor_set(x_13, 0, x_118);
  return x_13;
  }
  else
  {
  lean_object* x_119; lean_object* x_120; lean_object* x_121; 
  lean_dec(x_13);
  x_119 = lean_box(0);
  x_120 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_120, 0, x_92);
  lean_ctor_set(x_120, 1, x_94);
  lean_ctor_set(x_120, 2, x_95);
  lean_ctor_set(x_120, 3, x_114);
  lean_ctor_set(x_120, 4, x_119);
  lean_ctor_set(x_120, 5, x_95);
  lean_ctor_set_uint8(x_120, sizeof(void*)*6, x_14);
  x_121 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_121, 0, x_120);
  return x_121;
  }
  }
  else
  {
  uint8_t x_122; 
  x_122 = !lean_is_exclusive(x_13);
  if (x_122 == 0)
  {
  lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; 
  x_123 = lean_ctor_get(x_13, 0);
  x_124 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_124, 0, x_123);
  x_125 = lean_box(0);
  x_126 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_126, 0, x_92);
  lean_ctor_set(x_126, 1, x_94);
  lean_ctor_set(x_126, 2, x_95);
  lean_ctor_set(x_126, 3, x_114);
  lean_ctor_set(x_126, 4, x_125);
  lean_ctor_set(x_126, 5, x_124);
  lean_ctor_set_uint8(x_126, sizeof(void*)*6, x_14);
  lean_ctor_set(x_13, 0, x_126);
  return x_13;
  }
  else
  {
  lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; 
  x_127 = lean_ctor_get(x_13, 0);
  lean_inc(x_127);
  lean_dec(x_13);
  x_128 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_128, 0, x_127);
  x_129 = lean_box(0);
  x_130 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_130, 0, x_92);
  lean_ctor_set(x_130, 1, x_94);
  lean_ctor_set(x_130, 2, x_95);
  lean_ctor_set(x_130, 3, x_114);
  lean_ctor_set(x_130, 4, x_129);
  lean_ctor_set(x_130, 5, x_128);
  lean_ctor_set_uint8(x_130, sizeof(void*)*6, x_14);
  x_131 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_131, 0, x_130);
  return x_131;
  }
  }
  }
  }
  else
  {
  lean_object* x_132; lean_object* x_133; 
  x_132 = lean_ctor_get(x_7, 0);
  lean_inc(x_132);
  lean_dec(x_7);
  x_133 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_133, 0, x_132);
  if (lean_obj_tag(x_9) == 0)
  {
  lean_object* x_134; 
  lean_dec(x_9);
  x_134 = lean_box(0);
  if (lean_obj_tag(x_13) == 0)
  {
  uint8_t x_135; 
  x_135 = !lean_is_exclusive(x_13);
  if (x_135 == 0)
  {
  lean_object* x_136; lean_object* x_137; lean_object* x_138; 
  x_136 = lean_ctor_get(x_13, 0);
  lean_dec(x_136);
  x_137 = lean_box(0);
  x_138 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_138, 0, x_92);
  lean_ctor_set(x_138, 1, x_94);
  lean_ctor_set(x_138, 2, x_133);
  lean_ctor_set(x_138, 3, x_134);
  lean_ctor_set(x_138, 4, x_137);
  lean_ctor_set(x_138, 5, x_134);
  lean_ctor_set_uint8(x_138, sizeof(void*)*6, x_14);
  lean_ctor_set_tag(x_13, 1);
  lean_ctor_set(x_13, 0, x_138);
  return x_13;
  }
  else
  {
  lean_object* x_139; lean_object* x_140; lean_object* x_141; 
  lean_dec(x_13);
  x_139 = lean_box(0);
  x_140 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_140, 0, x_92);
  lean_ctor_set(x_140, 1, x_94);
  lean_ctor_set(x_140, 2, x_133);
  lean_ctor_set(x_140, 3, x_134);
  lean_ctor_set(x_140, 4, x_139);
  lean_ctor_set(x_140, 5, x_134);
  lean_ctor_set_uint8(x_140, sizeof(void*)*6, x_14);
  x_141 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_141, 0, x_140);
  return x_141;
  }
  }
  else
  {
  uint8_t x_142; 
  x_142 = !lean_is_exclusive(x_13);
  if (x_142 == 0)
  {
  lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; 
  x_143 = lean_ctor_get(x_13, 0);
  x_144 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_144, 0, x_143);
  x_145 = lean_box(0);
  x_146 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_146, 0, x_92);
  lean_ctor_set(x_146, 1, x_94);
  lean_ctor_set(x_146, 2, x_133);
  lean_ctor_set(x_146, 3, x_134);
  lean_ctor_set(x_146, 4, x_145);
  lean_ctor_set(x_146, 5, x_144);
  lean_ctor_set_uint8(x_146, sizeof(void*)*6, x_14);
  lean_ctor_set(x_13, 0, x_146);
  return x_13;
  }
  else
  {
  lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; 
  x_147 = lean_ctor_get(x_13, 0);
  lean_inc(x_147);
  lean_dec(x_13);
  x_148 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_148, 0, x_147);
  x_149 = lean_box(0);
  x_150 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_150, 0, x_92);
  lean_ctor_set(x_150, 1, x_94);
  lean_ctor_set(x_150, 2, x_133);
  lean_ctor_set(x_150, 3, x_134);
  lean_ctor_set(x_150, 4, x_149);
  lean_ctor_set(x_150, 5, x_148);
  lean_ctor_set_uint8(x_150, sizeof(void*)*6, x_14);
  x_151 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_151, 0, x_150);
  return x_151;
  }
  }
  }
  else
  {
  lean_object* x_152; lean_object* x_153; 
  x_152 = lean_ctor_get(x_9, 0);
  lean_inc(x_152);
  lean_dec(x_9);
  x_153 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_153, 0, x_152);
  if (lean_obj_tag(x_13) == 0)
  {
  uint8_t x_154; 
  x_154 = !lean_is_exclusive(x_13);
  if (x_154 == 0)
  {
  lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; 
  x_155 = lean_ctor_get(x_13, 0);
  lean_dec(x_155);
  x_156 = lean_box(0);
  x_157 = lean_box(0);
  x_158 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_158, 0, x_92);
  lean_ctor_set(x_158, 1, x_94);
  lean_ctor_set(x_158, 2, x_133);
  lean_ctor_set(x_158, 3, x_153);
  lean_ctor_set(x_158, 4, x_157);
  lean_ctor_set(x_158, 5, x_156);
  lean_ctor_set_uint8(x_158, sizeof(void*)*6, x_14);
  lean_ctor_set_tag(x_13, 1);
  lean_ctor_set(x_13, 0, x_158);
  return x_13;
  }
  else
  {
  lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; 
  lean_dec(x_13);
  x_159 = lean_box(0);
  x_160 = lean_box(0);
  x_161 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_161, 0, x_92);
  lean_ctor_set(x_161, 1, x_94);
  lean_ctor_set(x_161, 2, x_133);
  lean_ctor_set(x_161, 3, x_153);
  lean_ctor_set(x_161, 4, x_160);
  lean_ctor_set(x_161, 5, x_159);
  lean_ctor_set_uint8(x_161, sizeof(void*)*6, x_14);
  x_162 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_162, 0, x_161);
  return x_162;
  }
  }
  else
  {
  uint8_t x_163; 
  x_163 = !lean_is_exclusive(x_13);
  if (x_163 == 0)
  {
  lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; 
  x_164 = lean_ctor_get(x_13, 0);
  x_165 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_165, 0, x_164);
  x_166 = lean_box(0);
  x_167 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_167, 0, x_92);
  lean_ctor_set(x_167, 1, x_94);
  lean_ctor_set(x_167, 2, x_133);
  lean_ctor_set(x_167, 3, x_153);
  lean_ctor_set(x_167, 4, x_166);
  lean_ctor_set(x_167, 5, x_165);
  lean_ctor_set_uint8(x_167, sizeof(void*)*6, x_14);
  lean_ctor_set(x_13, 0, x_167);
  return x_13;
  }
  else
  {
  lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; 
  x_168 = lean_ctor_get(x_13, 0);
  lean_inc(x_168);
  lean_dec(x_13);
  x_169 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_169, 0, x_168);
  x_170 = lean_box(0);
  x_171 = lean_alloc_ctor(0, 6, 1);
  lean_ctor_set(x_171, 0, x_92);
  lean_ctor_set(x_171, 1, x_94);
  lean_ctor_set(x_171, 2, x_133);
  lean_ctor_set(x_171, 3, x_153);
  lean_ctor_set(x_171, 4, x_170);
  lean_ctor_set(x_171, 5, x_169);
  lean_ctor_set_uint8(x_171, sizeof(void*)*6, x_14);
  x_172 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_172, 0, x_171);
  return x_172;
  }
  }
  }
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__1(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__2(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__3(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instFromJsonInitializeParams___spec__7___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_Lsp_instFromJsonInitializeParams___spec__7(x_4, x_5, x_3);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonInitializeParams___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Lsp_instFromJsonInitializeParams(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializedParams_toCtorIdx(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_unsigned_to_nat(0u);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializedParams_toCtorIdx___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Lsp_InitializedParams_toCtorIdx(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializedParams_noConfusion___rarg(lean_object* x_1) {
  _start:
  {
  lean_inc(x_1);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializedParams_noConfusion(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_Lsp_InitializedParams_noConfusion___rarg___boxed), 1, 0);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializedParams_noConfusion___rarg___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Lsp_InitializedParams_noConfusion___rarg(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_InitializedParams_noConfusion___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_Lean_Lsp_InitializedParams_noConfusion(x_1, x_2, x_3, x_4);
  lean_dec(x_3);
  lean_dec(x_2);
  return x_5;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonInitializedParams___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_Lsp_instFromJsonInitializedParams(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Lsp_instFromJsonInitializedParams___closed__1;
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonInitializedParams___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Lsp_instFromJsonInitializedParams(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonInitializedParams(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_box(0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonInitializedParams___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Lsp_instToJsonInitializedParams(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_ServerInfo_version_x3f___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_510_(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; 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; 
  x_2 = lean_ctor_get(x_1, 0);
  x_3 = lean_ctor_get(x_1, 1);
  lean_inc(x_2);
  x_4 = lean_alloc_ctor(3, 1, 0);
  lean_ctor_set(x_4, 0, x_2);
  x_5 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__1;
  x_6 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_6, 0, x_5);
  lean_ctor_set(x_6, 1, x_4);
  x_7 = lean_box(0);
  x_8 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_8, 0, x_6);
  lean_ctor_set(x_8, 1, x_7);
  x_9 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__2;
  x_10 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1817____spec__1(x_9, x_3);
  x_11 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_11, 0, x_10);
  lean_ctor_set(x_11, 1, x_7);
  x_12 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_12, 0, x_8);
  lean_ctor_set(x_12, 1, x_11);
  x_13 = l_List_join___rarg(x_12);
  x_14 = l_Lean_Json_mkObj(x_13);
  return x_14;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_510____boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_510_(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonServerInfo___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_510____boxed), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonServerInfo() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instToJsonServerInfo___closed__1;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_543_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__1;
  x_3 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(x_1, x_2);
  if (lean_obj_tag(x_3) == 0)
  {
  uint8_t x_4; 
  x_4 = !lean_is_exclusive(x_3);
  if (x_4 == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_5; lean_object* x_6; 
  x_5 = lean_ctor_get(x_3, 0);
  lean_inc(x_5);
  lean_dec(x_3);
  x_6 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_6, 0, x_5);
  return x_6;
  }
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_3, 0);
  lean_inc(x_7);
  lean_dec(x_3);
  x_8 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__2;
  x_9 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonDocumentFilter____x40_Lean_Data_Lsp_Basic___hyg_1847____spec__1(x_1, x_8);
  if (lean_obj_tag(x_9) == 0)
  {
  uint8_t x_10; 
  lean_dec(x_7);
  x_10 = !lean_is_exclusive(x_9);
  if (x_10 == 0)
  {
  return x_9;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; 
  x_11 = lean_ctor_get(x_9, 0);
  lean_inc(x_11);
  lean_dec(x_9);
  x_12 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_12, 0, x_11);
  return x_12;
  }
  }
  else
  {
  uint8_t x_13; 
  x_13 = !lean_is_exclusive(x_9);
  if (x_13 == 0)
  {
  lean_object* x_14; lean_object* x_15; 
  x_14 = lean_ctor_get(x_9, 0);
  x_15 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_15, 0, x_7);
  lean_ctor_set(x_15, 1, x_14);
  lean_ctor_set(x_9, 0, x_15);
  return x_9;
  }
  else
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  x_16 = lean_ctor_get(x_9, 0);
  lean_inc(x_16);
  lean_dec(x_9);
  x_17 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_17, 0, x_7);
  lean_ctor_set(x_17, 1, x_16);
  x_18 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_18, 0, x_17);
  return x_18;
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_543____boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_543_(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonServerInfo___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_543____boxed), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonServerInfo() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instFromJsonServerInfo___closed__1;
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_InitializeResult_serverInfo_x3f___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____spec__1(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  if (lean_obj_tag(x_2) == 0)
  {
  lean_object* x_3; 
  lean_dec(x_1);
  x_3 = lean_box(0);
  return x_3;
  }
  else
  {
  lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  x_4 = lean_ctor_get(x_2, 0);
  x_5 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_510_(x_4);
  x_6 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_6, 0, x_1);
  lean_ctor_set(x_6, 1, x_5);
  x_7 = lean_box(0);
  x_8 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_8, 0, x_6);
  lean_ctor_set(x_8, 1, x_7);
  return x_8;
  }
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("serverInfo");
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616_(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; 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; 
  x_2 = lean_ctor_get(x_1, 0);
  lean_inc(x_2);
  x_3 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_toJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_120_(x_2);
  x_4 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__6;
  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_ctor_get(x_1, 1);
  lean_inc(x_8);
  lean_dec(x_1);
  x_9 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____closed__1;
  x_10 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____spec__1(x_9, x_8);
  lean_dec(x_8);
  x_11 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_11, 0, x_10);
  lean_ctor_set(x_11, 1, x_6);
  x_12 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_12, 0, x_7);
  lean_ctor_set(x_12, 1, x_11);
  x_13 = l_List_join___rarg(x_12);
  x_14 = l_Lean_Json_mkObj(x_13);
  return x_14;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____spec__1___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_opt___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____spec__1(x_1, x_2);
  lean_dec(x_2);
  return x_3;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonInitializeResult___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616_), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonInitializeResult() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instToJsonInitializeResult___closed__1;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__1(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; 
  x_3 = l_Lean_Json_getObjValD(x_1, x_2);
  x_4 = l___private_Lean_Data_Lsp_Capabilities_0__Lean_Lsp_fromJsonServerCapabilities____x40_Lean_Data_Lsp_Capabilities___hyg_216_(x_3);
  lean_dec(x_3);
  return x_4;
  }
  }
  static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__2___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_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__2(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValD(x_1, x_2);
  if (lean_obj_tag(x_3) == 0)
  {
  lean_object* x_4; 
  x_4 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__2___closed__1;
  return x_4;
  }
  else
  {
  lean_object* x_5; 
  x_5 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonServerInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_543_(x_3);
  lean_dec(x_3);
  if (lean_obj_tag(x_5) == 0)
  {
  uint8_t x_6; 
  x_6 = !lean_is_exclusive(x_5);
  if (x_6 == 0)
  {
  return x_5;
  }
  else
  {
  lean_object* x_7; lean_object* x_8; 
  x_7 = lean_ctor_get(x_5, 0);
  lean_inc(x_7);
  lean_dec(x_5);
  x_8 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_8, 0, x_7);
  return x_8;
  }
  }
  else
  {
  uint8_t x_9; 
  x_9 = !lean_is_exclusive(x_5);
  if (x_9 == 0)
  {
  lean_object* x_10; lean_object* x_11; 
  x_10 = lean_ctor_get(x_5, 0);
  x_11 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_11, 0, x_10);
  lean_ctor_set(x_5, 0, x_11);
  return x_5;
  }
  else
  {
  lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  x_12 = lean_ctor_get(x_5, 0);
  lean_inc(x_12);
  lean_dec(x_5);
  x_13 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_13, 0, x_12);
  x_14 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_14, 0, x_13);
  return x_14;
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__6;
  x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__1(x_1, x_2);
  if (lean_obj_tag(x_3) == 0)
  {
  uint8_t x_4; 
  x_4 = !lean_is_exclusive(x_3);
  if (x_4 == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_5; lean_object* x_6; 
  x_5 = lean_ctor_get(x_3, 0);
  lean_inc(x_5);
  lean_dec(x_3);
  x_6 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_6, 0, x_5);
  return x_6;
  }
  }
  else
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_7 = lean_ctor_get(x_3, 0);
  lean_inc(x_7);
  lean_dec(x_3);
  x_8 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____closed__1;
  x_9 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__2(x_1, x_8);
  if (lean_obj_tag(x_9) == 0)
  {
  uint8_t x_10; 
  lean_dec(x_7);
  x_10 = !lean_is_exclusive(x_9);
  if (x_10 == 0)
  {
  return x_9;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; 
  x_11 = lean_ctor_get(x_9, 0);
  lean_inc(x_11);
  lean_dec(x_9);
  x_12 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_12, 0, x_11);
  return x_12;
  }
  }
  else
  {
  uint8_t x_13; 
  x_13 = !lean_is_exclusive(x_9);
  if (x_13 == 0)
  {
  lean_object* x_14; lean_object* x_15; 
  x_14 = lean_ctor_get(x_9, 0);
  x_15 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_15, 0, x_7);
  lean_ctor_set(x_15, 1, x_14);
  lean_ctor_set(x_9, 0, x_15);
  return x_9;
  }
  else
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; 
  x_16 = lean_ctor_get(x_9, 0);
  lean_inc(x_16);
  lean_dec(x_9);
  x_17 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_17, 0, x_7);
  lean_ctor_set(x_17, 1, x_16);
  x_18 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_18, 0, x_17);
  return x_18;
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__1___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__1(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__2___boxed(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__2(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649_(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeResult___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____boxed), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonInitializeResult() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instFromJsonInitializeResult___closed__1;
  return x_1;
  }
  }
  lean_object* initialize_Init(lean_object*);
  lean_object* initialize_Lean_Data_Lsp_Capabilities(lean_object*);
  lean_object* initialize_Lean_Data_Lsp_Workspace(lean_object*);
  lean_object* initialize_Lean_Data_Json(lean_object*);
  static bool _G_initialized = false;
  LEAN_EXPORT lean_object* initialize_Lean_Data_Lsp_InitShutdown(lean_object* w) {
  lean_object * res;
  if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
  _G_initialized = true;
  res = initialize_Init(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Data_Lsp_Capabilities(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Data_Lsp_Workspace(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Data_Json(lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l_Lean_Lsp_ClientInfo_version_x3f___default = _init_l_Lean_Lsp_ClientInfo_version_x3f___default();
  lean_mark_persistent(l_Lean_Lsp_ClientInfo_version_x3f___default);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__1 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__1();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__1);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__2 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__2();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonClientInfo____x40_Lean_Data_Lsp_InitShutdown___hyg_27____closed__2);
  l_Lean_Lsp_instToJsonClientInfo___closed__1 = _init_l_Lean_Lsp_instToJsonClientInfo___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instToJsonClientInfo___closed__1);
  l_Lean_Lsp_instToJsonClientInfo = _init_l_Lean_Lsp_instToJsonClientInfo();
  lean_mark_persistent(l_Lean_Lsp_instToJsonClientInfo);
  l_Lean_Lsp_instFromJsonClientInfo___closed__1 = _init_l_Lean_Lsp_instFromJsonClientInfo___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonClientInfo___closed__1);
  l_Lean_Lsp_instFromJsonClientInfo = _init_l_Lean_Lsp_instFromJsonClientInfo();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonClientInfo);
  l_Lean_Lsp_Trace_noConfusion___rarg___closed__1 = _init_l_Lean_Lsp_Trace_noConfusion___rarg___closed__1();
  lean_mark_persistent(l_Lean_Lsp_Trace_noConfusion___rarg___closed__1);
  l_Lean_Lsp_instFromJsonTrace___closed__1 = _init_l_Lean_Lsp_instFromJsonTrace___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonTrace___closed__1);
  l_Lean_Lsp_instFromJsonTrace___closed__2 = _init_l_Lean_Lsp_instFromJsonTrace___closed__2();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonTrace___closed__2);
  l_Lean_Lsp_instFromJsonTrace___closed__3 = _init_l_Lean_Lsp_instFromJsonTrace___closed__3();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonTrace___closed__3);
  l_Lean_Lsp_instFromJsonTrace___closed__4 = _init_l_Lean_Lsp_instFromJsonTrace___closed__4();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonTrace___closed__4);
  l_Lean_Lsp_instFromJsonTrace___closed__5 = _init_l_Lean_Lsp_instFromJsonTrace___closed__5();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonTrace___closed__5);
  l_Lean_Lsp_instFromJsonTrace___closed__6 = _init_l_Lean_Lsp_instFromJsonTrace___closed__6();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonTrace___closed__6);
  l_Lean_Lsp_instFromJsonTrace___closed__7 = _init_l_Lean_Lsp_instFromJsonTrace___closed__7();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonTrace___closed__7);
  l_Lean_Lsp_instFromJsonTrace___closed__8 = _init_l_Lean_Lsp_instFromJsonTrace___closed__8();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonTrace___closed__8);
  l_Lean_Lsp_Trace_hasToJson___closed__1 = _init_l_Lean_Lsp_Trace_hasToJson___closed__1();
  lean_mark_persistent(l_Lean_Lsp_Trace_hasToJson___closed__1);
  l_Lean_Lsp_Trace_hasToJson___closed__2 = _init_l_Lean_Lsp_Trace_hasToJson___closed__2();
  lean_mark_persistent(l_Lean_Lsp_Trace_hasToJson___closed__2);
  l_Lean_Lsp_Trace_hasToJson___closed__3 = _init_l_Lean_Lsp_Trace_hasToJson___closed__3();
  lean_mark_persistent(l_Lean_Lsp_Trace_hasToJson___closed__3);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_196____closed__1 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_196____closed__1();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializationOptions____x40_Lean_Data_Lsp_InitShutdown___hyg_196____closed__1);
  l_Lean_Lsp_instToJsonInitializationOptions___closed__1 = _init_l_Lean_Lsp_instToJsonInitializationOptions___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instToJsonInitializationOptions___closed__1);
  l_Lean_Lsp_instToJsonInitializationOptions = _init_l_Lean_Lsp_instToJsonInitializationOptions();
  lean_mark_persistent(l_Lean_Lsp_instToJsonInitializationOptions);
  l_Lean_Lsp_instFromJsonInitializationOptions___closed__1 = _init_l_Lean_Lsp_instFromJsonInitializationOptions___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializationOptions___closed__1);
  l_Lean_Lsp_instFromJsonInitializationOptions = _init_l_Lean_Lsp_instFromJsonInitializationOptions();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializationOptions);
  l_Lean_Lsp_InitializeParams_processId_x3f___default = _init_l_Lean_Lsp_InitializeParams_processId_x3f___default();
  lean_mark_persistent(l_Lean_Lsp_InitializeParams_processId_x3f___default);
  l_Lean_Lsp_InitializeParams_clientInfo_x3f___default = _init_l_Lean_Lsp_InitializeParams_clientInfo_x3f___default();
  lean_mark_persistent(l_Lean_Lsp_InitializeParams_clientInfo_x3f___default);
  l_Lean_Lsp_InitializeParams_rootUri_x3f___default = _init_l_Lean_Lsp_InitializeParams_rootUri_x3f___default();
  lean_mark_persistent(l_Lean_Lsp_InitializeParams_rootUri_x3f___default);
  l_Lean_Lsp_InitializeParams_initializationOptions_x3f___default = _init_l_Lean_Lsp_InitializeParams_initializationOptions_x3f___default();
  lean_mark_persistent(l_Lean_Lsp_InitializeParams_initializationOptions_x3f___default);
  l_Lean_Lsp_InitializeParams_trace___default = _init_l_Lean_Lsp_InitializeParams_trace___default();
  l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default = _init_l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default();
  lean_mark_persistent(l_Lean_Lsp_InitializeParams_workspaceFolders_x3f___default);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__1 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__1();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__1);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__2 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__2();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__2);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__3 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__3();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__3);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__4 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__4();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__4);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__5 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__5();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__5);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__6 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__6();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__6);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__7 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__7();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__7);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__8 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__8();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__8);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__9 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__9();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__9);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__10 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__10();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__10);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__11 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__11();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__11);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__12 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__12();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__12);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__13 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__13();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__13);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__14 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__14();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__14);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__15 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__15();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__15);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__16 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__16();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_326____closed__16);
  l_Lean_Lsp_instToJsonInitializeParams___closed__1 = _init_l_Lean_Lsp_instToJsonInitializeParams___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instToJsonInitializeParams___closed__1);
  l_Lean_Lsp_instToJsonInitializeParams = _init_l_Lean_Lsp_instToJsonInitializeParams();
  lean_mark_persistent(l_Lean_Lsp_instToJsonInitializeParams);
  l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4___closed__1();
  lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__4___closed__1);
  l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___closed__1();
  lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___closed__1);
  l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___closed__2 = _init_l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___closed__2();
  lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__6___closed__2);
  l_Lean_Lsp_instFromJsonInitializedParams___closed__1 = _init_l_Lean_Lsp_instFromJsonInitializedParams___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializedParams___closed__1);
  l_Lean_Lsp_ServerInfo_version_x3f___default = _init_l_Lean_Lsp_ServerInfo_version_x3f___default();
  lean_mark_persistent(l_Lean_Lsp_ServerInfo_version_x3f___default);
  l_Lean_Lsp_instToJsonServerInfo___closed__1 = _init_l_Lean_Lsp_instToJsonServerInfo___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instToJsonServerInfo___closed__1);
  l_Lean_Lsp_instToJsonServerInfo = _init_l_Lean_Lsp_instToJsonServerInfo();
  lean_mark_persistent(l_Lean_Lsp_instToJsonServerInfo);
  l_Lean_Lsp_instFromJsonServerInfo___closed__1 = _init_l_Lean_Lsp_instFromJsonServerInfo___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonServerInfo___closed__1);
  l_Lean_Lsp_instFromJsonServerInfo = _init_l_Lean_Lsp_instFromJsonServerInfo();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonServerInfo);
  l_Lean_Lsp_InitializeResult_serverInfo_x3f___default = _init_l_Lean_Lsp_InitializeResult_serverInfo_x3f___default();
  lean_mark_persistent(l_Lean_Lsp_InitializeResult_serverInfo_x3f___default);
  l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____closed__1 = _init_l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____closed__1();
  lean_mark_persistent(l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_616____closed__1);
  l_Lean_Lsp_instToJsonInitializeResult___closed__1 = _init_l_Lean_Lsp_instToJsonInitializeResult___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instToJsonInitializeResult___closed__1);
  l_Lean_Lsp_instToJsonInitializeResult = _init_l_Lean_Lsp_instToJsonInitializeResult();
  lean_mark_persistent(l_Lean_Lsp_instToJsonInitializeResult);
  l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__2___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__2___closed__1();
  lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_fromJsonInitializeResult____x40_Lean_Data_Lsp_InitShutdown___hyg_649____spec__2___closed__1);
  l_Lean_Lsp_instFromJsonInitializeResult___closed__1 = _init_l_Lean_Lsp_instFromJsonInitializeResult___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializeResult___closed__1);
  l_Lean_Lsp_instFromJsonInitializeResult = _init_l_Lean_Lsp_instFromJsonInitializeResult();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonInitializeResult);
  return lean_io_result_mk_ok(lean_box(0));
  }
  #ifdef __cplusplus
  }
  #endif
  