--- a/src/HOL/Metis_Examples/HO_Reas.thy Sun May 01 18:37:25 2011 +0200
+++ b/src/HOL/Metis_Examples/HO_Reas.thy Sun May 01 18:37:25 2011 +0200
@@ -13,179 +13,166 @@
sledgehammer_params [prover = e, blocking, timeout = 10]
lemma "id True"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "\<not> id False"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "x = id True \<or> x = id False"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "id x = id True \<or> id x = id False"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "P True \<Longrightarrow> P False \<Longrightarrow> P x"
-sledgehammer [partial_types, type_sys = none, expect = none] ()
-sledgehammer [partial_types, type_sys = tags, expect = some] ()
-sledgehammer [partial_types, type_sys = args, expect = none] ()
-sledgehammer [partial_types, type_sys = mangled, expect = none] ()
-sledgehammer [full_types, type_sys = none, expect = some] ()
-sledgehammer [full_types, type_sys = tags, expect = some] ()
-sledgehammer [full_types, type_sys = args, expect = some] ()
-sledgehammer [full_types, type_sys = mangled, expect = some] ()
+sledgehammer [type_sys = none, expect = none] ()
+sledgehammer [type_sys = tags!!, expect = none] ()
+sledgehammer [type_sys = tags!, expect = some] ()
+sledgehammer [type_sys = tags, expect = some] ()
+sledgehammer [type_sys = args!!, expect = none] ()
+sledgehammer [type_sys = args!, expect = some] ()
+sledgehammer [type_sys = args, expect = some] ()
+sledgehammer [type_sys = mangled!!, expect = none] ()
+sledgehammer [type_sys = mangled!, expect = some] ()
+sledgehammer [type_sys = mangled, expect = some] ()
by metisFT
lemma "id (\<not> a) \<Longrightarrow> \<not> id a"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "id (\<not> \<not> a) \<Longrightarrow> id a"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "id (\<not> (id (\<not> a))) \<Longrightarrow> id a"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "id (a \<and> b) \<Longrightarrow> id a"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "id (a \<and> b) \<Longrightarrow> id b"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "id a \<Longrightarrow> id b \<Longrightarrow> id (a \<and> b)"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "id a \<Longrightarrow> id (a \<or> b)"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "id b \<Longrightarrow> id (a \<or> b)"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "id (\<not> a) \<Longrightarrow> id (\<not> b) \<Longrightarrow> id (\<not> (a \<or> b))"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "id (\<not> a) \<Longrightarrow> id (a \<longrightarrow> b)"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
lemma "id (a \<longrightarrow> b) \<longleftrightarrow> id (\<not> a \<or> b)"
-sledgehammer [partial_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [partial_types, type_sys = mangled, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = none, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = tags, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = args, expect = some] (id_apply)
-sledgehammer [full_types, type_sys = mangled, expect = some] (id_apply)
+sledgehammer [type_sys = none, expect = some] (id_apply)
+sledgehammer [type_sys = tags!, expect = some] (id_apply)
+sledgehammer [type_sys = tags, expect = some] (id_apply)
+sledgehammer [type_sys = args!, expect = some] (id_apply)
+sledgehammer [type_sys = args, expect = some] (id_apply)
+sledgehammer [type_sys = mangled!, expect = some] (id_apply)
+sledgehammer [type_sys = mangled, expect = some] (id_apply)
by (metis id_apply)
end