Boolean - Tumblr Posts

2 years ago

Hey so, Type Families and Propositional Type Equality in Haskell are pretty cool even if I mostly used them as hacks for Haskell not having dependent typing.

First time I've heavily used Data.Type.Equality.

Rewriting proofs with `trans` is significantly more tedious in compound types and results in quite a few functions to help guide the types.

Overall pretty fun experience. Lack of `rewrite` really does ruin a lot of the satisfaction though.

(I also made it into a Kata)

Hey So, Type Families And Propositional Type Equality In Haskell Are Pretty Cool Even If I Mostly Used
Prove without Truth Tables
Codewars
You are to prove the following equality: (p ∨ q) ⇒ r ≡ (p ⇒ r) ∧ (p ⇒ r) proof :: Bool p -> Bool q -> Bool r -> (p || q) ==>

Tags :