AT3


Advanced Track Assignment 3

Corresponding to class 2019-10-23
Due 2019-10-25 End of Day

Instructions

You must complete all of these steps to receive credit.

  1. Download the AT3 template.

  2. Rename the file <firstname>_<lastname>_AT3.tex, filling in <firstname> and <lastname> with your first and last names, respectively.

  3. Fill in the sections marked TODO (removing the TODO markings) as directed in the assignment.

  4. Ask at least three questions about this assignment or feedback in general (filling in the sections marked TODO).

  5. Submit both your source file, <firstname>_<lastname>_AT3.tex, and the compiled pdf <firstname>_<lastname>_AT3.pdf to this google form by 2019-10-25 End of Day.

Help

Reference

NOTE: We are using two notations for functions for this assignment, both the math-like infix symbol notation (as in ) and the lambda-like function notation (as in ) with spaces instead of parentheses and commas for the entirety of the problem. Note that we will not at all use the function notation with parentheses (as in ).

We are dealing with variables which can take what are called boolean values, that is, either the value or the value .

We can define functions on booleans, like , which, when given a value returns (so that ) and vice versa. There is a standard set of functions on booleans and :

The definitions of these functions are given in the following truth table, using for false and for true.

There are 16 different possible boolean functions of two variables (why?). It turns out that the function is enough to define any other boolean function. That is, it is possible to write any boolean function of and as an expression using only , , and (and parentheses).

Assignment

Complete all points to the best of your ability. If you get stuck and have tried everything you can think of to get unstuck, explain your thinking, demonstrate effort and time. I’m not looking for a correct solution; I’m looking for your thought process.

  1. Convert this expression from math-like function notation (where ), to the lambda-like function notation (where ). Give both the minimally—e.g., —and fully—e.g., — parenthesized forms.

    This is a follow-up from AT2 problem 1, where there is an example solution.

  2. Show that is for all possible values of .

  3. Write definitions for:

    Using only the function. Write your answers in both the lambda-like notation (with “”) and the math-like notation (with “” (LaTeXed with \barwedge)).

    For example, the function written with is

    with code

     \mathrm{and}\ p\ q = p \land q
     = \boxed{ \nand\ (\nand\ p\ q)\ (\nand\ p\ q) }
     = \boxed{(p \barwedge q) \barwedge (p \barwedge q)}