Skip to content

Instantly share code, notes, and snippets.

View fluffynukeit's full-sized avatar

Daniel Austin fluffynukeit

View GitHub Profile
@fluffynukeit
fluffynukeit / Kohlenbach_Ch4_Exploration_1.hs
Created June 13, 2012 02:06
Testing Equivalence of Rationals Using Natural Encodings
import Data.Searchable
import Control.Applicative
import Data.Ratio
data Nat = Z | S Nat
deriving (Ord, Show, Eq)
instance Num Nat where
-- Functions defined in Kohlenbach p 45. These aren't the exact Kohlenbach definitions