From 078efbe2dfff0b783cd35b0b3ab2354f554e95a6 Mon Sep 17 00:00:00 2001 From: Arnaud Spiwack Date: Mon, 25 Nov 2013 19:05:48 +0100 Subject: Derive plugin. A small plugin to support program deriving (à la Richard Bird) in Coq. It's fairly simple: Require Coq.Derive.Derive. Derive f From g Upto eq As h. Produces a goal (actually two, but the first one is automatically shelved): |- eq g ?42 And closing the proof produces two definitions: f is instantiated with the value of ?42 (it's always transparent). And h is instantiated with the content of the proof (it is transparent or opaque depending on whether the proof was closed with Defined or Qed). --- plugins/Derive/derive_plugin.mllib | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 plugins/Derive/derive_plugin.mllib (limited to 'plugins/Derive/derive_plugin.mllib') diff --git a/plugins/Derive/derive_plugin.mllib b/plugins/Derive/derive_plugin.mllib new file mode 100644 index 0000000000..5ee0fc6da6 --- /dev/null +++ b/plugins/Derive/derive_plugin.mllib @@ -0,0 +1,2 @@ +Derive +G_derive -- cgit v1.2.3