TPTP Problem File: PUZ130_10.p

View Solutions - Solve Problem

%------------------------------------------------------------------------------
% File     : PUZ130_10 : TPTP v9.0.0. Released v8.2.0.
% Domain   : Puzzles
% Problem  : Garfield and Odie
% Version  : PUZ130_1 with the conjecture removed
% English  : Garfield is a cat and Odie is a dog. Cats and dogs are pets. Jon
%            is a human. Every pet has a human owner. Jon owns Garfield and
%            Odie, and they are the only cat and dog he owns. If a dog chases
%            a cat, then the cat's owner hates the dog's owner. Odie has chased
%            Garfield. Therefore, Jon hates himself.

% Refs     : 
% Source   : [TPTP]
% Names    : 

% Status   : Satisfiable
% Rating   : 0.00 v8.2.0
% Syntax   : Number of formulae    :   18 (   4 unt;  12 typ;   0 def)
%            Number of atoms       :    9 (   6 equ)
%            Maximal formula atoms :    3 (   1 avg)
%            Number of connectives :    3 (   0   ~;   1   |;   0   &)
%                                         (   0 <=>;   2  =>;   0  <=;   0 <~>)
%            Maximal formula depth :    4 (   2 avg)
%            Maximal term depth    :    3 (   2 avg)
%            Number of types       :    5 (   4 usr)
%            Number of type conns  :    7 (   5   >;   2   *;   0   +;   0  <<)
%            Number of predicates  :    3 (   2 usr;   0 prp; 2-2 aty)
%            Number of functors    :    6 (   6 usr;   3 con; 0-1 aty)
%            Number of variables   :    5 (   4   !;   1   ?;   5   :)
% SPC      : TF0_SAT_EQU_NAR

% Comments :
%------------------------------------------------------------------------------
tff(animal_type,type,
    animal: $tType ).

tff(cat_type,type,
    cat: $tType ).

tff(dog_type,type,
    dog: $tType ).

tff(human_type,type,
    human: $tType ).

tff(cat_to_animal_type,type,
    cat_to_animal: cat > animal ).

tff(dog_to_animal_type,type,
    dog_to_animal: dog > animal ).

tff(garfield_type,type,
    garfield: cat ).

tff(odie_type,type,
    odie: dog ).

tff(jon_type,type,
    jon: human ).

tff(owner_of_type,type,
    owner_of: animal > human ).

tff(chased_type,type,
    chased: ( dog * cat ) > $o ).

tff(hates_type,type,
    hates: ( human * human ) > $o ).

tff(human_owner,axiom,
    ! [A: animal] :
    ? [H: human] : ( H = owner_of(A) ) ).

tff(jon_owns_garfield,axiom,
    jon = owner_of(cat_to_animal(garfield)) ).

tff(jon_owns_odie,axiom,
    jon = owner_of(dog_to_animal(odie)) ).

tff(jon_owns_only,axiom,
    ! [A: animal] :
      ( ( jon = owner_of(A) )
     => ( ( A = cat_to_animal(garfield) )
        | ( A = dog_to_animal(odie) ) ) ) ).

tff(dog_chase_cat,axiom,
    ! [C: cat,D: dog] :
      ( chased(D,C)
     => hates(owner_of(cat_to_animal(C)),owner_of(dog_to_animal(D))) ) ).

tff(odie_chased_garfield,axiom,
    chased(odie,garfield) ).

% tff(jon_hates_jon,conjecture,
%     hates(jon,jon) ).

%------------------------------------------------------------------------------