src/HOLCF/One.thy
author huffman
Sat, 04 Jun 2005 00:22:08 +0200
changeset 16221 879400e029bf
parent 16070 4a83dd540b88
child 16747 934b6b36d794
permissions -rw-r--r--
New theory with lemmas for the fixrec package

(*  Title:      HOLCF/One.thy
    ID:         $Id$
    Author:     Oscar Slotosch

The unit domain.
*)

header {* The unit domain *}

theory One
imports Lift
begin

types one = "unit lift"

constdefs
  ONE :: "one"
  "ONE == Def ()"

translations
  "one" <= (type) "unit lift" 

(* ------------------------------------------------------------------------ *)
(* Exhaustion and Elimination for type one                                  *)
(* ------------------------------------------------------------------------ *)

lemma Exh_one: "t=UU | t = ONE"
apply (unfold ONE_def)
apply (induct t)
apply simp
apply simp
done

lemma oneE: "[| p=UU ==> Q; p = ONE ==>Q|] ==>Q"
apply (rule Exh_one [THEN disjE])
apply fast
apply fast
done

lemma dist_less_one [simp]: "~ONE << UU"
apply (unfold ONE_def)
apply (simp add: inst_lift_po)
done

lemma dist_eq_one [simp]: "ONE~=UU" "UU~=ONE"
apply (unfold ONE_def)
apply (simp_all add: inst_lift_po)
done

end