Blog

Mar 04, 2026

Rethinking OOP Through Dependent Types and Codata

This article explores how object-oriented programming evolves in a dependently typed setting by reinterpreting methods as codata observations with self-parameters. It shows how this approach enables verified interfaces, separates intrinsic and extrinsic verification styles, and redefines function and pair types as user-defined codata. By examining Π- and Σ-types, existential encodings, and codata representations of natural numbers, the work argues for a simplified core language where dependent expressiveness emerges from structured codata design.

Source: HackerNoon →


Share

BTCBTC
$73,445.00
0.34%
ETHETH
$2,304.11
2.29%
USDTUSDT
$1.00
0%
XRPXRP
$1.36
0.13%
BNBBNB
$611.47
0.28%
USDCUSDC
$1.000
0.01%
SOLSOL
$85.46
0.15%
TRXTRX
$0.320
0.73%
FIGR_HELOCFIGR_HELOC
$1.04
1.81%
DOGEDOGE
$0.0943
0.49%
USDSUSDS
$1.000
0%
WBTWBT
$53.66
0.64%
HYPEHYPE
$42.76
2.41%
ADAADA
$0.254
1.49%
LEOLEO
$10.12
0.1%
BCHBCH
$439.42
1.43%
LINKLINK
$9.22
0.72%
XMRXMR
$338.41
1.26%
ZECZEC
$372.11
2.68%
USDEUSDE
$1.000
0.01%