From 49c323679be0b018a55199295482b6addd6e4cff Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Mon, 31 Jan 2011 13:21:17 +0000 Subject: Deleted file --- isar/ex/KnasterTarski.thy | 115 ---------------------------------------------- 1 file changed, 115 deletions(-) delete mode 100644 isar/ex/KnasterTarski.thy (limited to 'isar') diff --git a/isar/ex/KnasterTarski.thy b/isar/ex/KnasterTarski.thy deleted file mode 100644 index a0adf653..00000000 --- a/isar/ex/KnasterTarski.thy +++ /dev/null @@ -1,115 +0,0 @@ -(********** - This file is copied from Isabelle2009-2. - **********) - -(* Title: HOL/Isar_examples/KnasterTarski.thy - Author: Markus Wenzel, TU Muenchen - -Typical textbook proof example. -*) - -header {* Textbook-style reasoning: the Knaster-Tarski Theorem *} - -theory KnasterTarski -imports Main Lattice_Syntax -begin - - -subsection {* Prose version *} - -text {* - According to the textbook \cite[pages 93--94]{davey-priestley}, the - Knaster-Tarski fixpoint theorem is as follows.\footnote{We have - dualized the argument, and tuned the notation a little bit.} - - \textbf{The Knaster-Tarski Fixpoint Theorem.} Let @{text L} be a - complete lattice and @{text "f: L \ L"} an order-preserving map. - Then @{text "\{x \ L | f(x) \ x}"} is a fixpoint of @{text f}. - - \textbf{Proof.} Let @{text "H = {x \ L | f(x) \ x}"} and @{text "a = - \H"}. For all @{text "x \ H"} we have @{text "a \ x"}, so @{text - "f(a) \ f(x) \ x"}. Thus @{text "f(a)"} is a lower bound of @{text - H}, whence @{text "f(a) \ a"}. We now use this inequality to prove - the reverse one (!) and thereby complete the proof that @{text a} is - a fixpoint. Since @{text f} is order-preserving, @{text "f(f(a)) \ - f(a)"}. This says @{text "f(a) \ H"}, so @{text "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" - then have "?a \ x" by (rule Inf_lower) - with `mono f` have "f ?a \ f x" .. - also from `x \ ?H` have "\ \ x" .. - finally have "f ?a \ x" . - } - then have "f ?a \ ?a" by (rule Inf_greatest) - { - also presume "\ \ f ?a" - finally (order_antisym) show ?thesis . - } - from `mono f` and `f ?a \ ?a` have "f (f ?a) \ f ?a" .. - then have "f ?a \ ?H" .. - then show "?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" - then have "?a \ x" by (rule Inf_lower) - with `mono f` have "f ?a \ f x" .. - also from `x \ ?H` have "\ \ x" .. - finally show "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" .. - then show "f ?a \ ?H" .. - qed - qed -qed - -end -- cgit v1.2.3