Esempio n. 1
0
        public override WFF Rename(Term s, Term d)
        {
            WFF[] rdis = new WFF[disjuncts.Length];
            for (int a = 0; a < disjuncts.Length; a++)
            {
                rdis[a] = disjuncts[a].Rename(s, d);
            }

            return(new Disjunction(rdis));
        }
Esempio n. 2
0
        public override WFF Rename(Term s, Term d)
        {
            WFF[] rcon = new WFF[conjuncts.Length];
            for (int a = 0; a < conjuncts.Length; a++)
            {
                rcon[a] = conjuncts[a].Rename(s, d);
            }

            return(new Conjunction(rcon));
        }
Esempio n. 3
0
 public Negation(WFF i)
 {
     if (i is Negation)
     {
         Negation n = (Negation)i;
         inner = n.inner;
     }
     else
     {
         inner = i;
     }
 }
Esempio n. 4
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (GetType() != obj.GetType())
            {
                return(false);
            }

            Quantifier q = (Quantifier)obj;

            if (variable.Equals(q.variable))
            {
                return(scope.Equals(q.scope));
            }

            WFF renamed = q.scope.Rename(q.variable, variable);

            return(scope.Equals(renamed));
        }
Esempio n. 5
0
 public Biconditional(WFF l, WFF r)
 {
     left  = l;
     right = r;
 }
Esempio n. 6
0
 public Conditional(WFF a, WFF c)
 {
     antecedent = a;
     consequent = c;
 }