ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 27 Apr 2013 20:20:00 +0200Solving logic problemshttps://ask.sagemath.org/question/10068/solving-logic-problems/Given a set of rules, for example: 1. Mary is older than Tom, 2. Tom is older than Sue; Can sage solve the question, "is Mary older than Sue?"
More specifically, is Sage able to do what Prolog does - unification of logic problems? ThanksSat, 27 Apr 2013 15:48:08 +0200https://ask.sagemath.org/question/10068/solving-logic-problems/Answer by slelievre for <p>Given a set of rules, for example: 1. Mary is older than Tom, 2. Tom is older than Sue; Can sage solve the question, "is Mary older than Sue?"</p>
<p>More specifically, is Sage able to do what Prolog does - unification of logic problems? Thanks</p>
https://ask.sagemath.org/question/10068/solving-logic-problems/?answer=14852#post-id-14852 sage: Mary, Tom, Sue = var('Mary Tom Sue')
sage: assume(Mary > Tom)
sage: assume(Tom > Sue)
sage: bool(Mary > Sue)
True
Sat, 27 Apr 2013 20:20:00 +0200https://ask.sagemath.org/question/10068/solving-logic-problems/?answer=14852#post-id-14852