X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fmatita%2FmatitaTypes.ml;h=92fc79b7c288fb979f65d136eb510c148c04fee4;hb=e89486cad653803954662a5e543537acd49a866f;hp=27783ec675daab8b6732c9f113b2b3c9f3d6b0b1;hpb=5c796440126e33778e4b3f763ce37b677b378cc5;p=helm.git diff --git a/helm/matita/matitaTypes.ml b/helm/matita/matitaTypes.ml index 27783ec67..92fc79b7c 100644 --- a/helm/matita/matitaTypes.ml +++ b/helm/matita/matitaTypes.ml @@ -129,6 +129,15 @@ class type proof = method setStatus: proofStatus -> unit end +type proof_handler = + { get_proof: unit -> proof; (* return current proof or fail *) + set_proof: proof option -> unit; (* set a proof option as current proof *) + has_proof: unit -> bool; (* check if a current proof is available or not *) + new_proof: proof -> unit; (* as a set_proof but takes care also to register + observers *) + quit: unit -> unit + } + (** interpreter for toplevel phrases given via console *) class type interpreter = object