Skip to content

Semigroup / Monoid / Group types #324

Open
@AshleyYakeley

Description

datatype Semigroup a of
    Mk of
        (<>): a -> a -> a;
    end;
end;

datatype Monoid a <: Semigroup a of
    Mk <: Mk.Semigroup of
        empty: a;
    end;
end;

datatype Group a <: Monoid a of
    Mk <: Mk.Monoid of
        invert: a -> a;
    end;
end;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions