Skip to content

Commit

Permalink
note
Browse files Browse the repository at this point in the history
Signed-off-by: John Kastner <jkastner@amazon.com>
  • Loading branch information
john-h-kastner-aws committed Feb 25, 2025
1 parent 6b13227 commit 0c5f025
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cedar-lean/Cedar/Thm/Validation/Levels.lean
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,14 @@ theorem level_based_slicing_is_sound_expr {e : Expr} {n : Nat} {tx : TypedExpr}
case hasAttr e _ =>
have ihe := @level_based_slicing_is_sound_expr e
exact level_based_slicing_is_sound_has_attr hs hc hr ht hl ihe
case set => sorry -- trivial recursive case maybe a little tricky
case set xs =>
replace ⟨ hc, txs, ty, htx, ht ⟩ := type_of_set_inversion ht
subst tx
cases hl ; rename_i hl
-- TODO: I need a slightly stronger inversion lemma that gives me something like
-- ∀ x ∈ xs, ∃ tx c', typeOf x c env = .ok (tx, c') ∧ (tx.typeOf ⊔ ty) = some ty ∧ tx ∈ txs
-- Notably, `tx ∈ txs` is required to concluded `TypedAtLevel tx n` by `hl`
sorry
case call => sorry -- should be the same as set
case record rxs =>
have ih : ∀ x ∈ rxs, TypedAtLevelIsSound x.snd := by
Expand Down

0 comments on commit 0c5f025

Please sign in to comment.