aboutsummaryrefslogtreecommitdiff
path: root/entries/ionathanch/agda/Fib.agda
diff options
context:
space:
mode:
authorBraxton Hall2022-10-24 03:38:31 +0000
committerGitHub2022-10-24 03:38:31 +0000
commit40317f6d4228ad435c699d17a9b4545041c0f3ee (patch)
tree0c661bc22bd5856c4d74588d65c92db280bc7799 /entries/ionathanch/agda/Fib.agda
parentd0208871d8c9cf86541b56afe6b830c5a20eb2c2 (diff)
parent4c717196fd630c5c207e114ffa9ca9c301eb1198 (diff)
Merge pull request #13 from ionathanch/main
Fortran :) (also moved my Agda file up a dir)
Diffstat (limited to 'entries/ionathanch/agda/Fib.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]`. -}