2022-02-17 13:09:48 +00:00
|
|
|
{ lib, mkCoqDerivation, coq, equations, LibHyps, version ? null }:
|
2021-05-08 17:55:56 +01:00
|
|
|
with lib;
|
|
|
|
|
2022-02-17 13:09:48 +00:00
|
|
|
(mkCoqDerivation {
|
2021-05-08 17:55:56 +01:00
|
|
|
pname = "hydra-battles";
|
|
|
|
owner = "coq-community";
|
|
|
|
|
2021-10-18 10:42:02 +01:00
|
|
|
release."0.4".sha256 = "1f7pc4w3kir4c9p0fjx5l77401bx12y72nmqxrqs3qqd3iynvqlp";
|
|
|
|
release."0.5".sha256 = "121pcbn6v59l0c165ha9n00whbddpy11npx2y9cn7g879sfk2nqk";
|
2022-02-17 13:09:48 +00:00
|
|
|
release."0.6".sha256 = "1dri4sisa7mhclf8w4kw7ixs5zxm8xyjr034r1377p96rdk3jj0j";
|
2021-08-17 09:25:41 +01:00
|
|
|
releaseRev = (v: "v${v}");
|
2021-05-08 17:55:56 +01:00
|
|
|
|
|
|
|
inherit version;
|
|
|
|
defaultVersion = with versions; switch coq.coq-version [
|
2022-02-17 13:09:48 +00:00
|
|
|
{ case = range "8.13" "8.15"; out = "0.6"; }
|
2021-10-18 10:42:02 +01:00
|
|
|
{ case = range "8.11" "8.12"; out = "0.4"; }
|
2021-05-08 17:55:56 +01:00
|
|
|
] null;
|
|
|
|
|
2021-08-17 09:25:41 +01:00
|
|
|
useDune2 = true;
|
2021-05-08 17:55:56 +01:00
|
|
|
|
|
|
|
meta = {
|
2021-08-17 09:25:41 +01:00
|
|
|
description = "Exploration of some properties of Kirby and Paris' hydra battles, with the help of Coq";
|
2021-05-08 17:55:56 +01:00
|
|
|
longDescription = ''
|
2021-08-17 09:25:41 +01:00
|
|
|
An exploration of some properties of Kirby and Paris' hydra
|
|
|
|
battles, with the help of the Coq Proof assistant. This
|
|
|
|
development includes the study of several representations of
|
|
|
|
ordinal numbers, and a part of the so-called Ketonen and Solovay
|
|
|
|
machinery (combinatorial properties of epsilon0).
|
2021-05-08 17:55:56 +01:00
|
|
|
'';
|
2021-08-17 09:25:41 +01:00
|
|
|
maintainers = with maintainers; [ siraben Zimmi48 ];
|
2021-05-08 17:55:56 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2022-02-17 13:09:48 +00:00
|
|
|
}).overrideAttrs(o:
|
|
|
|
let inherit (o) version; in {
|
2022-02-21 15:05:47 +00:00
|
|
|
propagatedBuildInputs = [ equations ] ++ optional (versions.isGe "0.6" version || version == "dev") LibHyps;
|
2022-02-17 13:09:48 +00:00
|
|
|
})
|