Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DreamLinuxer/107e809253059567219dc33fa920cc37 to your computer and use it in GitHub Desktop.
Save DreamLinuxer/107e809253059567219dc33fa920cc37 to your computer and use it in GitHub Desktop.
data Zero
data One = TT
data 𝔹 = 𝔽 | 𝕋
data T = C1 | C2 (𝔹,𝔹)
f :: T <-> T
f C1 = C2 (𝔽,𝔽)
f (C2 (𝕋,x)) = C2 (x,𝕋)
f (C2 (𝔽,𝔽)) = C1
f (C2 (𝔽,𝕋)) = C2 (𝕋,𝔽)
not :: 𝔹 <-> 𝔹
not 𝕋 = 𝔽
not 𝔽 = 𝕋
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment