diff options
author | Braxton Hall | 2022-10-24 03:38:31 +0000 |
---|---|---|
committer | GitHub | 2022-10-24 03:38:31 +0000 |
commit | 40317f6d4228ad435c699d17a9b4545041c0f3ee (patch) | |
tree | 0c661bc22bd5856c4d74588d65c92db280bc7799 /entries/ionathanch/agda | |
parent | d0208871d8c9cf86541b56afe6b830c5a20eb2c2 (diff) | |
parent | 4c717196fd630c5c207e114ffa9ca9c301eb1198 (diff) |
Merge pull request #13 from ionathanch/main
Fortran :) (also moved my Agda file up a dir)
Diffstat (limited to 'entries/ionathanch/agda')
-rw-r--r-- | entries/ionathanch/agda/Fib.agda | 19 |
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]`. -} |