Proof: Maximum Example 2
Let's prove the following theorem:
maximum value in stack [ 3, [ 2, [ 1, [ ] ] ] ] = 3
Proof:
# | Claim | Reason |
---|---|---|
1 | maximum value in stack [ 2, [ 1, [ ] ] ] = 2 | maximum value in stack [ 2, [ 1, [ ] ] ] = 2 |
2 | 3 > maximum value in stack [ 2, [ 1, [ ] ] ] = 3 > 2 | if maximum value in stack [ 2, [ 1, [ ] ] ] = 2, then 3 > maximum value in stack [ 2, [ 1, [ ] ] ] = 3 > 2 |
3 | 3 > 2 | 3 > 2 |
4 | 3 > maximum value in stack [ 2, [ 1, [ ] ] ] | if 3 > 2 and 3 > maximum value in stack [ 2, [ 1, [ ] ] ] = 3 > 2, then 3 > maximum value in stack [ 2, [ 1, [ ] ] ] |
5 | maximum value in stack [ 3, [ 2, [ 1, [ ] ] ] ] = 3 | if 3 > maximum value in stack [ 2, [ 1, [ ] ] ], then maximum value in stack [ 3, [ 2, [ 1, [ ] ] ] ] = 3 |
Comments
Please log in to add comments