




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Ingredients of logic:
Some different types of logics that are of importance to computer science
Propositional Logic
Intuitively, a proposition represents a statement that evaluates to either true or false.
Example 1. Provide some examples of propositional statements.
Example 2. Provide some examples of non propositions.
compound propositions are propositions that can be expressed using one or more atomic propositions and one or more logical connectives:
Example 4. Provide some examples of compound propositions.
Truth tables provide a means for determining the truth or falsehood of a compound propo- sition based upon the truth or falsehood of its constituent atoms.
Example 5. Make truth tables for each of the logical connectives.
If-Then statements
Propositions of the form p → q are called If-then statements and occur quite often (both explicitly and implicitly) in natural language. Here are a few ways which one may encounter an if-then statement within the natural-language context.
For the statement p → q
Given the proposition p → q,
Example 7. Given an example of a trivially true statement. Write out its converse and contrapositive.