Morphisms of magmas
Content created by Jonathan Prieto-Cubides, Fredrik Bakke and Egbert Rijke.
Created on 2022-05-07.
Last modified on 2025-10-31.
module structured-types.morphisms-magmas where
Imports
open import foundation.dependent-pair-types open import foundation.identity-types open import foundation.universe-levels open import structured-types.magmas
Idea
A
morphism¶
of magmas from M to N is a map between their
underlying types that preserves the binary operation.
Definition
module _ {l1 l2 : Level} (M : Magma l1) (N : Magma l2) where preserves-mul-Magma : (type-Magma M → type-Magma N) → UU (l1 ⊔ l2) preserves-mul-Magma f = (x y : type-Magma M) → f (mul-Magma M x y) = mul-Magma N (f x) (f y) hom-Magma : UU (l1 ⊔ l2) hom-Magma = Σ (type-Magma M → type-Magma N) preserves-mul-Magma map-hom-Magma : hom-Magma → type-Magma M → type-Magma N map-hom-Magma = pr1 preserves-mul-map-hom-Magma : (f : hom-Magma) → preserves-mul-Magma (map-hom-Magma f) preserves-mul-map-hom-Magma = pr2
External links
- Morphism of magmas at Wikidata
 
Recent changes
- 2025-10-31. Fredrik Bakke. chore: Concepts in 
structured-types(#1658). - 2025-10-17. Fredrik Bakke. Prefer infix 
=overId(#1517). - 2023-03-13. Jonathan Prieto-Cubides. More maintenance (#506).
 - 2023-03-10. Fredrik Bakke. Additions to 
fix-import(#497). - 2023-03-09. Jonathan Prieto-Cubides. Add hooks (#495).