Skip to content

Commit

Permalink
new predef lib pred (#449)
Browse files Browse the repository at this point in the history
* new predef lib pred

* update test cases
  • Loading branch information
joewatt95 authored Oct 4, 2023
1 parent 99f5093 commit e38c575
Show file tree
Hide file tree
Showing 39 changed files with 273 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/haskell/natural4/src/LS/XPile/LogicalEnglish/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,13 @@ libHCs =
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ the knowledge base lib includes:
if d1 is strictly before d0.

% Nested accessor predicates.
a class's a field is a value
if field is different from name
and field is different from id
and a class0's name is class
or class0's id is class
and class0's field is value.

a class's a field0's a field1 is a value
if class's field0 is a class0
and class0's field1 is value.
Expand Down
Loading

0 comments on commit e38c575

Please sign in to comment.