Logic703
This repository is in correspondence with the assignments of course COL703 (Logic for Computer Science) taught by Prof Sajeeva Prasad during fall of 2019.
Ah-oye! Fellow student. According to the principle: "Why do it yourself when someone have done it before?" Feel free to understand and reuse the code. For legal reasons I advise students to do it on their own.
Assignments:
- Syntax and Semantics of Propositional Logic
- Analytic Tableaux
- Hilbert Style Proof System
- Natural Deduction Proof System
- Normalisation in Natural deduction proofs
- Terms, substitution, unification, resolution
How did the assignment's demo go?
- I did a coding mistake in nnf where I put Iff(a, b) as And(Impl(a, b), Impl(a, b)) when it is obviously And(Impl(a, b), Impl(b, a)). Rest worked correctly, and so does the examples.
- Everything correct, with examples.
- Everything correct, with examples.
- Everything correct, with examples.
- There was one mistake in the
End
matching in grafting where I didn't change the gamma, but corrected it now | Complete with all examples. - One mistake: When normalizing, you have to normalize the tree until there is nothing to be normalized; I did it just once. But corrected in the updated code | Complete with all examples.