Discrete Structures and Propositional Logic Note
Overview and Learning Outcomes
- Academic Institution: Superior University RAK Campus
- Subject: Discrete Structures
- Core Learning Outcomes:
- Explain the importance and foundational applications of Discrete Structures in digital systems and computer science.
- Identify, formalize, and construct logical statements and mathematical propositions.
Introduction to Discrete Structures
- Definition of Discrete Structures:
- Discrete structures are mathematical objects characterized by distinct, separate values.
- They provide the theoretical and mathematical foundation underlying computer science, digital logic, and computational systems.

Primary Types of Discrete Structures:
- Sets: Collections of distinct objects.
- Functions: Mappings assigning elements from a domain to a codomain.
- Sequences: Ordered lists of elements.
- Relations: Structures defining associations between elements of sets.
- Graphs: Networks comprising nodes (vertices) connected by edges.
Discrete vs. Continuous Values:
- Discrete Values:
- Composed of integer values or isolated objects.
- Countable in nature.
- Either finite or countably infinite.
- Continuous Values:
- Composed of real numbers.
- Uncountable in nature.
- Infinite number of values exist between any two given distinct values.
Why Study Discrete Structures?:
- Foundation of Computer Science: Digital hardware and hardware logic operate fundamentally on discrete binary values (\text{s} and \text{s}).
- Algorithm Design: Facilitates precise, rigorous reasoning regarding computational processes and efficiency.
- Data Structures: Enables the systematic organization, storage, and manipulation of discrete data.
- Cryptography: Underpins methods for securing information through discrete algebraic principles.
- Database Theory: Governs the structuring and querying of discrete data relationships.
- Artificial Intelligence: Provides the formal logic required to represent knowledge and construct automated reasoning engines.
- Network Protocols: Assists in modeling, designing, and analyzing digital communication architectures.
Mathematical Propositions and Sentence Types
Definition of a Proposition:
- A proposition is a declarative statement that is strictly evaluated as either True or False, but never both simultaneously.
Classification of English Sentence Types:
- Declarative Sentences: Statements that state facts or opinions. Only declarative sentences can be propositions because they express factual claims capable of being assigned a truth value.
- Interrogative Sentences: Sentences asking questions (e.g., "What time is it?"). These are non-propositions.
- Imperative Sentences: Sentences giving commands or instructions (e.g., "Go out and play."). These are non-propositions.
- Exclamatory Sentences: Sentences expressing strong emotion or feelings (e.g., "Have a nice day!"). These are non-propositions.
Examples of Valid Propositions and Their Truth Values:
- "The sun rises in the East and sets in the West"
- ""
- "'b' is a vowel"
- "The Earth orbits around the Sun"
- "Water boils at at sea level"
- "Humans need oxygen to survive"
Non-Examples of Propositions:
- "What time is it?"
- "Go out and play."
- ""
- "Have a nice day!"
- "Please close the door"
- "How old are you?"
- "What a beautiful day!"
Key Takeaway:
- Only declarative sentences qualify as propositions because they make explicit factual assertions that evaluate to either True or False.
Practice Problems: Expressing Statements in Symbolic Form
- Formalizing Statements into Propositional Logic (, , or ):
- Statement: "The number 8 is both even and a power of 2."
- Variables: Let : "8 is even", Let : "8 is a power of 2".
- Required Form:
- Statement: "The matrix A is not invertible."
- Variables: Let : "Matrix A is invertible".
- Required Form:
- Statement: ""
- Variables: Let : "".
- Required Form:
- Statement: ""
- Variables: Let : "".
- Required Form: (representing ).
- Statement: "There is a quiz scheduled for Wednesday or Friday."
- Variables: Let : "There is a quiz on Wednesday", Let : "There is a quiz on Friday".
- Required Form:
- Statement: "The number x equals zero, but the number y does not."
- Variables: Let : "", Let : "".
- Required Form:
- Statement: "At least one of the numbers x and y equals 0."
- Variables: Let : "", Let : "".
- Required Form:
Notation and Foundations of Propositional Logic
Propositional Notation:
- In propositional logic, lowercase letters represent atomic propositions, analogous to algebraic variables.
- Common symbolic designations:
- : First proposition
- : Second proposition
- : Third proposition
Definition of Propositional Logic:
- A branch of mathematics analyzing the logical connections between propositions treated as whole units.
Core Focus Areas:
- Relationships between propositions established via logical connectives.
- Evaluation of truth values and construction of truth tables.
- Analysis and derivation of logical equivalences.
- Development of foundational structures for logical reasoning.
Fields of Application:
- Mathematics
- Digital Circuits
- Computer Science
- Artificial Intelligence
- Decision Making
- Linguistics
Negation of Propositions
Definition:
- The negation of a proposition is denoted by (or ), which reads "not ".
- The truth value of is always the exact opposite of the truth value of .
Truth Table for Negation:
| True | False |
| False | True |
Weather Example:
- Let = "It is raining today"
- Negation = "It is not raining today"
- Truth Value Analysis:
- If it is raining (), then "It is not raining today" is False ().
- If it is not raining (), then "It is not raining today" is True ().
Real-Life Examples:
- "The sky is blue" "The sky is not blue"
- "I am hungry" "I am not hungry"
- "The store is open" "The store is not open"
Compound Propositions and Logical Connectives
Definition:
- A compound proposition is formed by joining two or more atomic propositions using logical connectives.
Standard Logical Connectives:
- Conjunction (AND): Denoted by
- Disjunction (OR): Denoted by
- Exclusive OR (XOR): Denoted by
- Implication (Conditional): Denoted by
- Biconditional: Denoted by
Examples of Compound Statements:
- Conjunction: "I will go to the park and I will bring my dog"
- Disjunction: "It is sunny or it is cloudy"
- Implication: "If it rains, then I will take an umbrella"
Structural Example Analysis:
- Let = "Today is Friday"
- Let = "It is raining today"
- = "Today is Friday and it is raining today"
- Evaluates to True strictly when both and are True.
- Evaluates to False if either "Today is Friday" is False or "It is raining today" is False.
- = "Today is Friday or it is raining today"
- = "If today is Friday, then it is raining today"
Conjunction
Definition:
- The conjunction of propositions and is denoted by , meaning " and ".
- A conjunction is True only when both and are True.
Truth Table for Conjunction:
| True | True | True |
| True | False | False |
| False | True | False |
| False | False | False |
Real-Life Examples:
- "I will study and I will pass the exam"
- "The sky is blue and the grass is green"
- "She is tall and she is smart"
Algebraic Properties of Conjunction:
- Commutative Property:
- Associative Property:
Disjunction
Definition:
- The disjunction of propositions and is denoted by , meaning " or ".
- A disjunction is True when at least one proposition (, , or both) is True. It is False only when both propositions are False.
Truth Table for Disjunction:
| True | True | True |
| True | False | True |
| False | True | True |
| False | False | False |
Real-Life Examples:
- "I will study or I will watch TV"
- "It is sunny or it is cloudy"
- "You can pay with cash or with a credit card"
Algebraic Properties of Disjunction:
- Commutative Property:
- Associative Property:
Exclusive OR (XOR)
Definition:
- The exclusive OR of propositions and is denoted by , meaning "either or , but not both".
- An exclusive OR evaluates to True strictly when exactly one of or is True.
Truth Table for Exclusive OR:
| True | True | False |
| True | False | True |
| False | True | True |
| False | False | False |
Real-Life Examples:
- "You can have either tea or coffee, but not both"
- "The light is either on or off"
- "You can choose either the red shirt or the blue shirt"
Algebraic Properties and Equivalences:
- Commutative Property:
- Alternative Boolean Expression:
Implication (Conditional Statements)
Definition:
- The implication of propositions and is denoted by , meaning "if then ".
- In , represents the premise (hypothesis) and represents the conclusion.
- An implication is False only when the premise is True and the conclusion is False.
Truth Table for Implication:
| True | True | True |
| True | False | False |
| False | True | True |
| False | False | True |
Real-Life Examples:
- "If it rains, then the ground will be wet"
- "If you study, then you will pass the exam"
- "If the traffic light is red, then you must stop"
Key Logical Equivalences for Implication:
- Alternative Expression:
- Contrapositive Expression:
Types of Implication and Logical Equivalences
- The Four Related Conditional Statements:
- Conditional Statement:
- Converse Statement:
- Inverse Statement:
- Contrapositive Statement:

