mirror of
https://github.com/Kindelia/Kind2.git
synced 2024-09-11 07:15:45 +03:00
Merge branch 'master' of https://github.com/uwu-tech/Kind
This commit is contained in:
commit
6117e74228
16
base/Nat/mul/equal_zero.kind
Normal file
16
base/Nat/mul/equal_zero.kind
Normal file
@ -0,0 +1,16 @@
|
||||
Nat.mul.equal_zero(
|
||||
n: Nat, m: Nat
|
||||
Hyp: Equal<Nat>(Nat.mul(n, m), 0)
|
||||
): Or<Equal<Nat>(n, 0), Equal<Nat>(m, 0)>
|
||||
case n with Hyp {
|
||||
zero:
|
||||
left(refl)
|
||||
succ:
|
||||
case m with Hyp {
|
||||
zero:
|
||||
right(refl)
|
||||
succ:
|
||||
let contra = Nat.succ_neq_zero!(Hyp)
|
||||
Empty.absurd!(contra)
|
||||
}!
|
||||
}!
|
24
flake.nix
24
flake.nix
@ -8,7 +8,7 @@
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
version = "1.0.95";
|
||||
version = "1.0.104";
|
||||
in
|
||||
{
|
||||
packages.kind-scm =
|
||||
@ -33,6 +33,28 @@
|
||||
doCheck = false;
|
||||
};
|
||||
|
||||
packages.kind-scm-deb =
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "kind-scm-deb";
|
||||
version = version;
|
||||
|
||||
src = self;
|
||||
|
||||
buildInputs = [ pkgs.chez-racket pkgs.chez-exe pkgs.libuuid pkgs.dpkg ];
|
||||
|
||||
buildPhase = ''
|
||||
cd bin/scm
|
||||
make deb
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp bin/kind-scm_1.0.1-0_amd64.deb $out
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
};
|
||||
|
||||
/*packages.kind-js =
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "kind-js";
|
||||
|
Loading…
Reference in New Issue
Block a user