Ian Ray. 3rd September 2025.
Slight modifications made in March 2026 before merging into TypeTopology.
We define what it means for displayed reflexive graph to be univalent
(see the index for reference to Sterling, Buchholtz, etc.)
\begin{code}
{-# OPTIONS --safe --without-K #-}
module ReflexiveGraphs.DisplayedUnivalent where
open import MLTT.Spartan
open import ReflexiveGraphs.Displayed
open import ReflexiveGraphs.Type
open import ReflexiveGraphs.Univalent
\end{code}
A displayed reflexive graph is univalent when each of its components (or fibers)
is univalent.
\begin{code}
is-displayed-univalent-refl-graph : (๐ : Refl-Graph ๐ค ๐ฅ)
(๐ : Displayed-Refl-Graph ๐ฃ ๐ฆ ๐)
โ ๐ค โ ๐ฃ โ ๐ฆ ฬ
is-displayed-univalent-refl-graph ๐ ๐ = (x : โจ ๐ โฉ)
โ is-univalent-refl-graph ([ ๐ ] x)
Displayed-Univalent-Refl-Graph : (๐ฃ ๐ฆ : Universe) (๐ : Refl-Graph ๐ค ๐ฅ)
โ ๐ค โ ๐ฅ โ (๐ฃ โ ๐ฆ)โบ ฬ
Displayed-Univalent-Refl-Graph ๐ฃ ๐ฆ ๐
= ฮฃ ๐ ๊ (Displayed-Refl-Graph ๐ฃ ๐ฆ ๐) , is-displayed-univalent-refl-graph ๐ ๐
underlying-displayed-refl-graph : {๐ : Refl-Graph ๐ค ๐ฅ}
โ (๐ : Displayed-Univalent-Refl-Graph ๐ฃ ๐ฆ ๐)
โ Displayed-Refl-Graph ๐ฃ ๐ฆ ๐
underlying-displayed-refl-graph (๐ , _) = ๐
syntax underlying-displayed-refl-graph ๐ = ๐ โฃแตค
\end{code}