Created
February 3, 2019 04:30
-
-
Save righ1113/e60e325b2db0ef3158b5d8bec76f8c98 to your computer and use it in GitHub Desktop.
余帰納?
This file contains 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
module CoInductive | |
%default total | |
-- 性質Q | |
codata Q : Stream Nat -> Type where | |
Qcons : (x:Nat) -> Q xs -> Q (x::xs) | |
isQ : (xs:Stream Nat) -> Q xs | |
isQ (x::xs) = Qcons x (isQ xs) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment