Last active
June 2, 2018 03:00
-
-
Save kbuzzard/327a9c466e3aaecf38fe93109ef8fde6 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
import data.nat.prime | |
namespace nat | |
definition Prime := subtype prime | |
-- unit test | |
definition two' : Prime := ⟨2,prime_two⟩ | |
instance Prime_is_nat : has_coe Prime ℕ := ⟨subtype.val⟩ | |
-- unit test | |
example : (two' : ℕ) = 2 := rfl | |
end nat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment