-- in opposite directions, one of them has to have negative volume!
prop_c0120_identity :: Grid -> Property
prop_c0120_identity g =
- and [xsize >= 3, ysize >= 3, zsize >= 3] ==>
+ xsize >= 3 && ysize >= 3 && zsize >= 3 ==>
c t0 0 1 2 0 ~= (c t0 1 0 2 0 + c t10 1 0 0 2) / 2
where
fvs = function_values g
-- 'prop_c0120_identity'.
prop_c0111_identity :: Grid -> Property
prop_c0111_identity g =
- and [xsize >= 3, ysize >= 3, zsize >= 3] ==>
+ xsize >= 3 && ysize >= 3 && zsize >= 3 ==>
c t0 0 1 1 1 ~= (c t0 1 0 1 1 + c t10 1 0 1 1) / 2
where
fvs = function_values g
-- 'prop_c0120_identity'.
prop_c0201_identity :: Grid -> Property
prop_c0201_identity g =
- and [xsize >= 3, ysize >= 3, zsize >= 3] ==>
+ xsize >= 3 && ysize >= 3 && zsize >= 3 ==>
c t0 0 2 0 1 ~= (c t0 1 1 0 1 + c t10 1 1 1 0) / 2
where
fvs = function_values g
-- 'prop_c0120_identity'.
prop_c0102_identity :: Grid -> Property
prop_c0102_identity g =
- and [xsize >= 3, ysize >= 3, zsize >= 3] ==>
+ xsize >= 3 && ysize >= 3 && zsize >= 3 ==>
c t0 0 1 0 2 ~= (c t0 1 0 0 2 + c t10 1 0 2 0) / 2
where
fvs = function_values g
-- 'prop_c0120_identity'.
prop_c0210_identity :: Grid -> Property
prop_c0210_identity g =
- and [xsize >= 3, ysize >= 3, zsize >= 3] ==>
+ xsize >= 3 && ysize >= 3 && zsize >= 3 ==>
c t0 0 2 1 0 ~= (c t0 1 1 1 0 + c t10 1 1 0 1) / 2
where
fvs = function_values g
-- 'prop_c0120_identity'.
prop_c0300_identity :: Grid -> Property
prop_c0300_identity g =
- and [xsize >= 3, ysize >= 3, zsize >= 3] ==>
+ xsize >= 3 && ysize >= 3 && zsize >= 3 ==>
c t0 0 3 0 0 ~= (c t0 1 2 0 0 + c t10 1 2 0 0) / 2
where
fvs = function_values g