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

superfluous axioms #27

Open
arademaker opened this issue Nov 29, 2019 · 2 comments
Open

superfluous axioms #27

arademaker opened this issue Nov 29, 2019 · 2 comments

Comments

@arademaker
Copy link
Member

/*
(forall (?ROW0 ?ROW1 ?ROW2)
 (=> (and (instance ?ROW1 Class) (instance ?ROW0 Class) (instance ?ROW2 Class))
  (=>
   (and (subrelation exhaustiveDecomposition exhaustiveDecomposition)
    (and (instance exhaustiveDecomposition Predicate)
     (and (instance exhaustiveDecomposition Predicate)
      (exhaustiveDecomposition3 ?ROW0 ?ROW1 ?ROW2))))
   (exhaustiveDecomposition3 ?ROW0 ?ROW1 ?ROW2))))
*/
fof(a31410,axiom,! [ROW0,ROW1,ROW2] : (((s_instance(ROW1, s_Class) & s_instance(ROW0, s_Class) & s_instance(ROW2, s_Class)) => ((s_subrelation(s_exhaustiveDecomposition_m, s_exhaustiveDecomposition_m) & (s_instance(s_exhaustiveDecomposition_m, s_Predicate) & (s_instance(s_exhaustiveDecomposition_m, s_Predicate) & s_exhaustiveDecomposition3(ROW0, ROW1, ROW2)))) => s_exhaustiveDecomposition3(ROW0, ROW1, ROW2))))).
@arademaker
Copy link
Member Author

arademaker commented Dec 16, 2019

Investigating this error, I found a new problem. The function that looks for predicate variables is considering that the two axioms below contain predicate variables:

(=>
 (and
  (instance ?Bond CallableBond)
  (currentAccountBalance (AccountFn ?Bond) ?Date ?Amount)
  (callDate ?Bond ?Date))
 (amountDue (AccountFn ?Bond) ?Amount ?Date))

(=>
 (albumRelease ?A ?T)
 (and
  (exists (?R1 ?DS1)
   (releaseForSale (AlbumCopiesFn ?A ?DS1) ?R1 ?T))
  (not
   (exists (?B ?R2 A?DS2)
    (and
     (before ?B ?T)
     (releaseForSale
      (AlbumCopiesFn ?A ?DS2) ?R2 ?B))))))

The problem is in the way the fuction map-fold and find-vars operate. They should maintain a context during the parsing of the axiom.

@arademaker
Copy link
Member Author

Once this is solved, we must take care to not substitute different predicate variables in the same axiom by the same predicate symbol.

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