open import Definition.Typed.Restrictions
open import Graded.Modality
module Definition.Typed.Properties.Admissible.U.Primitive
{a} {M : Set a}
{𝕄 : Modality M}
(TR : Type-restrictions 𝕄)
where
open import Definition.Typed TR
open import Definition.Typed.Properties.Admissible.Level.Primitive TR
open import Definition.Untyped M hiding (wk)
private variable
Γ : Cons _ _
l l₁ l₂ : Lvl _
opaque
⊢U₀∷ : ⊢ Γ → Γ ⊢ U₀ ∷ U (1ᵘ+ zeroᵘₗ)
⊢U₀∷ ⊢Γ = Uⱼ (⊢zeroᵘ ⊢Γ)
opaque
⊢U : Γ ⊢ l ∷Level → Γ ⊢ U l
⊢U ⊢l = univ (Uⱼ ⊢l)
opaque
⊢U₀ : ⊢ Γ → Γ ⊢ U₀
⊢U₀ ⊢Γ = ⊢U (⊢zeroᵘ ⊢Γ)
opaque
U-cong-⊢≡ : Γ ⊢ l₁ ≡ l₂ ∷Level → Γ ⊢ U l₁ ≡ U l₂
U-cong-⊢≡ (term _ l₁≡l₂) = U-cong l₁≡l₂
U-cong-⊢≡ (literal ok ⊢Γ) = refl (⊢U (literal ok ⊢Γ))
opaque
U-cong-⊢≡∷ : Γ ⊢ l₁ ≡ l₂ ∷Level → Γ ⊢ U l₁ ≡ U l₂ ∷ U (1ᵘ+ l₁)
U-cong-⊢≡∷ (term _ l₁≡l₂) = U-cong l₁≡l₂
U-cong-⊢≡∷ (literal ok ⊢Γ) = refl (Uⱼ (literal ok ⊢Γ))