Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

satisfying assignments

sage.logic.propcalc allows one to see if a sentence in propositional logic is satisfiable.

The documentation has

sage: f = propcalc.formula("a|b") sage: f.is_satisfiable() True

Is there a syntax that would give a satisfying assignment? I'd like something like

sage: f.is_satisfiable(show) a:=True, b:=True

The documentation doesn't give the syntax, but I'm betting it's there somewhere.

satisfying assignments

sage.logic.propcalc allows one to see if a sentence in propositional logic is satisfiable.

The documentation has

sage: f = propcalc.formula("a|b")
sage: f.is_satisfiable()
True

True

Is there a syntax that would give a satisfying assignment? I'd like something like

sage: f.is_satisfiable(show)
a:=True, b:=True

b:=True

The documentation doesn't give the syntax, but I'm betting it's there somewhere.