Proof: Sort Example

Let's prove the following theorem:

result of sorting [ [ 0, [ ] ], [ ] ] = [ [ 0, [ ] ], [ ] ]

Proof:

View as a tree | View dependent proofs | Try proving it

Proof Table
# Claim Reason
1 result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ] = result of sorting (remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ])) with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ] = result of sorting (remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ])) with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ]
2 index of the mininum value in stack [ [ 0, [ ] ], [ ] ] = [ 0, [ ] ] index of the mininum value in stack [ [ 0, [ ] ], [ ] ] = [ 0, [ ] ]
3 remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ]) = remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index [ 0, [ ] ] if index of the mininum value in stack [ [ 0, [ ] ], [ ] ] = [ 0, [ ] ], then remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ]) = remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index [ 0, [ ] ]
4 remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index [ 0, [ ] ] = [ ] remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index [ 0, [ ] ] = [ ]
5 remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ]) = [ ] if remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ]) = remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index [ 0, [ ] ] and remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index [ 0, [ ] ] = [ ], then remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ]) = [ ]
6 minimum value of stack [ [ 0, [ ] ], [ ] ] = [ 0, [ ] ] minimum value of stack [ [ 0, [ ] ], [ ] ] = [ 0, [ ] ]
7 result of sorting (remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ])) with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] = result of sorting [ ] with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] if remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ]) = [ ], then result of sorting (remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ])) with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] = result of sorting [ ] with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ]
8 [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] = [ [ 0, [ ] ], [ ] ] if minimum value of stack [ [ 0, [ ] ], [ ] ] = [ 0, [ ] ], then [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] = [ [ 0, [ ] ], [ ] ]
9 result of sorting [ ] with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] = result of sorting [ ] with sorted stack [ [ 0, [ ] ], [ ] ] if [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] = [ [ 0, [ ] ], [ ] ], then result of sorting [ ] with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] = result of sorting [ ] with sorted stack [ [ 0, [ ] ], [ ] ]
10 result of sorting (remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ])) with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] = result of sorting [ ] with sorted stack [ [ 0, [ ] ], [ ] ] if result of sorting (remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ])) with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] = result of sorting [ ] with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] and result of sorting [ ] with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] = result of sorting [ ] with sorted stack [ [ 0, [ ] ], [ ] ], then result of sorting (remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ])) with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] = result of sorting [ ] with sorted stack [ [ 0, [ ] ], [ ] ]
11 result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ] = result of sorting [ ] with sorted stack [ [ 0, [ ] ], [ ] ] if result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ] = result of sorting (remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ])) with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] and result of sorting (remaining elements after [ [ 0, [ ] ], [ ] ] is popped at index (index of the mininum value in stack [ [ 0, [ ] ], [ ] ])) with sorted stack [ minimum value of stack [ [ 0, [ ] ], [ ] ], [ ] ] = result of sorting [ ] with sorted stack [ [ 0, [ ] ], [ ] ], then result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ] = result of sorting [ ] with sorted stack [ [ 0, [ ] ], [ ] ]
12 result of sorting [ ] with sorted stack [ [ 0, [ ] ], [ ] ] = [ [ 0, [ ] ], [ ] ] result of sorting [ ] with sorted stack [ [ 0, [ ] ], [ ] ] = [ [ 0, [ ] ], [ ] ]
13 result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ] = [ [ 0, [ ] ], [ ] ] if result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ] = result of sorting [ ] with sorted stack [ [ 0, [ ] ], [ ] ] and result of sorting [ ] with sorted stack [ [ 0, [ ] ], [ ] ] = [ [ 0, [ ] ], [ ] ], then result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ] = [ [ 0, [ ] ], [ ] ]
14 result of sorting [ [ 0, [ ] ], [ ] ] = reverse of (result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ]) result of sorting [ [ 0, [ ] ], [ ] ] = reverse of (result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ])
15 reverse of (result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ]) = reverse of [ [ 0, [ ] ], [ ] ] if result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ] = [ [ 0, [ ] ], [ ] ], then reverse of (result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ]) = reverse of [ [ 0, [ ] ], [ ] ]
16 result of sorting [ [ 0, [ ] ], [ ] ] = reverse of [ [ 0, [ ] ], [ ] ] if result of sorting [ [ 0, [ ] ], [ ] ] = reverse of (result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ]) and reverse of (result of sorting [ [ 0, [ ] ], [ ] ] with sorted stack [ ]) = reverse of [ [ 0, [ ] ], [ ] ], then result of sorting [ [ 0, [ ] ], [ ] ] = reverse of [ [ 0, [ ] ], [ ] ]
17 reverse of [ [ 0, [ ] ], [ ] ] = [ [ 0, [ ] ], [ ] ] reverse of [ [ 0, [ ] ], [ ] ] = [ [ 0, [ ] ], [ ] ]
18 result of sorting [ [ 0, [ ] ], [ ] ] = [ [ 0, [ ] ], [ ] ] if result of sorting [ [ 0, [ ] ], [ ] ] = reverse of [ [ 0, [ ] ], [ ] ] and reverse of [ [ 0, [ ] ], [ ] ] = [ [ 0, [ ] ], [ ] ], then result of sorting [ [ 0, [ ] ], [ ] ] = [ [ 0, [ ] ], [ ] ]

Comments

Please log in to add comments