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_acfa6d7d03e9_41 | 267e8003051f273a | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 41 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 1 | [
{
"theorem_name": "mapM_some_eq_filterMap",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [← List.mapM'_eq_mapM]\n exact mapM'_some_eq_filterMap",
"n_chars": 65,
"n_subproofs": 0,
"n_tactics... | [
{
"name": "mapM'_some_eq_filterMap",
"text": "public theorem mapM'_some_eq_filterMap {α β} {f : α → Option β} {xs : List α} {ys : List β} :\n List.mapM' f xs = .some ys →\n List.filterMap f xs = ys\n:= by\n intro h\n induction xs generalizing ys\n case nil =>\n simp only [mapM'_nil, Option.pure_def,... | [
{
"name": "mapM_some_eq_filterMap",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 8,
"n_chars": 229,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"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... | @@ -74,10 +74,30 @@
unfold attach₂
simp [all_pmap_subtype λ ((_, b) : α × β) => f b]
+public theorem mapM'_some_eq_filterMap {α β} {f : α → Option β} {xs : List α} {ys : List β} :
+ List.mapM' f xs = .some ys →
+ List.filterMap f xs = ys
+:= by
+ intro h
+ induction xs generalizing ys
+ case nil =>
+ si... | {
"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_acfa6d7d03e9_42 | a2cdab38433ef082 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 42 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 4 | [
{
"theorem_name": "forall₂_fun_subset_implies",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro ha ha' hf heqv\n intro y hy\n replace ⟨x, hx, hr⟩ := List.forall₂_implies_all_right ha y hy\n replace h... | [
{
"name": "forall₂_implies_all_left",
"text": "/--\n Note the converse is not true:\n counterexample `R` is `=`, `xs` is `[1]`, `ys` is `[1, 2]`\n-/\npublic theorem forall₂_implies_all_left {α β} {R : α → β → Prop} {xs : List α} {ys : List β} :\n List.Forall₂ R xs ys →\n ∀ x ∈ xs, ∃ y ∈ ys, R x y\n:= by... | [
{
"name": "mapM'_some_subset",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 21,
"n_chars": 788,
"n_subproofs": 0,
"n_tactics": 15,
"cyclomatic": 2,
"n_automation": 4,
"n_rewrites": 1,
"n_structural": 3,
"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... | @@ -93,6 +93,29 @@
match u, h with
| _, ⟨_, _, h₁, h₂, rfl⟩ => Forall₂.cons h₁ h₂
+/--
+ Note the converse is not true:
+ counterexample `R` is `=`, `xs` is `[1]`, `ys` is `[1, 2]`
+-/
+public theorem forall₂_implies_all_left {α β} {R : α → β → Prop} {xs : List α} {ys : List β} :
+ List.Forall₂ R xs ys →... | {
"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_acfa6d7d03e9_43 | 6ba17c734c24daf8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 43 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 4 | [
{
"theorem_name": "forall₂_fun_subset_implies",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro ha ha' hf heqv\n intro y hy\n replace ⟨x, hx, hr⟩ := List.forall₂_implies_all_right ha y hy\n replace h... | [
{
"name": "forall₂_implies_all_left",
"text": "/--\n Note the converse is not true:\n counterexample `R` is `=`, `xs` is `[1]`, `ys` is `[1, 2]`\n-/\npublic theorem forall₂_implies_all_left {α β} {R : α → β → Prop} {xs : List α} {ys : List β} :\n List.Forall₂ R xs ys →\n ∀ x ∈ xs, ∃ y ∈ ys, R x y\n:= by... | [
{
"name": "mapM_some_subset",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 5,
"n_lines": 9,
"n_chars": 232,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nestin... | 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... | @@ -93,6 +93,29 @@
match u, h with
| _, ⟨_, _, h₁, h₂, rfl⟩ => Forall₂.cons h₁ h₂
+/--
+ Note the converse is not true:
+ counterexample `R` is `=`, `xs` is `[1]`, `ys` is `[1, 2]`
+-/
+public theorem forall₂_implies_all_left {α β} {R : α → β → Prop} {xs : List α} {ys : List β} :
+ List.Forall₂ R xs ys →... | {
"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_acfa6d7d03e9_44 | 7f043adab111fde1 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 44 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 1 | [
{
"theorem_name": "to_option_distr_mapM",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [← mapM'_eq_mapM, ← mapM'_eq_mapM]\n exact to_option_distr_mapM'",
"n_chars": 77,
"n_subproofs": 0,
"n... | [
{
"name": "to_option_distr_mapM'",
"text": "public theorem to_option_distr_mapM' {α β ε} {l : List α} {f: α → Except ε β} :\n (List.mapM' f l).toOption = (List.mapM' (Except.toOption ∘ f) l)\n:= by\n induction l\n case nil => rfl\n case cons head tail hᵢ =>\n simp only [mapM'_cons, bind_pure_comp, Fu... | [
{
"name": "to_option_distr_mapM",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 7,
"n_chars": 236,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": false,
"max_ne... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -84,9 +84,23 @@
let ⟨h₁, h₂⟩ := forall_mem_cons.1 h
rw [mapM', mapM', h₁, mapM'_congr h₂]
+public theorem to_option_distr_mapM' {α β ε} {l : List α} {f: α → Except ε β} :
+ (List.mapM' f l).toOption = (List.mapM' (Except.toOption ∘ f) l)
+:= by
+ induction l
+ case nil => rfl
+ case cons head tail 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_acfa6d7d03e9_45 | 3642ac745b13a36a | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 45 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 1 | [
{
"theorem_name": "to_option_distr_mapM",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [← mapM'_eq_mapM, ← mapM'_eq_mapM]\n exact to_option_distr_mapM'",
"n_chars": 77,
"n_subproofs": 0,
"n... | [
{
"name": "to_option_distr_mapM'",
"text": "public theorem to_option_distr_mapM' {α β ε} {l : List α} {f: α → Except ε β} :\n (List.mapM' f l).toOption = (List.mapM' (Except.toOption ∘ f) l)\n:= by\n induction l\n case nil => rfl\n case cons head tail hᵢ =>\n simp only [mapM'_cons, bind_pure_comp, Fu... | [
{
"name": "mapM_to_option_congr",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 10,
"n_chars": 314,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"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... | @@ -94,9 +94,23 @@
rw [← mapM'_eq_mapM, ← mapM'_eq_mapM]
exact mapM'_congr
+public theorem to_option_distr_mapM' {α β ε} {l : List α} {f: α → Except ε β} :
+ (List.mapM' f l).toOption = (List.mapM' (Except.toOption ∘ f) l)
+:= by
+ induction l
+ case nil => rfl
+ case cons head tail hᵢ =>
+ simp only [ma... | {
"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_acfa6d7d03e9_46 | 71293d301139d764 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 46 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 3 | [
{
"theorem_name": "foldlM_of_assoc_none'",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases xs\n case nil =>\n simp only [foldlM_nil, pure, Option.some.injEq] at h₃ ; subst h₃; exact h₂\n case cons... | [
{
"name": "foldlM_of_assoc_some",
"text": "public theorem foldlM_of_assoc_some (f : α → α → Option α) (x₀ x₁ x₂ x₃ : α) (xs : List α)\n (h₁ : ∀ x₁ x₂ x₃,\n (do let x₄ ← f x₁ x₂ ; f x₄ x₃) =\n (do let x₄ ← f x₂ x₃ ; f x₁ x₄))\n (h₂ : f x₀ x₁ = some x₂)\n (h₃ : List.foldlM f x₂ xs = some x₃):\n (do ... | [
{
"name": "foldlM_of_assoc_none'",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 23,
"n_chars": 1060,
"n_subproofs": 1,
"n_tactics": 18,
"cyclomatic": 6,
"n_automation": 6,
"n_rewrites": 1,
"n_structural": 5,
"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... | @@ -84,6 +84,41 @@
let ⟨h₁, h₂⟩ := forall_mem_cons.1 h
rw [mapM', mapM', h₁, mapM'_congr h₂]
+public theorem foldlM_of_assoc_some (f : α → α → Option α) (x₀ x₁ x₂ x₃ : α) (xs : List α)
+ (h₁ : ∀ x₁ x₂ x₃,
+ (do let x₄ ← f x₁ x₂ ; f x₄ x₃) =
+ (do let x₄ ← f x₂ x₃ ; f x₁ x₄))
+ (h₂ : f x₀ x₁ = some x... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_acfa6d7d03e9_47 | 017308d93ce9f58d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 47 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 3 | [
{
"theorem_name": "foldlM_of_assoc_none'",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases xs\n case nil =>\n simp only [foldlM_nil, pure, Option.some.injEq] at h₃ ; subst h₃; exact h₂\n case cons... | [
{
"name": "foldlM_of_assoc_some",
"text": "public theorem foldlM_of_assoc_some (f : α → α → Option α) (x₀ x₁ x₂ x₃ : α) (xs : List α)\n (h₁ : ∀ x₁ x₂ x₃,\n (do let x₄ ← f x₁ x₂ ; f x₄ x₃) =\n (do let x₄ ← f x₂ x₃ ; f x₁ x₄))\n (h₂ : f x₀ x₁ = some x₂)\n (h₃ : List.foldlM f x₂ xs = some x₃):\n (do ... | [
{
"name": "foldlM_of_assoc_none",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 35,
"n_chars": 1781,
"n_subproofs": 5,
"n_tactics": 30,
"cyclomatic": 10,
"n_automation": 12,
"n_rewrites": 0,
"n_structural": 5,
"automation_only": false,
"m... | 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... | @@ -84,6 +84,41 @@
let ⟨h₁, h₂⟩ := forall_mem_cons.1 h
rw [mapM', mapM', h₁, mapM'_congr h₂]
+public theorem foldlM_of_assoc_some (f : α → α → Option α) (x₀ x₁ x₂ x₃ : α) (xs : List α)
+ (h₁ : ∀ x₁ x₂ x₃,
+ (do let x₄ ← f x₁ x₂ ; f x₄ x₃) =
+ (do let x₄ ← f x₂ x₃ ; f x₁ x₄))
+ (h₂ : f x₀ x₁ = some x... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_acfa6d7d03e9_48 | 568205e2823418de | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 48 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 3 | [
{
"theorem_name": "foldlM_of_assoc_none'",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases xs\n case nil =>\n simp only [foldlM_nil, pure, Option.some.injEq] at h₃ ; subst h₃; exact h₂\n case cons... | [
{
"name": "foldlM_of_assoc_some",
"text": "public theorem foldlM_of_assoc_some (f : α → α → Option α) (x₀ x₁ x₂ x₃ : α) (xs : List α)\n (h₁ : ∀ x₁ x₂ x₃,\n (do let x₄ ← f x₁ x₂ ; f x₄ x₃) =\n (do let x₄ ← f x₂ x₃ ; f x₁ x₄))\n (h₂ : f x₀ x₁ = some x₂)\n (h₃ : List.foldlM f x₂ xs = some x₃):\n (do ... | [
{
"name": "foldlM_of_assoc",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 31,
"n_chars": 1162,
"n_subproofs": 0,
"n_tactics": 24,
"cyclomatic": 7,
"n_automation": 6,
"n_rewrites": 2,
"n_structural": 9,
"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... | @@ -84,6 +84,41 @@
let ⟨h₁, h₂⟩ := forall_mem_cons.1 h
rw [mapM', mapM', h₁, mapM'_congr h₂]
+public theorem foldlM_of_assoc_some (f : α → α → Option α) (x₀ x₁ x₂ x₃ : α) (xs : List α)
+ (h₁ : ∀ x₁ x₂ x₃,
+ (do let x₄ ← f x₁ x₂ ; f x₄ x₃) =
+ (do let x₄ ← f x₂ x₃ ; f x₁ x₄))
+ (h₂ : f x₀ x₁ = some x... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_acfa6d7d03e9_49 | f78a5ed3353ae098 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 49 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 1 | [
{
"theorem_name": "filterMap_nonempty_iff_exists_some",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n case mp =>\n intro h₁\n replace ⟨b, h₁⟩ := List.exists_mem_of_ne_nil (xs.filterMap... | [
{
"name": "filterMap_empty_iff_all_none",
"text": "public theorem filterMap_empty_iff_all_none {f : α → Option β} {xs : List α} :\n xs.filterMap f = [] ↔ ∀ x ∈ xs, f x = none\n:= by\n constructor\n case mp =>\n induction xs\n case nil =>\n simp only [filterMap_nil, not_mem_nil, false_implies, ... | [
{
"name": "filterMap_nonempty_iff_exists_some",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 18,
"n_chars": 557,
"n_subproofs": 0,
"n_tactics": 14,
"cyclomatic": 2,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 5,
"automation_only": fa... | 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... | @@ -94,9 +94,56 @@
let ⟨h₁, h₂⟩ := forall_mem_cons.1 h
rw [filterMap, filterMap, h₁, filterMap_congr h₂]
+public theorem filterMap_empty_iff_all_none {f : α → Option β} {xs : List α} :
+ xs.filterMap f = [] ↔ ∀ x ∈ xs, f x = none
+:= by
+ constructor
+ case mp =>
+ induction xs
+ case nil =>
+ ... | {
"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_acfa6d7d03e9_50 | 9513e1e31e7a8f82 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 50 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 4 | [
{
"theorem_name": "forall₂_fun_subset_implies",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro ha ha' hf heqv\n intro y hy\n replace ⟨x, hx, hr⟩ := List.forall₂_implies_all_right ha y hy\n replace h... | [
{
"name": "forall₂_implies_all_left",
"text": "/--\n Note the converse is not true:\n counterexample `R` is `=`, `xs` is `[1]`, `ys` is `[1, 2]`\n-/\npublic theorem forall₂_implies_all_left {α β} {R : α → β → Prop} {xs : List α} {ys : List β} :\n List.Forall₂ R xs ys →\n ∀ x ∈ xs, ∃ y ∈ ys, R x y\n:= by... | [
{
"name": "forM_ok_implies_all_ok",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 7,
"n_lines": 10,
"n_chars": 338,
"n_subproofs": 3,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": false,
"max... | 7 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -93,6 +93,29 @@
match u, h with
| _, ⟨_, _, h₁, h₂, rfl⟩ => Forall₂.cons h₁ h₂
+/--
+ Note the converse is not true:
+ counterexample `R` is `=`, `xs` is `[1]`, `ys` is `[1, 2]`
+-/
+public theorem forall₂_implies_all_left {α β} {R : α → β → Prop} {xs : List α} {ys : List β} :
+ List.Forall₂ R xs ys →... | {
"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_acfa6d7d03e9_51 | 60a5511935778da4 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 51 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 4 | [
{
"theorem_name": "forall₂_fun_subset_implies",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro ha ha' hf heqv\n intro y hy\n replace ⟨x, hx, hr⟩ := List.forall₂_implies_all_right ha y hy\n replace h... | [
{
"name": "forall₂_implies_all_left",
"text": "/--\n Note the converse is not true:\n counterexample `R` is `=`, `xs` is `[1]`, `ys` is `[1, 2]`\n-/\npublic theorem forall₂_implies_all_left {α β} {R : α → β → Prop} {xs : List α} {ys : List β} :\n List.Forall₂ R xs ys →\n ∀ x ∈ xs, ∃ y ∈ ys, R x y\n:= by... | [
{
"name": "forM_ok_implies_all_ok'",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 8,
"n_lines": 5,
"n_chars": 197,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": false,
"max... | 8 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -93,6 +93,29 @@
match u, h with
| _, ⟨_, _, h₁, h₂, rfl⟩ => Forall₂.cons h₁ h₂
+/--
+ Note the converse is not true:
+ counterexample `R` is `=`, `xs` is `[1]`, `ys` is `[1, 2]`
+-/
+public theorem forall₂_implies_all_left {α β} {R : α → β → Prop} {xs : List α} {ys : List β} :
+ List.Forall₂ R xs ys →... | {
"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_acfa6d7d03e9_52 | fcf4d6fcbbc8244b | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 52 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 1 | [
{
"theorem_name": "all_ok_implies_forM_ok",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hall\n have ⟨ys, h₁⟩ := @List.all_ok_implies_mapM_ok _ _ _ f xs (by grind)\n exact mapM_forM _ _ _ h₁",
... | [
{
"name": "all_ok_implies_mapM_ok",
"text": "public theorem all_ok_implies_mapM_ok {α β γ} {f : α → Except γ β} {xs : List α} :\n (∀ x ∈ xs, ∃ y, f x = .ok y) →\n ∃ ys, List.mapM f xs = .ok ys\n:= by\n rw [← List.mapM'_eq_mapM]\n exact all_ok_implies_mapM'_ok\n\n",
"fan_in": 1,
"n_lines": 8,
... | [
{
"name": "all_ok_implies_forM_ok",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 10,
"n_chars": 312,
"n_subproofs": 1,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"max... | 3 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -88,6 +88,13 @@
exists yhd :: ytl
simp [h₁, ih, pure, Except.pure]
+public theorem all_ok_implies_mapM_ok {α β γ} {f : α → Except γ β} {xs : List α} :
+ (∀ x ∈ xs, ∃ y, f x = .ok y) →
+ ∃ ys, List.mapM f xs = .ok ys
+:= by
+ rw [← List.mapM'_eq_mapM]
+ exact all_ok_implies_mapM'_ok
+
/--
our own ... | {
"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_acfa6d7d03e9_53 | 7f3cf7ca9b70d2d8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 53 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 1 | [
{
"theorem_name": "removeAll_singleton_equiv",
"depth": 1,
"n_commands": 0,
"n_lines": 20,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction xs\n case nil =>\n simp only [removeAll, filter_nil, Equiv.refl]\n case cons xhd xtl ih =>\n c... | [
{
"name": "removeAll_singleton_cons_of_neq",
"text": "public theorem removeAll_singleton_cons_of_neq [DecidableEq α] (x y : α) (xs : List α) :\n x ≠ y → (x :: xs).removeAll [y] = x :: (xs.removeAll [y])\n:= by\n intro _\n simp only [removeAll, elem_eq_mem, mem_singleton, filter_cons, Bool.not_eq_true',\n... | [
{
"name": "removeAll_singleton_equiv",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 24,
"n_chars": 805,
"n_subproofs": 0,
"n_tactics": 20,
"cyclomatic": 3,
"n_automation": 5,
"n_rewrites": 3,
"n_structural": 8,
"automation_only": false,
... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -94,6 +94,15 @@
let ⟨h₁, h₂⟩ := forall_mem_cons.1 h
rw [filterMap, filterMap, h₁, filterMap_congr h₂]
+public theorem removeAll_singleton_cons_of_neq [DecidableEq α] (x y : α) (xs : List α) :
+ x ≠ y → (x :: xs).removeAll [y] = x :: (xs.removeAll [y])
+:= by
+ intro _
+ simp only [removeAll, elem_eq_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_acfa6d7d03e9_54 | 0657ec2a06383b47 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 54 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 1 | [
{
"theorem_name": "mem_iff_mem_eraseDups",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor\n · apply mem_implies_mem_eraseDups\n · apply mem_eraseDups_implies_mem",
"n_chars": 91,
"n_sub... | [
{
"name": "mem_implies_mem_eraseDups",
"text": "public theorem mem_implies_mem_eraseDups\n [BEq α] [LawfulBEq α]\n {xs : List α} {x : α}\n (hmem : x ∈ xs) :\n x ∈ xs.eraseDups\n:= by\n cases xs with\n | nil => contradiction\n | cons hd tl =>\n simp only [List.eraseDups_cons, List.mem_cons]\n si... | [
{
"name": "mem_iff_mem_eraseDups",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 10,
"n_chars": 220,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 3,
"automation_only": false,
"max_... | 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... | @@ -94,6 +94,37 @@
let ⟨h₁, h₂⟩ := forall_mem_cons.1 h
rw [filterMap, filterMap, h₁, filterMap_congr h₂]
+public theorem mem_implies_mem_eraseDups
+ [BEq α] [LawfulBEq α]
+ {xs : List α} {x : α}
+ (hmem : x ∈ xs) :
+ x ∈ xs.eraseDups
+:= by
+ cases xs with
+ | nil => contradiction
+ | cons hd tl =>
+... | {
"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_acfa6d7d03e9_55 | ecec070c909e882e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/List/Lemmas.lean | Lemmas | 55 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 49 | 4 | [
{
"theorem_name": "mapM_some_iff_forall₂",
"depth": 1,
"n_commands": 0,
"n_lines": 3,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n rw [← List.mapM'_eq_mapM]\n exact mapM'_some_iff_forall₂",
"n_chars": 66,
"n_subproofs": 0,
"n_tactics":... | [
{
"name": "mapM'_some_iff_forall₂",
"text": "/-- Copy of mapM'_ok_iff_forall₂ but for option instead of exception -/\npublic theorem mapM'_some_iff_forall₂ {α β} {f : α → Option β} {xs : List α} {ys : List β} :\n List.mapM' f xs = .some ys ↔\n List.Forall₂ (λ x y => f x = .some y) xs ys\n:= by\n construc... | [
{
"name": "mapM_preserves_SortedBy",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 37,
"n_chars": 981,
"n_subproofs": 2,
"n_tactics": 24,
"cyclomatic": 10,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 11,
"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... | @@ -93,10 +93,71 @@
match u, h with
| _, ⟨_, _, h₁, h₂, rfl⟩ => Forall₂.cons h₁ h₂
+/-- Copy of mapM'_ok_iff_forall₂ but for option instead of exception -/
+public theorem mapM'_some_iff_forall₂ {α β} {f : α → Option β} {xs : List α} {ys : List β} :
+ List.mapM' f xs = .some ys ↔
+ List.Forall₂ (λ x y => ... | {
"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_fc2ff4c31b5a_0 | 57299adf5f54df4a | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Set.lean | Set | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 6 | 1 | [
{
"theorem_name": "type_of_set_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 47,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [typeOf] at h₁\n cases h₂ : List.mapM₁ xs fun x => justType (typeOf x.val c env) <;>\n simp [h₂] at h₁\n sim... | [
{
"name": "type_of_set_tail",
"text": "theorem type_of_set_tail\n {x xhd : Expr } {xtl : List Expr} {c : Capabilities}\n {env : TypeEnv} {ty : CedarType} {hd : TypedExpr } {tl : List TypedExpr}\n (h₁ : (List.mapM₁ (xhd :: xtl) fun x => justType (typeOf x.val c env)) = Except.ok (hd :: tl))\n (h₂ : List.... | [
{
"name": "type_of_set_inversion",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 59,
"n_chars": 2156,
"n_subproofs": 4,
"n_tactics": 55,
"cyclomatic": 14,
"n_automation": 16,
"n_rewrites": 3,
"n_structural": 14,
"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... | @@ -29,6 +29,52 @@
open Cedar.Spec
open Cedar.Validation
+theorem type_of_set_tail
+ {x xhd : Expr } {xtl : List Expr} {c : Capabilities}
+ {env : TypeEnv} {ty : CedarType} {hd : TypedExpr } {tl : List TypedExpr}
+ (h₁ : (List.mapM₁ (xhd :: xtl) fun x => justType (typeOf x.val c env)) = Except.ok (hd :: tl))
+ ... | {
"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_fc2ff4c31b5a_1 | 1a1a283859398982 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Set.lean | Set | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 6 | 2 | [
{
"theorem_name": "type_of_set_is_sound_err",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases h₆ : xs\n case nil =>\n subst h₆\n simp [pure, Except.pure] at h₅\n case cons hd tl =>\n simp [h... | [
{
"name": "list_is_sound_implies_tail_is_sound",
"text": "theorem list_is_sound_implies_tail_is_sound {hd : Expr} {tl : List Expr}\n (h₁ : ∀ (xᵢ : Expr), xᵢ ∈ hd :: tl → TypeOfIsSound xᵢ) :\n ∀ (xᵢ : Expr), xᵢ ∈ tl → TypeOfIsSound xᵢ\n:= by\n intro xᵢ h₂\n apply h₁\n simp [h₂]\n\n",
"fan_in": 2,
... | [
{
"name": "type_of_set_is_sound_err",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 38,
"n_chars": 1600,
"n_subproofs": 5,
"n_tactics": 33,
"cyclomatic": 8,
"n_automation": 8,
"n_rewrites": 4,
"n_structural": 6,
"automation_only": false,
... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -29,6 +29,14 @@
open Cedar.Spec
open Cedar.Validation
+theorem list_is_sound_implies_tail_is_sound {hd : Expr} {tl : List Expr}
+ (h₁ : ∀ (xᵢ : Expr), xᵢ ∈ hd :: tl → TypeOfIsSound xᵢ) :
+ ∀ (xᵢ : Expr), xᵢ ∈ tl → TypeOfIsSound xᵢ
+:= by
+ intro xᵢ h₂
+ apply h₁
+ simp [h₂]
+
theorem list_is_typed_implies_... | {
"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_fc2ff4c31b5a_2 | d2a58a3f00cef45e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Set.lean | Set | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 6 | 2 | [
{
"theorem_name": "type_of_set_is_sound_err",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases h₆ : xs\n case nil =>\n subst h₆\n simp [pure, Except.pure] at h₅\n case cons hd tl =>\n simp [h... | [
{
"name": "list_is_sound_implies_tail_is_sound",
"text": "theorem list_is_sound_implies_tail_is_sound {hd : Expr} {tl : List Expr}\n (h₁ : ∀ (xᵢ : Expr), xᵢ ∈ hd :: tl → TypeOfIsSound xᵢ) :\n ∀ (xᵢ : Expr), xᵢ ∈ tl → TypeOfIsSound xᵢ\n:= by\n intro xᵢ h₂\n apply h₁\n simp [h₂]\n\n",
"fan_in": 2,
... | [
{
"name": "type_of_set_is_sound_ok",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 47,
"n_chars": 1743,
"n_subproofs": 2,
"n_tactics": 40,
"cyclomatic": 9,
"n_automation": 10,
"n_rewrites": 3,
"n_structural": 10,
"automation_only": false,
... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -29,6 +29,14 @@
open Cedar.Spec
open Cedar.Validation
+theorem list_is_sound_implies_tail_is_sound {hd : Expr} {tl : List Expr}
+ (h₁ : ∀ (xᵢ : Expr), xᵢ ∈ hd :: tl → TypeOfIsSound xᵢ) :
+ ∀ (xᵢ : Expr), xᵢ ∈ tl → TypeOfIsSound xᵢ
+:= by
+ intro xᵢ h₂
+ apply h₁
+ simp [h₂]
+
theorem list_is_typed_implies_... | {
"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_fc2ff4c31b5a_3 | 58907f22fa29cd39 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Set.lean | Set | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 6 | 1 | [
{
"theorem_name": "type_of_set_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 47,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [typeOf] at h₁\n cases h₂ : List.mapM₁ xs fun x => justType (typeOf x.val c env) <;>\n simp [h₂] at h₁\n sim... | [
{
"name": "type_of_set_tail",
"text": "theorem type_of_set_tail\n {x xhd : Expr } {xtl : List Expr} {c : Capabilities}\n {env : TypeEnv} {ty : CedarType} {hd : TypedExpr } {tl : List TypedExpr}\n (h₁ : (List.mapM₁ (xhd :: xtl) fun x => justType (typeOf x.val c env)) = Except.ok (hd :: tl))\n (h₂ : List.... | [
{
"name": "type_of_set_is_sound",
"fan_in": 0,
"n_deps_direct": 3,
"n_deps_transitive": 6,
"n_lines": 29,
"n_chars": 1443,
"n_subproofs": 1,
"n_tactics": 21,
"cyclomatic": 3,
"n_automation": 4,
"n_rewrites": 3,
"n_structural": 7,
"automation_only": false,
"max... | 6 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -29,6 +29,52 @@
open Cedar.Spec
open Cedar.Validation
+theorem type_of_set_tail
+ {x xhd : Expr } {xtl : List Expr} {c : Capabilities}
+ {env : TypeEnv} {ty : CedarType} {hd : TypedExpr } {tl : List TypedExpr}
+ (h₁ : (List.mapM₁ (xhd :: xtl) fun x => justType (typeOf x.val c env)) = Except.ok (hd :: tl))
+ ... | {
"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_c5e805022cc8_0 | 430a60325a3d4a54 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 2 | [
{
"theorem_name": "wfl_term_isEntitySetType_implies_setOfEntityUIDs?_some",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwl hty\n have ⟨s, hs⟩ := wfl_of_type_set_is_set hwl hty\n subst hs\n simp... | [
{
"name": "wfl_term_isEntityType_implies_entityUID?_some",
"text": "private theorem wfl_term_isEntityType_implies_entityUID?_some {t : Term} {εs : SymEntities} :\n t.WellFormedLiteral εs → t.typeOf.isEntityType →\n ∃ uid, t.entityUID? = some uid\n:= by\n intro hw hty\n simp only [Term.entityUID?]\n spl... | [
{
"name": "wfl_term_isEntitySetType_implies_setOfEntityUIDs?_some",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 20,
"n_chars": 915,
"n_subproofs": 4,
"n_tactics": 14,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 4,
"... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
open Data Spec SymCC Factory
+private theorem wfl_term_isEntityType_implies_entityUID?_some {t : Term} {εs : SymEntities} :
+ t.WellFormedLiteral εs → t.typeOf.isEntityType →
+ ∃ uid, t.entityUID? = some uid
+:= by
+ intro hw hty
+ simp only [Term.entityUID?]
+ split
+ · simp only [Option.... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c5e805022cc8_1 | a0edf6d3374bec22 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wfl_term_isStringSetType_implies_setOfTags?_some",
"depth": 1,
"n_commands": 0,
"n_lines": 13,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwl hty\n have ⟨s, hs⟩ := wfl_of_type_set_is_set hwl hty\n subst hs\n simp only ... | [
{
"name": "wfl_term_ofStringType_implies_tag?_some",
"text": "private theorem wfl_term_ofStringType_implies_tag?_some {t : Term} {εs : SymEntities} :\n t.WellFormedLiteral εs → t.typeOf = .string →\n ∃ tag, t.tag? = some tag\n:= by\n intro hw hty\n simp only [Term.tag?]\n split\n · simp only [Option.s... | [
{
"name": "wfl_term_isStringSetType_implies_setOfTags?_some",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 19,
"n_chars": 782,
"n_subproofs": 4,
"n_tactics": 13,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 3,
"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... | @@ -39,6 +39,19 @@
open Data Spec SymCC Factory
+private theorem wfl_term_ofStringType_implies_tag?_some {t : Term} {εs : SymEntities} :
+ t.WellFormedLiteral εs → t.typeOf = .string →
+ ∃ tag, t.tag? = some tag
+:= by
+ intro hw hty
+ simp only [Term.tag?]
+ split
+ · simp only [Option.some.injEq, exists_eq... | {
"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_c5e805022cc8_2 | 651f707999aa924c | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 2 | [
{
"theorem_name": "wfl_term_isEntitySetType_implies_setOfEntityUIDs?_some",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwl hty\n have ⟨s, hs⟩ := wfl_of_type_set_is_set hwl hty\n subst hs\n simp... | [
{
"name": "wfl_term_isEntityType_implies_entityUID?_some",
"text": "private theorem wfl_term_isEntityType_implies_entityUID?_some {t : Term} {εs : SymEntities} :\n t.WellFormedLiteral εs → t.typeOf.isEntityType →\n ∃ uid, t.entityUID? = some uid\n:= by\n intro hw hty\n simp only [Term.entityUID?]\n spl... | [
{
"name": "concretize?_wfl_ρ_implies_some",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 18,
"n_chars": 1009,
"n_subproofs": 4,
"n_tactics": 13,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
open Data Spec SymCC Factory
+private theorem wfl_term_isEntityType_implies_entityUID?_some {t : Term} {εs : SymEntities} :
+ t.WellFormedLiteral εs → t.typeOf.isEntityType →
+ ∃ uid, t.entityUID? = some uid
+:= by
+ intro hw hty
+ simp only [Term.entityUID?]
+ split
+ · simp only [Option.... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c5e805022cc8_3 | df259fe786f2d961 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wf_term_implies_valid_uids",
"depth": 1,
"n_commands": 0,
"n_lines": 58,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf uid hin\n unfold Term.entityUIDs at hin\n cases t <;> simp only at hin\n case var | none =>\n h... | [
{
"name": "wf_term_prim_implies_valid_uids",
"text": "private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :\n t.WellFormed εs →\n ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid\n:= by\n intro hwf uid hin\n simp only [TermPrim.entityUIDs] at hin\n split at hin\n · rename_i ... | [
{
"name": "wf_term_implies_valid_uids",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 63,
"n_chars": 2233,
"n_subproofs": 5,
"n_tactics": 66,
"cyclomatic": 7,
"n_automation": 14,
"n_rewrites": 5,
"n_structural": 13,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,10 +39,82 @@
open Data Spec SymCC Factory
+private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :
+ t.WellFormed εs →
+ ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid
+:= by
+ intro hwf uid hin
+ simp only [TermPrim.entityUIDs] at hin
+ split at hin
+ · rename_i uid'
+ 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_c5e805022cc8_4 | d9a6ba3195c95dec | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wf_term_implies_valid_uids",
"depth": 1,
"n_commands": 0,
"n_lines": 58,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf uid hin\n unfold Term.entityUIDs at hin\n cases t <;> simp only at hin\n case var | none =>\n h... | [
{
"name": "wf_term_prim_implies_valid_uids",
"text": "private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :\n t.WellFormed εs →\n ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid\n:= by\n intro hwf uid hin\n simp only [TermPrim.entityUIDs] at hin\n split at hin\n · rename_i ... | [
{
"name": "wf_ρ_implies_valid_uids",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 14,
"n_chars": 541,
"n_subproofs": 1,
"n_tactics": 9,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 6,
"automation_only": false,
"ma... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,10 +39,82 @@
open Data Spec SymCC Factory
+private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :
+ t.WellFormed εs →
+ ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid
+:= by
+ intro hwf uid hin
+ simp only [TermPrim.entityUIDs] at hin
+ split at hin
+ · rename_i uid'
+ 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_c5e805022cc8_5 | 26ab7c984bddd951 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wf_term_implies_valid_uids",
"depth": 1,
"n_commands": 0,
"n_lines": 58,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf uid hin\n unfold Term.entityUIDs at hin\n cases t <;> simp only at hin\n case var | none =>\n h... | [
{
"name": "wf_term_prim_implies_valid_uids",
"text": "private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :\n t.WellFormed εs →\n ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid\n:= by\n intro hwf uid hin\n simp only [TermPrim.entityUIDs] at hin\n split at hin\n · rename_i ... | [
{
"name": "wf_uf_implies_valid_uids",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 22,
"n_chars": 886,
"n_subproofs": 1,
"n_tactics": 17,
"cyclomatic": 4,
"n_automation": 4,
"n_rewrites": 1,
"n_structural": 6,
"automation_only": false,
"... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,10 +39,82 @@
open Data Spec SymCC Factory
+private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :
+ t.WellFormed εs →
+ ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid
+:= by
+ intro hwf uid hin
+ simp only [TermPrim.entityUIDs] at hin
+ split at hin
+ · rename_i uid'
+ 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_c5e805022cc8_6 | ced047c862311b65 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wf_term_implies_valid_uids",
"depth": 1,
"n_commands": 0,
"n_lines": 58,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf uid hin\n unfold Term.entityUIDs at hin\n cases t <;> simp only at hin\n case var | none =>\n h... | [
{
"name": "wf_term_prim_implies_valid_uids",
"text": "private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :\n t.WellFormed εs →\n ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid\n:= by\n intro hwf uid hin\n simp only [TermPrim.entityUIDs] at hin\n split at hin\n · rename_i ... | [
{
"name": "wf_δ_implies_attrs_valid_uids",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 9,
"n_chars": 340,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 2,
"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... | @@ -39,10 +39,82 @@
open Data Spec SymCC Factory
+private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :
+ t.WellFormed εs →
+ ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid
+:= by
+ intro hwf uid hin
+ simp only [TermPrim.entityUIDs] at hin
+ split at hin
+ · rename_i uid'
+ 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_c5e805022cc8_7 | d8f46537f3ad5ed3 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wf_term_implies_valid_uids",
"depth": 1,
"n_commands": 0,
"n_lines": 58,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf uid hin\n unfold Term.entityUIDs at hin\n cases t <;> simp only at hin\n case var | none =>\n h... | [
{
"name": "wf_term_prim_implies_valid_uids",
"text": "private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :\n t.WellFormed εs →\n ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid\n:= by\n intro hwf uid hin\n simp only [TermPrim.entityUIDs] at hin\n split at hin\n · rename_i ... | [
{
"name": "wf_δ_implies_ancs_valid_uids",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 14,
"n_chars": 589,
"n_subproofs": 0,
"n_tactics": 9,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 2,
"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... | @@ -39,10 +39,82 @@
open Data Spec SymCC Factory
+private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :
+ t.WellFormed εs →
+ ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid
+:= by
+ intro hwf uid hin
+ simp only [TermPrim.entityUIDs] at hin
+ split at hin
+ · rename_i uid'
+ 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_c5e805022cc8_8 | 6333414b8f198e1c | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wf_term_implies_valid_uids",
"depth": 1,
"n_commands": 0,
"n_lines": 58,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf uid hin\n unfold Term.entityUIDs at hin\n cases t <;> simp only at hin\n case var | none =>\n h... | [
{
"name": "wf_term_prim_implies_valid_uids",
"text": "private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :\n t.WellFormed εs →\n ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid\n:= by\n intro hwf uid hin\n simp only [TermPrim.entityUIDs] at hin\n split at hin\n · rename_i ... | [
{
"name": "wf_δ_implies_tags_valid_uids",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 14,
"n_chars": 531,
"n_subproofs": 0,
"n_tactics": 9,
"cyclomatic": 2,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 2,
"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... | @@ -39,10 +39,82 @@
open Data Spec SymCC Factory
+private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :
+ t.WellFormed εs →
+ ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid
+:= by
+ intro hwf uid hin
+ simp only [TermPrim.entityUIDs] at hin
+ split at hin
+ · rename_i uid'
+ 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_c5e805022cc8_9 | 7233f94941b54758 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wf_term_implies_valid_uids",
"depth": 1,
"n_commands": 0,
"n_lines": 58,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf uid hin\n unfold Term.entityUIDs at hin\n cases t <;> simp only at hin\n case var | none =>\n h... | [
{
"name": "wf_term_prim_implies_valid_uids",
"text": "private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :\n t.WellFormed εs →\n ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid\n:= by\n intro hwf uid hin\n simp only [TermPrim.entityUIDs] at hin\n split at hin\n · rename_i ... | [
{
"name": "wf_δ_implies_valid_uids",
"fan_in": 1,
"n_deps_direct": 4,
"n_deps_transitive": 7,
"n_lines": 14,
"n_chars": 573,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 6,
"automation_only": false,
"ma... | 7 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,10 +39,82 @@
open Data Spec SymCC Factory
+private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :
+ t.WellFormed εs →
+ ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid
+:= by
+ intro hwf uid hin
+ simp only [TermPrim.entityUIDs] at hin
+ split at hin
+ · rename_i uid'
+ 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_c5e805022cc8_10 | 5603cd2c97124384 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wf_term_implies_valid_uids",
"depth": 1,
"n_commands": 0,
"n_lines": 58,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf uid hin\n unfold Term.entityUIDs at hin\n cases t <;> simp only at hin\n case var | none =>\n h... | [
{
"name": "wf_term_prim_implies_valid_uids",
"text": "private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :\n t.WellFormed εs →\n ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid\n:= by\n intro hwf uid hin\n simp only [TermPrim.entityUIDs] at hin\n split at hin\n · rename_i ... | [
{
"name": "wf_εs_implies_valid_uids",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 8,
"n_lines": 15,
"n_chars": 476,
"n_subproofs": 0,
"n_tactics": 10,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 3,
"automation_only": false,
"... | 8 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,10 +39,82 @@
open Data Spec SymCC Factory
+private theorem wf_term_prim_implies_valid_uids {t : TermPrim} {εs : SymEntities} :
+ t.WellFormed εs →
+ ∀ uid ∈ t.entityUIDs, εs.isValidEntityUID uid
+:= by
+ intro hwf uid hin
+ simp only [TermPrim.entityUIDs] at hin
+ split at hin
+ · rename_i uid'
+ 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_c5e805022cc8_11 | 7629417f70497d68 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "pe_app_wfl'",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwt hwf hlit\n rw [UF_isLiteral_implies_UDF_isLiteral] at hlit\n replace ⟨g, heq, _⟩ := hlit\n subst heq\n simp only ... | [
{
"name": "UF_isLiteral_implies_UDF_isLiteral",
"text": "private theorem UF_isLiteral_implies_UDF_isLiteral {f : UnaryFunction} :\n f.isLiteral ↔ ∃ g, f = .udf g ∧ g.isLiteral\n:= by\n simp only [UnaryFunction.isLiteral]\n split <;>\n simp only [UnaryFunction.udf.injEq, exists_eq_left', Bool.false_eq_tr... | [
{
"name": "pe_app_wfl'",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 388,
"n_subproofs": 0,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 2,
"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... | @@ -39,12 +39,25 @@
open Data Spec SymCC Factory
+private theorem UF_isLiteral_implies_UDF_isLiteral {f : UnaryFunction} :
+ f.isLiteral ↔ ∃ g, f = .udf g ∧ g.isLiteral
+:= by
+ simp only [UnaryFunction.isLiteral]
+ split <;>
+ simp only [UnaryFunction.udf.injEq, exists_eq_left', Bool.false_eq_true, false_and,... | {
"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_c5e805022cc8_12 | 948c334d0e45a150 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "pe_app_wfl'",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwt hwf hlit\n rw [UF_isLiteral_implies_UDF_isLiteral] at hlit\n replace ⟨g, heq, _⟩ := hlit\n subst heq\n simp only ... | [
{
"name": "UF_isLiteral_implies_UDF_isLiteral",
"text": "private theorem UF_isLiteral_implies_UDF_isLiteral {f : UnaryFunction} :\n f.isLiteral ↔ ∃ g, f = .udf g ∧ g.isLiteral\n:= by\n simp only [UnaryFunction.isLiteral]\n split <;>\n simp only [UnaryFunction.udf.injEq, exists_eq_left', Bool.false_eq_tr... | [
{
"name": "wfl_τs_getTag!_value?_some",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 22,
"n_chars": 1179,
"n_subproofs": 5,
"n_tactics": 15,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 4,
"automation_only": false,
... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,12 +39,25 @@
open Data Spec SymCC Factory
+private theorem UF_isLiteral_implies_UDF_isLiteral {f : UnaryFunction} :
+ f.isLiteral ↔ ∃ g, f = .udf g ∧ g.isLiteral
+:= by
+ simp only [UnaryFunction.isLiteral]
+ split <;>
+ simp only [UnaryFunction.udf.injEq, exists_eq_left', Bool.false_eq_true, false_and,... | {
"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_c5e805022cc8_13 | eafe5cbbf3c191e2 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "pe_app_wfl'",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwt hwf hlit\n rw [UF_isLiteral_implies_UDF_isLiteral] at hlit\n replace ⟨g, heq, _⟩ := hlit\n subst heq\n simp only ... | [
{
"name": "UF_isLiteral_implies_UDF_isLiteral",
"text": "private theorem UF_isLiteral_implies_UDF_isLiteral {f : UnaryFunction} :\n f.isLiteral ↔ ∃ g, f = .udf g ∧ g.isLiteral\n:= by\n simp only [UnaryFunction.isLiteral]\n split <;>\n simp only [UnaryFunction.udf.injEq, exists_eq_left', Bool.false_eq_tr... | [
{
"name": "concretize?_wfl_τs_vals_implies_some",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 19,
"n_chars": 726,
"n_subproofs": 2,
"n_tactics": 10,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 3,
"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... | @@ -39,12 +39,25 @@
open Data Spec SymCC Factory
+private theorem UF_isLiteral_implies_UDF_isLiteral {f : UnaryFunction} :
+ f.isLiteral ↔ ∃ g, f = .udf g ∧ g.isLiteral
+:= by
+ simp only [UnaryFunction.isLiteral]
+ split <;>
+ simp only [UnaryFunction.udf.injEq, exists_eq_left', Bool.false_eq_true, false_and,... | {
"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_c5e805022cc8_14 | b94ed7c41d08d59d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 14 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wfl_term_isStringSetType_implies_setOfTags?_some",
"depth": 1,
"n_commands": 0,
"n_lines": 13,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwl hty\n have ⟨s, hs⟩ := wfl_of_type_set_is_set hwl hty\n subst hs\n simp only ... | [
{
"name": "wfl_term_ofStringType_implies_tag?_some",
"text": "private theorem wfl_term_ofStringType_implies_tag?_some {t : Term} {εs : SymEntities} :\n t.WellFormedLiteral εs → t.typeOf = .string →\n ∃ tag, t.tag? = some tag\n:= by\n intro hw hty\n simp only [Term.tag?]\n split\n · simp only [Option.s... | [
{
"name": "concretize?_wfl_δ_implies_some",
"fan_in": 1,
"n_deps_direct": 5,
"n_deps_transitive": 9,
"n_lines": 44,
"n_chars": 2543,
"n_subproofs": 9,
"n_tactics": 36,
"cyclomatic": 2,
"n_automation": 12,
"n_rewrites": 2,
"n_structural": 2,
"automation_only": fals... | 9 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
open Data Spec SymCC Factory
+private theorem wfl_term_ofStringType_implies_tag?_some {t : Term} {εs : SymEntities} :
+ t.WellFormedLiteral εs → t.typeOf = .string →
+ ∃ tag, t.tag? = some tag
+:= by
+ intro hw hty
+ simp only [Term.tag?]
+ split
+ · simp only [Option.some.injEq, exists_eq... | {
"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_c5e805022cc8_15 | bd531c188e7c0836 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 15 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wfl_term_isStringSetType_implies_setOfTags?_some",
"depth": 1,
"n_commands": 0,
"n_lines": 13,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwl hty\n have ⟨s, hs⟩ := wfl_of_type_set_is_set hwl hty\n subst hs\n simp only ... | [
{
"name": "wfl_term_ofStringType_implies_tag?_some",
"text": "private theorem wfl_term_ofStringType_implies_tag?_some {t : Term} {εs : SymEntities} :\n t.WellFormedLiteral εs → t.typeOf = .string →\n ∃ tag, t.tag? = some tag\n:= by\n intro hw hty\n simp only [Term.tag?]\n split\n · simp only [Option.s... | [
{
"name": "concretize?_wfl_εs_implies_entityData?_some",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 10,
"n_lines": 23,
"n_chars": 977,
"n_subproofs": 1,
"n_tactics": 17,
"cyclomatic": 4,
"n_automation": 7,
"n_rewrites": 0,
"n_structural": 3,
"automation... | 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... | @@ -39,6 +39,19 @@
open Data Spec SymCC Factory
+private theorem wfl_term_ofStringType_implies_tag?_some {t : Term} {εs : SymEntities} :
+ t.WellFormedLiteral εs → t.typeOf = .string →
+ ∃ tag, t.tag? = some tag
+:= by
+ intro hw hty
+ simp only [Term.tag?]
+ split
+ · simp only [Option.some.injEq, exists_eq... | {
"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_c5e805022cc8_16 | b7a64a27698da976 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 16 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wfl_term_isStringSetType_implies_setOfTags?_some",
"depth": 1,
"n_commands": 0,
"n_lines": 13,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwl hty\n have ⟨s, hs⟩ := wfl_of_type_set_is_set hwl hty\n subst hs\n simp only ... | [
{
"name": "wfl_term_ofStringType_implies_tag?_some",
"text": "private theorem wfl_term_ofStringType_implies_tag?_some {t : Term} {εs : SymEntities} :\n t.WellFormedLiteral εs → t.typeOf = .string →\n ∃ tag, t.tag? = some tag\n:= by\n intro hw hty\n simp only [Term.tag?]\n split\n · simp only [Option.s... | [
{
"name": "concretize?_wfl_εs_implies_some",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 20,
"n_lines": 19,
"n_chars": 825,
"n_subproofs": 1,
"n_tactics": 13,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 5,
"automation_only": fals... | 20 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
open Data Spec SymCC Factory
+private theorem wfl_term_ofStringType_implies_tag?_some {t : Term} {εs : SymEntities} :
+ t.WellFormedLiteral εs → t.typeOf = .string →
+ ∃ tag, t.tag? = some tag
+:= by
+ intro hw hty
+ simp only [Term.tag?]
+ split
+ · simp only [Option.some.injEq, exists_eq... | {
"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_c5e805022cc8_17 | e04b8d5cccdeba60 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/Lit.lean | Lit | 17 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 24 | 1 | [
{
"theorem_name": "wfl_term_isStringSetType_implies_setOfTags?_some",
"depth": 1,
"n_commands": 0,
"n_lines": 13,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwl hty\n have ⟨s, hs⟩ := wfl_of_type_set_is_set hwl hty\n subst hs\n simp only ... | [
{
"name": "wfl_term_ofStringType_implies_tag?_some",
"text": "private theorem wfl_term_ofStringType_implies_tag?_some {t : Term} {εs : SymEntities} :\n t.WellFormedLiteral εs → t.typeOf = .string →\n ∃ tag, t.tag? = some tag\n:= by\n intro hw hty\n simp only [Term.tag?]\n split\n · simp only [Option.s... | [
{
"name": "concretize?_wfl_implies_some",
"fan_in": 0,
"n_deps_direct": 4,
"n_deps_transitive": 24,
"n_lines": 16,
"n_chars": 731,
"n_subproofs": 5,
"n_tactics": 11,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
... | 24 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,19 @@
open Data Spec SymCC Factory
+private theorem wfl_term_ofStringType_implies_tag?_some {t : Term} {εs : SymEntities} :
+ t.WellFormedLiteral εs → t.typeOf = .string →
+ ∃ tag, t.tag? = some tag
+:= by
+ intro hw hty
+ simp only [Term.tag?]
+ split
+ · simp only [Option.some.injEq, exists_eq... | {
"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_252dd26c0b8e_1 | a67fd15e47438c05 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Levels/CheckLevel.lean | CheckLevel | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 1 | [
{
"theorem_name": "entity_access_level_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 140,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases tx\n case var =>\n simp only [TypedExpr.checkEntityAccessLevel, iff_true]\n constructor\n case lit... | [
{
"name": "level_spec",
"text": "theorem level_spec {tx : TypedExpr} {env : TypeEnv} {n : Nat}:\n (tx.AtLevel env n) ↔ (tx.checkLevel env n = true)\n:= by\n cases tx\n case lit =>\n simp only [TypedExpr.checkLevel, iff_true]\n constructor\n case var =>\n simp only [TypedExpr.checkLevel, iff_tru... | [
{
"name": "entity_access_level_spec",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 144,
"n_chars": 5257,
"n_subproofs": 17,
"n_tactics": 149,
"cyclomatic": 30,
"n_automation": 37,
"n_rewrites": 10,
"n_structural": 54,
"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... | @@ -147,7 +147,302 @@
theorem entity_access_level_spec {tx : TypedExpr} {env : TypeEnv} {n nmax : Nat} {path : List Attr} :
(tx.EntityAccessAtLevel env n nmax path) ↔ (tx.checkEntityAccessLevel env n nmax path)
-:= sorry
+:= by
+ cases tx
+ case var =>
+ simp only [TypedExpr.checkEntityAccessLevel, iff_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_252dd26c0b8e_2 | 65581de665a7ebfc | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Levels/CheckLevel.lean | CheckLevel | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 3 | 1 | [
{
"theorem_name": "level_spec",
"depth": 1,
"n_commands": 0,
"n_lines": 153,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases tx\n case lit =>\n simp only [TypedExpr.checkLevel, iff_true]\n constructor\n case var =>\n simp only [TypedE... | [
{
"name": "entity_access_level_spec",
"text": "theorem entity_access_level_spec {tx : TypedExpr} {env : TypeEnv} {n nmax : Nat} {path : List Attr} :\n (tx.EntityAccessAtLevel env n nmax path) ↔ (tx.checkEntityAccessLevel env n nmax path)\n:= by\n cases tx\n case var =>\n simp only [TypedExpr.checkEnti... | [
{
"name": "level_spec",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 157,
"n_chars": 4760,
"n_subproofs": 23,
"n_tactics": 159,
"cyclomatic": 38,
"n_automation": 36,
"n_rewrites": 14,
"n_structural": 60,
"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... | @@ -145,9 +145,304 @@
mutual
+theorem entity_access_level_spec {tx : TypedExpr} {env : TypeEnv} {n nmax : Nat} {path : List Attr} :
+ (tx.EntityAccessAtLevel env n nmax path) ↔ (tx.checkEntityAccessLevel env n nmax path)
+:= by
+ cases tx
+ case var =>
+ simp only [TypedExpr.checkEntityAccessLevel, iff_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_a5b49229273f_0 | 4245512304e80cef | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 3 | [
{
"theorem_name": "mapUnion₁_eq_mapUnion",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n apply mapUnion_pmap_subtype",
"n_chars": 33,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"... | [
{
"name": "mapUnion_pmap_subtype",
"text": "theorem mapUnion_pmap_subtype\n [Union β] [EmptyCollection β]\n {p : α → Prop}\n (f : α → β)\n (as : List α)\n (h : ∀ a, a ∈ as → p a) :\n List.mapUnion (λ x : { a : α // p a } => f x.val) (List.pmap Subtype.mk as h)\n =\n List.mapUnion f as\n:= by\n... | [
{
"name": "mapUnion₁_eq_mapUnion",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 217,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"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... | @@ -32,9 +32,23 @@
namespace List
+theorem mapUnion_pmap_subtype
+ [Union β] [EmptyCollection β]
+ {p : α → Prop}
+ (f : α → β)
+ (as : List α)
+ (h : ∀ a, a ∈ as → p a) :
+ List.mapUnion (λ x : { a : α // p a } => f x.val) (List.pmap Subtype.mk as h)
+ =
+ List.mapUnion f as
+:= by
+ simp only [map... | {
"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_a5b49229273f_1 | 06932cd6d1b1ce11 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 3 | [
{
"theorem_name": "mapUnion₁_eq_mapUnion",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n apply mapUnion_pmap_subtype",
"n_chars": 33,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"... | [
{
"name": "mapUnion_pmap_subtype",
"text": "theorem mapUnion_pmap_subtype\n [Union β] [EmptyCollection β]\n {p : α → Prop}\n (f : α → β)\n (as : List α)\n (h : ∀ a, a ∈ as → p a) :\n List.mapUnion (λ x : { a : α // p a } => f x.val) (List.pmap Subtype.mk as h)\n =\n List.mapUnion f as\n:= by\n... | [
{
"name": "mapUnion₂_eq_mapUnion",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 311,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"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... | @@ -32,9 +32,23 @@
namespace List
+theorem mapUnion_pmap_subtype
+ [Union β] [EmptyCollection β]
+ {p : α → Prop}
+ (f : α → β)
+ (as : List α)
+ (h : ∀ a, a ∈ as → p a) :
+ List.mapUnion (λ x : { a : α // p a } => f x.val) (List.pmap Subtype.mk as h)
+ =
+ List.mapUnion f as
+:= by
+ simp only [map... | {
"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_a5b49229273f_2 | 0fc5e006344e2207 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 3 | [
{
"theorem_name": "mapUnion₁_eq_mapUnion",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n apply mapUnion_pmap_subtype",
"n_chars": 33,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"... | [
{
"name": "mapUnion_pmap_subtype",
"text": "theorem mapUnion_pmap_subtype\n [Union β] [EmptyCollection β]\n {p : α → Prop}\n (f : α → β)\n (as : List α)\n (h : ∀ a, a ∈ as → p a) :\n List.mapUnion (λ x : { a : α // p a } => f x.val) (List.pmap Subtype.mk as h)\n =\n List.mapUnion f as\n:= by\n... | [
{
"name": "mapUnion₃_eq_mapUnion",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 6,
"n_chars": 317,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"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... | @@ -32,9 +32,23 @@
namespace List
+theorem mapUnion_pmap_subtype
+ [Union β] [EmptyCollection β]
+ {p : α → Prop}
+ (f : α → β)
+ (as : List α)
+ (h : ∀ a, a ∈ as → p a) :
+ List.mapUnion (λ x : { a : α // p a } => f x.val) (List.pmap Subtype.mk as h)
+ =
+ List.mapUnion f as
+:= by
+ simp only [map... | {
"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_a5b49229273f_3 | 3222e076fbf8e05e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "mapUnion_cons",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf\n simp only [List.mapUnion, EmptyCollection.emptyCollection, List.foldl_cons]\n rw [Set.union_empty_left (hwf hd... | [
{
"name": "foldl_union_init",
"text": "private theorem foldl_union_init {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {xs : List β} {a b : Set α} :\n List.foldl (λ acc x => acc ∪ f x) (a ∪ b) xs = a ∪ List.foldl (λ acc x => acc ∪ f x) b xs\n:= by\n induction xs generalizing a b\n case nil =>\... | [
{
"name": "mapUnion_cons",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 16,
"n_chars": 719,
"n_subproofs": 1,
"n_tactics": 11,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 7,
"n_structural": 1,
"automation_only": false,
"max_nesting... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,10 +39,31 @@
/-! ### List.mapUnion for sets (`f` returning `Set`) -/
+private theorem foldl_union_init {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {xs : List β} {a b : Set α} :
+ List.foldl (λ acc x => acc ∪ f x) (a ∪ b) xs = a ∪ List.foldl (λ acc x => acc ∪ f x) b xs
+:= by
+ induction xs g... | {
"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_a5b49229273f_4 | 0a85f186cc81396d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "mem_mapUnion_iff_mem_exists",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro e\n simp only [List.mapUnion, EmptyCollection.emptyCollection]\n cases xs\n case nil => simp [Set.not_... | [
{
"name": "mem_foldl_union_iff_mem_or_exists",
"text": "private theorem mem_foldl_union_iff_mem_or_exists {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {xs : List β} {init : Set α} {a : α} :\n a ∈ List.foldl (λ as b => as ∪ f b) init xs ↔ (a ∈ init ∨ ∃ s ∈ xs, a ∈ f s)\n:= by\n induction xs ge... | [
{
"name": "mem_mapUnion_iff_mem_exists",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 12,
"n_chars": 537,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 2,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -51,9 +51,34 @@
:= by
simp [List.mapUnion, List.foldl_map]
+private theorem mem_foldl_union_iff_mem_or_exists {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {xs : List β} {init : Set α} {a : α} :
+ a ∈ List.foldl (λ as b => as ∪ f b) init xs ↔ (a ∈ init ∨ ∃ s ∈ xs, a ∈ f s)
+:= by
+ induction xs g... | {
"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_a5b49229273f_5 | 80ddfe78ea30c26e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "mem_mapUnion_iff_mem_exists",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro e\n simp only [List.mapUnion, EmptyCollection.emptyCollection]\n cases xs\n case nil => simp [Set.not_... | [
{
"name": "mem_foldl_union_iff_mem_or_exists",
"text": "private theorem mem_foldl_union_iff_mem_or_exists {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {xs : List β} {init : Set α} {a : α} :\n a ∈ List.foldl (λ as b => as ∪ f b) init xs ↔ (a ∈ init ∨ ∃ s ∈ xs, a ∈ f s)\n:= by\n induction xs ge... | [
{
"name": "mem_mem_implies_mem_mapUnion",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 8,
"n_chars": 262,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 2,
"automation_only": false,
... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -51,9 +51,34 @@
:= by
simp [List.mapUnion, List.foldl_map]
+private theorem mem_foldl_union_iff_mem_or_exists {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {xs : List β} {init : Set α} {a : α} :
+ a ∈ List.foldl (λ as b => as ∪ f b) init xs ↔ (a ∈ init ∨ ∃ s ∈ xs, a ∈ f s)
+:= by
+ induction xs g... | {
"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_a5b49229273f_6 | 70f4cea9daa1541a | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "mem_mem_implies_mem_mapUnion",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro he hs\n rw [mem_mapUnion_iff_mem_exists]\n exists s",
"n_chars": 63,
"n_subproofs": 0,
"n_... | [
{
"name": "mem_mapUnion_iff_mem_exists",
"text": "public theorem mem_mapUnion_iff_mem_exists {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {xs : List β} :\n ∀ e, e ∈ xs.mapUnion f ↔ ∃ s ∈ xs, e ∈ f s\n:= by\n intro e\n simp only [List.mapUnion, EmptyCollection.emptyCollection]\n cases xs\n ... | [
{
"name": "mem_implies_subset_mapUnion",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 8,
"n_chars": 285,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 2,
"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... | @@ -69,9 +69,23 @@
rw [← or_assoc, ← Set.mem_union] at h
exact ih.mpr h
+public theorem mem_mapUnion_iff_mem_exists {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {xs : List β} :
+ ∀ e, e ∈ xs.mapUnion f ↔ ∃ s ∈ xs, e ∈ f s
+:= by
+ intro e
+ simp only [List.mapUnion, EmptyCollection.empty... | {
"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_a5b49229273f_7 | 6d090f56479aa329 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "mapUnion_cons",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf\n simp only [List.mapUnion, EmptyCollection.emptyCollection, List.foldl_cons]\n rw [Set.union_empty_left (hwf hd... | [
{
"name": "foldl_union_init",
"text": "private theorem foldl_union_init {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {xs : List β} {a b : Set α} :\n List.foldl (λ acc x => acc ∪ f x) (a ∪ b) xs = a ∪ List.foldl (λ acc x => acc ∪ f x) b xs\n:= by\n induction xs generalizing a b\n case nil =>\... | [
{
"name": "mapUnion_append",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 4,
"n_lines": 24,
"n_chars": 792,
"n_subproofs": 0,
"n_tactics": 25,
"cyclomatic": 4,
"n_automation": 6,
"n_rewrites": 4,
"n_structural": 11,
"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... | @@ -56,10 +56,31 @@
simp only [List.foldl_cons]
exact ih _ (Set.union_wf _ _)
+private theorem foldl_union_init {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {xs : List β} {a b : Set α} :
+ List.foldl (λ acc x => acc ∪ f x) (a ∪ b) xs = a ∪ List.foldl (λ acc x => acc ∪ f x) b xs
+:= by
+ induc... | {
"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_a5b49229273f_8 | 952c65748f1e36c0 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "mapUnion_cons",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf\n simp only [List.mapUnion, EmptyCollection.emptyCollection, List.foldl_cons]\n rw [Set.union_empty_left (hwf hd... | [
{
"name": "foldl_union_init",
"text": "private theorem foldl_union_init {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {xs : List β} {a b : Set α} :\n List.foldl (λ acc x => acc ∪ f x) (a ∪ b) xs = a ∪ List.foldl (λ acc x => acc ∪ f x) b xs\n:= by\n induction xs generalizing a b\n case nil =>\... | [
{
"name": "mapUnion_union_mapUnion",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 5,
"n_lines": 10,
"n_chars": 447,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"ma... | 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... | @@ -56,10 +56,31 @@
simp only [List.foldl_cons]
exact ih _ (Set.union_wf _ _)
+private theorem foldl_union_init {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {xs : List β} {a b : Set α} :
+ List.foldl (λ acc x => acc ∪ f x) (a ∪ b) xs = a ∪ List.foldl (λ acc x => acc ∪ f x) b xs
+:= by
+ induc... | {
"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_a5b49229273f_9 | 54c315df1fee3525 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 2 | [
{
"theorem_name": "mapUnion_append",
"depth": 1,
"n_commands": 0,
"n_lines": 19,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwf\n induction xs\n case nil =>\n simp only [List.nil_append, List.mapUnion_nil]\n change _ = Set.empty ∪ y... | [
{
"name": "mapUnion_cons",
"text": "public theorem mapUnion_cons {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {hd : β} {tl : List β} :\n (∀ b ∈ hd :: tl, (f b).WellFormed) →\n (hd :: tl).mapUnion f = f hd ∪ tl.mapUnion f\n:= by\n intro hwf\n simp only [List.mapUnion, EmptyCollection.emptyCo... | [
{
"name": "mapUnion_union_mapUnion'",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 31,
"n_chars": 1323,
"n_subproofs": 1,
"n_tactics": 32,
"cyclomatic": 5,
"n_automation": 3,
"n_rewrites": 7,
"n_structural": 14,
"automation_only": false,
... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -50,6 +50,21 @@
rw [Set.union_assoc]
rw [ih (a := a) (b := b ∪ f hd)]
+public theorem mapUnion_cons {α β} [LT α] [StrictLT α] [DecidableLT α] {f : β → Set α} {hd : β} {tl : List β} :
+ (∀ b ∈ hd :: tl, (f b).WellFormed) →
+ (hd :: tl).mapUnion f = f hd ∪ tl.mapUnion f
+:= by
+ intro hwf
+ simp only [... | {
"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_a5b49229273f_10 | c862a309ca1f076d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "foldl_union_swap_middle",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases xs\n case nil =>\n simp only [List.nil_append, List.foldl_cons, List.singleton_append]\n case cons xhd x... | [
{
"name": "foldl_union_swap_front",
"text": "private theorem foldl_union_swap_front {α} [LT α] [StrictLT α] [DecidableLT α] [DecidableEq α] (x₁ x₂ : Set α) {xs : List (Set α)} {a : Set α}:\n (x₁ :: x₂ :: xs).foldl (· ∪ ·) a = (x₂ :: x₁ :: xs).foldl (· ∪ ·) a\n:= by\n simp only [List.foldl_cons, Set.union_... | [
{
"name": "foldl_union_swap_middle",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 12,
"n_chars": 543,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 2,
"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... | @@ -76,9 +76,22 @@
apply ih
apply Set.union_empty_right (Set.union_wf _ _)
+private theorem foldl_union_swap_front {α} [LT α] [StrictLT α] [DecidableLT α] [DecidableEq α] (x₁ x₂ : Set α) {xs : List (Set α)} {a : Set α}:
+ (x₁ :: x₂ :: xs).foldl (· ∪ ·) a = (x₂ :: x₁ :: xs).foldl (· ∪ ·) a
+:= 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_a5b49229273f_11 | 80632efe2d0dfc65 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "foldl_union_swap_middle",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases xs\n case nil =>\n simp only [List.nil_append, List.foldl_cons, List.singleton_append]\n case cons xhd x... | [
{
"name": "foldl_union_swap_front",
"text": "private theorem foldl_union_swap_front {α} [LT α] [StrictLT α] [DecidableLT α] [DecidableEq α] (x₁ x₂ : Set α) {xs : List (Set α)} {a : Set α}:\n (x₁ :: x₂ :: xs).foldl (· ∪ ·) a = (x₂ :: x₁ :: xs).foldl (· ∪ ·) a\n:= by\n simp only [List.foldl_cons, Set.union_... | [
{
"name": "foldl_union_comm",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 15,
"n_chars": 660,
"n_subproofs": 0,
"n_tactics": 12,
"cyclomatic": 4,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 3,
"automation_only": false,
"max_nest... | 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... | @@ -76,9 +76,22 @@
apply ih
apply Set.union_empty_right (Set.union_wf _ _)
+private theorem foldl_union_swap_front {α} [LT α] [StrictLT α] [DecidableLT α] [DecidableEq α] (x₁ x₂ : Set α) {xs : List (Set α)} {a : Set α}:
+ (x₁ :: x₂ :: xs).foldl (· ∪ ·) a = (x₂ :: x₁ :: xs).foldl (· ∪ ·) a
+:= 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_a5b49229273f_12 | 050a8febeeb68da8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "foldl_union_swap_middle",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases xs\n case nil =>\n simp only [List.nil_append, List.foldl_cons, List.singleton_append]\n case cons xhd x... | [
{
"name": "foldl_union_swap_front",
"text": "private theorem foldl_union_swap_front {α} [LT α] [StrictLT α] [DecidableLT α] [DecidableEq α] (x₁ x₂ : Set α) {xs : List (Set α)} {a : Set α}:\n (x₁ :: x₂ :: xs).foldl (· ∪ ·) a = (x₂ :: x₁ :: xs).foldl (· ∪ ·) a\n:= by\n simp only [List.foldl_cons, Set.union_... | [
{
"name": "mapUnion_comm",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 8,
"n_chars": 347,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": false,
"max_nesting":... | 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... | @@ -88,9 +88,22 @@
simp only [List.foldl_cons, id_eq, List.map_cons]
apply ih
+private theorem foldl_union_swap_front {α} [LT α] [StrictLT α] [DecidableLT α] [DecidableEq α] (x₁ x₂ : Set α) {xs : List (Set α)} {a : Set α}:
+ (x₁ :: x₂ :: xs).foldl (· ∪ ·) a = (x₂ :: x₁ :: xs).foldl (· ∪ ·) a
+:= by
+ simp... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_a5b49229273f_13 | e73c9e6e1aa27d5f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "foldl_union_comm",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases xs <;> cases ys\n case nil.nil =>\n simp only [List.append_nil]\n case nil.cons | cons.nil =>\n simp only [... | [
{
"name": "foldl_union_swap_middle",
"text": "private theorem foldl_union_swap_middle {α} [LT α] [StrictLT α] [DecidableLT α] [DecidableEq α] (y : Set α) {xs ys : List (Set α)} {a : Set α}:\n (xs ++ y :: ys).foldl (· ∪ ·) a = (y :: xs ++ ys).foldl (· ∪ ·) a\n:= by\n cases xs\n case nil =>\n simp only ... | [
{
"name": "eqv_implies_foldl_union_eq",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 41,
"n_chars": 1807,
"n_subproofs": 2,
"n_tactics": 36,
"cyclomatic": 4,
"n_automation": 8,
"n_rewrites": 1,
"n_structural": 12,
"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... | @@ -82,9 +82,30 @@
simp only [List.foldl_cons, Set.union_assoc]
rw [Set.union_comm x₁]
+private theorem foldl_union_swap_middle {α} [LT α] [StrictLT α] [DecidableLT α] [DecidableEq α] (y : Set α) {xs ys : List (Set α)} {a : Set α}:
+ (xs ++ y :: ys).foldl (· ∪ ·) a = (y :: xs ++ ys).foldl (· ∪ ·) a
+:= by
+ 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_a5b49229273f_14 | 898b7fbf82d25895 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Data/MapUnion.lean | MapUnion | 14 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "foldl_union_swap_middle",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases xs\n case nil =>\n simp only [List.nil_append, List.foldl_cons, List.singleton_append]\n case cons xhd x... | [
{
"name": "foldl_union_swap_front",
"text": "private theorem foldl_union_swap_front {α} [LT α] [StrictLT α] [DecidableLT α] [DecidableEq α] (x₁ x₂ : Set α) {xs : List (Set α)} {a : Set α}:\n (x₁ :: x₂ :: xs).foldl (· ∪ ·) a = (x₂ :: x₁ :: xs).foldl (· ∪ ·) a\n:= by\n simp only [List.foldl_cons, Set.union_... | [
{
"name": "map_eqv_implies_mapUnion_eq",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 6,
"n_lines": 9,
"n_chars": 413,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"n_structural": 2,
"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... | @@ -88,9 +88,22 @@
simp only [List.foldl_cons, id_eq, List.map_cons]
apply ih
+private theorem foldl_union_swap_front {α} [LT α] [StrictLT α] [DecidableLT α] [DecidableEq α] (x₁ x₂ : Set α) {xs : List (Set α)} {a : Set α}:
+ (x₁ :: x₂ :: xs).foldl (· ∪ ·) a = (x₂ :: x₁ :: xs).foldl (· ∪ ·) a
+:= by
+ simp... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_008ff2e8dd47_0 | 6a6473319b169f5d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 1 | [
{
"theorem_name": "env_symbolize?_same_entity_data_standard_same_tag",
"depth": 1,
"n_commands": 0,
"n_lines": 295,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨_, ⟨hwf_entities, _⟩⟩ := hwf_env\n have ⟨hwf_data_attrs, _, _, hwf_data_tags_map... | [
{
"name": "env_symbolize?_lookup_tag_keys",
"text": "private theorem env_symbolize?_lookup_tag_keys\n {Γ : TypeEnv} {env : Env}\n {ety : EntityType} {entry : StandardSchemaEntry}\n {tagTy : CedarType}\n (hfind : Γ.ets.find? ety = .some (.standard entry))\n (htags : entry.tags = .some tagTy) :\n (env.s... | [
{
"name": "env_symbolize?_same_entity_data_standard_same_tag",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 309,
"n_chars": 12531,
"n_subproofs": 45,
"n_tactics": 293,
"cyclomatic": 11,
"n_automation": 72,
"n_rewrites": 9,
"n_structural": 34,
... | 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... | @@ -38,6 +38,50 @@
open Cedar.Validation
open Cedar.Data
+private theorem env_symbolize?_lookup_tag_keys
+ {Γ : TypeEnv} {env : Env}
+ {ety : EntityType} {entry : StandardSchemaEntry}
+ {tagTy : CedarType}
+ (hfind : Γ.ets.find? ety = .some (.standard entry))
+ (htags : entry.tags = .some tagTy) :
+ (env.symb... | {
"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_008ff2e8dd47_1 | 8ebfdc1a29cefd75 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 1 | [
{
"theorem_name": "env_symbolize?_same_entity_data_standard_same_tag",
"depth": 1,
"n_commands": 0,
"n_lines": 295,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨_, ⟨hwf_entities, _⟩⟩ := hwf_env\n have ⟨hwf_data_attrs, _, _, hwf_data_tags_map... | [
{
"name": "env_symbolize?_lookup_tag_vals",
"text": "private theorem env_symbolize?_lookup_tag_vals\n {Γ : TypeEnv} {env : Env}\n {ety : EntityType} {tagTy : CedarType} {entry : StandardSchemaEntry}\n (hfind : Γ.ets.find? ety = .some (.standard entry))\n (hfind_tagTy : entry.tags = .some tagTy) :\n (en... | [
{
"name": "env_symbolize?_same_entity_data_standard",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 5,
"n_lines": 139,
"n_chars": 5138,
"n_subproofs": 14,
"n_tactics": 125,
"cyclomatic": 7,
"n_automation": 34,
"n_rewrites": 5,
"n_structural": 24,
"automati... | 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... | @@ -114,6 +114,48 @@
ne_comm.mp uuf_attrs_tag_keys_no_confusion,
]
+private theorem env_symbolize?_lookup_tag_vals
+ {Γ : TypeEnv} {env : Env}
+ {ety : EntityType} {tagTy : CedarType} {entry : StandardSchemaEntry}
+ (hfind : Γ.ets.find? ety = .some (.standard entry))
+ (hfind_tagTy : entry.tags = .som... | {
"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_008ff2e8dd47_2 | 7fe46b6912f16cde | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 1 | [
{
"theorem_name": "env_symbolize?_same_entity_data_standard",
"depth": 1,
"n_commands": 0,
"n_lines": 125,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨_, ⟨hwf_entities, _⟩⟩ := hwf_env\n have ⟨hwf_data_attrs, _, hwf_data_ancs, hwf_data_tags,... | [
{
"name": "env_symbolize?_lookup_ancs",
"text": "private theorem env_symbolize?_lookup_ancs\n {Γ : TypeEnv} {env : Env}\n {ety : EntityType} {ancTy : EntityType}\n {entry : StandardSchemaEntry}\n (hfind : Γ.ets.find? ety = .some (.standard entry))\n (hfind_ancTy : ancTy ∈ entry.ancestors) :\n (env.sym... | [
{
"name": "env_symbolize?_same_entities_ordinary",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 7,
"n_lines": 52,
"n_chars": 1941,
"n_subproofs": 5,
"n_tactics": 38,
"cyclomatic": 2,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 4,
"automation_only"... | 7 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -156,6 +156,63 @@
EntitySchemaEntry.tags?,
]
+private theorem env_symbolize?_lookup_ancs
+ {Γ : TypeEnv} {env : Env}
+ {ety : EntityType} {ancTy : EntityType}
+ {entry : StandardSchemaEntry}
+ (hfind : Γ.ets.find? ety = .some (.standard entry))
+ (hfind_ancTy : ancTy ∈ entry.ancestors) :
+ (env.s... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_008ff2e8dd47_3 | b700af49003e949f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 1 | [
{
"theorem_name": "env_symbolize?_same_entity_data_standard",
"depth": 1,
"n_commands": 0,
"n_lines": 125,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨_, ⟨hwf_entities, _⟩⟩ := hwf_env\n have ⟨hwf_data_attrs, _, hwf_data_ancs, hwf_data_tags,... | [
{
"name": "env_symbolize?_same_entity_data_standard_same_tag",
"text": "private theorem env_symbolize?_same_entity_data_standard_same_tag\n {Γ : TypeEnv} {env : Env}\n {uid : EntityUID} {data : EntityData} {entry : StandardSchemaEntry}\n (hwf_env : env.StronglyWellFormed)\n (hinst : InstanceOfWellFormed... | [
{
"name": "env_symbolize?_same_entities",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 9,
"n_lines": 16,
"n_chars": 623,
"n_subproofs": 1,
"n_tactics": 9,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 5,
"automation_only": false,
... | 9 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a 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... | @@ -213,6 +213,314 @@
simp [heq]
· simp
+private theorem env_symbolize?_same_entity_data_standard_same_tag
+ {Γ : TypeEnv} {env : Env}
+ {uid : EntityUID} {data : EntityData} {entry : StandardSchemaEntry}
+ (hwf_env : env.StronglyWellFormed)
+ (hinst : InstanceOfWellFormedEnvironment env.request env.e... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_008ff2e8dd47_4 | 5e9ecb5d7cdf4f27 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 6 | [
{
"theorem_name": "env_symbolize?_wf_vars",
"depth": 1,
"n_commands": 0,
"n_lines": 80,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨⟨hwf_princ, hwf_action, hwf_resource, hwf_context⟩, _⟩ := hwf_env\n have ⟨hwf_Γ, _, _⟩ := hinst\n have ⟨hwf... | [
{
"name": "defaultLitWithDefaultEid_wf",
"text": "private theorem defaultLitWithDefaultEid_wf\n {Γ : TypeEnv} {ty : TermType}\n (hwf_Γ : Γ.WellFormed)\n (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :\n (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities\n:= by\n apply default_lit... | [
{
"name": "env_symbolize?_wf_vars",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 91,
"n_chars": 3245,
"n_subproofs": 5,
"n_tactics": 87,
"cyclomatic": 25,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 45,
"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... | @@ -38,6 +38,89 @@
open Cedar.Validation
open Cedar.Data
+private theorem defaultLitWithDefaultEid_wf
+ {Γ : TypeEnv} {ty : TermType}
+ (hwf_Γ : Γ.WellFormed)
+ (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :
+ (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities
+:= by
+ apply default_lit... | {
"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_008ff2e8dd47_5 | 6a4f4bc1199fa3a7 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 6 | [
{
"theorem_name": "env_symbolize?_wf_vars",
"depth": 1,
"n_commands": 0,
"n_lines": 80,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨⟨hwf_princ, hwf_action, hwf_resource, hwf_context⟩, _⟩ := hwf_env\n have ⟨hwf_Γ, _, _⟩ := hinst\n have ⟨hwf... | [
{
"name": "defaultLitWithDefaultEid_wf",
"text": "private theorem defaultLitWithDefaultEid_wf\n {Γ : TypeEnv} {ty : TermType}\n (hwf_Γ : Γ.WellFormed)\n (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :\n (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities\n:= by\n apply default_lit... | [
{
"name": "default_udf_wf",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 21,
"n_chars": 605,
"n_subproofs": 0,
"n_tactics": 13,
"cyclomatic": 1,
"n_automation": 8,
"n_rewrites": 0,
"n_structural": 3,
"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... | @@ -38,6 +38,89 @@
open Cedar.Validation
open Cedar.Data
+private theorem defaultLitWithDefaultEid_wf
+ {Γ : TypeEnv} {ty : TermType}
+ (hwf_Γ : Γ.WellFormed)
+ (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :
+ (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities
+:= by
+ apply default_lit... | {
"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_008ff2e8dd47_6 | a360362bcb607cb9 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 6 | [
{
"theorem_name": "env_symbolize?_wf_vars",
"depth": 1,
"n_commands": 0,
"n_lines": 80,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨⟨hwf_princ, hwf_action, hwf_resource, hwf_context⟩, _⟩ := hwf_env\n have ⟨hwf_Γ, _, _⟩ := hinst\n have ⟨hwf... | [
{
"name": "defaultLitWithDefaultEid_wf",
"text": "private theorem defaultLitWithDefaultEid_wf\n {Γ : TypeEnv} {ty : TermType}\n (hwf_Γ : Γ.WellFormed)\n (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :\n (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities\n:= by\n apply default_lit... | [
{
"name": "env_symbolize?_attrs_wf",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 76,
"n_chars": 2913,
"n_subproofs": 14,
"n_tactics": 63,
"cyclomatic": 5,
"n_automation": 19,
"n_rewrites": 0,
"n_structural": 16,
"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... | @@ -38,6 +38,89 @@
open Cedar.Validation
open Cedar.Data
+private theorem defaultLitWithDefaultEid_wf
+ {Γ : TypeEnv} {ty : TermType}
+ (hwf_Γ : Γ.WellFormed)
+ (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :
+ (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities
+:= by
+ apply default_lit... | {
"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_008ff2e8dd47_7 | f687b0a32920cba7 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 6 | [
{
"theorem_name": "env_symbolize?_wf_vars",
"depth": 1,
"n_commands": 0,
"n_lines": 80,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨⟨hwf_princ, hwf_action, hwf_resource, hwf_context⟩, _⟩ := hwf_env\n have ⟨hwf_Γ, _, _⟩ := hinst\n have ⟨hwf... | [
{
"name": "defaultLitWithDefaultEid_wf",
"text": "private theorem defaultLitWithDefaultEid_wf\n {Γ : TypeEnv} {ty : TermType}\n (hwf_Γ : Γ.WellFormed)\n (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :\n (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities\n:= by\n apply default_lit... | [
{
"name": "env_symbolize?_tags_wf",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 167,
"n_chars": 6743,
"n_subproofs": 26,
"n_tactics": 152,
"cyclomatic": 19,
"n_automation": 46,
"n_rewrites": 5,
"n_structural": 44,
"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... | @@ -38,6 +38,89 @@
open Cedar.Validation
open Cedar.Data
+private theorem defaultLitWithDefaultEid_wf
+ {Γ : TypeEnv} {ty : TermType}
+ (hwf_Γ : Γ.WellFormed)
+ (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :
+ (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities
+:= by
+ apply default_lit... | {
"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_008ff2e8dd47_8 | 276d8c60f08e1a55 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 6 | [
{
"theorem_name": "env_symbolize?_wf_vars",
"depth": 1,
"n_commands": 0,
"n_lines": 80,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨⟨hwf_princ, hwf_action, hwf_resource, hwf_context⟩, _⟩ := hwf_env\n have ⟨hwf_Γ, _, _⟩ := hinst\n have ⟨hwf... | [
{
"name": "defaultLitWithDefaultEid_wf",
"text": "private theorem defaultLitWithDefaultEid_wf\n {Γ : TypeEnv} {ty : TermType}\n (hwf_Γ : Γ.WellFormed)\n (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :\n (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities\n:= by\n apply default_lit... | [
{
"name": "env_symbolize?_ancs_wf",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 83,
"n_chars": 3288,
"n_subproofs": 12,
"n_tactics": 71,
"cyclomatic": 9,
"n_automation": 24,
"n_rewrites": 4,
"n_structural": 27,
"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... | @@ -38,6 +38,89 @@
open Cedar.Validation
open Cedar.Data
+private theorem defaultLitWithDefaultEid_wf
+ {Γ : TypeEnv} {ty : TermType}
+ (hwf_Γ : Γ.WellFormed)
+ (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :
+ (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities
+:= by
+ apply default_lit... | {
"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_008ff2e8dd47_9 | d8dd86c84b81a5d4 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 6 | [
{
"theorem_name": "env_symbolize?_wf_vars",
"depth": 1,
"n_commands": 0,
"n_lines": 80,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨⟨hwf_princ, hwf_action, hwf_resource, hwf_context⟩, _⟩ := hwf_env\n have ⟨hwf_Γ, _, _⟩ := hinst\n have ⟨hwf... | [
{
"name": "defaultLitWithDefaultEid_wf",
"text": "private theorem defaultLitWithDefaultEid_wf\n {Γ : TypeEnv} {ty : TermType}\n (hwf_Γ : Γ.WellFormed)\n (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :\n (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities\n:= by\n apply default_lit... | [
{
"name": "env_symbolize?_wf_funs",
"fan_in": 1,
"n_deps_direct": 4,
"n_deps_transitive": 5,
"n_lines": 29,
"n_chars": 1291,
"n_subproofs": 4,
"n_tactics": 18,
"cyclomatic": 4,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 6,
"automation_only": false,
"m... | 5 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -38,6 +38,89 @@
open Cedar.Validation
open Cedar.Data
+private theorem defaultLitWithDefaultEid_wf
+ {Γ : TypeEnv} {ty : TermType}
+ (hwf_Γ : Γ.WellFormed)
+ (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :
+ (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities
+:= by
+ apply default_lit... | {
"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_008ff2e8dd47_10 | 627077aaed8c545f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 6 | [
{
"theorem_name": "env_symbolize?_wf_vars",
"depth": 1,
"n_commands": 0,
"n_lines": 80,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨⟨hwf_princ, hwf_action, hwf_resource, hwf_context⟩, _⟩ := hwf_env\n have ⟨hwf_Γ, _, _⟩ := hinst\n have ⟨hwf... | [
{
"name": "defaultLitWithDefaultEid_wf",
"text": "private theorem defaultLitWithDefaultEid_wf\n {Γ : TypeEnv} {ty : TermType}\n (hwf_Γ : Γ.WellFormed)\n (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :\n (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities\n:= by\n apply default_lit... | [
{
"name": "env_symbolize?_wf",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 7,
"n_lines": 21,
"n_chars": 696,
"n_subproofs": 1,
"n_tactics": 14,
"cyclomatic": 3,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 10,
"automation_only": false,
"max_ne... | 7 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -38,6 +38,89 @@
open Cedar.Validation
open Cedar.Data
+private theorem defaultLitWithDefaultEid_wf
+ {Γ : TypeEnv} {ty : TermType}
+ (hwf_Γ : Γ.WellFormed)
+ (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :
+ (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities
+:= by
+ apply default_lit... | {
"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_008ff2e8dd47_11 | 5e2caa9bb16d81ef | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 1 | [
{
"theorem_name": "env_symbolize?_same_entity_data_standard",
"depth": 1,
"n_commands": 0,
"n_lines": 125,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨_, ⟨hwf_entities, _⟩⟩ := hwf_env\n have ⟨hwf_data_attrs, _, hwf_data_ancs, hwf_data_tags,... | [
{
"name": "env_symbolize?_same_entity_data_standard_same_tag",
"text": "private theorem env_symbolize?_same_entity_data_standard_same_tag\n {Γ : TypeEnv} {env : Env}\n {uid : EntityUID} {data : EntityData} {entry : StandardSchemaEntry}\n (hwf_env : env.StronglyWellFormed)\n (hinst : InstanceOfWellFormed... | [
{
"name": "env_symbolize?_same",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 11,
"n_lines": 11,
"n_chars": 354,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 3,
"automation_only": false,
"max_n... | 11 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a 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... | @@ -257,6 +257,314 @@
simp [heq]
· simp
+private theorem env_symbolize?_same_entity_data_standard_same_tag
+ {Γ : TypeEnv} {env : Env}
+ {uid : EntityUID} {data : EntityData} {entry : StandardSchemaEntry}
+ (hwf_env : env.StronglyWellFormed)
+ (hinst : InstanceOfWellFormedEnvironment env.request env.e... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_008ff2e8dd47_12 | 81c8b9b0f678a681 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/Soundness.lean | Soundness | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 20 | 6 | [
{
"theorem_name": "env_symbolize?_wf_vars",
"depth": 1,
"n_commands": 0,
"n_lines": 80,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨⟨hwf_princ, hwf_action, hwf_resource, hwf_context⟩, _⟩ := hwf_env\n have ⟨hwf_Γ, _, _⟩ := hinst\n have ⟨hwf... | [
{
"name": "defaultLitWithDefaultEid_wf",
"text": "private theorem defaultLitWithDefaultEid_wf\n {Γ : TypeEnv} {ty : TermType}\n (hwf_Γ : Γ.WellFormed)\n (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :\n (defaultLitWithDefaultEid Γ ty).WellFormed (SymEnv.ofEnv Γ).entities\n:= by\n apply default_lit... | [
{
"name": "ofEnv_soundness",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 20,
"n_lines": 13,
"n_chars": 376,
"n_subproofs": 1,
"n_tactics": 6,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": false,
"max_nesti... | 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... | @@ -1038,6 +1038,89 @@
| inr hinst_data =>
exact env_symbolize?_same_entities_action hinst hinst_data
+private theorem defaultLitWithDefaultEid_wf
+ {Γ : TypeEnv} {ty : TermType}
+ (hwf_Γ : Γ.WellFormed)
+ (hwf_ty : ty.WellFormed (SymEnv.ofEnv Γ).entities) :
+ (defaultLitWithDefaultEid Γ ty).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_b19c0eb2a12f_0 | d85b1e679225d532 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/BinaryApp/GetTag.lean | GetTag | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "type_of_getTag_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 59,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hok := h₃\n replace ⟨hc, ety, ty, tx₁, tx₂, c₁', c₂', h₃, h₄, h₅, h₆, ht, htx, hc₁⟩ := type_of_getTag_invers... | [
{
"name": "type_of_getTag_inversion",
"text": "theorem type_of_getTag_inversion {x₁ x₂ : Expr} {c₁ c₂ : Capabilities} {env : TypeEnv} {tx : TypedExpr}\n (h₁ : typeOf (Expr.binaryApp .getTag x₁ x₂) c₁ env = .ok (tx, c₂)) :\n c₂ = [] ∧\n ∃ ety ty tx₁ tx₂ c₁' c₂',\n typeOf x₁ c₁ env = .ok (tx₁, c₁') ∧\n ... | [
{
"name": "type_of_getTag_is_sound",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 69,
"n_chars": 3726,
"n_subproofs": 3,
"n_tactics": 63,
"cyclomatic": 13,
"n_automation": 19,
"n_rewrites": 6,
"n_structural": 12,
"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,41 @@
open Cedar.Spec
open Cedar.Validation
+theorem type_of_getTag_inversion {x₁ x₂ : Expr} {c₁ c₂ : Capabilities} {env : TypeEnv} {tx : TypedExpr}
+ (h₁ : typeOf (Expr.binaryApp .getTag x₁ x₂) c₁ env = .ok (tx, c₂)) :
+ c₂ = [] ∧
+ ∃ ety ty tx₁ tx₂ c₁' c₂',
+ typeOf x₁ c₁ env = .ok (tx₁, 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_da340da120b3_0 | 7ece284615fa4d94 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymbolicCompilation.lean | SymbolicCompilation | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "typeOf_ite",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro ht hf\n simp only [OptionTyped, IsOption, Factory.ite]\n split\n · simp\n · apply typeOf_ite.simplify ht hf",
"n_c... | [
{
"name": "typeOf_ite.simplify",
"text": "/--\nLemma\n-/\nprivate theorem typeOf_ite.simplify {c t f : Term} :\n OptionTyped t → OptionTyped f → OptionTyped (Factory.ite.simplify c t f)\n:= by\n simp only [OptionTyped, IsOption, Factory.ite.simplify, Bool.or_eq_true, decide_eq_true_eq,\n forall_exists_... | [
{
"name": "typeOf_ite",
"fan_in": 5,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 13,
"n_chars": 252,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 2,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"max_nesting": 2... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -40,6 +40,26 @@
/--
Lemma
-/
+private theorem typeOf_ite.simplify {c t f : Term} :
+ OptionTyped t → OptionTyped f → OptionTyped (Factory.ite.simplify c t f)
+:= by
+ simp only [OptionTyped, IsOption, Factory.ite.simplify, Bool.or_eq_true, decide_eq_true_eq,
+ forall_exists_index]
+ intro tty ht fty hf
+ 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_da340da120b3_1 | 67043ddaa904d305 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymbolicCompilation.lean | SymbolicCompilation | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "typeOf_ite",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro ht hf\n simp only [OptionTyped, IsOption, Factory.ite]\n split\n · simp\n · apply typeOf_ite.simplify ht hf",
"n_c... | [
{
"name": "typeOf_ite.simplify",
"text": "/--\nLemma\n-/\nprivate theorem typeOf_ite.simplify {c t f : Term} :\n OptionTyped t → OptionTyped f → OptionTyped (Factory.ite.simplify c t f)\n:= by\n simp only [OptionTyped, IsOption, Factory.ite.simplify, Bool.or_eq_true, decide_eq_true_eq,\n forall_exists_... | [
{
"name": "typeOf_ifFalse",
"fan_in": 3,
"n_deps_direct": 3,
"n_deps_transitive": 4,
"n_lines": 12,
"n_chars": 201,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 3,
"automation_only": false,
"max_nesting... | 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,26 @@
/--
Lemma
-/
+private theorem typeOf_ite.simplify {c t f : Term} :
+ OptionTyped t → OptionTyped f → OptionTyped (Factory.ite.simplify c t f)
+:= by
+ simp only [OptionTyped, IsOption, Factory.ite.simplify, Bool.or_eq_true, decide_eq_true_eq,
+ forall_exists_index]
+ intro tty ht fty hf
+ 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_da340da120b3_2 | e43dd237cc5b644e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymbolicCompilation.lean | SymbolicCompilation | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "typeOf_ite",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro ht hf\n simp only [OptionTyped, IsOption, Factory.ite]\n split\n · simp\n · apply typeOf_ite.simplify ht hf",
"n_c... | [
{
"name": "typeOf_ite.simplify",
"text": "/--\nLemma\n-/\nprivate theorem typeOf_ite.simplify {c t f : Term} :\n OptionTyped t → OptionTyped f → OptionTyped (Factory.ite.simplify c t f)\n:= by\n simp only [OptionTyped, IsOption, Factory.ite.simplify, Bool.or_eq_true, decide_eq_true_eq,\n forall_exists_... | [
{
"name": "typeOf_ifTrue",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 4,
"n_lines": 12,
"n_chars": 198,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 3,
"automation_only": false,
"max_nesting"... | 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,26 @@
/--
Lemma
-/
+private theorem typeOf_ite.simplify {c t f : Term} :
+ OptionTyped t → OptionTyped f → OptionTyped (Factory.ite.simplify c t f)
+:= by
+ simp only [OptionTyped, IsOption, Factory.ite.simplify, Bool.or_eq_true, decide_eq_true_eq,
+ forall_exists_index]
+ intro tty ht fty hf
+ 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_da340da120b3_3 | b19d8c83e749cc6d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymbolicCompilation.lean | SymbolicCompilation | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 3 | [
{
"theorem_name": "typeOf_ifSome",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro ht\n simp only [OptionTyped, IsOption, Factory.ifSome]\n split\n · apply typeOf_ite _ ht\n apply typeOf_noneOf\n ... | [
{
"name": "typeOf_ifFalse",
"text": "/--\nLemma\n-/\nprivate theorem typeOf_ifFalse {g t : Term} :\n OptionTyped (Factory.ifFalse g t)\n:= by\n simp only [Factory.ifFalse]\n apply typeOf_ite\n · apply typeOf_noneOf\n · apply typeOf_someOf\n\n",
"fan_in": 3,
"n_lines": 12,
"n_chars": 201,
... | [
{
"name": "typeOf_ifSome",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 5,
"n_lines": 14,
"n_chars": 266,
"n_subproofs": 0,
"n_tactics": 7,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": false,
"max_nesting"... | 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... | @@ -88,6 +88,17 @@
/--
Lemma
-/
+private theorem typeOf_ifFalse {g t : Term} :
+ OptionTyped (Factory.ifFalse g t)
+:= by
+ simp only [Factory.ifFalse]
+ apply typeOf_ite
+ · apply typeOf_noneOf
+ · apply typeOf_someOf
+
+/--
+Lemma
+-/
private theorem typeOf_ifSome {g t : Term} :
OptionTyped t → OptionType... | {
"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_da340da120b3_4 | 082d0e7b254391d3 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymbolicCompilation.lean | SymbolicCompilation | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 3 | [
{
"theorem_name": "typeOf_ifSome",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro ht\n simp only [OptionTyped, IsOption, Factory.ifSome]\n split\n · apply typeOf_ite _ ht\n apply typeOf_noneOf\n ... | [
{
"name": "typeOf_ifFalse",
"text": "/--\nLemma\n-/\nprivate theorem typeOf_ifFalse {g t : Term} :\n OptionTyped (Factory.ifFalse g t)\n:= by\n simp only [Factory.ifFalse]\n apply typeOf_ite\n · apply typeOf_noneOf\n · apply typeOf_someOf\n\n",
"fan_in": 3,
"n_lines": 12,
"n_chars": 201,
... | [
{
"name": "typeOf_ifAllSome",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 5,
"n_lines": 13,
"n_chars": 262,
"n_subproofs": 0,
"n_tactics": 7,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": false,
"max_nesti... | 4 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -88,6 +88,17 @@
/--
Lemma
-/
+private theorem typeOf_ifFalse {g t : Term} :
+ OptionTyped (Factory.ifFalse g t)
+:= by
+ simp only [Factory.ifFalse]
+ apply typeOf_ite
+ · apply typeOf_noneOf
+ · apply typeOf_someOf
+
+/--
+Lemma
+-/
private theorem typeOf_ifAllSome {gs : List Term} {t : Term} :
OptionTy... | {
"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_da340da120b3_5 | ac9d1cedb7ab6c82 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymbolicCompilation.lean | SymbolicCompilation | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "compile_ok_implies_option",
"depth": 1,
"n_commands": 0,
"n_lines": 295,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases x <;> simp [compile]\n case lit p =>\n cases p <;> simp [compilePrim]\n case bool | int | string =... | [
{
"name": "typeOf_ifAllSome",
"text": "/--\nLemma\n-/\nprivate theorem typeOf_ifAllSome {gs : List Term} {t : Term} :\n OptionTyped t → OptionTyped (Factory.ifAllSome gs t)\n:= by\n simp only [Factory.ifAllSome]\n split\n · apply typeOf_ite\n apply typeOf_noneOf\n · intro h ; apply typeOf_ifFalse\n\... | [
{
"name": "compile_ok_implies_option",
"fan_in": 0,
"n_deps_direct": 7,
"n_deps_transitive": 8,
"n_lines": 306,
"n_chars": 12458,
"n_subproofs": 2,
"n_tactics": 406,
"cyclomatic": 134,
"n_automation": 101,
"n_rewrites": 44,
"n_structural": 123,
"automation_only": ... | 7 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -121,6 +121,18 @@
· apply typeOf_ifFalse
/--
+Lemma
+-/
+private theorem typeOf_ifAllSome {gs : List Term} {t : Term} :
+ OptionTyped t → OptionTyped (Factory.ifAllSome gs t)
+:= by
+ simp only [Factory.ifAllSome]
+ split
+ · apply typeOf_ite
+ apply typeOf_noneOf
+ · intro h ; apply typeOf_ifFalse
+
+... | {
"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_96448dec9f41_0 | 86b913b8327c3c33 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/WFValue.lean | WFValue | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 13 | 1 | [
{
"theorem_name": "value_ws_closed_implies_wf",
"depth": 1,
"n_commands": 0,
"n_lines": 31,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hws hca\n induction hws\n case prim_ws =>\n apply Value.WellFormed.prim_wf\n simp only [Prim.Well... | [
{
"name": "value_record_entityUIDs_def",
"text": "theorem value_record_entityUIDs_def {avs : Map Attr Value} :\n (Value.record avs).entityUIDs = avs.toList.mapUnion λ (_, v) => v.entityUIDs\n:= by\n rw [Value.entityUIDs]\n simp only [List.mapUnion₃_eq_mapUnion λ av : Attr × Value => av.snd.entityUIDs]\n\... | [
{
"name": "value_ws_closed_implies_wf",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 37,
"n_chars": 1040,
"n_subproofs": 0,
"n_tactics": 32,
"cyclomatic": 5,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 19,
"automation_only": false,
... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -32,11 +32,47 @@
unfold Value.entityUIDs
simp only [List.mapUnion₁_eq_mapUnion]
+theorem value_record_entityUIDs_def {avs : Map Attr Value} :
+ (Value.record avs).entityUIDs = avs.toList.mapUnion λ (_, v) => v.entityUIDs
+:= by
+ rw [Value.entityUIDs]
+ simp only [List.mapUnion₃_eq_mapUnion λ av : Attr × ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_96448dec9f41_1 | 64bd29ba2f430c03 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/WFValue.lean | WFValue | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 13 | 2 | [
{
"theorem_name": "term_set_value?_some_implies_ws",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ⟨vs, hv, heq⟩ := term_set_value?_some_implies hv\n subst heq\n apply Value.WellStructured.set_ws ... | [
{
"name": "term_set_value?_some_implies",
"text": "theorem term_set_value?_some_implies {ts : List Term} {ty : TermType} {v : Value} :\n (Term.set (Set.mk ts) ty).value? = some v →\n ∃ vs,\n List.mapM Term.value? ts = some vs ∧ Value.set (Set.make vs) = v\n:= by\n simp only [Term.value?, List.mapM₁_eq... | [
{
"name": "term_set_value?_some_implies_ws",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 16,
"n_chars": 720,
"n_subproofs": 0,
"n_tactics": 9,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 2,
"n_structural": 3,
"automation_only": false,... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -26,12 +26,28 @@
namespace Cedar.Thm
open Data Spec SymCC Factory
+theorem term_set_value?_some_implies {ts : List Term} {ty : TermType} {v : Value} :
+ (Term.set (Set.mk ts) ty).value? = some v →
+ ∃ vs,
+ List.mapM Term.value? ts = some vs ∧ Value.set (Set.make vs) = v
+:= by
+ simp only [Term.value?, Li... | {
"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_96448dec9f41_2 | 9f225630ee8d661a | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/WFValue.lean | WFValue | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 13 | 2 | [
{
"theorem_name": "term_record_value?_some_implies_ws",
"depth": 1,
"n_commands": 0,
"n_lines": 39,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ⟨avs, hm, hv⟩ := term_record_value?_some_implies hv\n subst hv\n apply Value.WellStructured.r... | [
{
"name": "term_record_value?_sizeOf_some",
"text": "private theorem term_record_value?_sizeOf_some {a : Attr} {t : Term} {ats : List (Attr × Term)} :\n sizeOf (a, Term.some t) < sizeOf ats → sizeOf (a, t).snd < (1 + sizeOf ats)\n:= by\n simp only [Prod.mk.sizeOf_spec, Term.some.sizeOf_spec]\n omega\n\n... | [
{
"name": "term_record_value?_some_implies_ws",
"fan_in": 1,
"n_deps_direct": 4,
"n_deps_transitive": 4,
"n_lines": 49,
"n_chars": 2001,
"n_subproofs": 1,
"n_tactics": 42,
"cyclomatic": 4,
"n_automation": 9,
"n_rewrites": 5,
"n_structural": 9,
"automation_only": f... | 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... | @@ -52,6 +52,12 @@
simp only [Prod.mk.sizeOf_spec]
omega
+private theorem term_record_value?_sizeOf_some {a : Attr} {t : Term} {ats : List (Attr × Term)} :
+ sizeOf (a, Term.some t) < sizeOf ats → sizeOf (a, t).snd < (1 + sizeOf ats)
+:= by
+ simp only [Prod.mk.sizeOf_spec, Term.some.sizeOf_spec]
+ omega
+
... | {
"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_96448dec9f41_3 | f4f264be5f6dc16e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/WFValue.lean | WFValue | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 13 | 2 | [
{
"theorem_name": "term_record_value?_some_implies_ws",
"depth": 1,
"n_commands": 0,
"n_lines": 39,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ⟨avs, hm, hv⟩ := term_record_value?_some_implies hv\n subst hv\n apply Value.WellStructured.r... | [
{
"name": "term_record_value?_sizeOf_some",
"text": "private theorem term_record_value?_sizeOf_some {a : Attr} {t : Term} {ats : List (Attr × Term)} :\n sizeOf (a, Term.some t) < sizeOf ats → sizeOf (a, t).snd < (1 + sizeOf ats)\n:= by\n simp only [Prod.mk.sizeOf_spec, Term.some.sizeOf_spec]\n omega\n\n... | [
{
"name": "term_value?_some_implies_ws",
"fan_in": 0,
"n_deps_direct": 3,
"n_deps_transitive": 8,
"n_lines": 23,
"n_chars": 793,
"n_subproofs": 0,
"n_tactics": 19,
"cyclomatic": 2,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 8,
"automation_only": false,
... | 8 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -89,6 +89,12 @@
simp only [Prod.mk.sizeOf_spec]
omega
+private theorem term_record_value?_sizeOf_some {a : Attr} {t : Term} {ats : List (Attr × Term)} :
+ sizeOf (a, Term.some t) < sizeOf ats → sizeOf (a, t).snd < (1 + sizeOf ats)
+:= by
+ simp only [Prod.mk.sizeOf_spec, Term.some.sizeOf_spec]
+ omega
+
... | {
"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_96448dec9f41_4 | e62c2ba39e52eff4 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/WFValue.lean | WFValue | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 13 | 2 | [
{
"theorem_name": "term_set_value?_some_implies_ws",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ⟨vs, hv, heq⟩ := term_set_value?_some_implies hv\n subst heq\n apply Value.WellStructured.set_ws ... | [
{
"name": "term_set_value?_some_implies",
"text": "theorem term_set_value?_some_implies {ts : List Term} {ty : TermType} {v : Value} :\n (Term.set (Set.mk ts) ty).value? = some v →\n ∃ vs,\n List.mapM Term.value? ts = some vs ∧ Value.set (Set.make vs) = v\n:= by\n simp only [Term.value?, List.mapM₁_eq... | [
{
"name": "term_set_value?_some_implies_eq_entityUIDs",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 29,
"n_chars": 1269,
"n_subproofs": 1,
"n_tactics": 23,
"cyclomatic": 2,
"n_automation": 6,
"n_rewrites": 2,
"n_structural": 9,
"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... | @@ -26,12 +26,41 @@
namespace Cedar.Thm
open Data Spec SymCC Factory
+theorem term_set_value?_some_implies {ts : List Term} {ty : TermType} {v : Value} :
+ (Term.set (Set.mk ts) ty).value? = some v →
+ ∃ vs,
+ List.mapM Term.value? ts = some vs ∧ Value.set (Set.make vs) = v
+:= by
+ simp only [Term.value?, Li... | {
"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_96448dec9f41_5 | 7070c9088aefb595 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/WFValue.lean | WFValue | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 13 | 2 | [
{
"theorem_name": "term_record_value?_some_implies_ws",
"depth": 1,
"n_commands": 0,
"n_lines": 39,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ⟨avs, hm, hv⟩ := term_record_value?_some_implies hv\n subst hv\n apply Value.WellStructured.r... | [
{
"name": "term_record_value?_sizeOf_some",
"text": "private theorem term_record_value?_sizeOf_some {a : Attr} {t : Term} {ats : List (Attr × Term)} :\n sizeOf (a, Term.some t) < sizeOf ats → sizeOf (a, t).snd < (1 + sizeOf ats)\n:= by\n simp only [Prod.mk.sizeOf_spec, Term.some.sizeOf_spec]\n omega\n\n... | [
{
"name": "term_record_value?_some_implies_eq_entityUIDs",
"fan_in": 1,
"n_deps_direct": 4,
"n_deps_transitive": 4,
"n_lines": 41,
"n_chars": 1685,
"n_subproofs": 1,
"n_tactics": 34,
"cyclomatic": 3,
"n_automation": 8,
"n_rewrites": 3,
"n_structural": 8,
"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... | @@ -52,13 +52,51 @@
simp only [Prod.mk.sizeOf_spec]
omega
+private theorem term_record_value?_sizeOf_some {a : Attr} {t : Term} {ats : List (Attr × Term)} :
+ sizeOf (a, Term.some t) < sizeOf ats → sizeOf (a, t).snd < (1 + sizeOf ats)
+:= by
+ simp only [Prod.mk.sizeOf_spec, Term.some.sizeOf_spec]
+ omega
+... | {
"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_96448dec9f41_6 | 96e24d5589ccff5f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer/WFValue.lean | WFValue | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 13 | 1 | [
{
"theorem_name": "term_value?_some_implies_eq_entityUIDs",
"depth": 1,
"n_commands": 0,
"n_lines": 19,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hv\n induction t using Term.value?.induct generalizing v\n case motive1 _ tᵢ =>\n exact ... | [
{
"name": "term_prim_value?_some_implies_eq_entityUIDs",
"text": "private theorem term_prim_value?_some_implies_eq_entityUIDs {t : TermPrim} {v : Value} :\n t.value? = some v → (Term.prim t).entityUIDs = v.entityUIDs\n:= by\n intro hv\n simp only [TermPrim.value?, Option.pure_def, Option.bind_eq_bind] at... | [
{
"name": "term_value?_some_implies_eq_entityUIDs",
"fan_in": 0,
"n_deps_direct": 3,
"n_deps_transitive": 8,
"n_lines": 23,
"n_chars": 782,
"n_subproofs": 0,
"n_tactics": 19,
"cyclomatic": 2,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 8,
"automation_only"... | 8 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -66,6 +66,18 @@
simp only [Prod.mk.sizeOf_spec, Term.some.sizeOf_spec]
omega
+private theorem term_prim_value?_some_implies_eq_entityUIDs {t : TermPrim} {v : Value} :
+ t.value? = some v → (Term.prim t).entityUIDs = v.entityUIDs
+:= by
+ intro hv
+ simp only [TermPrim.value?, Option.pure_def, Option.bind_... | {
"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_6d1918f18530_0 | ac63600314563f63 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Authorization.lean | Authorization | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 2 | [
{
"theorem_name": "explicitly_forbidden_iff_satisfying_forbid",
"depth": 1,
"n_commands": 0,
"n_lines": 1,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " satisfied_iff_satisfiedPolicies_non_empty",
"n_chars": 42,
"n_subproofs": 0,
"n_tactics": ... | [
{
"name": "satisfied_iff_satisfiedPolicies_non_empty",
"text": "theorem satisfied_iff_satisfiedPolicies_non_empty {effect : Effect} {request : Request} {entities : Entities} {policies : Policies} :\n HasSatisfiedEffect effect request entities policies ↔ (satisfiedPolicies effect policies request entities).... | [
{
"name": "explicitly_forbidden_iff_satisfying_forbid",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 5,
"n_chars": 215,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_onl... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -35,6 +35,10 @@
policy.effect = effect ∧
satisfied policy request entities
+theorem satisfied_iff_satisfiedPolicies_non_empty {effect : Effect} {request : Request} {entities : Entities} {policies : Policies} :
+ HasSatisfiedEffect effect request entities policies ↔ (satisfiedPolicies effect policies req... | {
"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_6d1918f18530_1 | 8673da4cbf5d6edb | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Authorization.lean | Authorization | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 2 | [
{
"theorem_name": "explicitly_forbidden_iff_satisfying_forbid",
"depth": 1,
"n_commands": 0,
"n_lines": 1,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " satisfied_iff_satisfiedPolicies_non_empty",
"n_chars": 42,
"n_subproofs": 0,
"n_tactics": ... | [
{
"name": "satisfied_iff_satisfiedPolicies_non_empty",
"text": "theorem satisfied_iff_satisfiedPolicies_non_empty {effect : Effect} {request : Request} {entities : Entities} {policies : Policies} :\n HasSatisfiedEffect effect request entities policies ↔ (satisfiedPolicies effect policies request entities).... | [
{
"name": "explicitly_permitted_iff_satisfying_permit",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 5,
"n_chars": 215,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"automation_onl... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -35,6 +35,10 @@
policy.effect = effect ∧
satisfied policy request entities
+theorem satisfied_iff_satisfiedPolicies_non_empty {effect : Effect} {request : Request} {entities : Entities} {policies : Policies} :
+ HasSatisfiedEffect effect request entities policies ↔ (satisfiedPolicies effect policies req... | {
"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_6d1918f18530_2 | d9e8e0a935856535 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Authorization.lean | Authorization | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 3 | [
{
"theorem_name": "forbid_trumps_permit",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h\n unfold isAuthorized\n rw [explicitly_forbidden_iff_satisfying_forbid] at h\n simp [h]",
"n_chars": 10... | [
{
"name": "explicitly_forbidden_iff_satisfying_forbid",
"text": "theorem explicitly_forbidden_iff_satisfying_forbid :\n IsExplicitlyForbidden req entities policies ↔ (satisfiedPolicies .forbid policies req entities).isEmpty = false\n:= satisfied_iff_satisfiedPolicies_non_empty\n\n",
"fan_in": 3,
"n... | [
{
"name": "forbid_trumps_permit",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 14,
"n_chars": 405,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 1,
"automation_only": false,
"max_n... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -44,6 +44,10 @@
-/
def IsExplicitlyForbidden := HasSatisfiedEffect .forbid
+theorem explicitly_forbidden_iff_satisfying_forbid :
+ IsExplicitlyForbidden req entities policies ↔ (satisfiedPolicies .forbid policies req entities).isEmpty = false
+:= satisfied_iff_satisfiedPolicies_non_empty
+
/--
A request is 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_6d1918f18530_3 | 140ac71b6987d9a2 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Authorization.lean | Authorization | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 3 | [
{
"theorem_name": "allowed_only_if_explicitly_permitted",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n unfold isAuthorized\n generalize (satisfiedPolicies .forbid policies request entities) = forbids\n g... | [
{
"name": "explicitly_permitted_iff_satisfying_permit",
"text": "theorem explicitly_permitted_iff_satisfying_permit :\n IsExplicitlyPermitted req entities policies ↔ (satisfiedPolicies .permit policies req entities).isEmpty = false\n:= satisfied_iff_satisfiedPolicies_non_empty\n\n",
"fan_in": 3,
"n... | [
{
"name": "allowed_only_if_explicitly_permitted",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 15,
"n_chars": 672,
"n_subproofs": 0,
"n_tactics": 11,
"cyclomatic": 5,
"n_automation": 3,
"n_rewrites": 2,
"n_structural": 3,
"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... | @@ -50,11 +50,23 @@
-/
def IsExplicitlyPermitted := HasSatisfiedEffect .permit
+theorem explicitly_permitted_iff_satisfying_permit :
+ IsExplicitlyPermitted req entities policies ↔ (satisfiedPolicies .permit policies req entities).isEmpty = false
+:= satisfied_iff_satisfiedPolicies_non_empty
+
/-- A request is al... | {
"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_6d1918f18530_4 | 385714fa4204e5b4 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Authorization.lean | Authorization | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 2 | [
{
"theorem_name": "default_deny",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₀\n generalize h₁ : (isAuthorized request entities policies).decision = dec\n by_contra h₂\n cases dec\n case allow... | [
{
"name": "allowed_only_if_explicitly_permitted",
"text": "/-- A request is allowed only if it is explicitly permitted. -/\ntheorem allowed_only_if_explicitly_permitted (request : Request) (entities : Entities) (policies : Policies) :\n (isAuthorized request entities policies).decision = .allow →\n IsExpl... | [
{
"name": "default_deny",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 18,
"n_chars": 614,
"n_subproofs": 1,
"n_tactics": 9,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"max_nesting":... | 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... | @@ -54,6 +54,20 @@
IsExplicitlyPermitted req entities policies ↔ (satisfiedPolicies .permit policies req entities).isEmpty = false
:= satisfied_iff_satisfiedPolicies_non_empty
+/-- A request is allowed only if it is explicitly permitted. -/
+theorem allowed_only_if_explicitly_permitted (request : Request) (entiti... | {
"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_6d1918f18530_5 | e826b54d31a02849 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Authorization.lean | Authorization | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 2 | [
{
"theorem_name": "default_deny",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₀\n generalize h₁ : (isAuthorized request entities policies).decision = dec\n by_contra h₂\n cases dec\n case allow... | [
{
"name": "allowed_only_if_explicitly_permitted",
"text": "/-- A request is allowed only if it is explicitly permitted. -/\ntheorem allowed_only_if_explicitly_permitted (request : Request) (entities : Entities) (policies : Policies) :\n (isAuthorized request entities policies).decision = .allow →\n IsExpl... | [
{
"name": "allowed_iff_explicitly_permitted_and_not_denied",
"fan_in": 1,
"n_deps_direct": 4,
"n_deps_transitive": 5,
"n_lines": 21,
"n_chars": 925,
"n_subproofs": 3,
"n_tactics": 12,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 3,
"n_structural": 5,
"automat... | 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... | @@ -71,6 +71,20 @@
rw [explicitly_forbidden_iff_satisfying_forbid] at h
simp [h]
+/-- A request is allowed only if it is explicitly permitted. -/
+theorem allowed_only_if_explicitly_permitted (request : Request) (entities : Entities) (policies : Policies) :
+ (isAuthorized request entities policies).decision =... | {
"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_6d1918f18530_6 | 4f25a5f824e40aa4 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Authorization.lean | Authorization | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 1 | [
{
"theorem_name": "denied_iff_explicitly_denied_or_not_permitted",
"depth": 1,
"n_commands": 0,
"n_lines": 17,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n apply Iff.intro\n · intro h\n cases h\n case inl => rw [forbid_trumps_permit]; assump... | [
{
"name": "default_deny",
"text": "/--\nDefault deny: if not explicitly permitted, the request is denied.\nThis is contrapositive of allowed_only_if_explicitly_permitted.\n-/\ntheorem default_deny (request : Request) (entities : Entities) (policies : Policies) :\n ¬ IsExplicitlyPermitted request entities p... | [
{
"name": "denied_iff_explicitly_denied_or_not_permitted",
"fan_in": 1,
"n_deps_direct": 4,
"n_deps_transitive": 6,
"n_lines": 25,
"n_chars": 891,
"n_subproofs": 0,
"n_tactics": 19,
"cyclomatic": 3,
"n_automation": 5,
"n_rewrites": 5,
"n_structural": 5,
"automatio... | 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... | @@ -86,6 +86,23 @@
exact explicitly_permitted_iff_satisfying_permit.mpr h₁
/--
+Default deny: if not explicitly permitted, the request is denied.
+This is contrapositive of allowed_only_if_explicitly_permitted.
+-/
+theorem default_deny (request : Request) (entities : Entities) (policies : Policies) :
+ ¬ IsExpl... | {
"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_6d1918f18530_7 | 2756879b9daf9b84 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Authorization.lean | Authorization | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 1 | [
{
"theorem_name": "unchanged_allow_when_add_permit",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n rw [← allowed_iff_explicitly_permitted_and_not_denied] at *\n unfold IsExplicitlyPermitted ... | [
{
"name": "allowed_iff_explicitly_permitted_and_not_denied",
"text": "/--\nA request is allowed if and only if it is explicitly permitted and is not\nexplicitly forbidden.\n-/\ntheorem allowed_iff_explicitly_permitted_and_not_denied (request : Request) (entities : Entities) (policies : Policies) :\n (IsExp... | [
{
"name": "unchanged_allow_when_add_permit",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 6,
"n_lines": 14,
"n_chars": 545,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 2,
"n_structural": 1,
"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... | @@ -86,13 +86,37 @@
exact explicitly_permitted_iff_satisfying_permit.mpr h₁
/--
+A request is allowed if and only if it is explicitly permitted and is not
+explicitly forbidden.
+-/
+theorem allowed_iff_explicitly_permitted_and_not_denied (request : Request) (entities : Entities) (policies : Policies) :
+ (IsExp... | {
"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_6d1918f18530_8 | f50118a224ba4815 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Authorization.lean | Authorization | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 1 | [
{
"theorem_name": "unchanged_deny_when_add_forbid",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n rw [← denied_iff_explicitly_denied_or_not_permitted] at *\n unfold IsExplicitlyPermitted IsE... | [
{
"name": "denied_iff_explicitly_denied_or_not_permitted",
"text": "/--\nA request is denied if and only if it is explicitly denied or it is not explicitly permitted.\n-/\ntheorem denied_iff_explicitly_denied_or_not_permitted (request: Request) (entities : Entities) (policies: Policies) :\n (IsExplicitlyFo... | [
{
"name": "unchanged_deny_when_add_forbid",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 7,
"n_lines": 17,
"n_chars": 774,
"n_subproofs": 0,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 2,
"automation_only": false,
... | 7 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -103,13 +103,43 @@
case deny => contradiction
/--
+A request is denied if and only if it is explicitly denied or it is not explicitly permitted.
+-/
+theorem denied_iff_explicitly_denied_or_not_permitted (request: Request) (entities : Entities) (policies: Policies) :
+ (IsExplicitlyForbidden request entities ... | {
"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_6d1918f18530_9 | 03c5bd608766339f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Authorization.lean | Authorization | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 2 | [
{
"theorem_name": "unchanged_determining_when_add_policy_and_decision_unchanged",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro auth auth' h₀\n have subset_lemma : ∀ effect, satisfiedPolicies effect... | [
{
"name": "determiningPolicies_of",
"text": "/--\nThe determining policies of a allow/deny decision are exactly the satisfied policies of permit/forbid resp.\n-/\ntheorem determiningPolicies_of (request: Request) (entities: Entities) (policies: Policies) :\n let auth := isAuthorized request entities polici... | [
{
"name": "unchanged_determining_when_add_policy_and_decision_unchanged",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 23,
"n_chars": 1166,
"n_subproofs": 1,
"n_tactics": 15,
"cyclomatic": 2,
"n_automation": 2,
"n_rewrites": 4,
"n_structural": 5... | 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... | @@ -47,13 +47,41 @@
def IsExplicitlyPermitted := HasSatisfiedEffect .permit
/--
+The determining policies of a allow/deny decision are exactly the satisfied policies of permit/forbid resp.
+-/
+theorem determiningPolicies_of (request: Request) (entities: Entities) (policies: Policies) :
+ let auth := isAuthorized ... | {
"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_6d1918f18530_10 | 5089a42a33e3f3b4 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Authorization.lean | Authorization | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 2 | [
{
"theorem_name": "unchanged_determining_when_add_policy_and_decision_unchanged",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro auth auth' h₀\n have subset_lemma : ∀ effect, satisfiedPolicies effect... | [
{
"name": "determiningPolicies_of",
"text": "/--\nThe determining policies of a allow/deny decision are exactly the satisfied policies of permit/forbid resp.\n-/\ntheorem determiningPolicies_of (request: Request) (entities: Entities) (policies: Policies) :\n let auth := isAuthorized request entities polici... | [
{
"name": "determining_erroring_disjoint_when_unique_ids",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 31,
"n_chars": 1369,
"n_subproofs": 5,
"n_tactics": 22,
"cyclomatic": 4,
"n_automation": 4,
"n_rewrites": 5,
"n_structural": 5,
"automati... | 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... | @@ -47,12 +47,49 @@
def IsExplicitlyPermitted := HasSatisfiedEffect .permit
/--
+The determining policies of a allow/deny decision are exactly the satisfied policies of permit/forbid resp.
+-/
+theorem determiningPolicies_of (request: Request) (entities: Entities) (policies: Policies) :
+ let auth := isAuthorized ... | {
"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_7858855ec3c3_0 | ca4709705d7ed7a9 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/WF.lean | WF | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "wf_εnv_for_policies_iff_wf_εnv_for_set",
"depth": 1,
"n_commands": 0,
"n_lines": 17,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor <;> intro ⟨hwε, hvr⟩\n case mp =>\n apply wf_εnv_valid_refs_implies_wf_εnv_for_set ... | [
{
"name": "wf_εnv_valid_refs_implies_wf_εnv_for_set",
"text": "public theorem wf_εnv_valid_refs_implies_wf_εnv_for_set {xs : List Expr} {εnv : SymEnv}\n (hwε : εnv.WellFormed)\n (hvr : ∀ x ∈ xs, εnv.entities.ValidRefsFor x) :\n εnv.WellFormedFor (Expr.set xs)\n:= by\n apply And.intro hwε\n apply Expr.V... | [
{
"name": "wf_εnv_for_policies_iff_wf_εnv_for_set",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 22,
"n_chars": 700,
"n_subproofs": 0,
"n_tactics": 18,
"cyclomatic": 4,
"n_automation": 4,
"n_rewrites": 1,
"n_structural": 8,
"automation_only"... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -31,10 +31,36 @@
open Batteries Data Spec SymCC
+public theorem wf_εnv_valid_refs_implies_wf_εnv_for_set {xs : List Expr} {εnv : SymEnv}
+ (hwε : εnv.WellFormed)
+ (hvr : ∀ x ∈ xs, εnv.entities.ValidRefsFor x) :
+ εnv.WellFormedFor (Expr.set xs)
+:= by
+ apply And.intro hwε
+ apply Expr.ValidRefs.set_valid... | {
"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_7858855ec3c3_1 | e86573f2cf0696ab | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/WF.lean | WF | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "wf_env_for_policies_iff_wf_env_for_set",
"depth": 1,
"n_commands": 0,
"n_lines": 17,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n constructor <;> intro ⟨hwe, hvr⟩\n case mp =>\n apply wf_env_valid_refs_implies_wf_env_for_set ... | [
{
"name": "wf_env_valid_refs_implies_wf_env_for_set",
"text": "public theorem wf_env_valid_refs_implies_wf_env_for_set {xs : List Expr} {env : Env}\n (hwε : env.WellFormed)\n (hvr : ∀ x ∈ xs, env.entities.ValidRefsFor x) :\n env.WellFormedFor (Expr.set xs)\n:= by\n apply And.intro hwε\n apply Expr.Vali... | [
{
"name": "wf_env_for_policies_iff_wf_env_for_set",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 22,
"n_chars": 681,
"n_subproofs": 0,
"n_tactics": 18,
"cyclomatic": 4,
"n_automation": 4,
"n_rewrites": 1,
"n_structural": 8,
"automation_only"... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -31,10 +31,36 @@
open Batteries Data Spec SymCC
+public theorem wf_env_valid_refs_implies_wf_env_for_set {xs : List Expr} {env : Env}
+ (hwε : env.WellFormed)
+ (hvr : ∀ x ∈ xs, env.entities.ValidRefsFor x) :
+ env.WellFormedFor (Expr.set xs)
+:= by
+ apply And.intro hwε
+ apply Expr.ValidRefs.set_valid
+ ... | {
"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_7858855ec3c3_2 | 94848c3200a00e2d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/WF.lean | WF | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 4 | [
{
"theorem_name": "wf_term_var_same_domain",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [TermVar.WellFormed]\n intro h₁ h₂\n exact wf_term_type_same_domain h₁ h₂",
"n_chars": 97,
"n_s... | [
{
"name": "wf_term_type_same_domain",
"text": "public theorem wf_term_type_same_domain {εs₁ εs₂ : SymEntities} {ty : TermType} :\n SameDomain εs₁ εs₂ →\n TermType.WellFormed εs₁ ty →\n TermType.WellFormed εs₂ ty\n:= by\n intro h₁ h₂\n induction h₂\n case bool_wf =>\n exact TermType.WellFormed.bool_... | [
{
"name": "wf_term_var_same_domain",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 281,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 2,
"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... | @@ -63,11 +63,41 @@
(∀ uid, εs₁.isValidEntityUID uid = εs₂.isValidEntityUID uid) ∧
(∀ ety, εs₁.isValidEntityType ety = εs₂.isValidEntityType ety)
+public theorem wf_term_type_same_domain {εs₁ εs₂ : SymEntities} {ty : TermType} :
+ SameDomain εs₁ εs₂ →
+ TermType.WellFormed εs₁ ty →
+ TermType.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_7858855ec3c3_3 | e3e5dc2fe16acc9b | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/WF.lean | WF | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 4 | [
{
"theorem_name": "wf_term_var_same_domain",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [TermVar.WellFormed]\n intro h₁ h₂\n exact wf_term_type_same_domain h₁ h₂",
"n_chars": 97,
"n_s... | [
{
"name": "wf_term_type_same_domain",
"text": "public theorem wf_term_type_same_domain {εs₁ εs₂ : SymEntities} {ty : TermType} :\n SameDomain εs₁ εs₂ →\n TermType.WellFormed εs₁ ty →\n TermType.WellFormed εs₂ ty\n:= by\n intro h₁ h₂\n induction h₂\n case bool_wf =>\n exact TermType.WellFormed.bool_... | [
{
"name": "wf_uuf_same_domain",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 10,
"n_chars": 318,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nes... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -63,11 +63,41 @@
(∀ uid, εs₁.isValidEntityUID uid = εs₂.isValidEntityUID uid) ∧
(∀ ety, εs₁.isValidEntityType ety = εs₂.isValidEntityType ety)
+public theorem wf_term_type_same_domain {εs₁ εs₂ : SymEntities} {ty : TermType} :
+ SameDomain εs₁ εs₂ →
+ TermType.WellFormed εs₁ ty →
+ TermType.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_7858855ec3c3_4 | e74ce8d49d250bfd | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/WF.lean | WF | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 3 | [
{
"theorem_name": "wt_op_same_domain",
"depth": 1,
"n_commands": 0,
"n_lines": 36,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n cases h₂\n case not_wt h => exact Op.WellTyped.not_wt h\n case and_wt h h' => exact Op... | [
{
"name": "wf_uuf_same_domain",
"text": "public theorem wf_uuf_same_domain {εs₁ εs₂ : SymEntities} {f : UUF} :\n SameDomain εs₁ εs₂ →\n f.WellFormed εs₁ →\n f.WellFormed εs₂\n:= by\n simp only [UUF.WellFormed, and_imp]\n intro h₁ h₂ h₃\n simp only [wf_term_type_same_domain h₁ h₂, wf_term_type_same_dom... | [
{
"name": "wt_op_same_domain",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 42,
"n_chars": 2321,
"n_subproofs": 0,
"n_tactics": 36,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 35,
"automation_only": false,
"max_n... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -90,11 +90,55 @@
intro a ty h₃
exact ih a ty h₃
+public theorem wf_uuf_same_domain {εs₁ εs₂ : SymEntities} {f : UUF} :
+ SameDomain εs₁ εs₂ →
+ f.WellFormed εs₁ →
+ f.WellFormed εs₂
+:= by
+ simp only [UUF.WellFormed, and_imp]
+ intro h₁ h₂ h₃
+ simp only [wf_term_type_same_domain h₁ h₂, wf_term_ty... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_7858855ec3c3_5 | e416cf812a15d2b8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/WF.lean | WF | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 3 | [
{
"theorem_name": "wt_op_same_domain",
"depth": 1,
"n_commands": 0,
"n_lines": 36,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n cases h₂\n case not_wt h => exact Op.WellTyped.not_wt h\n case and_wt h h' => exact Op... | [
{
"name": "wf_uuf_same_domain",
"text": "public theorem wf_uuf_same_domain {εs₁ εs₂ : SymEntities} {f : UUF} :\n SameDomain εs₁ εs₂ →\n f.WellFormed εs₁ →\n f.WellFormed εs₂\n:= by\n simp only [UUF.WellFormed, and_imp]\n intro h₁ h₂ h₃\n simp only [wf_term_type_same_domain h₁ h₂, wf_term_type_same_dom... | [
{
"name": "wf_term_same_domain",
"fan_in": 3,
"n_deps_direct": 4,
"n_deps_transitive": 5,
"n_lines": 31,
"n_chars": 1055,
"n_subproofs": 0,
"n_tactics": 28,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 20,
"automation_only": false,
"max... | 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... | @@ -114,11 +114,55 @@
rw [h₁.left] at h₃
exact TermPrim.WellFormed.entity_wf h₃
+public theorem wf_uuf_same_domain {εs₁ εs₂ : SymEntities} {f : UUF} :
+ SameDomain εs₁ εs₂ →
+ f.WellFormed εs₁ →
+ f.WellFormed εs₂
+:= by
+ simp only [UUF.WellFormed, and_imp]
+ intro h₁ h₂ h₃
+ simp only [wf_term_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_7858855ec3c3_6 | 7b919ea023f1ac7f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/WF.lean | WF | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 1 | [
{
"theorem_name": "wf_term_same_domain",
"depth": 1,
"n_commands": 0,
"n_lines": 25,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n induction h₂\n case prim_wf h₃ =>\n exact Term.WellFormed.prim_wf (wf_term_prim_same_domain h₁ h₃)\... | [
{
"name": "wt_op_same_domain",
"text": "public theorem wt_op_same_domain {εs₁ εs₂ : SymEntities} {op : Op} {ts : List Term} {ty : TermType} :\n SameDomain εs₁ εs₂ →\n Op.WellTyped εs₁ op ts ty →\n Op.WellTyped εs₂ op ts ty\n:= by\n intro h₁ h₂\n cases h₂\n case not_wt h => exact Op.WellTyped... | [
{
"name": "wfl_term_same_domain",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 6,
"n_lines": 11,
"n_chars": 315,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
"max_n... | 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... | @@ -123,11 +123,76 @@
intro h₁ h₂ h₃
simp only [wf_term_type_same_domain h₁ h₂, wf_term_type_same_domain h₁ h₃, and_self]
+public theorem wt_op_same_domain {εs₁ εs₂ : SymEntities} {op : Op} {ts : List Term} {ty : TermType} :
+ SameDomain εs₁ εs₂ →
+ Op.WellTyped εs₁ op ts ty →
+ Op.WellTyped εs₂ op ts ty
+:=... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_7858855ec3c3_7 | 349669cd82b035db | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Env/WF.lean | WF | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 14 | 3 | [
{
"theorem_name": "wfl_term_same_domain",
"depth": 1,
"n_commands": 0,
"n_lines": 5,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [Term.WellFormedLiteral, and_imp]\n intro h₁ h₂ h₃\n simp only [h₃, and_true]\n exact wf_term_same_domain... | [
{
"name": "wf_term_same_domain",
"text": "public theorem wf_term_same_domain {εs₁ εs₂ : SymEntities} {t : Term} :\n SameDomain εs₁ εs₂ →\n t.WellFormed εs₁ →\n t.WellFormed εs₂\n:= by\n intro h₁ h₂\n induction h₂\n case prim_wf h₃ =>\n exact Term.WellFormed.prim_wf (wf_term_prim_same_domain h₁ h₃)\... | [
{
"name": "wf_udf_same_domain",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 7,
"n_lines": 20,
"n_chars": 576,
"n_subproofs": 0,
"n_tactics": 14,
"cyclomatic": 2,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 5,
"automation_only": false,
"max_ne... | 7 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -164,11 +164,45 @@
case string.like_wt h => exact Op.WellTyped.string.like_wt h
case ext_wt h => exact Op.WellTyped.ext_wt h
+public theorem wf_term_same_domain {εs₁ εs₂ : SymEntities} {t : Term} :
+ SameDomain εs₁ εs₂ →
+ t.WellFormed εs₁ →
+ t.WellFormed εs₂
+:= by
+ intro h₁ h₂
+ inductio... | {
"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.