The identity modality

Content created by Fredrik Bakke and Egbert Rijke.

Created on 2023-06-08.
Last modified on 2024-11-19.

module orthogonal-factorization-systems.identity-modality where
Imports
open import foundation.equivalences
open import foundation.function-types
open import foundation.universe-levels

open import orthogonal-factorization-systems.modal-operators
open import orthogonal-factorization-systems.types-local-at-maps
open import orthogonal-factorization-systems.uniquely-eliminating-modalities

Idea

The identity operation on types is trivially a higher modality.

Definition

operator-id-modality :
  (l : Level)  operator-modality l l
operator-id-modality l = id

unit-id-modality :
  {l : Level}  unit-modality (operator-id-modality l)
unit-id-modality = id

Properties

The identity modality is a uniquely eliminating modality

is-uniquely-eliminating-modality-id-modality :
  {l : Level}  is-uniquely-eliminating-modality (unit-id-modality {l})
is-uniquely-eliminating-modality-id-modality {l} P =
  is-local-dependent-type-is-equiv
    ( unit-id-modality)
    ( is-equiv-id)
    ( operator-id-modality l  P)

Recent changes