Advertisement
Guest User

Universal Rule Match, OpenNARS

a guest
Aug 29th, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. Premises:
  2. (tim --> cat).
  3. ((&&,($1 --> cat),($1 --> [orange])) ==> ($1 <-> garfield)).
  4.  
  5. Rule:
  6. (S --> M), ((&&,($1 --> M),A_1..n) ==> B), substitute($1,S) |- ((&&,A_1..n) ==> B)
  7.  
  8. Match Process:
  9. P:={}, Q:={}
  10.  
  11. MATCH Step1:
  12. Unify (S --> M) with (tim --> cat) under P
  13. => P={S -> tim, M -> cat}
  14.  
  15. MATCH Step2:
  16. Unify ((&&,($1 --> M),A_1..n) ==> B) with ((&&,($1 --> cat),($1 --> [orange])) ==> ($1 <-> garfield)) under P
  17. => P={S -> tim, M -> cat, A_1 -> ($1 --> [orange]), B -> ($1 <-> garfield)}
  18.  
  19. MATCH Step3:
  20. Satisfy substitute($1,S) by applying the subsitutions in M to substitute($1,S) leading to substitute($1,tim),
  21. this described substitution is now added to the substitution set Q:
  22. => Q={$1 -> S}
  23.  
  24. "Construction of Conclusion" Step4:
  25. The match process is finished, and was satisfyable, now lets build the conclusion
  26. by applying at first the substitutions in P to the conclusion ((&&,A_1..n) ==> B) specified by the rule
  27. leading to:
  28. (($1 --> [orange]) ==> ($1 <-> garfield))
  29.  
  30. now finally we apply Q to this result and get:
  31. ((tim --> [orange]) ==> (tim <-> garfield))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement