cedar-policy / cedar

Implementation of the Cedar Policy Language
https://www.cedarpolicy.com
Apache License 2.0
892 stars 80 forks source link

Make partial evaluation more aggressive #1098

Closed shaobo-he-aws closed 3 months ago

shaobo-he-aws commented 3 months ago

Specifically, it now evluates <expr> [and|or] <expr> to <residual> [and|or] [<residual>|<expr>] instead of <residual> [and|or] <expr>, provided that LHS evaluates to a residual.

Description of changes

Issue #, if available

Checklist for requesting a review

The change in this PR is (choose one, and delete the other options):

I confirm that this PR (choose one, and delete the other options):

I confirm that cedar-spec (choose one, and delete the other options):

cdisselkoen commented 3 months ago

This PR will need corresponding Lean updates once cedar-policy/cedar-spec#402 is merged.

shaobo-he-aws commented 3 months ago

Closed for now. Will reopen when Lean model is ready.