aboutsummaryrefslogtreecommitdiff
path: root/entries/ionathanch/agda
diff options
context:
space:
mode:
authorJonathan Chan2022-10-24 03:07:43 +0000
committerJonathan Chan2022-10-24 03:09:47 +0000
commit4c717196fd630c5c207e114ffa9ca9c301eb1198 (patch)
tree0c661bc22bd5856c4d74588d65c92db280bc7799 /entries/ionathanch/agda
parentd0208871d8c9cf86541b56afe6b830c5a20eb2c2 (diff)
Fortran :) (also moved my Agda file up a dir)
Diffstat (limited to 'entries/ionathanch/agda')
-rw-r--r--entries/ionathanch/agda/Fib.agda19
1 files changed, 0 insertions, 19 deletions
diff --git a/entries/ionathanch/agda/Fib.agda b/entries/ionathanch/agda/Fib.agda
deleted file mode 100644
index a12b0a5..0000000
--- a/entries/ionathanch/agda/Fib.agda
+++ /dev/null
@@ -1,19 +0,0 @@
-
-open import Agda.Builtin.Nat
-open import Agda.Builtin.List
-open import Agda.Builtin.Reflection
-
-data Fib : Nat → Nat → Set where
- instance F0 : Fib 0 0
- instance F1 : Fib 1 1
- instance Fk : ∀ {k n m} → ⦃ Fib k n ⦄ → ⦃ Fib (suc k) m ⦄ → Fib (suc (suc k)) (n + m)
-
-fib' : ∀ k {n} → ⦃ Fib k n ⦄ → Nat
-fib' k {n} ⦃ fib ⦄ = n
-
-macro
- fib : Term → Term → TC _
- fib t hole = unify hole (def (quote fib') (arg i t ∷ []))
- where i = arg-info visible (modality relevant quantity-ω)
-
-{- Get the [n]th Fibonacci number by normalization via C-n `fib [n]`. -}