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_c3dac70e477d_8 | c9db0b6f40913bd4 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "interpret_option_get'",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂ h₃\n rw [option.get'.eq_def]\n split\n case h_1 =>\n simp only [interpret_term_none, option.get']\n... | [
{
"name": "interpret_option_get",
"text": "public theorem interpret_option_get {εs : SymEntities} (I : Interpretation) {t : Term} {ty : TermType} :\n t.WellFormed εs → t.typeOf = .option ty →\n (Factory.option.get t).interpret I = Factory.option.get' I (t.interpret I)\n:= by\n intro h₂ h₃\n rw [option.g... | [
{
"name": "interpret_option_get'",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 576,
"n_subproofs": 1,
"n_tactics": 9,
"cyclomatic": 2,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 3,
"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... | @@ -233,10 +233,34 @@
cases hlit <;> rename_i hlit <;>
simp only [hlit, pe_ite_simplify_true, pe_ite_simplify_false]
+public theorem interpret_option_get {εs : SymEntities} (I : Interpretation) {t : Term} {ty : TermType} :
+ t.WellFormed εs → t.typeOf = .option ty →
+ (Factory.option.get t).interpret I = ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_9 | aae533fcec8fb571 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 5 | [
{
"theorem_name": "interpret_app_foldr'",
"depth": 1,
"n_commands": 0,
"n_lines": 40,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction table\n case nil =>\n simp only [List.foldr_nil, List.find?_nil, Option.map_none]\n exact interpret_... | [
{
"name": "interpret_ite",
"text": "public theorem interpret_ite {εs : SymEntities} {I : Interpretation} {t₁ t₂ t₃ : Term} :\n I.WellFormed εs → t₁.WellFormed εs →\n t₂.WellFormed εs → t₃.WellFormed εs →\n t₁.typeOf = .bool → t₂.typeOf = t₃.typeOf →\n (Factory.ite t₁ t₂ t₃).interpret I =\n Factory.ite ... | [
{
"name": "interpret_app_foldr'",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 8,
"n_lines": 55,
"n_chars": 2438,
"n_subproofs": 4,
"n_tactics": 42,
"cyclomatic": 5,
"n_automation": 12,
"n_rewrites": 6,
"n_structural": 10,
"automation_only": false,
"m... | 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... | @@ -205,6 +205,34 @@
· simp only [interpret_term_app_ite]
cases h₃ <;> simp [*, eq_comm]
+public theorem interpret_ite {εs : SymEntities} {I : Interpretation} {t₁ t₂ t₃ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs →
+ t₂.WellFormed εs → t₃.WellFormed εs →
+ t₁.typeOf = .bool → t₂.typeOf = t₃.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_c3dac70e477d_10 | d1ee76f86bccaf1b | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 5 | [
{
"theorem_name": "interpret_app_foldr'",
"depth": 1,
"n_commands": 0,
"n_lines": 40,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction table\n case nil =>\n simp only [List.foldr_nil, List.find?_nil, Option.map_none]\n exact interpret_... | [
{
"name": "interpret_ite",
"text": "public theorem interpret_ite {εs : SymEntities} {I : Interpretation} {t₁ t₂ t₃ : Term} :\n I.WellFormed εs → t₁.WellFormed εs →\n t₂.WellFormed εs → t₃.WellFormed εs →\n t₁.typeOf = .bool → t₂.typeOf = t₃.typeOf →\n (Factory.ite t₁ t₂ t₃).interpret I =\n Factory.ite ... | [
{
"name": "interpret_app_foldr",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 9,
"n_lines": 30,
"n_chars": 1171,
"n_subproofs": 2,
"n_tactics": 21,
"cyclomatic": 5,
"n_automation": 6,
"n_rewrites": 2,
"n_structural": 3,
"automation_only": false,
"max_... | 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... | @@ -205,6 +205,34 @@
· simp only [interpret_term_app_ite]
cases h₃ <;> simp [*, eq_comm]
+public theorem interpret_ite {εs : SymEntities} {I : Interpretation} {t₁ t₂ t₃ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs →
+ t₂.WellFormed εs → t₃.WellFormed εs →
+ t₁.typeOf = .bool → t₂.typeOf = t₃.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_c3dac70e477d_11 | 53cca7d4b8775fcc | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 5 | [
{
"theorem_name": "interpret_app_foldr'",
"depth": 1,
"n_commands": 0,
"n_lines": 40,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction table\n case nil =>\n simp only [List.foldr_nil, List.find?_nil, Option.map_none]\n exact interpret_... | [
{
"name": "interpret_ite",
"text": "public theorem interpret_ite {εs : SymEntities} {I : Interpretation} {t₁ t₂ t₃ : Term} :\n I.WellFormed εs → t₁.WellFormed εs →\n t₂.WellFormed εs → t₃.WellFormed εs →\n t₁.typeOf = .bool → t₂.typeOf = t₃.typeOf →\n (Factory.ite t₁ t₂ t₃).interpret I =\n Factory.ite ... | [
{
"name": "interpret_app",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 10,
"n_lines": 28,
"n_chars": 1118,
"n_subproofs": 2,
"n_tactics": 23,
"cyclomatic": 4,
"n_automation": 5,
"n_rewrites": 1,
"n_structural": 4,
"automation_only": false,
"max_nesti... | 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... | @@ -205,6 +205,34 @@
· simp only [interpret_term_app_ite]
cases h₃ <;> simp [*, eq_comm]
+public theorem interpret_ite {εs : SymEntities} {I : Interpretation} {t₁ t₂ t₃ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs →
+ t₂.WellFormed εs → t₃.WellFormed εs →
+ t₁.typeOf = .bool → t₂.typeOf = t₃.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_c3dac70e477d_12 | bb6aa119acf9dbd3 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 5 | [
{
"theorem_name": "interpret_app_foldr'",
"depth": 1,
"n_commands": 0,
"n_lines": 40,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction table\n case nil =>\n simp only [List.foldr_nil, List.find?_nil, Option.map_none]\n exact interpret_... | [
{
"name": "interpret_ite",
"text": "public theorem interpret_ite {εs : SymEntities} {I : Interpretation} {t₁ t₂ t₃ : Term} :\n I.WellFormed εs → t₁.WellFormed εs →\n t₂.WellFormed εs → t₃.WellFormed εs →\n t₁.typeOf = .bool → t₂.typeOf = t₃.typeOf →\n (Factory.ite t₁ t₂ t₃).interpret I =\n Factory.ite ... | [
{
"name": "interpret_ifFalse",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 6,
"n_lines": 11,
"n_chars": 577,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nest... | 6 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -205,10 +205,43 @@
· simp only [interpret_term_app_ite]
cases h₃ <;> simp [*, eq_comm]
+public theorem interpret_ite {εs : SymEntities} {I : Interpretation} {t₁ t₂ t₃ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs →
+ t₂.WellFormed εs → t₃.WellFormed εs →
+ t₁.typeOf = .bool → t₂.typeOf = t₃.typ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_13 | e22558811622124e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 5 | [
{
"theorem_name": "interpret_app_foldr'",
"depth": 1,
"n_commands": 0,
"n_lines": 40,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction table\n case nil =>\n simp only [List.foldr_nil, List.find?_nil, Option.map_none]\n exact interpret_... | [
{
"name": "interpret_ite",
"text": "public theorem interpret_ite {εs : SymEntities} {I : Interpretation} {t₁ t₂ t₃ : Term} :\n I.WellFormed εs → t₁.WellFormed εs →\n t₂.WellFormed εs → t₃.WellFormed εs →\n t₁.typeOf = .bool → t₂.typeOf = t₃.typeOf →\n (Factory.ite t₁ t₂ t₃).interpret I =\n Factory.ite ... | [
{
"name": "interpret_ifTrue",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 6,
"n_lines": 11,
"n_chars": 568,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nesti... | 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... | @@ -205,15 +205,53 @@
· simp only [interpret_term_app_ite]
cases h₃ <;> simp [*, eq_comm]
+public theorem interpret_ite {εs : SymEntities} {I : Interpretation} {t₁ t₂ t₃ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs →
+ t₂.WellFormed εs → t₃.WellFormed εs →
+ t₁.typeOf = .bool → t₂.typeOf = t₃.typ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_14 | 430109bcf730232d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 14 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "interpret_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 24,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂ h₃\n fun_cases Factory.eq t₁ t₂\n · simp only [interpret_term_some]\n exact interpret_eq_simplify h₁ (wf_ter... | [
{
"name": "interpret_eq_simplify",
"text": "theorem interpret_eq_simplify {I : Interpretation} {t₁ t₂ : Term} :\n I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →\n (Factory.eq.simplify t₁ t₂).interpret I = Factory.eq.simplify (t₁.interpret I) (t₂.interpret I)\n:= by\n fun_cases Factory.eq.simplif... | [
{
"name": "interpret_ifSome",
"fan_in": 0,
"n_deps_direct": 3,
"n_deps_transitive": 10,
"n_lines": 30,
"n_chars": 1032,
"n_subproofs": 3,
"n_tactics": 26,
"cyclomatic": 4,
"n_automation": 7,
"n_rewrites": 3,
"n_structural": 2,
"automation_only": false,
"max_ne... | 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... | @@ -233,16 +233,109 @@
cases hlit <;> rename_i hlit <;>
simp only [hlit, pe_ite_simplify_true, pe_ite_simplify_false]
+theorem interpret_eq_simplify {I : Interpretation} {t₁ t₂ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →
+ (Factory.eq.simplify t₁ t₂).interpret I = Factory.eq.simpli... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_15 | 7a69cc0b7cc3c8c7 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 15 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "interpret_bvneg",
"depth": 1,
"n_commands": 0,
"n_lines": 18,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂ h₃\n conv => lhs; unfold Factory.bvneg\n split\n · simp only [Factory.bvneg, interpret_term_prim]\n · rena... | [
{
"name": "interpret_bvneg_inv",
"text": "theorem interpret_bvneg_inv {εs : SymEntities} {I : Interpretation} {t : Term} {n : Nat} :\n I.WellFormed εs → t.WellFormed εs → t.typeOf = .bitvec n →\n bvneg (Term.interpret I t) = Term.prim (TermPrim.bitvec bv) →\n Term.interpret I t = Term.prim (TermPrim.bitvec ... | [
{
"name": "interpret_bvneg",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 23,
"n_chars": 858,
"n_subproofs": 2,
"n_tactics": 21,
"cyclomatic": 4,
"n_automation": 4,
"n_rewrites": 4,
"n_structural": 5,
"automation_only": false,
"max_nesti... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -254,6 +254,27 @@
have ⟨_, ht⟩ := $wfl_lit_of_type_thm:ident hwf.left hwf.right
simp only [$interpret_term_app_op_thm:ident, $op_fun:ident, ht]))
+theorem interpret_bvneg_inv {εs : SymEntities} {I : Interpretation} {t : Term} {n : Nat} :
+ I.WellFormed εs → t.WellFormed εs → t.typeOf = .bitvec n →
+ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_16 | c6e6f03967af4eeb | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 16 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "interpret_bvaddChecked",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n show_interpret_bvopChecked hI hwf₁ hwf₂ hty₁ hty₂ Factory.bvaddChecked wf_bvsaddo wf_bvadd interpret_bvsaddo interpr... | [
{
"name": "interpret_bvadd",
"text": "public theorem interpret_bvadd {I : Interpretation} {t₁ t₂ : Term} :\n (Factory.bvadd t₁ t₂).interpret I = Factory.bvadd (t₁.interpret I) (t₂.interpret I)\n:= by show_interpret_bvop bvadd bvapp interpret_term_app_bvadd\n\n",
"fan_in": 1,
"n_lines": 5,
"n_ch... | [
{
"name": "interpret_bvaddChecked",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 10,
"n_chars": 525,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"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... | @@ -265,6 +265,10 @@
(Factory.bvsaddo t₁ t₂).interpret I = Factory.bvsaddo (t₁.interpret I) (t₂.interpret I)
:= by show_interpret_bvop bvsaddo bvso interpret_term_app_bvsaddo
+public theorem interpret_bvadd {I : Interpretation} {t₁ t₂ : Term} :
+ (Factory.bvadd t₁ t₂).interpret I = Factory.bvadd (t₁.interpret I)... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_17 | b6cdc5667d4281ca | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 17 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "interpret_bvsubChecked",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n show_interpret_bvopChecked hI hwf₁ hwf₂ hty₁ hty₂ Factory.bvsubChecked wf_bvssubo wf_bvsub interpret_bvssubo interpr... | [
{
"name": "interpret_bvsub",
"text": "public theorem interpret_bvsub {I : Interpretation} {t₁ t₂ : Term} :\n (Factory.bvsub t₁ t₂).interpret I = Factory.bvsub (t₁.interpret I) (t₂.interpret I)\n:= by show_interpret_bvop bvsub bvapp interpret_term_app_bvsub\n\n",
"fan_in": 1,
"n_lines": 5,
"n_ch... | [
{
"name": "interpret_bvsubChecked",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 10,
"n_chars": 525,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"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... | @@ -265,6 +265,10 @@
(Factory.bvssubo t₁ t₂).interpret I = Factory.bvssubo (t₁.interpret I) (t₂.interpret I)
:= by show_interpret_bvop bvssubo bvso interpret_term_app_bvssubo
+public theorem interpret_bvsub {I : Interpretation} {t₁ t₂ : Term} :
+ (Factory.bvsub t₁ t₂).interpret I = Factory.bvsub (t₁.interpret I)... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_18 | c1a49bac614557b9 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 18 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 1 | [
{
"theorem_name": "interpret_bvmulChecked",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n show_interpret_bvopChecked hI hwf₁ hwf₂ hty₁ hty₂ Factory.bvmulChecked wf_bvsmulo wf_bvmul interpret_bvsmulo interpr... | [
{
"name": "interpret_bvmul",
"text": "public theorem interpret_bvmul {I : Interpretation} {t₁ t₂ : Term} :\n (Factory.bvmul t₁ t₂).interpret I = Factory.bvmul (t₁.interpret I) (t₂.interpret I)\n:= by show_interpret_bvop bvmul bvapp interpret_term_app_bvmul\n\n",
"fan_in": 1,
"n_lines": 5,
"n_ch... | [
{
"name": "interpret_bvmulChecked",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 10,
"n_chars": 525,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 0,
"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... | @@ -265,6 +265,10 @@
(Factory.bvsmulo t₁ t₂).interpret I = Factory.bvsmulo (t₁.interpret I) (t₂.interpret I)
:= by show_interpret_bvop bvsmulo bvso interpret_term_app_bvsmulo
+public theorem interpret_bvmul {I : Interpretation} {t₁ t₂ : Term} :
+ (Factory.bvmul t₁ t₂).interpret I = Factory.bvmul (t₁.interpret I)... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_19 | 8720376686145f9f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 19 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 3 | [
{
"theorem_name": "interpret_isNone",
"depth": 1,
"n_commands": 0,
"n_lines": 50,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n rw [isNone.eq_def]\n split\n case h_1 | h_2 =>\n simp only [isNone, interpret_term_none, interpret_te... | [
{
"name": "interpret_eq",
"text": "public theorem interpret_eq {I : Interpretation} {t₁ t₂ : Term} :\n I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →\n (Factory.eq t₁ t₂).interpret I = Factory.eq (t₁.interpret I) (t₂.interpret I)\n:= by\n intro h₁ h₂ h₃\n fun_cases Factory.eq t₁ t₂\n · simp on... | [
{
"name": "interpret_set_isEmpty",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 31,
"n_chars": 1187,
"n_subproofs": 5,
"n_tactics": 28,
"cyclomatic": 4,
"n_automation": 9,
"n_rewrites": 4,
"n_structural": 4,
"automation_only": false,
"ma... | 3 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -309,6 +309,34 @@
· simp [h₉, pe_eq_simplify_same]
· simp [h₉, pe_eq_simplify_lit h₅.left.right h₆.left.right]
+public theorem interpret_eq {I : Interpretation} {t₁ t₂ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →
+ (Factory.eq t₁ t₂).interpret I = Factory.eq (t₁.interpret I) ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_20 | 3e843c1dbc33f266 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 20 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 3 | [
{
"theorem_name": "interpret_isNone",
"depth": 1,
"n_commands": 0,
"n_lines": 50,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n rw [isNone.eq_def]\n split\n case h_1 | h_2 =>\n simp only [isNone, interpret_term_none, interpret_te... | [
{
"name": "interpret_eq",
"text": "public theorem interpret_eq {I : Interpretation} {t₁ t₂ : Term} :\n I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →\n (Factory.eq t₁ t₂).interpret I = Factory.eq (t₁.interpret I) (t₂.interpret I)\n:= by\n intro h₁ h₂ h₃\n fun_cases Factory.eq t₁ t₂\n · simp on... | [
{
"name": "interpret_set_intersects",
"fan_in": 0,
"n_deps_direct": 3,
"n_deps_transitive": 5,
"n_lines": 13,
"n_chars": 672,
"n_subproofs": 2,
"n_tactics": 7,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"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... | @@ -309,6 +309,34 @@
· simp [h₉, pe_eq_simplify_same]
· simp [h₉, pe_eq_simplify_lit h₅.left.right h₆.left.right]
+public theorem interpret_eq {I : Interpretation} {t₁ t₂ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →
+ (Factory.eq t₁ t₂).interpret I = Factory.eq (t₁.interpret I) ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_21 | 17c17d001a924b67 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 21 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 3 | [
{
"theorem_name": "interpret_ite_simplify",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI hw₁ hw₂ hw₃ hty₁ hty\n simp only [Factory.ite.simplify]\n simp only [Bool.or_eq_true, decide_eq_true_eq]... | [
{
"name": "interpret_or",
"text": "public theorem interpret_or {εs : SymEntities} {I : Interpretation} {t₁ t₂ : Term} :\n I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →\n t₁.typeOf = .bool → t₂.typeOf = .bool →\n (Factory.or t₁ t₂).interpret I = Factory.or (t₁.interpret I) (t₂.interpret I)\n:= b... | [
{
"name": "interpret_anyTrue_foldl",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 32,
"n_chars": 1262,
"n_subproofs": 2,
"n_tactics": 22,
"cyclomatic": 2,
"n_automation": 6,
"n_rewrites": 2,
"n_structural": 9,
"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... | @@ -124,6 +124,53 @@
case isFalse =>
simp only [interpret_term_app_and, Factory.and, Bool.or_eq_true, decide_eq_true_eq]
+public theorem interpret_or {εs : SymEntities} {I : Interpretation} {t₁ t₂ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →
+ t₁.typeOf = .bool → t₂.typeOf = .... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_22 | 19bf9f7ea9d04c20 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 22 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 3 | [
{
"theorem_name": "interpret_ite_simplify",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI hw₁ hw₂ hw₃ hty₁ hty\n simp only [Factory.ite.simplify]\n simp only [Bool.or_eq_true, decide_eq_true_eq]... | [
{
"name": "interpret_or",
"text": "public theorem interpret_or {εs : SymEntities} {I : Interpretation} {t₁ t₂ : Term} :\n I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →\n t₁.typeOf = .bool → t₂.typeOf = .bool →\n (Factory.or t₁ t₂).interpret I = Factory.or (t₁.interpret I) (t₂.interpret I)\n:= b... | [
{
"name": "interpret_anyTrue",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 12,
"n_chars": 504,
"n_subproofs": 0,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 2,
"n_structural": 2,
"automation_only": false,
"max_nest... | 3 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -124,6 +124,53 @@
case isFalse =>
simp only [interpret_term_app_and, Factory.and, Bool.or_eq_true, decide_eq_true_eq]
+public theorem interpret_or {εs : SymEntities} {I : Interpretation} {t₁ t₂ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →
+ t₁.typeOf = .bool → t₂.typeOf = .... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_23 | bde74f502dc473f3 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 23 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 3 | [
{
"theorem_name": "interpret_isNone",
"depth": 1,
"n_commands": 0,
"n_lines": 50,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n rw [isNone.eq_def]\n split\n case h_1 | h_2 =>\n simp only [isNone, interpret_term_none, interpret_te... | [
{
"name": "interpret_eq",
"text": "public theorem interpret_eq {I : Interpretation} {t₁ t₂ : Term} :\n I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →\n (Factory.eq t₁ t₂).interpret I = Factory.eq (t₁.interpret I) (t₂.interpret I)\n:= by\n intro h₁ h₂ h₃\n fun_cases Factory.eq t₁ t₂\n · simp on... | [
{
"name": "interpret_anyNone",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 8,
"n_lines": 14,
"n_chars": 393,
"n_subproofs": 0,
"n_tactics": 10,
"cyclomatic": 3,
"n_automation": 0,
"n_rewrites": 1,
"n_structural": 6,
"automation_only": false,
"max_nes... | 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... | @@ -309,10 +309,87 @@
· simp [h₉, pe_eq_simplify_same]
· simp [h₉, pe_eq_simplify_lit h₅.left.right h₆.left.right]
+public theorem interpret_eq {I : Interpretation} {t₁ t₂ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →
+ (Factory.eq t₁ t₂).interpret I = Factory.eq (t₁.interpret I)... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_24 | 7f2ab086bea750ff | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 24 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 3 | [
{
"theorem_name": "interpret_isNone",
"depth": 1,
"n_commands": 0,
"n_lines": 50,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro h₁ h₂\n rw [isNone.eq_def]\n split\n case h_1 | h_2 =>\n simp only [isNone, interpret_term_none, interpret_te... | [
{
"name": "interpret_eq",
"text": "public theorem interpret_eq {I : Interpretation} {t₁ t₂ : Term} :\n I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →\n (Factory.eq t₁ t₂).interpret I = Factory.eq (t₁.interpret I) (t₂.interpret I)\n:= by\n intro h₁ h₂ h₃\n fun_cases Factory.eq t₁ t₂\n · simp on... | [
{
"name": "interpret_ifAllSome",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 12,
"n_lines": 19,
"n_chars": 772,
"n_subproofs": 3,
"n_tactics": 14,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 3,
"automation_only": false,
"max_... | 12 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -309,10 +309,87 @@
· simp [h₉, pe_eq_simplify_same]
· simp [h₉, pe_eq_simplify_lit h₅.left.right h₆.left.right]
+public theorem interpret_eq {I : Interpretation} {t₁ t₂ : Term} :
+ I.WellFormed εs → t₁.WellFormed εs → t₂.WellFormed εs →
+ (Factory.eq t₁ t₂).interpret I = Factory.eq (t₁.interpret I)... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_25 | 91db05ca806182d7 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 25 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 2 | [
{
"theorem_name": "interpret_ext_ipaddr_prefixV4",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [ext.ipaddr.prefixV4]\n split <;> try (simp only [interpret_term_prim])\n · simp only [ext.ipaddr... | [
{
"name": "interpret_someOf",
"text": "public theorem interpret_someOf {I : Interpretation} {t : Term} :\n (someOf t).interpret I = Term.some (t.interpret I)\n:= by simp [someOf]\n\n",
"fan_in": 2,
"n_lines": 5,
"n_chars": 140,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
... | [
{
"name": "interpret_ext_ipaddr_prefixV4",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 12,
"n_chars": 485,
"n_subproofs": 0,
"n_tactics": 11,
"cyclomatic": 7,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 0,
"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... | @@ -237,6 +237,10 @@
(noneOf ty).interpret I = Term.none ty
:= by simp [noneOf]
+public theorem interpret_someOf {I : Interpretation} {t : Term} :
+ (someOf t).interpret I = Term.some (t.interpret I)
+:= by simp [someOf]
+
public theorem interpret_ifFalse {εs : SymEntities} {I : Interpretation} {g t : Term} :
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_c3dac70e477d_26 | c1e03bde1c870651 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Factory.lean | Factory | 26 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 26 | 2 | [
{
"theorem_name": "interpret_ext_ipaddr_prefixV4",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [ext.ipaddr.prefixV4]\n split <;> try (simp only [interpret_term_prim])\n · simp only [ext.ipaddr... | [
{
"name": "interpret_someOf",
"text": "public theorem interpret_someOf {I : Interpretation} {t : Term} :\n (someOf t).interpret I = Term.some (t.interpret I)\n:= by simp [someOf]\n\n",
"fan_in": 2,
"n_lines": 5,
"n_chars": 140,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
... | [
{
"name": "interpret_ext_ipaddr_prefixV6",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 12,
"n_chars": 485,
"n_subproofs": 0,
"n_tactics": 11,
"cyclomatic": 7,
"n_automation": 6,
"n_rewrites": 0,
"n_structural": 0,
"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... | @@ -237,6 +237,10 @@
(noneOf ty).interpret I = Term.none ty
:= by simp [noneOf]
+public theorem interpret_someOf {I : Interpretation} {t : Term} :
+ (someOf t).interpret I = Term.some (t.interpret I)
+:= by simp [someOf]
+
public theorem interpret_ifFalse {εs : SymEntities} {I : Interpretation} {g t : Term} :
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f32a9a8c8493_0 | d51d49c824e1ec48 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/WellTyped.lean | WellTyped | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 3 | [
{
"theorem_name": "wellTypedPolicy_ok_implies_well_typed_expr",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨tx, tx', _, _, hwt, _, h, _⟩ := wellTypedPolicy_ok_implies_exists_typed_exprs hwt\n exist... | [
{
"name": "wellTypedPolicy_ok_implies_exists_typed_exprs",
"text": "/--\nReduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.\n-/\ntheorem wellTypedPolicy_ok_implies_exists_typed_exprs\n {Γ : TypeEnv} {p p' : Policy}\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ tx tx' : TypedExpr, ∃ c,\... | [
{
"name": "wellTypedPolicy_ok_implies_well_typed_expr",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 16,
"n_chars": 471,
"n_subproofs": 1,
"n_tactics": 4,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 1,
"automation_on... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -30,6 +30,93 @@
open Spec SymCC Validation Data
/--
+Reduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.
+-/
+theorem wellTypedPolicy_ok_implies_exists_typed_exprs
+ {Γ : TypeEnv} {p p' : Policy}
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ tx tx' : TypedExpr, ∃ c,
+ TypedExpr.WellTyped ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f32a9a8c8493_1 | 58dee9c6359067f7 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/WellTyped.lean | WellTyped | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 3 | [
{
"theorem_name": "wellTypedPolicy_ok_implies_well_typed_expr",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨tx, tx', _, _, hwt, _, h, _⟩ := wellTypedPolicy_ok_implies_exists_typed_exprs hwt\n exist... | [
{
"name": "wellTypedPolicy_ok_implies_exists_typed_exprs",
"text": "/--\nReduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.\n-/\ntheorem wellTypedPolicy_ok_implies_exists_typed_exprs\n {Γ : TypeEnv} {p p' : Policy}\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ tx tx' : TypedExpr, ∃ c,\... | [
{
"name": "wellTypedPolicy_preserves_valid_refs",
"fan_in": 2,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 30,
"n_chars": 920,
"n_subproofs": 3,
"n_tactics": 19,
"cyclomatic": 7,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 6,
"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... | @@ -30,6 +30,93 @@
open Spec SymCC Validation Data
/--
+Reduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.
+-/
+theorem wellTypedPolicy_ok_implies_exists_typed_exprs
+ {Γ : TypeEnv} {p p' : Policy}
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ tx tx' : TypedExpr, ∃ c,
+ TypedExpr.WellTyped ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f32a9a8c8493_2 | c5a0963c5dc23690 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/WellTyped.lean | WellTyped | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 3 | [
{
"theorem_name": "wellTypedPolicy_ok_implies_well_typed_expr",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨tx, tx', _, _, hwt, _, h, _⟩ := wellTypedPolicy_ok_implies_exists_typed_exprs hwt\n exist... | [
{
"name": "wellTypedPolicy_ok_implies_exists_typed_exprs",
"text": "/--\nReduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.\n-/\ntheorem wellTypedPolicy_ok_implies_exists_typed_exprs\n {Γ : TypeEnv} {p p' : Policy}\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ tx tx' : TypedExpr, ∃ c,\... | [
{
"name": "wellTypedPolicy_preserves_StronglyWellFormedForPolicy",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 12,
"n_chars": 407,
"n_subproofs": 0,
"n_tactics": 4,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 3,
"au... | 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... | @@ -30,6 +30,93 @@
open Spec SymCC Validation Data
/--
+Reduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.
+-/
+theorem wellTypedPolicy_ok_implies_exists_typed_exprs
+ {Γ : TypeEnv} {p p' : Policy}
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ tx tx' : TypedExpr, ∃ c,
+ TypedExpr.WellTyped ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f32a9a8c8493_3 | e03139d37c35b5f1 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/WellTyped.lean | WellTyped | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 3 | [
{
"theorem_name": "wellTypedPolicy_ok_implies_well_typed_expr",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨tx, tx', _, _, hwt, _, h, _⟩ := wellTypedPolicy_ok_implies_exists_typed_exprs hwt\n exist... | [
{
"name": "wellTypedPolicy_ok_implies_exists_typed_exprs",
"text": "/--\nReduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.\n-/\ntheorem wellTypedPolicy_ok_implies_exists_typed_exprs\n {Γ : TypeEnv} {p p' : Policy}\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ tx tx' : TypedExpr, ∃ c,\... | [
{
"name": "wellTypedPolicies_preserves_StronglyWellFormedForPolicies",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 3,
"n_lines": 20,
"n_chars": 765,
"n_subproofs": 4,
"n_tactics": 12,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 6,
... | 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... | @@ -30,6 +30,93 @@
open Spec SymCC Validation Data
/--
+Reduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.
+-/
+theorem wellTypedPolicy_ok_implies_exists_typed_exprs
+ {Γ : TypeEnv} {p p' : Policy}
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ tx tx' : TypedExpr, ∃ c,
+ TypedExpr.WellTyped ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f32a9a8c8493_4 | 747d9286f0a2d90e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/WellTyped.lean | WellTyped | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 3 | [
{
"theorem_name": "wellTypedPolicy_ok_implies_well_typed_expr",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨tx, tx', _, _, hwt, _, h, _⟩ := wellTypedPolicy_ok_implies_exists_typed_exprs hwt\n exist... | [
{
"name": "wellTypedPolicy_ok_implies_exists_typed_exprs",
"text": "/--\nReduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.\n-/\ntheorem wellTypedPolicy_ok_implies_exists_typed_exprs\n {Γ : TypeEnv} {p p' : Policy}\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ tx tx' : TypedExpr, ∃ c,\... | [
{
"name": "wellTypedPolicy_preserves_evaluation",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 56,
"n_chars": 1951,
"n_subproofs": 6,
"n_tactics": 45,
"cyclomatic": 6,
"n_automation": 13,
"n_rewrites": 2,
"n_structural": 5,
"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... | @@ -30,6 +30,93 @@
open Spec SymCC Validation Data
/--
+Reduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.
+-/
+theorem wellTypedPolicy_ok_implies_exists_typed_exprs
+ {Γ : TypeEnv} {p p' : Policy}
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ tx tx' : TypedExpr, ∃ c,
+ TypedExpr.WellTyped ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f32a9a8c8493_5 | c929d530798b10e5 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/WellTyped.lean | WellTyped | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 3 | [
{
"theorem_name": "wellTypedPolicy_ok_implies_well_typed_expr",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨tx, tx', _, _, hwt, _, h, _⟩ := wellTypedPolicy_ok_implies_exists_typed_exprs hwt\n exist... | [
{
"name": "wellTypedPolicy_ok_implies_exists_typed_exprs",
"text": "/--\nReduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.\n-/\ntheorem wellTypedPolicy_ok_implies_exists_typed_exprs\n {Γ : TypeEnv} {p p' : Policy}\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ tx tx' : TypedExpr, ∃ c,\... | [
{
"name": "wellTypedPolicies_preserves_satisfiedWithEffect",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 16,
"n_chars": 533,
"n_subproofs": 1,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automati... | 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... | @@ -30,6 +30,93 @@
open Spec SymCC Validation Data
/--
+Reduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.
+-/
+theorem wellTypedPolicy_ok_implies_exists_typed_exprs
+ {Γ : TypeEnv} {p p' : Policy}
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ tx tx' : TypedExpr, ∃ c,
+ TypedExpr.WellTyped ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f32a9a8c8493_6 | 2ec5b1433788a302 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/WellTyped.lean | WellTyped | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 3 | [
{
"theorem_name": "wellTypedPolicy_ok_implies_well_typed_expr",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨tx, tx', _, _, hwt, _, h, _⟩ := wellTypedPolicy_ok_implies_exists_typed_exprs hwt\n exist... | [
{
"name": "wellTypedPolicy_ok_implies_exists_typed_exprs",
"text": "/--\nReduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.\n-/\ntheorem wellTypedPolicy_ok_implies_exists_typed_exprs\n {Γ : TypeEnv} {p p' : Policy}\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ tx tx' : TypedExpr, ∃ c,\... | [
{
"name": "wellTypedPolicies_preserves_satisfiedPolicies",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 25,
"n_chars": 934,
"n_subproofs": 1,
"n_tactics": 15,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 4,
"automatio... | 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... | @@ -30,6 +30,93 @@
open Spec SymCC Validation Data
/--
+Reduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.
+-/
+theorem wellTypedPolicy_ok_implies_exists_typed_exprs
+ {Γ : TypeEnv} {p p' : Policy}
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ tx tx' : TypedExpr, ∃ c,
+ TypedExpr.WellTyped ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f32a9a8c8493_7 | 49e624c7630c6f49 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/WellTyped.lean | WellTyped | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 3 | [
{
"theorem_name": "wellTypedPolicy_ok_implies_well_typed_expr",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨tx, tx', _, _, hwt, _, h, _⟩ := wellTypedPolicy_ok_implies_exists_typed_exprs hwt\n exist... | [
{
"name": "wellTypedPolicy_ok_implies_exists_typed_exprs",
"text": "/--\nReduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.\n-/\ntheorem wellTypedPolicy_ok_implies_exists_typed_exprs\n {Γ : TypeEnv} {p p' : Policy}\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ tx tx' : TypedExpr, ∃ c,\... | [
{
"name": "wellTypedPolicies_preserves_errored",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 15,
"n_chars": 450,
"n_subproofs": 1,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": fa... | 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... | @@ -30,6 +30,93 @@
open Spec SymCC Validation Data
/--
+Reduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.
+-/
+theorem wellTypedPolicy_ok_implies_exists_typed_exprs
+ {Γ : TypeEnv} {p p' : Policy}
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ tx tx' : TypedExpr, ∃ c,
+ TypedExpr.WellTyped ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f32a9a8c8493_8 | f2a5592aae14ffe1 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/WellTyped.lean | WellTyped | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 3 | [
{
"theorem_name": "wellTypedPolicy_ok_implies_well_typed_expr",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨tx, tx', _, _, hwt, _, h, _⟩ := wellTypedPolicy_ok_implies_exists_typed_exprs hwt\n exist... | [
{
"name": "wellTypedPolicy_ok_implies_exists_typed_exprs",
"text": "/--\nReduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.\n-/\ntheorem wellTypedPolicy_ok_implies_exists_typed_exprs\n {Γ : TypeEnv} {p p' : Policy}\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ tx tx' : TypedExpr, ∃ c,\... | [
{
"name": "wellTypedPolicies_preserves_errorPolicies",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 4,
"n_lines": 22,
"n_chars": 770,
"n_subproofs": 1,
"n_tactics": 13,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 4,
"automation_on... | 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... | @@ -30,6 +30,93 @@
open Spec SymCC Validation Data
/--
+Reduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.
+-/
+theorem wellTypedPolicy_ok_implies_exists_typed_exprs
+ {Γ : TypeEnv} {p p' : Policy}
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ tx tx' : TypedExpr, ∃ c,
+ TypedExpr.WellTyped ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_f32a9a8c8493_9 | b150c1a5a30326e9 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/WellTyped.lean | WellTyped | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 9 | 3 | [
{
"theorem_name": "wellTypedPolicy_ok_implies_well_typed_expr",
"depth": 1,
"n_commands": 0,
"n_lines": 4,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨tx, tx', _, _, hwt, _, h, _⟩ := wellTypedPolicy_ok_implies_exists_typed_exprs hwt\n exist... | [
{
"name": "wellTypedPolicy_ok_implies_exists_typed_exprs",
"text": "/--\nReduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.\n-/\ntheorem wellTypedPolicy_ok_implies_exists_typed_exprs\n {Γ : TypeEnv} {p p' : Policy}\n (hwt : wellTypedPolicy p Γ = .ok p') :\n ∃ tx tx' : TypedExpr, ∃ c,\... | [
{
"name": "wellTypedPolicies_preserves_isAuthorized",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 7,
"n_lines": 15,
"n_chars": 678,
"n_subproofs": 3,
"n_tactics": 5,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"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... | @@ -30,6 +30,93 @@
open Spec SymCC Validation Data
/--
+Reduces `wellTypedPolicy` being `ok` to the existence of `TypedExpr`s.
+-/
+theorem wellTypedPolicy_ok_implies_exists_typed_exprs
+ {Γ : TypeEnv} {p p' : Policy}
+ (hwt : wellTypedPolicy p Γ = .ok p') :
+ ∃ tx tx' : TypedExpr, ∃ c,
+ TypedExpr.WellTyped ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_d39ffbe67c33_0 | 9ff2e1b37fe912db | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/IfThenElse.lean | IfThenElse | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "type_of_ite_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 82,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨ty₁, bty₁, rc₁, ty₂, rc₂, ty₃, rc₃, h₄, h₅, h₆, h₇⟩ := type_of_ite_inversion h₃\n specialize ih₁ h₁ h₂ h₅\n h... | [
{
"name": "type_of_ite_inversion",
"text": "theorem type_of_ite_inversion {x₁ x₂ x₃ : Expr} {c c' : Capabilities} {env : TypeEnv} {tx : TypedExpr}\n (h₁ : typeOf (Expr.ite x₁ x₂ x₃) c env = Except.ok (tx, c')) :\n ∃ tx₁ bty₁ c₁ tx₂ c₂ tx₃ c₃,\n tx = TypedExpr.ite tx₁ tx₂ tx₃ tx.typeOf ∧\n typeOf x₁ ... | [
{
"name": "type_of_ite_is_sound",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 93,
"n_chars": 4357,
"n_subproofs": 12,
"n_tactics": 102,
"cyclomatic": 32,
"n_automation": 23,
"n_rewrites": 8,
"n_structural": 36,
"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... | @@ -25,6 +25,63 @@
open Cedar.Spec
open Cedar.Validation
+theorem type_of_ite_inversion {x₁ x₂ x₃ : Expr} {c c' : Capabilities} {env : TypeEnv} {tx : TypedExpr}
+ (h₁ : typeOf (Expr.ite x₁ x₂ x₃) c env = Except.ok (tx, c')) :
+ ∃ tx₁ bty₁ c₁ tx₂ c₂ tx₃ c₃,
+ tx = TypedExpr.ite tx₁ tx₂ tx₃ tx.typeOf ∧
+ 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_df3cea7b723d_0 | cedea1ba54540492 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/BinaryApp/Mem.lean | Mem | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 15 | 3 | [
{
"theorem_name": "actionUID?_some_implies_action_lit",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [actionUID?] at h₁\n cases h₂ : entityUID? x <;> simp [h₂] at h₁\n replace h₂ := entityUID?_some_... | [
{
"name": "entityUID?_some_implies_entity_lit",
"text": "theorem entityUID?_some_implies_entity_lit {x : Expr} {euid : EntityUID}\n (h₁ : entityUID? x = some euid) :\n x = Expr.lit (.entityUID euid)\n:= by\n simp [entityUID?] at h₁\n split at h₁ <;> simp at h₁ ; subst h₁ ; rfl\n\n\n",
"fan_in": 3,
... | [
{
"name": "actionUID?_some_implies_action_lit",
"fan_in": 2,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 434,
"n_subproofs": 0,
"n_tactics": 9,
"cyclomatic": 3,
"n_automation": 3,
"n_rewrites": 1,
"n_structural": 1,
"automation_only": fal... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,11 +27,25 @@
open Cedar.Spec
open Cedar.Validation
+theorem entityUID?_some_implies_entity_lit {x : Expr} {euid : EntityUID}
+ (h₁ : entityUID? x = some euid) :
+ x = Expr.lit (.entityUID euid)
+:= by
+ simp [entityUID?] at h₁
+ split at h₁ <;> simp at h₁ ; subst h₁ ; rfl
+
theorem actionUID?_some_impli... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_df3cea7b723d_1 | 066819a965532276 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/BinaryApp/Mem.lean | Mem | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 15 | 3 | [
{
"theorem_name": "actionUID?_some_implies_action_lit",
"depth": 1,
"n_commands": 0,
"n_lines": 8,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [actionUID?] at h₁\n cases h₂ : entityUID? x <;> simp [h₂] at h₁\n replace h₂ := entityUID?_some_... | [
{
"name": "entityUID?_some_implies_entity_lit",
"text": "theorem entityUID?_some_implies_entity_lit {x : Expr} {euid : EntityUID}\n (h₁ : entityUID? x = some euid) :\n x = Expr.lit (.entityUID euid)\n:= by\n simp [entityUID?] at h₁\n split at h₁ <;> simp at h₁ ; subst h₁ ; rfl\n\n\n",
"fan_in": 3,
... | [
{
"name": "entityUIDs?_some_implies_entity_lits",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 27,
"n_chars": 1040,
"n_subproofs": 1,
"n_tactics": 27,
"cyclomatic": 11,
"n_automation": 11,
"n_rewrites": 1,
"n_structural": 5,
"automation_only... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,10 +27,38 @@
open Cedar.Spec
open Cedar.Validation
+theorem entityUID?_some_implies_entity_lit {x : Expr} {euid : EntityUID}
+ (h₁ : entityUID? x = some euid) :
+ x = Expr.lit (.entityUID euid)
+:= by
+ simp [entityUID?] at h₁
+ split at h₁ <;> simp at h₁ ; subst h₁ ; rfl
+
theorem entityUIDs?_some_impl... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_df3cea7b723d_2 | d9a66055279c5cd0 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/BinaryApp/Mem.lean | Mem | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 15 | 2 | [
{
"theorem_name": "entity_type_in_false_implies_inₑ_false",
"depth": 1,
"n_commands": 0,
"n_lines": 30,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hwf := h₁\n simp only [TypeEnv.descendentOf, Bool.if_true_left, Bool.or_eq_false_iff,\n de... | [
{
"name": "acts_maybeDescendentOf_false_implies_not_ancestor_type",
"text": "theorem acts_maybeDescendentOf_false_implies_not_ancestor_type\n {euid : EntityUID} {ety : EntityType} {data : EntityData} {entry : ActionSchemaEntry}\n {env : TypeEnv} {request : Request} {entities : Entities}\n (hwf : Instance... | [
{
"name": "entity_type_in_false_implies_inₑ_false",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 37,
"n_chars": 1471,
"n_subproofs": 5,
"n_tactics": 31,
"cyclomatic": 5,
"n_automation": 9,
"n_rewrites": 2,
"n_structural": 5,
"automation_only... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,6 +27,31 @@
open Cedar.Spec
open Cedar.Validation
+theorem acts_maybeDescendentOf_false_implies_not_ancestor_type
+ {euid : EntityUID} {ety : EntityType} {data : EntityData} {entry : ActionSchemaEntry}
+ {env : TypeEnv} {request : Request} {entities : Entities}
+ (hwf : InstanceOfWellFormedEnvironment 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_df3cea7b723d_3 | 554e545b367e575c | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/BinaryApp/Mem.lean | Mem | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 15 | 2 | [
{
"theorem_name": "entity_type_in_false_implies_inₑ_false",
"depth": 1,
"n_commands": 0,
"n_lines": 30,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hwf := h₁\n simp only [TypeEnv.descendentOf, Bool.if_true_left, Bool.or_eq_false_iff,\n de... | [
{
"name": "acts_maybeDescendentOf_false_implies_not_ancestor_type",
"text": "theorem acts_maybeDescendentOf_false_implies_not_ancestor_type\n {euid : EntityUID} {ety : EntityType} {data : EntityData} {entry : ActionSchemaEntry}\n {env : TypeEnv} {request : Request} {entities : Entities}\n (hwf : Instance... | [
{
"name": "type_of_mem_is_soundₑ",
"fan_in": 1,
"n_deps_direct": 4,
"n_deps_transitive": 5,
"n_lines": 61,
"n_chars": 2840,
"n_subproofs": 5,
"n_tactics": 68,
"cyclomatic": 24,
"n_automation": 19,
"n_rewrites": 11,
"n_structural": 10,
"automation_only": false,
... | 5 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -47,6 +47,31 @@
subst euid'
simp [h₀, h₂]
+theorem acts_maybeDescendentOf_false_implies_not_ancestor_type
+ {euid : EntityUID} {ety : EntityType} {data : EntityData} {entry : ActionSchemaEntry}
+ {env : TypeEnv} {request : Request} {entities : Entities}
+ (hwf : InstanceOfWellFormedEnvironment request ent... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_df3cea7b723d_4 | a55d7d6efe184edf | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/BinaryApp/Mem.lean | Mem | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 15 | 2 | [
{
"theorem_name": "entity_type_in_false_implies_inₑ_false",
"depth": 1,
"n_commands": 0,
"n_lines": 30,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hwf := h₁\n simp only [TypeEnv.descendentOf, Bool.if_true_left, Bool.or_eq_false_iff,\n de... | [
{
"name": "acts_maybeDescendentOf_false_implies_not_ancestor_type",
"text": "theorem acts_maybeDescendentOf_false_implies_not_ancestor_type\n {euid : EntityUID} {ety : EntityType} {data : EntityData} {entry : ActionSchemaEntry}\n {env : TypeEnv} {request : Request} {entities : Entities}\n (hwf : Instance... | [
{
"name": "entity_type_in_false_implies_inₛ_false",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 57,
"n_chars": 2079,
"n_subproofs": 5,
"n_tactics": 53,
"cyclomatic": 12,
"n_automation": 10,
"n_rewrites": 7,
"n_structural": 8,
"automation_on... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -27,6 +27,31 @@
open Cedar.Spec
open Cedar.Validation
+theorem acts_maybeDescendentOf_false_implies_not_ancestor_type
+ {euid : EntityUID} {ety : EntityType} {data : EntityData} {entry : ActionSchemaEntry}
+ {env : TypeEnv} {request : Request} {entities : Entities}
+ (hwf : InstanceOfWellFormedEnvironment 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_df3cea7b723d_5 | 1a7f053ad2b798e1 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/BinaryApp/Mem.lean | Mem | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 15 | 1 | [
{
"theorem_name": "evaluate_entity_set_eqv",
"depth": 1,
"n_commands": 0,
"n_lines": 17,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [evaluate] at h₁\n cases h₃ : List.mapM₁ (List.map (Expr.lit ∘ Prim.entityUID) euids') fun x => evaluat... | [
{
"name": "mapM'_asEntityUID_eq_entities",
"text": "theorem mapM'_asEntityUID_eq_entities {vs : List Value} {euids : List EntityUID}\n (h₁ : List.mapM' Value.asEntityUID vs = Except.ok euids) :\n vs = List.map (Value.prim ∘ Prim.entityUID) euids\n:= by\n cases vs\n case nil =>\n simp only [List.mapM'... | [
{
"name": "evaluate_entity_set_eqv",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 24,
"n_chars": 1014,
"n_subproofs": 1,
"n_tactics": 18,
"cyclomatic": 4,
"n_automation": 4,
"n_rewrites": 4,
"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... | @@ -46,12 +46,51 @@
· simp [evaluate] at h₂ ; simp [h₂]
· exact mapM'_eval_lits_eq_prims h₃
+theorem mapM'_asEntityUID_eq_entities {vs : List Value} {euids : List EntityUID}
+ (h₁ : List.mapM' Value.asEntityUID vs = Except.ok euids) :
+ vs = List.map (Value.prim ∘ Prim.entityUID) euids
+:= by
+ cases vs
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_df3cea7b723d_6 | af6d54cb2d5112a0 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/BinaryApp/Mem.lean | Mem | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 15 | 1 | [
{
"theorem_name": "type_of_mem_is_soundₛ",
"depth": 1,
"n_commands": 0,
"n_lines": 70,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hwf := h₂\n split_type_of h₃ ; rename_i h₃ hl₃ hr₃\n split_type_of h₄ ; rename_i h₄ hl₄ hr₄\n have ⟨_, v₁, h... | [
{
"name": "entity_set_type_implies_set_of_entities",
"text": "theorem entity_set_type_implies_set_of_entities {env : TypeEnv} {vs : List Value} {ety : EntityType}\n (h₁ : InstanceOfType env (Value.set (Set.mk vs)) (CedarType.set (CedarType.entity ety))) :\n ∃ (euids : List EntityUID),\n vs.mapM Value.a... | [
{
"name": "type_of_mem_is_soundₛ",
"fan_in": 1,
"n_deps_direct": 6,
"n_deps_transitive": 10,
"n_lines": 82,
"n_chars": 4219,
"n_subproofs": 9,
"n_tactics": 88,
"cyclomatic": 24,
"n_automation": 22,
"n_rewrites": 12,
"n_structural": 12,
"automation_only": false,
... | 10 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -98,6 +98,36 @@
have h := hnot_ans euid' heuid'
contradiction
+theorem entity_set_type_implies_set_of_entities {env : TypeEnv} {vs : List Value} {ety : EntityType}
+ (h₁ : InstanceOfType env (Value.set (Set.mk vs)) (CedarType.set (CedarType.entity ety))) :
+ ∃ (euids : List EntityUID),
+ vs.mapM Value.a... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_df3cea7b723d_7 | 3dd2c35a8af95e5d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/BinaryApp/Mem.lean | Mem | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 15 | 1 | [
{
"theorem_name": "type_of_mem_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨hc, ety₁, ety₂, ⟨c₁', h₄⟩ , c₂', h₅⟩ := type_of_mem_inversion h₃\n subst hc\n apply And.intro empty_guarded_ca... | [
{
"name": "type_of_mem_is_soundₑ",
"text": "theorem type_of_mem_is_soundₑ {x₁ x₂ : Expr} {c₁ c₁' c₂' : Capabilities} {env : TypeEnv} {request : Request} {entities : Entities} {ety₁ ety₂ : EntityType}\n (h₁ : CapabilitiesInvariant c₁ request entities)\n (h₂ : InstanceOfWellFormedEnvironment request entitie... | [
{
"name": "type_of_mem_is_sound",
"fan_in": 0,
"n_deps_direct": 3,
"n_deps_transitive": 15,
"n_lines": 17,
"n_chars": 982,
"n_subproofs": 1,
"n_tactics": 8,
"cyclomatic": 3,
"n_automation": 0,
"n_rewrites": 2,
"n_structural": 4,
"automation_only": false,
"max_... | 15 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -174,6 +174,66 @@
simp [inₑ, ActionSchema.descendentOf, h₃, Entities.ancestorsOrEmpty, h₁₁]
rcases h₄ : euid₁ == euid₂ <;> simp at h₄ <;> simp [h₄, h₁₂]
+theorem type_of_mem_is_soundₑ {x₁ x₂ : Expr} {c₁ c₁' c₂' : Capabilities} {env : TypeEnv} {request : Request} {entities : Entities} {ety₁ ety₂ : EntityType}... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_814e96b68ca3_0 | 8aa816ada7b8291e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/SubstituteAction.lean | SubstituteAction | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 17 | 1 | [
{
"theorem_name": "substitute_action_preserves_evaluation_set",
"depth": 1,
"n_commands": 0,
"n_lines": 18,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases h₀ : xs with\n | nil =>\n rw [substitute_action_nil_set]\n | cons h t =>\n simp o... | [
{
"name": "substitute_action_cons_set",
"text": "theorem substitute_action_cons_set : ∀ (h : Expr) (t : List Expr) (uid : EntityUID),\n substituteAction uid (.set (h :: t)) = .set ((substituteAction uid h) :: t.map (substituteAction uid))\n:= by\n intro h t uid\n simp only [substituteAction, mapOnVars, L... | [
{
"name": "substitute_action_preserves_evaluation_set",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 24,
"n_chars": 1041,
"n_subproofs": 2,
"n_tactics": 18,
"cyclomatic": 2,
"n_automation": 7,
"n_rewrites": 3,
"n_structural": 2,
"automation_... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -35,6 +35,15 @@
intro uid
simp only [substituteAction, mapOnVars, List.map₁_eq_map, List.map_nil]
+theorem substitute_action_cons_set : ∀ (h : Expr) (t : List Expr) (uid : EntityUID),
+ substituteAction uid (.set (h :: t)) = .set ((substituteAction uid h) :: t.map (substituteAction uid))
+:= by
+ intro h t... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_814e96b68ca3_1 | f57f968a75c14094 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/SubstituteAction.lean | SubstituteAction | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 17 | 1 | [
{
"theorem_name": "substitute_action_preserves_evaluation_record",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases h₀ : axs with\n | nil =>\n rw [substitute_action_nil_record]\n | cons hd tl =>\n ... | [
{
"name": "substitute_action_cons_record",
"text": "theorem substitute_action_cons_record : ∀ (ax : Attr × Expr) (axs : List (Attr × Expr)) (uid : EntityUID),\n substituteAction uid (.record (ax :: axs)) =\n .record ((ax.fst, substituteAction uid ax.snd) :: axs.map (fun (a, e) => (a, substituteAction uid ... | [
{
"name": "substitute_action_preserves_evaluation_record",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 33,
"n_chars": 1307,
"n_subproofs": 2,
"n_tactics": 27,
"cyclomatic": 2,
"n_automation": 8,
"n_rewrites": 4,
"n_structural": 2,
"automati... | 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... | @@ -35,6 +35,13 @@
intro uid
simp only [substituteAction, mapOnVars, List.map₂_eq_map_snd, List.map_nil]
+theorem substitute_action_cons_record : ∀ (ax : Attr × Expr) (axs : List (Attr × Expr)) (uid : EntityUID),
+ substituteAction uid (.record (ax :: axs)) =
+ .record ((ax.fst, substituteAction uid ax.snd) :... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_814e96b68ca3_2 | 1897a0ff918d0765 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/SubstituteAction.lean | SubstituteAction | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 17 | 1 | [
{
"theorem_name": "substitute_action_preserves_evaluation_call",
"depth": 1,
"n_commands": 0,
"n_lines": 18,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases h₀ : xs with\n | nil =>\n rw [substitute_action_nil_call]\n | cons h t =>\n simp... | [
{
"name": "substitute_action_cons_call",
"text": "theorem substitute_action_cons_call : ∀ (x : Expr) (xs : List Expr) (uid : EntityUID) (xfn : ExtFun),\n substituteAction uid (.call xfn (x :: xs)) = .call xfn ((substituteAction uid x) :: xs.map (substituteAction uid)) :=\nby\n intro h t uid\n simp only [... | [
{
"name": "substitute_action_preserves_evaluation_call",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 24,
"n_chars": 1067,
"n_subproofs": 2,
"n_tactics": 18,
"cyclomatic": 2,
"n_automation": 6,
"n_rewrites": 4,
"n_structural": 2,
"automation... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -35,6 +35,15 @@
intro uid
simp only [substituteAction, mapOnVars, List.map₁_eq_map, List.map_nil, implies_true]
+theorem substitute_action_cons_call : ∀ (x : Expr) (xs : List Expr) (uid : EntityUID) (xfn : ExtFun),
+ substituteAction uid (.call xfn (x :: xs)) = .call xfn ((substituteAction uid x) :: xs.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_814e96b68ca3_3 | c5da421a37c24a20 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/SubstituteAction.lean | SubstituteAction | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 17 | 1 | [
{
"theorem_name": "substitute_action_preserves_evaluation",
"depth": 1,
"n_commands": 0,
"n_lines": 50,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases h₀ : expr with\n | lit p => simp only [substituteAction, mapOnVars]\n | var vr =>\n case... | [
{
"name": "substitute_action_preserves_evaluation_record",
"text": "theorem substitute_action_preserves_evaluation_record {axs : List (Attr × Expr)} {request : Request} {entities : Entities}\n(ih₁ : ∀ axᵢ, axᵢ ∈ axs → SubstituteActionPreservesEvaluation axᵢ.snd request entities) :\n evaluate (substituteAct... | [
{
"name": "substitute_action_preserves_evaluation",
"fan_in": 1,
"n_deps_direct": 10,
"n_deps_transitive": 16,
"n_lines": 55,
"n_chars": 3098,
"n_subproofs": 16,
"n_tactics": 52,
"cyclomatic": 5,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 19,
"automation_... | 16 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -145,6 +145,38 @@
intro h t uid
simp only [substituteAction, mapOnVars, List.map₂_eq_map_snd, List.map_cons]
+theorem substitute_action_preserves_evaluation_record {axs : List (Attr × Expr)} {request : Request} {entities : Entities}
+(ih₁ : ∀ axᵢ, axᵢ ∈ axs → SubstituteActionPreservesEvaluation axᵢ.snd reque... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_814e96b68ca3_4 | c642382d15daef7b | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/SubstituteAction.lean | SubstituteAction | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 17 | 1 | [
{
"theorem_name": "substitute_action_preserves_evaluation_call",
"depth": 1,
"n_commands": 0,
"n_lines": 18,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases h₀ : xs with\n | nil =>\n rw [substitute_action_nil_call]\n | cons h t =>\n simp... | [
{
"name": "substitute_action_nil_call",
"text": "theorem substitute_action_nil_call : ∀ (uid : EntityUID) (xfn : ExtFun),\n substituteAction uid (.call xfn []) = .call xfn [] :=\nby\n intro uid\n simp only [substituteAction, mapOnVars, List.map₁_eq_map, List.map_nil, implies_true]\n\n",
"fan_in": 1,
... | [
{
"name": "substitute_action_preserves_evaluates_to",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 17,
"n_lines": 6,
"n_chars": 303,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only... | 17 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -177,6 +177,12 @@
simp [ih₁.right a x hx]
rw [List.mapM_congr h₂]
+theorem substitute_action_nil_call : ∀ (uid : EntityUID) (xfn : ExtFun),
+ substituteAction uid (.call xfn []) = .call xfn [] :=
+by
+ intro uid
+ simp only [substituteAction, mapOnVars, List.map₁_eq_map, List.map_nil, implies_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_78cdd5ee20e2_0 | ba396254c35305fc | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 1 | [
{
"theorem_name": "type_of_call_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 17,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [typeOf, typeOfCall] at htx\n simp_do_let (xs.mapM₁ fun x => justType (typeOf x.val c env)) as htx₁ at h... | [
{
"name": "type_of_call_args_inversion",
"text": "theorem type_of_call_args_inversion {xs : List Expr} {txs : List TypedExpr} {c : Capabilities} {env : TypeEnv}\n (htxs : (xs.mapM₁ λ x => justType (typeOf x.val c env)) = Except.ok txs) :\n List.Forall₂ (λ xᵢ txᵢ => ∃ cᵢ, typeOf xᵢ c env = Except.ok (txᵢ, ... | [
{
"name": "type_of_call_inversion",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 24,
"n_chars": 1213,
"n_subproofs": 0,
"n_tactics": 24,
"cyclomatic": 14,
"n_automation": 7,
"n_rewrites": 0,
"n_structural": 8,
"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,31 @@
open Cedar.Spec
open Cedar.Validation
+theorem type_of_call_args_inversion {xs : List Expr} {txs : List TypedExpr} {c : Capabilities} {env : TypeEnv}
+ (htxs : (xs.mapM₁ λ x => justType (typeOf x.val c env)) = Except.ok txs) :
+ List.Forall₂ (λ xᵢ txᵢ => ∃ cᵢ, typeOf xᵢ c env = Except.ok (txᵢ, ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_1 | 42165f2fbd454140 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 1 | [
{
"theorem_name": "type_of_call_decimal_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨h₂, h₃, s, h₄, h₅⟩ := type_of_call_decimal_inversion h₁\n rw [h₂]\n subst h₃ h₄\n apply And.intro e... | [
{
"name": "type_of_call_decimal_inversion",
"text": "theorem type_of_call_decimal_inversion {xs : List Expr} {c c' : Capabilities} {env : TypeEnv} {ty : TypedExpr}\n (h₁ : typeOf (Expr.call .decimal xs) c env = Except.ok (ty, c')) :\n ty.typeOf = .ext .decimal ∧\n c' = ∅ ∧\n ∃ (s : String),\n xs = [.... | [
{
"name": "type_of_call_decimal_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 17,
"n_chars": 825,
"n_subproofs": 2,
"n_tactics": 11,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 3,
"n_structural": 5,
"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,11 +26,41 @@
open Cedar.Spec
open Cedar.Validation
+theorem type_of_call_decimal_inversion {xs : List Expr} {c c' : Capabilities} {env : TypeEnv} {ty : TypedExpr}
+ (h₁ : typeOf (Expr.call .decimal xs) c env = Except.ok (ty, c')) :
+ ty.typeOf = .ext .decimal ∧
+ c' = ∅ ∧
+ ∃ (s : String),
+ xs = [.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_78cdd5ee20e2_2 | 2c9f68bd5e627a10 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 1 | [
{
"theorem_name": "type_of_call_datetime_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨h₂, h₃, s, h₄, h₅⟩ := type_of_call_datetime_inversion h₁\n rw [h₂]\n subst h₃ h₄\n apply And.intro... | [
{
"name": "type_of_call_datetime_inversion",
"text": "theorem type_of_call_datetime_inversion {xs : List Expr} {c c' : Capabilities} {env : TypeEnv} {ty : TypedExpr}\n (h₁ : typeOf (Expr.call .datetime xs) c env = Except.ok (ty, c')) :\n ty.typeOf = .ext .datetime ∧\n c' = ∅ ∧\n ∃ (s : String),\n xs ... | [
{
"name": "type_of_call_datetime_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 17,
"n_chars": 834,
"n_subproofs": 2,
"n_tactics": 11,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 3,
"n_structural": 5,
"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,11 +26,42 @@
open Cedar.Spec
open Cedar.Validation
+theorem type_of_call_datetime_inversion {xs : List Expr} {c c' : Capabilities} {env : TypeEnv} {ty : TypedExpr}
+ (h₁ : typeOf (Expr.call .datetime xs) c env = Except.ok (ty, c')) :
+ ty.typeOf = .ext .datetime ∧
+ c' = ∅ ∧
+ ∃ (s : String),
+ xs = [... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_3 | 06e532a8cd9f5e2d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 1 | [
{
"theorem_name": "type_of_call_duration_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨h₂, h₃, s, h₄, h₅⟩ := type_of_call_duration_inversion h₁\n rw [h₂]\n subst h₃ h₄\n apply And.intro... | [
{
"name": "type_of_call_duration_inversion",
"text": "theorem type_of_call_duration_inversion {xs : List Expr} {c c' : Capabilities} {env : TypeEnv} {ty : TypedExpr}\n (h₁ : typeOf (Expr.call .duration xs) c env = Except.ok (ty, c')) :\n ty.typeOf = .ext .duration ∧\n c' = ∅ ∧\n ∃ (s : String),\n xs ... | [
{
"name": "type_of_call_duration_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 17,
"n_chars": 834,
"n_subproofs": 2,
"n_tactics": 11,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 3,
"n_structural": 5,
"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,11 +26,40 @@
open Cedar.Spec
open Cedar.Validation
+theorem type_of_call_duration_inversion {xs : List Expr} {c c' : Capabilities} {env : TypeEnv} {ty : TypedExpr}
+ (h₁ : typeOf (Expr.call .duration xs) c env = Except.ok (ty, c')) :
+ ty.typeOf = .ext .duration ∧
+ c' = ∅ ∧
+ ∃ (s : String),
+ xs = [... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_4 | 94d984d399948864 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 1 | [
{
"theorem_name": "type_of_call_ip_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 11,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨h₂, h₃, s, h₄, h₅⟩ := type_of_call_ip_inversion h₁\n rw [h₂]\n subst h₃ h₄\n apply And.intro empty_guard... | [
{
"name": "type_of_call_ip_inversion",
"text": "theorem type_of_call_ip_inversion {xs : List Expr} {c c' : Capabilities} {env : TypeEnv} {ty : TypedExpr}\n (h₁ : typeOf (Expr.call .ip xs) c env = Except.ok (ty, c')) :\n ty.typeOf = .ext .ipAddr ∧\n c' = ∅ ∧\n ∃ (s : String),\n xs = [.lit (.string s)]... | [
{
"name": "type_of_call_ip_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 17,
"n_chars": 800,
"n_subproofs": 2,
"n_tactics": 11,
"cyclomatic": 2,
"n_automation": 1,
"n_rewrites": 3,
"n_structural": 5,
"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,11 +26,42 @@
open Cedar.Spec
open Cedar.Validation
+theorem type_of_call_ip_inversion {xs : List Expr} {c c' : Capabilities} {env : TypeEnv} {ty : TypedExpr}
+ (h₁ : typeOf (Expr.call .ip xs) c env = Except.ok (ty, c')) :
+ ty.typeOf = .ext .ipAddr ∧
+ c' = ∅ ∧
+ ∃ (s : String),
+ xs = [.lit (.string ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_5 | fb956b2b20fa8d65 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_decimal_comparator_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"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 si... | [
{
"name": "typeOf_of_binary_call_inversion",
"text": "theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :\n ∃ x₁ x₂ c₁ c₂,\n xs = [x₁, x₂] ∧\n (typeOf x₁ ... | [
{
"name": "type_of_call_decimal_comparator_inversion",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 38,
"n_chars": 1309,
"n_subproofs": 2,
"n_tactics": 32,
"cyclomatic": 16,
"n_automation": 9,
"n_rewrites": 3,
"n_structural": 5,
"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,6 +26,50 @@
open Cedar.Spec
open Cedar.Validation
+theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :
+ ∃ x₁ x₂ c₁ c₂,
+ xs = [x₁, x₂] ∧
+ (typeOf x₁ c en... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_6 | 8c6f6b434915f304 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_decimal_comparator_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"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 si... | [
{
"name": "typeOf_of_binary_call_inversion",
"text": "theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :\n ∃ x₁ x₂ c₁ c₂,\n xs = [x₁, x₂] ∧\n (typeOf x₁ ... | [
{
"name": "type_of_call_decimal_comparator_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 43,
"n_chars": 1906,
"n_subproofs": 7,
"n_tactics": 40,
"cyclomatic": 13,
"n_automation": 7,
"n_rewrites": 5,
"n_structural": 6,
"automation_o... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -26,6 +26,50 @@
open Cedar.Spec
open Cedar.Validation
+theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :
+ ∃ x₁ x₂ c₁ c₂,
+ xs = [x₁, x₂] ∧
+ (typeOf x₁ c en... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_7 | 01bd606bd36d8001 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_decimal_comparator_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"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 si... | [
{
"name": "typeOf_of_binary_call_inversion",
"text": "theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :\n ∃ x₁ x₂ c₁ c₂,\n xs = [x₁, x₂] ∧\n (typeOf x₁ ... | [
{
"name": "type_of_call_isInRange_inversion",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 33,
"n_chars": 1125,
"n_subproofs": 2,
"n_tactics": 28,
"cyclomatic": 15,
"n_automation": 8,
"n_rewrites": 3,
"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... | @@ -26,6 +26,50 @@
open Cedar.Spec
open Cedar.Validation
+theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :
+ ∃ x₁ x₂ c₁ c₂,
+ xs = [x₁, x₂] ∧
+ (typeOf x₁ c en... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_8 | 74c7b791f6122594 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_decimal_comparator_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"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 si... | [
{
"name": "typeOf_of_binary_call_inversion",
"text": "theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :\n ∃ x₁ x₂ c₁ c₂,\n xs = [x₁, x₂] ∧\n (typeOf x₁ ... | [
{
"name": "type_of_call_isInRange_comparator_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 37,
"n_chars": 1755,
"n_subproofs": 7,
"n_tactics": 34,
"cyclomatic": 9,
"n_automation": 6,
"n_rewrites": 5,
"n_structural": 6,
"automation_... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -26,6 +26,50 @@
open Cedar.Spec
open Cedar.Validation
+theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :
+ ∃ x₁ x₂ c₁ c₂,
+ xs = [x₁, x₂] ∧
+ (typeOf x₁ c en... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_9 | 66e2cbdc4053064b | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_toTime_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 20,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [typeOf] at h₁\n simp_do_let (List.mapM₁ xs fun x => justType (typeOf x.val c env)) as h₂ at h₁\n ren... | [
{
"name": "typeOf_of_unary_call_inversion",
"text": "theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :\n ∃ x₁ c₁,\n xs = [x₁] ∧\n (typeOf x₁ c env).typeOf = .ok (... | [
{
"name": "type_of_call_toTime_inversion",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 29,
"n_chars": 1006,
"n_subproofs": 1,
"n_tactics": 23,
"cyclomatic": 10,
"n_automation": 6,
"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... | @@ -40,6 +40,39 @@
| .isMulticast => True
| _ => False
+theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :
+ ∃ x₁ c₁,
+ xs = [x₁] ∧
+ (typeOf x₁ c env).type... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_10 | 01f6cfe92a525014 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_toTime_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 20,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [typeOf] at h₁\n simp_do_let (List.mapM₁ xs fun x => justType (typeOf x.val c env)) as h₂ at h₁\n ren... | [
{
"name": "typeOf_of_unary_call_inversion",
"text": "theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :\n ∃ x₁ c₁,\n xs = [x₁] ∧\n (typeOf x₁ c env).typeOf = .ok (... | [
{
"name": "type_of_call_toTime_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 31,
"n_chars": 1621,
"n_subproofs": 4,
"n_tactics": 25,
"cyclomatic": 5,
"n_automation": 5,
"n_rewrites": 4,
"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... | @@ -40,6 +40,39 @@
| .isMulticast => True
| _ => False
+theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :
+ ∃ x₁ c₁,
+ xs = [x₁] ∧
+ (typeOf x₁ c env).type... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_11 | eca2c6adb4312a1d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_toTime_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 20,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [typeOf] at h₁\n simp_do_let (List.mapM₁ xs fun x => justType (typeOf x.val c env)) as h₂ at h₁\n ren... | [
{
"name": "typeOf_of_unary_call_inversion",
"text": "theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :\n ∃ x₁ c₁,\n xs = [x₁] ∧\n (typeOf x₁ c env).typeOf = .ok (... | [
{
"name": "type_of_call_toDate_inversion",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 29,
"n_chars": 1011,
"n_subproofs": 1,
"n_tactics": 23,
"cyclomatic": 10,
"n_automation": 6,
"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... | @@ -40,6 +40,39 @@
| .isMulticast => True
| _ => False
+theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :
+ ∃ x₁ c₁,
+ xs = [x₁] ∧
+ (typeOf x₁ c env).type... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_12 | eb04bca867237ba0 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_toTime_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 20,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [typeOf] at h₁\n simp_do_let (List.mapM₁ xs fun x => justType (typeOf x.val c env)) as h₂ at h₁\n ren... | [
{
"name": "typeOf_of_unary_call_inversion",
"text": "theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :\n ∃ x₁ c₁,\n xs = [x₁] ∧\n (typeOf x₁ c env).typeOf = .ok (... | [
{
"name": "type_of_call_toDate_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 36,
"n_chars": 1810,
"n_subproofs": 4,
"n_tactics": 30,
"cyclomatic": 6,
"n_automation": 7,
"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... | @@ -40,6 +40,39 @@
| .isMulticast => True
| _ => False
+theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :
+ ∃ x₁ c₁,
+ xs = [x₁] ∧
+ (typeOf x₁ c env).type... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_13 | 44385f183b0ad390 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_decimal_comparator_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"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 si... | [
{
"name": "typeOf_of_binary_call_inversion",
"text": "theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :\n ∃ x₁ x₂ c₁ c₂,\n xs = [x₁, x₂] ∧\n (typeOf x₁ ... | [
{
"name": "type_of_call_offset_inversion",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 34,
"n_chars": 1258,
"n_subproofs": 2,
"n_tactics": 28,
"cyclomatic": 13,
"n_automation": 7,
"n_rewrites": 3,
"n_structural": 4,
"automation_only": false... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -26,6 +26,50 @@
open Cedar.Spec
open Cedar.Validation
+theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :
+ ∃ x₁ x₂ c₁ c₂,
+ xs = [x₁, x₂] ∧
+ (typeOf x₁ c en... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_14 | 836b6c8cbb73c253 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 14 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_decimal_comparator_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"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 si... | [
{
"name": "typeOf_of_binary_call_inversion",
"text": "theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :\n ∃ x₁ x₂ c₁ c₂,\n xs = [x₁, x₂] ∧\n (typeOf x₁ ... | [
{
"name": "type_of_call_offset_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 47,
"n_chars": 2403,
"n_subproofs": 7,
"n_tactics": 44,
"cyclomatic": 10,
"n_automation": 10,
"n_rewrites": 6,
"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... | @@ -26,6 +26,50 @@
open Cedar.Spec
open Cedar.Validation
+theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :
+ ∃ x₁ x₂ c₁ c₂,
+ xs = [x₁, x₂] ∧
+ (typeOf x₁ c en... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_15 | 4758eb87ac316304 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 15 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_decimal_comparator_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"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 si... | [
{
"name": "typeOf_of_binary_call_inversion",
"text": "theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :\n ∃ x₁ x₂ c₁ c₂,\n xs = [x₁, x₂] ∧\n (typeOf x₁ ... | [
{
"name": "type_of_call_durationSince_inversion",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 34,
"n_chars": 1272,
"n_subproofs": 2,
"n_tactics": 28,
"cyclomatic": 13,
"n_automation": 7,
"n_rewrites": 3,
"n_structural": 4,
"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... | @@ -26,6 +26,50 @@
open Cedar.Spec
open Cedar.Validation
+theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :
+ ∃ x₁ x₂ c₁ c₂,
+ xs = [x₁, x₂] ∧
+ (typeOf x₁ c en... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_16 | ebbe645ffcdc0784 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 16 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_decimal_comparator_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 27,
"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 si... | [
{
"name": "typeOf_of_binary_call_inversion",
"text": "theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :\n ∃ x₁ x₂ c₁ c₂,\n xs = [x₁, x₂] ∧\n (typeOf x₁ ... | [
{
"name": "type_of_call_durationSince_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 48,
"n_chars": 2451,
"n_subproofs": 7,
"n_tactics": 45,
"cyclomatic": 10,
"n_automation": 10,
"n_rewrites": 6,
"n_structural": 8,
"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... | @@ -26,6 +26,50 @@
open Cedar.Spec
open Cedar.Validation
+theorem typeOf_of_binary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ ty₂ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁, ty₂]) :
+ ∃ x₁ x₂ c₁ c₂,
+ xs = [x₁, x₂] ∧
+ (typeOf x₁ c en... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_17 | cd6d9a89ab2ae553 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 17 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_toTime_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 20,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [typeOf] at h₁\n simp_do_let (List.mapM₁ xs fun x => justType (typeOf x.val c env)) as h₂ at h₁\n ren... | [
{
"name": "typeOf_of_unary_call_inversion",
"text": "theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :\n ∃ x₁ c₁,\n xs = [x₁] ∧\n (typeOf x₁ c env).typeOf = .ok (... | [
{
"name": "type_of_call_ipAddr_recognizer_inversion",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 33,
"n_chars": 1042,
"n_subproofs": 1,
"n_tactics": 27,
"cyclomatic": 13,
"n_automation": 8,
"n_rewrites": 2,
"n_structural": 4,
"automation_o... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -40,6 +40,39 @@
| .isMulticast => True
| _ => False
+theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :
+ ∃ x₁ c₁,
+ xs = [x₁] ∧
+ (typeOf x₁ c env).type... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_18 | 2254d0130c375230 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 18 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_toTime_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 20,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [typeOf] at h₁\n simp_do_let (List.mapM₁ xs fun x => justType (typeOf x.val c env)) as h₂ at h₁\n ren... | [
{
"name": "typeOf_of_unary_call_inversion",
"text": "theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :\n ∃ x₁ c₁,\n xs = [x₁] ∧\n (typeOf x₁ c env).typeOf = .ok (... | [
{
"name": "type_of_call_ipAddr_recognizer_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 34,
"n_chars": 1532,
"n_subproofs": 4,
"n_tactics": 29,
"cyclomatic": 9,
"n_automation": 6,
"n_rewrites": 4,
"n_structural": 4,
"automation_onl... | 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... | @@ -40,6 +40,39 @@
| .isMulticast => True
| _ => False
+theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :
+ ∃ x₁ c₁,
+ xs = [x₁] ∧
+ (typeOf x₁ c env).type... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_19 | bf4c7954ed005655 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 19 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_toTime_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 20,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [typeOf] at h₁\n simp_do_let (List.mapM₁ xs fun x => justType (typeOf x.val c env)) as h₂ at h₁\n ren... | [
{
"name": "typeOf_of_unary_call_inversion",
"text": "theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :\n ∃ x₁ c₁,\n xs = [x₁] ∧\n (typeOf x₁ c env).typeOf = .ok (... | [
{
"name": "type_of_call_duration_converter_inversion",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 33,
"n_chars": 1037,
"n_subproofs": 1,
"n_tactics": 27,
"cyclomatic": 13,
"n_automation": 8,
"n_rewrites": 2,
"n_structural": 4,
"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... | @@ -40,6 +40,39 @@
| .isMulticast => True
| _ => False
+theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :
+ ∃ x₁ c₁,
+ xs = [x₁] ∧
+ (typeOf x₁ c env).type... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_20 | 31f2636dcfc49105 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 20 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 4 | [
{
"theorem_name": "type_of_call_toTime_inversion",
"depth": 1,
"n_commands": 0,
"n_lines": 20,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [typeOf] at h₁\n simp_do_let (List.mapM₁ xs fun x => justType (typeOf x.val c env)) as h₂ at h₁\n ren... | [
{
"name": "typeOf_of_unary_call_inversion",
"text": "theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}\n (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :\n ∃ x₁ c₁,\n xs = [x₁] ∧\n (typeOf x₁ c env).typeOf = .ok (... | [
{
"name": "type_of_call_duration_converter_is_sound",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 34,
"n_chars": 1605,
"n_subproofs": 4,
"n_tactics": 29,
"cyclomatic": 9,
"n_automation": 6,
"n_rewrites": 4,
"n_structural": 4,
"automation_on... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -40,6 +40,39 @@
| .isMulticast => True
| _ => False
+theorem typeOf_of_unary_call_inversion {xs : List Expr} {c : Capabilities} {env : TypeEnv} {ty₁ : TypedExpr}
+ (h₁ : (xs.mapM₁ fun x => justType (typeOf x.val c env)) = Except.ok [ty₁]) :
+ ∃ x₁ c₁,
+ xs = [x₁] ∧
+ (typeOf x₁ c env).type... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_78cdd5ee20e2_21 | c7bc1b58531f2ce2 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/Call.lean | Call | 21 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 27 | 1 | [
{
"theorem_name": "type_of_call_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 24,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n match xfn with\n | .decimal => exact type_of_call_decimal_is_sound h₃\n | .ip => exact ... | [
{
"name": "type_of_call_isInRange_comparator_is_sound",
"text": "theorem type_of_call_isInRange_comparator_is_sound {xs : List Expr} {c₁ c₂ : Capabilities} {env : TypeEnv} {ty : TypedExpr} {request : Request} {entities : Entities}\n (h₁ : CapabilitiesInvariant c₁ request entities)\n (h₂ : InstanceOfWellFo... | [
{
"name": "type_of_call_is_sound",
"fan_in": 0,
"n_deps_direct": 12,
"n_deps_transitive": 26,
"n_lines": 34,
"n_chars": 1879,
"n_subproofs": 0,
"n_tactics": 24,
"cyclomatic": 2,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 12,
"automation_only": false,
... | 26 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -332,6 +332,42 @@
apply typeOf_of_binary_call_inversion h₂
}
+theorem type_of_call_isInRange_comparator_is_sound {xs : List Expr} {c₁ c₂ : Capabilities} {env : TypeEnv} {ty : TypedExpr} {request : Request} {entities : Entities}
+ (h₁ : CapabilitiesInvariant c₁ request entities)
+ (h₂ : InstanceOfWellForm... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_0 | 566486c1a5f339e3 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 2 | [
{
"theorem_name": "typeOf_compile_and_option_bool",
"depth": 1,
"n_commands": 0,
"n_lines": 12,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ⟨t₁, hok₁, hok⟩ := compile_and_ok_implies hok\n split at hok\n · subst hok\n simp only [typeOf... | [
{
"name": "typeOf_ifSome_ite_option_bool",
"text": "private theorem typeOf_ifSome_ite_option_bool {t₁ t₂ t₃ : Term} {εs : SymEntities} :\n t₁.WellFormed εs → t₂.WellFormed εs → t₃.WellFormed εs →\n t₁.typeOf = .option .bool → t₂.typeOf = .option .bool → t₃.typeOf = .option .bool →\n (ifSome t₁ (Factory.i... | [
{
"name": "typeOf_compile_and_option_bool",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 18,
"n_chars": 795,
"n_subproofs": 4,
"n_tactics": 12,
"cyclomatic": 4,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 1,
"automation_only": false,... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,17 @@
-------------------
+private theorem typeOf_ifSome_ite_option_bool {t₁ t₂ t₃ : Term} {εs : SymEntities} :
+ t₁.WellFormed εs → t₂.WellFormed εs → t₃.WellFormed εs →
+ t₁.typeOf = .option .bool → t₂.typeOf = .option .bool → t₃.typeOf = .option .bool →
+ (ifSome t₁ (Factory.ite (option.get t₁) ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_1 | 6c8a1e39862edd36 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 2 | [
{
"theorem_name": "typeOf_compile_and_option_bool",
"depth": 1,
"n_commands": 0,
"n_lines": 12,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace ⟨t₁, hok₁, hok⟩ := compile_and_ok_implies hok\n split at hok\n · subst hok\n simp only [typeOf... | [
{
"name": "typeOf_ifSome_ite_option_bool",
"text": "private theorem typeOf_ifSome_ite_option_bool {t₁ t₂ t₃ : Term} {εs : SymEntities} :\n t₁.WellFormed εs → t₂.WellFormed εs → t₃.WellFormed εs →\n t₁.typeOf = .option .bool → t₂.typeOf = .option .bool → t₃.typeOf = .option .bool →\n (ifSome t₁ (Factory.i... | [
{
"name": "typeOf_compile_or_option_bool",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 18,
"n_chars": 791,
"n_subproofs": 4,
"n_tactics": 12,
"cyclomatic": 4,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 1,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,6 +39,17 @@
-------------------
+private theorem typeOf_ifSome_ite_option_bool {t₁ t₂ t₃ : Term} {εs : SymEntities} :
+ t₁.WellFormed εs → t₂.WellFormed εs → t₃.WellFormed εs →
+ t₁.typeOf = .option .bool → t₂.typeOf = .option .bool → t₃.typeOf = .option .bool →
+ (ifSome t₁ (Factory.ite (option.get t₁) ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_2 | 7b7faf8133e7f0a1 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 3 | [
{
"theorem_name": "compile_interpret_lit_in_footprint",
"depth": 1,
"n_commands": 0,
"n_lines": 18,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hok' := hok\n have hty := compile_isOptionEntityType hwε hI hok ht\n simp only [compile, compile... | [
{
"name": "compile_isOptionEntityType",
"text": "private theorem compile_isOptionEntityType {x : Expr} {εnv : SymEnv} {I : Interpretation} {t : Term} {uid : EntityUID}\n (hwε : εnv.WellFormedFor x)\n (hI : I.WellFormed εnv.entities)\n (hok : compile x εnv = .ok t)\n (ht : t.interpret I = .some (.entit... | [
{
"name": "compile_interpret_lit_in_footprint",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 26,
"n_chars": 1247,
"n_subproofs": 2,
"n_tactics": 20,
"cyclomatic": 5,
"n_automation": 6,
"n_rewrites": 3,
"n_structural": 2,
"automation_only": f... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,13 +39,43 @@
-------------------
+private theorem compile_isOptionEntityType {x : Expr} {εnv : SymEnv} {I : Interpretation} {t : Term} {uid : EntityUID}
+ (hwε : εnv.WellFormedFor x)
+ (hI : I.WellFormed εnv.entities)
+ (hok : compile x εnv = .ok t)
+ (ht : t.interpret I = .some (.entity uid)) :
+ t.... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_3 | f31c843b979f7b3f | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 3 | [
{
"theorem_name": "compile_interpret_lit_in_footprint",
"depth": 1,
"n_commands": 0,
"n_lines": 18,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have hok' := hok\n have hty := compile_isOptionEntityType hwε hI hok ht\n simp only [compile, compile... | [
{
"name": "compile_isOptionEntityType",
"text": "private theorem compile_isOptionEntityType {x : Expr} {εnv : SymEnv} {I : Interpretation} {t : Term} {uid : EntityUID}\n (hwε : εnv.WellFormedFor x)\n (hI : I.WellFormed εnv.entities)\n (hok : compile x εnv = .ok t)\n (ht : t.interpret I = .some (.entit... | [
{
"name": "compile_interpret_var_in_footprint",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 25,
"n_chars": 1103,
"n_subproofs": 2,
"n_tactics": 22,
"cyclomatic": 9,
"n_automation": 7,
"n_rewrites": 1,
"n_structural": 2,
"automation_only": f... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -39,13 +39,42 @@
-------------------
+private theorem compile_isOptionEntityType {x : Expr} {εnv : SymEnv} {I : Interpretation} {t : Term} {uid : EntityUID}
+ (hwε : εnv.WellFormedFor x)
+ (hI : I.WellFormed εnv.entities)
+ (hok : compile x εnv = .ok t)
+ (ht : t.interpret I = .some (.entity uid)) :
+ t.... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_4 | 763933f493693b07 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 1 | [
{
"theorem_name": "compile_interpret_in_footprint",
"depth": 1,
"n_commands": 0,
"n_lines": 56,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction x using compile.induct generalizing t\n case case1 =>\n exact compile_interpret_lit_in_footpr... | [
{
"name": "compile_interpret_lit_in_footprint",
"text": "private theorem compile_interpret_lit_in_footprint {p : Prim} {εnv : SymEnv} {I : Interpretation} {t : Term} {uid : EntityUID}\n (hwε : εnv.WellFormedFor (Expr.lit p))\n (hI : I.WellFormed εnv.entities)\n (hok : compile (Expr.lit p) εnv = .ok t)\n... | [
{
"name": "compile_interpret_in_footprint",
"fan_in": 1,
"n_deps_direct": 11,
"n_deps_transitive": 12,
"n_lines": 66,
"n_chars": 2802,
"n_subproofs": 14,
"n_tactics": 57,
"cyclomatic": 7,
"n_automation": 8,
"n_rewrites": 3,
"n_structural": 11,
"automation_only": f... | 12 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -160,6 +160,31 @@
simp only [hty, TermType.option.injEq, TermType.prim.injEq,
TermPrimType.ext.injEq, exists_eq', or_true, exists_const, or_false, reduceCtorEq]
+private theorem compile_interpret_lit_in_footprint {p : Prim} {εnv : SymEnv} {I : Interpretation} {t : Term} {uid : EntityUID}
+ (hwε : εnv.Well... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_5 | 300832fc4ec65abf | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 7 | [
{
"theorem_name": "interpret_ifSome_ifSome_ite_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI₁ hI₂ hwt₁ hwt₂ hwt₃ hty₁ hty₂ hty₃ ht₁ ht₂ ht₃\n have ⟨hwo₁, hoty₁⟩ := wf_option_get hwt₁ hty₁\n ... | [
{
"name": "interpret_option_get_eq",
"text": "private theorem interpret_option_get_eq {t t' : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :\n t.WellFormed εs → t.typeOf = .option ty →\n t.interpret I₁ = t.interpret I₂ →\n t.interpret I₂ = .some t' →\n (Factory.option.get t).interpret I₁ = (Factory... | [
{
"name": "interpret_ifSome_ifSome_ite_eq",
"fan_in": 3,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 27,
"n_chars": 1319,
"n_subproofs": 4,
"n_tactics": 14,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 3,
"n_structural": 1,
"automation_only": false... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -63,6 +63,16 @@
simp only [pe_ifSome_some hwt₁₂.right, pe_ifSome_some hwt₂₂.right]
clear hwt₁₂ hwt₂₂ hwl₂))
+private theorem interpret_option_get_eq {t t' : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :
+ t.WellFormed εs → t.typeOf = .option ty →
+ t.interpret I₁ = t.interpret I₂ →
+ t.interpret... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_6 | efedc3b1c3aff302 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 3 | [
{
"theorem_name": "compile_interpret_ite_on_footprint",
"depth": 1,
"n_commands": 0,
"n_lines": 21,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace hwε := wf_εnv_for_ite_implies hwε\n replace ⟨t₁, hok₁, hok⟩ := compile_ite_ok_implies hok\n s... | [
{
"name": "interpret_ifSome_ifSome_ite_eq",
"text": "private theorem interpret_ifSome_ifSome_ite_eq {t₁ t₂ t₃ : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :\n I₁.WellFormed εs → I₂.WellFormed εs →\n t₁.WellFormed εs → t₂.WellFormed εs → t₃.WellFormed εs →\n t₁.typeOf = .option .bool →\n t₂.typeOf... | [
{
"name": "compile_interpret_ite_on_footprint",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 34,
"n_chars": 1679,
"n_subproofs": 4,
"n_tactics": 23,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 4,
"n_structural": 3,
"automation_only": f... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -73,6 +73,32 @@
simp only [interpret_option_get I₁ hwt hty, heq₁, heq₂, pe_option_get'_some,
interpret_option_get I₂ hwt hty]
+private theorem interpret_ifSome_ifSome_ite_eq {t₁ t₂ t₃ : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :
+ I₁.WellFormed εs → I₂.WellFormed εs →
+ t₁.WellFormed εs → t₂.Wel... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_7 | a55237bcb4609165 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 3 | [
{
"theorem_name": "compile_interpret_ite_on_footprint",
"depth": 1,
"n_commands": 0,
"n_lines": 21,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace hwε := wf_εnv_for_ite_implies hwε\n replace ⟨t₁, hok₁, hok⟩ := compile_ite_ok_implies hok\n s... | [
{
"name": "interpret_ifSome_ifSome_ite_eq",
"text": "private theorem interpret_ifSome_ifSome_ite_eq {t₁ t₂ t₃ : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :\n I₁.WellFormed εs → I₂.WellFormed εs →\n t₁.WellFormed εs → t₂.WellFormed εs → t₃.WellFormed εs →\n t₁.typeOf = .option .bool →\n t₂.typeOf... | [
{
"name": "compile_interpret_and_on_footprint",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 36,
"n_chars": 1783,
"n_subproofs": 2,
"n_tactics": 26,
"cyclomatic": 5,
"n_automation": 8,
"n_rewrites": 3,
"n_structural": 5,
"automation_only": f... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -73,6 +73,32 @@
simp only [interpret_option_get I₁ hwt hty, heq₁, heq₂, pe_option_get'_some,
interpret_option_get I₂ hwt hty]
+private theorem interpret_ifSome_ifSome_ite_eq {t₁ t₂ t₃ : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :
+ I₁.WellFormed εs → I₂.WellFormed εs →
+ t₁.WellFormed εs → t₂.Wel... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_8 | 2e71d7418f0d548e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 3 | [
{
"theorem_name": "compile_interpret_ite_on_footprint",
"depth": 1,
"n_commands": 0,
"n_lines": 21,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace hwε := wf_εnv_for_ite_implies hwε\n replace ⟨t₁, hok₁, hok⟩ := compile_ite_ok_implies hok\n s... | [
{
"name": "interpret_ifSome_ifSome_ite_eq",
"text": "private theorem interpret_ifSome_ifSome_ite_eq {t₁ t₂ t₃ : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :\n I₁.WellFormed εs → I₂.WellFormed εs →\n t₁.WellFormed εs → t₂.WellFormed εs → t₃.WellFormed εs →\n t₁.typeOf = .option .bool →\n t₂.typeOf... | [
{
"name": "compile_interpret_or_on_footprint",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 36,
"n_chars": 1774,
"n_subproofs": 2,
"n_tactics": 26,
"cyclomatic": 5,
"n_automation": 8,
"n_rewrites": 3,
"n_structural": 5,
"automation_only": fa... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -73,6 +73,32 @@
simp only [interpret_option_get I₁ hwt hty, heq₁, heq₂, pe_option_get'_some,
interpret_option_get I₂ hwt hty]
+private theorem interpret_ifSome_ifSome_ite_eq {t₁ t₂ t₃ : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :
+ I₁.WellFormed εs → I₂.WellFormed εs →
+ t₁.WellFormed εs → t₂.Wel... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_9 | 3abcf78777b74052 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 1 | [
{
"theorem_name": "compile_interpret_in_footprint",
"depth": 1,
"n_commands": 0,
"n_lines": 56,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction x using compile.induct generalizing t\n case case1 =>\n exact compile_interpret_lit_in_footpr... | [
{
"name": "compile_interpret_var_in_footprint",
"text": "private theorem compile_interpret_var_in_footprint {v : Var} {εnv : SymEnv} {I : Interpretation} {t : Term} {uid : EntityUID}\n (hwε : εnv.WellFormedFor (Expr.var v))\n (hI : I.WellFormed εnv.entities)\n (hok : compile (Expr.var v) εnv = .ok t)\n ... | [
{
"name": "same_footprint_ancestors",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 13,
"n_lines": 37,
"n_chars": 1671,
"n_subproofs": 4,
"n_tactics": 19,
"cyclomatic": 1,
"n_automation": 4,
"n_rewrites": 4,
"n_structural": 2,
"automation_only": false,
... | 13 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -185,6 +185,30 @@
typeOf_term_prim_entity, ↓reduceIte, Set.mem_singleton, interpret_term_some,
interpret_term_prim, and_self]
+private theorem compile_interpret_var_in_footprint {v : Var} {εnv : SymEnv} {I : Interpretation} {t : Term} {uid : EntityUID}
+ (hwε : εnv.WellFormedFor (Expr.var v))
+ (hI... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_10 | a1316a5ff503b9e2 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 10 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 7 | [
{
"theorem_name": "interpret_ifSome_ifSome_ite_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI₁ hI₂ hwt₁ hwt₂ hwt₃ hty₁ hty₂ hty₃ ht₁ ht₂ ht₃\n have ⟨hwo₁, hoty₁⟩ := wf_option_get hwt₁ hty₁\n ... | [
{
"name": "interpret_option_get_eq",
"text": "private theorem interpret_option_get_eq {t t' : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :\n t.WellFormed εs → t.typeOf = .option ty →\n t.interpret I₁ = t.interpret I₂ →\n t.interpret I₂ = .some t' →\n (Factory.option.get t).interpret I₁ = (Factory... | [
{
"name": "compile_interpret_unaryApp_on_footprint",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 29,
"n_chars": 1452,
"n_subproofs": 4,
"n_tactics": 19,
"cyclomatic": 3,
"n_automation": 4,
"n_rewrites": 1,
"n_structural": 1,
"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... | @@ -63,6 +63,16 @@
simp only [pe_ifSome_some hwt₁₂.right, pe_ifSome_some hwt₂₂.right]
clear hwt₁₂ hwt₂₂ hwl₂))
+private theorem interpret_option_get_eq {t t' : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :
+ t.WellFormed εs → t.typeOf = .option ty →
+ t.interpret I₁ = t.interpret I₂ →
+ t.interpret... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_11 | 4ed25d83258a8be2 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 11 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 7 | [
{
"theorem_name": "interpret_ifSome_ifSome_ite_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI₁ hI₂ hwt₁ hwt₂ hwt₃ hty₁ hty₂ hty₃ ht₁ ht₂ ht₃\n have ⟨hwo₁, hoty₁⟩ := wf_option_get hwt₁ hty₁\n ... | [
{
"name": "interpret_option_get_eq",
"text": "private theorem interpret_option_get_eq {t t' : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :\n t.WellFormed εs → t.typeOf = .option ty →\n t.interpret I₁ = t.interpret I₂ →\n t.interpret I₂ = .some t' →\n (Factory.option.get t).interpret I₁ = (Factory... | [
{
"name": "compile_interpret_binaryApp_on_footprint",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 15,
"n_lines": 144,
"n_chars": 7933,
"n_subproofs": 15,
"n_tactics": 134,
"cyclomatic": 12,
"n_automation": 27,
"n_rewrites": 16,
"n_structural": 10,
"autom... | 15 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -329,6 +329,16 @@
simp only [pe_ifSome_some hwt₁₂.right, pe_ifSome_some hwt₂₂.right]
clear hwt₁₂ hwt₂₂ hwl₂))
+private theorem interpret_option_get_eq {t t' : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :
+ t.WellFormed εs → t.typeOf = .option ty →
+ t.interpret I₁ = t.interpret I₂ →
+ t.interpr... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_12 | 11f9fd249f9df30c | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 12 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 2 | [
{
"theorem_name": "compile_interpret_hasAttr_on_footprint",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace hwε := wf_εnv_for_hasAttr_implies hwε\n replace ⟨t₁, t₂, hok₁, hok, heq⟩ := compile_hasAtt... | [
{
"name": "compileAttrsOf_interpret_record_get_eq",
"text": "private theorem compileAttrsOf_interpret_record_get_eq {t₁ t₃ : Term} {a₁ : Attr} {tyₐ : TermType} {rty : Map Attr TermType} {εs : SymEntities} {I₁ I₂ : Interpretation}\n (hwε : εs.WellFormed)\n (hI₁ : I₁.WellFormed εs)\n (hI₂ : I₂.WellForme... | [
{
"name": "compile_interpret_hasAttr_on_footprint",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 37,
"n_chars": 1841,
"n_subproofs": 4,
"n_tactics": 27,
"cyclomatic": 3,
"n_automation": 3,
"n_rewrites": 2,
"n_structural": 1,
"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... | @@ -73,6 +73,32 @@
simp only [interpret_option_get I₁ hwt hty, heq₁, heq₂, pe_option_get'_some,
interpret_option_get I₂ hwt hty]
+private theorem compileAttrsOf_interpret_record_get_eq {t₁ t₃ : Term} {a₁ : Attr} {tyₐ : TermType} {rty : Map Attr TermType} {εs : SymEntities} {I₁ I₂ : Interpretation}
+ (hwε : ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_13 | d4b3852bedf66afc | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 13 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 2 | [
{
"theorem_name": "compile_interpret_hasAttr_on_footprint",
"depth": 1,
"n_commands": 0,
"n_lines": 26,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace hwε := wf_εnv_for_hasAttr_implies hwε\n replace ⟨t₁, t₂, hok₁, hok, heq⟩ := compile_hasAtt... | [
{
"name": "compileAttrsOf_interpret_record_get_eq",
"text": "private theorem compileAttrsOf_interpret_record_get_eq {t₁ t₃ : Term} {a₁ : Attr} {tyₐ : TermType} {rty : Map Attr TermType} {εs : SymEntities} {I₁ I₂ : Interpretation}\n (hwε : εs.WellFormed)\n (hI₁ : I₁.WellFormed εs)\n (hI₂ : I₂.WellForme... | [
{
"name": "compile_interpret_getAttr_on_footprint",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 33,
"n_chars": 1582,
"n_subproofs": 3,
"n_tactics": 23,
"cyclomatic": 3,
"n_automation": 2,
"n_rewrites": 2,
"n_structural": 1,
"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... | @@ -73,6 +73,32 @@
simp only [interpret_option_get I₁ hwt hty, heq₁, heq₂, pe_option_get'_some,
interpret_option_get I₂ hwt hty]
+private theorem compileAttrsOf_interpret_record_get_eq {t₁ t₃ : Term} {a₁ : Attr} {tyₐ : TermType} {rty : Map Attr TermType} {εs : SymEntities} {I₁ I₂ : Interpretation}
+ (hwε : ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_14 | c83ab9d9de4e6b39 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 14 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 7 | [
{
"theorem_name": "interpret_ifSome_ifSome_ite_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI₁ hI₂ hwt₁ hwt₂ hwt₃ hty₁ hty₂ hty₃ ht₁ ht₂ ht₃\n have ⟨hwo₁, hoty₁⟩ := wf_option_get hwt₁ hty₁\n ... | [
{
"name": "interpret_option_get_eq",
"text": "private theorem interpret_option_get_eq {t t' : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :\n t.WellFormed εs → t.typeOf = .option ty →\n t.interpret I₁ = t.interpret I₂ →\n t.interpret I₂ = .some t' →\n (Factory.option.get t).interpret I₁ = (Factory... | [
{
"name": "map_interpret_option_get_eq",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 19,
"n_chars": 786,
"n_subproofs": 1,
"n_tactics": 11,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 1,
"n_structural": 5,
"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... | @@ -63,13 +63,33 @@
simp only [pe_ifSome_some hwt₁₂.right, pe_ifSome_some hwt₂₂.right]
clear hwt₁₂ hwt₂₂ hwl₂))
+private theorem interpret_option_get_eq {t t' : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :
+ t.WellFormed εs → t.typeOf = .option ty →
+ t.interpret I₁ = t.interpret I₂ →
+ t.interpre... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_15 | fe9426371a875a03 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 15 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 2 | [
{
"theorem_name": "compile_interpret_set_on_footprint",
"depth": 1,
"n_commands": 0,
"n_lines": 24,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace hwε := wf_εnv_for_set_implies hwε\n simp only [footprint, List.mapUnion₁_eq_mapUnion (footprin... | [
{
"name": "compile_interpret_on_footprint_ihs",
"text": "private theorem compile_interpret_on_footprint_ihs {xs : List Expr} {ts : List Term} {ft : Set Term} {εnv : SymEnv} {I₁ I₂ : Interpretation}\n (hwε : ∀ (x : Expr), x ∈ xs → εnv.WellFormedFor x)\n (hI₁ : I₁.WellFormed εnv.entities)\n (hI₂ : I₂.WellF... | [
{
"name": "compile_interpret_set_on_footprint",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 3,
"n_lines": 35,
"n_chars": 1769,
"n_subproofs": 7,
"n_tactics": 24,
"cyclomatic": 2,
"n_automation": 5,
"n_rewrites": 2,
"n_structural": 1,
"automation_only": f... | 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... | @@ -91,6 +91,21 @@
rw [eq_comm] at h₃
exact interpret_option_get_eq (hwt t ht) (hty t ht) h₁ h₃
+private theorem compile_interpret_on_footprint_ihs {xs : List Expr} {ts : List Term} {ft : Set Term} {εnv : SymEnv} {I₁ I₂ : Interpretation}
+ (hwε : ∀ (x : Expr), x ∈ xs → εnv.WellFormedFor x)
+ (hI₁ : I₁.WellFor... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_16 | 57ebb3714114221e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 16 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 7 | [
{
"theorem_name": "interpret_ifSome_ifSome_ite_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI₁ hI₂ hwt₁ hwt₂ hwt₃ hty₁ hty₂ hty₃ ht₁ ht₂ ht₃\n have ⟨hwo₁, hoty₁⟩ := wf_option_get hwt₁ hty₁\n ... | [
{
"name": "interpret_option_get_eq",
"text": "private theorem interpret_option_get_eq {t t' : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :\n t.WellFormed εs → t.typeOf = .option ty →\n t.interpret I₁ = t.interpret I₂ →\n t.interpret I₂ = .some t' →\n (Factory.option.get t).interpret I₁ = (Factory... | [
{
"name": "map_interpret_snd_option_get_eq",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 22,
"n_chars": 1032,
"n_subproofs": 1,
"n_tactics": 14,
"cyclomatic": 1,
"n_automation": 4,
"n_rewrites": 1,
"n_structural": 5,
"automation_only": fals... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -63,13 +63,36 @@
simp only [pe_ifSome_some hwt₁₂.right, pe_ifSome_some hwt₂₂.right]
clear hwt₁₂ hwt₂₂ hwl₂))
+private theorem interpret_option_get_eq {t t' : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :
+ t.WellFormed εs → t.typeOf = .option ty →
+ t.interpret I₁ = t.interpret I₂ →
+ t.interpre... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_17 | 7012bc0e7a93c47d | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 17 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 7 | [
{
"theorem_name": "interpret_ifSome_ifSome_ite_eq",
"depth": 1,
"n_commands": 0,
"n_lines": 14,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hI₁ hI₂ hwt₁ hwt₂ hwt₃ hty₁ hty₂ hty₃ ht₁ ht₂ ht₃\n have ⟨hwo₁, hoty₁⟩ := wf_option_get hwt₁ hty₁\n ... | [
{
"name": "interpret_option_get_eq",
"text": "private theorem interpret_option_get_eq {t t' : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :\n t.WellFormed εs → t.typeOf = .option ty →\n t.interpret I₁ = t.interpret I₂ →\n t.interpret I₂ = .some t' →\n (Factory.option.get t).interpret I₁ = (Factory... | [
{
"name": "compile_interpret_record_on_footprint",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 42,
"n_chars": 2293,
"n_subproofs": 8,
"n_tactics": 30,
"cyclomatic": 2,
"n_automation": 6,
"n_rewrites": 3,
"n_structural": 5,
"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... | @@ -63,13 +63,36 @@
simp only [pe_ifSome_some hwt₁₂.right, pe_ifSome_some hwt₂₂.right]
clear hwt₁₂ hwt₂₂ hwl₂))
+private theorem interpret_option_get_eq {t t' : Term} {I₁ I₂ : Interpretation} {εs : SymEntities} :
+ t.WellFormed εs → t.typeOf = .option ty →
+ t.interpret I₁ = t.interpret I₂ →
+ t.interpre... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_18 | 565dbdfd0ec439ea | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 18 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 2 | [
{
"theorem_name": "compile_interpret_set_on_footprint",
"depth": 1,
"n_commands": 0,
"n_lines": 24,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace hwε := wf_εnv_for_set_implies hwε\n simp only [footprint, List.mapUnion₁_eq_mapUnion (footprin... | [
{
"name": "compile_interpret_on_footprint_ihs",
"text": "private theorem compile_interpret_on_footprint_ihs {xs : List Expr} {ts : List Term} {ft : Set Term} {εnv : SymEnv} {I₁ I₂ : Interpretation}\n (hwε : ∀ (x : Expr), x ∈ xs → εnv.WellFormedFor x)\n (hI₁ : I₁.WellFormed εnv.entities)\n (hI₂ : I₂.WellF... | [
{
"name": "compile_interpret_call_on_footprint",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 23,
"n_chars": 1096,
"n_subproofs": 3,
"n_tactics": 12,
"cyclomatic": 1,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": ... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -63,6 +63,21 @@
simp only [pe_ifSome_some hwt₁₂.right, pe_ifSome_some hwt₂₂.right]
clear hwt₁₂ hwt₂₂ hwl₂))
+private theorem compile_interpret_on_footprint_ihs {xs : List Expr} {ts : List Term} {ft : Set Term} {εnv : SymEnv} {I₁ I₂ : Interpretation}
+ (hwε : ∀ (x : Expr), x ∈ xs → εnv.WellFormedFor x)
+... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_e4458ab9f5da_19 | e42e030b479c2221 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Enforcer/Compile.lean | Compile | 19 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 32 | 1 | [
{
"theorem_name": "compile_interpret_set_on_footprint",
"depth": 1,
"n_commands": 0,
"n_lines": 24,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n replace hwε := wf_εnv_for_set_implies hwε\n simp only [footprint, List.mapUnion₁_eq_mapUnion (footprin... | [
{
"name": "map_interpret_option_get_eq",
"text": "private theorem map_interpret_option_get_eq {ts ts' : List Term} {ty : TermType} {I₁ I₂ : Interpretation} {εs : SymEntities}\n (hwt : ∀ t ∈ ts, t.WellFormed εs)\n (hty : ∀ t ∈ ts, t.typeOf = .option ty)\n (h₁ : ∀ t ∈ ts, Term.interpret I₁ t = Term.interp... | [
{
"name": "compile_interpret_on_footprint",
"fan_in": 0,
"n_deps_direct": 12,
"n_deps_transitive": 32,
"n_lines": 36,
"n_chars": 2105,
"n_subproofs": 0,
"n_tactics": 26,
"cyclomatic": 2,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 13,
"automation_only": fa... | 32 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -798,6 +798,24 @@
(interpret_option_get_eq hwt₁ hty₁ ih₁ ht₁)]
}
+private theorem map_interpret_option_get_eq {ts ts' : List Term} {ty : TermType} {I₁ I₂ : Interpretation} {εs : SymEntities}
+ (hwt : ∀ t ∈ ts, t.WellFormed εs)
+ (hty : ∀ t ∈ ts, t.typeOf = .option ty)
+ (h₁ : ∀ t ∈ ts, Term.interpr... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_4a7b0a5bbbea_1 | 3050ccbecab09f02 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Lit.lean | Lit | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "interpret_term_app_lit",
"depth": 1,
"n_commands": 0,
"n_lines": 78,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n cases hwt\n case not_wt t h₁ =>\n show_interpret_term_app_unary_lit t hI hwf h₁ ih interpret_term_app_not pe_no... | [
{
"name": "interpret_term_app_ext_lit",
"text": "private theorem interpret_term_app_ext_lit {εs : SymEntities} {I : Interpretation} {xop : ExtOp} {ts : List Term} {ty : TermType}\n (hI : Interpretation.WellFormed I εs)\n (hwf : ∀ (t : Term), t ∈ ts → Term.WellFormed εs t)\n (hwt : ExtOp.WellTyped xop ts... | [
{
"name": "interpret_term_app_lit",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 86,
"n_chars": 5650,
"n_subproofs": 10,
"n_tactics": 78,
"cyclomatic": 2,
"n_automation": 10,
"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... | @@ -76,13 +76,119 @@
simp only [$interpret_thm:ident, $pe_thm:term hl₁ hr₁ hl₂ hr₂]
))
+private theorem interpret_term_app_ext_lit {εs : SymEntities} {I : Interpretation} {xop : ExtOp} {ts : List Term} {ty : TermType}
+ (hI : Interpretation.WellFormed I εs)
+ (hwf : ∀ (t : Term), t ∈ ts → Term.WellFormed... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_4a7b0a5bbbea_2 | 08ad20f028b0da90 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Lit.lean | Lit | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "interpret_term_lit",
"depth": 1,
"n_commands": 0,
"n_lines": 16,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction h₁\n case prim_wf =>\n simp only [interpret_term_prim, Term.isLiteral]\n case var_wf h₁ =>\n simp onl... | [
{
"name": "interpret_term_set_lit",
"text": "private theorem interpret_term_set_lit {I : Interpretation} {s : Set Term} {ty: TermType}\n (ih : ∀ (t : Term), t ∈ s → Term.isLiteral (Term.interpret I t) = true) :\n Term.isLiteral (Term.interpret I (Term.set s ty)) = true\n:= by\n simp only [interpret_term_... | [
{
"name": "interpret_term_lit",
"fan_in": 1,
"n_deps_direct": 3,
"n_deps_transitive": 4,
"n_lines": 22,
"n_chars": 722,
"n_subproofs": 0,
"n_tactics": 16,
"cyclomatic": 2,
"n_automation": 4,
"n_rewrites": 0,
"n_structural": 4,
"automation_only": false,
"max_ne... | 4 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -40,6 +40,17 @@
open Batteries Data Spec SymCC Factory
+private theorem interpret_term_set_lit {I : Interpretation} {s : Set Term} {ty: TermType}
+ (ih : ∀ (t : Term), t ∈ s → Term.isLiteral (Term.interpret I t) = true) :
+ Term.isLiteral (Term.interpret I (Term.set s ty)) = true
+:= by
+ simp only [interpre... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_4a7b0a5bbbea_3 | d6539fe82e260dc8 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Term/Interpret/Lit.lean | Lit | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 7 | 1 | [
{
"theorem_name": "interpret_term_lit",
"depth": 1,
"n_commands": 0,
"n_lines": 16,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n induction h₁\n case prim_wf =>\n simp only [interpret_term_prim, Term.isLiteral]\n case var_wf h₁ =>\n simp onl... | [
{
"name": "interpret_term_set_lit",
"text": "private theorem interpret_term_set_lit {I : Interpretation} {s : Set Term} {ty: TermType}\n (ih : ∀ (t : Term), t ∈ s → Term.isLiteral (Term.interpret I t) = true) :\n Term.isLiteral (Term.interpret I (Term.set s ty)) = true\n:= by\n simp only [interpret_term_... | [
{
"name": "interpret_term_wfl",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 5,
"n_lines": 9,
"n_chars": 337,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"max_nesti... | 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... | @@ -40,6 +40,17 @@
open Batteries Data Spec SymCC Factory
+private theorem interpret_term_set_lit {I : Interpretation} {s : Set Term} {ty: TermType}
+ (ih : ∀ (t : Term), t ∈ s → Term.isLiteral (Term.interpret I t) = true) :
+ Term.isLiteral (Term.interpret I (Term.set s ty)) = true
+:= by
+ simp only [interpre... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_bb3782932081_0 | 16ab6568cb5d381a | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Concretizer.lean | Concretizer | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "exists_wf_env_for_policies",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n intro hwε hI\n rw [wf_εnv_for_policies_iff_wf_εnv_for_set] at hwε\n have ⟨env, heq, hwe⟩ := exists_wf_env hwε ... | [
{
"name": "exists_wf_env",
"text": "theorem exists_wf_env {x : Expr} {εnv : SymEnv} {I : Interpretation} :\n εnv.WellFormedFor x →\n I.WellFormed εnv.entities →\n ∃ (env : Env),\n env ∼ εnv.interpret I ∧\n env.WellFormedFor x\n:= by\n intro hwε hI\n have hlit := interpret_εnv_lit hwε.left hI\n r... | [
{
"name": "exists_wf_env_for_policies",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 14,
"n_chars": 461,
"n_subproofs": 1,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 1,
"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... | @@ -32,13 +32,35 @@
open Spec SymCC
+theorem exists_wf_env {x : Expr} {εnv : SymEnv} {I : Interpretation} :
+ εnv.WellFormedFor x →
+ I.WellFormed εnv.entities →
+ ∃ (env : Env),
+ env ∼ εnv.interpret I ∧
+ env.WellFormedFor x
+:= by
+ intro hwε hI
+ have hlit := interpret_εnv_lit hwε.left hI
+ replace... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_be89120b1daa_0 | eb8ff38910fc9f2e | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/Validation/Typechecker/BinaryApp/Arith.lean | Arith | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 1 | 1 | [
{
"theorem_name": "type_of_int_arith_is_sound",
"depth": 1,
"n_commands": 0,
"n_lines": 35,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have ⟨hc, hty, ht₁, ht₂⟩ := type_of_int_arith_inversion h₀ h₃\n subst hc ; rw [hty]\n apply And.intro empty_g... | [
{
"name": "type_of_int_arith_inversion",
"text": "theorem type_of_int_arith_inversion {op₂ : BinaryOp} {x₁ x₂ : Expr} {c c' : Capabilities} {env : TypeEnv} {ty : TypedExpr}\n (h₁ : op₂ = .add ∨ op₂ = .sub ∨ op₂ = .mul)\n (h₂ : typeOf (Expr.binaryApp op₂ x₁ x₂) c env = Except.ok (ty, c')) :\n c' = ∅ ∧\n ... | [
{
"name": "type_of_int_arith_is_sound",
"fan_in": 0,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 46,
"n_chars": 2312,
"n_subproofs": 3,
"n_tactics": 51,
"cyclomatic": 17,
"n_automation": 11,
"n_rewrites": 8,
"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... | @@ -26,6 +26,32 @@
open Cedar.Spec
open Cedar.Validation
+theorem type_of_int_arith_inversion {op₂ : BinaryOp} {x₁ x₂ : Expr} {c c' : Capabilities} {env : TypeEnv} {ty : TypedExpr}
+ (h₁ : op₂ = .add ∨ op₂ = .sub ∨ op₂ = .mul)
+ (h₂ : typeOf (Expr.binaryApp op₂ x₁ x₂) c env = Except.ok (ty, c')) :
+ 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_4fb6439d30ec_0 | 3deba595fd1f79c0 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/BitVec.lean | BitVec | 0 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 18 | 1 | [
{
"theorem_name": "toInt_ge_INT64_MIN",
"depth": 1,
"n_commands": 0,
"n_lines": 1,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by exact toInt_min_64",
"n_chars": 22,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": ... | [
{
"name": "toInt_min_64",
"text": "public theorem toInt_min_64 {bv : BitVec 64} :\n BitVec.signedMin 64 ≤ bv.toInt\n:= by\n simp only [signedMin, Nat.succ_sub_succ_eq_sub, Nat.sub_zero, Int.reducePow, Int.reduceNeg,\n BitVec.toInt, Nat.reducePow]\n omega\n\n",
"fan_in": 1,
"n_lines": 8,
"n... | [
{
"name": "toInt_ge_INT64_MIN",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 5,
"n_chars": 104,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nest... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -43,9 +43,16 @@
@[simp]
public theorem Int64_toBitVec_toInt_eq_toInt (x : Int64) : x.toBitVec.toInt = x.toInt := by rfl
+public theorem toInt_min_64 {bv : BitVec 64} :
+ BitVec.signedMin 64 ≤ bv.toInt
+:= by
+ simp only [signedMin, Nat.succ_sub_succ_eq_sub, Nat.sub_zero, Int.reducePow, Int.reduceNeg,
+ BitV... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_4fb6439d30ec_1 | b95cc576342de635 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/BitVec.lean | BitVec | 1 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 18 | 1 | [
{
"theorem_name": "toInt_le_INT64_MAX",
"depth": 1,
"n_commands": 0,
"n_lines": 1,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by exact toInt_max_64",
"n_chars": 22,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": ... | [
{
"name": "toInt_max_64",
"text": "public theorem toInt_max_64 {bv : BitVec 64} :\n bv.toInt ≤ BitVec.signedMax 64\n:= by\n simp only [BitVec.toInt, Nat.reducePow, signedMax, Nat.succ_sub_succ_eq_sub,\n Nat.sub_zero, Int.reducePow, Int.reduceSub]\n omega\n\n",
"fan_in": 1,
"n_lines": 8,
"n... | [
{
"name": "toInt_le_INT64_MAX",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 5,
"n_chars": 104,
"n_subproofs": 0,
"n_tactics": 1,
"cyclomatic": 1,
"n_automation": 0,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": false,
"max_nest... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -43,9 +43,16 @@
@[simp]
public theorem Int64_toBitVec_toInt_eq_toInt (x : Int64) : x.toBitVec.toInt = x.toInt := by rfl
+public theorem toInt_max_64 {bv : BitVec 64} :
+ bv.toInt ≤ BitVec.signedMax 64
+:= by
+ simp only [BitVec.toInt, Nat.reducePow, signedMax, Nat.succ_sub_succ_eq_sub,
+ Nat.sub_zero, Int.r... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_4fb6439d30ec_2 | 2c8cd25b7284c675 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/BitVec.lean | BitVec | 2 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 18 | 2 | [
{
"theorem_name": "overflows_false_64",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [BitVec.overflows, signedMin_eq_INT64_MIN, signedMax_eq_INT64_MAX]",
"n_chars": 77,
"n_subproofs": 0,
"... | [
{
"name": "signedMax_eq_INT64_MAX",
"text": "public theorem signedMax_eq_INT64_MAX :\n BitVec.signedMax 64 = Int64.MAX\n:= by\n simp only [signedMax, Int64.MAX]\n decide\n\n",
"fan_in": 2,
"n_lines": 7,
"n_chars": 125,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_auto... | [
{
"name": "overflows_false_64",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 6,
"n_chars": 199,
"n_subproofs": 0,
"n_tactics": 2,
"cyclomatic": 1,
"n_automation": 1,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"max_nesti... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -49,6 +49,12 @@
simp only [signedMin, Int64.MIN]
decide
+public theorem signedMax_eq_INT64_MAX :
+ BitVec.signedMax 64 = Int64.MAX
+:= by
+ simp only [signedMax, Int64.MAX]
+ decide
+
@[simp]
public theorem toInt_ofInt_64 {bv : BitVec 64} :
BitVec.ofInt 64 (BitVec.toInt bv) = bv
@@ -62,7 +68,8 @@
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_4fb6439d30ec_3 | d36a38760d29b16a | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/BitVec.lean | BitVec | 3 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 18 | 2 | [
{
"theorem_name": "overflows_false_64",
"depth": 1,
"n_commands": 0,
"n_lines": 2,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp [BitVec.overflows, signedMin_eq_INT64_MIN, signedMax_eq_INT64_MAX]",
"n_chars": 77,
"n_subproofs": 0,
"... | [
{
"name": "signedMax_eq_INT64_MAX",
"text": "public theorem signedMax_eq_INT64_MAX :\n BitVec.signedMax 64 = Int64.MAX\n:= by\n simp only [signedMax, Int64.MAX]\n decide\n\n",
"fan_in": 2,
"n_lines": 7,
"n_chars": 125,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_auto... | [
{
"name": "overflows_true_64",
"fan_in": 1,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 7,
"n_chars": 210,
"n_subproofs": 0,
"n_tactics": 3,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 0,
"automation_only": true,
"max_nestin... | 2 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -49,6 +49,12 @@
simp only [signedMin, Int64.MIN]
decide
+public theorem signedMax_eq_INT64_MAX :
+ BitVec.signedMax 64 = Int64.MAX
+:= by
+ simp only [signedMax, Int64.MAX]
+ decide
+
@[simp]
public theorem toInt_ofInt_64 {bv : BitVec 64} :
BitVec.ofInt 64 (BitVec.toInt bv) = bv
@@ -62,7 +68,9 @@
... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_4fb6439d30ec_4 | 36b8188d60c21f39 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/BitVec.lean | BitVec | 4 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 18 | 1 | [
{
"theorem_name": "Int64_ofInt?_eq_none_iff_overflows",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n simp only [← Int64.ofInt?_none_iff]\n cases h : overflows 64 i\n case false => simp [overflows_false_6... | [
{
"name": "overflows_false_64",
"text": "public theorem overflows_false_64 {i : Int} :\n Int64.MIN ≤ i ∧ i ≤ Int64.MAX ↔ BitVec.overflows 64 i = false\n:= by\n simp [BitVec.overflows, signedMin_eq_INT64_MIN, signedMax_eq_INT64_MAX]\n\n",
"fan_in": 1,
"n_lines": 6,
"n_chars": 199,
"n_subpro... | [
{
"name": "Int64_ofInt?_eq_none_iff_overflows",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 4,
"n_lines": 11,
"n_chars": 352,
"n_subproofs": 0,
"n_tactics": 8,
"cyclomatic": 3,
"n_automation": 3,
"n_rewrites": 0,
"n_structural": 1,
"automation_only": fal... | 4 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -66,6 +66,11 @@
· simp only [Int.cast_ofNat_Int, heq, Int.toNat_natCast]
· simp only [Int.toNat, Int.cast_ofNat_Int, Int.sub_emod_right, heq]
+public theorem overflows_false_64 {i : Int} :
+ Int64.MIN ≤ i ∧ i ≤ Int64.MAX ↔ BitVec.overflows 64 i = false
+:= by
+ simp [BitVec.overflows, signedMin_eq_INT64_MI... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_4fb6439d30ec_5 | 1cb4b72b460f1e10 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/BitVec.lean | BitVec | 5 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 18 | 1 | [
{
"theorem_name": "mul_toInt_eq_mul_64",
"depth": 1,
"n_commands": 0,
"n_lines": 9,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n generalize hj₁ : i₁.toInt = j₁\n generalize hj₂ : i₂.toInt = j₂\n simp only [Int64.MIN, Int.reduceNeg, hj₁, hj₂, Int6... | [
{
"name": "mul_eq_toInt_mul_ofInt_64",
"text": "public theorem mul_eq_toInt_mul_ofInt_64 {bv₁ bv₂ : BitVec 64} :\n bv₁ * bv₂ = BitVec.ofInt 64 (BitVec.toInt bv₁ * BitVec.toInt bv₂)\n:= by\n simp only [mul_def, Fin.mul_def, val_toFin, Nat.reducePow, BitVec.ofInt, BitVec.ofNatLT,\n BitVec.toInt, Int.ofNa... | [
{
"name": "mul_toInt_eq_mul_64",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 16,
"n_chars": 692,
"n_subproofs": 0,
"n_tactics": 10,
"cyclomatic": 3,
"n_automation": 5,
"n_rewrites": 0,
"n_structural": 0,
"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... | @@ -54,12 +54,38 @@
· simp only [Int.cast_ofNat_Int, heq, Int.toNat_natCast]
· simp only [Int.toNat, Int.cast_ofNat_Int, Int.sub_emod_right, heq]
+public theorem mul_eq_toInt_mul_ofInt_64 {bv₁ bv₂ : BitVec 64} :
+ bv₁ * bv₂ = BitVec.ofInt 64 (BitVec.toInt bv₁ * BitVec.toInt bv₂)
+:= by
+ simp only [mul_def, F... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_4fb6439d30ec_6 | 34b4f5f22b6b2b78 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/BitVec.lean | BitVec | 6 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 18 | 1 | [
{
"theorem_name": "mul_toInt_eq_toInt_mul",
"depth": 1,
"n_commands": 0,
"n_lines": 7,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n generalize hi₁ : UInt64.toInt64 (UInt64.ofBitVec bv₁) = i₁\n generalize hi₂ : UInt64.toInt64 (UInt64.ofBitVec bv₂) ... | [
{
"name": "mul_toInt_eq_mul_64",
"text": "public theorem mul_toInt_eq_mul_64 {bv₁ bv₂ : BitVec 64} {i₁ i₂ : Int64}\n (h₀ : Int64.MIN ≤ i₁.toInt * i₂.toInt ∧ i₁.toInt * i₂.toInt ≤ Int64.MAX)\n (h₁ : BitVec.toInt bv₁ = i₁.toInt)\n (h₂ : BitVec.toInt bv₂ = i₂.toInt) :\n BitVec.toInt (bv₁ * bv₂) = i₁.toInt ... | [
{
"name": "mul_toInt_eq_toInt_mul",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 2,
"n_lines": 12,
"n_chars": 581,
"n_subproofs": 2,
"n_tactics": 9,
"cyclomatic": 1,
"n_automation": 4,
"n_rewrites": 1,
"n_structural": 1,
"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... | @@ -72,10 +72,31 @@
norm_cast
simp only [Int.toNat_natCast, Nat.mul_mod_mod, Nat.mod_mul_mod]
+public theorem mul_toInt_eq_mul_64 {bv₁ bv₂ : BitVec 64} {i₁ i₂ : Int64}
+ (h₀ : Int64.MIN ≤ i₁.toInt * i₂.toInt ∧ i₁.toInt * i₂.toInt ≤ Int64.MAX)
+ (h₁ : BitVec.toInt bv₁ = i₁.toInt)
+ (h₂ : BitVec.toInt bv₂ ... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_4fb6439d30ec_7 | b61a90eda30d5ee3 | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/BitVec.lean | BitVec | 7 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 18 | 2 | [
{
"theorem_name": "le_mul_left_tdiv_right_neg",
"depth": 1,
"n_commands": 0,
"n_lines": 6,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n apply Int.le_of_neg_le_neg\n simp only [← Int.mul_neg, ← Int.neg_tdiv]\n replace h₁ := Int.neg_le_neg h₁\n si... | [
{
"name": "mul_left_tdiv_right_pos_le",
"text": "private theorem mul_left_tdiv_right_pos_le {i₁ i₂ : Int}\n (h₁ : 0 ≤ i₁)\n (h₂ : 0 ≤ i₂) :\n i₂ * (i₁.tdiv i₂) ≤ i₁\n:= by\n replace h₁ := Int.eq_ofNat_of_zero_le h₁\n replace h₂ := Int.eq_ofNat_of_zero_le h₂\n cases h₁ ; cases h₂ ; rename_i n₁ h₁ n₂ h₂... | [
{
"name": "le_mul_left_tdiv_right_neg",
"fan_in": 1,
"n_deps_direct": 1,
"n_deps_transitive": 1,
"n_lines": 12,
"n_chars": 344,
"n_subproofs": 0,
"n_tactics": 6,
"cyclomatic": 1,
"n_automation": 2,
"n_rewrites": 0,
"n_structural": 2,
"automation_only": false,
... | 1 | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | /-
Copyright Cedar Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | @@ -54,11 +54,27 @@
· simp only [Int.cast_ofNat_Int, heq, Int.toNat_natCast]
· simp only [Int.toNat, Int.cast_ofNat_Int, Int.sub_emod_right, heq]
+private theorem mul_left_tdiv_right_pos_le {i₁ i₂ : Int}
+ (h₁ : 0 ≤ i₁)
+ (h₂ : 0 ≤ i₂) :
+ i₂ * (i₁.tdiv i₂) ≤ i₁
+:= by
+ replace h₁ := Int.eq_ofNat_of_zero_l... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
ablate_4fb6439d30ec_8 | 430a16dd4b2b6cbe | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/BitVec.lean | BitVec | 8 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 18 | 3 | [
{
"theorem_name": "sdiv_pos_lt_INT64_MAX",
"depth": 1,
"n_commands": 0,
"n_lines": 87,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have h₀ : bv₂.msb = false := by\n simp only [msb_eq_toInt, decide_eq_false_iff_not, Int.not_lt]\n exact Int.le... | [
{
"name": "msb_false_implies_neg_msb_eq",
"text": "private theorem msb_false_implies_neg_msb_eq {n : Nat} {bv : BitVec n}\n (h : bv.msb = false) :\n bv.neg = 0#n ∨ (bv.neg.msb = true ∧ (intMin n).toInt < bv.neg.toInt)\n:= by\n simp only [BitVec.neg_eq, BitVec.msb_neg, h, Bool.xor_false]\n cases h₁ : bv ... | [
{
"name": "sdiv_pos_lt_INT64_MAX",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 92,
"n_chars": 4219,
"n_subproofs": 7,
"n_tactics": 92,
"cyclomatic": 7,
"n_automation": 45,
"n_rewrites": 3,
"n_structural": 17,
"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... | @@ -74,10 +74,131 @@
simp only [beq_eq_false_iff_ne, ← bne_iff_ne] at h₁
simp only [h, h₁, bne_self_eq_false, true_or]
+private theorem msb_false_implies_neg_msb_eq {n : Nat} {bv : BitVec n}
+ (h : bv.msb = false) :
+ bv.neg = 0#n ∨ (bv.neg.msb = true ∧ (intMin n).toInt < bv.neg.toInt)
+:= 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_4fb6439d30ec_9 | f6f11c6bb95332ae | lean | lean | github.com/cedar-policy/cedar-spec | 795ddccff61c83aeb5d6a7ccd22abf5e00164c73 | cedar-lean/Cedar/Thm/SymCC/Data/BitVec.lean | BitVec | 9 | lemma_delete | null | null | false | 0.5 | 1 | 1 | false | 0 | inf | 0 | inf | 42 | 18 | 3 | [
{
"theorem_name": "sdiv_pos_lt_INT64_MAX",
"depth": 1,
"n_commands": 0,
"n_lines": 87,
"is_leaf": true,
"centrality": 0,
"method": "deleted-dep",
"proof_text": " by\n have h₀ : bv₂.msb = false := by\n simp only [msb_eq_toInt, decide_eq_false_iff_not, Int.not_lt]\n exact Int.le... | [
{
"name": "msb_false_implies_neg_msb_eq",
"text": "private theorem msb_false_implies_neg_msb_eq {n : Nat} {bv : BitVec n}\n (h : bv.msb = false) :\n bv.neg = 0#n ∨ (bv.neg.msb = true ∧ (intMin n).toInt < bv.neg.toInt)\n:= by\n simp only [BitVec.neg_eq, BitVec.msb_neg, h, Bool.xor_false]\n cases h₁ : bv ... | [
{
"name": "sdiv_pos_gt_INT64_MIN",
"fan_in": 0,
"n_deps_direct": 2,
"n_deps_transitive": 2,
"n_lines": 40,
"n_chars": 1701,
"n_subproofs": 4,
"n_tactics": 37,
"cyclomatic": 6,
"n_automation": 14,
"n_rewrites": 0,
"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... | @@ -74,10 +74,79 @@
simp only [beq_eq_false_iff_ne, ← bne_iff_ne] at h₁
simp only [h, h₁, bne_self_eq_false, true_or]
+private theorem msb_false_implies_neg_msb_eq {n : Nat} {bv : BitVec n}
+ (h : bv.msb = false) :
+ bv.neg = 0#n ∨ (bv.neg.msb = true ∧ (intMin n).toInt < bv.neg.toInt)
+:= by
+ simp o... | {
"repo": "cedar-spec",
"git_repo": "github.com/cedar-policy/cedar-spec",
"revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73",
"lean_toolchain": "leanprover/lean4:v4.31.0",
"proof_assistant": "lean",
"ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)",
"ablator_flags": [
"--corollary-de... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.