An Example
We will use a solution to the following question,
taken from the 1995 Finnish High-School Matriculation Mathematics Exam,
to illustrate the use of structured calculation proof on a real problem.
The figure below contains a graph of a polynomial of degree three.
Find the expression of the polynomial and compute the coordinates of
its extrema.
Let us call the function described by this graph f.
From our knowledge of what it means for an expression to be a
`polynomial of degree three', we know the general form of fx
to be
a·x3 +
b·x2 +
c·x + d,
for some a, b and c.
We can also read some values for fx for certain xs
off the graph;
namely f 0 = 0, f 1 = 1, f 2 = 0 and
f 3 = 3.
Using these facts, we can find a concrete expression for f.
|
(EXISTS a b c d.
FORALL x.
fx =
a·x3 +
b·x2 +
c·x + d) /\
f 0 = 0 /\ f 1 = 1 /\ f 2 = 0 /\ f 3 = 3
|
= |
{Extend the scope of the existential quantification.} |
|
EXISTS a b c d.
(FORALL x.
fx =
a·x3 +
b·x2 +
c·x + d) /\
f 0 = 0 /\ f 1 = 1 /\ f 2 = 0 /\ f 3 = 3
|
|
EXISTS a b c d.
(FORALL x.
fx =
a·x3 +
b·x2 +
c·x + d
) /\
(d = 0) /\
(c = 4) /\
(b = -4) /\
(a = 1)
|
|
EXISTS a b c d.
(FORALL x.
fx =
x3 -
4·x2 +
4·x
) /\
(d = 0) /\ (c = 4) /\ (b = -4) /\ (a = 1)
|
= |
{Reduce the scope of the existential quantification.} |
|
(FORALL x.
fx =
x3 -
4·x2 +
4·x) /\
(EXISTS a b c d.
(d = 0) /\ (c = 4) /\ (b = -4) /\ (a = 1))
|
= |
{The existential quantification is trivially true.} |
|
(FORALL x.
fx =
x3 - 4·x2 + 4·x) /\
T
|
= |
{Boolean simplification.} |
|
FORALL x.
fx =
x3 - 4·x2 + 4·x
|
A Browsable Format for Proof Presentation: An Example /
Jim Grundy