def test3(): kb = PDKB(1, [1], map(Literal, ['p', 'q'])) l1 = Literal('p') l2 = Belief(1, Literal('q')) kb.add_rml(l1) kb.add_rml(l2) test_kripke(kb, [l1, l2])
def test2(): kb = PDKB(1, [1], map(Literal, ['p', 'q'])) l1 = neg(Literal('p')) l2 = Belief(1, Literal('p')) l3 = Belief(1, neg(Literal('q'))) kb.add_rml(l1) kb.add_rml(l2) kb.add_rml(l3) test_kripke(kb, [l1, l2, l3])
def test5(): kb = PDKB(2, [1,2], map(Literal, ['p', 'q'])) rmls = [ Literal('p'), Belief(1, Literal('q')), Belief(1, Belief(2, neg(Literal('q')))) ] for rml in rmls: kb.add_rml(rml) test_kripke(kb, rmls)