Last active
August 29, 2015 14:18
-
-
Save ajrouvoet/7209890e6af501e2953c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_∉_ : ∀ {n m} {A : Set n} → A → Vec A m → Set n | |
a ∉ v = ¬ (a ∈ v) | |
postulate take' : ∀ {n m} {A : Set n} → (i : Fin m) → Vec A m → Vec A (toℕ i) | |
-- take' i v = ? | |
postulate indexof : ∀ {n m a} {A : Set n} | |
→ (v : Vec A m) → (p : A → Set) | |
→ Dec (∃ λ i → p (lookup i v) × a ∉ (take' i v)) | |
-- Cannot instantiate the metavariable _70 to solution A since it | |
-- contains the variable A which is not in scope of the metavariable | |
-- or irrelevant in the metavariable but relevant in the solution | |
-- when checking that the expression take' i v has type | |
-- Vec _70 (_m_86 v p i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment