task_id stringlengths 21 23 | challenge_id stringlengths 16 16 | proof_assistant stringclasses 1
value | session stringclasses 1
value | repo stringclasses 57
values | revision stringclasses 57
values | file_path stringlengths 13 92 | theory stringlengths 1 48 | variant int64 0 132 | challenge_type stringclasses 1
value | difficulty null | count null | by_centrality bool 1
class | ablation_prob float64 0.5 0.5 | min_depth int64 1 1 | max_depth int64 1 1 | leaves_only bool 1
class | min_size int64 0 0 | max_size stringclasses 1
value | min_centrality int64 0 0 | max_centrality stringclasses 1
value | seed int64 42 42 | n_proofs int64 1 173 | n_ablated int64 1 60 | holes_filled listlengths 1 60 | deleted_lemmas listlengths 1 1 | corollaries listlengths 1 1 | closure_size int64 1 172 | challenge_file_content stringlengths 133 350k | solution_file_content stringlengths 394 351k | solution_diff stringlengths 243 134k | manifest dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ablate_411c859f5153_68 | 310784ab702225b7 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/WF.lean | WF | 68 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 82 | 1 | [
{
"theorem_name": "wf_ite_simplify",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [ite.simplify, Bool.or_eq_true, decide_eq_true_eq]\n split <;> try simp [h₂]\n split <;> try simp [h₃, h₅]\n ... | [
{
"name": "wf_args_ternary",
"text": "theorem wf_args_ternary {εs : SymEntities} {t₁ t₂ t₃ : Term}\n (h₁ : Term.WellFormed εs t₁)\n (h₂ : Term.WellFormed εs t₂)\n (h₃ : Term.WellFormed εs t₃) :\n ∀ (t : Term), t ∈ [t₁, t₂, t₃] → Term.WellFormed εs t\n:= by\n intros t h₃ ; simp at h₃\n rcases h₃ with h... | [
{
"name": "wf_datetime_toTime",
"fan_in": 0,
"n_deps_direct": 8,
"n_deps_transitive": 19,
"n_lines": 16,
"n_chars": 1060,
"n_subproofs": 9,
"n_tactics": 11,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"max_... | 16 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -174,6 +174,15 @@
intros t h₃ ; simp at h₃
cases h₃ <;> rename_i h₃ <;> subst h₃ <;> assumption
+theorem wf_args_ternary {εs : SymEntities} {t₁ t₂ t₃ : Term}
+ (h₁ : Term.WellFormed εs t₁)
+ (h₂ : Term.WellFormed εs t₂)
+ (h₃ : Term.WellFormed εs t₃) :
+ ∀ (t : Term), t ∈ [t₁, t₂, t₃] → Term.WellFormed ε... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_411c859f5153_69 | 9f959020eddd8fed | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/WF.lean | WF | 69 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 82 | 18 | [
{
"theorem_name": "wf_not",
"depth": 1,
"n_commands": 0,
"n_lines": 16,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [Factory.not]\n split\n case h_1 =>\n simp [typeOf_bool, wf_bool]\n case h_2 t' ty =>\n simp only [typeOf_term_app] a... | [
{
"name": "wf_arg",
"text": "public theorem wf_arg {εs : SymEntities} {t₁ : Term}\n (h₁ : Term.WellFormed εs t₁) :\n ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t\n:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁\n\n",
"fan_in": 18,
"n_lines": 6,
"n_chars": 213,
"n_subproofs": 0,
"n_... | [
{
"name": "wf_duration_toMilliseconds",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 8,
"n_chars": 319,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": false,
"... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -151,6 +151,11 @@
$h1:ident $t2:ident, $h3:ident]
))
+public theorem wf_arg {εs : SymEntities} {t₁ : Term}
+ (h₁ : Term.WellFormed εs t₁) :
+ ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t
+:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁
+
public theorem wf_args {εs : SymEntities} {t₁ t₂ : Term}
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_411c859f5153_70 | 82ce0f600d9154cd | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/WF.lean | WF | 70 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 82 | 18 | [
{
"theorem_name": "wf_not",
"depth": 1,
"n_commands": 0,
"n_lines": 16,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [Factory.not]\n split\n case h_1 =>\n simp [typeOf_bool, wf_bool]\n case h_2 t' ty =>\n simp only [typeOf_term_app] a... | [
{
"name": "wf_arg",
"text": "public theorem wf_arg {εs : SymEntities} {t₁ : Term}\n (h₁ : Term.WellFormed εs t₁) :\n ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t\n:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁\n\n",
"fan_in": 18,
"n_lines": 6,
"n_chars": 213,
"n_subproofs": 0,
"n_... | [
{
"name": "wf_duration_toSeconds",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 6,
"n_chars": 301,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"max_n... | 3 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -151,6 +151,11 @@
$h1:ident $t2:ident, $h3:ident]
))
+public theorem wf_arg {εs : SymEntities} {t₁ : Term}
+ (h₁ : Term.WellFormed εs t₁) :
+ ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t
+:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁
+
public theorem wf_args {εs : SymEntities} {t₁ t₂ : Term}
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_411c859f5153_71 | c2dc390d80758605 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/WF.lean | WF | 71 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 82 | 18 | [
{
"theorem_name": "wf_not",
"depth": 1,
"n_commands": 0,
"n_lines": 16,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [Factory.not]\n split\n case h_1 =>\n simp [typeOf_bool, wf_bool]\n case h_2 t' ty =>\n simp only [typeOf_term_app] a... | [
{
"name": "wf_arg",
"text": "public theorem wf_arg {εs : SymEntities} {t₁ : Term}\n (h₁ : Term.WellFormed εs t₁) :\n ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t\n:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁\n\n",
"fan_in": 18,
"n_lines": 6,
"n_chars": 213,
"n_subproofs": 0,
"n_... | [
{
"name": "wf_duration_toMinutes",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 5,
"n_lines": 6,
"n_chars": 296,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"max_n... | 4 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -151,6 +151,11 @@
$h1:ident $t2:ident, $h3:ident]
))
+public theorem wf_arg {εs : SymEntities} {t₁ : Term}
+ (h₁ : Term.WellFormed εs t₁) :
+ ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t
+:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁
+
public theorem wf_args {εs : SymEntities} {t₁ t₂ : Term}
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_411c859f5153_72 | a9025f5376e4c851 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/WF.lean | WF | 72 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 82 | 18 | [
{
"theorem_name": "wf_not",
"depth": 1,
"n_commands": 0,
"n_lines": 16,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [Factory.not]\n split\n case h_1 =>\n simp [typeOf_bool, wf_bool]\n case h_2 t' ty =>\n simp only [typeOf_term_app] a... | [
{
"name": "wf_arg",
"text": "public theorem wf_arg {εs : SymEntities} {t₁ : Term}\n (h₁ : Term.WellFormed εs t₁) :\n ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t\n:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁\n\n",
"fan_in": 18,
"n_lines": 6,
"n_chars": 213,
"n_subproofs": 0,
"n_... | [
{
"name": "wf_duration_toHours",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 6,
"n_lines": 6,
"n_chars": 288,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"max_nes... | 5 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -151,6 +151,11 @@
$h1:ident $t2:ident, $h3:ident]
))
+public theorem wf_arg {εs : SymEntities} {t₁ : Term}
+ (h₁ : Term.WellFormed εs t₁) :
+ ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t
+:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁
+
public theorem wf_args {εs : SymEntities} {t₁ t₂ : Term}
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_411c859f5153_73 | e459467af384d7d8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/WF.lean | WF | 73 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 82 | 18 | [
{
"theorem_name": "wf_not",
"depth": 1,
"n_commands": 0,
"n_lines": 16,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [Factory.not]\n split\n case h_1 =>\n simp [typeOf_bool, wf_bool]\n case h_2 t' ty =>\n simp only [typeOf_term_app] a... | [
{
"name": "wf_arg",
"text": "public theorem wf_arg {εs : SymEntities} {t₁ : Term}\n (h₁ : Term.WellFormed εs t₁) :\n ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t\n:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁\n\n",
"fan_in": 18,
"n_lines": 6,
"n_chars": 213,
"n_subproofs": 0,
"n_... | [
{
"name": "wf_duration_toDays",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 7,
"n_lines": 6,
"n_chars": 282,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"max_nest... | 6 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -151,6 +151,11 @@
$h1:ident $t2:ident, $h3:ident]
))
+public theorem wf_arg {εs : SymEntities} {t₁ : Term}
+ (h₁ : Term.WellFormed εs t₁) :
+ ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t
+:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁
+
public theorem wf_args {εs : SymEntities} {t₁ t₂ : Term}
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_411c859f5153_74 | 8a16bf3fd5e0913d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/WF.lean | WF | 74 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 82 | 18 | [
{
"theorem_name": "wf_not",
"depth": 1,
"n_commands": 0,
"n_lines": 16,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [Factory.not]\n split\n case h_1 =>\n simp [typeOf_bool, wf_bool]\n case h_2 t' ty =>\n simp only [typeOf_term_app] a... | [
{
"name": "wf_arg",
"text": "public theorem wf_arg {εs : SymEntities} {t₁ : Term}\n (h₁ : Term.WellFormed εs t₁) :\n ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t\n:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁\n\n",
"fan_in": 18,
"n_lines": 6,
"n_chars": 213,
"n_subproofs": 0,
"n_... | [
{
"name": "wf_tags_hasTag",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 15,
"n_lines": 16,
"n_chars": 604,
"n_subproofs": 1,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 1,
"automation_only": false,
"max_nestin... | 13 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -155,6 +155,11 @@
$h1:ident $t2:ident, $h3:ident]
))
+public theorem wf_arg {εs : SymEntities} {t₁ : Term}
+ (h₁ : Term.WellFormed εs t₁) :
+ ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t
+:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁
+
public theorem wf_args {εs : SymEntities} {t₁ t₂ : Term}
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_411c859f5153_75 | e5e7e59fe307d5d6 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/WF.lean | WF | 75 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 82 | 18 | [
{
"theorem_name": "wf_not",
"depth": 1,
"n_commands": 0,
"n_lines": 16,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [Factory.not]\n split\n case h_1 =>\n simp [typeOf_bool, wf_bool]\n case h_2 t' ty =>\n simp only [typeOf_term_app] a... | [
{
"name": "wf_arg",
"text": "public theorem wf_arg {εs : SymEntities} {t₁ : Term}\n (h₁ : Term.WellFormed εs t₁) :\n ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t\n:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁\n\n",
"fan_in": 18,
"n_lines": 6,
"n_chars": 213,
"n_subproofs": 0,
"n_... | [
{
"name": "wf_tags_getTag!",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 15,
"n_lines": 15,
"n_chars": 589,
"n_subproofs": 2,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": false,
"max_nesti... | 13 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -155,6 +155,11 @@
$h1:ident $t2:ident, $h3:ident]
))
+public theorem wf_arg {εs : SymEntities} {t₁ : Term}
+ (h₁ : Term.WellFormed εs t₁) :
+ ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t
+:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁
+
public theorem wf_args {εs : SymEntities} {t₁ t₂ : Term}
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_411c859f5153_76 | dcf5b4e6706aa512 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/WF.lean | WF | 76 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 82 | 18 | [
{
"theorem_name": "wf_not",
"depth": 1,
"n_commands": 0,
"n_lines": 16,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [Factory.not]\n split\n case h_1 =>\n simp [typeOf_bool, wf_bool]\n case h_2 t' ty =>\n simp only [typeOf_term_app] a... | [
{
"name": "wf_arg",
"text": "public theorem wf_arg {εs : SymEntities} {t₁ : Term}\n (h₁ : Term.WellFormed εs t₁) :\n ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t\n:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁\n\n",
"fan_in": 18,
"n_lines": 6,
"n_chars": 213,
"n_subproofs": 0,
"n_... | [
{
"name": "wf_tags_getTag",
"fan_in": 0,
"n_deps_direct": 3,
"n_deps_transitive": 19,
"n_lines": 15,
"n_chars": 627,
"n_subproofs": 1,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": false,
"max_nestin... | 17 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -155,6 +155,11 @@
$h1:ident $t2:ident, $h3:ident]
))
+public theorem wf_arg {εs : SymEntities} {t₁ : Term}
+ (h₁ : Term.WellFormed εs t₁) :
+ ∀ (t : Term), t ∈ [t₁] → Term.WellFormed εs t
+:= by intros t₁ h₃; simp at h₃; subst h₃; exact h₁
+
public theorem wf_args {εs : SymEntities} {t₁ t₂ : Term}
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_9469ba94f062_0 | b09c0d071eafa187 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer.lean | Enforcer | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "enforce_satisfiedBy_implies_exists_swf",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hsε hI hok hsat\n have ⟨I', env, hext, _, _, _, _⟩ := enforce_satisfiedBy_implies_exists_swf_... | [
{
"name": "enforce_satisfiedBy_implies_exists_swf_extract?",
"text": "theorem enforce_satisfiedBy_implies_exists_swf_extract? {ps : Policies} {εnv : SymEnv} {I : Interpretation} {assumes : Asserts} :\n εnv.StronglyWellFormedForPolicies ps →\n I.WellFormed εnv.entities →\n enforce (ps.map Policy.toExpr) ε... | [
{
"name": "enforce_satisfiedBy_implies_exists_swf",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 18,
"n_chars": 772,
"n_subproofs": 2,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"automation_only":... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,6 +27,27 @@
open Data Spec SymCC Factory
+theorem enforce_satisfiedBy_implies_exists_swf_extract? {ps : Policies} {εnv : SymEnv} {I : Interpretation} {assumes : Asserts} :
+ εnv.StronglyWellFormedForPolicies ps →
+ I.WellFormed εnv.entities →
+ enforce (ps.map Policy.toExpr) εnv = Set.mk assumes →
+ ass... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_9a58dce0aea2_0 | d9bbe9edbf1ba9a4 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/BatchedEvaluator/Common.lean | Common | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "direct_request_and_entities_refine",
"depth": 1,
"n_commands": 0,
"n_lines": 12,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · exact as_partial_request_refines\n · unfold EntitiesRefine Entities.asPartial\n in... | [
{
"name": "as_partial_request_refines",
"text": "theorem as_partial_request_refines {req : Request} :\n RequestRefines req req.asPartialRequest := by\n simp only [Request.asPartialRequest, RequestRefines, PartialEntityUID.asEntityUID, Option.map_some]\n constructor\n · apply PartialIsValid.some\n rfl... | [
{
"name": "direct_request_and_entities_refine",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 15,
"n_chars": 636,
"n_subproofs": 2,
"n_tactics": 18,
"cyclomatic": 2,
"n_automation": 3,
"n_rewrites": 4,
"n_structural": 9,
"automation_only": fa... | 1 | import Cedar.TPE.Input
import Cedar.TPE.BatchedEvaluator
import Cedar.Spec
import Cedar.Thm.TPE.Input
/-!
Shared definitions and lemmas for batched evaluator theorems.
-/
namespace Cedar.Thm
open Cedar.TPE
open Cedar.Spec
open Cedar.Data
/-- A well behaved entity loader
1. Loads all the requested entities, returnin... | import Cedar.TPE.Input
import Cedar.TPE.BatchedEvaluator
import Cedar.Spec
import Cedar.Thm.TPE.Input
/-!
Shared definitions and lemmas for batched evaluator theorems.
-/
namespace Cedar.Thm
open Cedar.TPE
open Cedar.Spec
open Cedar.Data
/-- A well behaved entity loader
1. Loads all the requested entities, returnin... | @@ -25,10 +25,26 @@
∀ s, s ⊆ (loader s).keys ∧
EntitiesRefine store ((loader s).mapOnValues MaybeEntityData.asPartial)
+theorem as_partial_request_refines {req : Request} :
+ RequestRefines req req.asPartialRequest := by
+ simp only [Request.asPartialRequest, RequestRefines, PartialEntityUID.asEntityUID,... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_5df136966619_7 | efae5e8dca2f63c0 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/Set.lean | Set | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 13 | [
{
"theorem_name": "mem_singleton",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [singleton, ← mem_elts_iff_mem_set, elts, List.mem_singleton]",
"n_chars": 79,
"n_subproofs": 0,
"n_tac... | [
{
"name": "mem_elts_iff_mem_set",
"text": "public theorem mem_elts_iff_mem_set {α : Type u} (v : α) (s : Set α) :\n v ∈ s.elts ↔ v ∈ s\n:= by\n constructor\n case mp => intro h ; apply h\n case mpr => simp [elts, Membership.mem]\n\n",
"fan_in": 13,
"n_lines": 8,
"n_chars": 195,
"n_subpro... | [
{
"name": "intersects_def",
"fan_in": 1,
"n_deps_direct": 6,
"n_deps_transitive": 8,
"n_lines": 23,
"n_chars": 805,
"n_subproofs": 0,
"n_tactics": 20,
"cyclomatic": 2,
"n_automation": 5,
"n_rewrites": 2,
"n_structural": 5,
"automation_only": false,
"max_nestin... | 7 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -66,6 +66,13 @@
| false =>
rfl
+public theorem mem_elts_iff_mem_set {α : Type u} (v : α) (s : Set α) :
+ v ∈ s.elts ↔ v ∈ s
+:= by
+ constructor
+ case mp => intro h ; apply h
+ case mpr => simp [elts, Membership.mem]
+
public theorem mem_set_iff_mem_mk {α : Type u} (v : α) (xs : List α) :
v ∈ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_5df136966619_8 | f10703894a692c42 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/Set.lean | Set | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 13 | [
{
"theorem_name": "mem_singleton",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [singleton, ← mem_elts_iff_mem_set, elts, List.mem_singleton]",
"n_chars": 79,
"n_subproofs": 0,
"n_tac... | [
{
"name": "mem_elts_iff_mem_set",
"text": "public theorem mem_elts_iff_mem_set {α : Type u} (v : α) (s : Set α) :\n v ∈ s.elts ↔ v ∈ s\n:= by\n constructor\n case mp => intro h ; apply h\n case mpr => simp [elts, Membership.mem]\n\n",
"fan_in": 13,
"n_lines": 8,
"n_chars": 195,
"n_subpro... | [
{
"name": "intersects_iff_exists",
"fan_in": 0,
"n_deps_direct": 3,
"n_deps_transitive": 9,
"n_lines": 14,
"n_chars": 475,
"n_subproofs": 0,
"n_tactics": 11,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 4,
"automation_only": false,
"max... | 8 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -66,6 +66,13 @@
| false =>
rfl
+public theorem mem_elts_iff_mem_set {α : Type u} (v : α) (s : Set α) :
+ v ∈ s.elts ↔ v ∈ s
+:= by
+ constructor
+ case mp => intro h ; apply h
+ case mpr => simp [elts, Membership.mem]
+
public theorem mem_set_iff_mem_mk {α : Type u} (v : α) (xs : List α) :
v ∈ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_12dfdf19bad4_0 | 45cc73c9843883e5 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Asserts.lean | Asserts | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 2 | 3 | [
{
"theorem_name": "asserts_satisfiable_def",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [Asserts.Satisfiable, asserts_satisfiedBy_true]",
"n_chars": 63,
"n_subproofs": 0,
"n_tactics... | [
{
"name": "asserts_satisfiedBy_true",
"text": "theorem asserts_satisfiedBy_true {I : Interpretation} {asserts : Asserts} :\n asserts.satisfiedBy I ↔\n ∀ t ∈ asserts, t.interpret I = true\n:= by\n simp only [Asserts.satisfiedBy, List.all_eq_true, decide_eq_true_eq]\n\n",
"fan_in": 3,
"n_lines": 7,... | [
{
"name": "asserts_satisfiable_def",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 7,
"n_chars": 242,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"max_... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -25,10 +25,17 @@
open Spec SymCC
+theorem asserts_satisfiedBy_true {I : Interpretation} {asserts : Asserts} :
+ asserts.satisfiedBy I ↔
+ ∀ t ∈ asserts, t.interpret I = true
+:= by
+ simp only [Asserts.satisfiedBy, List.all_eq_true, decide_eq_true_eq]
+
theorem asserts_satisfiable_def {εnv : SymEnv} {assert... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_12dfdf19bad4_1 | eaf37da454f2c76e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Asserts.lean | Asserts | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 2 | 1 | [
{
"theorem_name": "asserts_unsatisfiable_def",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [Asserts.Unsatisfiable, asserts_satisfiable_def, not_exists, not_and,\n Classical.not_forall, ne_eq,... | [
{
"name": "asserts_satisfiable_def",
"text": "theorem asserts_satisfiable_def {εnv : SymEnv} {asserts : Asserts} :\n (εnv ⊧ asserts) ↔\n ∃ I, I.WellFormed εnv.entities ∧ ∀ t ∈ asserts, t.interpret I = true\n:= by\n simp only [Asserts.Satisfiable, asserts_satisfiedBy_true]\n\n",
"fan_in": 1,
"n_li... | [
{
"name": "asserts_unsatisfiable_def",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 8,
"n_chars": 314,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"ma... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -31,10 +31,18 @@
:= by
simp only [Asserts.satisfiedBy, List.all_eq_true, decide_eq_true_eq]
+theorem asserts_satisfiable_def {εnv : SymEnv} {asserts : Asserts} :
+ (εnv ⊧ asserts) ↔
+ ∃ I, I.WellFormed εnv.entities ∧ ∀ t ∈ asserts, t.interpret I = true
+:= by
+ simp only [Asserts.Satisfiable, asserts_satisf... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_12dfdf19bad4_2 | 6826e2ff384d33e1 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Asserts.lean | Asserts | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 2 | 3 | [
{
"theorem_name": "asserts_satisfiable_def",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [Asserts.Satisfiable, asserts_satisfiedBy_true]",
"n_chars": 63,
"n_subproofs": 0,
"n_tactics... | [
{
"name": "asserts_satisfiedBy_true",
"text": "theorem asserts_satisfiedBy_true {I : Interpretation} {asserts : Asserts} :\n asserts.satisfiedBy I ↔\n ∀ t ∈ asserts, t.interpret I = true\n:= by\n simp only [Asserts.satisfiedBy, List.all_eq_true, decide_eq_true_eq]\n\n",
"fan_in": 3,
"n_lines": 7,... | [
{
"name": "asserts_last_not_true",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 411,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 4,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 4,
"automation_only": false,
"max_... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -25,12 +25,24 @@
open Spec SymCC
+theorem asserts_satisfiedBy_true {I : Interpretation} {asserts : Asserts} :
+ asserts.satisfiedBy I ↔
+ ∀ t ∈ asserts, t.interpret I = true
+:= by
+ simp only [Asserts.satisfiedBy, List.all_eq_true, decide_eq_true_eq]
+
theorem asserts_last_not_true {I : Interpretation} {ts... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_12dfdf19bad4_3 | e6850b3a8e75e9b5 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Asserts.lean | Asserts | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 2 | 3 | [
{
"theorem_name": "asserts_satisfiable_def",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [Asserts.Satisfiable, asserts_satisfiedBy_true]",
"n_chars": 63,
"n_subproofs": 0,
"n_tactics... | [
{
"name": "asserts_satisfiedBy_true",
"text": "theorem asserts_satisfiedBy_true {I : Interpretation} {asserts : Asserts} :\n asserts.satisfiedBy I ↔\n ∀ t ∈ asserts, t.interpret I = true\n:= by\n simp only [Asserts.satisfiedBy, List.all_eq_true, decide_eq_true_eq]\n\n",
"fan_in": 3,
"n_lines": 7,... | [
{
"name": "asserts_all_true",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 403,
"n_subproofs": 0,
"n_tactics": 9,
"cyclomatic": 2,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 5,
"automation_only": false,
"max_nesti... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -25,13 +25,22 @@
open Spec SymCC
+theorem asserts_satisfiedBy_true {I : Interpretation} {asserts : Asserts} :
+ asserts.satisfiedBy I ↔
+ ∀ t ∈ asserts, t.interpret I = true
+:= by
+ simp only [Asserts.satisfiedBy, List.all_eq_true, decide_eq_true_eq]
+
theorem asserts_all_true {I : Interpretation} {ts : As... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_da45fcffa12b_0 | 0ffcc7afeaa193cd | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Footprint.lean | Footprint | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "mem_footprint_option_entity",
"depth": 1,
"n_commands": 0,
"n_lines": 40,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hin\n induction x using footprint.induct <;> simp only [footprint] at hin\n case case1 | case2 =>\n ... | [
{
"name": "mem_footprint_ofEntity_option_entity",
"text": "private theorem mem_footprint_ofEntity_option_entity {x : Expr} {tₑ : Term} {εnv : SymEnv}\n (hin : tₑ ∈ footprint.ofEntity x εnv) :\n ∃ ety, tₑ.typeOf = .option (.entity ety)\n:= by\n simp only [footprint.ofEntity] at hin\n split at hin\n spli... | [
{
"name": "mem_footprint_option_entity",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 44,
"n_chars": 1645,
"n_subproofs": 0,
"n_tactics": 41,
"cyclomatic": 7,
"n_automation": 6,
"n_rewrites": 1,
"n_structural": 20,
"automation_only": false,
... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -97,9 +97,61 @@
case h_4 =>
simp only [Set.not_mem_empty] at hin
+private theorem mem_footprint_ofEntity_option_entity {x : Expr} {tₑ : Term} {εnv : SymEnv}
+ (hin : tₑ ∈ footprint.ofEntity x εnv) :
+ ∃ ety, tₑ.typeOf = .option (.entity ety)
+:= by
+ simp only [footprint.ofEntity] at hin
+ split at hin... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_da45fcffa12b_1 | ec7435d6afcecd72 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Footprint.lean | Footprint | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "mem_footprint_exists_wf_prop",
"depth": 1,
"n_commands": 0,
"n_lines": 60,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction x using footprint.induct <;> simp only [footprint] at hin\n case case1 | case2 =>\n exact mem_f... | [
{
"name": "mem_footprint_ofEntity_exists_wf",
"text": "private theorem mem_footprint_ofEntity_exists_wf {p : Expr → Prop} {x : Expr} {tₑ : Term} {εnv : SymEnv}\n (hwε : εnv.WellFormedFor x)\n (hp : p x)\n (hin : tₑ ∈ footprint.ofEntity x εnv) :\n ∃ xₑ, εnv.WellFormedFor xₑ ∧ p xₑ ∧ compile xₑ εnv = .ok... | [
{
"name": "mem_footprint_exists_wf_prop",
"fan_in": 2,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 77,
"n_chars": 3569,
"n_subproofs": 8,
"n_tactics": 61,
"cyclomatic": 7,
"n_automation": 6,
"n_rewrites": 1,
"n_structural": 20,
"automation_only": false,... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -97,6 +97,21 @@
case h_4 =>
simp only [Set.not_mem_empty] at hin
+private theorem mem_footprint_ofEntity_exists_wf {p : Expr → Prop} {x : Expr} {tₑ : Term} {εnv : SymEnv}
+ (hwε : εnv.WellFormedFor x)
+ (hp : p x)
+ (hin : tₑ ∈ footprint.ofEntity x εnv) :
+ ∃ xₑ, εnv.WellFormedFor xₑ ∧ p xₑ ∧ compile ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_da45fcffa12b_2 | 88fba37a678fcbf6 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Footprint.lean | Footprint | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 2 | [
{
"theorem_name": "mem_footprint_exists_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwε hwe hin\n exact mem_footprint_exists_wf_prop hwε hwe hin\n wf_env_for_ite_implies wf_env_for_and_impl... | [
{
"name": "mem_footprint_exists_wf_prop",
"text": "private theorem mem_footprint_exists_wf_prop {p : Expr → Prop} {x : Expr} {tₑ : Term} {εnv : SymEnv}\n (hwε : εnv.WellFormedFor x)\n (hp : p x)\n (hin : tₑ ∈ footprint x εnv)\n (hite : ∀ {x₁ x₂ x₃}, p (Expr.ite x₁ x₂ x₃) → p x₁ ∧ p x₂ ∧ p x₃)\n (hand... | [
{
"name": "mem_footprint_exists_wf",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 18,
"n_chars": 630,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"ma... | 3 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -112,6 +112,82 @@
subst hin
exists x
+private theorem mem_footprint_exists_wf_prop {p : Expr → Prop} {x : Expr} {tₑ : Term} {εnv : SymEnv}
+ (hwε : εnv.WellFormedFor x)
+ (hp : p x)
+ (hin : tₑ ∈ footprint x εnv)
+ (hite : ∀ {x₁ x₂ x₃}, p (Expr.ite x₁ x₂ x₃) → p x₁ ∧ p x₂ ∧ p x₃)
+ (hand : ∀ {x₁ x₂},... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_da45fcffa12b_3 | 229432a47028a6c7 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Footprint.lean | Footprint | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "mem_footprint_compile_exists_swf",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hsε hse hin\n have ⟨xᵢ, hwεᵢ, hweᵢ, h⟩ := mem_footprint_exists_wf (swf_εnv_for_implies_wf_for hsε) ... | [
{
"name": "mem_footprint_exists_wf",
"text": "theorem mem_footprint_exists_wf {x : Expr} {tₑ : Term} {env : Env} {εnv : SymEnv} :\n εnv.WellFormedFor x →\n env.WellFormedFor x →\n tₑ ∈ footprint x εnv →\n ∃ xₑ,\n εnv.WellFormedFor xₑ ∧\n env.WellFormedFor xₑ ∧\n compile xₑ εnv = .ok tₑ\n:= by\n... | [
{
"name": "mem_footprint_compile_exists_swf",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 18,
"n_chars": 628,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 5,
"automation_only": false... | 4 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -188,6 +188,23 @@
simp only at hin ih
exact ih aᵢ xᵢ (List.sizeOf_attach₂ hinᵢ) (hwε _ hinᵢ) (hwe _ hinᵢ) hin
+theorem mem_footprint_exists_wf {x : Expr} {tₑ : Term} {env : Env} {εnv : SymEnv} :
+ εnv.WellFormedFor x →
+ env.WellFormedFor x →
+ tₑ ∈ footprint x εnv →
+ ∃ xₑ,
+ εnv.WellFormedFor xₑ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_da45fcffa12b_4 | 98aadfaa4b18df87 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Footprint.lean | Footprint | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 2 | [
{
"theorem_name": "mem_footprint_exists_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwε hwe hin\n exact mem_footprint_exists_wf_prop hwε hwe hin\n wf_env_for_ite_implies wf_env_for_and_impl... | [
{
"name": "mem_footprint_exists_wf_prop",
"text": "private theorem mem_footprint_exists_wf_prop {p : Expr → Prop} {x : Expr} {tₑ : Term} {εnv : SymEnv}\n (hwε : εnv.WellFormedFor x)\n (hp : p x)\n (hin : tₑ ∈ footprint x εnv)\n (hite : ∀ {x₁ x₂ x₃}, p (Expr.ite x₁ x₂ x₃) → p x₁ ∧ p x₂ ∧ p x₃)\n (hand... | [
{
"name": "mem_footprint_wf",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 12,
"n_chars": 451,
"n_subproofs": 1,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"max_nesti... | 3 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -112,13 +112,91 @@
subst hin
exists x
+private theorem mem_footprint_exists_wf_prop {p : Expr → Prop} {x : Expr} {tₑ : Term} {εnv : SymEnv}
+ (hwε : εnv.WellFormedFor x)
+ (hp : p x)
+ (hin : tₑ ∈ footprint x εnv)
+ (hite : ∀ {x₁ x₂ x₃}, p (Expr.ite x₁ x₂ x₃) → p x₁ ∧ p x₂ ∧ p x₃)
+ (hand : ∀ {x₁ x₂}... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_da45fcffa12b_5 | f57378d7b899f873 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Footprint.lean | Footprint | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "mem_footprints_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [mem_footprints_iff] at hin\n replace ⟨x, hinₓ, hin⟩ := hin\n exact mem_footprint_wf (And.intro hwε (hvr x hi... | [
{
"name": "mem_footprint_wf",
"text": "theorem mem_footprint_wf {x : Expr} {tₑ : Term} {εnv : SymEnv} :\n εnv.WellFormedFor x →\n tₑ ∈ footprint x εnv →\n tₑ.WellFormed εnv.entities\n:= by\n intro hwε hin\n have ⟨xₑ, hw, _, hr⟩ : ∃ xₑ, εnv.WellFormedFor xₑ ∧ (λ x => True) xₑ ∧ compile xₑ εnv = .ok tₑ :... | [
{
"name": "mem_footprints_wf",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 11,
"n_chars": 362,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nest... | 5 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -193,12 +193,26 @@
simp only at hin ih
exact ih aᵢ xᵢ (List.sizeOf_attach₂ hinᵢ) (hwε _ hinᵢ) (hwe _ hinᵢ) hin
+theorem mem_footprint_wf {x : Expr} {tₑ : Term} {εnv : SymEnv} :
+ εnv.WellFormedFor x →
+ tₑ ∈ footprint x εnv →
+ tₑ.WellFormed εnv.entities
+:= by
+ intro hwε hin
+ have ⟨xₑ, hw, _, hr⟩... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_da45fcffa12b_6 | 5761db5668b2f057 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Footprint.lean | Footprint | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 2 | [
{
"theorem_name": "mem_footprints_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [mem_footprints_iff] at hin\n replace ⟨x, hinₓ, hin⟩ := hin\n exact mem_footprint_wf (And.intro hwε (hvr x hi... | [
{
"name": "mem_footprints_iff",
"text": "theorem mem_footprints_iff {xs : List Expr} {εnv : SymEnv} {t : Term} :\n t ∈ footprints xs εnv ↔ ∃ x ∈ xs, t ∈ footprint x εnv\n:= by\n simp only [footprints, List.mem_mapUnion_iff_mem_exists]\n\n",
"fan_in": 2,
"n_lines": 6,
"n_chars": 207,
"n_sub... | [
{
"name": "footprint_subset_footprints",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 11,
"n_chars": 228,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 2,
"n_structural": 3,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -82,9 +82,19 @@
open Data Spec SymCC Factory
+theorem mem_footprints_iff {xs : List Expr} {εnv : SymEnv} {t : Term} :
+ t ∈ footprints xs εnv ↔ ∃ x ∈ xs, t ∈ footprint x εnv
+:= by
+ simp only [footprints, List.mem_mapUnion_iff_mem_exists]
+
theorem footprint_subset_footprints {x : Expr} {xs : List Expr} {εn... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_a2175088736e_0 | bbcde116f3e15da6 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Validator.lean | Validator | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 2 | 1 | [
{
"theorem_name": "typecheck_policy_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n simp only [typecheckPolicy] at h₂\n cases h₃ : typeOf (substituteAction env.reqty.action policy.... | [
{
"name": "action_matches_env",
"text": "theorem action_matches_env {env : TypeEnv} {request : Request} {entities : Entities} :\n InstanceOfWellFormedEnvironment request entities env →\n request.action = env.reqty.action\n:= by\n intro h₀\n simp only [InstanceOfWellFormedEnvironment, InstanceOfRequestTy... | [
{
"name": "typecheck_policy_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 20,
"n_chars": 893,
"n_subproofs": 3,
"n_tactics": 16,
"cyclomatic": 5,
"n_automation": 3,
"n_rewrites": 2,
"n_structural": 4,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -41,11 +41,33 @@
∃ env ∈ schema.environments,
InstanceOfWellFormedEnvironment request entities env
+theorem action_matches_env {env : TypeEnv} {request : Request} {entities : Entities} :
+ InstanceOfWellFormedEnvironment request entities env →
+ request.action = env.reqty.action
+:= by
+ intro h₀
+ simp ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_a2175088736e_1 | 21fc6addd83941c8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Validator.lean | Validator | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 2 | 1 | [
{
"theorem_name": "typecheck_policy_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n simp only [typecheckPolicy] at h₂\n cases h₃ : typeOf (substituteAction env.reqty.action policy.... | [
{
"name": "action_matches_env",
"text": "theorem action_matches_env {env : TypeEnv} {request : Request} {entities : Entities} :\n InstanceOfWellFormedEnvironment request entities env →\n request.action = env.reqty.action\n:= by\n intro h₀\n simp only [InstanceOfWellFormedEnvironment, InstanceOfRequestTy... | [
{
"name": "typecheck_policy_with_environments_is_sound",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 20,
"n_chars": 1020,
"n_subproofs": 3,
"n_tactics": 14,
"cyclomatic": 2,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 6,
"automation... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -41,11 +41,33 @@
∃ env ∈ schema.environments,
InstanceOfWellFormedEnvironment request entities env
+theorem action_matches_env {env : TypeEnv} {request : Request} {entities : Entities} :
+ InstanceOfWellFormedEnvironment request entities env →
+ request.action = env.reqty.action
+:= by
+ intro h₀
+ simp ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f5074f50b376_0 | f470a7bc0e741c3f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Extractor.lean | Extractor | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 2 | [
{
"theorem_name": "repairAncestors_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 15,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [UDF.WellFormed, repairAncestors_default_wfl hwf.left hwf.right.left, repairAncestors_table_wf hwu, true_and]... | [
{
"name": "repairAncestors_table_wf",
"text": "private theorem repairAncestors_table_wf {uids : Set EntityUID} {f : UDF} :\n uids.WellFormed →\n (UUF.repairAncestors.table uids f).WellFormed\n:= by\n intro hw\n rw [Set.wf_iff_sorted] at hw\n simp only [UUF.repairAncestors.table, Map.wf_iff_sorted]\n g... | [
{
"name": "repairAncestors_wf",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 22,
"n_chars": 1034,
"n_subproofs": 1,
"n_tactics": 15,
"cyclomatic": 1,
"n_automation": 7,
"n_rewrites": 2,
"n_structural": 2,
"automation_only": false,
"max_n... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -49,12 +49,83 @@
apply And.intro _ hlt.right
exact And.intro hlt.left (isLiteral_empty ty)
+private theorem repairAncestors_table_wf {uids : Set EntityUID} {f : UDF} :
+ uids.WellFormed →
+ (UUF.repairAncestors.table uids f).WellFormed
+:= by
+ intro hw
+ rw [Set.wf_iff_sorted] at hw
+ simp only [UUF.re... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f5074f50b376_1 | 1cd82958eb6d3b0a | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Extractor.lean | Extractor | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "repair_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 20,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwε hvr hI\n simp only [Interpretation.repair]\n apply And.intro hI.left\n apply And.intro _ hI.right.right\n simp onl... | [
{
"name": "repairAncestors_wf",
"text": "private theorem repairAncestors_wf {uids : Set EntityUID} {f : UDF} {εs : SymEntities}\n (hwf : f.WellFormed εs)\n (hwu : uids.WellFormed)\n (hwv : ∀ uid ∈ uids, εs.isValidEntityUID uid) :\n UDF.WellFormed εs ⟨f.arg, f.out, UUF.repairAncestors.table uids f, UUF.r... | [
{
"name": "repair_wf",
"fan_in": 2,
"n_deps_direct": 3,
"n_deps_transitive": 5,
"n_lines": 27,
"n_chars": 969,
"n_subproofs": 1,
"n_tactics": 21,
"cyclomatic": 4,
"n_automation": 6,
"n_rewrites": 2,
"n_structural": 6,
"automation_only": false,
"max_nesting": 4... | 5 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -131,12 +131,52 @@
simp only [LT.lt] at h₁
simp only [LT.lt, Term.lt, TermPrim.lt, h₁, decide_true]
+private theorem repairAncestors_wf {uids : Set EntityUID} {f : UDF} {εs : SymEntities}
+ (hwf : f.WellFormed εs)
+ (hwu : uids.WellFormed)
+ (hwv : ∀ uid ∈ uids, εs.isValidEntityUID uid) :
+ UDF.W... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f5074f50b376_2 | 3a82a93f3b1200c8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Extractor.lean | Extractor | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 2 | [
{
"theorem_name": "repair_env_wf_same",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwε hvr hI\n replace hI := repair_wf hwε hvr hI\n exact And.intro hI (env_wf_same hwε hvr hI)",
"n_chars": 1... | [
{
"name": "repair_wf",
"text": "theorem repair_wf {xs : List Expr} {εnv : SymEnv} {I : Interpretation} :\n εnv.WellFormed →\n (∀ x ∈ xs, εnv.entities.ValidRefsFor x) →\n I.WellFormed εnv.entities →\n (I.repair (footprints xs εnv) εnv).WellFormed εnv.entities\n:= by\n intro hwε hvr hI\n simp only [Inte... | [
{
"name": "repair_env_wf_same",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 7,
"n_lines": 15,
"n_chars": 523,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"max_nes... | 7 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -152,6 +152,32 @@
· simp only [hty, UnaryFunction.argType]
· simp only [UnaryFunction.WellFormed, hwf]
+theorem repair_wf {xs : List Expr} {εnv : SymEnv} {I : Interpretation} :
+ εnv.WellFormed →
+ (∀ x ∈ xs, εnv.entities.ValidRefsFor x) →
+ I.WellFormed εnv.entities →
+ (I.repair (footprints xs εnv) εnv... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f5074f50b376_3 | 3e1823380754d81f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Extractor.lean | Extractor | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 2 | [
{
"theorem_name": "repair_env_wf_same",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwε hvr hI\n replace hI := repair_wf hwε hvr hI\n exact And.intro hI (env_wf_same hwε hvr hI)",
"n_chars": 1... | [
{
"name": "repair_wf",
"text": "theorem repair_wf {xs : List Expr} {εnv : SymEnv} {I : Interpretation} :\n εnv.WellFormed →\n (∀ x ∈ xs, εnv.entities.ValidRefsFor x) →\n I.WellFormed εnv.entities →\n (I.repair (footprints xs εnv) εnv).WellFormed εnv.entities\n:= by\n intro hwε hvr hI\n simp only [Inte... | [
{
"name": "extract?_env_wf_same",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 6,
"n_lines": 23,
"n_chars": 884,
"n_subproofs": 3,
"n_tactics": 12,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": false,
"max_... | 6 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -152,6 +152,32 @@
· simp only [hty, UnaryFunction.argType]
· simp only [UnaryFunction.WellFormed, hwf]
+theorem repair_wf {xs : List Expr} {εnv : SymEnv} {I : Interpretation} :
+ εnv.WellFormed →
+ (∀ x ∈ xs, εnv.entities.ValidRefsFor x) →
+ I.WellFormed εnv.entities →
+ (I.repair (footprints xs εnv) εnv... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f5074f50b376_4 | 72d82b882fb42440 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Extractor.lean | Extractor | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "not_mem_footprintUIDs_implies_empty_ancs",
"depth": 1,
"n_commands": 0,
"n_lines": 10,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [app, UnaryFunction.interpret, Interpretation.repair, Interpretation.repair.funs,\n ... | [
{
"name": "not_mem_uids_implies_repairAncestors_find?_none",
"text": "private theorem not_mem_uids_implies_repairAncestors_find?_none {uid : EntityUID} {uids : Set EntityUID} {f : UUF} {I : Interpretation}\n (hft : ¬uid ∈ uids) :\n (f.repairAncestors uids I).table.find? (Term.entity uid) = .none\n:= by\n ... | [
{
"name": "not_mem_footprintUIDs_implies_empty_ancs",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 20,
"n_chars": 1100,
"n_subproofs": 0,
"n_tactics": 10,
"cyclomatic": 1,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 0,
"automation_on... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -57,6 +57,22 @@
Function.comp_apply, true_and]
exists (ancTy, UnaryFunction.uuf f)
+private theorem not_mem_uids_implies_repairAncestors_find?_none {uid : EntityUID} {uids : Set EntityUID} {f : UUF} {I : Interpretation}
+ (hft : ¬uid ∈ uids) :
+ (f.repairAncestors uids I).table.find? (Term.entity uid... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f5074f50b376_5 | b19880daaf3c9f7a | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Extractor.lean | Extractor | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 2 | [
{
"theorem_name": "repairAncestors_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 15,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [UDF.WellFormed, repairAncestors_default_wfl hwf.left hwf.right.left, repairAncestors_table_wf hwu, true_and]... | [
{
"name": "repairAncestors_table_wf",
"text": "private theorem repairAncestors_table_wf {uids : Set EntityUID} {f : UDF} :\n uids.WellFormed →\n (UUF.repairAncestors.table uids f).WellFormed\n:= by\n intro hw\n rw [Set.wf_iff_sorted] at hw\n simp only [UUF.repairAncestors.table, Map.wf_iff_sorted]\n g... | [
{
"name": "mem_uids_implies_repairAncestors_find?_eq",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 634,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 2,
"automation_onl... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -32,13 +32,75 @@
open Data Spec SymCC Factory
+private theorem repairAncestors_table_wf {uids : Set EntityUID} {f : UDF} :
+ uids.WellFormed →
+ (UUF.repairAncestors.table uids f).WellFormed
+:= by
+ intro hw
+ rw [Set.wf_iff_sorted] at hw
+ simp only [UUF.repairAncestors.table, Map.wf_iff_sorted]
+ gener... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f5074f50b376_6 | 349801d17a905b21 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Extractor.lean | Extractor | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "mem_footprintUIDs_implies_eq_ancs",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [app.eq_def]\n simp only [UnaryFunction.interpret, Interpretation.repair, Interpretation.repair.funs,... | [
{
"name": "mem_uids_implies_repairAncestors_find?_eq",
"text": "private theorem mem_uids_implies_repairAncestors_find?_eq {uid : EntityUID} {uids : Set EntityUID} {f : UUF} {I : Interpretation}\n (hwu : uids.WellFormed)\n (hft : uid ∈ uids)\n (hty : (I.funs f).arg = TermType.entity uid.ty) :\n (f.repair... | [
{
"name": "mem_footprintUIDs_implies_eq_ancs",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 4,
"n_lines": 19,
"n_chars": 1058,
"n_subproofs": 0,
"n_tactics": 9,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": fal... | 4 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -119,6 +119,19 @@
Function.comp_apply, true_and]
exists (ancTy, UnaryFunction.uuf f)
+private theorem mem_uids_implies_repairAncestors_find?_eq {uid : EntityUID} {uids : Set EntityUID} {f : UUF} {I : Interpretation}
+ (hwu : uids.WellFormed)
+ (hft : uid ∈ uids)
+ (hty : (I.funs f).arg = TermType.en... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f5074f50b376_7 | e6fb820e67d42357 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Extractor.lean | Extractor | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "interpret_request_repair_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨hwtp, _, hwta, _, hwtr, _, hwtc, _⟩ := hwε.left\n have ⟨hbtp, hbta, hbtr, hbtc⟩ := hwε.right\n simp onl... | [
{
"name": "interpret_term_isBasic_repair_eq",
"text": "private theorem interpret_term_isBasic_repair_eq (xs : List Expr) {t : Term} {εnv : SymEnv} (I : Interpretation)\n (hwt : t.WellFormed εnv.entities)\n (hbt : t.isBasic) :\n t.interpret I = t.interpret (I.repair (footprints xs εnv) εnv)\n:= by\n simp... | [
{
"name": "interpret_request_repair_eq",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 13,
"n_chars": 626,
"n_subproofs": 2,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -32,10 +32,28 @@
open Data Spec SymCC Factory
+private theorem interpret_term_isBasic_repair_eq (xs : List Expr) {t : Term} {εnv : SymEnv} (I : Interpretation)
+ (hwt : t.WellFormed εnv.entities)
+ (hbt : t.isBasic) :
+ t.interpret I = t.interpret (I.repair (footprints xs εnv) εnv)
+:= by
+ simp only [Term.... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f5074f50b376_8 | 5e435a7190842738 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Extractor.lean | Extractor | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 2 | [
{
"theorem_name": "interpret_attrs_repair_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases hf : δ.attrs <;>\n simp only [UnaryFunction.interpret, UnaryFunction.udf.injEq]\n rename_i f\n apply in... | [
{
"name": "type_of_ancestor_uuf_eq",
"text": "private theorem type_of_ancestor_uuf_eq {εnv : SymEnv} {f : UUF}\n (hwε : εnv.entities.WellFormed)\n (hf : f ∈ εnv.entities.uufAncestors) :\n ∃ ety aty, f.arg = .entity ety ∧ f.out = .set (.entity aty)\n:= by\n simp only [SymEntities.uufAncestors, List.mem_m... | [
{
"name": "interpret_attrs_repair_eq",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 17,
"n_chars": 759,
"n_subproofs": 3,
"n_tactics": 12,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -46,11 +46,43 @@
rw [Set.mem_elts_iff_mem_set] at hf'
contradiction
+private theorem type_of_ancestor_uuf_eq {εnv : SymEnv} {f : UUF}
+ (hwε : εnv.entities.WellFormed)
+ (hf : f ∈ εnv.entities.uufAncestors) :
+ ∃ ety aty, f.arg = .entity ety ∧ f.out = .set (.entity aty)
+:= by
+ simp only [SymEntities.uu... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f5074f50b376_9 | d7cfb3f3fe786b59 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Extractor.lean | Extractor | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 2 | [
{
"theorem_name": "interpret_attrs_repair_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases hf : δ.attrs <;>\n simp only [UnaryFunction.interpret, UnaryFunction.udf.injEq]\n rename_i f\n apply in... | [
{
"name": "type_of_ancestor_uuf_eq",
"text": "private theorem type_of_ancestor_uuf_eq {εnv : SymEnv} {f : UUF}\n (hwε : εnv.entities.WellFormed)\n (hf : f ∈ εnv.entities.uufAncestors) :\n ∃ ety aty, f.arg = .entity ety ∧ f.out = .set (.entity aty)\n:= by\n simp only [SymEntities.uufAncestors, List.mem_m... | [
{
"name": "interpret_tags_repair_eq",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 27,
"n_chars": 1298,
"n_subproofs": 2,
"n_tactics": 22,
"cyclomatic": 6,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 5,
"automation_only": false,
... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -46,12 +46,53 @@
rw [Set.mem_elts_iff_mem_set] at hf'
contradiction
+private theorem type_of_ancestor_uuf_eq {εnv : SymEnv} {f : UUF}
+ (hwε : εnv.entities.WellFormed)
+ (hf : f ∈ εnv.entities.uufAncestors) :
+ ∃ ety aty, f.arg = .entity ety ∧ f.out = .set (.entity aty)
+:= by
+ simp only [SymEntities.uu... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f5074f50b376_10 | 522f6d0fbe95bf7e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Extractor.lean | Extractor | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "εnv_same_on_footprints",
"depth": 1,
"n_commands": 0,
"n_lines": 15,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · exact interpret_request_repair_eq hsε.left.left\n · intro ety δ hδ\n simp only [interpret_attr... | [
{
"name": "interpret_attrs_repair_eq",
"text": "private theorem interpret_attrs_repair_eq {εnv : SymEnv} {ety : EntityType} {δ : SymEntityData} (xs : List Expr) (I : Interpretation)\n (hwε : εnv.entities.WellFormed)\n (hδ : Map.find? εnv.entities ety = some δ) :\n δ.attrs.interpret I = δ.attrs.interpret... | [
{
"name": "εnv_same_on_footprints",
"fan_in": 0,
"n_deps_direct": 5,
"n_deps_transitive": 12,
"n_lines": 21,
"n_chars": 825,
"n_subproofs": 0,
"n_tactics": 16,
"cyclomatic": 5,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 10,
"automation_only": false,
"... | 12 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -219,6 +219,22 @@
simp only [UnaryFunction.argType, UnaryFunction.outType] at hwδ
exact hwδ
+private theorem interpret_attrs_repair_eq {εnv : SymEnv} {ety : EntityType} {δ : SymEntityData} (xs : List Expr) (I : Interpretation)
+ (hwε : εnv.entities.WellFormed)
+ (hδ : Map.find? εnv.entities ety = some δ) ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f5074f50b376_11 | bf286e25ea450229 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Extractor.lean | Extractor | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "extract?_implies_enum_complete",
"depth": 1,
"n_commands": 0,
"n_lines": 41,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [\n SymEnv.extract?, SymEnv.concretize?,\n bind, Option.bind,\n ] at hext\n split at hext... | [
{
"name": "sym_entities_entityUIDs_include_enums",
"text": "theorem sym_entities_entityUIDs_include_enums\n {εnv : SymEnv} {uid : EntityUID}\n {δ : SymEntityData} {eids : Set String}\n (I : Interpretation)\n (hfind_uid_ty : Map.find? εnv.entities uid.ty = some δ)\n (heids : δ.members = some eids)\n (h... | [
{
"name": "extract?_implies_enum_complete",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 48,
"n_chars": 1929,
"n_subproofs": 6,
"n_tactics": 41,
"cyclomatic": 3,
"n_automation": 16,
"n_rewrites": 1,
"n_structural": 5,
"automation_only": fals... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -32,12 +32,76 @@
open Data Spec SymCC Factory
+theorem sym_entities_entityUIDs_include_enums
+ {εnv : SymEnv} {uid : EntityUID}
+ {δ : SymEntityData} {eids : Set String}
+ (I : Interpretation)
+ (hfind_uid_ty : Map.find? εnv.entities uid.ty = some δ)
+ (heids : δ.members = some eids)
+ (heid : uid.eid ∈ e... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_8f0310f0c499_0 | f908dc472280be2b | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/TPE/Soundness/Basic.lean | Basic | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 2 | 1 | [
{
"theorem_name": "asValue_evaluate_val",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [asValue_some, forall_exists_index]\n intro _ hv\n simp [hv, Residual.evaluate]",
"n_chars": 95,
"... | [
{
"name": "asValue_some",
"text": "theorem asValue_some {r : Residual} {v : Value} :\n r.asValue = .some v ↔ (∃ ty, r = .val v ty)\n:= by\n simp only [Residual.asValue]\n split\n · simp\n · rename_i h\n simp only [reduceCtorEq, false_iff]\n exact not_exists.mpr (h v)\n\n",
"fan_in": 1,
"n... | [
{
"name": "asValue_evaluate_val",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 227,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_ne... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -35,9 +35,22 @@
open Cedar.TPE
open Cedar.Thm
+theorem asValue_some {r : Residual} {v : Value} :
+ r.asValue = .some v ↔ (∃ ty, r = .val v ty)
+:= by
+ simp only [Residual.asValue]
+ split
+ · simp
+ · rename_i h
+ simp only [reduceCtorEq, false_iff]
+ exact not_exists.mpr (h v)
+
theorem asValue_eva... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_8f0310f0c499_1 | 06e0ba3cc0b9620b | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/TPE/Soundness/Basic.lean | Basic | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 2 | 1 | [
{
"theorem_name": "isError_evaluate_err",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [isError_true, forall_exists_index]\n intro _ he\n simp [he, Spec.Residual.evaluate]",
"n_chars": 100,... | [
{
"name": "isError_true",
"text": "theorem isError_true {r : Residual} :\n r.isError ↔ (∃ ty, r = .error ty)\n:= by\n simp only [Residual.isError]\n split\n · simp\n · rename_i h\n simp only [reduceCtorEq, false_iff]\n exact not_exists.mpr h\n\n",
"fan_in": 1,
"n_lines": 11,
"n_chars"... | [
{
"name": "isError_evaluate_err",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 219,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_ne... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -35,9 +35,22 @@
open Cedar.TPE
open Cedar.Thm
+theorem isError_true {r : Residual} :
+ r.isError ↔ (∃ ty, r = .error ty)
+:= by
+ simp only [Residual.isError]
+ split
+ · simp
+ · rename_i h
+ simp only [reduceCtorEq, false_iff]
+ exact not_exists.mpr h
+
theorem isError_evaluate_err {r : Spec.Residu... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_0 | 74ffefab01c405c9 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 2 | [
{
"theorem_name": "pe_transitivity_core_none_left",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [transitivity.core]\n split <;> try rfl\n simp only [pe_transitivity_isAncestor_none_left, pe_im... | [
{
"name": "pe_transitivity_isAncestor_none_left",
"text": "private theorem pe_transitivity_isAncestor_none_left {t₂ t₁' t₂' : Term} {ety₁ : EntityType} {f : UnaryFunction} :\n transitivity.isAncestor (.none (.entity ety₁)) t₂ t₁' t₂' f = false\n:= by\n simp only [transitivity.isAncestor, pe_isSome_none, p... | [
{
"name": "pe_transitivity_core_none_left",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 320,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 4,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,9 +39,17 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem pe_transitivity_isAncestor_none_left {t₂ t₁' t₂' : Term} {ety₁ : EntityType} {f : UnaryFunction} :
+ transitivity.isAncestor (.none (.entity ety₁)) t₂ t₁' t₂... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_1 | 85bbc32de0a440af | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 2 | [
{
"theorem_name": "pe_transitivity_core_none_right",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [transitivity.core]\n split <;> try rfl\n simp only [pe_transitivity_isAncestor_none_right, pe_... | [
{
"name": "pe_transitivity_isAncestor_none_right",
"text": "private theorem pe_transitivity_isAncestor_none_right {t₁ t₁' t₂' : Term} {ety₂ : EntityType} {f : UnaryFunction} :\n transitivity.isAncestor t₁ (.none (.entity ety₂)) t₁' t₂' f = false\n:= by\n simp only [transitivity.isAncestor, pe_isSome_none,... | [
{
"name": "pe_transitivity_core_none_right",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 322,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 4,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,9 +39,17 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem pe_transitivity_isAncestor_none_right {t₁ t₁' t₂' : Term} {ety₂ : EntityType} {f : UnaryFunction} :
+ transitivity.isAncestor t₁ (.none (.entity ety₂)) t₁' t... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_2 | 97e69079fba16635 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 5 | [
{
"theorem_name": "wf_transitivity_isAncestor",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [transitivity.isAncestor]\n have hwi₁ := wf_isSome hwt₁\n have hwi₂ := wf_isSome hwt₂\n have hwa₁ ... | [
{
"name": "wf_app_anc",
"text": "private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}\n (hwε : εs.WellFormed)\n (hwt₁ : Term.WellFormed εs t₁)\n (hty₁ : t₁.typeOf = TermType.entity ety₁)\n (hf₁₂ : εs.ancestorsOfType ety₁ ety₂ = some f₁₂) :\n (app f₁₂... | [
{
"name": "wf_transitivity_isAncestor",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 22,
"n_chars": 1117,
"n_subproofs": 7,
"n_tactics": 11,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}
+ (hwε : εs.WellFormed)
+ (hwt₁ : Term.WellFormed εs t₁)
+ (hty₁ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_3 | dc2eda64d508488a | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 5 | [
{
"theorem_name": "wf_transitivity_isAncestor",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [transitivity.isAncestor]\n have hwi₁ := wf_isSome hwt₁\n have hwi₂ := wf_isSome hwt₂\n have hwa₁ ... | [
{
"name": "wf_app_anc",
"text": "private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}\n (hwε : εs.WellFormed)\n (hwt₁ : Term.WellFormed εs t₁)\n (hty₁ : t₁.typeOf = TermType.entity ety₁)\n (hf₁₂ : εs.ancestorsOfType ety₁ ety₂ = some f₁₂) :\n (app f₁₂... | [
{
"name": "wf_transitivity_areAncestorsOfType",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 22,
"n_chars": 1190,
"n_subproofs": 4,
"n_tactics": 12,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 3,
"automation_only": f... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}
+ (hwε : εs.WellFormed)
+ (hwt₁ : Term.WellFormed εs t₁)
+ (hty₁ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_4 | 153e7b33b8b114be | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 5 | [
{
"theorem_name": "wf_transitivity_isAncestor",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [transitivity.isAncestor]\n have hwi₁ := wf_isSome hwt₁\n have hwi₂ := wf_isSome hwt₂\n have hwa₁ ... | [
{
"name": "wf_app_anc",
"text": "private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}\n (hwε : εs.WellFormed)\n (hwt₁ : Term.WellFormed εs t₁)\n (hty₁ : t₁.typeOf = TermType.entity ety₁)\n (hf₁₂ : εs.ancestorsOfType ety₁ ety₂ = some f₁₂) :\n (app f₁₂... | [
{
"name": "wf_transitivity_areAncestors",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 4,
"n_lines": 17,
"n_chars": 923,
"n_subproofs": 1,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 3,
"automation_only": false,
... | 4 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}
+ (hwε : εs.WellFormed)
+ (hwt₁ : Term.WellFormed εs t₁)
+ (hty₁ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_5 | 12f45df474756f65 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 5 | [
{
"theorem_name": "wf_transitivity_isAncestor",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [transitivity.isAncestor]\n have hwi₁ := wf_isSome hwt₁\n have hwi₂ := wf_isSome hwt₂\n have hwa₁ ... | [
{
"name": "wf_app_anc",
"text": "private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}\n (hwε : εs.WellFormed)\n (hwt₁ : Term.WellFormed εs t₁)\n (hty₁ : t₁.typeOf = TermType.entity ety₁)\n (hf₁₂ : εs.ancestorsOfType ety₁ ety₂ = some f₁₂) :\n (app f₁₂... | [
{
"name": "interpret_transitivity_isAncestor",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 32,
"n_chars": 1577,
"n_subproofs": 7,
"n_tactics": 18,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": fa... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}
+ (hwε : εs.WellFormed)
+ (hwt₁ : Term.WellFormed εs t₁)
+ (hty₁ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_6 | 5211d661281c6891 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 5 | [
{
"theorem_name": "wf_transitivity_isAncestor",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [transitivity.isAncestor]\n have hwi₁ := wf_isSome hwt₁\n have hwi₂ := wf_isSome hwt₂\n have hwa₁ ... | [
{
"name": "wf_app_anc",
"text": "private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}\n (hwε : εs.WellFormed)\n (hwt₁ : Term.WellFormed εs t₁)\n (hty₁ : t₁.typeOf = TermType.entity ety₁)\n (hf₁₂ : εs.ancestorsOfType ety₁ ety₂ = some f₁₂) :\n (app f₁₂... | [
{
"name": "interpret_transitivity_areAncestorsOfType",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 34,
"n_chars": 1746,
"n_subproofs": 4,
"n_tactics": 22,
"cyclomatic": 3,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 1,
"automation_o... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}
+ (hwε : εs.WellFormed)
+ (hwt₁ : Term.WellFormed εs t₁)
+ (hty₁ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_7 | 74840b65b0ee964e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 5 | [
{
"theorem_name": "wf_transitivity_isAncestor",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [transitivity.isAncestor]\n have hwi₁ := wf_isSome hwt₁\n have hwi₂ := wf_isSome hwt₂\n have hwa₁ ... | [
{
"name": "wf_app_anc",
"text": "private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}\n (hwε : εs.WellFormed)\n (hwt₁ : Term.WellFormed εs t₁)\n (hty₁ : t₁.typeOf = TermType.entity ety₁)\n (hf₁₂ : εs.ancestorsOfType ety₁ ety₂ = some f₁₂) :\n (app f₁₂... | [
{
"name": "interpret_transitivity_areAncestors",
"fan_in": 1,
"n_deps_direct": 4,
"n_deps_transitive": 6,
"n_lines": 25,
"n_chars": 1639,
"n_subproofs": 3,
"n_tactics": 12,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": ... | 6 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}
+ (hwε : εs.WellFormed)
+ (hwt₁ : Term.WellFormed εs t₁)
+ (hty₁ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_8 | 60a7764c647fe03b | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 2 | [
{
"theorem_name": "pe_transitivity_core_none_left",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [transitivity.core]\n split <;> try rfl\n simp only [pe_transitivity_isAncestor_none_left, pe_im... | [
{
"name": "pe_transitivity_isAncestor_none_left",
"text": "private theorem pe_transitivity_isAncestor_none_left {t₂ t₁' t₂' : Term} {ety₁ : EntityType} {f : UnaryFunction} :\n transitivity.isAncestor (.none (.entity ety₁)) t₂ t₁' t₂' f = false\n:= by\n simp only [transitivity.isAncestor, pe_isSome_none, p... | [
{
"name": "interpret_transitivity_core",
"fan_in": 2,
"n_deps_direct": 6,
"n_deps_transitive": 13,
"n_lines": 38,
"n_chars": 2095,
"n_subproofs": 6,
"n_tactics": 27,
"cyclomatic": 5,
"n_automation": 8,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": false,
... | 13 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,11 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem pe_transitivity_isAncestor_none_left {t₂ t₁' t₂' : Term} {ety₁ : EntityType} {f : UnaryFunction} :
+ transitivity.isAncestor (.none (.entity ety₁)) t₂ t₁' t₂... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_9 | 7d5413b848bc9bc4 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 1 | [
{
"theorem_name": "pe_foldl_and_true_iff",
"depth": 1,
"n_commands": 0,
"n_lines": 22,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction xs\n case nil =>\n simp only [List.foldl_nil, List.not_mem_nil, false_implies, implies_true]\n case c... | [
{
"name": "pe_foldl_and_not_true_implies",
"text": "private theorem pe_foldl_and_not_true_implies {α} (xs : List α) (f : α → Term) {t : Term} :\n t ≠ true →\n xs.foldl (λ acc x => Factory.and acc (f x)) t ≠ true\n:= by\n intro hnt\n induction xs generalizing t\n case nil =>\n simp only [List.foldl_n... | [
{
"name": "pe_foldl_and_true_iff",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 27,
"n_chars": 866,
"n_subproofs": 1,
"n_tactics": 23,
"cyclomatic": 5,
"n_automation": 7,
"n_rewrites": 0,
"n_structural": 9,
"automation_only": false,
"max... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,10 +39,46 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem pe_foldl_and_not_true_implies {α} (xs : List α) (f : α → Term) {t : Term} :
+ t ≠ true →
+ xs.foldl (λ acc x => Factory.and acc (f x)) t ≠ true
+:= by
+ i... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_10 | f99a7171a1c31a5b | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 5 | [
{
"theorem_name": "wf_transitivity_isAncestor",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [transitivity.isAncestor]\n have hwi₁ := wf_isSome hwt₁\n have hwi₂ := wf_isSome hwt₂\n have hwa₁ ... | [
{
"name": "wf_app_anc",
"text": "private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}\n (hwε : εs.WellFormed)\n (hwt₁ : Term.WellFormed εs t₁)\n (hty₁ : t₁.typeOf = TermType.entity ety₁)\n (hf₁₂ : εs.ancestorsOfType ety₁ ety₂ = some f₁₂) :\n (app f₁₂... | [
{
"name": "wfl_ancestors_implies_wfl_term_entity",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 17,
"n_chars": 849,
"n_subproofs": 3,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": ... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}
+ (hwε : εs.WellFormed)
+ (hwt₁ : Term.WellFormed εs t₁)
+ (hty₁ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_11 | e7e17e76fce7502f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 5 | [
{
"theorem_name": "wf_transitivity_isAncestor",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [transitivity.isAncestor]\n have hwi₁ := wf_isSome hwt₁\n have hwi₂ := wf_isSome hwt₂\n have hwa₁ ... | [
{
"name": "wf_app_anc",
"text": "private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}\n (hwε : εs.WellFormed)\n (hwt₁ : Term.WellFormed εs t₁)\n (hty₁ : t₁.typeOf = TermType.entity ety₁)\n (hf₁₂ : εs.ancestorsOfType ety₁ ety₂ = some f₁₂) :\n (app f₁₂... | [
{
"name": "swf_implies_transitivity_areAncestorsOfType",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 43,
"n_chars": 2316,
"n_subproofs": 6,
"n_tactics": 31,
"cyclomatic": 3,
"n_automation": 11,
"n_rewrites": 2,
"n_structural": 5,
"automatio... | 3 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem wf_app_anc {t₁ : Term} {ety₁ ety₂ : EntityType} {f₁₂ : UnaryFunction} {εs : SymEntities}
+ (hwε : εs.WellFormed)
+ (hwt₁ : Term.WellFormed εs t₁)
+ (hty₁ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_12 | 6cf35a6f9babaf76 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 2 | [
{
"theorem_name": "pe_transitivity_core_none_left",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [transitivity.core]\n split <;> try rfl\n simp only [pe_transitivity_isAncestor_none_left, pe_im... | [
{
"name": "pe_transitivity_isAncestor_none_left",
"text": "private theorem pe_transitivity_isAncestor_none_left {t₂ t₁' t₂' : Term} {ety₁ : EntityType} {f : UnaryFunction} :\n transitivity.isAncestor (.none (.entity ety₁)) t₂ t₁' t₂' f = false\n:= by\n simp only [transitivity.isAncestor, pe_isSome_none, p... | [
{
"name": "swf_implies_interpret_transitivity",
"fan_in": 0,
"n_deps_direct": 7,
"n_deps_transitive": 22,
"n_lines": 53,
"n_chars": 3064,
"n_subproofs": 7,
"n_tactics": 42,
"cyclomatic": 11,
"n_automation": 14,
"n_rewrites": 1,
"n_structural": 6,
"automation_only"... | 22 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -53,6 +53,11 @@
cases h₂ : εs.ancestors ety₂ <;>
simp only [transitivity.core, h₁, h₂]
+private theorem pe_transitivity_isAncestor_none_left {t₂ t₁' t₂' : Term} {ety₁ : EntityType} {f : UnaryFunction} :
+ transitivity.isAncestor (.none (.entity ety₁)) t₂ t₁' t₂' f = false
+:= by
+ simp only [transitivity.i... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_b506e5fcce95_13 | 5009f464293c1f34 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Transitivity.lean | Transitivity | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 25 | 2 | [
{
"theorem_name": "swf_implies_interpret_transitivity",
"depth": 1,
"n_commands": 0,
"n_lines": 39,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hwt₁ := (compile_wf hwε₁ hok₁).left\n have hwt₂ := (compile_wf hwε₂ hok₂).left\n simp only [tran... | [
{
"name": "transitivity_option_entity_implies",
"text": "private theorem transitivity_option_entity_implies {t₁ t₂ : Term} {ety₁ ety₂ : EntityType} {εs : SymEntities} :\n t₁.typeOf = .option (.entity ety₁) →\n t₂.typeOf = .option (.entity ety₂) →\n transitivity t₁ t₂ εs =\n (if t₁ = t₂ then Term.bool tr... | [
{
"name": "interpret_transitivity_implies_transitive",
"fan_in": 0,
"n_deps_direct": 6,
"n_deps_transitive": 20,
"n_lines": 73,
"n_chars": 4182,
"n_subproofs": 6,
"n_tactics": 49,
"cyclomatic": 3,
"n_automation": 19,
"n_rewrites": 7,
"n_structural": 4,
"automation... | 20 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,20 @@
implies (transitivity.isAncestor t₁ t₂ t₂' t₁' f₁₂) (transitivity.areAncestors εs t₂' anc₂ t₁' ety₁)
| _, _ => true
+private theorem transitivity_option_entity_implies {t₁ t₂ : Term} {ety₁ ety₂ : EntityType} {εs : SymEntities} :
+ t₁.typeOf = .option (.entity ety₁) →
+ t₂.typeOf = .option... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_fe77d028fae0_0 | 55bb34efdc91ebf8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/Control.lean | Control | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 1 | [
{
"theorem_name": "to_option_right_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h\n symm at h\n exact to_option_left_ok h",
"n_chars": 53,
"n_subproofs": 0,
"n_tactics": 4,
"cy... | [
{
"name": "to_option_left_ok",
"text": "public theorem to_option_left_ok {α ε₁ ε₂} {v : α} {res₁ : Except ε₁ α} {res₂ : Except ε₂ α} :\n res₁.toOption = res₂.toOption → res₁ = .ok v → res₂ = .ok v\n:= by\n intro h₀ h₁\n simp [Except.toOption] at h₀\n repeat split at h₀\n · simp only [Except.ok.injEq]\n... | [
{
"name": "to_option_right_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 247,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"max_nest... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -46,9 +46,25 @@
(bind Option.none f : Option β) = Option.none
:= by rfl
+public theorem to_option_left_ok {α ε₁ ε₂} {v : α} {res₁ : Except ε₁ α} {res₂ : Except ε₂ α} :
+ res₁.toOption = res₂.toOption → res₁ = .ok v → res₂ = .ok v
+:= by
+ intro h₀ h₁
+ simp [Except.toOption] at h₀
+ repeat split at h₀
+ ·... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_fe77d028fae0_1 | f56a3c93cbf4cfbe | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/Control.lean | Control | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 1 | [
{
"theorem_name": "to_option_right_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h\n symm at h\n exact to_option_left_ok h",
"n_chars": 53,
"n_subproofs": 0,
"n_tactics": 4,
"cy... | [
{
"name": "to_option_left_ok",
"text": "public theorem to_option_left_ok {α ε₁ ε₂} {v : α} {res₁ : Except ε₁ α} {res₂ : Except ε₂ α} :\n res₁.toOption = res₂.toOption → res₁ = .ok v → res₂ = .ok v\n:= by\n intro h₀ h₁\n simp [Except.toOption] at h₀\n repeat split at h₀\n · simp only [Except.ok.injEq]\n... | [
{
"name": "to_option_right_ok'",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 9,
"n_chars": 292,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"max_nes... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -46,9 +46,25 @@
(bind Option.none f : Option β) = Option.none
:= by rfl
+public theorem to_option_left_ok {α ε₁ ε₂} {v : α} {res₁ : Except ε₁ α} {res₂ : Except ε₂ α} :
+ res₁.toOption = res₂.toOption → res₁ = .ok v → res₂ = .ok v
+:= by
+ intro h₀ h₁
+ simp [Except.toOption] at h₀
+ repeat split at h₀
+ ·... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_fe77d028fae0_2 | 120230e70f7baad5 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/Control.lean | Control | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 1 | [
{
"theorem_name": "to_option_right_ok'",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n generalize h : ((.ok v) : Except ε₂ α) = res₂\n symm at h\n intro h₁\n exact to_option_right_ok h₁ h",
"n_chars"... | [
{
"name": "to_option_right_ok",
"text": "public theorem to_option_right_ok {α ε₁ ε₂} {v : α} {res₁ : Except ε₁ α} {res₂ : Except ε₂ α} :\n res₁.toOption = res₂.toOption → res₂ = .ok v → res₁ = .ok v\n:= by\n intro h\n symm at h\n exact to_option_left_ok h\n\n",
"fan_in": 1,
"n_lines": 8,
"n_... | [
{
"name": "to_option_left_ok'",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 8,
"n_chars": 230,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"max_nest... | 3 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -59,9 +59,20 @@
· cases h₀
· cases h₁
+public theorem to_option_right_ok {α ε₁ ε₂} {v : α} {res₁ : Except ε₁ α} {res₂ : Except ε₂ α} :
+ res₁.toOption = res₂.toOption → res₂ = .ok v → res₁ = .ok v
+:= by
+ intro h
+ symm at h
+ exact to_option_left_ok h
+
public theorem to_option_right_ok' {α ε₁ ε₂} {v ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_fe77d028fae0_3 | 1ccb9b20d7ae7945 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/Control.lean | Control | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 1 | [
{
"theorem_name": "to_option_right_err",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h\n symm at h\n exact to_option_left_err h",
"n_chars": 54,
"n_subproofs": 0,
"n_tactics": 4,
"... | [
{
"name": "to_option_left_err",
"text": "public theorem to_option_left_err {ε₁ ε₂ α} {err₁: ε₁} {res₂ : Except ε₂ α} :\n (Except.error err₁).toOption = res₂.toOption → ∃ err₂, res₂ = .error err₂\n:= by\n intro h\n simp [Except.toOption] at h\n repeat split at h\n · cases h\n · simp only [Except.error.... | [
{
"name": "to_option_right_err",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 245,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"max_nes... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -46,9 +46,21 @@
(bind Option.none f : Option β) = Option.none
:= by rfl
+public theorem to_option_left_err {ε₁ ε₂ α} {err₁: ε₁} {res₂ : Except ε₂ α} :
+ (Except.error err₁).toOption = res₂.toOption → ∃ err₂, res₂ = .error err₂
+:= by
+ intro h
+ simp [Except.toOption] at h
+ repeat split at h
+ · cases h
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_fe77d028fae0_4 | 68a46edbc91acb23 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/Control.lean | Control | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 1 | [
{
"theorem_name": "do_to_option_none",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h\n replace ⟨_, h⟩ := to_option_none.mp h\n simp [h, Except.toOption]",
"n_chars": 85,
"n_subproofs": 0,
... | [
{
"name": "to_option_none",
"text": "public theorem to_option_none {res: Except ε α} :\n res.toOption = .none ↔ (∃ err, res = .error err)\n:= by\n simp only [Except.toOption]\n split <;> simp\n\n",
"fan_in": 1,
"n_lines": 7,
"n_chars": 161,
"n_subproofs": 0,
"n_tactics": 4,
"cyclo... | [
{
"name": "do_to_option_none",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 248,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nesti... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -46,9 +46,18 @@
(bind Option.none f : Option β) = Option.none
:= by rfl
+public theorem to_option_none {res: Except ε α} :
+ res.toOption = .none ↔ (∃ err, res = .error err)
+:= by
+ simp only [Except.toOption]
+ split <;> simp
+
public theorem do_to_option_none {ε α β} {res : Except ε α} {f : α → Except ε... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_fe77d028fae0_5 | f5580b48a3c761f2 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/Control.lean | Control | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 1 | [
{
"theorem_name": "do_to_option_some",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h\n simp [to_option_some.mp h]",
"n_chars": 42,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,... | [
{
"name": "to_option_some",
"text": "public theorem to_option_some {v : α} {res: Except ε α} :\n res.toOption = .some v ↔ res = .ok v\n:= by\n constructor\n case mp =>\n intro h\n simp [Except.toOption] at h\n split at h <;> simp at h\n subst h\n rfl\n case mpr =>\n intro h\n simp o... | [
{
"name": "do_to_option_some",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 7,
"n_chars": 207,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nesti... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -46,9 +46,25 @@
(bind Option.none f : Option β) = Option.none
:= by rfl
+public theorem to_option_some {v : α} {res: Except ε α} :
+ res.toOption = .some v ↔ res = .ok v
+:= by
+ constructor
+ case mp =>
+ intro h
+ simp [Except.toOption] at h
+ split at h <;> simp at h
+ subst h
+ rfl
+ cas... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_fe77d028fae0_6 | c7f30b6b7c775da1 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/Control.lean | Control | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 2 | [
{
"theorem_name": "to_option_eq_do₁",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases h₁ : res₁.toOption\n · intro h₂\n simp [do_to_option_none h₁, do_to_option_none h₂.symm]\n · intro h₂\n simp... | [
{
"name": "do_to_option_none",
"text": "public theorem do_to_option_none {ε α β} {res : Except ε α} {f : α → Except ε β} :\n res.toOption = none → (do let x ← res; f x).toOption = none\n:= by\n intro h\n replace ⟨_, h⟩ := to_option_none.mp h\n simp [h, Except.toOption]\n\n",
"fan_in": 2,
"n_line... | [
{
"name": "to_option_eq_do₁",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 11,
"n_chars": 415,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 2,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 3,
"automation_only": false,
"max_nesti... | 4 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -66,6 +66,13 @@
simp only [Except.toOption]
split <;> simp
+public theorem do_to_option_none {ε α β} {res : Except ε α} {f : α → Except ε β} :
+ res.toOption = none → (do let x ← res; f x).toOption = none
+:= by
+ intro h
+ replace ⟨_, h⟩ := to_option_none.mp h
+ simp [h, Except.toOption]
+
public theor... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_fe77d028fae0_7 | b8436f4c8a5b1db8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/Control.lean | Control | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 2 | [
{
"theorem_name": "to_option_eq_do₁",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases h₁ : res₁.toOption\n · intro h₂\n simp [do_to_option_none h₁, do_to_option_none h₂.symm]\n · intro h₂\n simp... | [
{
"name": "do_to_option_none",
"text": "public theorem do_to_option_none {ε α β} {res : Except ε α} {f : α → Except ε β} :\n res.toOption = none → (do let x ← res; f x).toOption = none\n:= by\n intro h\n replace ⟨_, h⟩ := to_option_none.mp h\n simp [h, Except.toOption]\n\n",
"fan_in": 2,
"n_line... | [
{
"name": "to_option_eq_do₂",
"fan_in": 0,
"n_deps_direct": 3,
"n_deps_transitive": 5,
"n_lines": 16,
"n_chars": 623,
"n_subproofs": 2,
"n_tactics": 11,
"cyclomatic": 2,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"max_nest... | 5 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -66,6 +66,13 @@
simp only [Except.toOption]
split <;> simp
+public theorem do_to_option_none {ε α β} {res : Except ε α} {f : α → Except ε β} :
+ res.toOption = none → (do let x ← res; f x).toOption = none
+:= by
+ intro h
+ replace ⟨_, h⟩ := to_option_none.mp h
+ simp [h, Except.toOption]
+
public theor... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c5ffc9396994_0 | 428d0fd054677349 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/VerifyIsAuthorizedQueries.lean | VerifyIsAuthorizedQueries | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "denies_eq_implies_false",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [denies, ifFirstAllowsSoDoesSecond, isAuthorized_empty_denies env, reduceCtorEq, decide_false, Bool.or_fa... | [
{
"name": "isAuthorized_empty_denies",
"text": "theorem isAuthorized_empty_denies (env : Env) :\n (Spec.isAuthorized env.request env.entities []).decision = .deny\n:= by\n simp [Spec.isAuthorized, Spec.satisfiedPolicies]\n\n",
"fan_in": 1,
"n_lines": 6,
"n_chars": 173,
"n_subproofs": 0,
... | [
{
"name": "denies_eq_implies_false",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 7,
"n_chars": 319,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -36,9 +36,16 @@
def denies (r₁ : Response) : Bool :=
r₁.decision = .deny
+theorem isAuthorized_empty_denies (env : Env) :
+ (Spec.isAuthorized env.request env.entities []).decision = .deny
+:= by
+ simp [Spec.isAuthorized, Spec.satisfiedPolicies]
+
theorem denies_eq_implies_false (r₁ : Response) (env : Env)... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c5ffc9396994_1 | e6ff907652badac2 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/VerifyIsAuthorizedQueries.lean | VerifyIsAuthorizedQueries | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "satisfiedPolicies_allowAll_permit_nonempty",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold Spec.satisfiedPolicies\n rw [List.filterMap_cons_some (by exact satisfiedWithEffect_allo... | [
{
"name": "satisfiedWithEffect_allowAll_permit",
"text": "private theorem satisfiedWithEffect_allowAll_permit (env : Env) :\n satisfiedWithEffect .permit verifyAlwaysAllows.allowAll env.request env.entities =\n .some verifyAlwaysAllows.allowAll.id\n:= by\n simp [satisfiedWithEffect, verifyAlwaysAllows.al... | [
{
"name": "satisfiedPolicies_allowAll_permit_nonempty",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 419,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 1,
"automation_on... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,9 +39,22 @@
def allows (r₁ : Response) : Bool :=
r₁.decision = .allow
+private theorem satisfiedWithEffect_allowAll_permit (env : Env) :
+ satisfiedWithEffect .permit verifyAlwaysAllows.allowAll env.request env.entities =
+ .some verifyAlwaysAllows.allowAll.id
+:= by
+ simp [satisfiedWithEffect, verifyA... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c5ffc9396994_2 | 5b5c46f3d822c0c9 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/VerifyIsAuthorizedQueries.lean | VerifyIsAuthorizedQueries | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "satisfiedPolicies_allowAll_forbid_empty",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold Spec.satisfiedPolicies\n rw [List.filterMap_cons_none (by exact satisfiedWithEffect_allowAl... | [
{
"name": "satisfiedWithEffect_allowAll_forbid",
"text": "private theorem satisfiedWithEffect_allowAll_forbid (env : Env) :\n satisfiedWithEffect .forbid verifyAlwaysAllows.allowAll env.request env.entities =\n .none\n:= by\n simp [satisfiedWithEffect, verifyAlwaysAllows.allowAll]\n\n",
"fan_in": 1,
... | [
{
"name": "satisfiedPolicies_allowAll_forbid_empty",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 343,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 1,
"automation_only":... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,9 +39,18 @@
def allows (r₁ : Response) : Bool :=
r₁.decision = .allow
+private theorem satisfiedWithEffect_allowAll_forbid (env : Env) :
+ satisfiedWithEffect .forbid verifyAlwaysAllows.allowAll env.request env.entities =
+ .none
+:= by
+ simp [satisfiedWithEffect, verifyAlwaysAllows.allowAll]
+
privat... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c5ffc9396994_3 | 5671ed4e6c48461d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/VerifyIsAuthorizedQueries.lean | VerifyIsAuthorizedQueries | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "satisfiedPolicies_allowAll_forbid_empty",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold Spec.satisfiedPolicies\n rw [List.filterMap_cons_none (by exact satisfiedWithEffect_allowAl... | [
{
"name": "satisfiedWithEffect_allowAll_forbid",
"text": "private theorem satisfiedWithEffect_allowAll_forbid (env : Env) :\n satisfiedWithEffect .forbid verifyAlwaysAllows.allowAll env.request env.entities =\n .none\n:= by\n simp [satisfiedWithEffect, verifyAlwaysAllows.allowAll]\n\n",
"fan_in": 1,
... | [
{
"name": "isAuthorized_allowAll_allows",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 8,
"n_chars": 273,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
... | 4 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -47,6 +47,12 @@
Policy.toExpr, PrincipalScope.toExpr, ActionScope.toExpr, ResourceScope.toExpr, Scope.toExpr,
Conditions.toExpr, Condition.toExpr, evaluate, Result.as, Coe.coe, Value.asBool]
+private theorem satisfiedWithEffect_allowAll_forbid (env : Env) :
+ satisfiedWithEffect .forbid verifyAlwaysAllo... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c5ffc9396994_4 | 6e1af67647eb937a | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/VerifyIsAuthorizedQueries.lean | VerifyIsAuthorizedQueries | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "satisfiedPolicies_allowAll_forbid_empty",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold Spec.satisfiedPolicies\n rw [List.filterMap_cons_none (by exact satisfiedWithEffect_allowAl... | [
{
"name": "satisfiedWithEffect_allowAll_forbid",
"text": "private theorem satisfiedWithEffect_allowAll_forbid (env : Env) :\n satisfiedWithEffect .forbid verifyAlwaysAllows.allowAll env.request env.entities =\n .none\n:= by\n simp [satisfiedWithEffect, verifyAlwaysAllows.allowAll]\n\n",
"fan_in": 1,
... | [
{
"name": "allows_eq_allowAll_implies",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 5,
"n_lines": 6,
"n_chars": 273,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"m... | 5 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -47,6 +47,12 @@
Policy.toExpr, PrincipalScope.toExpr, ActionScope.toExpr, ResourceScope.toExpr, Scope.toExpr,
Conditions.toExpr, Condition.toExpr, evaluate, Result.as, Coe.coe, Value.asBool]
+private theorem satisfiedWithEffect_allowAll_forbid (env : Env) :
+ satisfiedWithEffect .forbid verifyAlwaysAllo... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c5ffc9396994_5 | 72751d835e1fff57 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/VerifyIsAuthorizedQueries.lean | VerifyIsAuthorizedQueries | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 2 | [
{
"theorem_name": "swf_εnv_for_allowAll_policies",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [SymEnv.StronglyWellFormedForPolicies, SymEnv.StronglyWellFormedForAll, List.map_cons,\n List.ma... | [
{
"name": "allowAll_validRefs",
"text": "private theorem allowAll_validRefs (f : EntityUID → Prop) :\n Expr.ValidRefs f verifyAlwaysAllows.allowAll.toExpr\n:= by\n simp only [Policy.toExpr, PrincipalScope.toExpr, Scope.toExpr, verifyAlwaysAllows.allowAll,\n ActionScope.toExpr, ResourceScope.toExpr, Con... | [
{
"name": "swf_εnv_for_allowAll_policies",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 9,
"n_chars": 397,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,9 +39,34 @@
def allows (r₁ : Response) : Bool :=
r₁.decision = .allow
+private theorem allowAll_validRefs (f : EntityUID → Prop) :
+ Expr.ValidRefs f verifyAlwaysAllows.allowAll.toExpr
+:= by
+ simp only [Policy.toExpr, PrincipalScope.toExpr, Scope.toExpr, verifyAlwaysAllows.allowAll,
+ ActionScope.to... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c5ffc9396994_6 | 01104ca1583d832c | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/VerifyIsAuthorizedQueries.lean | VerifyIsAuthorizedQueries | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 2 | [
{
"theorem_name": "swf_εnv_for_allowAll_policies",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [SymEnv.StronglyWellFormedForPolicies, SymEnv.StronglyWellFormedForAll, List.map_cons,\n List.ma... | [
{
"name": "allowAll_validRefs",
"text": "private theorem allowAll_validRefs (f : EntityUID → Prop) :\n Expr.ValidRefs f verifyAlwaysAllows.allowAll.toExpr\n:= by\n simp only [Policy.toExpr, PrincipalScope.toExpr, Scope.toExpr, verifyAlwaysAllows.allowAll,\n ActionScope.toExpr, ResourceScope.toExpr, Con... | [
{
"name": "swf_env_for_allowAll_policies",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 9,
"n_chars": 358,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,9 +39,34 @@
def allows (r₁ : Response) : Bool :=
r₁.decision = .allow
+private theorem allowAll_validRefs (f : EntityUID → Prop) :
+ Expr.ValidRefs f verifyAlwaysAllows.allowAll.toExpr
+:= by
+ simp only [Policy.toExpr, PrincipalScope.toExpr, Scope.toExpr, verifyAlwaysAllows.allowAll,
+ ActionScope.to... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e3ba48645d06_0 | ca06f868d9fcc4f6 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/TypeOf.lean | TypeOf | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 6 | 1 | [
{
"theorem_name": "typeOf_term_record_attr_value_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ht₁ := typeOf_term_record_attr_value_typeOf hty₁ ht₁\n replace ht₂ := typeOf_term_record_attr_val... | [
{
"name": "typeOf_term_record_attr_value_typeOf",
"text": "public theorem typeOf_term_record_attr_value_typeOf {r : Map Attr Term} {a : Attr} {t : Term}\n (h₁ : (Term.record r).typeOf = TermType.record rty)\n (h₂ : r.find? a = .some t) :\n rty.find? a = .some t.typeOf\n:= by\n rw [typeOf_term_record_eq]... | [
{
"name": "typeOf_term_record_attr_value_eq",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 13,
"n_chars": 551,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -106,13 +106,27 @@
TermType.record (r.mapOnValues Term.typeOf)
:= by simp only [Term.typeOf, Map.mapOnValues₂_eq_mapOnValues]
+public theorem typeOf_term_record_attr_value_typeOf {r : Map Attr Term} {a : Attr} {t : Term}
+ (h₁ : (Term.record r).typeOf = TermType.record rty)
+ (h₂ : r.find? a = .some t) :
+ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e3ba48645d06_1 | 10b6546bc72e41cf | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/TypeOf.lean | TypeOf | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 6 | 1 | [
{
"theorem_name": "typeOf_wf_term_is_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 20,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁\n induction h₁\n case prim_wf p h₁ =>\n simp only [Term.typeOf]\n exact typeOf_wf_term_prim_is_wf h₁... | [
{
"name": "type_of_wf_term_record_is_wf",
"text": "private theorem type_of_wf_term_record_is_wf {εs : SymEntities} {r : Map Attr Term}\n (hwf : Map.WellFormed r)\n (ih : ∀ (a : Attr) (t : Term), (a, t) ∈ Map.toList r → TermType.WellFormed εs (Term.typeOf t)) :\n TermType.WellFormed εs (Term.typeOf (Term.... | [
{
"name": "typeOf_wf_term_is_wf",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 3,
"n_lines": 25,
"n_chars": 716,
"n_subproofs": 0,
"n_tactics": 20,
"cyclomatic": 2,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 7,
"automation_only": false,
"max_... | 3 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -164,10 +164,46 @@
| exact TermType.WellFormed.ext_wf
}
+private theorem type_of_wf_term_record_is_wf {εs : SymEntities} {r : Map Attr Term}
+ (hwf : Map.WellFormed r)
+ (ih : ∀ (a : Attr) (t : Term), (a, t) ∈ Map.toList r → TermType.WellFormed εs (Term.typeOf t)) :
+ TermType.WellFormed εs (Term.typeOf... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e3ba48645d06_2 | f1af39d0920a3130 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/TypeOf.lean | TypeOf | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 6 | 1 | [
{
"theorem_name": "typeOf_option_wf_terms_is_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hcons hwf hty\n subst hcons\n replace hwf := typeOf_wf_term_is_wf (hwf hd List.mem_cons_self)\n rw [h... | [
{
"name": "typeOf_wf_term_is_wf",
"text": "public theorem typeOf_wf_term_is_wf {εs : SymEntities} {t : Term} :\n t.WellFormed εs →\n t.typeOf.WellFormed εs\n:= by\n intro h₁\n induction h₁\n case prim_wf p h₁ =>\n simp only [Term.typeOf]\n exact typeOf_wf_term_prim_is_wf h₁\n case var_wf h₁ =>\n... | [
{
"name": "typeOf_option_wf_terms_is_wf",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 14,
"n_chars": 437,
"n_subproofs": 0,
"n_tactics": 7,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 2,
"automation_only": false,
... | 4 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -181,12 +181,42 @@
case h₂ =>
exact Map.mapOnValues_wf.mp hwf
+public theorem typeOf_wf_term_is_wf {εs : SymEntities} {t : Term} :
+ t.WellFormed εs →
+ t.typeOf.WellFormed εs
+:= by
+ intro h₁
+ induction h₁
+ case prim_wf p h₁ =>
+ simp only [Term.typeOf]
+ exact typeOf_wf_term_prim_is_wf h₁
+... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e3ba48645d06_3 | 281ca1c43e181502 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/TypeOf.lean | TypeOf | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 6 | 2 | [
{
"theorem_name": "typeOf_ifSome_option",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hty\n simp only [Factory.ifSome, hty, Factory.ite, Factory.noneOf]\n exact typeOf_ite_simplify_option hty",
... | [
{
"name": "typeOf_ite_simplify_option",
"text": "private theorem typeOf_ite_simplify_option {g t : Term} {ty : TermType} :\n t.typeOf = .option ty →\n (Factory.ite.simplify g (Term.none ty) t).typeOf = ty.option\n:= by\n intro hty\n simp only [Factory.ite.simplify, Bool.or_eq_true, decide_eq_true_eq]\n ... | [
{
"name": "typeOf_ifSome_option",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 9,
"n_chars": 259,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"max_ne... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -111,10 +111,25 @@
Term.typeOf (Term.app op args ty) = ty
:= by simp [Term.typeOf]
+private theorem typeOf_ite_simplify_option {g t : Term} {ty : TermType} :
+ t.typeOf = .option ty →
+ (Factory.ite.simplify g (Term.none ty) t).typeOf = ty.option
+:= by
+ intro hty
+ simp only [Factory.ite.simplify, Bool.o... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e3ba48645d06_4 | 654c8128668ebaad | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/TypeOf.lean | TypeOf | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 6 | 2 | [
{
"theorem_name": "typeOf_ifSome_option",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hty\n simp only [Factory.ifSome, hty, Factory.ite, Factory.noneOf]\n exact typeOf_ite_simplify_option hty",
... | [
{
"name": "typeOf_ite_simplify_option",
"text": "private theorem typeOf_ite_simplify_option {g t : Term} {ty : TermType} :\n t.typeOf = .option ty →\n (Factory.ite.simplify g (Term.none ty) t).typeOf = ty.option\n:= by\n intro hty\n simp only [Factory.ite.simplify, Bool.or_eq_true, decide_eq_true_eq]\n ... | [
{
"name": "typeOf_ifAllSome_option_type",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 9,
"n_chars": 289,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -111,10 +111,25 @@
Term.typeOf (Term.app op args ty) = ty
:= by simp [Term.typeOf]
+private theorem typeOf_ite_simplify_option {g t : Term} {ty : TermType} :
+ t.typeOf = .option ty →
+ (Factory.ite.simplify g (Term.none ty) t).typeOf = ty.option
+:= by
+ intro hty
+ simp only [Factory.ite.simplify, Bool.o... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_dc02fa8875d5_0 | fe87a7aa371f8d79 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/TPE/Conversion.lean | Conversion | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 2 | [
{
"theorem_name": "conversion_preserves_evaluation_forall2",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases ls with\n | nil =>\n simp\n | cons head tail =>\n simp\n constructor\n case le... | [
{
"name": "conversion_preserves_evaluation",
"text": "/--\nTheorem stating that converting a TypedExpr to a Residual preserves evaluation semantics.\nThat is, evaluating the original TypedExpr (converted to Expr) gives the same result\nas evaluating the converted Residual.\n-/\ntheorem conversion_preserves_... | [
{
"name": "conversion_preserves_evaluation_forall2",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 15,
"n_chars": 387,
"n_subproofs": 0,
"n_tactics": 11,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 4,
"automation_only... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -36,7 +36,13 @@
cases ls with
| nil =>
simp
- | cons head tail => sorry
+ | cons head tail =>
+ simp
+ constructor
+ case left =>
+ apply conversion_preserves_evaluation
+ case right =>
+ apply conversion_preserves_evaluation_forall2
theorem conversion_preserves_evaluation_foral... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_dc02fa8875d5_1 | add13776da0f4ba5 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/TPE/Conversion.lean | Conversion | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 1 | [
{
"theorem_name": "conversion_preserves_evaluation",
"depth": 1,
"n_commands": 0,
"n_lines": 85,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases te with\n | lit p ty =>\n simp [TypedExpr.toExpr, TypedExpr.toResidual, Spec.evaluate, Residual.... | [
{
"name": "conversion_preserves_evaluation_forall2_map",
"text": "theorem conversion_preserves_evaluation_forall2_map {map : List (Attr × TypedExpr)} :\n List.Forall₂\n (fun x y =>\n Prod.mk x.fst <$> Spec.evaluate x.snd.toExpr req es =\n Prod.mk y.fst <$> (TypedExpr.toResidual y.snd).evaluate req... | [
{
"name": "conversion_preserves_evaluation",
"fan_in": 2,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 92,
"n_chars": 3976,
"n_subproofs": 12,
"n_tactics": 86,
"cyclomatic": 6,
"n_automation": 19,
"n_rewrites": 29,
"n_structural": 7,
"automation_only": f... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -44,6 +44,23 @@
case right =>
apply conversion_preserves_evaluation_forall2
+theorem conversion_preserves_evaluation_forall2_map {map : List (Attr × TypedExpr)} :
+ List.Forall₂
+ (fun x y =>
+ Prod.mk x.fst <$> Spec.evaluate x.snd.toExpr req es =
+ Prod.mk y.fst <$> (TypedExpr.toResidual y.s... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e1c7e6bbb90b_0 | e4774aec0ce84a92 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Data/SizeOf.lean | SizeOf | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 4 | [
{
"theorem_name": "sizeOf_attach₂",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hin\n simp only\n replace hin := List.sizeOf_lt_of_mem hin\n simp only [Prod.mk.sizeOf_spec] at hin\n omega",
... | [
{
"name": "sizeOf_lt_of_mem",
"text": "public theorem sizeOf_lt_of_mem [SizeOf α] {s : Set α}\n (h : a ∈ s) :\n sizeOf a < sizeOf s\n:= by\n simp only [Membership.mem, elts] at h\n replace h := List.sizeOf_lt_of_mem h\n have _ : sizeOf s.1 < sizeOf s := by\n simp only [sizeOf, _sizeOf_1]\n omega\... | [
{
"name": "sizeOf_attach₂",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 273,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nesting... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -33,7 +33,12 @@
public theorem sizeOf_attach₂ [SizeOf α] [SizeOf β] {a : α} {b : β} {l : List (α × β)} :
(a, b) ∈ l → sizeOf (a, b).snd < 1 + sizeOf l
-:= sorry
+:= by
+ intro hin
+ simp only
+ replace hin := List.sizeOf_lt_of_mem hin
+ simp only [Prod.mk.sizeOf_spec] at hin
+ omega
end Cedar.Data.List... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e1c7e6bbb90b_1 | 566fbebcac60b358 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Data/SizeOf.lean | SizeOf | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 4 | [
{
"theorem_name": "sizeOf_attach₂",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hin\n simp only\n replace hin := List.sizeOf_lt_of_mem hin\n simp only [Prod.mk.sizeOf_spec] at hin\n omega",
... | [
{
"name": "sizeOf_lt_of_mem",
"text": "public theorem sizeOf_lt_of_mem [SizeOf α] {s : Set α}\n (h : a ∈ s) :\n sizeOf a < sizeOf s\n:= by\n simp only [Membership.mem, elts] at h\n replace h := List.sizeOf_lt_of_mem h\n have _ : sizeOf s.1 < sizeOf s := by\n simp only [sizeOf, _sizeOf_1]\n omega\... | [
{
"name": "sizeOf_attach₃",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 279,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nesting... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -33,7 +33,12 @@
public theorem sizeOf_attach₃ [SizeOf α] [SizeOf β] {a : α} {b : β} {l : List (α × β)} :
(a, b) ∈ l → sizeOf (a, b).snd < 1 + (1 + sizeOf l)
-:= sorry
+:= by
+ intro hin
+ simp only
+ replace hin := List.sizeOf_lt_of_mem hin
+ simp only [Prod.mk.sizeOf_spec] at hin
+ omega
end Cedar.Dat... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e1c7e6bbb90b_2 | 33753c9de1dc4c48 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Data/SizeOf.lean | SizeOf | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 4 | [
{
"theorem_name": "sizeOf_attach₂",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hin\n simp only\n replace hin := List.sizeOf_lt_of_mem hin\n simp only [Prod.mk.sizeOf_spec] at hin\n omega",
... | [
{
"name": "sizeOf_lt_of_mem",
"text": "public theorem sizeOf_lt_of_mem [SizeOf α] {s : Set α}\n (h : a ∈ s) :\n sizeOf a < sizeOf s\n:= by\n simp only [Membership.mem, elts] at h\n replace h := List.sizeOf_lt_of_mem h\n have _ : sizeOf s.1 < sizeOf s := by\n simp only [sizeOf, _sizeOf_1]\n omega\... | [
{
"name": "sizeOf_lt_of_value",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 15,
"n_chars": 417,
"n_subproofs": 2,
"n_tactics": 10,
"cyclomatic": 1,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"max_ne... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -40,7 +40,16 @@
public theorem sizeOf_lt_of_value [SizeOf α] [SizeOf β] {m : Map α β} {k : α} {v : β}
(h : (k, v) ∈ m.1) :
sizeOf v < sizeOf m
-:= sorry
+:= by
+ simp only [Membership.mem] at h
+ replace h := List.sizeOf_lt_of_mem h
+ have v_lt_kv : sizeOf v < sizeOf (k, v) := by
+ simp only [sizeOf, Pr... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e1c7e6bbb90b_3 | 30a81c5c13dee6a3 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Data/SizeOf.lean | SizeOf | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 4 | [
{
"theorem_name": "sizeOf_attach₂",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hin\n simp only\n replace hin := List.sizeOf_lt_of_mem hin\n simp only [Prod.mk.sizeOf_spec] at hin\n omega",
... | [
{
"name": "sizeOf_lt_of_mem",
"text": "public theorem sizeOf_lt_of_mem [SizeOf α] {s : Set α}\n (h : a ∈ s) :\n sizeOf a < sizeOf s\n:= by\n simp only [Membership.mem, elts] at h\n replace h := List.sizeOf_lt_of_mem h\n have _ : sizeOf s.1 < sizeOf s := by\n simp only [sizeOf, _sizeOf_1]\n omega\... | [
{
"name": "sizeOf_lt_of_find?",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 426,
"n_subproofs": 1,
"n_tactics": 10,
"cyclomatic": 3,
"n_automation": 4,
"n_rewrites": 1,
"n_structural": 0,
"automation_only": false,
"max_ne... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -40,7 +40,15 @@
public theorem sizeOf_lt_of_find? [SizeOf α] [SizeOf β] [DecidableEq α] {m : Map α β} {k : α} {v : β}
(h : m.find? k = some v) :
sizeOf v < sizeOf m
-:= sorry
+:= by
+ simp only [find?, toList] at h
+ split at h <;> simp only [Option.some.injEq, reduceCtorEq] at h
+ subst v
+ rename_i h
+ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_ed253905428e_0 | 6a1602e314521cae | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/SWF.lean | SWF | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 3 | [
{
"theorem_name": "swf_εnv_all_implies_wf_all",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwε x hin\n simp only [SymEnv.WellFormedFor, swf_εnv_implies_wf hwε.left, hwε.right x hin, and_self]",
... | [
{
"name": "swf_εnv_implies_wf",
"text": "theorem swf_εnv_implies_wf {εnv : SymEnv} :\n εnv.StronglyWellFormed → εnv.WellFormed\n:= by\n intro hwε\n simp only [SymEnv.WellFormed, hwε.left.left, hwε.right.left, and_self]\n\n",
"fan_in": 3,
"n_lines": 7,
"n_chars": 188,
"n_subproofs": 0,
... | [
{
"name": "swf_εnv_all_implies_wf_all",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 267,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,10 +27,18 @@
open Data Spec SymCC Factory
+theorem swf_εnv_implies_wf {εnv : SymEnv} :
+ εnv.StronglyWellFormed → εnv.WellFormed
+:= by
+ intro hwε
+ simp only [SymEnv.WellFormed, hwε.left.left, hwε.right.left, and_self]
+
theorem swf_εnv_all_implies_wf_all {εnv : SymEnv} {xs : List Expr} :
εnv.Stro... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_ed253905428e_1 | f0ea14dbcb7bd003 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/SWF.lean | SWF | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 3 | [
{
"theorem_name": "swf_εnv_all_implies_wf_all",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwε x hin\n simp only [SymEnv.WellFormedFor, swf_εnv_implies_wf hwε.left, hwε.right x hin, and_self]",
... | [
{
"name": "swf_εnv_implies_wf",
"text": "theorem swf_εnv_implies_wf {εnv : SymEnv} :\n εnv.StronglyWellFormed → εnv.WellFormed\n:= by\n intro hwε\n simp only [SymEnv.WellFormed, hwε.left.left, hwε.right.left, and_self]\n\n",
"fan_in": 3,
"n_lines": 7,
"n_chars": 188,
"n_subproofs": 0,
... | [
{
"name": "swf_εnv_for_implies_wf_for",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 204,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,10 +27,18 @@
open Data Spec SymCC Factory
+theorem swf_εnv_implies_wf {εnv : SymEnv} :
+ εnv.StronglyWellFormed → εnv.WellFormed
+:= by
+ intro hwε
+ simp only [SymEnv.WellFormed, hwε.left.left, hwε.right.left, and_self]
+
theorem swf_εnv_for_implies_wf_for {εnv : SymEnv} {x : Expr} :
εnv.StronglyWe... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_ed253905428e_2 | 9096bedb9a00c0b5 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/SWF.lean | SWF | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 3 | [
{
"theorem_name": "swf_env_all_implies_wf_all",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwe x hin\n simp only [Env.WellFormedFor, swf_env_implies_wf hwe.left, hwe.right x hin, and_self]",
"... | [
{
"name": "swf_env_implies_wf",
"text": "theorem swf_env_implies_wf {env : Env} :\n env.StronglyWellFormed → env.WellFormed\n:= by\n intro hwe\n simp only [Env.WellFormed, hwe.left, hwe.right.left, and_self]\n\n",
"fan_in": 3,
"n_lines": 7,
"n_chars": 170,
"n_subproofs": 0,
"n_tactic... | [
{
"name": "swf_env_all_implies_wf_all",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 253,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,10 +27,18 @@
open Data Spec SymCC Factory
+theorem swf_env_implies_wf {env : Env} :
+ env.StronglyWellFormed → env.WellFormed
+:= by
+ intro hwe
+ simp only [Env.WellFormed, hwe.left, hwe.right.left, and_self]
+
theorem swf_env_all_implies_wf_all {env : Env} {xs : List Expr} :
env.StronglyWellFormed... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_ed253905428e_3 | 5729bc6e99d93cf1 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/SWF.lean | SWF | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 3 | [
{
"theorem_name": "swf_env_all_implies_wf_all",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwe x hin\n simp only [Env.WellFormedFor, swf_env_implies_wf hwe.left, hwe.right x hin, and_self]",
"... | [
{
"name": "swf_env_implies_wf",
"text": "theorem swf_env_implies_wf {env : Env} :\n env.StronglyWellFormed → env.WellFormed\n:= by\n intro hwe\n simp only [Env.WellFormed, hwe.left, hwe.right.left, and_self]\n\n",
"fan_in": 3,
"n_lines": 7,
"n_chars": 170,
"n_subproofs": 0,
"n_tactic... | [
{
"name": "swf_env_for_implies_wf_for",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 193,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,10 +27,18 @@
open Data Spec SymCC Factory
+theorem swf_env_implies_wf {env : Env} :
+ env.StronglyWellFormed → env.WellFormed
+:= by
+ intro hwe
+ simp only [Env.WellFormed, hwe.left, hwe.right.left, and_self]
+
theorem swf_env_for_implies_wf_for {env : Env} {x : Expr} :
env.StronglyWellFormedFor x ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_ed253905428e_4 | a6f5a0683b7742fb | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/SWF.lean | SWF | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 1 | [
{
"theorem_name": "swf_εnv_for_policy_iff_swf_for_polices",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · intro ⟨hwε, hvr⟩\n constructor\n · exact hwε\n · simp only [List.map_cons,... | [
{
"name": "swf_εnv_all_implies_swf_all",
"text": "theorem swf_εnv_all_implies_swf_all {εnv : SymEnv} {xs : List Expr} :\n εnv.StronglyWellFormedForAll xs →\n ∀ x ∈ xs, εnv.StronglyWellFormedFor x\n:= by\n intro hwε x hin\n exact And.intro hwε.left (hwε.right x hin)\n\n",
"fan_in": 1,
"n_lines": ... | [
{
"name": "swf_εnv_for_policy_iff_swf_for_polices",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 505,
"n_subproofs": 0,
"n_tactics": 9,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 6,
"automation_only":... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,6 +27,13 @@
open Data Spec SymCC Factory
+theorem swf_εnv_all_implies_swf_all {εnv : SymEnv} {xs : List Expr} :
+ εnv.StronglyWellFormedForAll xs →
+ ∀ x ∈ xs, εnv.StronglyWellFormedFor x
+:= by
+ intro hwε x hin
+ exact And.intro hwε.left (hwε.right x hin)
+
theorem swf_εnv_for_policy_iff_swf_for_poli... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_ed253905428e_5 | db009e857f9b8a81 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/SWF.lean | SWF | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 1 | [
{
"theorem_name": "swf_env_for_policy_iff_swf_for_polices",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · intro ⟨hwe, hvr⟩\n constructor\n · exact hwe\n · simp only [List.map_cons,... | [
{
"name": "swf_env_all_implies_swf_all",
"text": "theorem swf_env_all_implies_swf_all {env : Env} {xs : List Expr} :\n env.StronglyWellFormedForAll xs →\n ∀ x ∈ xs, env.StronglyWellFormedFor x\n:= by\n intro hwe x hin\n exact And.intro hwe.left (hwe.right x hin)\n\n",
"fan_in": 1,
"n_lines": 8,
... | [
{
"name": "swf_env_for_policy_iff_swf_for_polices",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 493,
"n_subproofs": 0,
"n_tactics": 9,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 6,
"automation_only":... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,6 +27,13 @@
open Data Spec SymCC Factory
+theorem swf_env_all_implies_swf_all {env : Env} {xs : List Expr} :
+ env.StronglyWellFormedForAll xs →
+ ∀ x ∈ xs, env.StronglyWellFormedFor x
+:= by
+ intro hwe x hin
+ exact And.intro hwe.left (hwe.right x hin)
+
theorem swf_env_for_policy_iff_swf_for_polices... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_ed253905428e_6 | fcc7c209f6c6b115 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/SWF.lean | SWF | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 3 | [
{
"theorem_name": "swf_εnv_all_implies_wf_all",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwε x hin\n simp only [SymEnv.WellFormedFor, swf_εnv_implies_wf hwε.left, hwε.right x hin, and_self]",
... | [
{
"name": "swf_εnv_implies_wf",
"text": "theorem swf_εnv_implies_wf {εnv : SymEnv} :\n εnv.StronglyWellFormed → εnv.WellFormed\n:= by\n intro hwε\n simp only [SymEnv.WellFormed, hwε.left.left, hwε.right.left, and_self]\n\n",
"fan_in": 3,
"n_lines": 7,
"n_chars": 188,
"n_subproofs": 0,
... | [
{
"name": "swf_εnv_for_policies_implies_wf_for_policies",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 12,
"n_chars": 475,
"n_subproofs": 0,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 3,
"automation_... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,10 +27,22 @@
open Data Spec SymCC Factory
+theorem swf_εnv_implies_wf {εnv : SymEnv} :
+ εnv.StronglyWellFormed → εnv.WellFormed
+:= by
+ intro hwε
+ simp only [SymEnv.WellFormed, hwε.left.left, hwε.right.left, and_self]
+
theorem swf_εnv_for_policies_implies_wf_for_policies {εnv : SymEnv} {ps : Polici... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_ed253905428e_7 | 4b3426ed7a6f4bc8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/SWF.lean | SWF | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 3 | [
{
"theorem_name": "swf_env_all_implies_wf_all",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwe x hin\n simp only [Env.WellFormedFor, swf_env_implies_wf hwe.left, hwe.right x hin, and_self]",
"... | [
{
"name": "swf_env_implies_wf",
"text": "theorem swf_env_implies_wf {env : Env} :\n env.StronglyWellFormed → env.WellFormed\n:= by\n intro hwe\n simp only [Env.WellFormed, hwe.left, hwe.right.left, and_self]\n\n",
"fan_in": 3,
"n_lines": 7,
"n_chars": 170,
"n_subproofs": 0,
"n_tactic... | [
{
"name": "swf_env_for_policies_implies_wf_for_policies",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 12,
"n_chars": 454,
"n_subproofs": 0,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 3,
"automation_... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,10 +27,22 @@
open Data Spec SymCC Factory
+theorem swf_env_implies_wf {env : Env} :
+ env.StronglyWellFormed → env.WellFormed
+:= by
+ intro hwe
+ simp only [Env.WellFormed, hwe.left, hwe.right.left, and_self]
+
theorem swf_env_for_policies_implies_wf_for_policies {env : Env} {ps : Policies} :
env.S... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_67b08a83615c_0 | 1d8ecba5ce832709 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Levels/NoEntitiesError.lean | NoEntitiesError | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 3 | [
{
"theorem_name": "level_based_no_dne_if",
"depth": 1,
"n_commands": 0,
"n_lines": 24,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ⟨ tx₁, bty₁, c₁', tx₂, c₂, tx₃, c₃, htxeq, htx₁, hty₁, htx₂₃ ⟩ := type_of_ite_inversion htx\n have ⟨ hgc, v... | [
{
"name": "as_bool_ok_inv",
"text": "/--\nInversion for the boolean coercion: if `Result.as Bool r = .ok b`, then `r` was\nalready `.ok (.prim (.bool b))`. Lets the guard operators recover the underlying\nvalue (needed to fire `GuardedCapabilitiesInvariant`).\n-/\ntheorem as_bool_ok_inv {r : Result Value} ... | [
{
"name": "level_based_no_dne_if",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 36,
"n_chars": 1717,
"n_subproofs": 4,
"n_tactics": 24,
"cyclomatic": 4,
"n_automation": 7,
"n_rewrites": 4,
"n_structural": 4,
"automation_only": false,
"ma... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -130,6 +130,33 @@
cases p <;> simp [Result.as, Coe.coe, Value.asBool]
all_goals simp [Result.as, Coe.coe, Value.asBool]
+/--
+Inversion for the boolean coercion: if `Result.as Bool r = .ok b`, then `r` was
+already `.ok (.prim (.bool b))`. Lets the guard operators recover the underlying
+value (needed... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_67b08a83615c_1 | 4c9cbce59abfa46e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Levels/NoEntitiesError.lean | NoEntitiesError | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 2 | [
{
"theorem_name": "level_based_no_dne_and",
"depth": 1,
"n_commands": 0,
"n_lines": 32,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ⟨ tx₁, bty₁, c₁', htx₁, hty₁, ht ⟩ := type_of_and_inversion ht\n have ⟨ hgc, v₁, he₁, hv₁ ⟩ := type_of_is_... | [
{
"name": "map_bool_ne_dne",
"text": "/--\nThe boolean-guard operators coerce their final `Result Bool` back to\n`Result Value` via `(Value.prim ∘ Prim.bool) <$> ·`. That functor map never\nturns a non-`entityDoesNotExist` result into one.\n-/\ntheorem map_bool_ne_dne {r : Result Bool} (hr : r ≠ .error .en... | [
{
"name": "level_based_no_dne_and",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 3,
"n_lines": 43,
"n_chars": 1648,
"n_subproofs": 3,
"n_tactics": 34,
"cyclomatic": 9,
"n_automation": 5,
"n_rewrites": 6,
"n_structural": 9,
"automation_only": false,
"m... | 3 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -157,6 +157,16 @@
`.getTag` branch of `binary_app`.
-/
+/--
+The boolean-guard operators coerce their final `Result Bool` back to
+`Result Value` via `(Value.prim ∘ Prim.bool) <$> ·`. That functor map never
+turns a non-`entityDoesNotExist` result into one.
+-/
+theorem map_bool_ne_dne {r : Result Bool} (hr : r... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_67b08a83615c_2 | 7c3e06286f81dc76 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Levels/NoEntitiesError.lean | NoEntitiesError | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 2 | [
{
"theorem_name": "level_based_no_dne_and",
"depth": 1,
"n_commands": 0,
"n_lines": 32,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ⟨ tx₁, bty₁, c₁', htx₁, hty₁, ht ⟩ := type_of_and_inversion ht\n have ⟨ hgc, v₁, he₁, hv₁ ⟩ := type_of_is_... | [
{
"name": "map_bool_ne_dne",
"text": "/--\nThe boolean-guard operators coerce their final `Result Bool` back to\n`Result Value` via `(Value.prim ∘ Prim.bool) <$> ·`. That functor map never\nturns a non-`entityDoesNotExist` result into one.\n-/\ntheorem map_bool_ne_dne {r : Result Bool} (hr : r ≠ .error .en... | [
{
"name": "level_based_no_dne_or",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 3,
"n_lines": 42,
"n_chars": 1564,
"n_subproofs": 2,
"n_tactics": 33,
"cyclomatic": 9,
"n_automation": 5,
"n_rewrites": 6,
"n_structural": 9,
"automation_only": false,
"ma... | 3 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -157,6 +157,16 @@
`.getTag` branch of `binary_app`.
-/
+/--
+The boolean-guard operators coerce their final `Result Bool` back to
+`Result Value` via `(Value.prim ∘ Prim.bool) <$> ·`. That functor map never
+turns a non-`entityDoesNotExist` result into one.
+-/
+theorem map_bool_ne_dne {r : Result Bool} (hr : r... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_67b08a83615c_4 | 587814c7f1512b2c | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Levels/NoEntitiesError.lean | NoEntitiesError | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 1 | [
{
"theorem_name": "level_based_no_dne_binary_app",
"depth": 1,
"n_commands": 0,
"n_lines": 40,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ⟨ tx₁, c₁', tx₂, c₂', htx₁, htx₂, ty, htxeq ⟩ := type_of_binaryApp_inversion ht\n subst htxeq\n si... | [
{
"name": "apply₂_ne_dne_of_not_getTag",
"text": "theorem apply₂_ne_dne_of_not_getTag {op : BinaryOp} (hop : op ≠ .getTag) (v₁ v₂ : Value) (es : Entities) :\n apply₂ op v₁ v₂ es ≠ .error .entityDoesNotExist\n:= by\n cases op\n case getTag => exact absurd rfl hop\n all_goals\n unfold apply₂\n split... | [
{
"name": "level_based_no_dne_binary_app",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 51,
"n_chars": 2549,
"n_subproofs": 2,
"n_tactics": 48,
"cyclomatic": 15,
"n_automation": 9,
"n_rewrites": 1,
"n_structural": 26,
"automation_only": fals... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -140,6 +140,21 @@
operators.
-/
+theorem apply₂_ne_dne_of_not_getTag {op : BinaryOp} (hop : op ≠ .getTag) (v₁ v₂ : Value) (es : Entities) :
+ apply₂ op v₁ v₂ es ≠ .error .entityDoesNotExist
+:= by
+ cases op
+ case getTag => exact absurd rfl hop
+ all_goals
+ unfold apply₂
+ split <;>
+ first
+ |... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_67b08a83615c_5 | 99f4598dc883b75f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Levels/NoEntitiesError.lean | NoEntitiesError | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 2 | [
{
"theorem_name": "level_based_no_dne_binary_app",
"depth": 1,
"n_commands": 0,
"n_lines": 40,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ⟨ tx₁, c₁', tx₂, c₂', htx₁, htx₂, ty, htxeq ⟩ := type_of_binaryApp_inversion ht\n subst htxeq\n si... | [
{
"name": "checked_eval_entity_exists",
"text": "/--\nKEY LEMMA (the crux of #642). If a level-checked, well-typed entity-access\nexpression evaluates to (a value yielding, via `path`) `euid`, and the store is\nclosed at level `n + 1`, then `euid` is present in the store.\n\n`checked_eval_entity_reachable`... | [
{
"name": "level_based_no_dne_get_attr_entity",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 40,
"n_chars": 1893,
"n_subproofs": 4,
"n_tactics": 22,
"cyclomatic": 5,
"n_automation": 5,
"n_rewrites": 3,
"n_structural": 5,
"automation_only": f... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -112,6 +112,35 @@
/-! ## The crux: a reachable, level-checked entity exists -/
/--
+KEY LEMMA (the crux of #642). If a level-checked, well-typed entity-access
+expression evaluates to (a value yielding, via `path`) `euid`, and the store is
+closed at level `n + 1`, then `euid` is present in the store.
+
+`check... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_67b08a83615c_6 | 9e6a3fc4adbefb4b | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Levels/NoEntitiesError.lean | NoEntitiesError | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 1 | [
{
"theorem_name": "level_based_no_dne_get_attr",
"depth": 1,
"n_commands": 0,
"n_lines": 10,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨ _, tx₁, c₁', ht', h₅, h₆ ⟩ := type_of_getAttr_inversion ht\n rw [h₅] at hl\n cases h₆\n case inl het... | [
{
"name": "level_based_no_dne_get_attr_record",
"text": "/--\nRecord branch. No entity is dereferenced, so the outer lookup is a record\nprojection (`attrDoesNotExist` at worst). Only the inner expression `e` could\nDNE, and the IH rules that out.\n-/\ntheorem level_based_no_dne_get_attr_record {e : Expr}... | [
{
"name": "level_based_no_dne_get_attr",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 25,
"n_chars": 1109,
"n_subproofs": 3,
"n_tactics": 10,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 5,
"automation_only": false,
... | 3 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -180,6 +180,38 @@
split <;> simp
/--
+Record branch. No entity is dereferenced, so the outer lookup is a record
+projection (`attrDoesNotExist` at worst). Only the inner expression `e` could
+DNE, and the IH rules that out.
+-/
+theorem level_based_no_dne_get_attr_record {e : Expr} {tx₁ : TypedExpr} {ty : ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_67b08a83615c_7 | 922312bab4ff5872 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Levels/NoEntitiesError.lean | NoEntitiesError | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 1 | [
{
"theorem_name": "level_based_no_dne_has_attr",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨ _, tx₁, c₁', ht', h₅, _ ⟩ := type_of_hasAttr_inversion ht\n rw [h₅] at hl\n simp only [evaluate]\n re... | [
{
"name": "has_attr_value_ne_dne",
"text": "/--\n`hasAttr` reads attributes via the infallible `attrsOrEmpty` lookup, so it never\nproduces `entityDoesNotExist` (at worst `typeError` for a non-record/entity\nreceiver).\n-/\ntheorem has_attr_value_ne_dne (v : Value) (a : Attr) (es : Entities) :\n hasAttr v ... | [
{
"name": "level_based_no_dne_has_attr",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 19,
"n_chars": 837,
"n_subproofs": 1,
"n_tactics": 9,
"cyclomatic": 2,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 4,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -111,6 +111,19 @@
/-! ## The crux: a reachable, level-checked entity exists -/
+/--
+`hasAttr` reads attributes via the infallible `attrsOrEmpty` lookup, so it never
+produces `entityDoesNotExist` (at worst `typeError` for a non-record/entity
+receiver).
+-/
+theorem has_attr_value_ne_dne (v : Value) (a : Attr)... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_67b08a83615c_8 | 2d4a1abfa8f55cdd | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Levels/NoEntitiesError.lean | NoEntitiesError | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 1 | [
{
"theorem_name": "level_based_no_dne_expr",
"depth": 1,
"n_commands": 0,
"n_lines": 59,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases e\n case lit => simp [evaluate]\n case var v => cases v <;> simp [evaluate]\n case ite x₁ x₂ x₃ =>\n h... | [
{
"name": "level_based_no_dne_has_attr",
"text": "theorem level_based_no_dne_has_attr {e : Expr} {a : Attr} {n : Nat} {c₀ c₁ : Capabilities} {env : TypeEnv} {request : Request} {entities : Entities}\n (hc : CapabilitiesInvariant c₀ request entities)\n (hr : InstanceOfWellFormedEnvironment request entities... | [
{
"name": "level_based_no_dne_expr",
"fan_in": 1,
"n_deps_direct": 10,
"n_deps_transitive": 19,
"n_lines": 76,
"n_chars": 3086,
"n_subproofs": 21,
"n_tactics": 60,
"cyclomatic": 4,
"n_automation": 8,
"n_rewrites": 1,
"n_structural": 18,
"automation_only": false,
... | 19 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -524,6 +524,24 @@
obtain ⟨ rty, hrty ⟩ := hrty
exact level_based_no_dne_get_attr_record hc hr hcl hl ht' hrty ihe
+theorem level_based_no_dne_has_attr {e : Expr} {a : Attr} {n : Nat} {c₀ c₁ : Capabilities} {env : TypeEnv} {request : Request} {entities : Entities}
+ (hc : CapabilitiesInvariant c₀ request... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_67b08a83615c_9 | 681ac105cbc6a329 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Levels/NoEntitiesError.lean | NoEntitiesError | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 1 | [
{
"theorem_name": "level_based_no_dne_expr",
"depth": 1,
"n_commands": 0,
"n_lines": 59,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases e\n case lit => simp [evaluate]\n case var v => cases v <;> simp [evaluate]\n case ite x₁ x₂ x₃ =>\n h... | [
{
"name": "level_based_no_dne_set",
"text": "theorem level_based_no_dne_set {xs : List Expr} {n : Nat} {c₀ c₁ : Capabilities} {env : TypeEnv} {request : Request} {entities : Entities}\n (hc : CapabilitiesInvariant c₀ request entities)\n (hr : InstanceOfWellFormedEnvironment request entities env)\n (hcl :... | [
{
"name": "typecheck_policy_with_level_no_dne",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 20,
"n_lines": 19,
"n_chars": 1007,
"n_subproofs": 1,
"n_tactics": 15,
"cyclomatic": 8,
"n_automation": 3,
"n_rewrites": 3,
"n_structural": 2,
"automation_only": ... | 20 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -542,6 +542,26 @@
· exact entity_access_at_level_then_at_level (by assumption)
· assumption
+theorem level_based_no_dne_set {xs : List Expr} {n : Nat} {c₀ c₁ : Capabilities} {env : TypeEnv} {request : Request} {entities : Entities}
+ (hc : CapabilitiesInvariant c₀ request entities)
+ (hr : InstanceOfWellFo... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_94da23c3ac81_0 | 0873af7572ec67c3 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Verification.lean | Verification | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 1 | [
{
"theorem_name": "verifyAlwaysMatches_is_sound'",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂ h₃ env h₄ h₅\n have := verifyAlwaysMatches_is_sound h₁ h₂ h₃ env h₄ h₅\n simp only [Spec.isAuth... | [
{
"name": "verifyAlwaysMatches_is_sound",
"text": "/--\nThe `verifyAlwaysMatches` analysis is sound: if the assertions\n`verifyAlwaysMatches p εnv` are unsatisfiable for the policy `p` and the\nstrongly well-formed symbolic environment `εnv`, then the evaluator will return\n`.ok true` when applied to `p` an... | [
{
"name": "verifyAlwaysMatches_is_sound'",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 23,
"n_chars": 988,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -37,6 +37,27 @@
open Spec SymCC
/--
+The `verifyAlwaysMatches` analysis is sound: if the assertions
+`verifyAlwaysMatches p εnv` are unsatisfiable for the policy `p` and the
+strongly well-formed symbolic environment `εnv`, then the evaluator will return
+`.ok true` when applied to `p` and any strongly well-form... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_94da23c3ac81_1 | 98b0ee65e0b44eb7 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Verification.lean | Verification | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 1 | [
{
"theorem_name": "verifyAlwaysMatches_is_complete'",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂ h₃\n have ⟨env, h₄, h₅, h₆, h₇⟩ := verifyAlwaysMatches_is_complete h₁ h₂ h₃\n exists env\n ... | [
{
"name": "verifyAlwaysMatches_is_complete",
"text": "/--\nThe `verifyAlwaysMatches` analysis is complete: if the assertions\n`verifyAlwaysMatches p εnv` are satisfiable for the policy `p` and the\nstrongly well-formed symbolic environment `εnv`, then there exists a\nstrongly well-formed concrete environmen... | [
{
"name": "verifyAlwaysMatches_is_complete'",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 29,
"n_chars": 1184,
"n_subproofs": 1,
"n_tactics": 12,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 6,
"automation_only": fal... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -37,6 +37,30 @@
open Spec SymCC
/--
+The `verifyAlwaysMatches` analysis is complete: if the assertions
+`verifyAlwaysMatches p εnv` are satisfiable for the policy `p` and the
+strongly well-formed symbolic environment `εnv`, then there exists a
+strongly well-formed concrete environment `env ∈ᵢ εnv` such that th... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_94da23c3ac81_2 | f38f37606f120b7e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Verification.lean | Verification | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 4 | 1 | [
{
"theorem_name": "verifyNeverMatches_is_sound'",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂ h₃ env h₄ h₅\n have := verifyNeverMatches_is_sound h₁ h₂ h₃ env h₄ h₅\n simp only [Spec.isAuthor... | [
{
"name": "verifyNeverMatches_is_sound",
"text": "/--\nThe `verifyNeverMatches` analysis is sound: if the assertions\n`verifyNeverMatches p εnv` are unsatisfiable for the policy `p` and the\nstrongly well-formed symbolic environment `εnv`, then the evaluator will never\nreturn `.ok true` when applied to `p`... | [
{
"name": "verifyNeverMatches_is_sound'",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 23,
"n_chars": 1017,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -37,6 +37,27 @@
open Spec SymCC
/--
+The `verifyNeverMatches` analysis is sound: if the assertions
+`verifyNeverMatches p εnv` are unsatisfiable for the policy `p` and the
+strongly well-formed symbolic environment `εnv`, then the evaluator will never
+return `.ok true` when applied to `p` and any strongly well-... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.