open import Configuration-types
open import Definition.Typed.EqualityRelation
import Definition.Untyped
open import Graded.Modality
module Definition.LogicalRelation.Fundamental.Reducibility
{a} {M : Set a}
(open Definition.Untyped M)
{𝕄 : Modality M}
(TC : Type-configuration 𝕄)
{{eqrel : EqRelSet TC}}
(open EqRelSet eqrel)
{m n} {Γ : Cons m n}
⦃ inc : Var-included or-empty (Γ .vars) ⦄
where
open import Definition.Typed TC
open import Definition.LogicalRelation TC
import Definition.LogicalRelation.Fundamental.Reducibility.Restricted TC
as RR
open import Definition.LogicalRelation.Hidden TC
import Definition.LogicalRelation.Hidden.Restricted TC as R
open import Tools.Function
open import Tools.Product as Σ
private variable
A B t u : Term _
l l₁ l₂ : Lvl _
opaque
reducible-⊩ : Γ ⊢ A → ∃ λ l → Γ ⊩⟨ l ⟩ A
reducible-⊩ = Σ.map idᶠ R.⊩→ ∘→ RR.reducible-⊩
opaque
reducible-⊩≡ : Γ ⊢ A ≡ B → ∃ λ l → Γ ⊩⟨ l ⟩ A ≡ B
reducible-⊩≡ = Σ.map idᶠ R.⊩≡→ ∘→ RR.reducible-⊩≡
opaque
reducible-⊩∷ : Γ ⊢ t ∷ A → ∃ λ l → Γ ⊩⟨ l ⟩ t ∷ A
reducible-⊩∷ = Σ.map idᶠ R.⊩∷→ ∘→ RR.reducible-⊩∷
opaque
reducible-⊩≡∷ : Γ ⊢ t ≡ u ∷ A → ∃ λ l → Γ ⊩⟨ l ⟩ t ≡ u ∷ A
reducible-⊩≡∷ = Σ.map idᶠ R.⊩≡∷→ ∘→ RR.reducible-⊩≡∷
opaque
reducible-⊩∷L : Γ ⊢ l ∷Level → Γ ⊩Level l ∷Level
reducible-⊩∷L = RR.reducible-⊩∷L
opaque
reducible-⊩≡∷L : Γ ⊢ l₁ ≡ l₂ ∷Level → Γ ⊩Level l₁ ≡ l₂ ∷Level
reducible-⊩≡∷L = RR.reducible-⊩≡∷L