open import Configuration-types
open import Definition.Typed.EqualityRelation
open import Graded.Modality
module Definition.LogicalRelation.Fundamental.Reducibility.Restricted
{a} {M : Set a}
{𝕄 : Modality M}
(TC : Type-configuration 𝕄)
⦃ eqrel : EqRelSet TC ⦄
where
open EqRelSet eqrel
open import Definition.Untyped M
open import Definition.Typed TC
open import Definition.LogicalRelation TC
using (_⊩Level_∷Level; _⊩Level_≡_∷Level)
open import Definition.LogicalRelation.Hidden.Restricted TC
open import Definition.LogicalRelation.Fundamental TC
open import Definition.LogicalRelation.Substitution TC
open import Definition.LogicalRelation.Substitution.Introductions TC
open import Tools.Product
private variable
Γ : Cons _ _
A B t u : Term _
l l₁ l₂ : Lvl _
opaque
reducible-⊩ : Γ ⊢ A → ∃ λ l → Γ ⊩⟨ l ⟩ A
reducible-⊩ ⊢A = _ , ⊩ᵛ→⊩ (fundamental-⊩ᵛ ⊢A .proj₂)
opaque
reducible-⊩≡ : Γ ⊢ A ≡ B → ∃ λ l → Γ ⊩⟨ l ⟩ A ≡ B
reducible-⊩≡ ⊢A≡B = _ , ⊩ᵛ≡→⊩≡ (fundamental-⊩ᵛ≡ ⊢A≡B .proj₂)
opaque
reducible-⊩∷ : Γ ⊢ t ∷ A → ∃ λ l → Γ ⊩⟨ l ⟩ t ∷ A
reducible-⊩∷ ⊢t∷A = _ , ⊩ᵛ∷→⊩∷ (fundamental-⊩ᵛ∷ ⊢t∷A .proj₂)
opaque
reducible-⊩≡∷ : Γ ⊢ t ≡ u ∷ A → ∃ λ l → Γ ⊩⟨ l ⟩ t ≡ u ∷ A
reducible-⊩≡∷ ⊢t≡u∷A = _ , ⊩ᵛ≡∷→⊩≡∷ (fundamental-⊩ᵛ≡∷ ⊢t≡u∷A .proj₂)
opaque
reducible-⊩∷L :
⦃ inc : Var-included or-empty (Γ .vars) ⦄ →
Γ ⊢ l ∷Level → Γ ⊩Level l ∷Level
reducible-⊩∷L ⊢l =
⊩ᵛ∷L→⊩∷L (fundamental-⊩ᵛ∷L ⊢l .proj₂)
opaque
reducible-⊩≡∷L :
⦃ inc : Var-included or-empty (Γ .vars) ⦄ →
Γ ⊢ l₁ ≡ l₂ ∷Level → Γ ⊩Level l₁ ≡ l₂ ∷Level
reducible-⊩≡∷L l₁≡l₂ =
⊩ᵛ≡∷L→⊩≡∷L (fundamental-⊩ᵛ≡∷L l₁≡l₂ .proj₂)