Skip to content

Instantly share code, notes, and snippets.

@bitmappergit
Last active September 14, 2021 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitmappergit/7d10859b94ba8f23c73dd641d0f135e9 to your computer and use it in GitHub Desktop.
Save bitmappergit/7d10859b94ba8f23c73dd641d0f135e9 to your computer and use it in GitHub Desktop.
module πŸ“• where
open import Agda.Primitive
renaming (Set to πŸ’―; lsuc to πŸ‘†; lzero to πŸ”΄; Level to 🏒)
data _🀝_ {🀣 : 🏒} {πŸ‡¦ : πŸ’― 🀣} (πŸ‡½ : πŸ‡¦) : πŸ‡¦ β†’ πŸ’― 🀣 where
βœ… : πŸ‡½ 🀝 πŸ‡½
infix 4 _🀝_
data #⃣ : πŸ’― where
0⃣ : #⃣
πŸ” : #⃣ β†’ #⃣
_βž•_ : #⃣ β†’ #⃣ β†’ #⃣
πŸ” πŸ‡½ βž• πŸ‡Ύ = πŸ” (πŸ‡½ βž• πŸ‡Ύ)
0⃣ βž• πŸ‡Ύ = πŸ‡Ύ
infixl 6 _βž•_
1⃣ = πŸ” 0⃣
2⃣ = πŸ” 1⃣
3⃣ = πŸ” 2⃣
4⃣ = πŸ” 3⃣
5⃣ = πŸ” 4⃣
6⃣ = πŸ” 5⃣
7⃣ = πŸ” 6⃣
8⃣ = πŸ” 7⃣
9⃣ = πŸ” 8⃣
😬 : 2⃣ βž• 2⃣ 🀝 4⃣
😬 = βœ…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment