Definition. Algebras for a type [009Y]

Let A be a type; an A-algebra X is defined to be a type {\mathopen {}\left \lvert X\right \rvert \mathclose {}} equipped with a function {A}\xrightarrow {{\alpha _A}}{{\mathopen {}\left \lvert X\right \rvert \mathclose {}}}. A homomorphism {X}\xrightarrow {{f}}{Y} of A-algebras is defined to be a function {{\mathopen {}\left \lvert X\right \rvert \mathclose {}}}\xrightarrow {{{\mathopen {}\left \lvert f\right \rvert \mathclose {}}}}{{\mathopen {}\left \lvert Y\right \rvert \mathclose {}}} together with a homotopy \alpha _f \colon {\mathopen {}\left \lvert f\right \rvert \mathclose {}}\circ \alpha _X \sim \alpha _Y. A homotopy H\colon f\sim g between homomorphisms {X}\xrightarrow {{f,g}}{Y} is given by a homotopy {\mathopen {}\left \lvert H\right \rvert \mathclose {}}\colon {\mathopen {}\left \lvert f\right \rvert \mathclose {}}\sim {\mathopen {}\left \lvert g\right \rvert \mathclose {}} together with an assignment to each a:A of an identification \alpha _H a\colon {\mathopen {}\left \lvert H\right \rvert \mathclose {}}\alpha _X a \cdot \eta _g a = \eta _f a.