Skip to content

Commit

Permalink
Prove β on ⇒ implies β on domain
Browse files Browse the repository at this point in the history
  • Loading branch information
0xd34df00d committed Jan 1, 2021
1 parent 335692e commit 33fcae8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions agda/Surface/Operational/BetaEquivalence.agda
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,11 @@ prove-via-≡rβ' f = ≡rβ'-to-≡rβ ∘ f ∘ ≡rβ-to-≡rβ'
(⊍ cons₁) ≡rβ (⊍ cons₂)
lookup cons₁ idx ≡rβ lookup cons₂ idx
≡rβ-lookup idx = prove-via-≡rβ' (≡rβ'-lookup idx _ _)

≡rβ'-⇒-dom : (τ₁' ⇒ τ₂') ≡rβ' (τ₁ ⇒ τ₂)
τ₁' ≡rβ' τ₁
≡rβ'-⇒-dom (≡rβ'-Subst ε ε' (τ₀₁ ⇒ τ₀₂) ε↝ε' refl refl) = ≡rβ'-Subst ε ε' τ₀₁ ε↝ε' refl refl

≡rβ-⇒-dom : (τ₁' ⇒ τ₂') ≡rβ (τ₁ ⇒ τ₂)
τ₁' ≡rβ τ₁
≡rβ-⇒-dom = prove-via-≡rβ' ≡rβ'-⇒-dom

0 comments on commit 33fcae8

Please sign in to comment.