2018-12-19 15:12:23 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2018 Julien Lepiller <julien@lepiller.eu>
|
2019-06-06 16:40:56 +00:00
|
|
|
|
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
2019-02-03 15:14:12 +00:00
|
|
|
|
;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
|
2020-01-05 23:06:02 +00:00
|
|
|
|
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
|
2020-03-05 09:02:40 +00:00
|
|
|
|
;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
|
2020-09-06 17:11:32 +00:00
|
|
|
|
;;; Copyright © 2020 raingloom <raingloom@riseup.net>
|
2020-09-13 14:12:18 +00:00
|
|
|
|
;;; Copyright © 2020 Robin Green <greenrd@greenrd.org>
|
2018-12-19 15:12:23 +00:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages coq)
|
|
|
|
|
#:use-module (gnu packages)
|
2020-01-06 07:35:55 +00:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2018-12-19 15:12:23 +00:00
|
|
|
|
#:use-module (gnu packages base)
|
|
|
|
|
#:use-module (gnu packages bison)
|
|
|
|
|
#:use-module (gnu packages boost)
|
|
|
|
|
#:use-module (gnu packages emacs)
|
|
|
|
|
#:use-module (gnu packages flex)
|
2019-05-22 11:33:23 +00:00
|
|
|
|
#:use-module (gnu packages gawk)
|
2018-12-19 15:12:23 +00:00
|
|
|
|
#:use-module (gnu packages multiprecision)
|
|
|
|
|
#:use-module (gnu packages ocaml)
|
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
|
#:use-module (gnu packages python)
|
2020-09-13 14:12:18 +00:00
|
|
|
|
#:use-module (gnu packages rsync)
|
2018-12-19 15:12:23 +00:00
|
|
|
|
#:use-module (gnu packages texinfo)
|
|
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
|
#:use-module (guix build-system ocaml)
|
|
|
|
|
#:use-module (guix download)
|
2019-02-03 15:14:12 +00:00
|
|
|
|
#:use-module (guix git-download)
|
2018-12-19 15:12:23 +00:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix utils)
|
|
|
|
|
#:use-module ((srfi srfi-1) #:hide (zip)))
|
|
|
|
|
|
|
|
|
|
(define-public coq
|
|
|
|
|
(package
|
|
|
|
|
(name "coq")
|
2020-09-13 14:12:18 +00:00
|
|
|
|
(version "8.11.2")
|
2018-12-23 10:06:13 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
|
(url "https://github.com/coq/coq")
|
2018-12-23 10:06:13 +00:00
|
|
|
|
(commit (string-append "V" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2020-01-06 07:32:09 +00:00
|
|
|
|
(base32
|
2020-09-13 14:12:18 +00:00
|
|
|
|
"1gia82dkmzqspw2w3s4gjyh39ghbmw4i41i4hyzc91g7mza17nbz"))))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "COQPATH")
|
|
|
|
|
(files (list "lib/coq/user-contrib")))))
|
|
|
|
|
(build-system ocaml-build-system)
|
2019-12-12 18:38:09 +00:00
|
|
|
|
(outputs '("out" "ide"))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(inputs
|
2020-01-06 07:32:09 +00:00
|
|
|
|
`(("lablgtk" ,lablgtk3)
|
2018-12-19 15:12:23 +00:00
|
|
|
|
("python" ,python-2)
|
|
|
|
|
("camlp5" ,camlp5)
|
|
|
|
|
("ocaml-num" ,ocaml-num)))
|
2019-05-04 16:23:20 +00:00
|
|
|
|
(native-inputs
|
2020-09-13 14:12:18 +00:00
|
|
|
|
`(("ocaml-ounit" ,ocaml-ounit)
|
|
|
|
|
("rsync" ,rsync)
|
|
|
|
|
("which" ,which)))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2018-12-23 10:06:13 +00:00
|
|
|
|
(add-after 'unpack 'make-git-checkout-writable
|
|
|
|
|
(lambda _
|
|
|
|
|
(for-each make-file-writable (find-files "."))
|
|
|
|
|
#t))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(mandir (string-append out "/share/man"))
|
|
|
|
|
(browser "icecat -remote \"OpenURL(%s,new-tab)\""))
|
|
|
|
|
(invoke "./configure"
|
|
|
|
|
"-prefix" out
|
|
|
|
|
"-mandir" mandir
|
|
|
|
|
"-browser" browser
|
|
|
|
|
"-coqide" "opt"))))
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "make"
|
|
|
|
|
"-j" (number->string (parallel-job-count))
|
|
|
|
|
"world")))
|
|
|
|
|
(delete 'check)
|
2019-12-12 18:38:09 +00:00
|
|
|
|
(add-after 'install 'remove-duplicate
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
2020-09-06 17:11:32 +00:00
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(coqtop (string-append bin "/coqtop"))
|
|
|
|
|
(coqidetop (string-append bin "/coqidetop"))
|
|
|
|
|
(coqtop.opt (string-append coqtop ".opt"))
|
|
|
|
|
(coqidetop.opt (string-append coqidetop ".opt")))
|
2020-01-06 07:34:23 +00:00
|
|
|
|
;; These files are exact copies without `.opt` extension.
|
|
|
|
|
;; Removing these saves 35 MiB in the resulting package.
|
2020-09-06 17:11:32 +00:00
|
|
|
|
;; Unfortunately, completely deleting them breaks coqide.
|
|
|
|
|
(delete-file coqtop.opt)
|
|
|
|
|
(delete-file coqidetop.opt)
|
|
|
|
|
(symlink coqtop coqtop.opt)
|
|
|
|
|
(symlink coqidetop coqidetop.opt))
|
2019-12-12 18:38:09 +00:00
|
|
|
|
#t))
|
|
|
|
|
(add-after 'install 'install-ide
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
|
(ide (assoc-ref outputs "ide")))
|
|
|
|
|
(mkdir-p (string-append ide "/bin"))
|
|
|
|
|
(rename-file (string-append out "/bin/coqide")
|
|
|
|
|
(string-append ide "/bin/coqide")))
|
|
|
|
|
#t))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(add-after 'install 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(with-directory-excursion "test-suite"
|
|
|
|
|
;; These two tests fail.
|
2020-01-06 07:34:23 +00:00
|
|
|
|
;; Fails because the output is not formatted as expected.
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(delete-file-recursively "coq-makefile/timing")
|
2020-01-06 07:34:23 +00:00
|
|
|
|
;; Fails because we didn't build coqtop.byte.
|
2020-09-13 14:12:18 +00:00
|
|
|
|
(delete-file "misc/printers.sh")
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(invoke "make")))))))
|
|
|
|
|
(home-page "https://coq.inria.fr")
|
|
|
|
|
(synopsis "Proof assistant for higher-order logic")
|
|
|
|
|
(description
|
|
|
|
|
"Coq is a proof assistant for higher-order logic, which allows the
|
|
|
|
|
development of computer programs consistent with their formal specification.
|
|
|
|
|
It is developed using Objective Caml and Camlp5.")
|
2020-01-06 07:34:23 +00:00
|
|
|
|
;; The source code is distributed under lgpl2.1.
|
2018-12-19 15:12:23 +00:00
|
|
|
|
;; Some of the documentation is distributed under opl1.0+.
|
|
|
|
|
(license (list license:lgpl2.1 license:opl1.0+))))
|
|
|
|
|
|
|
|
|
|
(define-public proof-general
|
|
|
|
|
(package
|
|
|
|
|
(name "proof-general")
|
2020-03-29 09:18:56 +00:00
|
|
|
|
(version "4.4")
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(source (origin
|
2020-03-29 09:18:56 +00:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url (string-append
|
|
|
|
|
"https://github.com/ProofGeneral/PG"))
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-03-29 09:18:56 +00:00
|
|
|
|
"0bdfk91wf71z80mdfnl8hpinripndcjgdkz854zil6521r84nqk8"))))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("which" ,which)
|
|
|
|
|
("emacs" ,emacs-minimal)
|
|
|
|
|
("texinfo" ,texinfo)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("host-emacs" ,emacs)
|
|
|
|
|
("perl" ,perl)
|
|
|
|
|
("coq" ,coq)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no check target
|
|
|
|
|
#:make-flags (list (string-append "PREFIX=" %output)
|
|
|
|
|
(string-append "DEST_PREFIX=" %output))
|
|
|
|
|
#:modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(guix build emacs-utils))
|
|
|
|
|
#:imported-modules (,@%gnu-build-system-modules
|
|
|
|
|
(guix build emacs-utils))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-after 'unpack 'disable-byte-compile-error-on-warn
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("\\(setq byte-compile-error-on-warn t\\)")
|
|
|
|
|
"(setq byte-compile-error-on-warn nil)"))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'unpack 'patch-hardcoded-paths
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
|
(coq (assoc-ref inputs "coq"))
|
|
|
|
|
(emacs (assoc-ref inputs "host-emacs")))
|
|
|
|
|
(define (coq-prog name)
|
|
|
|
|
(string-append coq "/bin/" name))
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("/sbin/install-info") "install-info"))
|
|
|
|
|
(substitute* "bin/proofgeneral"
|
|
|
|
|
(("^PGHOMEDEFAULT=.*" all)
|
|
|
|
|
(string-append all
|
|
|
|
|
"PGHOME=$PGHOMEDEFAULT\n"
|
|
|
|
|
"EMACS=" emacs "/bin/emacs")))
|
|
|
|
|
#t)))
|
|
|
|
|
(add-after 'unpack 'clean
|
2019-01-25 08:24:41 +00:00
|
|
|
|
(lambda _
|
|
|
|
|
;; Delete the pre-compiled elc files for Emacs 23.
|
|
|
|
|
(invoke "make" "clean")))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(add-after 'install 'install-doc
|
2019-01-25 08:24:41 +00:00
|
|
|
|
(lambda* (#:key make-flags #:allow-other-keys)
|
|
|
|
|
;; XXX FIXME avoid building/installing pdf files,
|
|
|
|
|
;; due to unresolved errors building them.
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
((" [^ ]*\\.pdf") ""))
|
|
|
|
|
(apply invoke "make" "install-doc" make-flags))))))
|
2020-03-29 09:26:46 +00:00
|
|
|
|
(home-page "https://proofgeneral.github.io/ ")
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(synopsis "Generic front-end for proof assistants based on Emacs")
|
|
|
|
|
(description
|
|
|
|
|
"Proof General is a major mode to turn Emacs into an interactive proof
|
|
|
|
|
assistant to write formal mathematical proofs using a variety of theorem
|
|
|
|
|
provers.")
|
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
|
|
|
|
(define-public coq-flocq
|
|
|
|
|
(package
|
|
|
|
|
(name "coq-flocq")
|
2020-09-13 14:12:18 +00:00
|
|
|
|
(version "3.3.1")
|
2020-01-06 07:35:55 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://gitlab.inria.fr/flocq/flocq.git")
|
|
|
|
|
(commit (string-append "flocq-" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-13 14:12:18 +00:00
|
|
|
|
"01gdykva0lcw6y3dm8j0djxayb87szfg9vn0mxd6z3pks644misl"))))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2020-01-06 07:35:55 +00:00
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
|
("automake" ,automake)
|
|
|
|
|
("ocaml" ,ocaml)
|
2018-12-19 15:12:23 +00:00
|
|
|
|
("which" ,which)
|
|
|
|
|
("coq" ,coq)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list (string-append "--libdir=" (assoc-ref %outputs "out")
|
|
|
|
|
"/lib/coq/user-contrib/Flocq"))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2020-01-06 07:35:55 +00:00
|
|
|
|
(add-after 'unpack 'remove-failing-examples
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "Remakefile.in"
|
|
|
|
|
;; Fails on a union error.
|
|
|
|
|
(("Double_rounding_odd_radix.v") ""))
|
|
|
|
|
#t))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(add-before 'configure 'fix-remake
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "remake.cpp"
|
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda _
|
2019-03-15 12:16:24 +00:00
|
|
|
|
(invoke "./remake")))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
2019-03-15 12:16:24 +00:00
|
|
|
|
(invoke "./remake" "check")))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
;; TODO: requires coq-gappa and coq-interval.
|
|
|
|
|
;(invoke "./remake" "check-more")
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda _
|
2019-03-15 12:16:24 +00:00
|
|
|
|
(invoke "./remake" "install"))))))
|
2020-01-06 07:37:15 +00:00
|
|
|
|
(home-page "https://flocq.gforge.inria.fr/")
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(synopsis "Floating-point formalization for the Coq system")
|
|
|
|
|
(description "Flocq (Floats for Coq) is a floating-point formalization for
|
|
|
|
|
the Coq system. It provides a comprehensive library of theorems on a multi-radix
|
|
|
|
|
multi-precision arithmetic. It also supports efficient numerical computations
|
|
|
|
|
inside Coq.")
|
|
|
|
|
(license license:lgpl3+)))
|
|
|
|
|
|
|
|
|
|
(define-public coq-gappa
|
|
|
|
|
(package
|
|
|
|
|
(name "coq-gappa")
|
2020-09-13 14:12:18 +00:00
|
|
|
|
(version "1.4.4")
|
2020-01-06 07:37:59 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://gitlab.inria.fr/gappa/coq.git")
|
|
|
|
|
(commit (string-append "gappalib-coq-" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-13 14:12:18 +00:00
|
|
|
|
"0f3g3wjkvfkm961l4jpckhsqd43jnvm7f5qqk78qc32zh1fg339n"))))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2020-01-06 07:37:59 +00:00
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
|
("automake" ,automake)
|
|
|
|
|
("ocaml" ,ocaml)
|
2018-12-19 15:12:23 +00:00
|
|
|
|
("which" ,which)
|
|
|
|
|
("coq" ,coq)
|
2020-01-06 07:37:59 +00:00
|
|
|
|
("camlp5" ,camlp5)
|
2018-12-19 15:12:23 +00:00
|
|
|
|
("bison" ,bison)
|
|
|
|
|
("flex" ,flex)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("gmp" ,gmp)
|
|
|
|
|
("mpfr" ,mpfr)
|
|
|
|
|
("boost" ,boost)))
|
2020-01-06 07:37:59 +00:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("coq-flocq" ,coq-flocq)))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list (string-append "--libdir=" (assoc-ref %outputs "out")
|
gnu: Remove more GCC < 7 workarounds.
* gnu/packages/abiword.scm (abiword)[arguments]: Do not pass "-std=c++11" to
the GCC command line.
* gnu/packages/aidc.scm (zbar)[arguments]: Likewise.
* gnu/packages/android.scm (android-libbase, android-libcutils,
android-libziparchive, fastboot)[arguments]: Likewise.
* gnu/packages/audio.scm (azr3, guitarix, suil)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bless)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (libtorrent-rasterbar)[arguments]: Likewise.
* gnu/packages/code.scm (rtags)[arguments]: Likewise.
* gnu/packages/coq.scm (coq-gappa)[arguments]: Likewise.
* gnu/packages/emulators.scm (dolphin-emu)[arguments]: Likewise.
* gnu/packages/engineering.scm (xyce-serial, xyce-parallel)[arguments]: Likewise.
* gnu/packages/gnupg.scm (pinentry-qt)[arguments]: Likewise.
* gnu/packages/gobby.scm (libnet6, obby)[arguments]: Likewise.
* gnu/packages/graph.scm (python-faiss)[arguments]: Likewise.
* gnu/packages/graphics.scm (povray)[arguments]: Likewise.
* gnu/packages/image-processing.scm (opencv, itk-snap)[arguments]: Likewise.
* gnu/packages/image.scm (freeimage)[arguments]: Likewise.
* gnu/packages/kodi.scm (crossguid)[arguments]: Likewise.
* gnu/packages/music.scm (amsynth, qmidiarp, qmidiroute, seq24)[arguments]: Likewise.
* gnu/packages/pdf.scm (python-poppler-qt5)[arguments]: Likewise.
* gnu/packages/sagemath.scm (lcalc)[arguments]: Likewise.
* gnu/packages/video.scm (vlc, mlt, v4l-utils)[arguments]: Likewise.
2019-10-20 11:31:19 +00:00
|
|
|
|
"/lib/coq/user-contrib/Gappa"))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'fix-remake
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "remake.cpp"
|
2019-01-25 08:26:29 +00:00
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
|
#t))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(replace 'build
|
2019-01-25 08:26:29 +00:00
|
|
|
|
(lambda _ (invoke "./remake")))
|
2020-01-06 07:37:59 +00:00
|
|
|
|
;; FIXME: Figure out why failures occur, and re-enable check phase.
|
|
|
|
|
(delete 'check)
|
|
|
|
|
;; (replace 'check
|
|
|
|
|
;; (lambda _ (invoke "./remake" "check")))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(replace 'install
|
2019-01-25 08:26:29 +00:00
|
|
|
|
(lambda _ (invoke "./remake" "install"))))))
|
2020-01-06 07:39:24 +00:00
|
|
|
|
(home-page "https://gappa.gforge.inria.fr/")
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(synopsis "Verify and formally prove properties on numerical programs")
|
|
|
|
|
(description "Gappa is a tool intended to help verifying and formally proving
|
|
|
|
|
properties on numerical programs dealing with floating-point or fixed-point
|
|
|
|
|
arithmetic. It has been used to write robust floating-point filters for CGAL
|
|
|
|
|
and it is used to certify elementary functions in CRlibm. While Gappa is
|
|
|
|
|
intended to be used directly, it can also act as a backend prover for the Why3
|
|
|
|
|
software verification plateform or as an automatic tactic for the Coq proof
|
|
|
|
|
assistant.")
|
|
|
|
|
(license (list license:gpl2+ license:cecill))));either gpl2+ or cecill
|
|
|
|
|
|
|
|
|
|
(define-public coq-mathcomp
|
|
|
|
|
(package
|
|
|
|
|
(name "coq-mathcomp")
|
2020-09-13 14:12:18 +00:00
|
|
|
|
(version "1.11.0")
|
2018-12-23 10:11:33 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
|
(url "https://github.com/math-comp/math-comp")
|
2018-12-23 10:11:33 +00:00
|
|
|
|
(commit (string-append "mathcomp-" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2020-09-13 14:12:18 +00:00
|
|
|
|
(base32 "1axywpa1jcpnidd86irpd1gdbbg2sfbwc652675xisq5wnmfmf6f"))))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("ocaml" ,ocaml)
|
|
|
|
|
("which" ,which)
|
|
|
|
|
("coq" ,coq)))
|
|
|
|
|
(arguments
|
2020-01-05 23:06:02 +00:00
|
|
|
|
`(#:tests? #f ; No tests.
|
2018-12-19 15:12:23 +00:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-before 'build 'chdir
|
2019-01-25 08:28:53 +00:00
|
|
|
|
(lambda _ (chdir "mathcomp") #t))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2019-01-25 08:28:53 +00:00
|
|
|
|
(invoke "make" "-f" "Makefile.coq"
|
|
|
|
|
(string-append "COQLIB=" (assoc-ref outputs "out")
|
|
|
|
|
"/lib/coq/")
|
|
|
|
|
"install"))))))
|
2020-03-05 09:02:40 +00:00
|
|
|
|
(home-page "https://math-comp.github.io/")
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(synopsis "Mathematical Components for Coq")
|
|
|
|
|
(description "Mathematical Components for Coq has its origins in the formal
|
|
|
|
|
proof of the Four Colour Theorem. Since then it has grown to cover many areas
|
|
|
|
|
of mathematics and has been used for large scale projects like the formal proof
|
|
|
|
|
of the Odd Order Theorem.
|
|
|
|
|
|
|
|
|
|
The library is written using the Ssreflect proof language that is an integral
|
|
|
|
|
part of the distribution.")
|
|
|
|
|
(license license:cecill-b)))
|
|
|
|
|
|
|
|
|
|
(define-public coq-coquelicot
|
|
|
|
|
(package
|
|
|
|
|
(name "coq-coquelicot")
|
2020-09-13 14:12:18 +00:00
|
|
|
|
(version "3.1.0")
|
2020-01-06 07:39:52 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://gitlab.inria.fr/coquelicot/coquelicot.git")
|
|
|
|
|
(commit (string-append "coquelicot-" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-13 14:12:18 +00:00
|
|
|
|
"0mz3pxan1237fr5fi79c66y7b9z7bmi0sc45kwrmkczsjm5462jm"))))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2020-01-06 07:39:52 +00:00
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
|
("automake" ,automake)
|
|
|
|
|
("ocaml" ,ocaml)
|
2018-12-19 15:12:23 +00:00
|
|
|
|
("which" ,which)
|
|
|
|
|
("coq" ,coq)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("mathcomp" ,coq-mathcomp)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list (string-append "--libdir=" (assoc-ref %outputs "out")
|
|
|
|
|
"/lib/coq/user-contrib/Coquelicot"))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'fix-remake
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "remake.cpp"
|
2019-01-25 10:39:57 +00:00
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
|
#t))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(replace 'build
|
2019-01-25 10:39:57 +00:00
|
|
|
|
(lambda _ (invoke "./remake")))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(replace 'check
|
2019-01-25 10:39:57 +00:00
|
|
|
|
(lambda _ (invoke "./remake" "check")))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(replace 'install
|
2019-01-25 10:39:57 +00:00
|
|
|
|
(lambda _ (invoke "./remake" "install"))))))
|
2020-01-06 07:40:27 +00:00
|
|
|
|
(home-page "http://coquelicot.saclay.inria.fr")
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(synopsis "Coq library for Reals")
|
|
|
|
|
(description "Coquelicot is an easier way of writing formulas and theorem
|
|
|
|
|
statements, achieved by relying on total functions in place of dependent types
|
|
|
|
|
for limits, derivatives, integrals, power series, and so on. To help with the
|
|
|
|
|
proof process, the library comes with a comprehensive set of theorems that cover
|
|
|
|
|
not only these notions, but also some extensions such as parametric integrals,
|
|
|
|
|
two-dimensional differentiability, asymptotic behaviors. It also offers some
|
|
|
|
|
automations for performing differentiability proofs. Moreover, Coquelicot is a
|
|
|
|
|
conservative extension of Coq's standard library and provides correspondence
|
|
|
|
|
theorems between the two libraries.")
|
|
|
|
|
(license license:lgpl3+)))
|
|
|
|
|
|
|
|
|
|
(define-public coq-bignums
|
|
|
|
|
(package
|
|
|
|
|
(name "coq-bignums")
|
2020-09-13 14:12:18 +00:00
|
|
|
|
(version "8.11.0")
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(source (origin
|
2019-11-24 21:57:52 +00:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
|
(url "https://github.com/coq/bignums")
|
2019-11-24 21:57:52 +00:00
|
|
|
|
(commit (string-append "V" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-13 14:12:18 +00:00
|
|
|
|
"1xcd7c7qlvs0narfba6px34zq0mz8rffnhxw0kzhhg6i4iw115dp"))))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("ocaml" ,ocaml)
|
|
|
|
|
("coq" ,coq)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("camlp5" ,camlp5)))
|
|
|
|
|
(arguments
|
2020-01-07 19:01:53 +00:00
|
|
|
|
`(#:tests? #f ; No test target.
|
2018-12-19 15:12:23 +00:00
|
|
|
|
#:make-flags
|
|
|
|
|
(list (string-append "COQLIBINSTALL=" (assoc-ref %outputs "out")
|
|
|
|
|
"/lib/coq/user-contrib"))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure))))
|
|
|
|
|
(home-page "https://github.com/coq/bignums")
|
|
|
|
|
(synopsis "Coq library for arbitrary large numbers")
|
|
|
|
|
(description "Bignums is a coq library of arbitrary large numbers. It
|
|
|
|
|
provides BigN, BigZ, BigQ that used to be part of Coq standard library.")
|
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
|
|
|
|
|
(define-public coq-interval
|
|
|
|
|
(package
|
|
|
|
|
(name "coq-interval")
|
2020-09-13 14:12:18 +00:00
|
|
|
|
(version "4.0.0")
|
2020-01-06 08:19:57 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://gitlab.inria.fr/coqinterval/interval.git")
|
|
|
|
|
(commit (string-append "interval-" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-13 14:12:18 +00:00
|
|
|
|
"01iz6qmnsm6b9s1vmdjs79vjx9xgwzn5rwyjp6bvs8hg3zlmhpip"))))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2020-01-06 08:19:57 +00:00
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
|
("automake" ,automake)
|
|
|
|
|
("ocaml" ,ocaml)
|
2018-12-19 15:12:23 +00:00
|
|
|
|
("which" ,which)
|
|
|
|
|
("coq" ,coq)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("flocq" ,coq-flocq)
|
|
|
|
|
("bignums" ,coq-bignums)
|
|
|
|
|
("coquelicot" ,coq-coquelicot)
|
|
|
|
|
("mathcomp" ,coq-mathcomp)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list (string-append "--libdir=" (assoc-ref %outputs "out")
|
|
|
|
|
"/lib/coq/user-contrib/Gappa"))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'fix-remake
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "remake.cpp"
|
2019-01-25 10:43:42 +00:00
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
|
#t))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(replace 'build
|
2019-01-25 10:43:42 +00:00
|
|
|
|
(lambda _ (invoke "./remake")))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(replace 'check
|
2019-01-25 10:43:42 +00:00
|
|
|
|
(lambda _ (invoke "./remake" "check")))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(replace 'install
|
2019-01-25 10:43:42 +00:00
|
|
|
|
(lambda _ (invoke "./remake" "install"))))))
|
2018-12-19 15:12:23 +00:00
|
|
|
|
(home-page "http://coq-interval.gforge.inria.fr/")
|
|
|
|
|
(synopsis "Coq tactics to simplify inequality proofs")
|
|
|
|
|
(description "Interval provides vernacular files containing tactics for
|
|
|
|
|
simplifying the proofs of inequalities on expressions of real numbers for the
|
|
|
|
|
Coq proof assistant.")
|
|
|
|
|
(license license:cecill-c)))
|
2019-02-03 15:14:12 +00:00
|
|
|
|
|
|
|
|
|
(define-public coq-autosubst
|
|
|
|
|
;; Latest commit on that branch, where work on supporting coq 8.6 and
|
|
|
|
|
;; more recent versions of coq happen.
|
|
|
|
|
(let ((branch "coq86-devel")
|
2019-05-04 16:23:20 +00:00
|
|
|
|
(commit "fa6ef30664511ffa659cbcf3c962715cbee03572"))
|
2019-02-03 15:14:12 +00:00
|
|
|
|
(package
|
|
|
|
|
(name "coq-autosubst")
|
|
|
|
|
(version (git-version "1" branch commit))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "git://github.com/uds-psl/autosubst.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2019-05-04 16:23:20 +00:00
|
|
|
|
(base32 "1cl0bp96bk6lplbl7n5c703vd3gvbs5mvf2qrf8q333kkqd7jqq4"))))
|
2019-02-03 15:14:12 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f
|
|
|
|
|
#: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/"))
|
|
|
|
|
(invoke "make"
|
|
|
|
|
(string-append "COQLIB=" (assoc-ref outputs "out")
|
|
|
|
|
"/lib/coq/")
|
|
|
|
|
"install"))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("coq" ,coq)))
|
|
|
|
|
(home-page "https://www.ps.uni-saarland.de/autosubst/")
|
|
|
|
|
(synopsis "Coq library for parallel de Bruijn substitutions")
|
|
|
|
|
(description "Formalizing syntactic theories with variable binders is
|
|
|
|
|
not easy. Autosubst is a library for the Coq proof assistant to
|
|
|
|
|
automate this process. Given an inductive definition of syntactic objects in
|
|
|
|
|
de Bruijn representation augmented with binding annotations, Autosubst
|
|
|
|
|
synthesizes the parallel substitution operation and automatically proves the
|
|
|
|
|
basic lemmas about substitutions. This library contains an automation
|
|
|
|
|
tactic that solves equations involving terms and substitutions. This makes the
|
|
|
|
|
usage of substitution lemmas unnecessary. The tactic is based on our current
|
|
|
|
|
work on a decision procedure for the equational theory of an extension of the
|
|
|
|
|
sigma-calculus by Abadi et al. The library is completely written in Coq and
|
|
|
|
|
uses Ltac to synthesize the substitution operation.")
|
|
|
|
|
(license license:bsd-3))))
|
2019-02-13 11:34:40 +00:00
|
|
|
|
|
|
|
|
|
(define-public coq-equations
|
|
|
|
|
(package
|
|
|
|
|
(name "coq-equations")
|
2020-09-13 14:12:18 +00:00
|
|
|
|
(version "1.2.3")
|
2019-02-13 11:34:40 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
|
(url "https://github.com/mattam82/Coq-Equations")
|
2020-09-13 14:12:18 +00:00
|
|
|
|
(commit (string-append "v" version "-8.11"))))
|
2019-02-13 11:34:40 +00:00
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-13 14:12:18 +00:00
|
|
|
|
"1srxz1rws8jsh7402g2x2vcqgjbbsr64dxxj5d2zs48pmhb20csf"))))
|
2019-02-13 11:34:40 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("ocaml" ,ocaml)
|
|
|
|
|
("coq" ,coq)
|
|
|
|
|
("camlp5" ,camlp5)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:test-target "test-suite"
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2020-01-06 08:20:41 +00:00
|
|
|
|
(invoke "sh" "./configure.sh")))
|
2019-02-13 11:34:40 +00:00
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(invoke "make"
|
|
|
|
|
(string-append "COQLIB=" (assoc-ref outputs "out")
|
|
|
|
|
"/lib/coq/")
|
|
|
|
|
"install"))))))
|
|
|
|
|
(home-page "https://mattam82.github.io/Coq-Equations/")
|
|
|
|
|
(synopsis "Function definition plugin for Coq")
|
|
|
|
|
(description "Equations provides a notation for writing programs
|
|
|
|
|
by dependent pattern-matching and (well-founded) recursion in Coq. It
|
|
|
|
|
compiles everything down to eliminators for inductive types, equality
|
|
|
|
|
and accessibility, providing a definitional extension to the Coq
|
|
|
|
|
kernel.")
|
|
|
|
|
(license license:lgpl2.1)))
|
2019-05-22 11:33:23 +00:00
|
|
|
|
|
|
|
|
|
(define-public coq-stdpp
|
|
|
|
|
(package
|
|
|
|
|
(name "coq-stdpp")
|
2020-09-08 12:35:11 +00:00
|
|
|
|
(version "1.4.0")
|
2019-05-22 11:33:23 +00:00
|
|
|
|
(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
|
2020-01-07 19:02:36 +00:00
|
|
|
|
(base32
|
2020-09-08 12:35:11 +00:00
|
|
|
|
"1m6c7ibwc99jd4cv14v3r327spnfvdf3x2mnq51f9rz99rffk68r"))))
|
2019-05-22 11:33:23 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("coq" ,coq)))
|
|
|
|
|
(arguments
|
2020-01-07 19:03:07 +00:00
|
|
|
|
`(#:tests? #f ; Tests are executed during build phase.
|
2019-05-22 11:33:23 +00:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(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
|
|
|
|
|
@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 ∅, ∪, 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 Leibniz
|
|
|
|
|
equality can be used as much as possible (for example, for maps we have m1 =
|
|
|
|
|
m2 iff ∀ i, m1 !! i = m2 !! i). On top of that, the library provides 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_solver
|
|
|
|
|
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)))
|