src/HOLCF/Discrete.ML
author wenzelm
Wed, 14 Nov 2001 23:16:05 +0100
changeset 12186 9b7026a0b0ed
parent 12030 46d57d0290a2
child 12338 de0f4a63baa5
permissions -rw-r--r--
added Induct/Binary_Trees.thy, Induct/Datatypes.thy; removed ex/Data.ML ex/Data.thy ex/Enum.ML ex/Enum.thy;

(*  Title:      HOLCF/Discrete.ML
    ID:         $Id$
    Author:     Tobias Nipkow
    License:    GPL (GNU GENERAL PUBLIC LICENSE)
*)

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

Goal
 "!!S::nat=>('a::term)discr. 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 [cont,is_lub_def,is_ub_def] "cont(%x::('a::term)discr. f x)";
by (simp_tac (simpset() addsimps [discr_chain_f_range0]) 1);
qed "cont_discr";
AddIffs [cont_discr];