small fixes to Naturals
This commit is contained in:
parent
b58de9d80e
commit
e1bb83225b
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue