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

WIP: FOL rules (horn subset) #118

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions fol-axioms/cob-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
% Atom: A material entity consisting of exactly one atomic nucleus and the electron(s) orbiting it.

atom(A) ->
% the only parts are nuclei or electrons, or space
not ((has_part(A,P),
not not part_of_some(P,atomic_nucleus),
not not part_of_some(P,electron),
not immaterial_entity(P))). % is this required?

atom(A) ->
not ((has_part(A,E),
electron(E),
not orbits(E,A))).

atom(A) ->
has_part(A,N),
part_of_some(N,atomic_nucleus),
not ((has_part(A,N2),
not(N2=N),
part_of_some(N2,atomic_nucleus))).

part_of_some(P,C) ->
part_of(P,W),
type(W,C).

% Molecular Entity: A material entity that consists of two or more atoms that are all connected via covalent bonds such that any atom can be transitively connected with any other atom.

molecular_entity(E) ->
material_entity(E),
forall( (has_part(E,A1),
atom(A1),
has_part(E,A2),
atom(A2),
) ->
transitively_covalently_connected_to(A1,A2)).

transitively_covalently_connected_to(X,Y) :- covalently_connected_to(X,Y).
transitively_covalently_connected_to(X,Y) :- covalently_connected_to(X,Z),transitively_covalently_connected_to(Z,Y).

% If(A)-> Then( ...) ==> incohrent(A) :- not ...