Constant maps
Content created by Fredrik Bakke, Egbert Rijke and Jonathan Prieto-Cubides.
Created on 2022-02-08.
Last modified on 2024-04-11.
module foundation-core.constant-maps where
Imports
open import foundation.universe-levels
Idea
The constant map¶ from A
to B
at an element b : B
is the function x ↦ b
mapping every element x : A
to the given element
b : B
. In common type theoretic notation, the constant map at b
is the
function
λ x → b.
Definition
const : {l1 l2 : Level} (A : UU l1) {B : UU l2} → B → A → B const A b x = b
See also
Recent changes
- 2024-04-11. Fredrik Bakke. Refactor diagonals (#1096).
- 2024-03-13. Egbert Rijke. Refactoring pointed types (#1056).
- 2023-06-10. Egbert Rijke and Fredrik Bakke. Cleaning up synthetic homotopy theory (#649).
- 2023-06-08. Fredrik Bakke. Remove empty
foundation
modules and replace them by their core counterparts (#644). - 2023-06-07. Fredrik Bakke. Move public imports before “Imports” block (#642).