~/talk

Math Behind Software

Talkat Jfokus 2023 · 2023-02-06..02-08· [software-architecture]
links:none on file
slides:none on file

Explains the concrete claim that vacuous truth is why empty collections make predicates like allMatch returns true, not a bug; demonstrates this with Java Stream.allMatch plus Scala forAll, JavaScript Array.every, Kotlin/Python all, and an IntelliJ compiler simplification screenshot that replaces a predicate with literal true; frames the logic as "for all x in set, if P(x) then Q(x)" and shows the empty-set case evaluates true, clarifying surprising counterintuitive examples and practical implications.

AI-written summary · about

  1. 0:00Start
  2. 3:01Why calling allMatch on empty Stream always return true?
  3. 3:59Is a concept from logic used to describe all statements that are evaluated as true because their base condition (Antecedent) cannot be fulfilled
  4. 7:55How exactly do Stream and allMatch fit into this?
  5. 11:24Vacuous truth - recap: ⚫ is a concept from the mathematics field of logic • represents logical statements with a false base condition ⚫ is the reason why all Match and their counterparts will return true for empty sequences • can sometimes occur in real life
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.