The idea is to prove the equality of two recursively defined infinite sequences by showing that the one satisfies the defining equation of the other. Here we shall try this out on the simplest example I can think of.
Let us consider the equations
(0) | from n = n : from (n+1) |
(1a) | inc(a:b) = a+1 : inc b |
(1b) | x = 0 : inc x . |
We have to prove x = from 0 . We observe
(2) | (incn x = n : incn+1x ) |
⇒ { inc is a function } | |
(inc(incnx ) = inc (n : incn+1x )) | |
= { 1a } | |
(inc(incnx) = n +1 : inc(incn+1x )) | |
= { def. of iterated functional composition } | |
(3) | (incn+1x = n+1 : incn+2x ) |
* *
*
I tried it the other way round , viz. I tried to show that from 0 was a solution of (1b), but this became a mess.
It is too warm and too humid to write much more now.
Burroughs | 6 June 1982 |
12201 Technology Blvd. | prof.dr.Edsger W.Dijkstra |
AUSTIN, Texas, 78759 | Burroughs Research Fellow |
USA |