~/talk

In Types We Trust

Talkat Scale By The Bay 2019 · 2019-11-13..11-15· [scala]
slides:none on file

Proposes expressing semantic contracts as predicate-logic statements that feed both property-based tests and machine-checked proofs and shows concrete support in ScalaTest + ScalaCheck. Implements Peano naturals (sealed trait zero/successor), writes plus, and runs generators bounded 0–100 so hundreds of random combos pass (examples like 31,34,62 printed). Then gives an inductive proof of associativity using the actual implementation rewrite rules (0+R = R, succ(P)+R = succ(P+R)), arguing proofs are hard but feasible and types should carry contract faith.

AI-written summary · about

  1. 0:00Introduction to design by contract
  2. 2:06From Eiffel to Java and tests
  3. 8:28Natural numbers in Scala
  4. 12:37Testing associativity of addition
  5. 16:42Science vs. proofs in programming
  6. 25:27Formal specs with types and tests
  7. 28:59Q&A session
~/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.