Created
March 19, 2018 18:27
-
-
Save aqjune/da879565f6617b8b85f85362d5674983 to your computer and use it in GitHub Desktop.
monad
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
inductive any | |
| val : ∀ (α:Type), α → any | |
def bar (n:nat):option nat := | |
return n | |
def foo:option any := | |
do | |
dummy ← bar 10, | |
return (any.val nat 3) | |
/- | |
term | |
bar 10 | |
has type | |
option ℕ : Type | |
but is expected to have type | |
option ?m_1 : Type 1 | |
-/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment