Skip to content

Commit

Permalink
Added is_one
Browse files Browse the repository at this point in the history
  • Loading branch information
bvssvni committed Apr 4, 2016
1 parent ec17125 commit f12f54a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assets/nat.txt
Expand Up @@ -22,3 +22,11 @@ pub fn mul(nat, nat) -> nat;
pub fn mul [is_zero] (bool, bool) -> bool;
[:] (false, false) -> false;
[:] (_, _) -> true;

pub fn is_one(nat) -> bool;
[:] (s(z)) -> true;
[:] (_) -> false;

pub fn mul [is_one] (bool, bool) -> bool;
[:] (true, true) -> true;
[:] (_, _) -> false;

0 comments on commit f12f54a

Please sign in to comment.