theorem
Trm.SC_subst
{Γ : context}
(t : Trm)
(A : Typ)
:
typing Γ t A →
∀ (f : { x : ℕ // x ∈ context_terms Γ } → Trm),
(∀ (x : ℕ) (h : x ∈ context_terms Γ), f ⟨x, h⟩ ∈ Trm.SC (Trm.context_type Γ ⟨x, h⟩)) →
Trm.multi_subst (context_terms Γ) f t ∈ Trm.SC A