Skip to content

Commit ed0cee9

Browse files
committed
check
1 parent bc42ae5 commit ed0cee9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Security/SimRel.agda

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)