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