~/talk

What logic can teach us, Scala programmers

Talkat ScalaCon 2022 · 2022-10-04..10-07· [scala, functional-programming]
links:none on file
slides:none on file

Uses Scala 3 to encode propositions as types and proofs as programs, implementing examples from propositional logic, Aristotle syllogisms and Smullyan knights-and-knaves. Demonstrates mechanical type-driven development: lambda introduction, pattern-match destructors, hole-filling that produces code which compiles. Shows when proofs fail intuitionistically (need law of excluded middle to recover classical tautologies), models predicates with path-dependent types and universals with dependent function types, and provides a working repo with implementations for 24 Aristotle syllogisms.

AI-written summary · about

  1. 0:00Introduction to logic and Scala
  2. 1:52Propositional logic in Scala
  3. 21:14First-order logic with syllogisms
  4. 35:58Second-order logic puzzles
  5. 47:16Lessons and takeaways
  6. 51:10Resources and conclusion
~/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.