Exemplo n.º 1
0
 def testSubstitution(self):
     x_eq_y = Term.mk_equals(x, y)
     th = Thm([x_eq_y], x_eq_y)
     y_eq_x = Term.mk_equals(y, x)
     self.assertEqual(Thm.substitution({
         "x": y,
         "y": x
     }, th), Thm([y_eq_x], y_eq_x))
Exemplo n.º 2
0
 def testSubstitution(self):
     x_eq_y = Eq(SVar('x', Ta), SVar('y', Ta))
     th = Thm([x_eq_y], x_eq_y)
     y_eq_x = Eq(y,x)
     self.assertEqual(Thm.substitution(Inst(x=y, y=x), th), Thm([y_eq_x], y_eq_x))