aboutsummaryrefslogtreecommitdiff
path: root/proofs/proof_global.ml
diff options
context:
space:
mode:
authorArnaud Spiwack2013-11-25 19:55:57 +0100
committerArnaud Spiwack2013-12-04 14:14:32 +0100
commiteef907ed0a200e912ab2eddc0fcea41b5f61c145 (patch)
tree9748713b4502fb7a5a020b834fee3d37f15644d2 /proofs/proof_global.ml
parent12a55370b525185858aed77af4ef1dc0d5cf4e7e (diff)
Allow proofs to start with dependent goals.
I use a telescope to represent to goals, and let proofview.ml generate the appropriate existential variables.
Diffstat (limited to 'proofs/proof_global.ml')
-rw-r--r--proofs/proof_global.ml12
1 files changed, 12 insertions, 0 deletions
diff --git a/proofs/proof_global.ml b/proofs/proof_global.ml
index 12a5285043..b7a32a9801 100644
--- a/proofs/proof_global.ml
+++ b/proofs/proof_global.ml
@@ -248,6 +248,18 @@ let start_proof id str goals ?(compute_guard=[]) hook =
mode = find_proof_mode "No" } in
push initial_state pstates
+let start_dependent_proof id str goals ?(compute_guard=[]) hook =
+ let initial_state = {
+ pid = id;
+ proof = Proof.dependent_start Evd.empty goals;
+ endline_tactic = None;
+ section_vars = None;
+ strength = str;
+ compute_guard = compute_guard;
+ hook = Ephemeron.create hook;
+ mode = find_proof_mode "No" } in
+ push initial_state pstates
+
let get_used_variables () = (cur_pstate ()).section_vars
let set_used_variables l =