package coq-lsp

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

Install

Dune Dependency

Authors

Maintainers

Sources

coq-lsp-0.2.0.8.18.tbz
sha256=ba40f92f4c751793265d20f1c217638146e4714e0196a0d2b00c9ed58774abf6
sha512=0b7c1d98e22017e44d90461ee61081043401387251488ee7113668d24f6a463dca4ce690e30355248a949817c6b8f8a0944489c4d9b66bd239d903a089a1f11f

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.