src/HOLCF/Discrete.ML
author slotosch
Sun, 25 May 1997 16:17:09 +0200
changeset 3324 6b26b886ff69
parent 2841 c2508f4ab739
child 3842 b55686a7b22c
permissions -rw-r--r--
Eliminated the prediates flat,chfin Changed theorems with flat(x::'a) to (x::'a::flat) Since flat<chfin theorems adm_flat,adm_flatdom are eliminated. Use adm_chain_finite and adm_chfindom instead! Examples do not use flat_flat any more

(*  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];