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)); }
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)); }
public Negation(WFF i) { if (i is Negation) { Negation n = (Negation)i; inner = n.inner; } else { inner = i; } }
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)); }
public Biconditional(WFF l, WFF r) { left = l; right = r; }
public Conditional(WFF a, WFF c) { antecedent = a; consequent = c; }