1 include "logic/equality.ma".
3 (* Inclusion of: COL061-1.p *)
5 (* -------------------------------------------------------------------------- *)
7 (* File : COL061-1 : TPTP v3.7.0. Released v1.0.0. *)
9 (* Domain : Combinatory Logic *)
11 (* Problem : Find combinator equivalent to Q1 from B and T *)
13 (* Version : [WM88] (equality) axioms. *)
15 (* English : Construct from B and T alone a combinator that behaves as the *)
17 (* combinator Q1 does, where ((Bx)y)z = x(yz), (Tx)y = yx, *)
19 (* ((Q1x)y)z = x(zy). *)
21 (* Refs : [WM88] Wos & McCune (1988), Challenge Problems Focusing on Eq *)
23 (* : [WW+90] Wos et al. (1990), Automated Reasoning Contributes to *)
25 (* Source : [WW+90] *)
27 (* Names : CL-2 [WW+90] *)
29 (* Status : Unsatisfiable *)
31 (* Rating : 0.33 v3.4.0, 0.38 v3.3.0, 0.36 v3.1.0, 0.33 v2.7.0, 0.36 v2.6.0, 0.17 v2.5.0, 0.00 v2.2.1, 0.22 v2.2.0, 0.29 v2.1.0, 0.75 v2.0.0 *)
33 (* Syntax : Number of clauses : 3 ( 0 non-Horn; 3 unit; 1 RR) *)
35 (* Number of atoms : 3 ( 3 equality) *)
37 (* Maximal clause size : 1 ( 1 average) *)
39 (* Number of predicates : 1 ( 0 propositional; 2-2 arity) *)
41 (* Number of functors : 6 ( 2 constant; 0-2 arity) *)
43 (* Number of variables : 6 ( 0 singleton) *)
45 (* Maximal term depth : 5 ( 4 average) *)
49 (* -------------------------------------------------------------------------- *)
50 ntheorem prove_q1_combinator:
51 (∀Univ:Type.∀X:Univ.∀Y:Univ.∀Z:Univ.
52 ∀apply:∀_:Univ.∀_:Univ.Univ.
58 ∀H0:∀X:Univ.∀Y:Univ.eq Univ (apply (apply t X) Y) (apply Y X).
59 ∀H1:∀X:Univ.∀Y:Univ.∀Z:Univ.eq Univ (apply (apply (apply b X) Y) Z) (apply X (apply Y Z)).∃X:Univ.eq Univ (apply (apply (apply X (f X)) (g X)) (h X)) (apply (f X) (apply (h X) (g X))))
73 napply (ex_intro ? ? ? ?) ##[
77 ntry (nassumption) ##;
80 (* -------------------------------------------------------------------------- *)