Proof: Find Number Example 2
Let's prove the following theorem:
index of value 3 in [ 3, [ 2, [ 1, [ ] ] ] ] = 0
Proof:
# | Claim | Reason |
---|---|---|
1 | index of value 3 in [ 3, [ 2, [ 1, [ ] ] ] ] = index of value 3 in [ 3, [ 2, [ 1, [ ] ] ] ] with current index 0 | index of value 3 in [ 3, [ 2, [ 1, [ ] ] ] ] = index of value 3 in [ 3, [ 2, [ 1, [ ] ] ] ] with current index 0 |
2 | 3 = 3 | 3 = 3 |
3 | index of value 3 in [ 3, [ 2, [ 1, [ ] ] ] ] with current index 0 = 0 | if 3 = 3, then index of value 3 in [ 3, [ 2, [ 1, [ ] ] ] ] with current index 0 = 0 |
4 | index of value 3 in [ 3, [ 2, [ 1, [ ] ] ] ] = 0 | if index of value 3 in [ 3, [ 2, [ 1, [ ] ] ] ] = index of value 3 in [ 3, [ 2, [ 1, [ ] ] ] ] with current index 0 and index of value 3 in [ 3, [ 2, [ 1, [ ] ] ] ] with current index 0 = 0, then index of value 3 in [ 3, [ 2, [ 1, [ ] ] ] ] = 0 |
Comments
Please log in to add comments