package coq-lsp

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

Install

Dune Dependency

Authors

Maintainers

Sources

coq-lsp-0.2.3.8.17.tbz
sha256=ebf815be389f7ae97fed1f1338fe59f333732062b08a5c04f957d2effa39cffd
sha512=00a1c41a72d2a16347f91c8838237f8016e04cfbd2c3bc4499793fb06c5494070d6593cf2db05eca66fe2c49e958de6a1f30bb77d5989196e51929642a5d11eb

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
Sourcemodule Declare : sig ... end
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.