From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id Q1eXGD0E+GK/GgAAbAwnHQ (envelope-from ) for ; Sat, 13 Aug 2022 22:06:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +G1QFz0E+GJCEAEAauVa8A (envelope-from ) for ; Sat, 13 Aug 2022 22:06:21 +0200 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 07139878B for ; Sat, 13 Aug 2022 22:06:20 +0200 (CEST) Received: from localhost ([::1]:43672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMxOl-000547-RI for larch@yhetil.org; Sat, 13 Aug 2022 16:06:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMxOU-00053z-Ux for guix-patches@gnu.org; Sat, 13 Aug 2022 16:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45444) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMxOU-0002RL-Lp for guix-patches@gnu.org; Sat, 13 Aug 2022 16:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMxOU-0004ln-Fo for guix-patches@gnu.org; Sat, 13 Aug 2022 16:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57181] [PATCH] gnu: maths: Add newer SAT solvers cryptominisat5 and kissat Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 13 Aug 2022 20:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57181 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maximilian Heisinger Cc: 57181@debbugs.gnu.org Received: via spool by 57181-submit@debbugs.gnu.org id=B57181.166042111318278 (code B ref 57181); Sat, 13 Aug 2022 20:06:02 +0000 Received: (at 57181) by debbugs.gnu.org; 13 Aug 2022 20:05:13 +0000 Received: from localhost ([127.0.0.1]:35193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMxNg-0004kk-Hn for submit@debbugs.gnu.org; Sat, 13 Aug 2022 16:05:12 -0400 Received: from mail-ej1-f65.google.com ([209.85.218.65]:43697) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMxNe-0004kU-DR for 57181@debbugs.gnu.org; Sat, 13 Aug 2022 16:05:11 -0400 Received: by mail-ej1-f65.google.com with SMTP id gb36so7263383ejc.10 for <57181@debbugs.gnu.org>; Sat, 13 Aug 2022 13:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc; bh=0IsE2Ds81o2vvWL+BE9twWtXklcAGJGKd7mPwecrFPc=; b=g1C1Egg2lZr4RymYmaJLXNPjyZkHQgr/l70myNlju0cfC6pWV1UDVGdmzbVTcmOIrl FTIe6dN5BR1xCjHyxUDF8V9VbxCUA+18GPQvztLkLohz7Yteq07R+0PjOA3QedM4ju5M ++K6gRN00TC6X9VQ9aaom/qu+4K1tvhJ66Ac9lXyAY+mCTErrzuEG44BR/kz3fb1KJAU jwRKu0X9APLe4eT7pP6o5kZPfIa0lq0ZOUNzVUVqbPGZGBWLl61H6empeOE/9ti6LFWl 9Sgk8vnUoau74V2cPOQl2tlbiWCz1T3p2qSJb9t+ZniNFbInnVMGP8XnB9Mc+Iq/+2fT Wwmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc; bh=0IsE2Ds81o2vvWL+BE9twWtXklcAGJGKd7mPwecrFPc=; b=gK2va34inRU5e1UQOat+ahRoc7XWPbteFF4fhGhtGEIWx5kKknYsM7qjoto/1ihaBL FYFNt0My9BRm+LuP9YAQmCejYWQ/qaIS+rnwm7jt8QrQHY8Md95EE9UOOF754Ik/fvM3 tq3BNzf0/XwpPQfSUdUyi0zcuJBRLzipxw/h55QXeeuLvDP1h+Fijrywwf4jngzUnHty Mtuqi7LRfLzAMpKTrXwtF7LUz94//qcivLcIRRic/SNPleRGdwEWC/1inuXDIiPdAwuv 3UYCapMAHNFm/MOuJ4qFhcbE6Azdq6RdLonsdaxBkiUiDNO3bowomJYF8a3RcBnmgK9P u3bQ== X-Gm-Message-State: ACgBeo1l7hVomAPg0jfdCygyQPIGHb0cpoVeosTPxzsaCEayV9VNjdGb Lnn1fdH33M3U5W8G4IYnwwE= X-Google-Smtp-Source: AA6agR6BmLoUJWIih9FyMbYyQE4lOAu6g9y98ZMWZ5Vj+ahNKmjboBjeUf+ZOtsJSOsQ9TJOqOr/YQ== X-Received: by 2002:a17:907:7f0b:b0:731:b81a:1912 with SMTP id qf11-20020a1709077f0b00b00731b81a1912mr6335779ejc.8.1660421104509; Sat, 13 Aug 2022 13:05:04 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id p22-20020a056402155600b0043a6e807febsm3480380edx.46.2022.08.13.13.05.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Aug 2022 13:05:03 -0700 (PDT) Message-ID: <1dbd4bac9403ed4dd17de75dfc2d210daf2d2ea3.camel@gmail.com> From: Liliana Marie Prikler Date: Sat, 13 Aug 2022 22:05:02 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660421181; 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=0IsE2Ds81o2vvWL+BE9twWtXklcAGJGKd7mPwecrFPc=; b=DaRLikYYWxzRDutDHOLX+iJ6S+rmXAtYeg7mKseQz9tFR0uctyG/z9hXRPttZFPnmf3uly XeIKFUd++IxsWH3HfB1T6p4FGrQsUkt3/Jsfp8+shn6EGhRdQN1px5NWctwI6BJukvIxZj tTIDU/GB8HASoRakZtJvDOnWC7HY5TXTWYGrkK6VfNKPUJbbmvG5d+V2P6vNBSl+4s/HC/ yK6ee1x54hyNB4RBPzmqBgY7UEsZke+prCDQmffUDQcnLdsNKLx8AgBNQJqB3DARo6P1rW 8olpvbcPnJW2yBZEL8lYIUW+VNjr7TKS9o/Bt6WxGd+JpiUkbgIX+BlmmF0huw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660421181; a=rsa-sha256; cv=none; b=hzL7UK7wygn04xJIfHuvJwWuB6wvleWUjYzeVZsEMPLB2T5dOSPi7IoFYzjkjepxMxxvDj Z92e0iLoXCyb32Ig+NXH94ns04KFQQBVSOJFBSH0YXRV8VA0DX48wcNndDRauiQmX/Ox21 1F+zjj+V1ltbURu++VteFD0SvLZcl9WbrQ/JMfd5+ttjdVN3uzUPqlXmeNs9box5BA11uS GSfHilin4FGosPeqf8bvy5KtUyorfWv4jWN5bueVjub1u/a9flIK4OAYyniKmZawKvVRqU JWNt0gxkrnX+L7QjKilUjCW/WG87KV4ii22bKvF7aAf5H8TAzO1JhST1DPpqkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=g1C1Egg2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 4.84 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=g1C1Egg2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 07139878B X-Spam-Score: 4.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: wJH/+8566A8A Hi, Am Samstag, dem 13.08.2022 um 17:23 +0200 schrieb Maximilian Heisinger: > * gnu/packages/maths.scm (cryptominisat5): Add package. > * gnu/packages/maths.scm (kissat): Add package. Split into two patches, one for cryptominisat and one for kissat. > --- >  gnu/packages/maths.scm | 64 > ++++++++++++++++++++++++++++++++++++++++++ >  1 file changed, 64 insertions(+) > > diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm > index c79058ab42..4a58b9eb3f 100644 > --- a/gnu/packages/maths.scm > +++ b/gnu/packages/maths.scm > @@ -7311,6 +7311,70 @@ (define-public minisat >         "http://minisat.se/MiniSat.html") >        (license license:expat)))) > > +(define-public cryptominisat5 > +  (package > +    (name "cryptominisat5") > +    (version "5.8.0") > +    (source > +     (origin > +      (method git-fetch) > +      (uri (git-reference > +        (url "https://github.com/msoos/cryptominisat") > +        (commit version))) > +      (file-name (git-file-name name version)) > +      (sha256 > +       (base32 > +        "00hmxdlyhn7pwk9jlvc5g0l5z5xqfchjzf5jgn3pkj9xhl8yqq50")))) > +    (build-system cmake-build-system) > +    (arguments `(#:tests? #false)) Always state why tests are disabled. > +    (inputs (list zlib boost)) > +    (synopsis "Advanced incremental SAT solver") "Incremental SAT solver" is probably enough. > +    (description > +     "Provides CryptoMiniSat, an advanced incremental SAT solver.  > The system > +has 3 interfaces: command-line, C++ library and python. I'd shorten this to "CryptoMiniSat is an incremental SAT solver with three interfaces: command-line, C++ library and Python". >   The command-line > +interface takes a cnf as an input in the DIMACS format with the > extension of Use @abbrev for CNF (also capitalize). > +XOR clauses.  The C++ and python interface mimics this and also > allows for > +incremental use: assumptions and multiple solve calls.  A C > compatible wrapper > +is also provided.") Doesn't that technically make it a fourth interface? > +    (home-page "https://github.com/msoos/cryptominisat") > +    (license license:expat))) > +(define-public kissat > +  (package > +    (name "kissat") > +    (version "3.0.0") > +    (source > +     (origin > +       (method git-fetch) > +       (uri (git-reference > +             (url "https://github.com/arminbiere/kissat") > +             (commit (string-append "rel-" version)))) > +       (file-name (git-file-name name version)) > +       (sha256 > +        (base32 > +         "04x4w760srbdi4zci0s747qxk717x5d2x59ixraxh5104s9nyn8b")))) > +    (build-system gnu-build-system) > +    (arguments > +     `(#:tests? #f Specify why. > +       #:phases > +       (modify-phases %standard-phases > +         (replace 'configure > +           (lambda* (#:key outputs #:allow-other-keys) > +             (invoke "./configure"))) You probably want to (apply invoke "./configure" configure-flags). > +         (replace 'install > +           (lambda* (#:key inputs outputs #:allow-other-keys) > +             (install-file > +              "build/kissat" > +              (string-append (assoc-ref outputs "out") "/bin"))))))) Is this the only thing to install? > +    (home-page "https://github.com/arminbiere/kissat") > +    (synopsis "Bare-metal SAT solver after the KISS principle > principle > +written in C") "Bare-metal SAT solver" probably suffices. > +    (description > +     "Kissat is a \"keep it simple and clean bare metal SAT solver\" > written "bare metal SAT solver" again probably suffices. If you want to be generous with advertising terms, clean may be added, but I don't think it adds useful information. > +in C.  It is a port of CaDiCaL back to C with improved data > structures, better > +scheduling of inprocessing and optimized algorithms and > implementation.") > +    (license license:gpl3+))) > + Cheers