(*Sample problems from F. J. Pelletier, Seventy-Five Problems for Testing Automatic Theorem Provers, J. Automated Reasoning 2 (1986), 191-216. Errata, JAR 4 (1988), 236-236.
The hardest problems -- judging by experience with several theorem provers, including matrix ones -- are 34 and 43.
*)
(*Needs multiple instantiation of ALL.*)
schematic_goal "?p : (ALL x. P(x)-->P(f(x))) & P(d)-->P(f(f(f(d))))" by (tactic "best_tac \<^context> FOLP_dup_cs 1")
(*Needs double instantiation of the quantifier*)
schematic_goal "?p : EX x. P(x) --> P(a) & P(b)" by (tactic "best_tac \<^context> FOLP_dup_cs 1")
schematic_goal "?p : EX z. P(z) --> (ALL x. P(x))" by (tactic "best_tac \<^context> FOLP_dup_cs 1")
text"Hard examples with quantifiers"
text"Problem 18"
schematic_goal "?p : EX y. ALL x. P(y)-->P(x)" by (tactic "best_tac \<^context> FOLP_dup_cs 1")
text"Problem 19"
schematic_goal "?p : EX x. ALL y z. (P(y)-->Q(z)) --> (P(x)-->Q(x))" by (tactic "best_tac \<^context> FOLP_dup_cs 1")
text"Problem 20"
schematic_goal "?p : (ALL x y. EX z. ALL w. (P(x)&Q(y)-->R(z)&S(w)))
--> (EX x y. P(x) & Q(y)) --> (EX z. R(z))" by (tactic "fast_tac \<^context> FOLP_cs 1")
text"Problem 21"
schematic_goal "?p : (EX x. P-->Q(x)) & (EX x. Q(x)-->P) --> (EX x. P<->Q(x))" by (tactic "best_tac \<^context> FOLP_dup_cs 1")
text"Problem 29. Essentially the same as Principia Mathematica *11.71"
schematic_goal "?p : (EX x. P(x)) & (EX y. Q(y))
--> ((ALL x. P(x)-->R(x)) & (ALL y. Q(y)-->S(y)) <->
(ALL x y. P(x) & Q(y) --> R(x) & S(y)))" by (tactic "fast_tac \<^context> FOLP_cs 1")
text"Problem 35"
schematic_goal "?p : EX x y. P(x,y) --> (ALL u v. P(u,v))" by (tactic "best_tac \<^context> FOLP_dup_cs 1")
text"Problem 36"
schematic_goal "?p : (ALL x. EX y. J(x,y)) &
(ALL x. EX y. G(x,y)) &
(ALL x y. J(x,y) | G(x,y) --> (ALL z. J(y,z) | G(y,z) --> H(x,z)))
--> (ALL x. EX y. H(x,y))" by (tactic "fast_tac \<^context> FOLP_cs 1")
text"Problem 37"
schematic_goal "?p : (ALL z. EX w. ALL x. EX y.
(P(x,z)-->P(y,w)) & P(y,z) & (P(y,w) --> (EX u. Q(u,w)))) &
(ALL x z. ~P(x,z) --> (EX y. Q(y,z))) &
((EX x y. Q(x,y)) --> (ALL x. R(x,x)))
--> (ALL x. EX y. R(x,y))" by (tactic "fast_tac \<^context> FOLP_cs 1")
text"Problem 39"
schematic_goal "?p : ~ (EX x. ALL y. F(y,x) <-> ~F(y,y))" by (tactic "fast_tac \<^context> FOLP_cs 1")
text"Problem 40. AMENDED"
schematic_goal "?p : (EX y. ALL x. F(x,y) <-> F(x,x)) -->
~(ALL x. EX y. ALL z. F(z,y) <-> ~ F(z,x))" by (tactic "fast_tac \<^context> FOLP_cs 1")
text"Problem 41"
schematic_goal "?p : (ALL z. EX y. ALL x. f(x,y) <-> f(x,z) & ~ f(x,x))
--> ~ (EX z. ALL x. f(x,z))" by (tactic "best_tac \<^context> FOLP_dup_cs 1")
text"Problem 44"
schematic_goal "?p : (ALL x. f(x) -->
(EX y. g(y) & h(x,y) & (EX y. g(y) & ~ h(x,y)))) &
(EX x. j(x) & (ALL y. g(y) --> h(x,y)))
--> (EX x. j(x) & ~f(x))" by (tactic "fast_tac \<^context> FOLP_cs 1")
text"Problems (mainly) involving equality or functions"
text"Problem 50" (*What has this to do with equality?*)
schematic_goal "?p : (ALL x. P(a,x) | (ALL y. P(x,y))) --> (EX x. ALL y. P(x,y))" by (tactic "best_tac \<^context> FOLP_dup_cs 1")
text"Problem 56"
schematic_goal "?p : (ALL x. (EX y. P(y) & x=f(y)) --> P(x)) <-> (ALL x. P(x) --> P(f(x)))" by (tactic "fast_tac \<^context> FOLP_cs 1")
text"Problem 57"
schematic_goal "?p : P(f(a,b), f(b,c)) & P(f(b,c), f(a,c)) &
(ALL x y z. P(x,y) & P(y,z) --> P(x,z)) --> P(f(a,b), f(a,c))" by (tactic "fast_tac \<^context> FOLP_cs 1")
text"Problem 58 NOT PROVED AUTOMATICALLY"
schematic_goal "?p : (ALL x y. f(x)=g(y)) --> (ALL x y. f(f(x))=f(g(y)))"
supply f_cong = subst_context [where t = f] by (tactic \<open>fast_tac \<^context> (FOLP_cs addSIs [@{thm f_cong}]) 1\<close>)
text"Problem 60"
schematic_goal "?p : ALL x. P(x,f(x)) <-> (EX y. (ALL z. P(z,y) --> P(z,f(x))) & P(x,y))"> by (tactic "fast_tac \<^context> FOLP_cs 1")
end
¤ Dauer der Verarbeitung: 0.28 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.