Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Patch for the Bvector module

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Patch for the Bvector module


chronological Thread 
  • From: S�bastien Hinderer <Sebastien.Hinderer AT ens-lyon.fr>
  • To: coq AT club-internet.fr
  • Subject: [Coq-Club] Patch for the Bvector module
  • Date: Mon, 9 Feb 2004 14:24:01 +0100
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
  • Resent-date: Mon, 9 Feb 2004 14:34:39 +0100
  • Resent-from: S�bastien Hinderer <Sebastien.Hinderer AT loria.fr>
  • Resent-message-id: <20040209133439.GA640@galois>
  • Resent-to: Coq <coq-club AT pauillac.inria.fr>

Dear Coq users and developers,

Please find attached to this mail a patch you can apply to the Bvector
module which is part of Coq's standard library.
It declares [A] as an implicit argument for Vnil and [A n] as implicit
arguments for Vcons.
Not very hard to write, but so useful when working with vectors.

It's a patch agains coq-8.0beta. To apply, do :

cd $COQTOP/theories/Boolean
patch -p0 < Bvector-patch

Hope this helps.
Sébastien.
--- Bvector.v   2004-02-06 17:32:18.000000000 +0100
+++ Bvector2.v  2004-02-06 15:59:23.000000000 +0100
@@ -196,6 +196,9 @@
 
 End VECTORS.
 
+Implicit Arguments Vnil [A].
+Implicit Arguments Vcons [A n].
+
 Section BOOLEAN_VECTORS.
 
 (* 
@@ -212,9 +215,9 @@
 
 Definition Bvector := vector bool.
 
-Definition Bnil := Vnil bool.
+Definition Bnil := @Vnil bool.
 
-Definition Bcons := Vcons bool.
+Definition Bcons := @Vcons bool.
 
 Definition Bvect_true := Vconst bool true.
 



Archive powered by MhonArc 2.6.16.

Top of Page