Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
cty12 committed Mar 18, 2024
1 parent bc42ae5 commit ed0cee9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Security/SimRel.agda
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,19 @@ data _⊢_≤_⇐_ : Label → Term → CCTerm → Type → Set where
⊢ PC ⇐ g₂
--------------------------------------------
g₁ ⊢ prot ℓ′ M′ ≤ protect PC v ℓ M A ⇐ B


≤-value-pc : {g₁ g₂ M V A}
g₁ ⊢ M ≤ V ⇐ A
Value V
--------------------------------
g₂ ⊢ M ≤ V ⇐ A
≤-value-pc (≤-addr x) (V-raw V-addr) = ≤-addr x
≤-value-pc (≤-lam x y) (V-raw V-ƛ) = ≤-lam x y
≤-value-pc (≤-const x) (V-raw V-const) = ≤-const x
≤-value-pc (≤-wrapped-addr 𝓋 x) (V-cast V-addr x₁) = ≤-wrapped-addr 𝓋 x
≤-value-pc (≤-cast (≤-addr x)) (V-cast V-addr i) = ≤-cast (≤-addr x)
≤-value-pc (≤-wrapped-lam M≤V 𝓋 x) (V-cast V-ƛ i) = ≤-wrapped-lam M≤V 𝓋 x
≤-value-pc (≤-cast (≤-lam M≤V x)) (V-cast V-ƛ i) = ≤-cast (≤-lam M≤V x)
≤-value-pc (≤-wrapped-const 𝓋 x y) (V-cast V-const x₁) = ≤-wrapped-const 𝓋 x y
≤-value-pc (≤-cast (≤-const x)) (V-cast V-const x₁) = ≤-cast (≤-const x)

0 comments on commit ed0cee9

Please sign in to comment.