Action scope produces boolean
Cedar.Thm.action_scope_produces_boolean
Plain-language statement
Lemma: evaluating the actionScope of any policy produces a boolean (and does not error)
Exact Lean statement
theorem action_scope_produces_boolean (policy : Policy) (request : Request) (entities : Entities) : producesBool policy.actionScope.toExpr request entities
Formal artifact
Lean source
theorem action_scope_produces_boolean (policy : Policy) (request : Request) (entities : Entities) : producesBool policy.actionScope.toExpr request entities:= by simp only [producesBool, ActionScope.toExpr, Scope.toExpr, Bool.false_eq_true] cases policy.actionScope case actionInAny list => split case h_1 => trivial case h_2 res h => simp at h have h₁ := action_in_set_of_euids_produces_boolean list request entities unfold producesBool at h₁ split at h₁ <;> rename_i h₂ · simp [h₂] at h · simp at h₁ case actionScope scope => simp only [Var.eqEntityUID, Var.inEntityUID, Var.isEntityType] cases scope <;> simp [evaluate, apply₁, apply₂, Result.as] case isMem ety uid => simp only [Coe.coe, Value.asBool, Except.bind_ok, beq_eq_false_iff_ne, ne_eq, ite_not] generalize (inₑ request.action uid entities) = b₁ generalize (ety == request.action.ty) = b₂ split <;> rename_i h · trivial · split at h <;> simp at h- Project
- Cedar Specification
- License
- Apache-2.0
- Commit
- 3f093947b8ae
- Source
- cedar-lean/Cedar/Thm/Authorization/Authorizer.lean:337-362
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
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.
Source project: Cedar Specification
Person-level attribution pending.
Find? notmem keys
Cedar.Data.Map.find?_notmem_keys
Plain-language statement
Inverse of find?_mem_toList, except that this requires wf
Source project: Cedar Specification
Person-level attribution pending.
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
Source project: Cedar Specification
Person-level attribution pending.