package coq-lsp

  1. Overview
  2. Docs
Language Server Protocol native server for Coq

Install

Dune Dependency

Authors

Maintainers

Sources

coq-lsp-0.2.2.8.19.tbz
sha256=1a0639b7774a79c8489b3e7e1ea606a24c857dc70833bbafb79b6d620c18b2b1
sha512=32782243b628fc8a92100778816772baf304335f35518e330c6c4a1b22b2139e255610f2091b47def590877455d361e22beab8ecc4f06b3f13da4e75a576fa07

doc/coq-lsp.coq/Coq/State/index.html

Module Coq.StateSource

Sourcetype t
Sourceval compare : t -> t -> int
Sourceval equal : t -> t -> bool
Sourceval hash : t -> int
Sourceval mode : st:t -> Pvernac.proof_mode option
Sourceval parsing : st:t -> Vernacstate.Parser.t
Sourcemodule Proof : sig ... end

Proof states

Sourceval lemmas : st:t -> Proof.t option
Sourceval program : st:t -> Declare.OblState.View.t Names.Id.Map.t
Sourceval in_state : token:Limits.Token.t -> st:t -> f:('a -> 'b) -> 'a -> ('b, Loc.t) Protect.E.t

Execute a command in state st. Unfortunately this can produce anomalies as Coq state setting is imperative, so we need to wrap it in protect.

Sourceval in_stateM : token:Limits.Token.t -> st:t -> f:('a -> ('b, Loc.t) Protect.E.t) -> 'a -> ('b, Loc.t) Protect.E.t

Execute a monadic command in state st.

Sourceval drop_proof : st:t -> t

Drop the top proof from the state

Sourceval drop_all_proofs : st:t -> t

Drop all proofs from the state

Sourceval admit : token:Limits.Token.t -> st:t -> (t, Loc.t) Protect.E.t

Fully admit an ongoing proof

Sourceval admit_goal : token:Limits.Token.t -> st:t -> (t, Loc.t) Protect.E.t

Admit the current sub-goal

Sourceval info_universes : token:Limits.Token.t -> st:t -> (int * int, Loc.t) Protect.E.t

Info about universes

Sourceval marshal_in : in_channel -> t

Extra / interanl

Sourceval marshal_out : out_channel -> t -> unit
Sourceval of_coq : Vernacstate.t -> t
Sourceval to_coq : t -> Vernacstate.t
OCaml

Innovation. Community. Security.