- Master Truth Table Comparison:
| Conditional () | Converse () | Inverse () | Contrapositive () | ||
|---|---|---|---|---|---|
| True | True | True | True | True | True |
| True | False | False | True | True | False |
| False | True | True | False | False | True |
| False | False | True | True | True | True |
Fundamental Equivalences:
- A Conditional statement is logically equivalent to its Contrapositive:
- The Converse statement is logically equivalent to the Inverse statement:
Real-Life Illustrative Examples:
- Conditional: "If it is raining, then I will take an umbrella"
- Converse: "If I take an umbrella, then it is raining"
- Inverse: "If it is not raining, then I will not take an umbrella"
- Contrapositive: "If I do not take an umbrella, then it is not raining"
Practical Proof Implications:
- Proving a statement is logically identical to proving its contrapositive.
- Disproving a statement is logically identical to disproving its contrapositive.
Biconditional Statements
Definition:
- The biconditional of propositions and is denoted by , meaning " if and only if " (abbreviated as " iff ").
- A biconditional evaluates to True when and possess the identical truth value (both True or both False).
Truth Table for Biconditional:
| True | True | True |
| True | False | False |
| False | True | False |
| False | False | True |
Real-Life Examples:
- "You can vote if and only if you are 18 years or older"
- "The light is on if and only if the switch is up"
- "I will go to the party if and only if you go with me"
Properties & Relationship to Implication:
- Relationship to Implication:
- Commutative Property:
Comprehensive Practice Problems and Solutions
Truth Table Verification Problems (Problems 1–9):
- Truth Table for
| True | True | True | True | True |
| True | True | False | False | True |
| True | False | True | True | True |
| True | False | False | True | True |
| False | True | True | True | True |
| False | True | False | False | False |
| False | False | True | True | True |
| False | False | False | True | True |
- Truth Table for
| True | True | True | True | True | True |
| True | True | False | True | False | False |
| True | False | True | True | False | False |
| True | False | False | False | False | True |
| False | True | True | True | True | True |
| False | True | False | True | False | False |
| False | False | True | True | False | False |
| False | False | False | False | False | True |
- Truth Table for
| True | True | True | False |
| True | False | False | True |
| False | True | True | False |
| False | False | True | False |
- Truth Table for
| True | True | True | False | False | False |
| True | False | True | False | False | False |
| False | True | True | False | True | True |
| False | False | False | True | True | True |
- Truth Table for
| True | True | False | False | True |
| True | False | False | False | False |
| False | True | True | False | True |
| False | False | True | False | False |
- Truth Table for
| True | True | False | False | False |
| True | False | False | False | False |
| False | True | True | False | False |
| False | False | True | False | False |
- Truth Table for
| True | True | False | False | True |
| True | False | False | False | True |
| False | True | True | False | True |
| False | False | True | False | True |
- Truth Table for
| True | True | True | False | False | True |
| True | True | False | True | True | True |
| True | False | True | False | False | True |
| True | False | False | True | False | True |
| False | True | True | False | False | False |
| False | True | False | True | True | True |
| False | False | True | False | False | False |
| False | False | False | True | False | False |
- Truth Table for
| True | True | False | False | False | True |
| True | False | False | True | True | False |
| False | True | True | False | True | False |
| False | False | True | True | True | False |
Analytical Deductive Problems Without Truth Tables:
Problem 10: Suppose the statement is False. Find the truth values of and
Step 1: An implication is False if and only if premise is True and conclusion is False. Here, and .
Step 2: Evaluate conclusion . A disjunction is False if and only if both components are False. Therefore, and .
Step 3: Substitute into the premise: . For the premise to be True, must be True.
Step 4: A conjunction is True if and only if both components are True. Therefore, and .
Final Results: , , , .
Problem 11: Suppose is False and the statement is True. Find the truth values of and
Step 1: Given , the conjunction evaluates to False regardless of the value of .
Step 2: The biconditional is given as True. A biconditional is True when both sides share the same truth value.
Step 3: Since the right side is False, the left side must also be False.
Step 4: An implication is False if and only if the premise is True and the conclusion is False.
Final Results: , .
Applications of Discrete Structures in Computer Science
- Algorithm Design: Enables formal, precise mathematical reasoning and proof of correctness regarding computational steps and software processes.
- Cryptography: Provides foundational logical, modular, and algebraic principles required to build encryption algorithms and secure communications.
- Database Systems: Forms the mathematical model for relational databases (relational algebra), facilitating accurate query processing and data relationship management.
- Artificial Intelligence: Supplies propositional and predicate logic for knowledge representation, automated theorem proving, and cognitive reasoning frameworks.
- Programming: Underpins conditional execution logic ( statements), boolean expression evaluation, and computer arithmetic operations.