From patchwork Fri Sep 2 15:25:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Garek Dyszel X-Patchwork-Id: 42150 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 081B627BBEA; Fri, 2 Sep 2022 16:30:27 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6F8B327BBE9 for ; Fri, 2 Sep 2022 16:30:26 +0100 (BST) Received: from localhost ([::1]:35476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oU8cj-0004m5-C9 for patchwork@mira.cbaines.net; Fri, 02 Sep 2022 11:30:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oU8cN-0004jn-8l for guix-patches@gnu.org; Fri, 02 Sep 2022 11:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57738) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oU8cM-0007Ry-VZ for guix-patches@gnu.org; Fri, 02 Sep 2022 11:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oU8cM-00086d-QV for guix-patches@gnu.org; Fri, 02 Sep 2022 11:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57540] [PATCH 6/6] gnu: Add coq-mathcomp-bigenough and coq-mathcomp-analysis. References: <79d544f7d8ba64b631a6f0f1d2ef0b08@disroot.org> In-Reply-To: <79d544f7d8ba64b631a6f0f1d2ef0b08@disroot.org> Resent-From: Garek Dyszel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 02 Sep 2022 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57540 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57540@debbugs.gnu.org Received: via spool by 57540-submit@debbugs.gnu.org id=B57540.166213254531057 (code B ref 57540); Fri, 02 Sep 2022 15:30:02 +0000 Received: (at 57540) by debbugs.gnu.org; 2 Sep 2022 15:29:05 +0000 Received: from localhost ([127.0.0.1]:47483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oU8bR-00084q-7a for submit@debbugs.gnu.org; Fri, 02 Sep 2022 11:29:05 -0400 Received: from knopi.disroot.org ([178.21.23.139]:41538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oU8bQ-00084j-13 for 57540@debbugs.gnu.org; Fri, 02 Sep 2022 11:29:04 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 5E60C49FAC for <57540@debbugs.gnu.org>; Fri, 2 Sep 2022 17:29:03 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id Fqjb6HtN0_TZ for <57540@debbugs.gnu.org>; Fri, 2 Sep 2022 17:29:01 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662132348; bh=Y6CP7UBq27/LruMP8Ajvwr3NlhxPwVCIiDfLKm85lVU=; h=Date:From:To:Subject; b=C7CmnsJSMSE3UvxxUQ5qRZXoVDGaV1lZcw+FHlAfJYNHYjWGCMh1fDN4Ch7uS6Vlf 7B2d3cdZtDzOjEPZF5dTaKx2mTKp12F4nnnxiZQAM6C3AkMttEqnp0gRAN/TJdCP1J qoqf8rNH1+J0cDfjZjAwG4uP3gVqoerCK9wvWW7yNuqV80ZoM9PXLkpxL7Yd15xzDL PcgjZsZlfpIs+hsMfm2RkVN3B+VmJdfZn8MAXsBcCTKeOnefi0HO8xrwhziACo/GIk Ttxi3Hi9xyeimOr3M70uHx4suVAx5peXkibSioLzDPS8jK3S3aXmmsBn+bOoJcoAlH eR/9EFImktifA== Date: Fri, 02 Sep 2022 11:25:48 -0400 Message-ID: X-Sender: garekdyszel@disroot.org 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" Reply-to: Garek Dyszel X-ACL-Warn: , Garek Dyszel via Guix-patches X-Patchwork-Original-From: Garek Dyszel via Guix-patches via From: Garek Dyszel X-getmail-retrieved-from-mailbox: Patches * gnu/packages/coq.scm (coq-mathcomp-bigenough coq-mathcomp-analysis) --- gnu/packages/coq.scm | 105 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) + "This repository contains an experimental library for +real analysis for the Coq proof-assistant, using the Mathematical +Components library.") + (home-page "https://math-comp.github.io/") + (license license:cecill-c))) diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm index f0aa233..680c2fa 100644 --- a/gnu/packages/coq.scm +++ b/gnu/packages/coq.scm @@ -869,3 +869,108 @@ (define-public coq-mathcomp-finmap subsume notations for finite sets.") (home-page "https://math-comp.github.io/") (license license:cecill-b))) + +(define-public coq-mathcomp-bigenough + ;; On the homepage, it is mentioned that coq-mathcomp-bigenough + ;; is going to be obsolete sometime in the near future. + ;; This package was included because of the following error, + ;; encountered while building coq-mathcomp-analysis: + ;; "Warning: in file theories/altreals/realseq.v, library + ;; mathcomp.bigenough.bigenough is required and has not been + ;; found in the loadpath!" + ;; So added https://github.com/math-comp/bigenough. + (package + (name "coq-mathcomp-bigenough") + (version "1.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/math-comp/bigenough") + (commit version) + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "02f4dv4rz72liciwxb2k7acwx6lgqz4381mqyq5854p3nbyn06aw")))) + (build-system gnu-build-system) + (arguments + `( ;"No rule to make target 'test'. Stop." + ;; No references to tests in Makefile.common. + #:tests? #f + #:make-flags ,#~(list (string-append "COQBIN=" + #$(this-package-input "coq-core") + "/bin/") + (string-append "COQMF_COQLIB=" + (assoc-ref %outputs "out") + "/lib/ocaml/site-lib/coq") + (string-append "COQLIBINSTALL=" + (assoc-ref %outputs "out") + "/lib/coq/user-contrib")) + #:phases (modify-phases %standard-phases + (delete 'configure)))) + (propagated-inputs (list coq coq-core coq-mathcomp which)) + (home-page "https://math-comp.github.io/") + (synopsis "Small library to do epsilon - N reasoning") + (description + "The package contains a package to reasoning with big enough +objects (mostly natural numbers). This package is essentially for +backward compatibility purposes as `bigenough` will be subsumed by the +near tactics. The formalization is based on the Mathematical +Components library.") + (license license:cecill-b))) + +(define-public coq-mathcomp-analysis + (package + (name "coq-mathcomp-analysis") + (version "0.5.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/math-comp/analysis") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "16bv2kxm6nrgfm9lp88sls1vqs26d4m3fxbccmy328ak5srcbn6l")))) + (build-system gnu-build-system) + (arguments + `( ;No tests were supplied with this library: + ;; No rule to make target 'check'. Stop. + ;; Makefile.common has no references to tests at all + ;; (yet). + #:tests? #f + #:make-flags ,#~(list (string-append "COQBIN=" + #$(this-package-input "coq-core") + "/bin/") + (string-append "COQBININSTALL=" + (assoc-ref %outputs "out") "/bin/") + (string-append "DESTDIR=" + (assoc-ref %outputs "out")) + (string-append "COQMF_COQLIB=" + (assoc-ref %outputs "out") + "/lib/ocaml/site-lib/coq") + (string-append "COQLIBINSTALL=" + (assoc-ref %outputs "out") + "/lib/coq/user-contrib")) + #:phases (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" "build" make-flags)))))) + (inputs (list coq + coq-stdlib + coq-mathcomp + coq-mathcomp-finmap + coq-mathcomp-hierarchy-builder + coq-elpi-1.14 + coq-mathcomp-bigenough + coq-core + which + python)) + (synopsis "Real analysis for the Coq proof assistant") + (description