Skip to content

Instantly share code, notes, and snippets.

@ChrisHughes24
Last active March 2, 2020 22:45
Show Gist options
  • Save ChrisHughes24/a1f25f9d9e933838ea41585811236212 to your computer and use it in GitHub Desktop.
Save ChrisHughes24/a1f25f9d9e933838ea41585811236212 to your computer and use it in GitHub Desktop.
prelude
import init.logic
set_option old_structure_cmd true
universe u
class comm_semigroup (α : Type u) extends has_mul α
class monoid (α : Type u) extends has_mul α, has_one α :=
(one_mul : ∀ a : α, 1 * a = a)
class comm_monoid (α : Type u) extends comm_semigroup α, has_one α :=
(one_mul : ∀ a : α, 1 * a = a)
class X (α : Type u) extends monoid α, comm_monoid α
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment