From f8970ec2140662274bb10f0eb8d3ca72924835c7 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Tue, 31 Dec 2013 16:25:25 +0100 Subject: Proof_using: new syntax + suggestion Proof using can be followed by: - All : all variables - Type : all variables occurring in the type - expr: - (a b .. c) : set - expr + expr : set union - expr - expr : set difference - -expr : set complement (All - expr) Exceptions: - a singleton set can be written without parentheses. This also allows the implementation of named sets sharing the same name space of section hyps ans write - bla - x : where bla is defined as (a b .. x y) elsewhere. - if expr is just a set, then parentheses can be omitted This module also implements some AI to tell the user how he could decorate "Proof" with a "using BLA" clause. Finally, one can Set Default Proof Using "str" to any string that is used whenever the "using ..." part is missing. The coding of this sucks a little since it is the parser that applies the default. --- proofs/proof_using.mli | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 proofs/proof_using.mli (limited to 'proofs/proof_using.mli') diff --git a/proofs/proof_using.mli b/proofs/proof_using.mli new file mode 100644 index 0000000000..f1731621de --- /dev/null +++ b/proofs/proof_using.mli @@ -0,0 +1,24 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* Names.Id.Set.t -> Names.Id.Set.t + +(* [minimize_unused_hyps e s1] gives [s2] s.t. [Id.Set.subset s2 s1] is [true] + * and s.t. calling [clear s1] would do the same as [clear s2]. Inefficient. *) +val minimize_unused_hyps : Environ.env -> Names.Id.Set.t -> Names.Id.Set.t + +val process_expr : + Environ.env -> Vernacexpr.section_subset_descr -> Constr.types list -> + Names.Id.t list + +val to_string : Vernacexpr.section_subset_descr -> string + +val get_default_proof_using : unit -> string option -- cgit v1.2.3