section‹Textbook-style reasoning: the Knaster-Tarski Theorem›
theory Knaster_Tarski imports Main begin
unbundle lattice_syntax
subsection‹Prose version›
text‹ According to the textbook 🍋‹‹pages 93--94›in "davey-priestley"›, the Knaster-Tarski fixpoint theorem is as follows.🪙‹We have dualized the argument, and tuned the notation a little bit.› 🪙‹The Knaster-Tarski Fixpoint Theorem.›Let ‹L› be a complete lattice and ‹f: L → L›an order-preserving map. Then ‹⊓{x ∈ L | f(x) ≤ x}› is a fixpoint of ‹f›. 🪙‹Proof.›Let ‹H = {x ∈ L | f(x) ≤ x}› and ‹a = ⊓H›. For all ‹x ∈ H› we have ‹a ≤ x›, so ‹f(a) ≤ f(x) ≤ x›. Thus ‹f(a)› is a lower bound of ‹H›, whence ‹f(a) ≤ a›. We now use this inequality to prove the reverse one (!) and thereby complete the proof that ‹a›is a fixpoint. Since ‹f› is order-preserving, ‹f(f(a)) ≤ f(a)›. This says ‹f(a) ∈ H›, so ‹a ≤ f(a)›.›
subsection‹Formal versions›
text‹ The Isar proof below closely follows the original presentation. Virtually all of the prose narration has been rephrased in terms of formal Isar language elements. Just as many textbook-style proofs, there is a strong bias towards forward proof, and several bends in the course of reasoning. ›
theorem Knaster_Tarski: fixes f :: "'a::complete_lattice ==> 'a" assumes"mono f" shows"∃a. f a = a" proof let ?H = "{u. f u ≤ u}" let ?a = "⊓?H" show"f ?a = ?a" proof -
{ fix x assume"x ∈ ?H" thenhave"?a ≤ x"by (rule Inf_lower) with‹mono f›have"f ?a ≤ f x" .. alsofrom‹x ∈ ?H›have"…≤ x" .. finallyhave"f ?a ≤ x" .
} thenhave"f ?a ≤ ?a"by (rule Inf_greatest)
{ alsopresume"…≤ f ?a" finally (order_antisym) show ?thesis .
} from‹mono f›and‹f ?a ≤ ?a›have"f (f ?a) ≤ f ?a" .. thenhave"f ?a ∈ ?H" .. thenshow"?a ≤ f ?a"by (rule Inf_lower) qed qed
text‹ Above we have used several advanced Isar language elements, such as explicit block structure and weak assumptions. Thus we have mimicked the particular way of reasoning of the original text. In the subsequent version the order of reasoning is changed to achieve structured top-down decomposition of the problem at the outer level, while only the inner steps of reasoning are done in a forward manner. We are certainly more at ease here, requiring only the most basic features of the Isar language. ›
theorem Knaster_Tarski': fixes f :: "'a::complete_lattice ==> 'a" assumes"mono f" shows"∃a. f a = a" proof let ?H = "{u. f u ≤ u}" let ?a = "⊓?H" show"f ?a = ?a" proof (rule order_antisym) show"f ?a ≤ ?a" proof (rule Inf_greatest) fix x assume"x ∈ ?H" thenhave"?a ≤ x"by (rule Inf_lower) with‹mono f›have"f ?a ≤ f x" .. alsofrom‹x ∈ ?H›have"…≤ x" .. finallyshow"f ?a ≤ x" . qed show"?a ≤ f ?a" proof (rule Inf_lower) from‹mono f›and‹f ?a ≤ ?a›have"f (f ?a) ≤ f ?a" .. thenshow"f ?a ∈ ?H" .. qed qed qed
end
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet am 2026-04-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.