Beispiel #1
0
        public static VariableFormula <TStatement> Variable <TStatement>(TStatement statement, bool?value)
        {
            var v = new VariableFormula <TStatement>(statement);

            v.Value = value;
            return(v);
        }
Beispiel #2
0
 public void Determine(VariableFormula variable)
 {
     if (Imply(this, variable).IsTautology())
     {
         variable.Value = true;
     }
     else if (Imply(this, !variable).IsTautology())
     {
         variable.Value = false;
     }
 }
Beispiel #3
0
 public VariableFormula <TStatement> GetOrCreateVariable <TStatement>(VariableFormula <TStatement> variable) => GetOrCreateVariable(variable.Statement);