Esempio n. 1
0
 public bool IsClosed()
 {
     if (leftNode != null)
     {
         if (rightNode != null)
         {
             return(leftNode.IsClosed() && rightNode.IsClosed());
         }
         return(leftNode.IsClosed());
     }
     return(ExistsContradiction());
 }
Esempio n. 2
0
 public ST(Node proposition)
 {
     Root = new STElement(new HashSet <Node> {
         new NegationSign(proposition)
     }, new List <char>(), "");
     Root.Simplify();
     IsTautology = Root.IsClosed();
 }