|
A new "wf_relp" theory is created as a child of "wf_rel".
The purpose of this theory is entirely cosmetic.
I want to use the results in developing set theory but I want to avoid use of the membership sign in a context in which it
is likely to cause confusion.
|
|
Elementary results about transitive relations and transitive closure.
|
|
Definition of well-founded and transitive-well-founded and proof that the transitive closure of a well-founded relation is
transitive-well-founded.
|
|
|
In this section I will create a decent proof context for recursive definitions, eventually.
|
|
|
|
|
Introduction
One of the principle well-founded relations of interest in this application is g, which has type
so I would like a version of "well-founded" which has type:
|
xl-sml
open_theory "hol";
force_new_theory "wf_relp";
force_new_pc "wf_relp";
merge_pcs ["xl_cs_ _conv"] "wf_relp";
set_merge_pcs ["hol", "wf_relp"];
|
|
|
|
Definitions
|
|
Theorems
The first thing I need to prove here is that the transitive closure of a well-founded relation is also well-founded.
This provides a form of induction with a stronger induction hypothesis.
Naturally we would expect this to be proven inductively and the question is therefore what property to use in the inductive
proof, the observation that the transitive closure of a relation is well-founded is not explicitly the ascription of a property
to the field of the relation.
The obvious method is to relativise the required result to the transitive closure of a set, giving a property of sets, and
then to prove that this property is hereditary if the relation is well-founded.
Now we prove that if the transitive closure of a relation is well-founded then so must be the relation.
|
|
Induction Tactics etc.
We here define a general tactic for performing induction using some well-founded relation.
The following function (I think these things are called "THM-TACTICAL"s) must be given a theorem which asserts that some relation
is well-founded, and then a THM-TACTIC (which determines what is done with the induction assumption), and then a term which
is the variable to induct over, and will then facilitate an inductive proof of the current goal using that theorem.
And now we make a tactic out of that (basically by saying "strip the induction hypothesis into the assumptions").
|
|
Well-foundedness and Induction
The following proof shows how the above induction tactic can be used.
The theorem can be paraphrased loosely along the lines that there are no bottomless descending chains in a well-founded relation.
We think of a bottomless descending chain as a non-empty set (represented by a property called "p") every element of which
is preceded by an element under the transitive closure of r.
Now a shorter formulation of bottomless pits.
Next we prove the converse, that the lack of bottomless pits entails well-foundedness.
Now with second order foundation.
Try a weaker hypothesis.
|
|
Bottomless Pits and Minimal Elements
The following theorem states something like that if there are no unending downward chains then every "set" has a minimal element.
A second order version with the weaker bottomless pits can be formulated as follows:
It follows that all non-empty collections of predecessors under a well-founded relation have minimal elements.
But the converse does not hold.
|
|
|
Restriction of Well-Founded Relation
|
|
|
|
|
Proof Context
|
xl-sml
(* commit_pc "wf_relp"; *)
|
|
|