package coq-lsp

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

Install

Dune Dependency

Authors

Maintainers

Sources

coq-lsp-0.1.8.8.19.tbz
sha256=1e63289d620e533615812267e96e44c1b5cd2dbdaf26cc9dc8ba00051c2b08c0
sha512=9f5e25c6974d293e7c073e65f85936ef18180692dd031c7b709d24d3eefb1955e955c6208cf02c2ac70fa12966d96bc1d43b29f55c425274802289dcf66d5eb2

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 : 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 drop_proofs : st:t -> t

Drop the proofs from the state

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

Fully admit an ongoing proof

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

Admit the current sub-goal

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.