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