src/HOLCF/Discrete.ML
author oheimb
Thu, 30 Oct 1997 14:17:33 +0100
changeset 4041 4df7f385fe9f
parent 3842 b55686a7b22c
child 4098 71e05eb27fb6
permissions -rw-r--r--
domain package: * theorems are stored in the theory * creates hierachical name space * minor changes to some names and values (for consistency), e.g. cases -> casedist, dists_eq -> dist_eqs, [take_lemma] -> take_lemmas * separator between mutual domain definitions changed from "," to "and" * minor debugging of Domain_Library.mk_var_names

(*  Title:      HOLCF/Discrete.ML
    ID:         $Id$
    Author:     Tobias Nipkow
    Copyright   1997 TUM
*)

goalw thy [undiscr_def] "undiscr(Discr x) = x";
by(Simp_tac 1);
qed "undiscr_Discr";
Addsimps [undiscr_Discr];

goal thy
 "!!S::nat=>('a::term)discr. is_chain(S) ==> range(%i. f(S i)) = {f(S 0)}";
by(fast_tac (!claset addDs [discr_chain0] addEs [arg_cong]) 1);
qed "discr_chain_f_range0";

goalw thy [cont,is_lub,is_ub] "cont(%x::('a::term)discr. f x)";
by(simp_tac (!simpset addsimps [discr_chain_f_range0]) 1);
qed "cont_discr";
AddIffs [cont_discr];