Roman Avermann
6 posts

Roman Avermann
@parabeans
software engineer and curry-howard isomorphism fan
Austin, TX Katılım Nisan 2014
12 Takip Edilen4 Takipçiler

@evie_fp @tangled_zans "Some animals are humans" corresponds with the type Σ(x: Animal) Σ(y: Human) x = y
a function of type "Animal -> Bool" corresponds to an implication that if Animal is inhabited, then Bool is inhabited
I don't know if I'm being dense or something but I don't see your point
English

@parabeans @tangled_zans Here's an example of what I mean: consider something like "Some animals are humans". In logic, you can plug in "blue" to see whether it's a human and just get ⊥. Same goes for "Spike".
OTOH, with `isHuman : Animal → Bool`, you get a type error for "blue, and ⊥ for "Spike".
English

@tangled_zans You can write any garbled collection of words as a (false) logical proposition, but technically you shouldn't be able to do the same in a type theory because it'd need to typecheck?
English

@davidtolnay yesss! but I wonder why this wasn't implemented in the first place?
English




