Ejemplo n.º 1
0
 def testTransitive(self):
     th1 = Thm([A], Term.mk_equals(x, y))
     th2 = Thm([B], Term.mk_equals(y, z))
     self.assertEqual(Thm.transitive(th1, th2),
                      Thm([A, B], Term.mk_equals(x, z)))
Ejemplo n.º 2
0
    def eval(self, thy, args, ths):
        th = ths[0]
        assert Term.is_equals(th.prop), "beta_conv_rhs"
        rhs = th.prop.rhs

        return Thm.transitive(th, Thm.beta_conv(rhs))