From patchwork Thu Feb 7 13:46:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Frumin X-Patchwork-Id: 981 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 534A416BCD; Thu, 7 Feb 2019 13:47:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id C914D16B45 for ; Thu, 7 Feb 2019 13:47:09 +0000 (GMT) Received: from localhost ([127.0.0.1]:40274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grk1F-0002i2-1p for patchwork@mira.cbaines.net; Thu, 07 Feb 2019 08:47:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grk1B-0002gk-3A for guix-patches@gnu.org; Thu, 07 Feb 2019 08:47:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grk18-0008A8-Sm for guix-patches@gnu.org; Thu, 07 Feb 2019 08:47:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37367) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grk18-00089u-Ke for guix-patches@gnu.org; Thu, 07 Feb 2019 08:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1grk18-0007rD-FI for guix-patches@gnu.org; Thu, 07 Feb 2019 08:47:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34299] [PATCH] gnu: Add coq-autosubst Resent-From: Dan Frumin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Feb 2019 13:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34299 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34299@debbugs.gnu.org Received: via spool by 34299-submit@debbugs.gnu.org id=B34299.154954718930152 (code B ref 34299); Thu, 07 Feb 2019 13:47:02 +0000 Received: (at 34299) by debbugs.gnu.org; 7 Feb 2019 13:46:29 +0000 Received: from localhost ([127.0.0.1]:36648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grk0a-0007qG-IU for submit@debbugs.gnu.org; Thu, 07 Feb 2019 08:46:28 -0500 Received: from smtp1.science.ru.nl ([131.174.16.143]:59858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grk0Y-0007q6-OW for 34299@debbugs.gnu.org; Thu, 07 Feb 2019 08:46:27 -0500 Received: from [192.168.4.17] (ip565a9ee0.direct-adsl.nl [86.90.158.224] (may be forged)) (authen=dfrumin) by smtp1.science.ru.nl (8.14.4/5.32) with ESMTP id x17DkO0t003267 for <34299@debbugs.gnu.org>; Thu, 7 Feb 2019 14:46:25 +0100 References: <20190203152426.5750-1-dfrumin@cs.ru.nl> From: Dan Frumin Message-ID: <0d4af4f2-2ebc-6134-acc2-9d6727ef49e0@cs.ru.nl> Date: Thu, 7 Feb 2019 14:46:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 Hi Julien! > So, why this commit and this branch in particular? It seems that there > are some releases on github, and we tend to prefer using a released > version of packages. This is the latest commit in the branch that compiles with the latest version of Coq. Unfortunately the files on the "releases" page are outdated. > Please remove these comments :) > We now use (invoke ...) instead of (zero? (system* ...)). Thanks, I've updated it! By the way, I did not subscribe to the guix-pactches. Is there a way to receive email on this particular issue from the bug tracker, without subscribing to the mailing list in full? From 924a078455d6c73022da22523e018e33af3ee334 Mon Sep 17 00:00:00 2001 From: Dan Frumin Date: Sun, 3 Feb 2019 16:14:12 +0100 Subject: [PATCH] gnu: Add coq-autosubst --- gnu/packages/coq.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm index 51dd5dedc..9c6d9f238 100644 --- a/gnu/packages/coq.scm +++ b/gnu/packages/coq.scm @@ -444,3 +444,47 @@ provides BigN, BigZ, BigQ that used to be part of Coq standard library.") simplifying the proofs of inequalities on expressions of real numbers for the Coq proof assistant.") (license license:cecill-c))) + +(define-public coq-autosubst + (let ((branch "coq86-devel") + (commit "d0d73557979796b3d4be7aac72135581c33f26f7")) + (package + (name "coq-autosubst") + (synopsis "A Coq library for parallel de Bruijn substitutions") + (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 + (base32 "1852xb5cwkjw3dlc0lp2sakwa40bjzw37qmwz4bn3vqazg1hnh6r")))) + (build-system gnu-build-system) + (native-inputs + `(("coq" ,coq))) + (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")))))) + (description "Formalizing syntactic theories with variable binders is +not easy. We present Autosubst, 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. Our core contribution is 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.") + (home-page "https://www.ps.uni-saarland.de/autosubst/") + (license bsd-3)))) -- 2.17.1