module A201607.BasicIS4.Metatheory.DyadicHilbert-BasicKripkeOno where
open import A201607.BasicIS4.Syntax.DyadicHilbert public
open import A201607.BasicIS4.Semantics.BasicKripkeOno public hiding (_⊨_)
eval : ∀ {A Γ Δ} → Γ ⁏ Δ ⊢ A → Γ ⁏ Δ ⊨ A
eval (var i) γ δ = lookup i γ
eval (app {A} {B} t u) γ δ = _⟪$⟫_ {A} {B} (eval t γ δ) (eval u γ δ)
eval ci γ δ = K I
eval (ck {A} {B}) γ δ = K (⟪K⟫ {A} {B})
eval (cs {A} {B} {C}) γ δ = K (⟪S⟫′ {A} {B} {C})
eval (mvar i) γ δ = lookup i (δ reflR)
eval (box t) γ δ = λ ζ → eval t ∙ (λ ζ′ → δ (transR ζ ζ′))
eval (cdist {A} {B}) γ δ = K (_⟪D⟫′_ {A} {B})
eval (cup {A}) γ δ = K (⟪↑⟫ {A})
eval (cdown {A}) γ δ = K (⟪↓⟫ {A})
eval (cpair {A} {B}) γ δ = K (_⟪,⟫′_ {A} {B})
eval cfst γ δ = K π₁
eval csnd γ δ = K π₂
eval unit γ δ = ∙