From patchwork Tue Nov 16 17:59:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 34536 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5BAF327BBE4; Tue, 16 Nov 2021 18:00:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2500227BBE1 for ; Tue, 16 Nov 2021 18:00:14 +0000 (GMT) Received: from localhost ([::1]:55766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn2kf-0002f4-7v for patchwork@mira.cbaines.net; Tue, 16 Nov 2021 13:00:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn2kV-0002cw-7M for guix-patches@gnu.org; Tue, 16 Nov 2021 13:00:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mn2kU-0000Gp-HN for guix-patches@gnu.org; Tue, 16 Nov 2021 13:00:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mn2kU-0001df-AM; Tue, 16 Nov 2021 13:00:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51896] [PATCH] gnu: Add coq-semantics. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: julien@lepiller.eu, guix-patches@gnu.org Resent-Date: Tue, 16 Nov 2021 18:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51896 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51896@debbugs.gnu.org Cc: zimoun , julien@lepiller.eu X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: julien@lepiller.eu Received: via spool by submit@debbugs.gnu.org id=B.16370855906239 (code B ref -1); Tue, 16 Nov 2021 18:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Nov 2021 17:59:50 +0000 Received: from localhost ([127.0.0.1]:59070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mn2kI-0001cY-2H for submit@debbugs.gnu.org; Tue, 16 Nov 2021 12:59:50 -0500 Received: from lists.gnu.org ([209.51.188.17]:57028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mn2kG-0001cM-GT for submit@debbugs.gnu.org; Tue, 16 Nov 2021 12:59:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn2kG-0002Oh-0l for guix-patches@gnu.org; Tue, 16 Nov 2021 12:59:48 -0500 Received: from [2a00:1450:4864:20::32e] (port=42934 helo=mail-wm1-x32e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mn2kE-0000Eq-Es for guix-patches@gnu.org; Tue, 16 Nov 2021 12:59:47 -0500 Received: by mail-wm1-x32e.google.com with SMTP id d72-20020a1c1d4b000000b00331140f3dc8so106893wmd.1 for ; Tue, 16 Nov 2021 09:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=K5B3mhRmS1lOqmp8aI+9xhdtU4n5MnpSvClN1iG+WhA=; b=Js5wqcP5DZJsOSk/GSCSOYr+DliNAgeZY8CveYPgGf3ly2UH3QQ7Ff3noy78FFEHIG BeccNleHzL/ABirpEAHAN8w+nSi4LSvwQm171QS8j7li0pYA2tSb6FoLQn1yLogoXxrt 2ivlLIF2QDeucYJYeHVUGbTC+FMDRne5/oGIp3wZXNYBUm8lF3wiH+hmnFKTDTmE3xSb znqbaC9olFBbSqP4o3t0dPwmvGoLOJbOTngXsV+6iRC7J0tvALgh4sFntOK5tKMUnIYu rH6154X+Tj1uf92hDQAXzT0NTVRzGhWThPhZN8OhtXYSeWw3VgfY6xh3oeMWcqBsnGu3 UX2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=K5B3mhRmS1lOqmp8aI+9xhdtU4n5MnpSvClN1iG+WhA=; b=erPxygZKE9M4An9QthS47NS3B6+4ykvSdmO06lWr8JOVnEH42G+OY8hhrBb/T8SkO5 xwmcrCpBvRM3gaDTarCTcraY8OxvHmaHNdsS9VNBV9rJTDgHZ5duhTeG5/oFNdYWtbI/ iZWUPfSihea96o5zoYt95KiJS3cRS7+kkaJem2x6K8e9xFY8bvaAtADdf87C2lnJFbUk 9BODPQdANYktGAHrfondTClzzt0NRtNRna+/lAb/uRhHflleDkeDyoxNYC3Z4mRuX9Zs XsnvNGbbl95OhpB6/SrY23NNnNCxk3JymT85Br3793n5yRLCgmkf0yL7S8CJ25PrzWj/ WqxQ== X-Gm-Message-State: AOAM533bT6r4hsk5XBSPzEhG+lM23ii5s1K4bLY+OYsxXTJcpDQLzXob Ud0BAfQbFPfmrJrusjO8kH+jjxynktU= X-Google-Smtp-Source: ABdhPJyqtNerRXUnFlEOKb9amB0+/AFNGyLmeTWj+RhX2A8AkmhFq9AoCPvRjWH2GF56v8NGU7NguQ== X-Received: by 2002:a05:600c:2dc8:: with SMTP id e8mr9802019wmh.189.1637085584607; Tue, 16 Nov 2021 09:59:44 -0800 (PST) Received: from localhost.localdomain ([193.48.40.110]) by smtp.gmail.com with ESMTPSA id d15sm25364183wri.50.2021.11.16.09.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 09:59:44 -0800 (PST) From: zimoun Date: Tue, 16 Nov 2021 18:59:36 +0100 Message-Id: <20211116175936.11987-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/coq.scm (coq-semantics): New variable. --- gnu/packages/coq.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) base-commit: 122396075f12b013b6bde56dafb895587b95bc9d 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 ;;; Copyright © 2020 Robin Green ;;; Copyright © 2021 Xinglu Chen +;;; Copyright © 2021 Simon Tournier ;;; ;;; 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")