Added SetInterval
authornipkow
Tue May 23 07:32:24 2000 +0200 (2000-05-23)
changeset 8924c434283b4cfa
parent 8923 42fd7abde9aa
child 8925 f4599af94b83
Added SetInterval
src/HOL/Fun.thy
src/HOL/SetInterval.thy
     1.1 --- a/src/HOL/Fun.thy	Mon May 22 16:05:22 2000 +0200
     1.2 +++ b/src/HOL/Fun.thy	Tue May 23 07:32:24 2000 +0200
     1.3 @@ -6,7 +6,7 @@
     1.4  Notions about functions.
     1.5  *)
     1.6  
     1.7 -Fun = Vimage + equalities + 
     1.8 +Fun = Vimage + SetInterval + 
     1.9  
    1.10  instance set :: (term) order
    1.11                         (subset_refl,subset_trans,subset_antisym,psubset_eq)
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/src/HOL/SetInterval.thy	Tue May 23 07:32:24 2000 +0200
     2.3 @@ -0,0 +1,24 @@
     2.4 +(*  Title:      HOL/SetInterval.thy
     2.5 +    ID:         $Id$
     2.6 +    Author:     Tobias Nipkow
     2.7 +    Copyright   1998  TU Muenchen
     2.8 +
     2.9 +lessThan, greaterThan, atLeast, atMost
    2.10 +*)
    2.11 +
    2.12 +SetInterval = equalities +
    2.13 +
    2.14 +constdefs
    2.15 + lessThan    :: "('a::ord) => 'a set"	("(1{.._'(})")
    2.16 +"{..u(} == {x. x<u}"
    2.17 +
    2.18 + atMost      :: "('a::ord) => 'a set"	("(1{.._})")
    2.19 +"{..u} == {x. x<=u}"
    2.20 +
    2.21 + greaterThan :: "('a::ord) => 'a set"	("(1{')_..})")
    2.22 +"{)l..} == {x. l<x}"
    2.23 +
    2.24 + atLeast     :: "('a::ord) => 'a set"	("(1{_..})")
    2.25 +"{l..} == {x. l<=x}"
    2.26 +
    2.27 +end