From debbugs-submit-bounces@debbugs.gnu.org Wed May 22 07:33:44 2019 Received: (at submit) by debbugs.gnu.org; 22 May 2019 11:33:44 +0000 Received: from localhost ([127.0.0.1]:41656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTPVA-0000bT-F4 for submit@debbugs.gnu.org; Wed, 22 May 2019 07:33:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTPV6-0000bF-KX for submit@debbugs.gnu.org; Wed, 22 May 2019 07:33:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:42729) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hTPV1-0004X4-Gf for submit@debbugs.gnu.org; Wed, 22 May 2019 07:33:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTPV0-000129-5i for guix-patches@gnu.org; Wed, 22 May 2019 07:33:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTPUy-0004UR-Qr for guix-patches@gnu.org; Wed, 22 May 2019 07:33:34 -0400 Received: from smtp1.science.ru.nl ([131.174.16.143]:55500) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hTPUy-0004Qy-Hn for guix-patches@gnu.org; Wed, 22 May 2019 07:33:32 -0400 Received: from localhost.localdomain (ip-145-116-191-160.wlan-int.ru.nl [145.116.191.160]) (authen=dfrumin@cs.ru.nl) by smtp1.science.ru.nl (8.14.4/5.32) with ESMTP id x4MBXO9G030299; Wed, 22 May 2019 13:33:27 +0200 From: Dan Frumin To: guix-patches@gnu.org Subject: [PATCH] gnu: Add coq-stdpp. Date: Wed, 22 May 2019 13:33:23 +0200 Message-Id: <20190522113323.3880-1-dfrumin@cs.ru.nl> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by smtp1.science.ru.nl id x4MBXO9G030299 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 131.174.16.143 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Dan Frumin X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --- gnu/packages/coq.scm | 62 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm index 4f592622f5..15a7e791f9 100644 --- a/gnu/packages/coq.scm +++ b/gnu/packages/coq.scm @@ -25,6 +25,7 @@ #:use-module (gnu packages boost) #:use-module (gnu packages emacs) #:use-module (gnu packages flex) + #:use-module (gnu packages gawk) #:use-module (gnu packages multiprecision) #:use-module (gnu packages ocaml) #:use-module (gnu packages perl) @@ -535,3 +536,64 @@ compiles everything down to eliminators for inductiv= e types, equality and accessibility, providing a definitional extension to the Coq kernel.") (license license:lgpl2.1))) + +(define-public coq-stdpp + (package + (name "coq-stdpp") + (version "1.2.0") + (synopsis "Alternative Coq standard library std++") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.mpi-sws.org/iris/stdpp.git") + (commit (string-append "coq-stdpp-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "11m7kqxsbxygk41v2wsi3npdzwin9fcnzc1gn0gq0rd57wnq= k83i")))) + (build-system gnu-build-system) + (native-inputs + `(("grep" ,grep) ;; need egrep for tests + ("gawk" ,gawk) + ;; need diff for tests + ("diffutils" ,diffutils))) + (inputs + `(("coq" ,coq))) + (arguments + `(#:tests? #f ;; the tests are being run automaticlly as part of `m= ake all` + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (setenv "COQLIB" (string-append (assoc-ref outputs "out") "= /lib/coq/")) + (zero? (system* "make" + (string-append "COQLIB=3D" (assoc-ref outpu= ts "out") + "/lib/coq/") + "install"))))))) + (description "This project contains an extended \"Standard Library\"= for +Coq called coq-std++. The key features are: +@itemize +@item Great number of definitions and lemmas for common data structures = such +as lists, finite maps, finite sets, and finite multisets. + +@item Type classes for common notations (like =E2=88=85, =E2=88=AA, and = Haskell-style monad +notations) so that these can be overloaded for different data structures. + +@item It uses type classes to keep track of common properties of types, = like +it having decidable equality or being countable or finite. + +@item Most data structures are represented in canonical ways so that Lei= bniz +equality can be used as much as possible (for example, for maps we have = m1 =3D +m2 iff =E2=88=80 i, m1 !! i =3D m2 !! i). On top of that, the library p= rovides setoid +instances for most types and operations. + +@item Various tactics for common tasks, like an ssreflect inspired done = tactic +for finishing trivial goals, a simple breadth-first solver naive_solver,= an +equality simplifier simplify_eq, a solver solve_proper for proving +compatibility of functions with respect to relations, and a solver set_s= olver +for goals involving set operations. + +@item The library is dependency- and axiom-free. +@end itemize") + (home-page "https://gitlab.mpi-sws.org/iris/stdpp") + (license license:bsd-3))) --=20 2.17.1 From debbugs-submit-bounces@debbugs.gnu.org Fri May 24 12:23:44 2019 Received: (at 35855-done) by debbugs.gnu.org; 24 May 2019 16:23:44 +0000 Received: from localhost ([127.0.0.1]:47154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUCyr-00017f-Id for submit@debbugs.gnu.org; Fri, 24 May 2019 12:23:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUCyp-00017Q-TI for 35855-done@debbugs.gnu.org; Fri, 24 May 2019 12:23:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUCyi-0006Fs-4c; Fri, 24 May 2019 12:23:33 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37080 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hUCyh-0004dn-G2; Fri, 24 May 2019 12:23:31 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Dan Frumin Subject: Re: [bug#35855] [PATCH] gnu: Add coq-stdpp. References: <20190522113323.3880-1-dfrumin@cs.ru.nl> Date: Fri, 24 May 2019 18:23:29 +0200 In-Reply-To: <20190522113323.3880-1-dfrumin@cs.ru.nl> (Dan Frumin's message of "Wed, 22 May 2019 13:33:23 +0200") Message-ID: <87lfyvstxa.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35855-done Cc: 35855-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Dan, I took the liberty to apply the minor changes below and applied the patch (grep, diffutils, etc. are implicit inputs of =E2=80=98gnu-build-syst= em=E2=80=99, so you don=E2=80=99t need to list them; as for =E2=80=98invoke=E2=80=99, it= =E2=80=99s now the preferred way to invoke programs.) Thank you! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm index 15a7e791f9..6c48af4fc9 100644 --- a/gnu/packages/coq.scm +++ b/gnu/packages/coq.scm @@ -551,11 +551,6 @@ kernel.") (sha256 (base32 "11m7kqxsbxygk41v2wsi3npdzwin9fcnzc1gn0gq0rd57wnqk83i")))) (build-system gnu-build-system) - (native-inputs - `(("grep" ,grep) ;; need egrep for tests - ("gawk" ,gawk) - ;; need diff for tests - ("diffutils" ,diffutils))) (inputs `(("coq" ,coq))) (arguments @@ -566,10 +561,10 @@ kernel.") (replace 'install (lambda* (#:key outputs #:allow-other-keys) (setenv "COQLIB" (string-append (assoc-ref outputs "out") "/lib/coq/")) - (zero? (system* "make" - (string-append "COQLIB=" (assoc-ref outputs "out") - "/lib/coq/") - "install"))))))) + (invoke "make" + (string-append "COQLIB=" (assoc-ref outputs "out") + "/lib/coq/") + "install")))))) (description "This project contains an extended \"Standard Library\" for Coq called coq-std++. The key features are: @itemize --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 24 13:11:14 2019 Received: (at 35855-done) by debbugs.gnu.org; 24 May 2019 17:11:14 +0000 Received: from localhost ([127.0.0.1]:47229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUDis-0004cQ-0z for submit@debbugs.gnu.org; Fri, 24 May 2019 13:11:14 -0400 Received: from smtp1.science.ru.nl ([131.174.16.143]:36660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUDip-0004cH-GG for 35855-done@debbugs.gnu.org; Fri, 24 May 2019 13:11:12 -0400 Received: from [145.116.191.160] (ip-145-116-191-160.wlan-int.ru.nl [145.116.191.160]) (authen=dfrumin) by smtp1.science.ru.nl (8.14.4/5.32) with ESMTP id x4OHB8D2029191; Fri, 24 May 2019 19:11:08 +0200 Subject: Re: [bug#35855] [PATCH] gnu: Add coq-stdpp. To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= References: <20190522113323.3880-1-dfrumin@cs.ru.nl> <87lfyvstxa.fsf@gnu.org> From: Dan Frumin Message-ID: Date: Fri, 24 May 2019 19:11:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <87lfyvstxa.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35855-done Cc: 35855-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Ludovic, Thanks for looking over my patch! On 24-05-19 18:23, Ludovic Courtès wrote: > Hi Dan, > > I took the liberty to apply the minor changes below and applied the > patch (grep, diffutils, etc. are implicit inputs of ‘gnu-build-system’, > so you don’t need to list them; Oh interesting. I recall that I had to add those programs explicitly as inputs as some point (otherwise I couldn't build it in `guix environment coq-stdpp`), but perhaps my memory is playing tricks on me. > as for ‘invoke’, it’s now the preferred > way to invoke programs.) > Oops, dunno why I missed that... > Thank you! > > Ludo’. > > > diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm > index 15a7e791f9..6c48af4fc9 100644 > --- a/gnu/packages/coq.scm > +++ b/gnu/packages/coq.scm > @@ -551,11 +551,6 @@ kernel.") > (sha256 > (base32 "11m7kqxsbxygk41v2wsi3npdzwin9fcnzc1gn0gq0rd57wnqk83i")))) > (build-system gnu-build-system) > - (native-inputs > - `(("grep" ,grep) ;; need egrep for tests > - ("gawk" ,gawk) > - ;; need diff for tests > - ("diffutils" ,diffutils))) > (inputs > `(("coq" ,coq))) > (arguments > @@ -566,10 +561,10 @@ kernel.") > (replace 'install > (lambda* (#:key outputs #:allow-other-keys) > (setenv "COQLIB" (string-append (assoc-ref outputs "out") "/lib/coq/")) > - (zero? (system* "make" > - (string-append "COQLIB=" (assoc-ref outputs "out") > - "/lib/coq/") > - "install"))))))) > + (invoke "make" > + (string-append "COQLIB=" (assoc-ref outputs "out") > + "/lib/coq/") > + "install")))))) > (description "This project contains an extended \"Standard Library\" for > Coq called coq-std++. The key features are: > @itemize > From unknown Fri Jun 13 06:14:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 22 Jun 2019 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator