removed some dead code

This commit is contained in:
Jeremy Siek 2019-05-06 15:15:54 +02:00
parent 4658c1e275
commit 5070619dd9

View file

@ -48,7 +48,9 @@ rename-equal {M = ` x} s = cong `_ s
rename-equal {ρ = ρ}{ρ' = ρ'}{M = ƛ N} s =
cong ƛ_ (rename-equal {ρ = ext ρ}{ρ' = ext ρ'}{M = N} (same-rename-ext s))
rename-equal {M = L · M} s = cong₂ _·_ (rename-equal s) (rename-equal s)
\end{code}
\begin{code}
same-subst : ∀{Γ Δ} → Subst Γ Δ → Subst Γ Δ → Set
same-subst{Γ}{Δ} σ σ' = ∀{A}{x : Γ ∋ A} → σ x ≡ σ' x
@ -78,14 +80,6 @@ compose-ext : ∀{Γ Δ Σ}{ρ : Rename Δ Σ} {ρ' : Rename Γ Δ} {A B} {x :
→ ((ext ρ) ∘ (ext ρ')) x ≡ ext (ρρ') x
compose-ext {x = Z} = refl
compose-ext {x = S x} = refl
compose-exts : ∀{Γ Δ Δ'}{ρ : Rename Γ Δ}{σ : Subst Δ Δ'}
→ (exts σ) ∘ (ext ρ) ≡ exts (σρ)
compose-exts{Γ}{Δ}{Δ'}{ρ}{σ} = extensionality lemma
where lemma : (x : Γ , ★ ∋ ★)
→ ((exts σ) ∘ (ext ρ)) x ≡ exts (σρ) x
lemma Z = refl
lemma (S x) = refl
\end{code}
\begin{code}
@ -198,8 +192,6 @@ rename-subst {Γ}{Δ}{Δ'}{M = ƛ M}{ρ}{σ} =
ih = rename-subst {M = M}{ρ = ext ρ}{σ = exts σ} in
cong ƛ_ g
where
e : (exts σ) ∘ (ext ρ) ≡ exts (σρ)
e = compose-exts{Γ}{Δ}{Δ'}{ρ}{σ}
ss : same-subst ((exts σ) ∘ (ext ρ)) (exts (σρ))
ss {A} {Z} = refl
ss {A} {S x} = refl