text: // Lean compiler output
  // Module: Lean.Data.Lsp.Workspace
  // Imports: Init Lean.Data.Lsp.Basic 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
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonFileChangeType(uint8_t);
  size_t lean_usize_add(size_t, size_t);
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____closed__1;
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_noConfusion(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_noConfusion___rarg(uint8_t, uint8_t, lean_object*);
  lean_object* lean_array_uget(lean_object*, size_t);
  static lean_object* l_Lean_Lsp_instFromJsonFileChangeType___closed__3;
  static lean_object* l_Lean_Lsp_instFromJsonFileChangeType___closed__5;
  lean_object* l_Lean_Json_getNat_x3f(lean_object*);
  lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonFileChangeType___closed__2;
  static lean_object* l_Lean_Lsp_instFromJsonFileEvent___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonWorkspaceFolder;
  static lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___closed__2;
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__2;
  static lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___closed__1;
  static lean_object* l_Lean_Lsp_instToJsonFileChangeType___closed__1;
  lean_object* lean_array_get_size(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDidChangeWatchedFilesRegistrationOptions;
  lean_object* lean_string_append(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____spec__1(lean_object*, lean_object*);
  static lean_object* l_Lean_Lsp_instToJsonDidChangeWatchedFilesRegistrationOptions___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_toCtorIdx___boxed(lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonFileChangeType___closed__1;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_287_(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonFileChangeType___boxed(lean_object*);
  static lean_object* l_Lean_Lsp_instToJsonFileChangeType___closed__2;
  lean_object* l_List_join___rarg(lean_object*);
  uint8_t lean_usize_dec_lt(size_t, size_t);
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_573____spec__1___boxed(lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__1;
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__4;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_64____boxed(lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonFileChangeType___closed__4;
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__9;
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_573____spec__1(size_t, size_t, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____boxed(lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__2;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24_(lean_object*);
  uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileSystemWatcher_change;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____spec__1___boxed(lean_object*, lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1;
  static lean_object* l_Lean_Lsp_instToJsonFileChangeType___closed__6;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonFileSystemWatcher;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonFileEvent;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonFileSystemWatcher;
  lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_841____spec__1(lean_object*, lean_object*);
  static lean_object* l_Lean_Lsp_instToJsonFileSystemWatcher___closed__1;
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____spec__2(size_t, size_t, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDidChangeWatchedFilesRegistrationOptions;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonDidChangeWatchedFilesParams;
  lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_toCtorIdx(uint8_t);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538_(lean_object*);
  size_t lean_usize_of_nat(lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____boxed(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_noConfusion___rarg___lambda__1(lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____closed__1;
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileSystemWatcher_create;
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__6;
  static lean_object* l_Lean_Lsp_instToJsonFileChangeType___closed__5;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434_(lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__1;
  static lean_object* l_Lean_Lsp_FileChangeType_noConfusion___rarg___closed__1;
  lean_object* l_Lean_JsonNumber_fromNat(lean_object*);
  lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*);
  static lean_object* l_Lean_Lsp_instToJsonWorkspaceFolder___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonFileChangeType(lean_object*);
  static lean_object* l_Lean_Lsp_instToJsonFileChangeType___closed__3;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____spec__1(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____boxed(lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__3;
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__1;
  lean_object* l_Lean_Json_mkObj(lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__5;
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileSystemWatcher_delete;
  lean_object* l_Lean_Json_pretty(lean_object*, lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__3;
  static lean_object* l_Lean_Lsp_instToJsonFileChangeType___closed__4;
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__7;
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____spec__2___boxed(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137_(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonDidChangeWatchedFilesParams;
  lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_1479____spec__1(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__2___boxed(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____boxed(lean_object*);
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__2(size_t, size_t, lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonDidChangeWatchedFilesRegistrationOptions___closed__1;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189_(lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__1;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486_(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_noConfusion___rarg___lambda__1___boxed(lean_object*);
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_573_(lean_object*);
  LEAN_EXPORT 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_FileSystemWatcher_kind___default;
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_287____spec__1(size_t, size_t, lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__2;
  static lean_object* l_Lean_Lsp_instToJsonFileEvent___closed__1;
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252_(lean_object*);
  static lean_object* l_Lean_Lsp_instFromJsonFileSystemWatcher___closed__1;
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____closed__1;
  static lean_object* l_Lean_Lsp_instToJsonDidChangeWatchedFilesParams___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Lsp_instFromJsonFileEvent;
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__8;
  static lean_object* l_Lean_Lsp_instFromJsonDidChangeWatchedFilesParams___closed__1;
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1(lean_object*, lean_object*);
  static lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__2;
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_287____spec__1___boxed(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonWorkspaceFolder;
  static lean_object* _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("uri");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("name");
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24_(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; lean_object* x_15; lean_object* x_16; 
  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_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____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);
  lean_inc(x_3);
  x_9 = lean_alloc_ctor(3, 1, 0);
  lean_ctor_set(x_9, 0, x_3);
  x_10 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__2;
  x_11 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_11, 0, x_10);
  lean_ctor_set(x_11, 1, x_9);
  x_12 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_12, 0, x_11);
  lean_ctor_set(x_12, 1, x_7);
  x_13 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_13, 0, x_12);
  lean_ctor_set(x_13, 1, x_7);
  x_14 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_14, 0, x_8);
  lean_ctor_set(x_14, 1, x_13);
  x_15 = l_List_join___rarg(x_14);
  x_16 = l_Lean_Json_mkObj(x_15);
  return x_16;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24_(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonWorkspaceFolder___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____boxed), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonWorkspaceFolder() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instToJsonWorkspaceFolder___closed__1;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_64_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__1;
  x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_841____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_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__2;
  x_9 = l_Lean_Json_getObjValAs_x3f___at_Lean_JsonRpc_instFromJsonMessage___spec__3(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_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_64____boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_64_(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_64____boxed), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonWorkspaceFolder() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1;
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_FileSystemWatcher_kind___default() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_box(0);
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("globPattern");
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("kind");
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____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_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__2;
  x_9 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonVersionedTextDocumentIdentifier____x40_Lean_Data_Lsp_Basic___hyg_1479____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_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137_(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonFileSystemWatcher___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____boxed), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonFileSystemWatcher() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instFromJsonFileSystemWatcher___closed__1;
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__2;
  x_2 = lean_box(0);
  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_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__1;
  x_3 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_3, 0, x_2);
  lean_ctor_set(x_3, 1, x_1);
  return x_3;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__3() {
  _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_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__2;
  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_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189_(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; 
  x_2 = lean_ctor_get(x_1, 0);
  lean_inc(x_2);
  x_3 = lean_ctor_get(x_1, 1);
  lean_inc(x_3);
  lean_dec(x_1);
  x_4 = lean_alloc_ctor(3, 1, 0);
  lean_ctor_set(x_4, 0, x_2);
  x_5 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____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);
  if (lean_obj_tag(x_3) == 0)
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_9 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__3;
  x_10 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_10, 0, x_8);
  lean_ctor_set(x_10, 1, x_9);
  x_11 = l_List_join___rarg(x_10);
  x_12 = l_Lean_Json_mkObj(x_11);
  return x_12;
  }
  else
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
  x_13 = lean_ctor_get(x_3, 0);
  lean_inc(x_13);
  lean_dec(x_3);
  x_14 = l_Lean_JsonNumber_fromNat(x_13);
  x_15 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_15, 0, x_14);
  x_16 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__2;
  x_17 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_17, 0, x_16);
  lean_ctor_set(x_17, 1, x_15);
  x_18 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_18, 0, x_17);
  lean_ctor_set(x_18, 1, x_7);
  x_19 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_19, 0, x_18);
  lean_ctor_set(x_19, 1, x_7);
  x_20 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_20, 0, x_8);
  lean_ctor_set(x_20, 1, x_19);
  x_21 = l_List_join___rarg(x_20);
  x_22 = l_Lean_Json_mkObj(x_21);
  return x_22;
  }
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonFileSystemWatcher___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189_), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonFileSystemWatcher() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instToJsonFileSystemWatcher___closed__1;
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_FileSystemWatcher_create() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_unsigned_to_nat(1u);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_FileSystemWatcher_change() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_unsigned_to_nat(2u);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_FileSystemWatcher_delete() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_unsigned_to_nat(4u);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__2(size_t x_1, size_t x_2, lean_object* x_3) {
  _start:
  {
  uint8_t x_4; 
  x_4 = lean_usize_dec_lt(x_2, x_1);
  if (x_4 == 0)
  {
  lean_object* x_5; 
  x_5 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_5, 0, x_3);
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  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 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137_(x_6);
  lean_dec(x_6);
  if (lean_obj_tag(x_9) == 0)
  {
  uint8_t x_10; 
  lean_dec(x_8);
  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
  {
  lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; 
  x_13 = lean_ctor_get(x_9, 0);
  lean_inc(x_13);
  lean_dec(x_9);
  x_14 = 1;
  x_15 = lean_usize_add(x_2, x_14);
  x_16 = lean_array_uset(x_8, x_2, x_13);
  x_2 = x_15;
  x_3 = x_16;
  goto _start;
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___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___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___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___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValD(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  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; 
  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 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__2(x_6, x_7, x_4);
  return x_8;
  }
  else
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_9 = lean_unsigned_to_nat(80u);
  x_10 = l_Lean_Json_pretty(x_3, x_9);
  x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___closed__1;
  x_12 = lean_string_append(x_11, x_10);
  lean_dec(x_10);
  x_13 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___closed__2;
  x_14 = lean_string_append(x_12, x_13);
  x_15 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_15, 0, x_14);
  return x_15;
  }
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("watchers");
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____closed__1;
  x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____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_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  size_t x_4; size_t x_5; lean_object* x_6; 
  x_4 = lean_unbox_usize(x_1);
  lean_dec(x_1);
  x_5 = lean_unbox_usize(x_2);
  lean_dec(x_2);
  x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__2(x_4, x_5, x_3);
  return x_6;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonDidChangeWatchedFilesRegistrationOptions___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252_), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonDidChangeWatchedFilesRegistrationOptions() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instFromJsonDidChangeWatchedFilesRegistrationOptions___closed__1;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_287____spec__1(size_t x_1, size_t x_2, lean_object* x_3) {
  _start:
  {
  uint8_t x_4; 
  x_4 = lean_usize_dec_lt(x_2, x_1);
  if (x_4 == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
  x_5 = lean_array_uget(x_3, x_2);
  x_6 = lean_unsigned_to_nat(0u);
  x_7 = lean_array_uset(x_3, x_2, x_6);
  x_8 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189_(x_5);
  x_9 = 1;
  x_10 = lean_usize_add(x_2, x_9);
  x_11 = lean_array_uset(x_7, x_2, x_8);
  x_2 = x_10;
  x_3 = x_11;
  goto _start;
  }
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_287_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_2 = lean_array_get_size(x_1);
  x_3 = lean_usize_of_nat(x_2);
  lean_dec(x_2);
  x_4 = 0;
  x_5 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_287____spec__1(x_3, x_4, x_1);
  x_6 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_6, 0, x_5);
  x_7 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____closed__1;
  x_8 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_8, 0, x_7);
  lean_ctor_set(x_8, 1, x_6);
  x_9 = lean_box(0);
  x_10 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_10, 0, x_8);
  lean_ctor_set(x_10, 1, x_9);
  x_11 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_11, 0, x_10);
  lean_ctor_set(x_11, 1, x_9);
  x_12 = l_List_join___rarg(x_11);
  x_13 = l_Lean_Json_mkObj(x_12);
  return x_13;
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_287____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  size_t x_4; size_t x_5; lean_object* x_6; 
  x_4 = lean_unbox_usize(x_1);
  lean_dec(x_1);
  x_5 = lean_unbox_usize(x_2);
  lean_dec(x_2);
  x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_287____spec__1(x_4, x_5, x_3);
  return x_6;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonDidChangeWatchedFilesRegistrationOptions___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_287_), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonDidChangeWatchedFilesRegistrationOptions() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instToJsonDidChangeWatchedFilesRegistrationOptions___closed__1;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_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_FileChangeType_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_FileChangeType_toCtorIdx(x_2);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_noConfusion___rarg___lambda__1(lean_object* x_1) {
  _start:
  {
  lean_inc(x_1);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_FileChangeType_noConfusion___rarg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_Lsp_FileChangeType_noConfusion___rarg___lambda__1___boxed), 1, 0);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_noConfusion___rarg(uint8_t x_1, uint8_t x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_Lsp_FileChangeType_noConfusion___rarg___closed__1;
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_noConfusion(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_Lean_Lsp_FileChangeType_noConfusion___rarg___boxed), 3, 0);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_noConfusion___rarg___lambda__1___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Lsp_FileChangeType_noConfusion___rarg___lambda__1(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_FileChangeType_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_FileChangeType_noConfusion___rarg(x_4, x_5, x_3);
  return x_6;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonFileChangeType___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("expected 1, 2, or 3, got ");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonFileChangeType___closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("");
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonFileChangeType___closed__3() {
  _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_instFromJsonFileChangeType___closed__4() {
  _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_instFromJsonFileChangeType___closed__5() {
  _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_instFromJsonFileChangeType(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Json_getNat_x3f(x_1);
  if (lean_obj_tag(x_2) == 0)
  {
  uint8_t x_3; 
  lean_dec(x_1);
  x_3 = !lean_is_exclusive(x_2);
  if (x_3 == 0)
  {
  return x_2;
  }
  else
  {
  lean_object* x_4; lean_object* x_5; 
  x_4 = lean_ctor_get(x_2, 0);
  lean_inc(x_4);
  lean_dec(x_2);
  x_5 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_5, 0, x_4);
  return x_5;
  }
  }
  else
  {
  uint8_t x_6; 
  x_6 = !lean_is_exclusive(x_2);
  if (x_6 == 0)
  {
  lean_object* x_7; lean_object* x_8; uint8_t x_9; 
  x_7 = lean_ctor_get(x_2, 0);
  x_8 = lean_unsigned_to_nat(1u);
  x_9 = lean_nat_dec_eq(x_7, x_8);
  if (x_9 == 0)
  {
  lean_object* x_10; uint8_t x_11; 
  x_10 = lean_unsigned_to_nat(2u);
  x_11 = lean_nat_dec_eq(x_7, x_10);
  if (x_11 == 0)
  {
  lean_object* x_12; uint8_t x_13; 
  x_12 = lean_unsigned_to_nat(3u);
  x_13 = lean_nat_dec_eq(x_7, x_12);
  lean_dec(x_7);
  if (x_13 == 0)
  {
  lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
  x_14 = lean_unsigned_to_nat(80u);
  x_15 = l_Lean_Json_pretty(x_1, x_14);
  x_16 = l_Lean_Lsp_instFromJsonFileChangeType___closed__1;
  x_17 = lean_string_append(x_16, x_15);
  lean_dec(x_15);
  x_18 = l_Lean_Lsp_instFromJsonFileChangeType___closed__2;
  x_19 = lean_string_append(x_17, x_18);
  lean_ctor_set_tag(x_2, 0);
  lean_ctor_set(x_2, 0, x_19);
  return x_2;
  }
  else
  {
  lean_object* x_20; 
  lean_free_object(x_2);
  lean_dec(x_1);
  x_20 = l_Lean_Lsp_instFromJsonFileChangeType___closed__3;
  return x_20;
  }
  }
  else
  {
  lean_object* x_21; 
  lean_free_object(x_2);
  lean_dec(x_7);
  lean_dec(x_1);
  x_21 = l_Lean_Lsp_instFromJsonFileChangeType___closed__4;
  return x_21;
  }
  }
  else
  {
  lean_object* x_22; 
  lean_free_object(x_2);
  lean_dec(x_7);
  lean_dec(x_1);
  x_22 = l_Lean_Lsp_instFromJsonFileChangeType___closed__5;
  return x_22;
  }
  }
  else
  {
  lean_object* x_23; lean_object* x_24; uint8_t x_25; 
  x_23 = lean_ctor_get(x_2, 0);
  lean_inc(x_23);
  lean_dec(x_2);
  x_24 = lean_unsigned_to_nat(1u);
  x_25 = lean_nat_dec_eq(x_23, x_24);
  if (x_25 == 0)
  {
  lean_object* x_26; uint8_t x_27; 
  x_26 = lean_unsigned_to_nat(2u);
  x_27 = lean_nat_dec_eq(x_23, x_26);
  if (x_27 == 0)
  {
  lean_object* x_28; uint8_t x_29; 
  x_28 = lean_unsigned_to_nat(3u);
  x_29 = lean_nat_dec_eq(x_23, x_28);
  lean_dec(x_23);
  if (x_29 == 0)
  {
  lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
  x_30 = lean_unsigned_to_nat(80u);
  x_31 = l_Lean_Json_pretty(x_1, x_30);
  x_32 = l_Lean_Lsp_instFromJsonFileChangeType___closed__1;
  x_33 = lean_string_append(x_32, x_31);
  lean_dec(x_31);
  x_34 = l_Lean_Lsp_instFromJsonFileChangeType___closed__2;
  x_35 = lean_string_append(x_33, x_34);
  x_36 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_36, 0, x_35);
  return x_36;
  }
  else
  {
  lean_object* x_37; 
  lean_dec(x_1);
  x_37 = l_Lean_Lsp_instFromJsonFileChangeType___closed__3;
  return x_37;
  }
  }
  else
  {
  lean_object* x_38; 
  lean_dec(x_23);
  lean_dec(x_1);
  x_38 = l_Lean_Lsp_instFromJsonFileChangeType___closed__4;
  return x_38;
  }
  }
  else
  {
  lean_object* x_39; 
  lean_dec(x_23);
  lean_dec(x_1);
  x_39 = l_Lean_Lsp_instFromJsonFileChangeType___closed__5;
  return x_39;
  }
  }
  }
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonFileChangeType___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(1u);
  x_2 = l_Lean_JsonNumber_fromNat(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonFileChangeType___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Lsp_instToJsonFileChangeType___closed__1;
  x_2 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonFileChangeType___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(2u);
  x_2 = l_Lean_JsonNumber_fromNat(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonFileChangeType___closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Lsp_instToJsonFileChangeType___closed__3;
  x_2 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonFileChangeType___closed__5() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(3u);
  x_2 = l_Lean_JsonNumber_fromNat(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonFileChangeType___closed__6() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_Lsp_instToJsonFileChangeType___closed__5;
  x_2 = lean_alloc_ctor(2, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonFileChangeType(uint8_t x_1) {
  _start:
  {
  switch (x_1) {
  case 0:
  {
  lean_object* x_2; 
  x_2 = l_Lean_Lsp_instToJsonFileChangeType___closed__2;
  return x_2;
  }
  case 1:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Lsp_instToJsonFileChangeType___closed__4;
  return x_3;
  }
  default: 
  {
  lean_object* x_4; 
  x_4 = l_Lean_Lsp_instToJsonFileChangeType___closed__6;
  return x_4;
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Lsp_instToJsonFileChangeType___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_instToJsonFileChangeType(x_2);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____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_getNat_x3f(x_3);
  if (lean_obj_tag(x_4) == 0)
  {
  uint8_t x_5; 
  lean_dec(x_3);
  x_5 = !lean_is_exclusive(x_4);
  if (x_5 == 0)
  {
  return x_4;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; 
  x_6 = lean_ctor_get(x_4, 0);
  lean_inc(x_6);
  lean_dec(x_4);
  x_7 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_7, 0, x_6);
  return x_7;
  }
  }
  else
  {
  uint8_t x_8; 
  x_8 = !lean_is_exclusive(x_4);
  if (x_8 == 0)
  {
  lean_object* x_9; lean_object* x_10; uint8_t x_11; 
  x_9 = lean_ctor_get(x_4, 0);
  x_10 = lean_unsigned_to_nat(1u);
  x_11 = lean_nat_dec_eq(x_9, x_10);
  if (x_11 == 0)
  {
  lean_object* x_12; uint8_t x_13; 
  x_12 = lean_unsigned_to_nat(2u);
  x_13 = lean_nat_dec_eq(x_9, x_12);
  if (x_13 == 0)
  {
  lean_object* x_14; uint8_t x_15; 
  x_14 = lean_unsigned_to_nat(3u);
  x_15 = lean_nat_dec_eq(x_9, x_14);
  lean_dec(x_9);
  if (x_15 == 0)
  {
  lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
  x_16 = lean_unsigned_to_nat(80u);
  x_17 = l_Lean_Json_pretty(x_3, x_16);
  x_18 = l_Lean_Lsp_instFromJsonFileChangeType___closed__1;
  x_19 = lean_string_append(x_18, x_17);
  lean_dec(x_17);
  x_20 = l_Lean_Lsp_instFromJsonFileChangeType___closed__2;
  x_21 = lean_string_append(x_19, x_20);
  lean_ctor_set_tag(x_4, 0);
  lean_ctor_set(x_4, 0, x_21);
  return x_4;
  }
  else
  {
  lean_object* x_22; 
  lean_free_object(x_4);
  lean_dec(x_3);
  x_22 = l_Lean_Lsp_instFromJsonFileChangeType___closed__3;
  return x_22;
  }
  }
  else
  {
  lean_object* x_23; 
  lean_free_object(x_4);
  lean_dec(x_9);
  lean_dec(x_3);
  x_23 = l_Lean_Lsp_instFromJsonFileChangeType___closed__4;
  return x_23;
  }
  }
  else
  {
  lean_object* x_24; 
  lean_free_object(x_4);
  lean_dec(x_9);
  lean_dec(x_3);
  x_24 = l_Lean_Lsp_instFromJsonFileChangeType___closed__5;
  return x_24;
  }
  }
  else
  {
  lean_object* x_25; lean_object* x_26; uint8_t x_27; 
  x_25 = lean_ctor_get(x_4, 0);
  lean_inc(x_25);
  lean_dec(x_4);
  x_26 = lean_unsigned_to_nat(1u);
  x_27 = lean_nat_dec_eq(x_25, x_26);
  if (x_27 == 0)
  {
  lean_object* x_28; uint8_t x_29; 
  x_28 = lean_unsigned_to_nat(2u);
  x_29 = lean_nat_dec_eq(x_25, x_28);
  if (x_29 == 0)
  {
  lean_object* x_30; uint8_t x_31; 
  x_30 = lean_unsigned_to_nat(3u);
  x_31 = lean_nat_dec_eq(x_25, x_30);
  lean_dec(x_25);
  if (x_31 == 0)
  {
  lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
  x_32 = lean_unsigned_to_nat(80u);
  x_33 = l_Lean_Json_pretty(x_3, x_32);
  x_34 = l_Lean_Lsp_instFromJsonFileChangeType___closed__1;
  x_35 = lean_string_append(x_34, x_33);
  lean_dec(x_33);
  x_36 = l_Lean_Lsp_instFromJsonFileChangeType___closed__2;
  x_37 = lean_string_append(x_35, x_36);
  x_38 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_38, 0, x_37);
  return x_38;
  }
  else
  {
  lean_object* x_39; 
  lean_dec(x_3);
  x_39 = l_Lean_Lsp_instFromJsonFileChangeType___closed__3;
  return x_39;
  }
  }
  else
  {
  lean_object* x_40; 
  lean_dec(x_25);
  lean_dec(x_3);
  x_40 = l_Lean_Lsp_instFromJsonFileChangeType___closed__4;
  return x_40;
  }
  }
  else
  {
  lean_object* x_41; 
  lean_dec(x_25);
  lean_dec(x_3);
  x_41 = l_Lean_Lsp_instFromJsonFileChangeType___closed__5;
  return x_41;
  }
  }
  }
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("type");
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__1;
  x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonLocation____x40_Lean_Data_Lsp_Basic___hyg_841____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_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____closed__1;
  x_9 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____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; uint8_t x_16; 
  x_14 = lean_ctor_get(x_9, 0);
  x_15 = lean_alloc_ctor(0, 1, 1);
  lean_ctor_set(x_15, 0, x_7);
  x_16 = lean_unbox(x_14);
  lean_dec(x_14);
  lean_ctor_set_uint8(x_15, sizeof(void*)*1, x_16);
  lean_ctor_set(x_9, 0, x_15);
  return x_9;
  }
  else
  {
  lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; 
  x_17 = lean_ctor_get(x_9, 0);
  lean_inc(x_17);
  lean_dec(x_9);
  x_18 = lean_alloc_ctor(0, 1, 1);
  lean_ctor_set(x_18, 0, x_7);
  x_19 = lean_unbox(x_17);
  lean_dec(x_17);
  lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_19);
  x_20 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_20, 0, x_18);
  return x_20;
  }
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____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_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____spec__1(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434_(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonFileEvent___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____boxed), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonFileEvent() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instFromJsonFileEvent___closed__1;
  return x_1;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____closed__1;
  x_2 = l_Lean_Lsp_instToJsonFileChangeType___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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = lean_box(0);
  x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__1;
  x_3 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_3, 0, x_2);
  lean_ctor_set(x_3, 1, x_1);
  return x_3;
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__3() {
  _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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__2;
  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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__4() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____closed__1;
  x_2 = l_Lean_Lsp_instToJsonFileChangeType___closed__4;
  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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__5() {
  _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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__4;
  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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__6() {
  _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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__5;
  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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__7() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____closed__1;
  x_2 = l_Lean_Lsp_instToJsonFileChangeType___closed__6;
  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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__9() {
  _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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__8;
  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_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
  x_2 = lean_ctor_get(x_1, 0);
  x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*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_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____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);
  switch (x_3) {
  case 0:
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
  x_9 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__3;
  x_10 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_10, 0, x_8);
  lean_ctor_set(x_10, 1, x_9);
  x_11 = l_List_join___rarg(x_10);
  x_12 = l_Lean_Json_mkObj(x_11);
  return x_12;
  }
  case 1:
  {
  lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
  x_13 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__6;
  x_14 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_14, 0, x_8);
  lean_ctor_set(x_14, 1, x_13);
  x_15 = l_List_join___rarg(x_14);
  x_16 = l_Lean_Json_mkObj(x_15);
  return x_16;
  }
  default: 
  {
  lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
  x_17 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__9;
  x_18 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_18, 0, x_8);
  lean_ctor_set(x_18, 1, x_17);
  x_19 = l_List_join___rarg(x_18);
  x_20 = l_Lean_Json_mkObj(x_19);
  return x_20;
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486_(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonFileEvent___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____boxed), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonFileEvent() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instToJsonFileEvent___closed__1;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____spec__2(size_t x_1, size_t x_2, lean_object* x_3) {
  _start:
  {
  uint8_t x_4; 
  x_4 = lean_usize_dec_lt(x_2, x_1);
  if (x_4 == 0)
  {
  lean_object* x_5; 
  x_5 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_5, 0, x_3);
  return x_5;
  }
  else
  {
  lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  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 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434_(x_6);
  lean_dec(x_6);
  if (lean_obj_tag(x_9) == 0)
  {
  uint8_t x_10; 
  lean_dec(x_8);
  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
  {
  lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; 
  x_13 = lean_ctor_get(x_9, 0);
  lean_inc(x_13);
  lean_dec(x_9);
  x_14 = 1;
  x_15 = lean_usize_add(x_2, x_14);
  x_16 = lean_array_uset(x_8, x_2, x_13);
  x_2 = x_15;
  x_3 = x_16;
  goto _start;
  }
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____spec__1(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_Lean_Json_getObjValD(x_1, x_2);
  lean_dec(x_2);
  lean_dec(x_1);
  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; 
  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 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____spec__2(x_6, x_7, x_4);
  return x_8;
  }
  else
  {
  lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
  x_9 = lean_unsigned_to_nat(80u);
  x_10 = l_Lean_Json_pretty(x_3, x_9);
  x_11 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___closed__1;
  x_12 = lean_string_append(x_11, x_10);
  lean_dec(x_10);
  x_13 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___closed__2;
  x_14 = lean_string_append(x_12, x_13);
  x_15 = lean_alloc_ctor(0, 1, 0);
  lean_ctor_set(x_15, 0, x_14);
  return x_15;
  }
  }
  }
  static lean_object* _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_mk_string("changes");
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; 
  x_2 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____closed__1;
  x_3 = l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____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_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  size_t x_4; size_t x_5; lean_object* x_6; 
  x_4 = lean_unbox_usize(x_1);
  lean_dec(x_1);
  x_5 = lean_unbox_usize(x_2);
  lean_dec(x_2);
  x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____spec__2(x_4, x_5, x_3);
  return x_6;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonDidChangeWatchedFilesParams___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538_), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instFromJsonDidChangeWatchedFilesParams() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instFromJsonDidChangeWatchedFilesParams___closed__1;
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_573____spec__1(size_t x_1, size_t x_2, lean_object* x_3) {
  _start:
  {
  uint8_t x_4; 
  x_4 = lean_usize_dec_lt(x_2, x_1);
  if (x_4 == 0)
  {
  return x_3;
  }
  else
  {
  lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
  x_5 = lean_array_uget(x_3, x_2);
  x_6 = lean_unsigned_to_nat(0u);
  x_7 = lean_array_uset(x_3, x_2, x_6);
  x_8 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486_(x_5);
  lean_dec(x_5);
  x_9 = 1;
  x_10 = lean_usize_add(x_2, x_9);
  x_11 = lean_array_uset(x_7, x_2, x_8);
  x_2 = x_10;
  x_3 = x_11;
  goto _start;
  }
  }
  }
  LEAN_EXPORT lean_object* l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_573_(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
  x_2 = lean_array_get_size(x_1);
  x_3 = lean_usize_of_nat(x_2);
  lean_dec(x_2);
  x_4 = 0;
  x_5 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_573____spec__1(x_3, x_4, x_1);
  x_6 = lean_alloc_ctor(4, 1, 0);
  lean_ctor_set(x_6, 0, x_5);
  x_7 = l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____closed__1;
  x_8 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_8, 0, x_7);
  lean_ctor_set(x_8, 1, x_6);
  x_9 = lean_box(0);
  x_10 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_10, 0, x_8);
  lean_ctor_set(x_10, 1, x_9);
  x_11 = lean_alloc_ctor(1, 2, 0);
  lean_ctor_set(x_11, 0, x_10);
  lean_ctor_set(x_11, 1, x_9);
  x_12 = l_List_join___rarg(x_11);
  x_13 = l_Lean_Json_mkObj(x_12);
  return x_13;
  }
  }
  LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_573____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  size_t x_4; size_t x_5; lean_object* x_6; 
  x_4 = lean_unbox_usize(x_1);
  lean_dec(x_1);
  x_5 = lean_unbox_usize(x_2);
  lean_dec(x_2);
  x_6 = l_Array_mapMUnsafe_map___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_573____spec__1(x_4, x_5, x_3);
  return x_6;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonDidChangeWatchedFilesParams___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_573_), 1, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_Lsp_instToJsonDidChangeWatchedFilesParams() {
  _start:
  {
  lean_object* x_1; 
  x_1 = l_Lean_Lsp_instToJsonDidChangeWatchedFilesParams___closed__1;
  return x_1;
  }
  }
  lean_object* initialize_Init(uint8_t builtin, lean_object*);
  lean_object* initialize_Lean_Data_Lsp_Basic(uint8_t builtin, lean_object*);
  lean_object* initialize_Lean_Data_Json(uint8_t builtin, lean_object*);
  static bool _G_initialized = false;
  LEAN_EXPORT lean_object* initialize_Lean_Data_Lsp_Workspace(uint8_t builtin, lean_object* w) {
  lean_object * res;
  if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
  _G_initialized = true;
  res = initialize_Init(builtin, lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Data_Lsp_Basic(builtin, lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Lean_Data_Json(builtin, lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__1 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__1();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__1);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__2 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__2();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonWorkspaceFolder____x40_Lean_Data_Lsp_Workspace___hyg_24____closed__2);
  l_Lean_Lsp_instToJsonWorkspaceFolder___closed__1 = _init_l_Lean_Lsp_instToJsonWorkspaceFolder___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instToJsonWorkspaceFolder___closed__1);
  l_Lean_Lsp_instToJsonWorkspaceFolder = _init_l_Lean_Lsp_instToJsonWorkspaceFolder();
  lean_mark_persistent(l_Lean_Lsp_instToJsonWorkspaceFolder);
  l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1 = _init_l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceFolder___closed__1);
  l_Lean_Lsp_instFromJsonWorkspaceFolder = _init_l_Lean_Lsp_instFromJsonWorkspaceFolder();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonWorkspaceFolder);
  l_Lean_Lsp_FileSystemWatcher_kind___default = _init_l_Lean_Lsp_FileSystemWatcher_kind___default();
  lean_mark_persistent(l_Lean_Lsp_FileSystemWatcher_kind___default);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__1 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__1();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__1);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__2 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__2();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_137____closed__2);
  l_Lean_Lsp_instFromJsonFileSystemWatcher___closed__1 = _init_l_Lean_Lsp_instFromJsonFileSystemWatcher___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonFileSystemWatcher___closed__1);
  l_Lean_Lsp_instFromJsonFileSystemWatcher = _init_l_Lean_Lsp_instFromJsonFileSystemWatcher();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonFileSystemWatcher);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__1 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__1();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__1);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__2 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__2();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__2);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__3 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__3();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileSystemWatcher____x40_Lean_Data_Lsp_Workspace___hyg_189____closed__3);
  l_Lean_Lsp_instToJsonFileSystemWatcher___closed__1 = _init_l_Lean_Lsp_instToJsonFileSystemWatcher___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instToJsonFileSystemWatcher___closed__1);
  l_Lean_Lsp_instToJsonFileSystemWatcher = _init_l_Lean_Lsp_instToJsonFileSystemWatcher();
  lean_mark_persistent(l_Lean_Lsp_instToJsonFileSystemWatcher);
  l_Lean_Lsp_FileSystemWatcher_create = _init_l_Lean_Lsp_FileSystemWatcher_create();
  lean_mark_persistent(l_Lean_Lsp_FileSystemWatcher_create);
  l_Lean_Lsp_FileSystemWatcher_change = _init_l_Lean_Lsp_FileSystemWatcher_change();
  lean_mark_persistent(l_Lean_Lsp_FileSystemWatcher_change);
  l_Lean_Lsp_FileSystemWatcher_delete = _init_l_Lean_Lsp_FileSystemWatcher_delete();
  lean_mark_persistent(l_Lean_Lsp_FileSystemWatcher_delete);
  l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___closed__1 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___closed__1();
  lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___closed__1);
  l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___closed__2 = _init_l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___closed__2();
  lean_mark_persistent(l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____spec__1___closed__2);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____closed__1 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____closed__1();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesRegistrationOptions____x40_Lean_Data_Lsp_Workspace___hyg_252____closed__1);
  l_Lean_Lsp_instFromJsonDidChangeWatchedFilesRegistrationOptions___closed__1 = _init_l_Lean_Lsp_instFromJsonDidChangeWatchedFilesRegistrationOptions___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonDidChangeWatchedFilesRegistrationOptions___closed__1);
  l_Lean_Lsp_instFromJsonDidChangeWatchedFilesRegistrationOptions = _init_l_Lean_Lsp_instFromJsonDidChangeWatchedFilesRegistrationOptions();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonDidChangeWatchedFilesRegistrationOptions);
  l_Lean_Lsp_instToJsonDidChangeWatchedFilesRegistrationOptions___closed__1 = _init_l_Lean_Lsp_instToJsonDidChangeWatchedFilesRegistrationOptions___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instToJsonDidChangeWatchedFilesRegistrationOptions___closed__1);
  l_Lean_Lsp_instToJsonDidChangeWatchedFilesRegistrationOptions = _init_l_Lean_Lsp_instToJsonDidChangeWatchedFilesRegistrationOptions();
  lean_mark_persistent(l_Lean_Lsp_instToJsonDidChangeWatchedFilesRegistrationOptions);
  l_Lean_Lsp_FileChangeType_noConfusion___rarg___closed__1 = _init_l_Lean_Lsp_FileChangeType_noConfusion___rarg___closed__1();
  lean_mark_persistent(l_Lean_Lsp_FileChangeType_noConfusion___rarg___closed__1);
  l_Lean_Lsp_instFromJsonFileChangeType___closed__1 = _init_l_Lean_Lsp_instFromJsonFileChangeType___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonFileChangeType___closed__1);
  l_Lean_Lsp_instFromJsonFileChangeType___closed__2 = _init_l_Lean_Lsp_instFromJsonFileChangeType___closed__2();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonFileChangeType___closed__2);
  l_Lean_Lsp_instFromJsonFileChangeType___closed__3 = _init_l_Lean_Lsp_instFromJsonFileChangeType___closed__3();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonFileChangeType___closed__3);
  l_Lean_Lsp_instFromJsonFileChangeType___closed__4 = _init_l_Lean_Lsp_instFromJsonFileChangeType___closed__4();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonFileChangeType___closed__4);
  l_Lean_Lsp_instFromJsonFileChangeType___closed__5 = _init_l_Lean_Lsp_instFromJsonFileChangeType___closed__5();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonFileChangeType___closed__5);
  l_Lean_Lsp_instToJsonFileChangeType___closed__1 = _init_l_Lean_Lsp_instToJsonFileChangeType___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instToJsonFileChangeType___closed__1);
  l_Lean_Lsp_instToJsonFileChangeType___closed__2 = _init_l_Lean_Lsp_instToJsonFileChangeType___closed__2();
  lean_mark_persistent(l_Lean_Lsp_instToJsonFileChangeType___closed__2);
  l_Lean_Lsp_instToJsonFileChangeType___closed__3 = _init_l_Lean_Lsp_instToJsonFileChangeType___closed__3();
  lean_mark_persistent(l_Lean_Lsp_instToJsonFileChangeType___closed__3);
  l_Lean_Lsp_instToJsonFileChangeType___closed__4 = _init_l_Lean_Lsp_instToJsonFileChangeType___closed__4();
  lean_mark_persistent(l_Lean_Lsp_instToJsonFileChangeType___closed__4);
  l_Lean_Lsp_instToJsonFileChangeType___closed__5 = _init_l_Lean_Lsp_instToJsonFileChangeType___closed__5();
  lean_mark_persistent(l_Lean_Lsp_instToJsonFileChangeType___closed__5);
  l_Lean_Lsp_instToJsonFileChangeType___closed__6 = _init_l_Lean_Lsp_instToJsonFileChangeType___closed__6();
  lean_mark_persistent(l_Lean_Lsp_instToJsonFileChangeType___closed__6);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____closed__1 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____closed__1();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_434____closed__1);
  l_Lean_Lsp_instFromJsonFileEvent___closed__1 = _init_l_Lean_Lsp_instFromJsonFileEvent___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonFileEvent___closed__1);
  l_Lean_Lsp_instFromJsonFileEvent = _init_l_Lean_Lsp_instFromJsonFileEvent();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonFileEvent);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__1 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__1();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__1);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__2 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__2();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__2);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__3 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__3();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__3);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__4 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__4();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__4);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__5 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__5();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__5);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__6 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__6();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__6);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__7 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__7();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__7);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__8 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__8();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__8);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__9 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__9();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_toJsonFileEvent____x40_Lean_Data_Lsp_Workspace___hyg_486____closed__9);
  l_Lean_Lsp_instToJsonFileEvent___closed__1 = _init_l_Lean_Lsp_instToJsonFileEvent___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instToJsonFileEvent___closed__1);
  l_Lean_Lsp_instToJsonFileEvent = _init_l_Lean_Lsp_instToJsonFileEvent();
  lean_mark_persistent(l_Lean_Lsp_instToJsonFileEvent);
  l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____closed__1 = _init_l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____closed__1();
  lean_mark_persistent(l___private_Lean_Data_Lsp_Workspace_0__Lean_Lsp_fromJsonDidChangeWatchedFilesParams____x40_Lean_Data_Lsp_Workspace___hyg_538____closed__1);
  l_Lean_Lsp_instFromJsonDidChangeWatchedFilesParams___closed__1 = _init_l_Lean_Lsp_instFromJsonDidChangeWatchedFilesParams___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonDidChangeWatchedFilesParams___closed__1);
  l_Lean_Lsp_instFromJsonDidChangeWatchedFilesParams = _init_l_Lean_Lsp_instFromJsonDidChangeWatchedFilesParams();
  lean_mark_persistent(l_Lean_Lsp_instFromJsonDidChangeWatchedFilesParams);
  l_Lean_Lsp_instToJsonDidChangeWatchedFilesParams___closed__1 = _init_l_Lean_Lsp_instToJsonDidChangeWatchedFilesParams___closed__1();
  lean_mark_persistent(l_Lean_Lsp_instToJsonDidChangeWatchedFilesParams___closed__1);
  l_Lean_Lsp_instToJsonDidChangeWatchedFilesParams = _init_l_Lean_Lsp_instToJsonDidChangeWatchedFilesParams();
  lean_mark_persistent(l_Lean_Lsp_instToJsonDidChangeWatchedFilesParams);
  return lean_io_result_mk_ok(lean_box(0));
  }
  #ifdef __cplusplus
  }
  #endif
  