Proof: Do Reverse 25 2
Let's prove the following theorem:
reverse of [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] = [ entry "ES": "Estonia", [ entry "MX": "Mexico", [ ] ] ]
Proof:
# | Claim | Reason |
---|---|---|
1 | reverse of [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] = reverse of remaining stack [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] and already reversed stack [ ] | reverse of [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] = reverse of remaining stack [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] and already reversed stack [ ] |
2 | reverse of remaining stack [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] and already reversed stack [ ] = reverse of remaining stack [ entry "ES": "Estonia", [ ] ] and already reversed stack [ entry "MX": "Mexico", [ ] ] | reverse of remaining stack [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] and already reversed stack [ ] = reverse of remaining stack [ entry "ES": "Estonia", [ ] ] and already reversed stack [ entry "MX": "Mexico", [ ] ] |
3 | reverse of remaining stack [ entry "ES": "Estonia", [ ] ] and already reversed stack [ entry "MX": "Mexico", [ ] ] = [ entry "ES": "Estonia", [ entry "MX": "Mexico", [ ] ] ] | reverse of remaining stack [ entry "ES": "Estonia", [ ] ] and already reversed stack [ entry "MX": "Mexico", [ ] ] = [ entry "ES": "Estonia", [ entry "MX": "Mexico", [ ] ] ] |
4 | reverse of [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] = reverse of remaining stack [ entry "ES": "Estonia", [ ] ] and already reversed stack [ entry "MX": "Mexico", [ ] ] | if reverse of [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] = reverse of remaining stack [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] and already reversed stack [ ] and reverse of remaining stack [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] and already reversed stack [ ] = reverse of remaining stack [ entry "ES": "Estonia", [ ] ] and already reversed stack [ entry "MX": "Mexico", [ ] ], then reverse of [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] = reverse of remaining stack [ entry "ES": "Estonia", [ ] ] and already reversed stack [ entry "MX": "Mexico", [ ] ] |
5 | reverse of [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] = [ entry "ES": "Estonia", [ entry "MX": "Mexico", [ ] ] ] | if reverse of [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] = reverse of remaining stack [ entry "ES": "Estonia", [ ] ] and already reversed stack [ entry "MX": "Mexico", [ ] ] and reverse of remaining stack [ entry "ES": "Estonia", [ ] ] and already reversed stack [ entry "MX": "Mexico", [ ] ] = [ entry "ES": "Estonia", [ entry "MX": "Mexico", [ ] ] ], then reverse of [ entry "MX": "Mexico", [ entry "ES": "Estonia", [ ] ] ] = [ entry "ES": "Estonia", [ entry "MX": "Mexico", [ ] ] ] |
Comments
Please log in to add comments