From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GMJtEqzxk2HyMAAAgWs5BA (envelope-from ) for ; Tue, 16 Nov 2021 19:00:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mDsUDqzxk2FOZAAAbx9fmQ (envelope-from ) for ; Tue, 16 Nov 2021 18:00:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C2E27F7C2 for ; Tue, 16 Nov 2021 19:00:11 +0100 (CET) Received: from localhost ([::1]:55766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn2kd-0002f4-0a for larch@yhetil.org; Tue, 16 Nov 2021 13:00:11 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637085612; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=K5B3mhRmS1lOqmp8aI+9xhdtU4n5MnpSvClN1iG+WhA=; b=IEx7XjFfODw4VvV9vyo1GCcBjt13sW+JSkrSIP48HuAH4eX+SV7Cw+pyFL1PUdpL6V3MqN /ClJ023JjVfm7JJOtyR7/cPFLwMRuwCo9yuSlvi6bft50o0pALTswqzPtYiFBLqJLh+agI QtmPthrB54Av/7haRvR57NhNv5BxYXhFNZYjNzRxNxs7MwXX6iBZ3kI8XaQhsC5FgGxtqB v5iXYE/JMnC4g470ZpsJsPkfS1xq9CgNTfBCbJ5XNLZpwjtuS3DVi1kSv1ImLr87aMNCkf meKupo9NUbZnGl3owQVikLU2ddDbxssMsU0Dbnmbp5Lqzen+WAID9PkPks5rPQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637085612; a=rsa-sha256; cv=none; b=IsgI1Cjj4mAea1JN+JkHRCcjy3McFQ+wfICde7+525eJ/oAQ1U8MT9Afu1bLZRUNW2cGc7 cmFUZHjBCBpYtHGsuZqmmkG2BXSB0BNF1nxzw+0kw9wSxSk7x93oEjk2+9Bqi+V9HX3lkb zXSdaSBwYuUCsz5YYDfTHkeVq7OWymKzJqs+1Ko0rle6iFedUsn24d8+hZqDAfxHfs4Yjz AqGHjd7BuwtiJXuhb8A2TMSz7ng4DeGz78SDkcsF6lA204NBxUMz7mqbRDZnCflgJDlyIx wWmLeRPSSkluYIw9MLqvLZkCFfDEr/JFDshl1JwUU74MkMSHcdXnmhgvgBc8MQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Js5wqcP5; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.05 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Js5wqcP5; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C2E27F7C2 X-Spam-Score: -2.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: gvh9cPPPdrvG * 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 ;;; 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") base-commit: 122396075f12b013b6bde56dafb895587b95bc9d -- 2.32.0