small fixes to Naturals

This commit is contained in:
wadler 2018-03-18 20:14:52 -03:00
parent b58de9d80e
commit e1bb83225b

View file

@ -303,9 +303,9 @@ the terms `m + n` and `_+_ m n` are equivalent.
The definition has a base case and an inductive case, corresponding to
those for the natural numbers. The base case says that adding zero to
a number (`zero + n`) returns that number (`n`). The inductive case
says that adding the successor of a number to another number (`(suc m)
+ n`) returns the successor of adding the two numbers (`suc (m+n)`).
a number, `zero + n`, returns that number, `n`. The inductive case
says that adding the successor of a number to another number,
`(suc m) + n`, returns the successor of adding the two numbers, `suc (m+n)`.
We say we are using *pattern matching* when constructors appear on the
left-hand side of an equation.