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_a20fa9834664_5 | 9829bb032037895c | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Record.lean | Record | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 11 | 1 | [
{
"theorem_name": "type_of_record_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 16,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨h₆, rty, h₄, h₅⟩ := type_of_record_inversion h₃\n subst h₆ h₄\n apply And.intro empty_guarded_capabilities... | [
{
"name": "type_of_record_is_sound_ok",
"text": "theorem type_of_record_is_sound_ok {axs : List (Attr × Expr)} {c₁ : Capabilities} {env : TypeEnv} {request : Request} {entities : Entities} {rtx : List (Attr × TypedExpr)} {avs : List (Attr × Value)}\n (ih : ∀ (axᵢ : Attr × Expr), axᵢ ∈ axs → TypeOfIsSound a... | [
{
"name": "type_of_record_is_sound",
"fan_in": 0,
"n_deps_direct": 3,
"n_deps_transitive": 10,
"n_lines": 26,
"n_chars": 1267,
"n_subproofs": 1,
"n_tactics": 17,
"cyclomatic": 3,
"n_automation": 4,
"n_rewrites": 2,
"n_structural": 4,
"automation_only": false,
... | 10 | /-
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... | @@ -203,6 +203,21 @@
intro ax h₉ ; apply ih ; simp [h₉]
}
+theorem type_of_record_is_sound_ok {axs : List (Attr × Expr)} {c₁ : Capabilities} {env : TypeEnv} {request : Request} {entities : Entities} {rtx : List (Attr × TypedExpr)} {avs : List (Attr × Value)}
+ (ih : ∀ (axᵢ : Attr × Expr), axᵢ ∈ axs → Typ... | {
"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_71e5ad95bf7b_0 | 720390f7a3979cbe | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Types.lean | Types | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "instance_of_anyBool_is_bool",
"depth": 1,
"n_commands": 0,
"n_lines": 1,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " instance_of_bool_is_bool",
"n_chars": 25,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_a... | [
{
"name": "instance_of_bool_is_bool",
"text": "theorem instance_of_bool_is_bool {env : TypeEnv} {v₁ : Value} {bty : BoolType} :\n InstanceOfType env v₁ (CedarType.bool bty) →\n ∃ b, v₁ = .prim (.bool b)\n:= by\n intro h₁\n rcases h₁ with ⟨b, _, _⟩\n exists b\n\n",
"fan_in": 1,
"n_lines": 9,
... | [
{
"name": "instance_of_anyBool_is_bool",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 194,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 0,
"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... | @@ -143,10 +143,18 @@
----- Theorems -----
+theorem instance_of_bool_is_bool {env : TypeEnv} {v₁ : Value} {bty : BoolType} :
+ InstanceOfType env v₁ (CedarType.bool bty) →
+ ∃ b, v₁ = .prim (.bool b)
+:= by
+ intro h₁
+ rcases h₁ with ⟨b, _, _⟩
+ exists b
+
theorem instance_of_anyBool_is_bool {env : TypeEnv}... | {
"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_71e5ad95bf7b_1 | 5b4be8e002dd179b | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Types.lean | Types | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "type_is_inhabited_bool",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨v, h⟩ := bool_type_is_inhabited bty\n exists v\n exact InstanceOfType.instance_of_bool _ _ h",
"n_chars"... | [
{
"name": "bool_type_is_inhabited",
"text": "theorem bool_type_is_inhabited (bty : BoolType) :\n ∃ b, InstanceOfBoolType b bty\n:= by\n simp [InstanceOfBoolType]\n cases bty\n case tt => simp only [or_true]\n case ff => simp only [or_false]\n case anyBool => simp only [or_self]\n\n",
"fan_in": 1,
... | [
{
"name": "type_is_inhabited_bool",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 220,
"n_subproofs": 1,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"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... | @@ -143,9 +143,21 @@
----- Theorems -----
+theorem bool_type_is_inhabited (bty : BoolType) :
+ ∃ b, InstanceOfBoolType b bty
+:= by
+ simp [InstanceOfBoolType]
+ cases bty
+ case tt => simp only [or_true]
+ case ff => simp only [or_false]
+ case anyBool => simp only [or_self]
+
theorem type_is_inhabited_boo... | {
"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_71e5ad95bf7b_2 | 4c2643f8794aeb22 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Types.lean | Types | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "type_is_inhabited_entity",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf_env hwf\n cases hwf with | entity_wf hwf_ety =>\n have ⟨euid, h₁⟩ := entity_type_is_inhabited hwf_env ... | [
{
"name": "entity_type_is_inhabited",
"text": "theorem entity_type_is_inhabited {env : TypeEnv} {ety : EntityType}\n (hwf_env : env.WellFormed)\n (hwf : EntityType.WellFormed env ety) :\n ∃ euid, InstanceOfEntityType euid ety env\n:= by\n cases hwf\n -- Non-action entity\n case inl hwf_ets =>\n sim... | [
{
"name": "type_is_inhabited_entity",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 11,
"n_chars": 399,
"n_subproofs": 1,
"n_tactics": 6,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": false,
"m... | 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... | @@ -143,10 +143,59 @@
----- Theorems -----
+theorem entity_type_is_inhabited {env : TypeEnv} {ety : EntityType}
+ (hwf_env : env.WellFormed)
+ (hwf : EntityType.WellFormed env ety) :
+ ∃ euid, InstanceOfEntityType euid ety env
+:= by
+ cases hwf
+ -- Non-action entity
+ case inl hwf_ets =>
+ simp only [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_71e5ad95bf7b_3 | cee6a1f837114fc0 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Types.lean | Types | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "type_is_inhabited_ext",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨x, h₁⟩ := ext_type_is_inhabited xty\n exists (.ext x)\n apply InstanceOfType.instance_of_ext _ _ h₁",
"n_... | [
{
"name": "ext_type_is_inhabited",
"text": "theorem ext_type_is_inhabited (xty : ExtType) :\n ∃ x, InstanceOfExtType x xty\n:= by\n simp [InstanceOfExtType]\n cases xty\n case ipAddr => exists (Ext.ipaddr (default : IPAddr))\n case decimal => exists (Ext.decimal (default : Ext.Decimal))\n case dateti... | [
{
"name": "type_is_inhabited_ext",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 228,
"n_subproofs": 1,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 3,
"automation_only": false,
"max_n... | 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... | @@ -143,9 +143,22 @@
----- Theorems -----
+theorem ext_type_is_inhabited (xty : ExtType) :
+ ∃ x, InstanceOfExtType x xty
+:= by
+ simp [InstanceOfExtType]
+ cases xty
+ case ipAddr => exists (Ext.ipaddr (default : IPAddr))
+ case decimal => exists (Ext.decimal (default : Ext.Decimal))
+ case datetime => ex... | {
"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_71e5ad95bf7b_4 | 26da99faf298f235 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Types.lean | Types | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "type_is_inhabited_record",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases rty\n case nil =>\n exists (.record (Map.mk []))\n exact instance_of_record_nil\n case cons hd tl =... | [
{
"name": "instance_of_record_cons",
"text": "theorem instance_of_record_cons {env : TypeEnv} {hd : Attr × Qualified CedarType} {tl : List (Attr × Qualified CedarType)} {rhd : Value} {rtl : List (Attr × Value)}\n (h₁ : InstanceOfType env rhd (Qualified.getType hd.snd))\n (h₂ : InstanceOfType env (Value.re... | [
{
"name": "type_is_inhabited_record",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 3,
"n_lines": 20,
"n_chars": 871,
"n_subproofs": 4,
"n_tactics": 16,
"cyclomatic": 3,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 6,
"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... | @@ -158,11 +158,57 @@
apply InstanceOfType.instance_of_record <;>
simp [Map.contains, Map.find?]
+theorem instance_of_record_cons {env : TypeEnv} {hd : Attr × Qualified CedarType} {tl : List (Attr × Qualified CedarType)} {rhd : Value} {rtl : List (Attr × Value)}
+ (h₁ : InstanceOfType env rhd (Qualified.getTyp... | {
"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_71e5ad95bf7b_5 | 92ad4001bbc2f1f8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Types.lean | Types | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "type_is_inhabited",
"depth": 1,
"n_commands": 0,
"n_lines": 24,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n match ty with\n | .bool bty =>\n exact type_is_inhabited_bool\n | .int =>\n exact type_is_inhabited_int\n | .st... | [
{
"name": "type_is_inhabited_set",
"text": "theorem type_is_inhabited_set {env : TypeEnv} {ty : CedarType} :\n ∃ v, InstanceOfType env v (.set ty)\n:= by\n exists (.set Set.empty)\n apply InstanceOfType.instance_of_set\n exact (False.elim $ Set.not_mem_empty · ·)\n\n",
"fan_in": 1,
"n_lines": 8,... | [
{
"name": "type_is_inhabited",
"fan_in": 0,
"n_deps_direct": 8,
"n_deps_transitive": 14,
"n_lines": 30,
"n_chars": 989,
"n_subproofs": 3,
"n_tactics": 24,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 11,
"automation_only": false,
"max_n... | 14 | /-
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... | @@ -297,6 +297,13 @@
exists (.prim (.entityUID euid))
exact InstanceOfType.instance_of_entity _ _ h₁
+theorem type_is_inhabited_set {env : TypeEnv} {ty : CedarType} :
+ ∃ v, InstanceOfType env v (.set ty)
+:= by
+ exists (.set Set.empty)
+ apply InstanceOfType.instance_of_set
+ exact (False.elim $ Set.not_m... | {
"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_71e5ad95bf7b_6 | 64e856d6c4fb03d2 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Types.lean | Types | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "instance_of_lubBool_left",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ ; cases h₁\n simp [lubBool]\n split <;> rename_i b h₁ h₂\n · subst h₂\n apply InstanceOfType.instan... | [
{
"name": "bool_is_instance_of_anyBool",
"text": "theorem bool_is_instance_of_anyBool {env : TypeEnv} (b : Bool) :\n InstanceOfType env (Value.prim (Prim.bool b)) (CedarType.bool BoolType.anyBool)\n:= by\n apply InstanceOfType.instance_of_bool\n simp [InstanceOfBoolType]\n\n",
"fan_in": 1,
"n_lin... | [
{
"name": "instance_of_lubBool_left",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 12,
"n_chars": 401,
"n_subproofs": 0,
"n_tactics": 9,
"cyclomatic": 4,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 4,
"automation_only": false,
"m... | 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... | @@ -143,6 +143,12 @@
----- Theorems -----
+theorem bool_is_instance_of_anyBool {env : TypeEnv} (b : Bool) :
+ InstanceOfType env (Value.prim (Prim.bool b)) (CedarType.bool BoolType.anyBool)
+:= by
+ apply InstanceOfType.instance_of_bool
+ simp [InstanceOfBoolType]
+
theorem instance_of_lubBool_left {env : Type... | {
"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_71e5ad95bf7b_7 | a6ceb57580362c3b | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Types.lean | Types | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 2 | [
{
"theorem_name": "instance_of_lubBool",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ ; cases h₁ <;> rename_i h₂\n · exact instance_of_lubBool_left h₂\n · rw [lubBool_comm]\n exact instance_o... | [
{
"name": "instance_of_lubBool_left",
"text": "theorem instance_of_lubBool_left {env : TypeEnv} {v : Value} {bty₁ bty₂ : BoolType} :\n InstanceOfType env v (CedarType.bool bty₁) →\n InstanceOfType env v (CedarType.bool (lubBool bty₁ bty₂))\n:= by\n intro h₁ ; cases h₁\n simp [lubBool]\n split <;> renam... | [
{
"name": "instance_of_lubBool",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 10,
"n_chars": 406,
"n_subproofs": 0,
"n_tactics": 7,
"cyclomatic": 3,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 4,
"automation_only": false,
"max_ne... | 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... | @@ -149,13 +149,25 @@
apply InstanceOfType.instance_of_bool
simp [InstanceOfBoolType]
+theorem instance_of_lubBool_left {env : TypeEnv} {v : Value} {bty₁ bty₂ : BoolType} :
+ InstanceOfType env v (CedarType.bool bty₁) →
+ InstanceOfType env v (CedarType.bool (lubBool bty₁ bty₂))
+:= by
+ intro 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_71e5ad95bf7b_8 | 9c657f0f5f61d9e3 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Types.lean | Types | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "instance_of_lub_left",
"depth": 1,
"n_commands": 0,
"n_lines": 50,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold lub? at h₁\n -- Generalizing here lets us retain hypotheses of the form ty₁ = CedarType.set\n -- s₁ after th... | [
{
"name": "sizeOf_attr_type_lt_sizeOf_record_type",
"text": "theorem sizeOf_attr_type_lt_sizeOf_record_type {a : Attr} {qty : QualifiedType } {rty : List (Attr × Qualified CedarType) }\n (h₁ : CedarType.record (Map.mk rty) = ty)\n (h₂ : Map.find? (Map.mk rty) a = .some qty) :\n sizeOf qty.getType < sizeO... | [
{
"name": "instance_of_lub_left",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 56,
"n_chars": 2091,
"n_subproofs": 5,
"n_tactics": 56,
"cyclomatic": 10,
"n_automation": 9,
"n_rewrites": 5,
"n_structural": 19,
"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... | @@ -160,6 +160,33 @@
apply InstanceOfType.instance_of_bool b bty₁ h₁
· exact bool_is_instance_of_anyBool b
+theorem sizeOf_attr_type_lt_sizeOf_record_type {a : Attr} {qty : QualifiedType } {rty : List (Attr × Qualified CedarType) }
+ (h₁ : CedarType.record (Map.mk rty) = ty)
+ (h₂ : Map.find? (Map.mk rty) a... | {
"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_71e5ad95bf7b_9 | 822275178d71898c | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Types.lean | Types | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 19 | 1 | [
{
"theorem_name": "instance_of_lub_left",
"depth": 1,
"n_commands": 0,
"n_lines": 50,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold lub? at h₁\n -- Generalizing here lets us retain hypotheses of the form ty₁ = CedarType.set\n -- s₁ after th... | [
{
"name": "sizeOf_attr_type_lt_sizeOf_record_type",
"text": "theorem sizeOf_attr_type_lt_sizeOf_record_type {a : Attr} {qty : QualifiedType } {rty : List (Attr × Qualified CedarType) }\n (h₁ : CedarType.record (Map.mk rty) = ty)\n (h₂ : Map.find? (Map.mk rty) a = .some qty) :\n sizeOf qty.getType < sizeO... | [
{
"name": "instance_of_lub",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 11,
"n_chars": 366,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 3,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 3,
"automation_only": false,
"max_nestin... | 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... | @@ -160,6 +160,33 @@
apply InstanceOfType.instance_of_bool b bty₁ h₁
· exact bool_is_instance_of_anyBool b
+theorem sizeOf_attr_type_lt_sizeOf_record_type {a : Attr} {qty : QualifiedType } {rty : List (Attr × Qualified CedarType) }
+ (h₁ : CedarType.record (Map.mk rty) = ty)
+ (h₂ : Map.find? (Map.mk rty) a... | {
"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_ea503f78a10c_0 | 294995718f4f5763 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/LT.lean | LT | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "TermType.lt_trans",
"depth": 1,
"n_commands": 0,
"n_lines": 23,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [LT.lt]\n intro h₁ h₂\n by_contra h₃\n cases a <;> cases b <;> cases c\n any_goals (simp_decide_lt h₁ Term... | [
{
"name": "sizeOf_list_lt_sizeOf_map",
"text": "theorem sizeOf_list_lt_sizeOf_map [SizeOf α] [SizeOf β] {m : Map α β} :\n sizeOf m.1 < 1 + sizeOf m\n:= by\n simp only [sizeOf, Map._sizeOf_1]\n generalize h : List._sizeOf_1 m.1 = i\n omega\n\n",
"fan_in": 1,
"n_lines": 8,
"n_chars": 195,
... | [
{
"name": "TermType.lt_trans",
"fan_in": 14,
"n_deps_direct": 3,
"n_deps_transitive": 4,
"n_lines": 28,
"n_chars": 855,
"n_subproofs": 4,
"n_tactics": 25,
"cyclomatic": 6,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 5,
"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... | @@ -46,6 +46,13 @@
----- General helper lemmas -----
+theorem sizeOf_list_lt_sizeOf_map [SizeOf α] [SizeOf β] {m : Map α β} :
+ sizeOf m.1 < 1 + sizeOf m
+:= by
+ simp only [sizeOf, Map._sizeOf_1]
+ generalize h : List._sizeOf_1 m.1 = i
+ omega
+
theorem lt_trans_irrefl_implies_asymm {α} [LT α] {a b : α} :
... | {
"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_ea503f78a10c_1 | da1f1744f5232790 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/LT.lean | LT | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "Op.lt_trans_mkName_lt",
"depth": 1,
"n_commands": 0,
"n_lines": 21,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [Op.lt] at h₂\n split at h₂ <;> simp only [decide_eq_true_eq] at h₂\n case h_1 =>\n simp only [Op.uuf... | [
{
"name": "Op.lt_trans_zero_extend'",
"text": "private theorem Op.lt_trans_zero_extend' {nb nc: Nat} {a : Op} :\n (Op.mkName a < Op.mkName (Op.zero_extend nb)) →\n (∀ (na : Nat), a = Op.zero_extend na → False) →\n Op.lt a (Op.zero_extend nc) = true\n:= by simp_op_lt_trans_parametric' a Op.zero_extend.inj... | [
{
"name": "Op.lt_trans_mkName_lt",
"fan_in": 1,
"n_deps_direct": 6,
"n_deps_transitive": 6,
"n_lines": 32,
"n_chars": 1430,
"n_subproofs": 1,
"n_tactics": 22,
"cyclomatic": 3,
"n_automation": 7,
"n_rewrites": 0,
"n_structural": 6,
"automation_only": false,
"ma... | 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... | @@ -500,6 +500,12 @@
Op.lt a (Op.uuf fc) = true
:= by simp_op_lt_trans_parametric' a Op.uuf.injEq
+private theorem Op.lt_trans_zero_extend' {nb nc: Nat} {a : Op} :
+ (Op.mkName a < Op.mkName (Op.zero_extend nb)) →
+ (∀ (na : Nat), a = Op.zero_extend na → False) →
+ Op.lt a (Op.zero_extend nc) = true
+:= by sim... | {
"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_ea503f78a10c_2 | 3573dd370026b550 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/LT.lean | LT | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "Op.lt_trans",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [LT.lt]\n intro h₁ h₂\n simp only [Op.lt] at h₁\n split at h₁ <;> simp only [decide_eq_true_eq] at h₁\n case h_1... | [
{
"name": "Op.lt_trans_record_get",
"text": "private theorem Op.lt_trans_record_get {a₁ a₂ : Attr} {c : Op} :\n a₁ < a₂ → Op.lt (Op.record.get a₂) c = true → Op.lt (Op.record.get a₁) c = true\n:= by simp_lt_trans Op.lt Op.mkName c String.strictLT.transitive\n\n",
"fan_in": 1,
"n_lines": 5,
"n_... | [
{
"name": "Op.lt_trans",
"fan_in": 15,
"n_deps_direct": 6,
"n_deps_transitive": 18,
"n_lines": 15,
"n_chars": 549,
"n_subproofs": 0,
"n_tactics": 12,
"cyclomatic": 3,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 7,
"automation_only": false,
"max_nesting... | 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... | @@ -470,6 +470,10 @@
n₁ < n₂ → Op.lt (Op.zero_extend n₂) c = true → Op.lt (Op.zero_extend n₁) c = true
:= by simp_lt_trans Op.lt Op.mkName c Nat.strictLT.transitive
+private theorem Op.lt_trans_record_get {a₁ a₂ : Attr} {c : Op} :
+ a₁ < a₂ → Op.lt (Op.record.get a₂) c = true → Op.lt (Op.record.get a₁) c = tru... | {
"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_ea503f78a10c_3 | 9d2a2aad5727b6e5 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/LT.lean | LT | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "Op.lt_conn",
"depth": 1,
"n_commands": 0,
"n_lines": 25,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [ne_eq, LT.lt] -- Must use 2 simps here to avoid\n simp only [Op.lt] -- oversimplification of LT.lt.\n intro... | [
{
"name": "Op.mkName.neq",
"text": "private theorem Op.mkName.neq {a b: Op}\n (h₀ : ¬a = b)\n (h₁ : ∀ (f₁ f₂ : UUF), a = Op.uuf f₁ → b = Op.uuf f₂ → False)\n (h₂ : ∀ (n₁ n₂ : Nat), a = Op.zero_extend n₁ → b = Op.zero_extend n₂ → False)\n (h₃ : ∀ (a₁ a₂ : Attr), a = Op.record.get a₁ → b = Op.record.get a... | [
{
"name": "Op.lt_conn",
"fan_in": 9,
"n_deps_direct": 3,
"n_deps_transitive": 6,
"n_lines": 29,
"n_chars": 1156,
"n_subproofs": 0,
"n_tactics": 31,
"cyclomatic": 4,
"n_automation": 18,
"n_rewrites": 0,
"n_structural": 12,
"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... | @@ -585,9 +585,54 @@
simp only [$inj:ident, forall_apply_eq_imp_iff, forall_eq'] at $h:ident
))
+private theorem Op.mkName.neq {a b: Op}
+ (h₀ : ¬a = b)
+ (h₁ : ∀ (f₁ f₂ : UUF), a = Op.uuf f₁ → b = Op.uuf f₂ → False)
+ (h₂ : ∀ (n₁ n₂ : Nat), a = Op.zero_extend n₁ → b = Op.zero_extend n₂ → False)
+ (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_ea503f78a10c_4 | 3f5fd9f9e63c673d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/LT.lean | LT | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "Term.lt_irrefl",
"depth": 1,
"n_commands": 0,
"n_lines": 21,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases a <;>\n simp only [Term.lt, decide_eq_true_eq, Bool.not_eq_true, decide_true, Bool.true_and, Bool.and_self, Bool.or_... | [
{
"name": "Term.ltList_irrefl",
"text": "theorem Term.ltList_irrefl (ts : List Term) :\n ¬ Term.ltList ts ts\n:= by\n cases ts\n simp only [Term.ltList, Bool.false_eq_true, not_false_eq_true]\n rename_i hd tl\n simp only [Term.ltList, decide_true, Bool.true_and, Bool.or_eq_true]\n by_contra h₁\n rcas... | [
{
"name": "Term.lt_irrefl",
"fan_in": 9,
"n_deps_direct": 4,
"n_deps_transitive": 7,
"n_lines": 26,
"n_chars": 823,
"n_subproofs": 0,
"n_tactics": 24,
"cyclomatic": 5,
"n_automation": 7,
"n_rewrites": 2,
"n_structural": 4,
"automation_only": false,
"max_nestin... | 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... | @@ -778,8 +778,44 @@
mutual
theorem Term.lt_irrefl (a : Term) :
¬ Term.lt a a
-:= sorry
+:= by
+ cases a <;>
+ simp only [Term.lt, decide_eq_true_eq, Bool.not_eq_true, decide_true, Bool.true_and, Bool.and_self, Bool.or_eq_true]
+ case prim | var | none =>
+ apply StrictLT.irreflexive
+ case some t =>
+ 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_ea503f78a10c_5 | 6ccbd006ad033344 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/LT.lean | LT | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "Op.lt_trans_mkName_lt",
"depth": 1,
"n_commands": 0,
"n_lines": 21,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [Op.lt] at h₂\n split at h₂ <;> simp only [decide_eq_true_eq] at h₂\n case h_1 =>\n simp only [Op.uuf... | [
{
"name": "Op.lt_trans_uuf'",
"text": "private theorem Op.lt_trans_uuf' {fb fc: UUF} {a : Op} :\n (Op.mkName a < Op.mkName (Op.uuf fb)) →\n (∀ (f₁ : UUF), a = Op.uuf f₁ → False) →\n Op.lt a (Op.uuf fc) = true\n:= by simp_op_lt_trans_parametric' a Op.uuf.injEq\n\n",
"fan_in": 1,
"n_lines": 7,
... | [
{
"name": "Term.lt_trans",
"fan_in": 14,
"n_deps_direct": 9,
"n_deps_transitive": 31,
"n_lines": 61,
"n_chars": 2288,
"n_subproofs": 3,
"n_tactics": 65,
"cyclomatic": 16,
"n_automation": 15,
"n_rewrites": 9,
"n_structural": 16,
"automation_only": false,
"max_n... | 21 | /-
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... | @@ -494,6 +494,12 @@
simp only [$inj:ident, forall_apply_eq_imp_iff, forall_eq'] at h₂
))
+private theorem Op.lt_trans_uuf' {fb fc: UUF} {a : Op} :
+ (Op.mkName a < Op.mkName (Op.uuf fb)) →
+ (∀ (f₁ : UUF), a = Op.uuf f₁ → False) →
+ Op.lt a (Op.uuf fc) = true
+:= by simp_op_lt_trans_parametric' a Op.uuf.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_ea503f78a10c_6 | 1c1173a75c1aa0eb | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/LT.lean | LT | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "Op.lt_trans",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [LT.lt]\n intro h₁ h₂\n simp only [Op.lt] at h₁\n split at h₁ <;> simp only [decide_eq_true_eq] at h₁\n case h_1... | [
{
"name": "Op.lt_trans_ext",
"text": "private theorem Op.lt_trans_ext {xop₁ xop₂ : ExtOp} {c : Op} :\n xop₁ < xop₂ → Op.lt (Op.ext xop₂) c = true → Op.lt (Op.ext xop₁) c = true\n:= by simp_lt_trans Op.lt Op.mkName c @ExtOp.lt_trans\n\n",
"fan_in": 1,
"n_lines": 5,
"n_chars": 211,
"n_subpro... | [
{
"name": "Term.ltList_trans",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 31,
"n_lines": 26,
"n_chars": 911,
"n_subproofs": 6,
"n_tactics": 28,
"cyclomatic": 10,
"n_automation": 6,
"n_rewrites": 4,
"n_structural": 5,
"automation_only": false,
"max_n... | 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... | @@ -478,6 +478,10 @@
p₁ < p₂ → Op.lt (Op.string.like p₂) c = true → Op.lt (Op.string.like p₁) c = true
:= by simp_lt_trans Op.lt Op.mkName c (List.strictLT PatElem).transitive
+private theorem Op.lt_trans_ext {xop₁ xop₂ : ExtOp} {c : Op} :
+ xop₁ < xop₂ → Op.lt (Op.ext xop₂) c = true → Op.lt (Op.ext xop₁) c = ... | {
"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_ea503f78a10c_7 | cc5508603c699432 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/LT.lean | LT | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "Term.lt_conn",
"depth": 1,
"n_commands": 0,
"n_lines": 39,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [ne_eq, LT.lt]\n intro h₁\n unfold Term.lt\n cases a\n case prim | var | none =>\n cases b <;> simp only [de... | [
{
"name": "Term.lt_conn_set",
"text": "private theorem Term.lt_conn_set {ts₁ ts₂ : List Term} {ty₁ ty₂ : TermType}\n (h : ty₁ = ty₂ → ¬ts₁ = ts₂)\n (ih : ¬ts₁ = ts₂ → Term.ltList ts₁ ts₂ ∨ Term.ltList ts₂ ts₁) :\n (ty₁ < ty₂ ∨ ty₁ = ty₂ ∧ Term.ltList ts₁ ts₂ = true) ∨ ty₂ < ty₁ ∨ ty₂ = ty₁ ∧ Term.ltList ... | [
{
"name": "Term.lt_conn",
"fan_in": 9,
"n_deps_direct": 4,
"n_deps_transitive": 12,
"n_lines": 44,
"n_chars": 1690,
"n_subproofs": 2,
"n_tactics": 48,
"cyclomatic": 16,
"n_automation": 18,
"n_rewrites": 1,
"n_structural": 16,
"automation_only": false,
"max_nes... | 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... | @@ -1056,6 +1056,23 @@
end
+private theorem Term.lt_conn_set {ts₁ ts₂ : List Term} {ty₁ ty₂ : TermType}
+ (h : ty₁ = ty₂ → ¬ts₁ = ts₂)
+ (ih : ¬ts₁ = ts₂ → Term.ltList ts₁ ts₂ ∨ Term.ltList ts₂ ts₁) :
+ (ty₁ < ty₂ ∨ ty₁ = ty₂ ∧ Term.ltList ts₁ ts₂ = true) ∨ ty₂ < ty₁ ∨ ty₂ = ty₁ ∧ Term.ltList ts₂ ts₁ = true
+:=... | {
"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_ff03d69e5a3c_0 | 4e6910ac2b7f9d3d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "satisfiedPolicies_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 30,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [SymCC.satisfiedPolicies]\n have ⟨ts, hts⟩ :\n ∃ ts,\n List.filterMapM (fun x => compileWithEff... | [
{
"name": "compileWithEffect_is_ok",
"text": "/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/\ntheorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ asserts, compileWithEffect effect p' (... | [
{
"name": "satisfiedPolicies_is_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 37,
"n_chars": 1375,
"n_subproofs": 5,
"n_tactics": 30,
"cyclomatic": 6,
"n_automation": 8,
"n_rewrites": 0,
"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... | @@ -23,12 +23,54 @@
open Spec SymCC Validation
+/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/
+theorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ asserts, compileWithEffect effect p' (SymEn... | {
"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_ff03d69e5a3c_1 | 220a9deacb35f9f8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "satisfiedPolicies_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 30,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [SymCC.satisfiedPolicies]\n have ⟨ts, hts⟩ :\n ∃ ts,\n List.filterMapM (fun x => compileWithEff... | [
{
"name": "compileWithEffect_is_ok",
"text": "/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/\ntheorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ asserts, compileWithEffect effect p' (... | [
{
"name": "isAuthorized_is_ok",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 12,
"n_chars": 451,
"n_subproofs": 2,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"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... | @@ -23,12 +23,54 @@
open Spec SymCC Validation
+/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/
+theorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ asserts, compileWithEffect effect p' (SymEn... | {
"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_ff03d69e5a3c_2 | 94d411ffb6549379 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "satisfiedPolicies_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 30,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [SymCC.satisfiedPolicies]\n have ⟨ts, hts⟩ :\n ∃ ts,\n List.filterMapM (fun x => compileWithEff... | [
{
"name": "compileWithEffect_is_ok",
"text": "/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/\ntheorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ asserts, compileWithEffect effect p' (... | [
{
"name": "verifyIsAuthorized_is_ok",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 13,
"n_chars": 573,
"n_subproofs": 2,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"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... | @@ -23,12 +23,54 @@
open Spec SymCC Validation
+/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/
+theorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ asserts, compileWithEffect effect p' (SymEn... | {
"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_ff03d69e5a3c_3 | 7178cf49394aea33 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 3 | [
{
"theorem_name": "verifyNeverErrors_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n exact verifyEvaluate_is_ok hwf hwt",
"n_chars": 40,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic":... | [
{
"name": "verifyEvaluate_is_ok",
"text": "/-- `verifyEvaluate` succeeds on sufficiently well-formed inputs. -/\ntheorem verifyEvaluate_is_ok {φ : Term → Term} {p p' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ asserts, verifyEvaluate φ p' (SymEnv.ofEnv Γ) =... | [
{
"name": "verifyNeverErrors_is_ok",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 9,
"n_chars": 313,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"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... | @@ -23,12 +23,25 @@
open Spec SymCC Validation
+/-- `verifyEvaluate` succeeds on sufficiently well-formed inputs. -/
+theorem verifyEvaluate_is_ok {φ : Term → Term} {p p' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ asserts, verifyEvaluate φ p' (SymEnv.ofEnv Γ) = .... | {
"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_ff03d69e5a3c_4 | 81ce41def5f856e7 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 3 | [
{
"theorem_name": "verifyNeverErrors_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n exact verifyEvaluate_is_ok hwf hwt",
"n_chars": 40,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic":... | [
{
"name": "verifyEvaluate_is_ok",
"text": "/-- `verifyEvaluate` succeeds on sufficiently well-formed inputs. -/\ntheorem verifyEvaluate_is_ok {φ : Term → Term} {p p' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ asserts, verifyEvaluate φ p' (SymEnv.ofEnv Γ) =... | [
{
"name": "verifyAlwaysMatches_is_ok",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 9,
"n_chars": 319,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"m... | 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... | @@ -23,12 +23,25 @@
open Spec SymCC Validation
+/-- `verifyEvaluate` succeeds on sufficiently well-formed inputs. -/
+theorem verifyEvaluate_is_ok {φ : Term → Term} {p p' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ asserts, verifyEvaluate φ p' (SymEnv.ofEnv Γ) = .... | {
"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_ff03d69e5a3c_5 | 711cd981e97f1038 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 3 | [
{
"theorem_name": "verifyNeverErrors_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n exact verifyEvaluate_is_ok hwf hwt",
"n_chars": 40,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic":... | [
{
"name": "verifyEvaluate_is_ok",
"text": "/-- `verifyEvaluate` succeeds on sufficiently well-formed inputs. -/\ntheorem verifyEvaluate_is_ok {φ : Term → Term} {p p' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ asserts, verifyEvaluate φ p' (SymEnv.ofEnv Γ) =... | [
{
"name": "verifyNeverMatches_is_ok",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 9,
"n_chars": 316,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"ma... | 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... | @@ -23,12 +23,25 @@
open Spec SymCC Validation
+/-- `verifyEvaluate` succeeds on sufficiently well-formed inputs. -/
+theorem verifyEvaluate_is_ok {φ : Term → Term} {p p' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ asserts, verifyEvaluate φ p' (SymEnv.ofEnv Γ) = .... | {
"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_ff03d69e5a3c_6 | 9c334221b23a0a24 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 3 | [
{
"theorem_name": "verifyMatchesEquivalent_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n exact verifyEvaluatePair_is_ok hwf hwt₁ hwt₂",
"n_chars": 54,
"n_subproofs": 0,
"n_tactics": 2,
... | [
{
"name": "verifyEvaluatePair_is_ok",
"text": "/-- `verifyEvaluatePair` succeeds on sufficiently well-formed inputs. -/\ntheorem verifyEvaluatePair_is_ok {φ : Term → Term → Term} {p₁ p₁' p₂ p₂' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt₁ : wellTypedPolicy p₁ Γ = .ok p₁')\n (hwt₂ : wellTypedPol... | [
{
"name": "verifyMatchesEquivalent_is_ok",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 429,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"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... | @@ -23,13 +23,29 @@
open Spec SymCC Validation
+/-- `verifyEvaluatePair` succeeds on sufficiently well-formed inputs. -/
+theorem verifyEvaluatePair_is_ok {φ : Term → Term → Term} {p₁ p₁' p₂ p₂' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt₁ : wellTypedPolicy p₁ Γ = .ok p₁')
+ (hwt₂ : wellTypedPolicy p₂... | {
"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_ff03d69e5a3c_7 | b8e122100af9d05f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 3 | [
{
"theorem_name": "verifyMatchesEquivalent_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n exact verifyEvaluatePair_is_ok hwf hwt₁ hwt₂",
"n_chars": 54,
"n_subproofs": 0,
"n_tactics": 2,
... | [
{
"name": "verifyEvaluatePair_is_ok",
"text": "/-- `verifyEvaluatePair` succeeds on sufficiently well-formed inputs. -/\ntheorem verifyEvaluatePair_is_ok {φ : Term → Term → Term} {p₁ p₁' p₂ p₂' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt₁ : wellTypedPolicy p₁ Γ = .ok p₁')\n (hwt₂ : wellTypedPol... | [
{
"name": "verifyMatchesImplies_is_ok",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 420,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"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... | @@ -23,13 +23,29 @@
open Spec SymCC Validation
+/-- `verifyEvaluatePair` succeeds on sufficiently well-formed inputs. -/
+theorem verifyEvaluatePair_is_ok {φ : Term → Term → Term} {p₁ p₁' p₂ p₂' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt₁ : wellTypedPolicy p₁ Γ = .ok p₁')
+ (hwt₂ : wellTypedPolicy p₂... | {
"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_ff03d69e5a3c_8 | ae254a865f6b2ce9 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 3 | [
{
"theorem_name": "verifyMatchesEquivalent_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n exact verifyEvaluatePair_is_ok hwf hwt₁ hwt₂",
"n_chars": 54,
"n_subproofs": 0,
"n_tactics": 2,
... | [
{
"name": "verifyEvaluatePair_is_ok",
"text": "/-- `verifyEvaluatePair` succeeds on sufficiently well-formed inputs. -/\ntheorem verifyEvaluatePair_is_ok {φ : Term → Term → Term} {p₁ p₁' p₂ p₂' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt₁ : wellTypedPolicy p₁ Γ = .ok p₁')\n (hwt₂ : wellTypedPol... | [
{
"name": "verifyMatchesDisjoint_is_ok",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 423,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"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... | @@ -23,13 +23,29 @@
open Spec SymCC Validation
+/-- `verifyEvaluatePair` succeeds on sufficiently well-formed inputs. -/
+theorem verifyEvaluatePair_is_ok {φ : Term → Term → Term} {p₁ p₁' p₂ p₂' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt₁ : wellTypedPolicy p₁ Γ = .ok p₁')
+ (hwt₂ : wellTypedPolicy p₂... | {
"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_ff03d69e5a3c_9 | b0cb2869cac02477 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "satisfiedPolicies_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 30,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [SymCC.satisfiedPolicies]\n have ⟨ts, hts⟩ :\n ∃ ts,\n List.filterMapM (fun x => compileWithEff... | [
{
"name": "compileWithEffect_is_ok",
"text": "/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/\ntheorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ asserts, compileWithEffect effect p' (... | [
{
"name": "verifyImplies_is_ok",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 10,
"n_chars": 417,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_ne... | 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... | @@ -23,12 +23,54 @@
open Spec SymCC Validation
+/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/
+theorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ asserts, compileWithEffect effect p' (SymEn... | {
"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_ff03d69e5a3c_10 | d925dc3e2decf48d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "satisfiedPolicies_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 30,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [SymCC.satisfiedPolicies]\n have ⟨ts, hts⟩ :\n ∃ ts,\n List.filterMapM (fun x => compileWithEff... | [
{
"name": "compileWithEffect_is_ok",
"text": "/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/\ntheorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ asserts, compileWithEffect effect p' (... | [
{
"name": "verifyAlwaysAllows_is_ok",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 16,
"n_chars": 481,
"n_subproofs": 2,
"n_tactics": 9,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"m... | 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... | @@ -23,12 +23,54 @@
open Spec SymCC Validation
+/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/
+theorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ asserts, compileWithEffect effect p' (SymEn... | {
"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_ff03d69e5a3c_11 | f3b28c2ddf88eab3 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "satisfiedPolicies_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 30,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [SymCC.satisfiedPolicies]\n have ⟨ts, hts⟩ :\n ∃ ts,\n List.filterMapM (fun x => compileWithEff... | [
{
"name": "compileWithEffect_is_ok",
"text": "/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/\ntheorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ asserts, compileWithEffect effect p' (... | [
{
"name": "verifyAlwaysDenies_is_ok",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 15,
"n_chars": 477,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"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... | @@ -23,12 +23,54 @@
open Spec SymCC Validation
+/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/
+theorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ asserts, compileWithEffect effect p' (SymEn... | {
"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_ff03d69e5a3c_12 | 91a92968f8c14e64 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "satisfiedPolicies_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 30,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [SymCC.satisfiedPolicies]\n have ⟨ts, hts⟩ :\n ∃ ts,\n List.filterMapM (fun x => compileWithEff... | [
{
"name": "compileWithEffect_is_ok",
"text": "/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/\ntheorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ asserts, compileWithEffect effect p' (... | [
{
"name": "verifyEquivalent_is_ok",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 10,
"n_chars": 426,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max... | 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... | @@ -23,12 +23,54 @@
open Spec SymCC Validation
+/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/
+theorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ asserts, compileWithEffect effect p' (SymEn... | {
"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_ff03d69e5a3c_13 | 877e10943e1b1954 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Verifier/WellTypedOk.lean | WellTypedOk | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "satisfiedPolicies_is_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 30,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [SymCC.satisfiedPolicies]\n have ⟨ts, hts⟩ :\n ∃ ts,\n List.filterMapM (fun x => compileWithEff... | [
{
"name": "compileWithEffect_is_ok",
"text": "/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/\ntheorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}\n (hwf : Γ.WellFormed)\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ asserts, compileWithEffect effect p' (... | [
{
"name": "verifyDisjoint_is_ok",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 10,
"n_chars": 420,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"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... | @@ -23,12 +23,54 @@
open Spec SymCC Validation
+/-- `compileWithEffect` succeeds on sufficiently well-formed inputs. -/
+theorem compileWithEffect_is_ok (effect : Effect) {p p' : Policy} {Γ : TypeEnv}
+ (hwf : Γ.WellFormed)
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ asserts, compileWithEffect effect p' (SymEn... | {
"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_3b296304ea22_0 | 99fbefb882fa8bd1 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/WF.lean | WF | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 50 | 1 | [
{
"theorem_name": "interpret_term_app_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 46,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n match op with\n | .not => exact interpret_term_app_wf_not h₁ ih\n | .and => exact inte... | [
{
"name": "interpret_term_app_wf_and",
"text": "private theorem interpret_term_app_wf_and {εs : SymEntities} {I : Interpretation} {ts : List Term} {ty : TermType}\n (h₁ : Term.WellFormed εs (Term.app .and ts ty))\n (ih : ∀ (t : Term), t ∈ ts → InterpretTermWF εs I t) :\n InterpretTermWF εs I (Term.app .a... | [
{
"name": "interpret_term_app_wf",
"fan_in": 1,
"n_deps_direct": 42,
"n_deps_transitive": 42,
"n_lines": 53,
"n_chars": 3505,
"n_subproofs": 0,
"n_tactics": 46,
"cyclomatic": 3,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 43,
"automation_only": false,
... | 42 | /-
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... | @@ -207,6 +207,12 @@
simp only [$ih:ident, $h3:ident, $h4:ident]
))
+private theorem interpret_term_app_wf_and {εs : SymEntities} {I : Interpretation} {ts : List Term} {ty : TermType}
+ (h₁ : Term.WellFormed εs (Term.app .and ts ty))
+ (ih : ∀ (t : Term), t ∈ ts → InterpretTermWF εs I t) :
+ InterpretTermW... | {
"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_3b296304ea22_1 | a71868a8fd3c118e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/WF.lean | WF | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 50 | 1 | [
{
"theorem_name": "interpret_term_app_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 46,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n match op with\n | .not => exact interpret_term_app_wf_not h₁ ih\n | .and => exact inte... | [
{
"name": "interpret_term_app_wf_ext_datetime_ofBitVec",
"text": "private theorem interpret_term_app_wf_ext_datetime_ofBitVec {εs : SymEntities} {I : Interpretation} {ts : List Term} {ty : TermType}\n (h₁ : Term.WellFormed εs (Term.app (.ext ExtOp.datetime.ofBitVec) ts ty))\n (ih : ∀ (t : Term), t ∈ ts → ... | [
{
"name": "interpret_term_wf",
"fan_in": 2,
"n_deps_direct": 7,
"n_deps_transitive": 49,
"n_lines": 38,
"n_chars": 1517,
"n_subproofs": 6,
"n_tactics": 34,
"cyclomatic": 2,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 13,
"automation_only": false,
"max_... | 49 | /-
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... | @@ -246,6 +246,12 @@
InterpretTermWF εs I (Term.app (.ext ExtOp.datetime.val) ts ty)
:= by show_interpret_term_app_wf_unary h₁ ih interpret_term_app_ext_datetime_val wf_term_app_ext_datetime_val wf_ext_datetime_val
+private theorem interpret_term_app_wf_ext_datetime_ofBitVec {εs : SymEntities} {I : Interpretation... | {
"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_3b296304ea22_2 | 9b616d0c83704a28 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/WF.lean | WF | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 50 | 1 | [
{
"theorem_name": "interpret_term_app_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 46,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n match op with\n | .not => exact interpret_term_app_wf_not h₁ ih\n | .and => exact inte... | [
{
"name": "interpret_term_app_wf_ext_duration_val",
"text": "private theorem interpret_term_app_wf_ext_duration_val {εs : SymEntities} {I : Interpretation} {ts : List Term} {ty : TermType}\n (h₁ : Term.WellFormed εs (Term.app (.ext ExtOp.duration.val) ts ty))\n (ih : ∀ (t : Term), t ∈ ts → InterpretTermWF... | [
{
"name": "interpret_term_isEntityType",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 50,
"n_lines": 7,
"n_chars": 262,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
... | 50 | /-
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... | @@ -252,6 +252,12 @@
InterpretTermWF εs I (Term.app (.ext ExtOp.datetime.ofBitVec) ts ty)
:= by show_interpret_term_app_wf_unary h₁ ih interpret_term_app_ext_datetime_ofBitVec wf_term_app_ext_datetime_ofBitVec wf_ext_datetime_ofBitVec
+private theorem interpret_term_app_wf_ext_duration_val {εs : SymEntities} {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_3b296304ea22_3 | e48e025253c36de8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/WF.lean | WF | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 50 | 1 | [
{
"theorem_name": "interpret_term_app_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 46,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n match op with\n | .not => exact interpret_term_app_wf_not h₁ ih\n | .and => exact inte... | [
{
"name": "interpret_term_app_wf_ext_duration_val",
"text": "private theorem interpret_term_app_wf_ext_duration_val {εs : SymEntities} {I : Interpretation} {ts : List Term} {ty : TermType}\n (h₁ : Term.WellFormed εs (Term.app (.ext ExtOp.duration.val) ts ty))\n (ih : ∀ (t : Term), t ∈ ts → InterpretTermWF... | [
{
"name": "interpret_term_isRecordType",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 50,
"n_lines": 7,
"n_chars": 262,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
... | 50 | /-
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... | @@ -252,6 +252,12 @@
InterpretTermWF εs I (Term.app (.ext ExtOp.datetime.ofBitVec) ts ty)
:= by show_interpret_term_app_wf_unary h₁ ih interpret_term_app_ext_datetime_ofBitVec wf_term_app_ext_datetime_ofBitVec wf_ext_datetime_ofBitVec
+private theorem interpret_term_app_wf_ext_duration_val {εs : SymEntities} {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_d18bae7e57f0_0 | 05c992b0ba941106 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Or.lean | Or | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "type_of_or_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 89,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨tx₁, bty₁, rc₁, h₄, h₅, h₆⟩ := type_of_or_inversion h₃\n specialize ih₁ h₁ h₂ h₄\n have ⟨ih₁₁, v₁, ih₁₂, ih₁₃⟩... | [
{
"name": "type_of_or_inversion",
"text": "theorem type_of_or_inversion {x₁ x₂ : Expr} {c c' : Capabilities} {env : TypeEnv} {tx : TypedExpr}\n (h₁ : typeOf (Expr.or x₁ x₂) c env = Except.ok (tx, c')) :\n ∃ tx₁ bty₁ c₁,\n typeOf x₁ c env = .ok (tx₁, c₁) ∧\n tx₁.typeOf = .bool bty₁ ∧\n if bty₁ = B... | [
{
"name": "type_of_or_is_sound",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 99,
"n_chars": 4188,
"n_subproofs": 10,
"n_tactics": 118,
"cyclomatic": 44,
"n_automation": 27,
"n_rewrites": 12,
"n_structural": 33,
"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... | @@ -26,6 +26,76 @@
open Cedar.Spec
open Cedar.Validation
+theorem type_of_or_inversion {x₁ x₂ : Expr} {c c' : Capabilities} {env : TypeEnv} {tx : TypedExpr}
+ (h₁ : typeOf (Expr.or x₁ x₂) c env = Except.ok (tx, c')) :
+ ∃ tx₁ bty₁ c₁,
+ typeOf x₁ c env = .ok (tx₁, c₁) ∧
+ tx₁.typeOf = .bool bty₁ ∧
+ if b... | {
"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_f179fc96f3c3_0 | d363867448da9713 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/WellTyped/Expr/WF.lean | WF | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "typechecked_has_well_formed_type",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have : CedarType.WellFormed env tx.liftBoolTypes.typeOf := by\n apply well_typed_implies_wf_type hwf\n... | [
{
"name": "well_typed_implies_wf_type",
"text": "/--\n`TypedExpr.WellTyped` implies well-formedness of the type (`CedarType.WellFormed`).\n-/\ntheorem well_typed_implies_wf_type\n {env : TypeEnv} {tx : TypedExpr}\n (hwf_env : env.WellFormed)\n (hwt : TypedExpr.WellTyped env tx) :\n CedarType.WellFormed ... | [
{
"name": "typechecked_has_well_formed_type",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 24,
"n_chars": 630,
"n_subproofs": 1,
"n_tactics": 11,
"cyclomatic": 2,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 4,
"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... | @@ -30,6 +30,139 @@
open Cedar.Spec
/--
+`TypedExpr.WellTyped` implies well-formedness of the type (`CedarType.WellFormed`).
+-/
+theorem well_typed_implies_wf_type
+ {env : TypeEnv} {tx : TypedExpr}
+ (hwf_env : env.WellFormed)
+ (hwt : TypedExpr.WellTyped env tx) :
+ CedarType.WellFormed env tx.typeOf
+:= by
... | {
"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_26ec625cc1d2_0 | a257e689c549bf6e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/And.lean | And | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "type_of_and_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 79,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨tx₁, bty₁, rc₁, h₄, h₅, h₆⟩ := type_of_and_inversion h₃\n specialize ih₁ h₁ h₂ h₄\n have ⟨ih₁₁, v₁, ih₁₂, ih₁... | [
{
"name": "type_of_and_inversion",
"text": "theorem type_of_and_inversion {x₁ x₂ : Expr} {c c' : Capabilities} {env : TypeEnv} {tx : TypedExpr}\n (h₁ : typeOf (Expr.and x₁ x₂) c env = Except.ok (tx, c')) :\n ∃ tx₁ bty₁ c₁,\n typeOf x₁ c env = .ok (tx₁, c₁) ∧\n tx₁.typeOf = .bool bty₁ ∧\n if bty₁ ... | [
{
"name": "type_of_and_is_sound",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 89,
"n_chars": 4207,
"n_subproofs": 12,
"n_tactics": 97,
"cyclomatic": 31,
"n_automation": 20,
"n_rewrites": 11,
"n_structural": 29,
"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... | @@ -26,6 +26,59 @@
open Cedar.Spec
open Cedar.Validation
+theorem type_of_and_inversion {x₁ x₂ : Expr} {c c' : Capabilities} {env : TypeEnv} {tx : TypedExpr}
+ (h₁ : typeOf (Expr.and x₁ x₂) c env = Except.ok (tx, c')) :
+ ∃ tx₁ bty₁ c₁,
+ typeOf x₁ c env = .ok (tx₁, c₁) ∧
+ tx₁.typeOf = .bool bty₁ ∧
+ if... | {
"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_a09e9bab6f2c_0 | 29f7758ce1e92cf2 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt/Asserts.lean | Asserts | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 2 | [
{
"theorem_name": "Asserts.Equiv.satAsserts?",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro heqv\n simp [SymCC.satAsserts?, Asserts.Equiv.checkSatAsserts εnv heqv]",
"n_chars": 84,
"n_subpro... | [
{
"name": "Asserts.Equiv.checkSatAsserts",
"text": "/--\nEquivalent `Asserts` produce the same output in `checkSatAsserts`\n-/\ntheorem Asserts.Equiv.checkSatAsserts {a₁ a₂ : Asserts} (εnv : SymEnv) :\n a₁ ~ a₂ →\n checkSatAsserts a₁ εnv = checkSatAsserts a₂ εnv\n:= by\n simp [SymCC.checkSatAsserts]\n i... | [
{
"name": "Asserts.Equiv.satAsserts?",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 11,
"n_chars": 319,
"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... | @@ -42,11 +42,25 @@
infix:50 " ~ " => ResultAssertsEquiv
/--
+Equivalent `Asserts` produce the same output in `checkSatAsserts`
+-/
+theorem Asserts.Equiv.checkSatAsserts {a₁ a₂ : Asserts} (εnv : SymEnv) :
+ a₁ ~ a₂ →
+ checkSatAsserts a₁ εnv = checkSatAsserts a₂ εnv
+:= by
+ simp [SymCC.checkSatAsserts]
+ intr... | {
"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_a09e9bab6f2c_1 | 064d33ce258af1ca | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt/Asserts.lean | Asserts | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 2 | [
{
"theorem_name": "Asserts.Equiv.satAsserts?",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro heqv\n simp [SymCC.satAsserts?, Asserts.Equiv.checkSatAsserts εnv heqv]",
"n_chars": 84,
"n_subpro... | [
{
"name": "Asserts.Equiv.checkSatAsserts",
"text": "/--\nEquivalent `Asserts` produce the same output in `checkSatAsserts`\n-/\ntheorem Asserts.Equiv.checkSatAsserts {a₁ a₂ : Asserts} (εnv : SymEnv) :\n a₁ ~ a₂ →\n checkSatAsserts a₁ εnv = checkSatAsserts a₂ εnv\n:= by\n simp [SymCC.checkSatAsserts]\n i... | [
{
"name": "Asserts.Equiv.satAssertsOpt?",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 11,
"n_chars": 346,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 3,
"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... | @@ -42,10 +42,25 @@
infix:50 " ~ " => ResultAssertsEquiv
/--
+Equivalent `Asserts` produce the same output in `checkSatAsserts`
+-/
+theorem Asserts.Equiv.checkSatAsserts {a₁ a₂ : Asserts} (εnv : SymEnv) :
+ a₁ ~ a₂ →
+ checkSatAsserts a₁ εnv = checkSatAsserts a₂ εnv
+:= by
+ simp [SymCC.checkSatAsserts]
+ intr... | {
"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_bcb83119cd62_0 | 22c5043b0e2e3ac7 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt/Authorizer.lean | Authorizer | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 1 | [
{
"theorem_name": "filterMapM_compileWithEffect_correctness",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction ps generalizing ress\n case nil => simp [pure, Except.pure, Except.map]\n case cons h... | [
{
"name": "compileWithEffect_ok_none",
"text": "/--\nHelper lemma\n-/\nprivate theorem compileWithEffect_ok_none {effect : Effect} {p : Policy} {εnv : SymEnv} :\n SymCC.compileWithEffect effect p εnv = .ok none →\n p.effect ≠ effect\n:= by\n simp only [SymCC.compileWithEffect, beq_iff_eq, bind_pure_comp,... | [
{
"name": "filterMapM_compileWithEffect_correctness",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 3,
"n_lines": 37,
"n_chars": 1676,
"n_subproofs": 0,
"n_tactics": 28,
"cyclomatic": 8,
"n_automation": 11,
"n_rewrites": 1,
"n_structural": 5,
"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... | @@ -48,6 +48,17 @@
/--
Helper lemma
-/
+private theorem compileWithEffect_ok_none {effect : Effect} {p : Policy} {εnv : SymEnv} :
+ SymCC.compileWithEffect effect p εnv = .ok none →
+ p.effect ≠ effect
+:= by
+ simp only [SymCC.compileWithEffect, beq_iff_eq, bind_pure_comp, Functor.map, Except.map,
+ ite_eq_ri... | {
"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_f084a6b82f7f_0 | 098c8f5682493a55 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Levels/HasAttr.lean | HasAttr | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 2 | 1 | [
{
"theorem_name": "level_based_slicing_is_sound_has_attr",
"depth": 1,
"n_commands": 0,
"n_lines": 10,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨ h₇, ty₁, _, ht, h₅, h₆ ⟩ := type_of_hasAttr_inversion ht\n rw [h₅] at hl\n cases h₆\n case... | [
{
"name": "level_based_slicing_is_sound_has_attr_entity",
"text": "theorem level_based_slicing_is_sound_has_attr_entity {e : Expr} {tx₁: TypedExpr} {ty : CedarType} {a : Attr} {n : Nat} {c₀ c₁: Capabilities} {env : TypeEnv} {request : Request} {entities : Entities}\n (hc : CapabilitiesInvariant c₀ request ... | [
{
"name": "level_based_slicing_is_sound_has_attr",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 18,
"n_chars": 904,
"n_subproofs": 1,
"n_tactics": 10,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 3,
"automation_only":... | 2 | import Cedar.Spec
import Cedar.Data
import Cedar.Validation
import Cedar.Thm.Validation.Typechecker
import Cedar.Thm.Validation.Typechecker.Basic
import Cedar.Thm.Validation.Typechecker.IfThenElse
import Cedar.Thm.Validation.Typechecker.Types
import Cedar.Thm.Validation.Slice
import Cedar.Thm.Validation.Levels.Basic
im... | import Cedar.Spec
import Cedar.Data
import Cedar.Validation
import Cedar.Thm.Validation.Typechecker
import Cedar.Thm.Validation.Typechecker.Basic
import Cedar.Thm.Validation.Typechecker.IfThenElse
import Cedar.Thm.Validation.Typechecker.Types
import Cedar.Thm.Validation.Slice
import Cedar.Thm.Validation.Levels.Basic
im... | @@ -19,6 +19,33 @@
open Cedar.Spec
open Cedar.Validation
+theorem level_based_slicing_is_sound_has_attr_entity {e : Expr} {tx₁: TypedExpr} {ty : CedarType} {a : Attr} {n : Nat} {c₀ c₁: Capabilities} {env : TypeEnv} {request : Request} {entities : Entities}
+ (hc : CapabilitiesInvariant c₀ request entities)
+ (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_3427d91db7d4_0 | 097a235f7a0e8c3c | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/UDF.lean | UDF | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "app_table_make_filterMap",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [\n Factory.app,\n hlit,\n ↓reduceIte,\n ]\n have := map_make_filterMap_find? hfind hkv hf\n ... | [
{
"name": "map_make_filterMap_find?",
"text": "/--\nFor simplifying `Factory.app` on a `UDF` with a table\nof the form `make (m.toList.filterMap f)`.\n-/\ntheorem map_make_filterMap_find?\n [BEq α] [LawfulBEq α]\n [DecidableEq γ] [LT γ] [DecidableLT γ] [StrictLT γ]\n {m : Map α β}\n {k : α} {v : β} {k' ... | [
{
"name": "app_table_make_filterMap",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 32,
"n_chars": 757,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"m... | 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,6 +25,43 @@
open Cedar.Data
/--
+For simplifying `Factory.app` on a `UDF` with a table
+of the form `make (m.toList.filterMap f)`.
+-/
+theorem map_make_filterMap_find?
+ [BEq α] [LawfulBEq α]
+ [DecidableEq γ] [LT γ] [DecidableLT γ] [StrictLT γ]
+ {m : Map α β}
+ {k : α} {v : β} {k' : γ} {v' : κ}
+ {f ... | {
"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_98cac2507806_0 | 08620e4020fc5d8d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt/AllowDeny.lean | AllowDeny | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 2 | 1 | [
{
"theorem_name": "isAuthorized_allowAll",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [SymCC.isAuthorized, SymCC.satisfiedPolicies, compileWithEffect, compile_allowAll]\n simp [verifyAlwaysAllows.a... | [
{
"name": "compile_allowAll",
"text": "/--\n`SymCC.compile` on `verifyAlwaysAllows.allowAll.toExpr`\n-/\nprivate theorem compile_allowAll (εnv : SymEnv) :\n SymCC.compile verifyAlwaysAllows.allowAll.toExpr εnv = .ok (⊙true)\n:= by\n simp [verifyAlwaysAllows.allowAll]\n simp [Policy.toExpr, PrincipalScope... | [
{
"name": "isAuthorized_allowAll",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 395,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"max_n... | 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... | @@ -26,10 +26,23 @@
open Cedar.Spec Cedar.SymCC
/--
+`SymCC.compile` on `verifyAlwaysAllows.allowAll.toExpr`
+-/
+private theorem compile_allowAll (εnv : SymEnv) :
+ SymCC.compile verifyAlwaysAllows.allowAll.toExpr εnv = .ok (⊙true)
+:= by
+ simp [verifyAlwaysAllows.allowAll]
+ simp [Policy.toExpr, PrincipalScop... | {
"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_98cac2507806_1 | bd4b89909c0f697f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt/AllowDeny.lean | AllowDeny | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 2 | 1 | [
{
"theorem_name": "footprint_allowAll",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [verifyAlwaysAllows.allowAll]\n simp [Policy.toExpr, PrincipalScope.toExpr, ActionScope.toExpr, ResourceScope.toEx... | [
{
"name": "compile_bool",
"text": "/--\n`SymCC.compile` on a literal bool\n-/\nprivate theorem compile_bool (b : Bool) (εnv : SymEnv) :\n SymCC.compile (.lit (.bool b)) εnv = .ok (⊙b)\n:= by\n simp [compile, compilePrim]\n\n",
"fan_in": 1,
"n_lines": 9,
"n_chars": 187,
"n_subproofs": 0,
... | [
{
"name": "footprint_allowAll",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 498,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"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... | @@ -26,9 +26,20 @@
open Cedar.Spec Cedar.SymCC
/--
+`SymCC.compile` on a literal bool
+-/
+private theorem compile_bool (b : Bool) (εnv : SymEnv) :
+ SymCC.compile (.lit (.bool b)) εnv = .ok (⊙b)
+:= by
+ simp [compile, compilePrim]
+
+/--
`SymCC.footprint` on `verifyAlwaysAllows.allowAll.toExpr`
-/
theorem fo... | {
"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_b2ccf6579048_0 | 97e650749170e090 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 1 | [
{
"theorem_name": "isAuthorized_eq_error",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [SymCC.isAuthorized]\n cases h : SymCC.satisfiedPolicies .forbid ps εnv <;> simp\n case error e' => intro _ ; ... | [
{
"name": "satisfiedPolicies_eq_error",
"text": "/--\nIf `SymCC.satisfiedPolicies` fails, that must be because `SymCC.compile` failed\nwith that error on some policy\n-/\ntheorem satisfiedPolicies_eq_error {e : SymCC.Error} {effect : Effect} {ps : Policies} {εnv : SymEnv} :\n SymCC.satisfiedPolicies effect... | [
{
"name": "isAuthorized_eq_error",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 536,
"n_subproofs": 0,
"n_tactics": 9,
"cyclomatic": 3,
"n_automation": 3,
"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... | @@ -36,13 +36,37 @@
open Cedar.Spec Cedar.SymCC
/--
+If `SymCC.satisfiedPolicies` fails, that must be because `SymCC.compile` failed
+with that error on some policy
+-/
+theorem satisfiedPolicies_eq_error {e : SymCC.Error} {effect : Effect} {ps : Policies} {εnv : SymEnv} :
+ SymCC.satisfiedPolicies effect ps ε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_b2ccf6579048_1 | 5e88e50379a89f56 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 1 | [
{
"theorem_name": "isAuthorized_eq_error",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [SymCC.isAuthorized]\n cases h : SymCC.satisfiedPolicies .forbid ps εnv <;> simp\n case error e' => intro _ ; ... | [
{
"name": "satisfiedPolicies_eq_error",
"text": "/--\nIf `SymCC.satisfiedPolicies` fails, that must be because `SymCC.compile` failed\nwith that error on some policy\n-/\ntheorem satisfiedPolicies_eq_error {e : SymCC.Error} {effect : Effect} {ps : Policies} {εnv : SymEnv} :\n SymCC.satisfiedPolicies effect... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"fan_in": 11,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 32,
"n_chars": 1045,
"n_subproofs": 2,
"n_tactics": 23,
"cyclomatic": 7,
"n_automation": 9,
"n_rewrites": 2,
"n_structural": 2,
"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,13 +36,37 @@
open Cedar.Spec Cedar.SymCC
/--
+If `SymCC.satisfiedPolicies` fails, that must be because `SymCC.compile` failed
+with that error on some policy
+-/
+theorem satisfiedPolicies_eq_error {e : SymCC.Error} {effect : Effect} {ps : Policies} {εnv : SymEnv} :
+ SymCC.satisfiedPolicies effect ps ε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_b2ccf6579048_2 | 2da013a409cdf3e8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "compile_ok_then_exists_wtp",
"fan_in": 6,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 19,
"n_chars": 514,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_3 | 6af3caebb618e070 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 1 | [
{
"theorem_name": "compile_ok_iff_welltypedpolicies_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 20,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [Except.isOk, Except.toBool]\n simp [CompiledPolicySet.compile, Except.mapError]\n cases hwp : ... | [
{
"name": "isAuthorized_eq_error",
"text": "/--\nIf `SymCC.isAuthorized` fails, that must be because `SymCC.compile` failed with\nthat error on some policy\n-/\ntheorem isAuthorized_eq_error {e : SymCC.Error} {ps : Policies} {εnv : SymEnv} :\n SymCC.isAuthorized ps εnv = .error e →\n ∃ p ∈ ps, SymCC.compi... | [
{
"name": "compile_ok_then_exists_wtps",
"fan_in": 10,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 19,
"n_chars": 546,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 3,
"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... | @@ -56,6 +56,19 @@
· simp at h
/--
+If `SymCC.isAuthorized` fails, that must be because `SymCC.compile` failed with
+that error on some policy
+-/
+theorem isAuthorized_eq_error {e : SymCC.Error} {ps : Policies} {εnv : SymEnv} :
+ SymCC.isAuthorized ps εnv = .error e →
+ ∃ p ∈ ps, SymCC.compile p.toExpr ε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_b2ccf6579048_4 | a68aa9ad379ffd2d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "neverErrorsOpt?_eqv_neverErrors?_ok",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 27,
"n_chars": 1037,
"n_subproofs": 3,
"n_tactics": 15,
"cyclomatic": 1,
"n_automation": 8,
"n_rewrites": 1,
"n_structural": 4,
"automation_only": ... | 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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_5 | b202cbd52024e903 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "alwaysMatchesOpt?_eqv_alwaysMatches?_ok",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 27,
"n_chars": 1059,
"n_subproofs": 3,
"n_tactics": 15,
"cyclomatic": 1,
"n_automation": 8,
"n_rewrites": 1,
"n_structural": 4,
"automation_onl... | 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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_6 | 742b8f98bad9f902 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "neverMatchesOpt?_eqv_neverMatches?_ok",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 27,
"n_chars": 1048,
"n_subproofs": 3,
"n_tactics": 15,
"cyclomatic": 1,
"n_automation": 8,
"n_rewrites": 1,
"n_structural": 4,
"automation_only"... | 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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_7 | a4f71da176e7d712 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 6 | [
{
"theorem_name": "neverErrorsOpt?_eqv_neverErrors?_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [neverErrors?, neverErrorsOpt?]\n simp [sat?]\n intro hwf h₀\n have ⟨wp, h₁⟩ := compile_ok_the... | [
{
"name": "cp_satAssertsOpt?_eqv_satAsserts?_ok",
"text": "/--\nThis theorem covers the \"happy path\" -- showing that if optimized policy\ncompilation with `CompiledPolicy.compile` succeeds, then `satAsserts?` and\n`satAssertsOpt?` are equivalent.\n-/\ntheorem cp_satAssertsOpt?_eqv_satAsserts?_ok {ps wps :... | [
{
"name": "matchesEquivalentOpt?_eqv_matchesEquivalent?_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 26,
"n_chars": 1237,
"n_subproofs": 2,
"n_tactics": 12,
"cyclomatic": 1,
"n_automation": 8,
"n_rewrites": 1,
"n_structural": 2,
"automa... | 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,80 @@
/--
This theorem covers the "happy path" -- showing that if optimized policy
+compilation with `CompiledPolicy.compile` succeeds, then `satAsserts?` and
+`satAssertsOpt?` are equivalent.
+-/
+theorem cp_satAssertsOpt?_eqv_satAsserts?_ok {ps wps : Policies} {cps : List CompiledPolicy} {Γ : Validat... | {
"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_b2ccf6579048_8 | 32bbfdec09735cbd | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 6 | [
{
"theorem_name": "neverErrorsOpt?_eqv_neverErrors?_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [neverErrors?, neverErrorsOpt?]\n simp [sat?]\n intro hwf h₀\n have ⟨wp, h₁⟩ := compile_ok_the... | [
{
"name": "cp_satAssertsOpt?_eqv_satAsserts?_ok",
"text": "/--\nThis theorem covers the \"happy path\" -- showing that if optimized policy\ncompilation with `CompiledPolicy.compile` succeeds, then `satAsserts?` and\n`satAssertsOpt?` are equivalent.\n-/\ntheorem cp_satAssertsOpt?_eqv_satAsserts?_ok {ps wps :... | [
{
"name": "matchesImpliesOpt?_eqv_matchesImplies?_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 26,
"n_chars": 1204,
"n_subproofs": 2,
"n_tactics": 12,
"cyclomatic": 1,
"n_automation": 8,
"n_rewrites": 1,
"n_structural": 2,
"automation_o... | 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,80 @@
/--
This theorem covers the "happy path" -- showing that if optimized policy
+compilation with `CompiledPolicy.compile` succeeds, then `satAsserts?` and
+`satAssertsOpt?` are equivalent.
+-/
+theorem cp_satAssertsOpt?_eqv_satAsserts?_ok {ps wps : Policies} {cps : List CompiledPolicy} {Γ : Validat... | {
"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_b2ccf6579048_9 | 3e26c17d44a42cba | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 6 | [
{
"theorem_name": "neverErrorsOpt?_eqv_neverErrors?_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [neverErrors?, neverErrorsOpt?]\n simp [sat?]\n intro hwf h₀\n have ⟨wp, h₁⟩ := compile_ok_the... | [
{
"name": "cp_satAssertsOpt?_eqv_satAsserts?_ok",
"text": "/--\nThis theorem covers the \"happy path\" -- showing that if optimized policy\ncompilation with `CompiledPolicy.compile` succeeds, then `satAsserts?` and\n`satAssertsOpt?` are equivalent.\n-/\ntheorem cp_satAssertsOpt?_eqv_satAsserts?_ok {ps wps :... | [
{
"name": "matchesDisjointOpt?_eqv_matchesDisjoint?_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 26,
"n_chars": 1215,
"n_subproofs": 2,
"n_tactics": 12,
"cyclomatic": 1,
"n_automation": 8,
"n_rewrites": 1,
"n_structural": 2,
"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... | @@ -37,6 +37,80 @@
/--
This theorem covers the "happy path" -- showing that if optimized policy
+compilation with `CompiledPolicy.compile` succeeds, then `satAsserts?` and
+`satAssertsOpt?` are equivalent.
+-/
+theorem cp_satAssertsOpt?_eqv_satAsserts?_ok {ps wps : Policies} {cps : List CompiledPolicy} {Γ : Validat... | {
"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_b2ccf6579048_10 | c904ed6bffda0f27 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "neverErrorsOpt?_eqv_neverErrors?",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 32,
"n_chars": 945,
"n_subproofs": 2,
"n_tactics": 16,
"cyclomatic": 3,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": fals... | 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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_11 | bae72b71c1c83439 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "alwaysMatchesOpt?_eqv_alwaysMatches?",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 32,
"n_chars": 961,
"n_subproofs": 2,
"n_tactics": 16,
"cyclomatic": 3,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": ... | 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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_12 | 45b6e5c13fa291b2 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "neverMatchesOpt?_eqv_neverMatches?",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 32,
"n_chars": 953,
"n_subproofs": 2,
"n_tactics": 16,
"cyclomatic": 3,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": fa... | 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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_13 | a7b9ff8a7ded19c4 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "matchesEquivalentOpt?_eqv_matchesEquivalent?",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 37,
"n_chars": 1564,
"n_subproofs": 2,
"n_tactics": 21,
"cyclomatic": 9,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 6,
"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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_14 | f479b04b0a8bf78c | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 14 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "matchesImpliesOpt?_eqv_matchesImplies?",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 37,
"n_chars": 1540,
"n_subproofs": 2,
"n_tactics": 21,
"cyclomatic": 9,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 6,
"automation_only... | 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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_15 | e303cff9af1ad0e3 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 15 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "matchesDisjointOpt?_eqv_matchesDisjoint?",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 37,
"n_chars": 1548,
"n_subproofs": 2,
"n_tactics": 21,
"cyclomatic": 9,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 6,
"automation_on... | 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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_16 | 160bf41f3bdfb1bd | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 16 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "impliesOpt?_eqv_implies?_ok",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 33,
"n_chars": 1650,
"n_subproofs": 5,
"n_tactics": 21,
"cyclomatic": 1,
"n_automation": 9,
"n_rewrites": 1,
"n_structural": 6,
"automation_only": false,
... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_17 | 6ee6c32b714432b2 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 17 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "impliesOpt?_eqv_implies?",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 6,
"n_lines": 38,
"n_chars": 1637,
"n_subproofs": 3,
"n_tactics": 22,
"cyclomatic": 9,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 5,
"automation_only": false,
... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_18 | 594ddcf5f9d4b2ae | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 18 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "alwaysAllowsOpt?_eqv_alwaysAllows?_ok",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 29,
"n_chars": 1278,
"n_subproofs": 4,
"n_tactics": 18,
"cyclomatic": 1,
"n_automation": 9,
"n_rewrites": 1,
"n_structural": 4,
"automation_only"... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_19 | 783c74677b2483ff | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 19 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "alwaysAllowsOpt?_eqv_alwaysAllows?",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 6,
"n_lines": 30,
"n_chars": 1079,
"n_subproofs": 2,
"n_tactics": 14,
"cyclomatic": 5,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 3,
"automation_only": f... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_20 | 0f278e4798120cba | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 20 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "alwaysDeniesOpt?_eqv_alwaysDenies?_ok",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 29,
"n_chars": 1278,
"n_subproofs": 4,
"n_tactics": 18,
"cyclomatic": 1,
"n_automation": 9,
"n_rewrites": 1,
"n_structural": 4,
"automation_only"... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_21 | 3d3c51ace0ec1966 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 21 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "alwaysDeniesOpt?_eqv_alwaysDenies?",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 6,
"n_lines": 30,
"n_chars": 1079,
"n_subproofs": 2,
"n_tactics": 14,
"cyclomatic": 5,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 3,
"automation_only": f... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_22 | b84ae8c4a0d16d2c | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 22 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "equivalentOpt?_eqv_equivalent?_ok",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 33,
"n_chars": 1683,
"n_subproofs": 5,
"n_tactics": 21,
"cyclomatic": 1,
"n_automation": 9,
"n_rewrites": 1,
"n_structural": 6,
"automation_only": fa... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_23 | debd09a1f25b0c5d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 23 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "equivalentOpt?_eqv_equivalent?",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 6,
"n_lines": 38,
"n_chars": 1661,
"n_subproofs": 3,
"n_tactics": 22,
"cyclomatic": 9,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 5,
"automation_only": false... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_24 | 0e733ea276eb6e92 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 24 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "disjointOpt?_eqv_disjoint?_ok",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 33,
"n_chars": 1661,
"n_subproofs": 5,
"n_tactics": 21,
"cyclomatic": 1,
"n_automation": 9,
"n_rewrites": 1,
"n_structural": 6,
"automation_only": false,... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_25 | f789e8361712f3d5 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 25 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "disjointOpt?_eqv_disjoint?",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 6,
"n_lines": 38,
"n_chars": 1645,
"n_subproofs": 3,
"n_tactics": 22,
"cyclomatic": 9,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 5,
"automation_only": false,
... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_26 | 807e51ca7eb675e0 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 26 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "checkNeverErrorsOpt_eqv_checkNeverErrors_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 25,
"n_chars": 985,
"n_subproofs": 3,
"n_tactics": 13,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 4,
"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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_27 | 768e090ad0a4ac45 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 27 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "checkAlwaysMatchesOpt_eqv_checkAlwaysMatches_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 25,
"n_chars": 1004,
"n_subproofs": 3,
"n_tactics": 13,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 4,
"automa... | 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,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_28 | c86a1a74ce2d6347 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 28 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "checkNeverMatchesOpt_eqv_checkNeverMatches_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 25,
"n_chars": 993,
"n_subproofs": 3,
"n_tactics": 13,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 4,
"automatio... | 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,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_29 | b536777ee6114aa5 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 29 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "checkNeverErrorsOpt_eqv_checkNeverErrors",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 32,
"n_chars": 976,
"n_subproofs": 2,
"n_tactics": 16,
"cyclomatic": 3,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 4,
"automation_onl... | 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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_30 | 21b083a0aef8e23d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 30 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "checkAlwaysMatchesOpt_eqv_checkAlwaysMatches",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 32,
"n_chars": 993,
"n_subproofs": 2,
"n_tactics": 16,
"cyclomatic": 3,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 4,
"automation... | 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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_31 | b4561add88e002a6 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 31 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "checkNeverMatchesOpt_eqv_checkNeverMatches",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 32,
"n_chars": 985,
"n_subproofs": 2,
"n_tactics": 16,
"cyclomatic": 3,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 4,
"automation_o... | 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... | @@ -36,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_32 | 7f0fd1c967bcc8a8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 32 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "checkMatchesEquivalentOpt_eqv_checkMatchesEquivalent",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 37,
"n_chars": 1596,
"n_subproofs": 2,
"n_tactics": 21,
"cyclomatic": 9,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 6,
"a... | 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,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_33 | b31071859fd51aed | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 33 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "checkMatchesImpliesOpt_eqv_checkMatchesImplies",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 37,
"n_chars": 1572,
"n_subproofs": 2,
"n_tactics": 21,
"cyclomatic": 9,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 6,
"automat... | 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,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_34 | c8f9423205fc6b35 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 34 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 13 | [
{
"theorem_name": "compile_ok_then_exists_wtp",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicy_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\n ... | [
{
"name": "compile_ok_iff_welltypedpolicy_ok",
"text": "/--\n`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :\n Γ.WellFormed ... | [
{
"name": "checkMatchesDisjointOpt_eqv_checkMatchesDisjoint",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 37,
"n_chars": 1580,
"n_subproofs": 2,
"n_tactics": 21,
"cyclomatic": 9,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 6,
"autom... | 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,6 +36,27 @@
open Cedar.Spec Cedar.SymCC
/--
+`CompiledPolicy.compile` succeeds iff `wellTypedPolicy` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicy_ok {p : Policy} {Γ : Validation.TypeEnv} :
+ Γ.WellFormed → (
+ Except.isO... | {
"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_b2ccf6579048_35 | de8b517f3250061d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 35 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "checkImpliesOpt_eqv_checkImplies_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 29,
"n_chars": 1330,
"n_subproofs": 4,
"n_tactics": 16,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 6,
"automation_only": ... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_36 | 5f2150ba581a606a | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 36 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "checkImpliesOpt_eqv_checkImplies",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 38,
"n_chars": 1669,
"n_subproofs": 3,
"n_tactics": 22,
"cyclomatic": 9,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 5,
"automation_only": fal... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_37 | 195933a8245cbf45 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 37 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "checkAlwaysAllowsOpt_eqv_checkAlwaysAllows_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 25,
"n_chars": 1034,
"n_subproofs": 3,
"n_tactics": 13,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 4,
"automati... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_38 | 1be5d3499537e263 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 38 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "checkAlwaysAllowsOpt_eqv_checkAlwaysAllows",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 30,
"n_chars": 1111,
"n_subproofs": 2,
"n_tactics": 14,
"cyclomatic": 5,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 3,
"automation_... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_39 | 3465746df1d1f2c4 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 39 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "checkAlwaysDeniesOpt_eqv_checkAlwaysDenies_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 25,
"n_chars": 1034,
"n_subproofs": 3,
"n_tactics": 13,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 4,
"automati... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_40 | e4ca3251415d435e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 40 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "checkAlwaysDeniesOpt_eqv_checkAlwaysDenies",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 30,
"n_chars": 1111,
"n_subproofs": 2,
"n_tactics": 14,
"cyclomatic": 5,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 3,
"automation_... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_41 | 71d6a311527472ec | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 41 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "checkEquivalentOpt_eqv_checkEquivalent_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 29,
"n_chars": 1363,
"n_subproofs": 4,
"n_tactics": 16,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 6,
"automation_o... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_42 | 3a572c21b74588a2 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 42 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "checkEquivalentOpt_eqv_checkEquivalent",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 38,
"n_chars": 1693,
"n_subproofs": 3,
"n_tactics": 22,
"cyclomatic": 9,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 5,
"automation_only... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_43 | b618991c0774d9d6 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 43 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "checkDisjointOpt_eqv_checkDisjoint_ok",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 29,
"n_chars": 1341,
"n_subproofs": 4,
"n_tactics": 16,
"cyclomatic": 1,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 6,
"automation_only"... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_b2ccf6579048_44 | 8aca38fe4824ebf7 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Opt.lean | Opt | 44 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 30 | 11 | [
{
"theorem_name": "compile_ok_then_exists_wtps",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf h₀\n have h₁ := (compile_ok_iff_welltypedpolicies_ok hwf).mp (by\n simp [Except.isOk_iff_exists]\... | [
{
"name": "compile_ok_iff_welltypedpolicies_ok",
"text": "/--\n`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds\n\nNote: `Γ.WellFormed` is technically only required for the reverse direction\n-/\ntheorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Validation.TypeEnv} :\n Γ... | [
{
"name": "checkDisjointOpt_eqv_checkDisjoint",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 5,
"n_lines": 38,
"n_chars": 1677,
"n_subproofs": 3,
"n_tactics": 22,
"cyclomatic": 9,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 5,
"automation_only": f... | 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... | @@ -69,6 +69,37 @@
case ok t => simp only [do_error] ; exact satisfiedPolicies_eq_error
/--
+`CompiledPolicySet.compile` succeeds iff `wellTypedPolicies` succeeds
+
+Note: `Γ.WellFormed` is technically only required for the reverse direction
+-/
+theorem compile_ok_iff_welltypedpolicies_ok {ps : Policies} {Γ : Va... | {
"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_c3dac70e477d_0 | 554c53427d72228c | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 2 | [
{
"theorem_name": "interpret_and",
"depth": 1,
"n_commands": 0,
"n_lines": 41,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI hw₁ hw₂ hty₁ hty₂\n simp only [Factory.and, Bool.or_eq_true, decide_eq_true_eq]\n split\n case isTrue hor =>\n ... | [
{
"name": "interpret_opposites_neq",
"text": "theorem interpret_opposites_neq {I : Interpretation} {t₁ t₂ : Term} {b₁ b₂ : Bool} :\n t₁.interpret I = b₁ → t₂.interpret I = b₂ →\n opposites t₁ t₂ → ¬ b₁ = b₂\n:= by\n intro h₁ h₂ h₃\n simp only [opposites] at h₃\n by_contra h\n subst h\n split at h₃ <;... | [
{
"name": "interpret_and",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 47,
"n_chars": 2018,
"n_subproofs": 2,
"n_tactics": 48,
"cyclomatic": 16,
"n_automation": 12,
"n_rewrites": 6,
"n_structural": 7,
"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... | @@ -59,17 +59,117 @@
case h_3 =>
simp only [interpret_term_app_not]
+theorem interpret_opposites_neq {I : Interpretation} {t₁ t₂ : Term} {b₁ b₂ : Bool} :
+ t₁.interpret I = b₁ → t₂.interpret I = b₂ →
+ opposites t₁ t₂ → ¬ b₁ = b₂
+:= by
+ intro h₁ h₂ h₃
+ simp only [opposites] at h₃
+ by_contra h
+ subs... | {
"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_c3dac70e477d_1 | c90ef33695d10232 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "interpret_ite_simplify",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI hw₁ hw₂ hw₃ hty₁ hty\n simp only [Factory.ite.simplify]\n simp only [Bool.or_eq_true, decide_eq_true_eq]... | [
{
"name": "interpret_and",
"text": "public theorem interpret_and {εs : SymEntities} {I : Interpretation} {t₁ t₂ : Term} :\n I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →\n t₁.typeOf = .bool → t₂.typeOf = .bool →\n (Factory.and t₁ t₂).interpret I = Factory.and (t₁.interpret I) (t₂.interpret I)\n... | [
{
"name": "interpret_ite_simplify",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 4,
"n_lines": 35,
"n_chars": 1329,
"n_subproofs": 1,
"n_tactics": 34,
"cyclomatic": 17,
"n_automation": 12,
"n_rewrites": 5,
"n_structural": 7,
"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... | @@ -78,6 +78,52 @@
cases b₁ <;>
simp only [interpret_term_app_not, h₂, pe_not_true, pe_not_false, Term.prim.injEq, TermPrim.bool.injEq, Bool.false_eq_true, Bool.true_eq_false] at h₁
+public theorem interpret_and {εs : SymEntities} {I : Interpretation} {t₁ t₂ : Term} :
+ I.WellFormed εs → t₁.WellFormed ε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_c3dac70e477d_2 | d4983bf1e8d7287f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 3 | [
{
"theorem_name": "interpret_ite_simplify",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI hw₁ hw₂ hw₃ hty₁ hty\n simp only [Factory.ite.simplify]\n simp only [Bool.or_eq_true, decide_eq_true_eq]... | [
{
"name": "interpret_or",
"text": "public theorem interpret_or {εs : SymEntities} {I : Interpretation} {t₁ t₂ : Term} :\n I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →\n t₁.typeOf = .bool → t₂.typeOf = .bool →\n (Factory.or t₁ t₂).interpret I = Factory.or (t₁.interpret I) (t₂.interpret I)\n:= b... | [
{
"name": "interpret_ite",
"fan_in": 5,
"n_deps_direct": 1,
"n_deps_transitive": 5,
"n_lines": 29,
"n_chars": 1423,
"n_subproofs": 1,
"n_tactics": 27,
"cyclomatic": 11,
"n_automation": 10,
"n_rewrites": 2,
"n_structural": 3,
"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... | @@ -124,6 +124,53 @@
case isFalse =>
simp only [interpret_term_app_and, Factory.and, Bool.or_eq_true, decide_eq_true_eq]
+public theorem interpret_or {εs : SymEntities} {I : Interpretation} {t₁ t₂ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →
+ t₁.typeOf = .bool → t₂.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_c3dac70e477d_3 | f04d3af7d9b087d8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 3 | [
{
"theorem_name": "interpret_ite_simplify",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI hw₁ hw₂ hw₃ hty₁ hty\n simp only [Factory.ite.simplify]\n simp only [Bool.or_eq_true, decide_eq_true_eq]... | [
{
"name": "interpret_or",
"text": "public theorem interpret_or {εs : SymEntities} {I : Interpretation} {t₁ t₂ : Term} :\n I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →\n t₁.typeOf = .bool → t₂.typeOf = .bool →\n (Factory.or t₁ t₂).interpret I = Factory.or (t₁.interpret I) (t₂.interpret I)\n:= b... | [
{
"name": "interpret_implies",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 10,
"n_chars": 481,
"n_subproofs": 1,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"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... | @@ -124,6 +124,53 @@
case isFalse =>
simp only [interpret_term_app_and, Factory.and, Bool.or_eq_true, decide_eq_true_eq]
+public theorem interpret_or {εs : SymEntities} {I : Interpretation} {t₁ t₂ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →
+ t₁.typeOf = .bool → t₂.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_c3dac70e477d_4 | d8ec9ffacb4db506 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 6 | [
{
"theorem_name": "interpret_ite_simplify",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI hw₁ hw₂ hw₃ hty₁ hty\n simp only [Factory.ite.simplify]\n simp only [Bool.or_eq_true, decide_eq_true_eq]... | [
{
"name": "interpret_not",
"text": "public theorem interpret_not {I : Interpretation} {t : Term} :\n I.WellFormed εs → t.WellFormed εs →\n (Factory.not t).interpret I = Factory.not (t.interpret I)\n:= by\n intro h₁ h₂\n rw [Factory.not.eq_def]\n split\n case h_1 b =>\n cases b <;>\n simp only [i... | [
{
"name": "interpret_eq_simplify",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 77,
"n_chars": 3812,
"n_subproofs": 12,
"n_tactics": 94,
"cyclomatic": 22,
"n_automation": 20,
"n_rewrites": 10,
"n_structural": 9,
"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,28 @@
open Batteries Data Spec SymCC Factory
+public theorem interpret_not {I : Interpretation} {t : Term} :
+ I.WellFormed εs → t.WellFormed εs →
+ (Factory.not t).interpret I = Factory.not (t.interpret I)
+:= by
+ intro h₁ h₂
+ rw [Factory.not.eq_def]
+ split
+ case h_1 b =>
+ cases b <;>
+... | {
"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_c3dac70e477d_5 | 5e07ed1748a7b429 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 6 | [
{
"theorem_name": "interpret_ite_simplify",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI hw₁ hw₂ hw₃ hty₁ hty\n simp only [Factory.ite.simplify]\n simp only [Bool.or_eq_true, decide_eq_true_eq]... | [
{
"name": "interpret_not",
"text": "public theorem interpret_not {I : Interpretation} {t : Term} :\n I.WellFormed εs → t.WellFormed εs →\n (Factory.not t).interpret I = Factory.not (t.interpret I)\n:= by\n intro h₁ h₂\n rw [Factory.not.eq_def]\n split\n case h_1 b =>\n cases b <;>\n simp only [i... | [
{
"name": "interpret_eq",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 29,
"n_chars": 1681,
"n_subproofs": 2,
"n_tactics": 28,
"cyclomatic": 7,
"n_automation": 14,
"n_rewrites": 2,
"n_structural": 2,
"automation_only": false,
"max_nestin... | 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... | @@ -37,6 +37,28 @@
open Batteries Data Spec SymCC Factory
+public theorem interpret_not {I : Interpretation} {t : Term} :
+ I.WellFormed εs → t.WellFormed εs →
+ (Factory.not t).interpret I = Factory.not (t.interpret I)
+:= by
+ intro h₁ h₂
+ rw [Factory.not.eq_def]
+ split
+ case h_1 b =>
+ cases b <;>
+... | {
"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_c3dac70e477d_6 | 8f07211ba3ed2b6e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 3 | [
{
"theorem_name": "interpret_isNone",
"depth": 1,
"n_commands": 0,
"n_lines": 50,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n rw [isNone.eq_def]\n split\n case h_1 | h_2 =>\n simp only [isNone, interpret_term_none, interpret_te... | [
{
"name": "interpret_eq",
"text": "public theorem interpret_eq {I : Interpretation} {t₁ t₂ : Term} :\n I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →\n (Factory.eq t₁ t₂).interpret I = Factory.eq (t₁.interpret I) (t₂.interpret I)\n:= by\n intro h₁ h₂ h₃\n fun_cases Factory.eq t₁ t₂\n · simp on... | [
{
"name": "interpret_isNone",
"fan_in": 3,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 55,
"n_chars": 2183,
"n_subproofs": 5,
"n_tactics": 53,
"cyclomatic": 11,
"n_automation": 18,
"n_rewrites": 1,
"n_structural": 4,
"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... | @@ -309,10 +309,87 @@
· simp [h₉, pe_eq_simplify_same]
· simp [h₉, pe_eq_simplify_lit h₅.left.right h₆.left.right]
+public theorem interpret_eq {I : Interpretation} {t₁ t₂ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →
+ (Factory.eq t₁ t₂).interpret I = Factory.eq (t₁.interpret 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_c3dac70e477d_7 | fc81aee7c707c731 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 3 | [
{
"theorem_name": "interpret_isNone",
"depth": 1,
"n_commands": 0,
"n_lines": 50,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n rw [isNone.eq_def]\n split\n case h_1 | h_2 =>\n simp only [isNone, interpret_term_none, interpret_te... | [
{
"name": "interpret_eq",
"text": "public theorem interpret_eq {I : Interpretation} {t₁ t₂ : Term} :\n I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →\n (Factory.eq t₁ t₂).interpret I = Factory.eq (t₁.interpret I) (t₂.interpret I)\n:= by\n intro h₁ h₂ h₃\n fun_cases Factory.eq t₁ t₂\n · simp on... | [
{
"name": "interpret_isSome",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 9,
"n_chars": 296,
"n_subproofs": 1,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nestin... | 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... | @@ -309,10 +309,87 @@
· simp [h₉, pe_eq_simplify_same]
· simp [h₉, pe_eq_simplify_lit h₅.left.right h₆.left.right]
+public theorem interpret_eq {I : Interpretation} {t₁ t₂ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →
+ (Factory.eq t₁ t₂).interpret I = Factory.eq (t₁.interpret 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.