diff options
author | braxtonhall | 2022-10-23 23:28:11 +0000 |
---|---|---|
committer | braxtonhall | 2022-10-23 23:28:11 +0000 |
commit | 8c3619fcb5e01b14eeab69bfa8c88cd75ed16ac9 (patch) | |
tree | 78fb3f42db412aa38c23184ddac133c09478d885 /entries/ionchy | |
parent | 3e7fc904482f049e5ce549b555b96ea0ef151f71 (diff) |
Make Jon's work/description consistent with everyone else
Diffstat (limited to 'entries/ionchy')
-rw-r--r-- | entries/ionchy/agda/Fib.agda | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/entries/ionchy/agda/Fib.agda b/entries/ionchy/agda/Fib.agda deleted file mode 100644 index a12b0a5..0000000 --- a/entries/ionchy/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]`. -} |