Programming Lab 2: Prenex Conjunctive Normal Form

Submission deadline: Wednesday, May 11, 2016 (11:59 p.m.)

TA: Diego Alejandro Montoya-Zapata

Introduction

The aim of this programming assignment is to translate first-order logic (FOL) formulae to the prenex conjunctive normal form (PCNF).

A formula is in PCNF if it is of the form

        Q1x1 ... Qnxn M
      

where the Qi are quantifiers and M is a quantifier-free formula in conjunctive normal form. The (possibly empty) sequence Q1x1 ... Qnxn is called the prefix and M is called the matrix [Ben-Ari (2012), Definition 9.9 and van Dalen (2013), Definition 3.5.10]. Every formula in FOL can be transformed into an equivalent formula in PCNF [van Dalen (2013), Theorem 3.5.11].

Assignment (80%)

Clean code (10%)

Before submitting your code, clean it up! Clean code:

Submission (10%)

Submission is electronic. Send an email to asr(at)eafit(dot)edu(dot)co and dmonto39(at)eafit(dot)edu(dot)co and attach a compressed file (.zip or .tar.gz) with your solution.

Your submission has to include the following:

Notes

Bibliography

Ben-Ari, Mordechai (2012). Mathematical Logic for Computer Science. 3rd ed. Springer.

van Dalen, Dirk (2013). Logic and Structure. 5th ed. Springer.


CM0845 Logic Valid XHTML
        1.1