src/HOL/MicroJava/J/Decl.ML
author oheimb
Fri, 14 Jul 2000 20:47:11 +0200
changeset 9348 f495dba0cb07
child 10042 7164dc0d24d8
permissions -rw-r--r--
corrections (cast relation, Prog.ML -> Decl.ML)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9348
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     1
(*  Title:      HOL/MicroJava/J/Decl.ML
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     2
    ID:         $Id$
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     3
    Author:     David von Oheimb
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     4
    Copyright   1999 Technische Universitaet Muenchen
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     5
*)
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     6
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     7
val finite_is_class = prove_goalw thy [is_class_def,class_def,o_def] "finite {C. is_class G C}" (K [
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     8
	rtac finite_map_of 1]);
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
     9
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
    10
val is_classI = prove_goalw thy [is_class_def]
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
    11
"\\<And>G. class G C = Some c \\<Longrightarrow> is_class G C" (K [Auto_tac]);
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
    12
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
    13
val is_classD = prove_goalw thy [is_class_def]
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
    14
"\\<And>G. is_class G C \\<Longrightarrow> \\<exists>sc fs ms. class G C = Some (sc,fs,ms)" (K [
f495dba0cb07 corrections (cast relation, Prog.ML -> Decl.ML)
oheimb
parents:
diff changeset
    15
	not_None_tac 1, pair_tac "y" 1, pair_tac "ya" 1, Auto_tac]);