Instances
- Lean.Lsp.instFromJsonRpcRef
- Lean.Lsp.instFromJsonWindowClientCapabilities
- Lean.Lsp.instFromJsonDidChangeWatchedFilesParams
- Lean.Lsp.instFromJsonTextEdit
- Lean.Lsp.instFromJsonFileSystemWatcher
- Lean.Lsp.instFromJsonDocumentHighlightParams
- Lean.Lsp.instFromJsonCancelParams
- Lean.Widget.instFromJsonFVarId
- Lean.instFromJsonJson
- Lean.Lsp.instFromJsonInitializationOptions
- Lean.Lsp.instFromJsonCompletionParams
- Lean.instFromJsonLeanPaths
- Lean.SubExpr.Pos.instFromJsonPos
- Lean.Lsp.instFromJsonLeanFileProgressProcessingInfo
- Lean.Lsp.instFromJsonSemanticTokensOptions
- Lean.Lsp.instFromJsonRefInfo
- Lean.Server.instFromJsonIlean
- Lean.Lsp.instFromJsonShowDocumentClientCapabilities
- Lean.instFromJsonJsonNumber
- Lean.Lsp.instFromJsonModuleRefs
- Lean.Lsp.instFromJsonCompletionItemKind
- Lean.Lsp.instFromJsonDocumentSelector
- Lean.Lsp.instFromJsonDiagnosticSeverity
- Lean.Lsp.instFromJsonTextDocumentChangeRegistrationOptions
- Lean.Lsp.instFromJsonSemanticTokensLegend
- Lean.Lsp.instFromJsonCompletionItem
- Lean.Lsp.instFromJsonRpcConnectParams
- Lean.Lsp.instFromJsonPlainGoalParams
- Lean.Widget.instFromJsonRpcEncodingPacket_3
- Lean.Widget.instFromJsonRpcEncodingPacket_2
- Lean.Widget.instFromJsonRpcEncodingPacket_1
- Lean.Widget.instFromJsonRpcEncodingPacket_4
- Lean.Lsp.instFromJsonDidCloseTextDocumentParams
- Lean.Lsp.instFromJsonHoverParams
- Lean.Lsp.instFromJsonFoldingRangeParams
- Lean.Lsp.instFromJsonDocumentFilter
- Lean.Lsp.instFromJsonTextDocumentEdit
- Lean.Lsp.instFromJsonLeanIleanInfoParams
- Lean.Lsp.instFromJsonPlainTermGoalParams
- Lean.instFromJsonOption
- Lean.Lsp.instFromJsonClientInfo
- Lean.Widget.instFromJsonRpcEncodingPacket_6
- Lean.Widget.instFromJsonRpcEncodingPacket_5
- Lean.Lsp.instFromJsonPosition
- Lean.Lsp.instFromJsonInitializeResult
- Lean.Lsp.instFromJsonTextDocumentClientCapabilities
- Lean.Lsp.instFromJsonTextDocumentPositionParams
- Lean.Lsp.instFromJsonClientCapabilities
- Lean.Lsp.instFromJsonLeanFileProgressKind
- Lean.instFromJsonUInt64
- Lean.Lsp.instFromJsonCompletionList
- Lean.Lsp.instFromJsonServerInfo
- Lean.Lsp.instFromJsonCompletionItemCapabilities
- Lean.Lsp.instFromJsonSemanticTokensParams
- Lean.Lsp.instFromJsonDeclarationParams
- Lean.Lsp.instFromJsonSaveOptions
- Lean.Lsp.instFromJsonDiagnosticCode
- Lean.Lsp.instFromJsonCompletionClientCapabilities
- Lean.Lsp.instFromJsonDiagnosticRelatedInformation
- Lean.Lsp.instFromJsonWaitForDiagnostics
- Lean.Lsp.instFromJsonDocumentSymbolParams
- Lean.Lsp.instFromJsonFileChangeType
- Lean.Lsp.instFromJsonDiagnosticTag
- Lean.Lsp.instFromJsonInitializeParams
- Lean.Lsp.instFromJsonPlainGoal
- Lean.Lsp.instFromJsonStaticRegistrationOptions
- Lean.Lsp.instFromJsonLocationLink
- Lean.Server.instFromJsonGoToKind
- Lean.Widget.instFromJsonRpcEncodingPacket_8
- Lean.Widget.instFromJsonRpcEncodingPacket_7
- Lean.Widget.instFromJsonRpcEncodingPacket_9
- Lean.instFromJsonList
- Lean.Widget.instFromJsonTaggedText
- Lean.Lsp.instFromJsonLineRange
- Lean.Lsp.instFromJsonRpcConnected
- Lean.Lsp.instFromJsonDidChangeTextDocumentParams
- Lean.Lsp.instFromJsonDiagnosticWith
- Lean.Lsp.instFromJsonPublishDiagnosticsParams
- Lean.Lsp.instFromJsonServerCapabilities
- Lean.JsonRpc.instFromJsonNotification
- Lean.Json.instFromJsonStructured
- Lean.Lsp.instFromJsonCompletionOptions
- Lean.instFromJsonNat
- Lean.Lsp.instFromJsonSemanticTokensRangeParams
- Lean.JsonRpc.instFromJsonRequestID
- Lean.Lsp.instFromJsonReferenceParams
- Lean.Lsp.instFromJsonRange
- Lean.Lsp.instFromJsonRpcCallParams
- Lean.Lsp.instFromJsonRpcKeepAliveParams
- Lean.JsonRpc.instFromJsonErrorCode
- Lean.instFromJsonArray
- Lean.Lsp.instFromJsonTextDocumentSyncOptions
- Lean.Lsp.instFromJsonRegistration
- Lean.Widget.instFromJsonRpcEncodingPacket
- Lean.Widget.instFromJsonMVarId
- Lean.Lsp.instFromJsonTextDocumentIdentifier
- Lean.Lsp.instFromJsonVersionedTextDocumentIdentifier
- Lean.instFromJsonProd
- Lean.Lsp.instFromJsonWaitForDiagnosticsParams
- Lean.Lsp.instFromJsonTextDocumentRegistrationOptions
- Lean.instFromJsonFilePath
- Lean.Widget.instFromJsonGetInteractiveDiagnosticsParams
- Lean.Lsp.instFromJsonLeanFileProgressParams
- Lean.Lsp.instFromJsonWorkspaceFolder
- Lean.Lsp.instFromJsonLocation
- Lean.Lsp.instFromJsonReferenceContext
- Lean.Lsp.instFromJsonDidChangeWatchedFilesRegistrationOptions
- Lean.Lsp.instFromJsonTrace
- Lean.instFromJsonBool
- Lean.Lsp.instFromJsonRpcReleaseParams
- Lean.Lsp.instFromJsonTextDocumentSyncKind
- Lean.Lsp.instFromJsonCommand
- Lean.Lsp.instFromJsonTypeDefinitionParams
- Lean.JsonRpc.instFromJsonMessage
- Lean.Lsp.instFromJsonPlainTermGoal
- Lean.Lsp.instFromJsonInitializedParams
- Lean.Lsp.instFromJsonTextDocumentItem
- Lean.Lsp.instFromJsonTextDocumentContentChangeEvent
- Lean.Lsp.instFromJsonInsertReplaceEdit
- Lean.Lsp.instFromJsonMarkupContent
- Lean.Lsp.instFromJsonRegistrationParams
- Lean.instFromJsonName
- Lean.Lsp.instFromJsonTextEditBatch
- Lean.Lsp.instFromJsonDefinitionParams
- Lean.instFromJsonString
- Lean.instFromJsonUSize
- Lean.Lsp.instFromJsonWorkspaceSymbolParams
- Lean.Lsp.instFromJsonMarkupKind
- Lean.Lsp.instFromJsonFileEvent
- Lean.Lsp.instFromJsonHover
- Lean.Lsp.instFromJsonDidOpenTextDocumentParams
- Lean.Lsp.instFromJsonSemanticTokens
- Lean.instFromJsonInt
- toJson : α → Lean.Json
Instances
- Lean.Lsp.instToJsonRpcRef
- Lean.Lsp.instToJsonSymbolInformation
- Lean.Lsp.instToJsonWindowClientCapabilities
- Lean.Lsp.instToJsonDidChangeWatchedFilesParams
- Lean.Lsp.instToJsonTextEdit
- Lean.Lsp.instToJsonDocumentSymbolAux
- Lean.Lsp.instToJsonFileSystemWatcher
- Lean.Lsp.instToJsonDocumentHighlightParams
- Lean.Lsp.instToJsonCancelParams
- Lean.Widget.instToJsonFVarId
- Lean.instToJsonJson
- Lean.Lsp.instToJsonInitializationOptions
- Lean.Lsp.instToJsonCompletionParams
- Lean.instToJsonLeanPaths
- Lean.SubExpr.Pos.instToJsonPos
- Lean.Lsp.instToJsonLeanFileProgressProcessingInfo
- Lean.Lsp.instToJsonSemanticTokensOptions
- Lean.Lsp.instToJsonRefInfo
- Lean.Server.instToJsonIlean
- Lean.Lsp.instToJsonShowDocumentClientCapabilities
- Lean.instToJsonJsonNumber
- Lean.Lsp.instToJsonModuleRefs
- Lean.Lsp.instToJsonCompletionItemKind
- Lean.Lsp.instToJsonSymbolTag
- Lean.Lsp.instToJsonDocumentSelector
- Lean.Lsp.instToJsonDiagnosticSeverity
- Lean.Lsp.instToJsonDocumentHighlight
- Lean.Lsp.instToJsonSemanticTokensLegend
- Lean.Lsp.instToJsonCompletionItem
- Lean.Lsp.instToJsonRpcConnectParams
- Lean.Lsp.instToJsonPlainGoalParams
- Lean.Widget.instToJsonRpcEncodingPacket_3
- Lean.Widget.instToJsonRpcEncodingPacket_2
- Lean.Widget.instToJsonRpcEncodingPacket_1
- Lean.Widget.instToJsonRpcEncodingPacket_4
- Lean.Lsp.instToJsonDidCloseTextDocumentParams
- Lean.Lsp.instToJsonSymbolKind
- Lean.Lsp.instToJsonHoverParams
- Lean.Lsp.instToJsonFoldingRangeParams
- Lean.Lsp.instToJsonDocumentFilter
- Lean.Lsp.instToJsonTextDocumentEdit
- Lean.Lsp.instToJsonLeanIleanInfoParams
- Lean.Lsp.instToJsonPlainTermGoalParams
- Lean.instToJsonOption
- Lean.Lsp.instToJsonClientInfo
- Lean.Widget.instToJsonRpcEncodingPacket_6
- Lean.Widget.instToJsonRpcEncodingPacket_5
- Lean.Lsp.instToJsonPosition
- Lean.Lsp.instToJsonInitializeResult
- Lean.Lsp.instToJsonTextDocumentClientCapabilities
- Lean.Lsp.instToJsonTextDocumentPositionParams
- Lean.Lsp.instToJsonClientCapabilities
- Lean.Lsp.instToJsonLeanFileProgressKind
- Lean.Lsp.instToJsonDocumentSymbolResult
- Lean.instToJsonUInt64
- Lean.Lsp.instToJsonCompletionList
- Lean.Lsp.instToJsonServerInfo
- Lean.Lsp.instToJsonWorkDoneProgressBegin
- Lean.Lsp.instToJsonCompletionItemCapabilities
- Lean.Lsp.instToJsonSemanticTokensParams
- Lean.Lsp.instToJsonDeclarationParams
- Lean.Lsp.instToJsonSaveOptions
- Lean.Lsp.instToJsonDiagnosticCode
- Lean.Lsp.instToJsonCompletionClientCapabilities
- Lean.Lsp.instToJsonDiagnosticRelatedInformation
- Lean.Lsp.instToJsonWaitForDiagnostics
- Lean.Lsp.instToJsonDocumentSymbolParams
- Lean.Lsp.instToJsonFileChangeType
- Lean.Lsp.instToJsonDiagnosticTag
- Lean.Lsp.instToJsonInitializeParams
- Lean.Lsp.instToJsonPlainGoal
- Lean.Lsp.instToJsonProgressParams
- Lean.Lsp.instToJsonStaticRegistrationOptions
- Lean.Lsp.instToJsonLocationLink
- Lean.Server.instToJsonGoToKind
- Lean.Widget.instToJsonRpcEncodingPacket_8
- Lean.Widget.instToJsonRpcEncodingPacket_7
- Lean.Widget.instToJsonRpcEncodingPacket_9
- Lean.instToJsonList
- Lean.Widget.instToJsonTaggedText
- Lean.Lsp.instToJsonLineRange
- Lean.Lsp.instToJsonRpcConnected
- Lean.Lsp.instToJsonDidChangeTextDocumentParams
- Lean.Lsp.instToJsonDiagnosticWith
- Lean.Lsp.instToJsonWorkDoneProgressEnd
- Lean.Lsp.instToJsonPublishDiagnosticsParams
- Lean.Lsp.instToJsonServerCapabilities
- Lean.Json.instToJsonStructured
- Lean.Lsp.instToJsonCompletionOptions
- Lean.instToJsonNat
- Lean.Lsp.instToJsonSemanticTokensRangeParams
- Lean.JsonRpc.instToJsonRequestID
- Lean.Lsp.instToJsonReferenceParams
- Lean.Lsp.instToJsonRange
- Lean.Lsp.instToJsonRpcCallParams
- Lean.Lsp.instToJsonRpcKeepAliveParams
- Lean.JsonRpc.instToJsonErrorCode
- Lean.instToJsonArray
- Lean.Lsp.instToJsonTextDocumentSyncOptions
- Lean.Lsp.instToJsonRegistration
- Lean.Widget.instToJsonRpcEncodingPacket
- Lean.Lsp.instToJsonDocumentHighlightKind
- Lean.Lsp.instToJsonWorkDoneProgressReport
- Lean.Widget.instToJsonMVarId
- Lean.Lsp.instToJsonTextDocumentIdentifier
- Lean.Lsp.instToJsonVersionedTextDocumentIdentifier
- Lean.instToJsonProd
- Lean.Lsp.instToJsonWaitForDiagnosticsParams
- Lean.Lsp.instToJsonTextDocumentRegistrationOptions
- Lean.instToJsonFilePath
- Lean.Widget.instToJsonGetInteractiveDiagnosticsParams
- Lean.Lsp.instToJsonLeanFileProgressParams
- Lean.Lsp.instToJsonWorkspaceFolder
- Lean.Lsp.instToJsonLocation
- Lean.Lsp.instToJsonReferenceContext
- Lean.Lsp.instToJsonDidChangeWatchedFilesRegistrationOptions
- Lean.Lsp.Trace.hasToJson
- Lean.instToJsonBool
- Lean.Lsp.instToJsonRpcReleaseParams
- Lean.Lsp.instToJsonTextDocumentSyncKind
- Lean.Lsp.instToJsonCommand
- Lean.Lsp.instToJsonTypeDefinitionParams
- Lean.JsonRpc.instToJsonMessage
- Lean.Lsp.instToJsonPlainTermGoal
- Lean.Lsp.instToJsonInitializedParams
- Lean.Lsp.instToJsonTextDocumentItem
- Lean.Lsp.instToJsonDocumentSymbol
- Lean.Lsp.instToJsonFoldingRange
- Lean.Lsp.TextDocumentContentChangeEvent.hasToJson
- Lean.Lsp.instToJsonInsertReplaceEdit
- Lean.Lsp.instToJsonMarkupContent
- Lean.Lsp.instToJsonRegistrationParams
- Lean.instToJsonName
- Lean.Lsp.instToJsonTextEditBatch
- Lean.Lsp.instToJsonDefinitionParams
- Lean.instToJsonString
- Lean.instToJsonUSize
- Lean.Lsp.instToJsonWorkspaceSymbolParams
- Lean.Lsp.instToJsonFoldingRangeKind
- Lean.Lsp.instToJsonMarkupKind
- Lean.Lsp.instToJsonFileEvent
- Lean.Lsp.instToJsonHover
- Lean.Lsp.instToJsonDidOpenTextDocumentParams
- Lean.Lsp.instToJsonSemanticTokens
- Lean.instToJsonInt
Equations
- Lean.instFromJsonJson = { fromJson? := Except.ok }
Equations
- Lean.instToJsonJson = { toJson := id }
Equations
- Lean.instFromJsonJsonNumber = { fromJson? := Lean.Json.getNum? }
Equations
- Lean.instToJsonJsonNumber = { toJson := Lean.Json.num }
Equations
- Lean.instFromJsonBool = { fromJson? := Lean.Json.getBool? }
Equations
- Lean.instToJsonBool = { toJson := fun b => Lean.Json.bool b }
Equations
- Lean.instFromJsonNat = { fromJson? := Lean.Json.getNat? }
Equations
- Lean.instToJsonNat = { toJson := fun n => Lean.Json.num (Lean.JsonNumber.fromNat n) }
Equations
- Lean.instFromJsonInt = { fromJson? := Lean.Json.getInt? }
Equations
- Lean.instToJsonInt = { toJson := fun n => Lean.Json.num (Lean.JsonNumber.fromInt n) }
Equations
- Lean.instFromJsonString = { fromJson? := Lean.Json.getStr? }
Equations
- Lean.instToJsonString = { toJson := fun s => Lean.Json.str s }
Equations
- Lean.instFromJsonFilePath = { fromJson? := fun j => System.FilePath.mk <$> Lean.Json.getStr? j }
Equations
- Lean.instToJsonFilePath = { toJson := fun p => Lean.Json.str p.toString }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.instToJsonArray = { toJson := fun a => Lean.Json.arr (Array.map Lean.toJson a) }
Equations
- Lean.instFromJsonList = { fromJson? := fun j => Except.map Array.toList (Lean.fromJson? j) }
Equations
- Lean.instToJsonList = { toJson := fun xs => Lean.toJson (List.toArray xs) }
Equations
- Lean.instFromJsonOption = { fromJson? := fun x => match x with | Lean.Json.null => Except.ok none | j => some <$> Lean.fromJson? j }
Equations
- Lean.instToJsonOption = { toJson := fun x => match x with | none => Lean.Json.null | some a => Lean.toJson a }
instance
Lean.instFromJsonProd
{α : Type (max u_1 u_2)}
{β : Type (max u_1 u_2)}
[inst : Lean.FromJson α]
[inst : Lean.FromJson β]
:
Lean.FromJson (α × β)
Equations
- One or more equations did not get rendered due to their size.
instance
Lean.instToJsonProd
{α : Type u_1}
{β : Type u_2}
[inst : Lean.ToJson α]
[inst : Lean.ToJson β]
:
Lean.ToJson (α × β)
Equations
- Lean.instToJsonProd = { toJson := fun x => match x with | (a, b) => Lean.Json.arr #[Lean.toJson a, Lean.toJson b] }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.instToJsonName = { toJson := fun n => Lean.Json.str (toString n) }
Equations
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.instToJsonUSize = { toJson := fun v => Lean.bignumToJson (USize.toNat v) }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.instToJsonUInt64 = { toJson := fun v => Lean.bignumToJson (UInt64.toNat v) }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Json.instToJsonStructured = { toJson := fun x => match x with | Lean.Json.Structured.arr a => Lean.Json.arr a | Lean.Json.Structured.obj o => Lean.Json.obj o }
Equations
Equations
- Lean.Json.getObjValAs? j α k = Lean.fromJson? (Lean.Json.getObjValD j k)
Equations
- Lean.Json.opt k _fun_discr = match _fun_discr with | none => [] | some o => [(k, Lean.toJson o)]