diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2023-06-17 20:11:37 -0700 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2023-06-17 20:11:37 -0700 |
| commit | a7d426c3d5b72b57131c5ca2e6efbf0a7c2b8df9 (patch) | |
| tree | 2ef270417daae91ed3ed7ccb5074b6b7fb0f7097 /src/proposition.h | |
| parent | d201bf2bf253c80a8629f11e44da9daca67470aa (diff) | |
added contradiction introduction rule
Diffstat (limited to 'src/proposition.h')
| -rw-r--r-- | src/proposition.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/proposition.h b/src/proposition.h index 2d09688..09509ea 100644 --- a/src/proposition.h +++ b/src/proposition.h @@ -4,6 +4,7 @@ typedef struct Proposition { char isSimple; char isNegative; + char isContradiction; struct Proposition* propA; struct Proposition* propB; tokenType_t relation; @@ -11,6 +12,7 @@ typedef struct Proposition { } prop_t; prop_t init_prop(char isNegative, prop_t* propA, prop_t* propB, tokenType_t relation); prop_t init_simple_prop(char isNegative, char* name); +prop_t init_contradiction_prop(void); typedef enum JustificationRule { ERR_R, PREMISE_R, @@ -19,10 +21,13 @@ typedef enum JustificationRule { DISJUNCT_INTRO, IMPLICATION_INTRO, BI_IMPLICATION_INTRO, + NEGATION_INTRO, + CONTRADICTION_INTRO, CONJUNCT_ELIM, DISJUNCT_ELIM, IMPLICATION_ELIM, - BI_IMPLICATION_ELIM + BI_IMPLICATION_ELIM, + NEGATION_ELIM } justRule_t; char* jrtos(justRule_t rule); typedef struct Justification { |
