Last active
November 25, 2019 22:35
-
-
Save MarcelineVQ/806cf2f885e616ff47bb3a597f7968e3 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
| using (p : a -> Type) | |
| -- codata Stream a = (::) a (Stream a) | |
| data Eventually_s : Stream a -> Type where | |
| Ev_b : p x -> Eventually_s (x :: xs) | |
| Ev_r : p x -> Eventually_s xs -> Eventually_s (x :: xs) | |
| eventually_s_inv : Eventually_s s -> s = x :: s' -> p x -> Eventually_s s' | |
| eventually_s_inv r@(Ev_b y) prf px = ?what | |
| eventually_s_inv (Ev_r y z) Refl px = z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment