src/HOL/Hyperreal/Filter.thy
author paulson
Wed, 10 Jan 2001 17:21:31 +0100
changeset 10857 47b1f34ddd09
parent 10750 a681d3df1a39
child 15094 a7d1a3fdc30d
permissions -rw-r--r--
revisions e.g. images, transitive closure...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10750
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     1
(*  Title       : Filter.thy
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     2
    ID          : $Id$
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     3
    Author      : Jacques D. Fleuriot
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     4
    Copyright   : 1998  University of Cambridge
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     5
    Description : Filters and Ultrafilters
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     6
*) 
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     7
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     8
Filter = Zorn + 
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
     9
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    10
constdefs
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    11
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    12
  is_Filter       :: ['a set set,'a set] => bool
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    13
  "is_Filter F S == (F <= Pow(S) & S : F & {} ~: F &
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    14
                   (ALL u: F. ALL v: F. u Int v : F) &
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    15
                   (ALL u v. u: F & u <= v & v <= S --> v: F))" 
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    16
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    17
  Filter          :: 'a set => 'a set set set
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    18
  "Filter S == {X. is_Filter X S}"
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    19
 
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    20
  (* free filter does not contain any finite set *)
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    21
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    22
  Freefilter      :: 'a set => 'a set set set
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    23
  "Freefilter S == {X. X: Filter S & (ALL x: X. ~ finite x)}"
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    24
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    25
  Ultrafilter     :: 'a set => 'a set set set
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    26
  "Ultrafilter S == {X. X: Filter S & (ALL A: Pow(S). A: X | S - A : X)}"
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    27
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    28
  FreeUltrafilter :: 'a set => 'a set set set
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    29
  "FreeUltrafilter S == {X. X: Ultrafilter S & (ALL x: X. ~ finite x)}" 
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    30
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    31
  (* A locale makes proof of Ultrafilter Theorem more modular *)
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    32
locale UFT = 
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    33
       fixes     frechet :: "'a set => 'a set set"
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    34
                 superfrechet :: "'a set => 'a set set set"
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    35
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    36
       assumes   not_finite_UNIV "~finite (UNIV :: 'a set)"
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    37
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    38
       defines   frechet_def "frechet S == {A. finite (S - A)}"
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    39
                 superfrechet_def "superfrechet S == 
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    40
                                   {G.  G: Filter S & frechet S <= G}"
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    41
end
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    42
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    43
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    44
a681d3df1a39 separation of HOL-Hyperreal from HOL-Real
paulson
parents:
diff changeset
    45