2022-03-05 16:20:37 +00:00
|
|
|
{ lib, mkCoqDerivation, coq, mathcomp-ssreflect, mathcomp-algebra, mathcomp-fingroup, paramcoq
|
2021-08-18 13:19:15 +00:00
|
|
|
, version ? null }:
|
|
|
|
|
|
|
|
mkCoqDerivation {
|
|
|
|
pname = "addition-chains";
|
|
|
|
repo = "hydra-battles";
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
release."0.4".sha256 = "1f7pc4w3kir4c9p0fjx5l77401bx12y72nmqxrqs3qqd3iynvqlp";
|
|
|
|
release."0.5".sha256 = "121pcbn6v59l0c165ha9n00whbddpy11npx2y9cn7g879sfk2nqk";
|
2022-02-21 08:47:16 +00:00
|
|
|
release."0.6".sha256 = "1dri4sisa7mhclf8w4kw7ixs5zxm8xyjr034r1377p96rdk3jj0j";
|
2021-08-18 13:19:15 +00:00
|
|
|
releaseRev = (v: "v${v}");
|
|
|
|
|
|
|
|
inherit version;
|
2023-02-02 18:25:31 +00:00
|
|
|
defaultVersion = with lib.versions; lib.switch coq.coq-version [
|
2023-04-29 16:46:19 +00:00
|
|
|
{ case = range "8.13" "8.17"; out = "0.6"; }
|
2021-10-28 06:52:43 +00:00
|
|
|
{ case = range "8.11" "8.12"; out = "0.4"; }
|
2021-08-18 13:19:15 +00:00
|
|
|
] null;
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
propagatedBuildInputs = [ mathcomp-ssreflect mathcomp-algebra mathcomp-fingroup paramcoq ];
|
2021-08-18 13:19:15 +00:00
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
useDune = true;
|
2021-08-18 13:19:15 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2021-08-18 13:19:15 +00:00
|
|
|
description = "Exponentiation algorithms following addition chains";
|
|
|
|
longDescription = ''
|
|
|
|
Addition chains are algorithms for computations of the p-th
|
|
|
|
power of some x, with the least number of multiplication as
|
|
|
|
possible. We present a few implementations of addition chains,
|
|
|
|
with proofs of their correctness.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ Zimmi48 ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|