From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SKMrLxX+k2EhdgAAgWs5BA (envelope-from ) for ; Tue, 16 Nov 2021 19:53:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kGK6KhX+k2HOBAAAbx9fmQ (envelope-from ) for ; Tue, 16 Nov 2021 18:53:09 +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 54F663074F for ; Tue, 16 Nov 2021 19:53:09 +0100 (CET) Received: from localhost ([::1]:59048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn3Zs-0001d4-4t for larch@yhetil.org; Tue, 16 Nov 2021 13:53:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn3Zm-0001cL-Ok for guix-patches@gnu.org; Tue, 16 Nov 2021 13:53:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47645) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mn3Zm-0007dk-Gr for guix-patches@gnu.org; Tue, 16 Nov 2021 13:53:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mn3Zm-0008MA-GC for guix-patches@gnu.org; Tue, 16 Nov 2021 13:53:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51896] [PATCH v2 1/5] gnu: Add coq-semantics. References: <20211116175936.11987-1-zimon.toutoune@gmail.com> In-Reply-To: <20211116175936.11987-1-zimon.toutoune@gmail.com> Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Nov 2021 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51896 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51896@debbugs.gnu.org Cc: julien@lepiller.eu, zimoun Received: via spool by 51896-submit@debbugs.gnu.org id=B51896.163708872731965 (code B ref 51896); Tue, 16 Nov 2021 18:53:02 +0000 Received: (at 51896) by debbugs.gnu.org; 16 Nov 2021 18:52:07 +0000 Received: from localhost ([127.0.0.1]:59182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mn3Yq-0008JG-7z for submit@debbugs.gnu.org; Tue, 16 Nov 2021 13:52:07 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:36635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mn3Yo-0008IY-Cy for 51896@debbugs.gnu.org; Tue, 16 Nov 2021 13:52:02 -0500 Received: by mail-wm1-f52.google.com with SMTP id i8-20020a7bc948000000b0030db7b70b6bso2818782wml.1 for <51896@debbugs.gnu.org>; Tue, 16 Nov 2021 10:52:02 -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=nqlNzlDsq2lv9OqNcPwWRDsay60FTnY6Z3K77N+v+VA=; b=aJ5hbzaLfCvffHEgeZ+FLh9mHzfv2vyttFIZKchgAQs2GUEej2hs/2BExuxzGaZm0D NHq+TYf/+8IVuyOCfeK/Iho3LBqZyUe8woz4yeYyQBO4PH8d8B223O+Z4L4R0WSRORam MO4IynFKq5qN1k2PYg0+FtzRKSifgc8ocE+oRxa6vY/M59A1cqzkvwRKEyeL4MH+YFAI logxhfMkCdHHLDvpztsbmXDywnNbUAppLoL0/9Ly2pYGAkg2bFkpAez0K/v1lajXplvm 22mp8+vJcKvc6bH7U36cMrLd0cU5M/oSgMZrlNNq8N/gQGxPehXqlgsrseFPjLcvYQrE fU5Q== 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=nqlNzlDsq2lv9OqNcPwWRDsay60FTnY6Z3K77N+v+VA=; b=QfCYgxvngY9FWLTukhHBHWCRp0e31o3Eghjaz0hoOALKbcdgai7p4oe+2rE8tQ5T28 BJBjqVc9/YrQvw5tyfjZAxUFcRj2HKucsYJGT5PKbuh5E7jkVeChx2IXIGiYh1UPCAWs V1TobjHyCLzcaAmUgWvxoiHW7ijnt1Ob/SEZvOMFsEKuYVBI2pLXPUpgjDHOaLtF4YJb SyyzQ/nzUze5spyk/sQEfqabpYPTHBIo/iaLe8a0bpdM5NbjhfycLUFa2aGE9cJvp/Xo EKD6uzmGZhEZIktK+MruU6CfS0+SUnFtJbgYh3q6keeH5gTF7AtvKXXcGDYW9/z/uw+d Qi1g== X-Gm-Message-State: AOAM531EX30K1YkBiajsU/06ohsslPi/kpUrbC3mDESwUbVAFoGjiqsq YDNO7C8BnEFJqLifo6s4BbTnFcPLZPI= X-Google-Smtp-Source: ABdhPJwD9SyoRev6GWuq4LYpfP3zLa39IAhWeh8eruKjtvqUXSvaqec5SmxDXNpB1BjZmd2fygoUMA== X-Received: by 2002:a05:600c:21cd:: with SMTP id x13mr73106925wmj.52.1637088716315; Tue, 16 Nov 2021 10:51:56 -0800 (PST) Received: from localhost.localdomain ([193.48.40.110]) by smtp.gmail.com with ESMTPSA id i15sm3821993wmq.18.2021.11.16.10.51.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 10:51:55 -0800 (PST) From: zimoun Date: Tue, 16 Nov 2021 19:51:50 +0100 Message-Id: <20211116185154.22062-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-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637088789; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nqlNzlDsq2lv9OqNcPwWRDsay60FTnY6Z3K77N+v+VA=; b=mX3W6gqFwJKJZ44Qw2pB7xqGlfqnyLH90nRXuSALZGl3VtE43KbjlmVyED253M0ffW4I83 JGYFtSvL6WFqH4iHHwdwoQluhrMzBKebs89IbhnyNhLU39or6htAuLOXiyk4WfU3+ecVSs HolPvp4yeeDIW0rdXZP3aFnX2FaFPsA1yQOacloQoKGigibkNYRgGyuptn7lSX9V2L5Uv8 SZ2laaZ/hnO3ciRLOrqCUpoaFWgmdLfWmRrvt1mFgL0rjqRt9RKCf3HyvPLOFWxObBSR19 WZxF4XEE5/WgV0mStelfMUiRCIpCm7qM0MrCZ9sJGdzlhB+fb6ejRgeXhYaFBA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637088789; a=rsa-sha256; cv=none; b=HMJxXdh1viZjZTHUXecm72m9f6QOFF/WFw8Sl31MQ/hTZPUTNaOdK0AQAyIihOMjHNDeEK z8Xeo7nNiUPXwVCdTNX0ziofkyf01brk+c30hJQ9LhW6fXvotg5aWSIGRCRYr0gMjybMxe kUUpeRgxXjJ1HInJ/M/9DuVKmSIIc98DPXyfo3YEHKkVRPdAn9uhDN4YohVe6zq6LFp76n VBQXFC+6LT+VCq37ZzNIX33U2xYcAXI04UC9io89LBVYwH5GQBQY/EmkKUeD3O/H5X/f73 8SbjZAo8fgE04zm7on1GeLgeid6fmIf4uKl4T1FtjS3GPA9IWJejefUAu463gw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=aJ5hbzaL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=aJ5hbzaL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 54F663074F X-Spam-Score: -1.75 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7Nmo1VbRm/nC * gnu/packages/coq.scm (coq-semantics): New variable. --- gnu/packages/coq.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm index dccb9bea4c..322bdb126e 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,56 @@ (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)))) + (modules '((guix build utils))) + (snippet + '(substitute* "Makefile.coq.local" + ;; Num was part of OCaml and now external + (("-libs nums") "-use-ocamlfind -pkg num -libs num"))) + (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 + #: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-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