coq-lsp.coq
Coq.State
Example_plugin
coq-lsp.fleche
coq-lsp.lang
coq-lsp.lsp
coq-lsp.plugin
fleche_waterproof
type t
val compare : t -> t -> int
val equal : t -> t -> bool
val hash : t -> int
val mode : st:t -> Pvernac.proof_mode option
val parsing : st:t -> Vernacstate.Parser.t
module Proof : sig ... end
Proof states
val lemmas : st:t -> Proof.t option
val program : st:t -> Declare.OblState.View.t Names.Id.Map.t
val 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.
st
val drop_proofs : st:t -> t
Drop the proofs from the state
val admit : st:t -> (t, Loc.t) Protect.E.t
Fully admit an ongoing proof
val admit_goal : st:t -> (t, Loc.t) Protect.E.t
Admit the current sub-goal
val marshal_in : in_channel -> t
Extra / interanl
val marshal_out : out_channel -> t -> unit
val of_coq : Vernacstate.t -> t
val to_coq : t -> Vernacstate.t