↑ Top


Products of Homomorphisms

This is the Homomorphisms.Products module of the Agda Universal Algebra Library.

{-# OPTIONS --without-K --exact-split --safe #-}

open import Algebras.Basic

module Homomorphisms.Products {𝑆 : Signature π“ž π“₯} where

-- Imports from Agda and the Agda Standard Library --------------------------
open import Agda.Primitive using ( _βŠ”_ ; lsuc ) renaming ( Set to Type )
open import Axiom.Extensionality.Propositional
                           using () renaming (Extensionality to funext)
open import Data.Product   using ( _,_ )
open import Level          using ( Level )
open import Relation.Binary.PropositionalEquality using ( refl )

-- Imports from the Agda Universal Algebras Library ----------------------
open import Overture.Preliminaries using ( ∣_∣ ; βˆ₯_βˆ₯)
open import Algebras.Products    {𝑆 = 𝑆} using ( β¨… )
open import Homomorphisms.Basic  {𝑆 = 𝑆} using ( hom ; epi )

private variable π“˜ Ξ² : Level

Suppose we have an algebra 𝑨, a type I : Type π“˜, and a family ℬ : I β†’ Algebra Ξ² 𝑆 of algebras. We sometimes refer to the inhabitants of I as indices, and call ℬ an indexed family of algebras.

If in addition we have a family 𝒽 : (i : I) β†’ hom 𝑨 (ℬ i) of homomorphisms, then we can construct a homomorphism from 𝑨 to the product β¨… ℬ in the natural way.

module _ {I : Type π“˜}(ℬ : I β†’ Algebra Ξ² 𝑆) where

 β¨…-hom-co : funext π“˜ Ξ² β†’ {Ξ± : Level}(𝑨 : Algebra Ξ± 𝑆) β†’ (βˆ€(i : I) β†’ hom 𝑨 (ℬ i)) β†’ hom 𝑨 (β¨… ℬ)
 β¨…-hom-co fe 𝑨 𝒽 = (Ξ» a i β†’ ∣ 𝒽 i ∣ a) , (Ξ» 𝑓 𝒢 β†’ fe Ξ» i β†’ βˆ₯ 𝒽 i βˆ₯ 𝑓 𝒢)

The family 𝒽 of homomorphisms inhabits the dependent type Ξ  i κž‰ I , hom 𝑨 (ℬ i). The syntax we use to represent this type is available to us because of the way -Ξ  is defined in the Type Topology library. We like this syntax because it is very close to the notation one finds in the standard type theory literature. However, we could equally well have used one of the following alternatives, which may be closer to β€œstandard Agda” syntax:

Ξ  Ξ» i β†’ hom 𝑨 (ℬ i) Β  or Β  (i : I) β†’ hom 𝑨 (ℬ i) Β  or Β  βˆ€ i β†’ hom 𝑨 (ℬ i).

The foregoing generalizes easily to the case in which the domain is also a product of a family of algebras. That is, if we are given π’œ : I β†’ Algebra Ξ± 𝑆 and ℬ : I β†’ Algebra Ξ² 𝑆 (two families of 𝑆-algebras), and 𝒽 : Ξ  i κž‰ I , hom (π’œ i)(ℬ i) (a family of homomorphisms), then we can construct a homomorphism from β¨… π’œ to β¨… ℬ in the following natural way.

 β¨…-hom : funext π“˜ Ξ² β†’ {Ξ± : Level}(π’œ : I β†’ Algebra Ξ± 𝑆) β†’ (βˆ€ (i : I) β†’ hom (π’œ i) (ℬ i)) β†’ hom (β¨… π’œ)(β¨… ℬ)
 β¨…-hom fe π’œ 𝒽 = (Ξ» x i β†’ ∣ 𝒽 i ∣ (x i)) , (Ξ» 𝑓 𝒢 β†’ fe Ξ» i β†’ βˆ₯ 𝒽 i βˆ₯ 𝑓 (Ξ» x β†’ 𝒢 x i))

Projection out of products

Later we will need a proof of the fact that projecting out of a product algebra onto one of its factors is a homomorphism.

 β¨…-projection-hom : (i : I) β†’ hom (β¨… ℬ) (ℬ i)
 β¨…-projection-hom = Ξ» x β†’ (Ξ» z β†’ z x) , Ξ» _ _ β†’ refl

We could prove a more general result involving projections onto multiple factors, but so far the single-factor result has sufficed.


← Homomorphisms.Kernels Homomorphisms.Noether β†’