Skip to content

Instantly share code, notes, and snippets.

@PiotrJander
Created January 30, 2019 18:41
Show Gist options
  • Save PiotrJander/52a85f92a0239e73191ce31d97278af2 to your computer and use it in GitHub Desktop.
Save PiotrJander/52a85f92a0239e73191ce31d97278af2 to your computer and use it in GitHub Desktop.
Sρ→Tρ : ∀ {Γ Δ}
→ let Γ' = cctx Γ in let Δ' = cctx Δ in
(∀ {A} → Γ S.∋ A → Δ S.∋ A)
→ T.Renaming Γ' Δ'
Sρ→Tρ {Γ} {Δ} ρ {A'} x with cctx Γ | inspect cctx Γ | cctx Δ | inspect cctx Δ | ct⁻¹ A' | inspect ct⁻¹ A'
Sρ→Tρ {Γ} {Δ} ρ {A'} x' | Γ' | [ Γ≡Γ' ] | Δ' | [ Δ≡Δ' ] | A | [ A'≡A ] with T∋→S∋ x'
... | x rewrite sym Γ≡Γ' | from∘to Context-iso Γ | xyz = {!S∋→T∋ (ρ x)!} -- | ct≡ {Conversion.TypeIso.from' A'} | to∘from Type-iso A'
where
xyz : ct (Conversion.TypeIso.from' A') ≡ A'
xyz = to∘from Type-iso A'
-- Not in scope:
-- xyz at <...>/Bisimulation.lagda:105,52-55
-- when scope checking xyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment