From: zimoun <zimon.toutoune@gmail.com>
To: 51896@debbugs.gnu.org
Cc: zimoun <zimon.toutoune@gmail.com>, julien@lepiller.eu
Subject: [bug#51896] [PATCH] gnu: Add coq-semantics.
Date: Tue, 16 Nov 2021 18:59:36 +0100 [thread overview]
Message-ID: <20211116175936.11987-1-zimon.toutoune@gmail.com> (raw)
* gnu/packages/coq.scm (coq-semantics): New variable.
---
gnu/packages/coq.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm
index dccb9bea4c..ca9335302f 100644
--- a/gnu/packages/coq.scm
+++ b/gnu/packages/coq.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2020 raingloom <raingloom@riseup.net>
;;; Copyright © 2020 Robin Green <greenrd@greenrd.org>
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
+;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -573,6 +574,59 @@ (define-public coq-equations
kernel.")
(license license:lgpl2.1)))
+(define-public coq-semantics
+ (package
+ (name "coq-semantics")
+ (version "8.13.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/coq-community/semantics")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0m5si9dsv96z92gy4xaqz8mzyz8zp7j1sp542l0wzsp5xgyfpc7i"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("coq" ,coq)
+ ("ocaml" ,ocaml)
+ ("ocamlbuild" ,ocamlbuild)
+ ("ocaml-findlib" ,ocaml-findlib)))
+ (inputs
+ `(("ocaml-num" ,ocaml-num)))
+ (arguments
+ `(#:tests? #f ;included in Makefile
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-ocaml-Big_int
+ (lambda _
+ (substitute* "Makefile.coq.local"
+ ;; Num has part of OCaml and now external
+ (("-libs nums") "-use-ocamlfind -pkg num -libs num"))))
+ (delete 'configure)
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (invoke "make"
+ (string-append "COQLIB=" (assoc-ref outputs "out")
+ "/lib/coq/")
+ "install"))))))
+ (home-page "https://github.com/coq-community/semantics")
+ (synopsis "Survey of semantics styles")
+ (description
+ "This package provides a survey of programming language semantics styles,
+from natural semantics through structural operational, axiomatic, and
+denotational semantics, for a miniature example of an imperative programming
+language. Their encoding, the proofs of equivalence of different styles,
+abstract interpretation, and the proof of soundess obtained from axiomatic
+semantics or abstract interpretation is done in Coq. The tools can be run
+inside Coq, thus making them available for proof by reflection. Code can also
+be extracted and connected to a yacc-based parser, thanks to the use of a
+functor parameterized by a module type of strings. A hand-written parser is
+also provided in Coq, without associated proofs.")
+ (license license:expat)))
+
(define-public coq-stdpp
(package
(name "coq-stdpp")
base-commit: 122396075f12b013b6bde56dafb895587b95bc9d
--
2.32.0
next reply other threads:[~2021-11-16 18:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-16 17:59 zimoun [this message]
2021-11-16 18:07 ` [bug#51896] [PATCH] gnu: Add coq-semantics Julien Lepiller
2021-11-16 18:13 ` zimoun
2021-11-16 18:24 ` Julien Lepiller
2021-11-18 3:35 ` bug#51896: " Julien Lepiller
2021-11-16 18:51 ` [bug#51896] [PATCH v2 1/5] " zimoun
2021-11-16 18:51 ` [bug#51896] [PATCH v2 2/5] gnu: coq-mathcomp: Adjust '#:make-flags' zimoun
2021-11-16 18:51 ` [bug#51896] [PATCH v2 3/5] gnu: coq-autosubst: " zimoun
2021-11-16 18:51 ` [bug#51896] [PATCH v2 4/5] gnu: coq-equations: " zimoun
2021-11-16 18:51 ` [bug#51896] [PATCH v2 5/5] gnu: coq-stdpp: " zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211116175936.11987-1-zimon.toutoune@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=51896@debbugs.gnu.org \
--cc=julien@lepiller.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.