You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lean4game/server/nng/NNG/MyNat/AddCommMonoid.lean

22 lines
770 B
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import NNG.Metadata
import NNG.MyNat.Addition
namespace MyNat
-- TODO: Do we need these instances?
-- (kmb) I wanted to introduce these instances as "collectibles" as
-- one went through the "main route" from addition world to power
-- world. If you could make some extra window with those collectibles
-- in, and whenever you have an instance sorry-free it awards you
-- the collectible, that would be great! These things were just
-- precisely the oddball (to my eyes) classes which nat was an instance of,
-- but I think they would make great collectibles.
-- instance addSemigroup : AddSemigroup :=
-- {
-- zero := 0
-- }
-- MyNat.addMonoid -- (after level 2)
-- MyNat.addCommSemigroup -- (after level 4)
-- MyNat.addCommMonoid -- (after level 4)