コード例 #1
0
ファイル: ReiterateRule.cs プロジェクト: sdao/TheoremChecker
        public ReiterateRule(ProofLine lineToReiterate)
        {
            if (lineToReiterate == null)
                throw new ArgumentNullException ("lineToReiterate");

            _LineReiterated = lineToReiterate;
        }
コード例 #2
0
        public ConjunctionEliminationRule(ProofLine originalConjunction)
        {
            if (originalConjunction == null)
                throw new ArgumentNullException ("originalConjunction");

            _OriginalConjunction = originalConjunction;
        }
コード例 #3
0
        public ReplacementRule(ProofLine templateLine)
        {
            if (templateLine == null)
                throw new ArgumentNullException ("templateLine");

            _Template = NormalizeRecursively(templateLine.Statement);
        }
コード例 #4
0
        public ModusTollensRule(ProofLine implication, ProofLine enteredNegatedConsequent)
        {
            if (implication == null)
                throw new ArgumentNullException ("implication");
            if (enteredNegatedConsequent == null)
                throw new ArgumentNullException ("enteredNegatedConsequent");

            _Implication = implication;
            _EnteredNegatedConsequent = enteredNegatedConsequent;
        }
コード例 #5
0
        public ModusPonensRule(ProofLine implication, ProofLine enteredAntecedent)
        {
            if (implication == null)
                throw new ArgumentNullException ("implication");
            if (enteredAntecedent == null)
                throw new ArgumentNullException ("enteredAntecedent");

            _Implication = implication;
            _EnteredAntecedent = enteredAntecedent;
        }
コード例 #6
0
        public ConjunctionIntroductionRule(ProofLine line1, ProofLine line2)
        {
            if (line1 == null)
                throw new ArgumentNullException ("line1");
            if (line2 == null)
                throw new ArgumentNullException ("line2");

            _Original1 = line1;
            _Original2 = line2;
        }
コード例 #7
0
 public DoubleNegationRule(ProofLine doubleNegationLine)
     : base(doubleNegationLine)
 {
 }
コード例 #8
0
ファイル: ProofHelper.cs プロジェクト: sdao/TheoremChecker
 /**
  * Justifies the statement on the basis that it is equivalent to another
  * on the basis of Double Negation replacement.
  */
 public static DoubleNegationRule DN(ProofLine template)
 {
     return new DoubleNegationRule (template);
 }
コード例 #9
0
ファイル: ProofHelper.cs プロジェクト: sdao/TheoremChecker
 /**
  * Justifies the statement on the basis that it is equivalent to another
  * on the basis of De Mogan's Rule replacement.
  */
 public static DeMorgansRule DeM(ProofLine template)
 {
     return new DeMorgansRule (template);
 }
コード例 #10
0
ファイル: ProofHelper.cs プロジェクト: sdao/TheoremChecker
 /**
  * Justifies the statement on the basis that it was one of the sides of a previous conjunction.
  */
 public static ConjunctionEliminationRule ConjElim(ProofLine line)
 {
     return new ConjunctionEliminationRule(line);
 }
コード例 #11
0
ファイル: ProofHelper.cs プロジェクト: sdao/TheoremChecker
 /**
  * Justifies the statement on the basis that it reiterates a previous statement.
  */
 public static ReiterateRule Reit(ProofLine line)
 {
     return new ReiterateRule(line);
 }
コード例 #12
0
ファイル: ProofHelper.cs プロジェクト: sdao/TheoremChecker
 /**
  * Justifies the statement on the basis of Modus Tollens.
  */
 public static ModusTollensRule MT(ProofLine implication, ProofLine enteredNegatedConsequent)
 {
     return new ModusTollensRule (implication, enteredNegatedConsequent);
 }
コード例 #13
0
ファイル: ProofHelper.cs プロジェクト: sdao/TheoremChecker
 /**
  * Justifies the statement on the basis of Modus Ponens.
  */
 public static ModusPonensRule MP(ProofLine implication, ProofLine enteredAntecedent)
 {
     return new ModusPonensRule (implication, enteredAntecedent);
 }
コード例 #14
0
ファイル: ProofHelper.cs プロジェクト: sdao/TheoremChecker
 /**
  * Justifies the statement on the basis that it is equivalent to another
  * on the basis of Material Implication replacement.
  */
 public static MaterialImplicationRule Impl(ProofLine template)
 {
     return new MaterialImplicationRule (template);
 }
コード例 #15
0
ファイル: ProofHelper.cs プロジェクト: sdao/TheoremChecker
 /**
  * Justifies the statement on the basis that it is the conjunction of two previously-entered statements.
  */
 public static ConjunctionIntroductionRule ConjIntr(ProofLine line1, ProofLine line2)
 {
     return new ConjunctionIntroductionRule(line1, line2);
 }
コード例 #16
0
 public MaterialImplicationRule(ProofLine templateLine)
     : base(templateLine)
 {
 }
コード例 #17
0
ファイル: DeMorgansRule.cs プロジェクト: sdao/TheoremChecker
 public DeMorgansRule(ProofLine templateLine)
     : base(templateLine)
 {
 }