Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Raphaël Cauderlier
dklib
Commits
398522c6
Commit
398522c6
authored
Aug 26, 2015
by
Raphaël Cauderlier
Browse files
Fix an error in the definition of dk_binary_nat.mult
parent
c8138f22
Changes
1
Hide whitespace changes
Inline
Side-by-side
dk_binary_nat.dk
View file @
398522c6
...
...
@@ -80,8 +80,8 @@ def mult : BNat -> BNat -> BNat.
[] mult O _ --> O
[] mult _ O --> O
[n,m] mult (S0 n) (S0 m) --> S0 (S0 (mult n m))
[n,m] mult (S0 n) (S1 m) --> S0 (plus
m
(S0 (mult n m)))
[n,m] mult (S1 n) (S0 m) --> S0 (plus
n
(S0 (mult n m)))
[n,m] mult (S0 n) (S1 m) --> S0 (plus (S0 (mult n m))
n
)
[n,m] mult (S1 n) (S0 m) --> S0 (plus
m
(S0 (mult n m)))
[n,m] mult (S1 n) (S1 m) --> S1 (plus (S0 (mult m n)) (plus n m)).
(; Min and Max ;)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment