Finish and publish the IsSomething article

This commit is contained in:
2023-08-31 22:16:26 -07:00
parent 032453c4d0
commit 48c3105f42
2 changed files with 39 additions and 16 deletions

View File

@@ -46,6 +46,14 @@ module SecondAttempt where
open IsSemigroup isSemigroup public
record IsContrivedExample {A : Set a} (_∙_ : A A A) : Set a where
field
-- first property
monoid : IsMonoid _∙_
-- second property; Semigroup is a stand-in.
semigroup : IsSemigroup _∙_
record Semigroup (A : Set a) : Set a where
field
_∙_ : A A A
@@ -69,3 +77,11 @@ module ThirdAttempt {A : Set a} (_∙_ : A → A → A) where
isIdentityRight : (a : A) a zero a
open IsSemigroup isSemigroup public
record IsContrivedExample : Set a where
field
-- first property
monoid : IsMonoid _∙_
-- second property; Semigroup is a stand-in.
semigroup : IsSemigroup _∙_