Oriel — AI & technology worth noticing, every day.

The algebra of dependent types (2025)

Web page · https://dotat.at/@/2025-05-28-types.html

First seen by Oriel on .

AI summary

Tony Finch explains why dependent pairs use big-sigma and dependent functions use big-pi, relating their notation to sums, products, and exponentials of type inhabitants.

  • Type inhabitants explain ordinary algebraic data types: product types multiply possible values, while sum types add them.
  • A dependent pair such as Σ len: usize . Array(Int, len) sums the possible second-element types across every first-element value.
  • When the second component is independent of the first, a sigma type simplifies to an ordinary product, A*B.
  • Dependent functions use Π because function inhabitants generalize exponentiation: each argument selects a potentially different return type.
  • The article also identifies “telescope” as a name for multi-part dependent tuples or records, originating in de Bruijn’s AUTOMATH.

#dependent types #algebraic data types #type theory #functional programming

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 112, latest observation ; +106 over observed period since
  • Lobsters: 23, latest observation ; +21 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 23, latest observation ; +23 over observed period since
  • Lobsters: 0, latest observation ; 0 over observed period since

Aliases

SourceExternal IDURL
Hacker News50623866https://dotat.at/@/2025-05-28-types.html Read discussion
Lobstersn2krd2https://dotat.at/@/2025-05-28-types.html Read discussion