(motive : String → Sort u_1) →
  (method : String) →
    (Unit → motive "textDocument/didOpen") →
      (Unit → motive "textDocument/didChange") →
        (Unit → motive "textDocument/didClose") →
          (Unit → motive "textDocument/didSave") →
            (Unit → motive "workspace/didChangeWatchedFiles") →
              (Unit → motive "$/cancelRequest") →
                (Unit → motive "$/lean/rpc/release") →
                  (Unit → motive "$/lean/rpc/keepAlive") → ((x : String) → motive x) → motive method