[HD] EECS3342 F26 - 2026-09-22 (Tuesday) - Lecture 4
Overview
Jackie Wang reviews proof and disproof strategies for universal, existential, and nested quantifiers, then introduces set notation, set comprehension, and counting subsets with the choose operator. Examples include disproving a universal claim with a counterexample, explaining why one failed case cannot disprove an existential claim, and deriving that choosing 3 elements from 5 gives 5·4·3/3! = 10 sets.
Key takeaways
- To disprove a universal implication, give one in-range value that makes the antecedent true and the consequent false; x = 1 refutes the claim that every integer from 1 to 10 is greater than 1.
- To disprove an existential claim, one failed example is insufficient: show the range is empty or show that every in-range value fails the property.
- Nested quantifiers require handling each layer separately: an outer counterexample i = 1 makes “there exists a natural j with 1 + j = 0” false because the required j = −1 is not natural.
- In set comprehension, the constraint selects values to consider while the expression before the vertical bar determines the actual members; mapping x to 2x for x ∈ {0,1,2} yields {0,2,4}.
- The number of size-i subsets of n elements is n! / ((n − i)!i!): count ordered selections, then divide by i! to remove order.
- Complement symmetry can simplify calculations: 10 choose 8 equals 10 choose 2, which evaluates to 45.
Chapters
- Lab 1 is due September 23 at 11:59 p.m.; students need to submit it to receive credit.
- Lab 2 is due September 30, and its English requirements and individual steps are relevant practice for the programming test.
- The sole programming test is scheduled for November 7 during each student's live-session slot in Lassonde Building 102.
- Jackie Wang emphasizes practicing specification entry in Rodin, not just understanding the material; an Event-B summary and sample test are planned.
- For a universal implication, a proof can be vacuous if its range constraint is always false.
- Otherwise, proving a universal implication means showing that every value satisfying the range constraint also satisfies the property.
- To prove an existential claim, provide one witness that satisfies both the range and the property.
- A universal implication is false when one in-range witness makes the antecedent true and the consequent false.
- An existential conjunction is false if its range is empty, or if every in-range value makes the property false.
- The truth-table case true implies false is the counterexample pattern for a universal implication.
- For integers from 1 through 10, the claim that every value is greater than 0 is true because each in-range integer satisfies the property.
- The claim that every integer from 1 through 10 is greater than 1 is false; x = 1 is a counterexample.
- The existential claim that some integer from 1 through 10 is greater than 1 is true, with x = 2 as a witness.
- The same x = 1 failure does not disprove that existential claim; disproof requires showing every in-range value fails.
- In the example, the outer variable i ranges over integers and the inner existential variable j ranges over natural numbers.
- Choosing i = 1 makes the inner condition “there exists a natural j such that 1 + j = 0” false.
- No natural number j can equal −1, so this single outer witness disproves the universal claim.
- A written justification can state either the formal range condition or explain in words why the required negative j is unavailable.
- Jackie Wang proves that for all x, R(x) implies P(x) is equivalent to saying there does not exist an x for which R(x) and not P(x).
- The derivation applies the axiom “for all x, Q(x)” iff “not exists x, not Q(x)” to the implication.
- Expanding implication as not R(x) or P(x), then applying De Morgan's law and double negation, yields the counterexample form.
- The second quantifier-conversion identity is assigned as an exercise; additional axioms needed for later proofs will be supplied.
- Sets have no ordering: {1, 2, 3} and {2, 3, 1} denote the same set.
- Sets have no duplicates, so an element is counted only once even if repeated in a written list.
- Cardinality, written with vertical bars such as |{1, 2, 3}|, is the number of distinct members; here it is 3.
- Set comprehension uses braces with a vertical bar to separate a member expression from a constraint.
- The constraint specifies which values to consider; it can be a proposition, predicate, implication, or quantified condition.
- The expression to the left of the bar specifies the form of the members included in the resulting set.
- For natural x with 0 ≤ x ≤ 2, the expression x produces {0, 1, 2}, while the expression 2x produces {0, 2, 4}.
- The values satisfying the constraint need not themselves be the final members; the left-side expression transforms them.
- With x ∈ {1, 2} and y ∈ {3, 4}, the pair expression (x, y) generates four members: (1,3), (1,4), (2,3), and (2,4).
- The pair set has cardinality 2 × 2 = 4.
- To count size-3 sets chosen from {1, 2, 3, 4, 5}, first count ordered sequences of length 3 without repetition.
- There are 5 choices for the first position, 4 for the second, and 3 for the third.
- The sequence count is 5 × 4 × 3; a separate adjustment is needed because sets do not preserve order.
- Each fixed three-element set appears as 3! = 6 different sequences, such as the six orderings of {1, 3, 5}.
- Dividing the 5 × 4 × 3 sequences by 3! removes the ordering duplicates.
- The resulting count of distinct three-element sets is 5 × 4 × 3 / 3! = 10.
- The choose operator n choose i counts the number of size-i sets formed from n distinct elements, where n ≥ i ≥ 0.
- Its formula is n! / ((n − i)! i!).
- The numerator after cancellation contains i descending factors, counting ordered selections; division by i! removes their order.
- For example, 10 choose 8 can be simplified using symmetry to 10 choose 2.
- For any n, n choose n = 1 because there is only one way to select all n elements.
- For any n, n choose 0 = 1 because there is only one empty set.
- The symmetry identity n choose i = n choose (n − i) counts a selection by instead choosing the elements to exclude.
- For a class of 50 students, selecting 45 is equivalent to choosing the 5 students not selected.
- Using symmetry, 10 choose 8 = 10 choose 2 = (10 × 9) / 2! = 45.
- Jackie Wang recommends reviewing both the choose formula and its sequence-counting derivation before the next lecture.
- The upcoming material moves toward power sets, relations, and further counting applications.
Transcript excerpt
0:05 Okay. So, just be mindful about the coming deadlines. So, let's look at it together. So, we got lab number one, lab number two, and your programming test. So, the best way to keep track is by looking at the semester calendar. Let's look at that together. So, on the lecture side, you can see semester calendar here. And then so we are now here September 22nd we're going to do lecture number four. Your lab lap number one is going to be due tomorrow 11:59 p.m. So please make sure to submit uh by the deadline to claim your credits. Of course by completing lab number one. So that means you should really have some basic knowledge and also some famili familiarity about the syntax with the rodent. You got to make
0:54 sure you're able to complete specification like a lab one independently on road. Okay. Of course, I'll give you guys some practice question very soon. And lab number two was also released last week. It will be due next Wednesday which will be September 30th. Right? So you still have a week but do you do really want to look at the uh requirements in English in the instruction PDF very carefully and look at the in individual steps but you'll be given something similar about lab number two in the actual programming test. So before the reading week on November 7th it will be during your scheduled live session in Lassan building 102 I believe right? So please go there in your enroll session and to attend the programming test. I'll be I'll try to give you guys
1:42 uh maybe over the weekend the latest I'll give you the guidance about how to get prepared for programming test and also some example test as well. So
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Jackie Wang.