Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to parse TPTP-v8.1.2/Problems/SYN/SYN000-3.p #32

Open
msakai opened this issue Jun 10, 2023 · 0 comments
Open

Failed to parse TPTP-v8.1.2/Problems/SYN/SYN000-3.p #32

msakai opened this issue Jun 10, 2023 · 0 comments

Comments

@msakai
Copy link
Collaborator

msakai commented Jun 10, 2023

Failed to parse TPTP-v8.1.2/Problems/SYN/SYN000-3.p from https://www.tptp.org/TPTP/Distribution/TPTP-v8.1.2.tgz

%------------------------------------------------------------------------------
% File     : SYN000-3 : TPTP v8.1.2. Released v8.0.0.
% Domain   : Syntactic
% Problem  : Typed TPTP CNF syntax
% Version  : Biased.
% English  : 

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

% Status   : Satisfiable
% Rating   : ? v8.0.0
% Syntax   : Number of clauses     :    8 (   2 unt;   6 nHn;   4 RR)
%            Number of literals    :   24 (   3 equ;   8 neg)
%            Maximal clause size   :    5 (   3 avg)
%            Maximal term depth    :    4 (   2 avg)
%            Number of types       :    1 (   0 usr)
%            Number of type conns  :    0 (   0   >;   0   *;   0   +;   0  <<)
%            Number of predicates  :   13 (  10 usr;   7 prp; 0-3 aty)
%            Number of functors    :    8 (   8 usr;   5 con; 0-3 aty)
%            Number of variables   :   11 (   0 sgn  11   !;   0   ?;  11   :)
% SPC      : TCF_SAT_RFO_EQU_NUE

% Comments :
%------------------------------------------------------------------------------
%----Propositional
tcf(propositional,axiom,
    ( p0
    | ~ q0
    | r0
    | ~ s0 ) ).

%----First-order
tcf(first_order_tcf,axiom,
    ! [X: $i,Y: $i,Z: $i] :
      ( p(X)
      | ~ q(X,a)
      | r(X,f(Y),g(X,f(Y),Z))
      | ~ s(f(f(f(b)))) ) ).

%----Equality
tcf(equality,axiom,
    ! [X: $i,Y: $i,Z: $i] :
      ( ( f(Y) = g(X,f(Y),Z) )
      | ( f(f(f(b))) != a )
      | ( X = f(Y) ) ) ).

%----True and false
tcf(true_false,axiom,
    ( $true
    | $false ) ).

%----Quoted symbols
tcf(single_quoted,axiom,
    ! [Y: $i] :
      ( 'A proposition'
      | 'A predicate'(Y)
      | p('A constant')
      | p('A function'(a))
      | p('A \'quoted \\ escape\'') ) ).

%----Connectives - seen them all already

%----Annotated formula names
tcf(123,axiom,
    ! [X: $i,Y: $i,Z: $i] :
      ( p(X)
      | ~ q(X,a)
      | r(X,f(Y),g(X,f(Y),Z))
      | ~ s(f(f(f(b)))) ) ).

%----Roles - seen axiom already
tcf(role_hypothesis,hypothesis,
    p(h) ).

tcf(role_negated_conjecture,negated_conjecture,
    ! [X: $i] : ~ p(X) ).

%------------------------------------------------------------------------------
% echo TPTP-v8.1.2/Problems/SYN/SYN000-3.p | TestImportExportImportFile -- False --print-failure-only
TestImportExportImportFile: Parse error, pos: [LowerWord "tcf",LP,LowerWord "propositional",Comma,LowerWord "axiom",Comma,LP,LowerWord "p0",Oper "|",Oper "~",LowerWord "q0",Oper "|",LowerWord "r0",Oper "|",Oper "~",LowerWord "s0",RP,RP,Dot,CommentToken "%----First-order",LowerWord "tcf",LP,LowerWord "first_order_tcf",Comma,LowerWord "axiom"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant