Day 04Part 06- Discrete mathematics for computer science – Dis-junction Operator of proposition.
Day 04Part 06- Discrete mathematics for computer science – Dis-junction Operator of proposition.
Contents [hide]
- 1 Disjunction Operator (∨) in Propositional Logic – Discrete Mathematics for Computer Science
- 2 1. Definition of Disjunction (∨)
- 3 2. Symbolic Representation
- 4 3. Key Properties of Disjunction (∨)
- 5 (A) Commutative Property:
- 6 (B) Associative Property:
- 7 (C) Identity Law:
- 8 (D) Domination Law:
- 9 (E) Idempotent Law:
- 10 (F) Distributive Law:
- 11 4. Application in Computer Science
- 12 5. Disjunction in Logic Gates
- 13 Conclusion
- 14 Day 04Part 06- Discrete mathematics for computer science – Dis-junction Operator of proposition.
- 15 Discrete Mathematics for Computer Science Prof. Raissa D …
- 16 Propositional Logic Discrete Mathematics
- 17 Day 04 Part 06 – Discrete Mathematics for Computer Science: Disjunction Operator of a Proposition
- 18
What is a Disjunction?
- 19
Symbol:
- 20
Expression Format:
- 21
Truth Table of Disjunction (P ∨ Q):
- 22
Example:
- 23
Disjunction in Programming Terms:
- 24
Summary:
- 25 Day 04Part 06- Discrete mathematics for computer science – Dis-junction Operator of proposition.
- 26 Discrete Mathematics for Computer Science
Disjunction Operator (∨) in Propositional Logic – Discrete Mathematics for Computer Science
In propositional logic, the disjunction operator (∨) represents the logical “OR” operation. It is used to form compound statements that are true if at least one of the given propositions is true.
1. Definition of Disjunction (∨)
-
The disjunction (P ∨ Q) of two propositions P and Q is true if either P is true, Q is true, or both are true.
-
The only case when P ∨ Q is false is when both P and Q are false.
Truth Table for Disjunction (P ∨ Q):
P | Q | P ∨ Q |
---|---|---|
T | T | T |
T | F | T |
F | T | T |
F | F | F |
2. Symbolic Representation
-
P ∨ Q reads as “P OR Q“
-
Example:
-
P = “It is raining.”
-
Q = “It is cloudy.”
-
P ∨ Q = “It is raining OR it is cloudy.”
-
The statement is true if at least one of the conditions is true.
-
3. Key Properties of Disjunction (∨)
(A) Commutative Property:
P∨Q=Q∨PP ∨ Q = Q ∨ P
Example: “It is raining OR it is cloudy” is the same as “It is cloudy OR it is raining.”
(B) Associative Property:
(P∨Q)∨R=P∨(Q∨R)(P ∨ Q) ∨ R = P ∨ (Q ∨ R)
Example: If P = “Hot”, Q = “Cold”, and R = “Windy”, the order in which we group them doesn’t change the truth.
(C) Identity Law:
P∨False=PP ∨ \text{False} = P
Example: “It is sunny OR False” → The truth value remains that of “It is sunny.”
(D) Domination Law:
P∨True=TrueP ∨ \text{True} = \text{True}
Example: “It is sunny OR True” → Always True.
(E) Idempotent Law:
P∨P=PP ∨ P = P
Example: “It is raining OR it is raining” → No change in truth value.
(F) Distributive Law:
P∨(Q∧R)=(P∨Q)∧(P∨R)P ∨ (Q ∧ R) = (P ∨ Q) ∧ (P ∨ R)
4. Application in Computer Science
-
Boolean Algebra: Used in circuit design and logic gates.
-
Programming: Conditional statements (e.g.,
if (A || B) {}
in C, Java, Python). -
Database Queries: SQL uses
OR
to filter data (SELECT * FROM students WHERE grade = 'A' OR attendance > 80;
). -
Artificial Intelligence & Machine Learning: Logical operations in rule-based systems.
5. Disjunction in Logic Gates
-
Implemented as an “OR” gate in digital circuits.
-
Output is 1 (True) if at least one input is 1.
A | B | A OR B |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 1 |
Conclusion
-
The disjunction operator (∨) is a fundamental part of propositional logic, used extensively in mathematics, computer science, and electronics.
-
It follows commutative, associative, and distributive properties.
-
It has practical applications in programming, databases, and logic circuit design.
Would you like more examples or practice problems on this topic?
Day 04Part 06- Discrete mathematics for computer science – Dis-junction Operator of proposition.
Discrete Mathematics for Computer Science Prof. Raissa D …
Propositional Logic Discrete Mathematics
Here’s a clear and concise explanation for:
Day 04 Part 06 – Discrete Mathematics for Computer Science: Disjunction Operator of a Proposition
What is a Disjunction?
In propositional logic, a disjunction is a logical operation that joins two propositions using the “OR” operator.
Symbol:
∨
(called “vee”)
Expression Format:
If P
and Q
are propositions, then:
P ∨ Q means “P or Q“
Truth Table of Disjunction (P ∨ Q):
P | Q | P ∨ Q |
---|---|---|
T | T | T |
T | F | T |
F | T | T |
F | F | F |
Key Idea: The disjunction is true if at least one of the propositions is true.
Example:
Let:
-
P
: “It is raining” -
Q
: “It is snowing”
Then:
P ∨ Q = “It is raining or it is snowing”
This statement is true if either raining, snowing, or both.
Disjunction in Programming Terms:
Many programming languages use:
-
||
for logical OR
Example in C, Java, Python (using or
):
Summary:
-
Disjunction (∨) = “OR”
-
True if at least one component is true
-
Used to build more complex logical expressions in proofs, algorithms, circuits, and programming
Let me know if you’d like practice problems, diagrams, or code-based applications of disjunction.