Proof: Minimum Index Example

Let's prove the following theorem:

index of the mininum value in stack [ 3, [ 2, [ 1, [ ] ] ] ] = 2

In this example, we prove that the minimum index of

[3,[2,[1,[]]]]

is 2.

First, we prove that the minimum value of

[3,[2,[1,[]]]]

is 1. Then we find the index of 1 in the same list. 1 is in index 2.

Proof:

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

Proof Table
# Claim Reason
1 index of the mininum value in stack [ 3, [ 2, [ 1, [ ] ] ] ] = index of value (minimum value of stack [ 3, [ 2, [ 1, [ ] ] ] ]) in [ 3, [ 2, [ 1, [ ] ] ] ] index of the mininum value in stack [ 3, [ 2, [ 1, [ ] ] ] ] = index of value (minimum value of stack [ 3, [ 2, [ 1, [ ] ] ] ]) in [ 3, [ 2, [ 1, [ ] ] ] ]
2 minimum value of stack [ 3, [ 2, [ 1, [ ] ] ] ] = 1 minimum value of stack [ 3, [ 2, [ 1, [ ] ] ] ] = 1
3 index of value (minimum value of stack [ 3, [ 2, [ 1, [ ] ] ] ]) in [ 3, [ 2, [ 1, [ ] ] ] ] = index of value 1 in [ 3, [ 2, [ 1, [ ] ] ] ] if minimum value of stack [ 3, [ 2, [ 1, [ ] ] ] ] = 1, then index of value (minimum value of stack [ 3, [ 2, [ 1, [ ] ] ] ]) in [ 3, [ 2, [ 1, [ ] ] ] ] = index of value 1 in [ 3, [ 2, [ 1, [ ] ] ] ]
4 index of value 1 in [ 3, [ 2, [ 1, [ ] ] ] ] = 2 index of value 1 in [ 3, [ 2, [ 1, [ ] ] ] ] = 2
5 index of the mininum value in stack [ 3, [ 2, [ 1, [ ] ] ] ] = 2 if index of the mininum value in stack [ 3, [ 2, [ 1, [ ] ] ] ] = index of value (minimum value of stack [ 3, [ 2, [ 1, [ ] ] ] ]) in [ 3, [ 2, [ 1, [ ] ] ] ] and index of value (minimum value of stack [ 3, [ 2, [ 1, [ ] ] ] ]) in [ 3, [ 2, [ 1, [ ] ] ] ] = index of value 1 in [ 3, [ 2, [ 1, [ ] ] ] ] and index of value 1 in [ 3, [ 2, [ 1, [ ] ] ] ] = 2, then index of the mininum value in stack [ 3, [ 2, [ 1, [ ] ] ] ] = 2

Comments

Please log in to add comments