Proof: Do Expr At Unchanged 24
Let's prove the following theorem:
if the following are true:
- expression state at time 24 = "call_build_args"
- the expression at time 24 =
Person("John", "Smith", 25)
then the expression at time 25 = Person("John", "Smith", 25)
Proof:
Given
1 | expression state at time 24 = "call_build_args" |
---|---|
2 | the expression at time 24 = Person("John", "Smith", 25) |
# | Claim | Reason |
---|---|---|
1 | the expression at time (24 + 1) = the expression at time 24 | if expression state at time 24 = "call_build_args", then the expression at time (24 + 1) = the expression at time 24 |
2 | the expression at time (24 + 1) = Person("John", "Smith", 25) |
if the expression at time (24 + 1) = the expression at time 24 and the expression at time 24 = Person("John", "Smith", 25) , then the expression at time (24 + 1) = Person("John", "Smith", 25) |
3 | 24 + 1 = 25 | 24 + 1 = 25 |
4 | the expression at time (24 + 1) = the expression at time 25 | if 24 + 1 = 25, then the expression at time (24 + 1) = the expression at time 25 |
5 | the expression at time 25 = Person("John", "Smith", 25) |
if the expression at time (24 + 1) = the expression at time 25 and the expression at time (24 + 1) = Person("John", "Smith", 25) , then the expression at time 25 = Person("John", "Smith", 25) |
Comments
Please log in to add comments