diff options
Diffstat (limited to 'proposition.h')
| -rw-r--r-- | proposition.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/proposition.h b/proposition.h index d2f5ac6..95f377c 100644 --- a/proposition.h +++ b/proposition.h @@ -10,7 +10,24 @@ typedef struct Proposition { } prop_t; prop_t init_prop(prop_t* propA, prop_t* propB, tokenType_t relation); prop_t init_simple_prop(char* name); +typedef enum JustificationRule { + ERR_R, + PREMISE_R, + ASSUMPTION_R, + CONJUNCT_INTRO, + DISJUNCT_INTRO, + IMPLICATION_INTRO, + BI_IMPLICATION_INTRO, + CONJUNCT_ELIM, + DISJUNCT_ELIM, + IMPLICATION_ELIM, + BI_IMPLICATION_ELIM +} justRule_t; +char* jrtos(justRule_t rule); typedef struct Justification { - tokenType_t rule; + justRule_t rule; + int* references; + int referencesCount; } just_t; +just_t init_just(justRule_t rule, int* references, int referencesCount); #endif |
