bool is_axiom_1(expression* e) {
// (1) a -> (b -> a)
if (e->type() != IMPLICATION) return false;
auto base_impl = e->as_binary();
auto a = base_impl->left();
auto right = base_impl->right();
if (right->type() != IMPLICATION) return false;
auto right_impl = right->as_binary();
auto b = right_impl->left();
auto a1 = right_impl->right();
if (a->is_equal_to(a1)) return true;
return false;
}
bool is_axiom(expression* e) {
if (is_axiom_1(e)) return true;
// 2
// 3
// 4
// 5
// 6
// 7
// 8
// 9
// 10
}
-
Notifications
You must be signed in to change notification settings - Fork 0
License
vityaman-edu/math-logic-deduction-theorem
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.