All proofs
Project-declaredLean 4.31.0 · null

Verify Evaluate Pair is ok

Cedar.Thm.verifyEvaluatePair_is_ok

Plain-language statement

verifyEvaluatePair succeeds on sufficiently well-formed inputs.

Exact Lean statement

theorem verifyEvaluatePair_is_ok {φ : Term → Term → Term} {p₁ p₁' p₂ p₂' : Policy} {Γ : TypeEnv}
  (hwf : Γ.WellFormed)
  (hwt₁ : wellTypedPolicy p₁ Γ = .ok p₁')
  (hwt₂ : wellTypedPolicy p₂ Γ = .ok p₂') :
  ∃ asserts, verifyEvaluatePair φ p₁' p₂' (SymEnv.ofEnv Γ) = .ok asserts

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem verifyEvaluatePair_is_ok {φ : Term  Term  Term} {p₁ p₁' p₂ p₂' : Policy} {Γ : TypeEnv}  (hwf : Γ.WellFormed)  (hwt₁ : wellTypedPolicy p₁ Γ = .ok p₁')  (hwt₂ : wellTypedPolicy p₂ Γ = .ok p₂') :   asserts, verifyEvaluatePair φ p₁' p₂' (SymEnv.ofEnv Γ) = .ok asserts:= by  have tx₁, hwt_tx₁, heq_tx₁ := wellTypedPolicy_ok_implies_well_typed_expr hwt₁  have tx₂, hwt_tx₂, heq_tx₂ := wellTypedPolicy_ok_implies_well_typed_expr hwt₂  simp only [verifyEvaluatePair]  have _, hok₁, _ := compile_well_typed hwf hwt_tx₁  have _, hok₂, _ := compile_well_typed hwf hwt_tx₂  simp only [heq_tx₁, heq_tx₂] at hok₁ hok₂  simp [hok₁, hok₂]
Project
Cedar Specification
License
Apache-2.0
Commit
3f093947b8ae
Source
cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean:39-51

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.31.0

Find? ext

Cedar.Data.Map.find?_ext

Plain-language statement

Two well-formed maps are equal if they have the same find? for every key.

authorizationprogram verificationsemantics

Source project: Cedar Specification

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Find? notmem keys

Cedar.Data.Map.find?_notmem_keys

Plain-language statement

Inverse of find?_mem_toList, except that this requires wf

authorizationprogram verificationsemantics

Source project: Cedar Specification

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Find? some iff in values

Cedar.Data.Map.find?_some_iff_in_values

Plain-language statement

The mp direction of this does not need the wf precondition and, in fact, is available separately as find?_some_implies_in_values above

authorizationprogram verificationsemantics

Source project: Cedar Specification

Person-level attribution pending.

View proof record