File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -142,3 +142,19 @@ data _⊢_≤_⇐_ : Label → Term → CCTerm → Type → Set where
142142 → ⊢ PC ⇐ g₂
143143 --------------------------------------------
144144 → g₁ ⊢ prot ℓ′ M′ ≤ protect PC v ℓ M A ⇐ B
145+
146+
147+ ≤-value-pc : ∀ {g₁ g₂ M V A}
148+ → g₁ ⊢ M ≤ V ⇐ A
149+ → Value V
150+ --------------------------------
151+ → g₂ ⊢ M ≤ V ⇐ A
152+ ≤-value-pc (≤-addr x) (V-raw V-addr) = ≤-addr x
153+ ≤-value-pc (≤-lam x y) (V-raw V-ƛ) = ≤-lam x y
154+ ≤-value-pc (≤-const x) (V-raw V-const) = ≤-const x
155+ ≤-value-pc (≤-wrapped-addr 𝓋 x) (V-cast V-addr x₁) = ≤-wrapped-addr 𝓋 x
156+ ≤-value-pc (≤-cast (≤-addr x)) (V-cast V-addr i) = ≤-cast (≤-addr x)
157+ ≤-value-pc (≤-wrapped-lam M≤V 𝓋 x) (V-cast V-ƛ i) = ≤-wrapped-lam M≤V 𝓋 x
158+ ≤-value-pc (≤-cast (≤-lam M≤V x)) (V-cast V-ƛ i) = ≤-cast (≤-lam M≤V x)
159+ ≤-value-pc (≤-wrapped-const 𝓋 x y) (V-cast V-const x₁) = ≤-wrapped-const 𝓋 x y
160+ ≤-value-pc (≤-cast (≤-const x)) (V-cast V-const x₁) = ≤-cast (≤-const x)
You can’t perform that action at this time.
0 commit comments