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_94da23c3ac81_3
4d6bf55a4dcb1c6a
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/Verification.lean
Verification
3
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
4
1
[ { "theorem_name": "verifyNeverMatches_is_complete'", "depth": 1, "n_commands": 0, "n_lines": 11, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro h₁ h₂ h₃\n have ⟨env, h₄, h₅, h₆, h₇⟩ := verifyNeverMatches_is_complete h₁ h₂ h₃\n exists env\n a...
[ { "name": "verifyNeverMatches_is_complete", "text": "/--\nThe `verifyNeverMatches` analysis is complete: if the assertions\n`verifyNeverMatches p εnv` are satisfiable for the policy `p` and the\nstrongly well-formed symbolic environment `εnv`, then there exists a\nstrongly well-formed concrete environment `...
[ { "name": "verifyNeverMatches_is_complete'", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 29, "n_chars": 1137, "n_subproofs": 1, "n_tactics": 12, "cyclomatic": 3, "n_automation": 2, "n_rewrites": 0, "n_structural": 6, "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...
@@ -37,6 +37,33 @@ open Spec SymCC /-- +The `verifyNeverMatches` analysis is complete: if the assertions +`verifyNeverMatches p εnv` are satisfiable for the policy `p` and the +strongly well-formed symbolic environment `εnv`, then there exists a +strongly well-formed concrete environment `env ∈ᵢ εnv` such that the ...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6b1989893878_0
409400201dc8b4e2
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Data/Ext.lean
Ext
0
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
5
4
[ { "theorem_name": "toInt_div_msPerDay", "depth": 1, "n_commands": 0, "n_lines": 15, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n rw [msPerDay_toInt, msPerDay_eq, Int64.toInt_div,\n show (86400000 : Int64).toInt = (86400000 : Int) from by native_...
[ { "name": "msPerDay_toInt", "text": "private theorem msPerDay_toInt : msPerDay.toInt = 86400000 := by native_decide\n", "fan_in": 4, "n_lines": 2, "n_chars": 79, "n_subproofs": 0, "n_tactics": 1, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 0, "n_structural": 0, ...
[ { "name": "toInt_div_msPerDay", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 2, "n_lines": 18, "n_chars": 957, "n_subproofs": 5, "n_tactics": 17, "cyclomatic": 1, "n_automation": 5, "n_rewrites": 6, "n_structural": 2, "automation_only": false, "max_ne...
2
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -34,8 +34,23 @@ private abbrev msPerDay : Int64 := Int64.ofIntChecked MILLISECONDS_PER_DAY (by decide) private theorem msPerDay_eq : msPerDay = (86400000 : Int64) := by native_decide +private theorem msPerDay_toInt : msPerDay.toInt = 86400000 := by native_decide private theorem toInt_div_msPerDay (v : Int64) : ...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6b1989893878_1
9a18871d1f5d594b
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Data/Ext.lean
Ext
1
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
5
4
[ { "theorem_name": "toInt_div_msPerDay", "depth": 1, "n_commands": 0, "n_lines": 15, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n rw [msPerDay_toInt, msPerDay_eq, Int64.toInt_div,\n show (86400000 : Int64).toInt = (86400000 : Int) from by native_...
[ { "name": "msPerDay_toInt", "text": "private theorem msPerDay_toInt : msPerDay.toInt = 86400000 := by native_decide\n", "fan_in": 4, "n_lines": 2, "n_chars": 79, "n_subproofs": 0, "n_tactics": 1, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 0, "n_structural": 0, ...
[ { "name": "toInt_mod_msPerDay", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 5, "n_chars": 148, "n_subproofs": 0, "n_tactics": 2, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 1, "n_structural": 0, "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...
@@ -33,8 +33,10 @@ /-- The `Int64` encoding of `MILLISECONDS_PER_DAY`. -/ private abbrev msPerDay : Int64 := Int64.ofIntChecked MILLISECONDS_PER_DAY (by decide) +private theorem msPerDay_toInt : msPerDay.toInt = 86400000 := by native_decide private theorem toInt_mod_msPerDay (v : Int64) : - (v % msPerDay).toInt =...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6b1989893878_2
12b104f50d1add90
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Data/Ext.lean
Ext
2
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
5
4
[ { "theorem_name": "toInt_div_msPerDay", "depth": 1, "n_commands": 0, "n_lines": 15, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n rw [msPerDay_toInt, msPerDay_eq, Int64.toInt_div,\n show (86400000 : Int64).toInt = (86400000 : Int) from by native_...
[ { "name": "msPerDay_toInt", "text": "private theorem msPerDay_toInt : msPerDay.toInt = 86400000 := by native_decide\n", "fan_in": 4, "n_lines": 2, "n_chars": 79, "n_subproofs": 0, "n_tactics": 1, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 0, "n_structural": 0, ...
[ { "name": "toInt_smod_msPerDay", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 5, "n_chars": 153, "n_subproofs": 0, "n_tactics": 2, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 1, "n_structural": 0, "automation_only": false, "max_nes...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -33,8 +33,10 @@ /-- The `Int64` encoding of `MILLISECONDS_PER_DAY`. -/ private abbrev msPerDay : Int64 := Int64.ofIntChecked MILLISECONDS_PER_DAY (by decide) +private theorem msPerDay_toInt : msPerDay.toInt = 86400000 := by native_decide private theorem toInt_smod_msPerDay (v : Int64) : - (v.smod msPerDay).toI...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6b1989893878_3
5cbbe65cfb38a3ee
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Data/Ext.lean
Ext
3
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
5
1
[ { "theorem_name": "toDate_eq_smod", "depth": 1, "n_commands": 0, "n_lines": 52, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [toDate, MILLISECONDS_PER_DAY]\n obtain ⟨v⟩ := datetime\n show (if v ≥ 0 then datetime? (msPerDay.toInt * (v / ...
[ { "name": "toInt_mod_msPerDay", "text": "private theorem toInt_mod_msPerDay (v : Int64) :\n (v % msPerDay).toInt = v.toInt.tmod msPerDay.toInt := by\n rw [Int64.toInt_mod, msPerDay_toInt]\n\n", "fan_in": 1, "n_lines": 5, "n_chars": 148, "n_subproofs": 0, "n_tactics": 2, "cyclomatic...
[ { "name": "toDate_eq_smod", "fan_in": 0, "n_deps_direct": 4, "n_deps_transitive": 5, "n_lines": 59, "n_chars": 2903, "n_subproofs": 14, "n_tactics": 55, "cyclomatic": 5, "n_automation": 15, "n_rewrites": 15, "n_structural": 6, "automation_only": false, "max_ne...
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...
@@ -52,6 +52,10 @@ have : ((2 : Int) ^ (64 - 1) - 1).tdiv 86400000 = 106751991167 := by native_decide omega +private theorem toInt_mod_msPerDay (v : Int64) : + (v % msPerDay).toInt = v.toInt.tmod msPerDay.toInt := by + rw [Int64.toInt_mod, msPerDay_toInt] + private theorem toInt_smod_msPerDay (v : Int64)...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_1ae8da749ae4_0
8f67a308c46858db
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/WellTyped/Residual/Soundness.lean
Soundness
0
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
1
1
[ { "theorem_name": "residual_well_typed_is_sound_record", "depth": 1, "n_commands": 0, "n_lines": 23, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [Residual.typeOf]\n simp only [Residual.evaluate, do_ok_eq_ok] at h₃\n obtain ⟨r, h₄, h₅⟩ ...
[ { "name": "residual_attr_value_has_attrType", "text": "theorem residual_attr_value_has_attrType\n{request : Request}\n{entities : Entities}\n{m : List (Attr × Residual)}\n{r : List (Attr × Value)}\n{env : TypeEnv}\n(h₁ : ∀ (k : Attr) (v : Residual),\n (k, v) ∈ m → ∀ (v_1 : Value), v.evaluate request entiti...
[ { "name": "residual_well_typed_is_sound_record", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 43, "n_chars": 1561, "n_subproofs": 4, "n_tactics": 23, "cyclomatic": 2, "n_automation": 7, "n_rewrites": 2, "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...
@@ -33,6 +33,50 @@ open Cedar.Data open Cedar.Thm +theorem residual_attr_value_has_attrType +{request : Request} +{entities : Entities} +{m : List (Attr × Residual)} +{r : List (Attr × Value)} +{env : TypeEnv} +(h₁ : ∀ (k : Attr) (v : Residual), + (k, v) ∈ m → ∀ (v_1 : Value), v.evaluate request entities = Except....
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_b41f969b5e3e_0
aa5172adfe3455bf
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/TPE/WellTyped/Binary.lean
Binary
0
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
7
1
[ { "theorem_name": "entity_tag_well_typed", "depth": 1, "n_commands": 0, "n_lines": 29, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intros h_wf h_eref h_ent h_tags h_mem h_schema\n have ⟨edata, h_eq, h_entry⟩ := tags_if_partial_tags h_wf h_eref h_...
[ { "name": "tags_if_partial_tags", "text": "theorem tags_if_partial_tags\n {env : TypeEnv} {req : Request} {es : Entities} {pes : PartialEntities}\n {uid : EntityUID} {tags : Map Tag Value}\n (h_wf : InstanceOfWellFormedEnvironment req es env)\n (h_eref : EntitiesRefine es pes)\n (h_tags : PartialEntiti...
[ { "name": "entity_tag_well_typed", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 42, "n_chars": 1698, "n_subproofs": 1, "n_tactics": 31, "cyclomatic": 8, "n_automation": 5, "n_rewrites": 14, "n_structural": 8, "automation_only": false, "m...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -31,6 +31,31 @@ open Cedar.Validation open Cedar.TPE +theorem tags_if_partial_tags + {env : TypeEnv} {req : Request} {es : Entities} {pes : PartialEntities} + {uid : EntityUID} {tags : Map Tag Value} + (h_wf : InstanceOfWellFormedEnvironment req es env) + (h_eref : EntitiesRefine es pes) + (h_tags : Partial...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_b41f969b5e3e_1
8bd628a8349566af
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/TPE/WellTyped/Binary.lean
Binary
1
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
7
1
[ { "theorem_name": "partial_eval_well_typed_app₂_values_getTag", "depth": 1, "n_commands": 0, "n_lines": 98, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n unfold PEWellTyped\n intros ih₁ ih₂ h₁ h₂ h_wf h_ref h_wt\n let h_ref₂ := h_ref\n unfold Req...
[ { "name": "entity_tag_well_typed", "text": "theorem entity_tag_well_typed\n {env : TypeEnv} {req : Request} {es : Entities} {pes : PartialEntities}\n {uid : EntityUID} {ety : EntityType}\n {tags : Map Tag Value} {v : Value} {ty : CedarType} :\n InstanceOfWellFormedEnvironment req es env →\n EntitiesRef...
[ { "name": "partial_eval_well_typed_app₂_values_getTag", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 2, "n_lines": 107, "n_chars": 3787, "n_subproofs": 8, "n_tactics": 101, "cyclomatic": 20, "n_automation": 10, "n_rewrites": 26, "n_structural": 24, "autom...
2
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -56,6 +56,47 @@ rename_i h_eq exact ⟨edata, by rw [← h_tags, h_eq], h_entry⟩ +theorem entity_tag_well_typed + {env : TypeEnv} {req : Request} {es : Entities} {pes : PartialEntities} + {uid : EntityUID} {ety : EntityType} + {tags : Map Tag Value} {v : Value} {ty : CedarType} : + 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_b41f969b5e3e_2
774b9c4a3e3e2619
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/TPE/WellTyped/Binary.lean
Binary
2
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
7
1
[ { "theorem_name": "partial_eval_well_typed_app₂_values", "depth": 1, "n_commands": 0, "n_lines": 50, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n unfold PEWellTyped\n intros ih₁ ih₂ h₁ h₂ h_wf h_ref h_wt\n\n let h_ref₂ := h_ref\n unfold RequestA...
[ { "name": "partial_eval_well_typed_app₂_values_hasTag", "text": "theorem partial_eval_well_typed_app₂_values_hasTag :\n Residual.WellTyped env (TPE.evaluate expr1 preq pes) →\n Residual.WellTyped env (TPE.evaluate expr2 preq pes) →\n (TPE.evaluate expr1 preq pes).asValue = some (Value.prim (Prim.entityUI...
[ { "name": "partial_eval_well_typed_app₂_values", "fan_in": 1, "n_deps_direct": 3, "n_deps_transitive": 5, "n_lines": 58, "n_chars": 1866, "n_subproofs": 0, "n_tactics": 45, "cyclomatic": 9, "n_automation": 7, "n_rewrites": 3, "n_structural": 14, "automation_only":...
5
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -97,6 +97,76 @@ rw [h_empty] at h_mem simp [Map.empty, Map.values] at h_mem +theorem partial_eval_well_typed_app₂_values_hasTag : + Residual.WellTyped env (TPE.evaluate expr1 preq pes) → + Residual.WellTyped env (TPE.evaluate expr2 preq pes) → + (TPE.evaluate expr1 preq pes).asValue = some (Value.prim...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_b41f969b5e3e_3
a598c434790cc2fa
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/TPE/WellTyped/Binary.lean
Binary
3
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
7
1
[ { "theorem_name": "partial_eval_well_typed_app₂_values", "depth": 1, "n_commands": 0, "n_lines": 50, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n unfold PEWellTyped\n intros ih₁ ih₂ h₁ h₂ h_wf h_ref h_wt\n\n let h_ref₂ := h_ref\n unfold RequestA...
[ { "name": "partial_eval_well_typed_app₂_values_mem", "text": "theorem partial_eval_well_typed_app₂_values_mem :\n Residual.WellTyped env (TPE.evaluate expr1 preq pes) →\n Residual.WellTyped env (TPE.evaluate expr2 preq pes) →\n (TPE.evaluate expr1 preq pes).asValue = .some v₁ →\n (TPE.evaluate expr2 pre...
[ { "name": "partial_eval_well_typed_app₂", "fan_in": 0, "n_deps_direct": 2, "n_deps_transitive": 7, "n_lines": 23, "n_chars": 846, "n_subproofs": 0, "n_tactics": 18, "cyclomatic": 3, "n_automation": 0, "n_rewrites": 0, "n_structural": 11, "automation_only": false, ...
7
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -272,14 +272,147 @@ rw [h₄] at h₅ exact h₅ +theorem partial_eval_well_typed_app₂_values_mem : + Residual.WellTyped env (TPE.evaluate expr1 preq pes) → + Residual.WellTyped env (TPE.evaluate expr2 preq pes) → + (TPE.evaluate expr1 preq pes).asValue = .some v₁ → + (TPE.evaluate expr2 preq pes)....
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_3a1c7052dc4b_0
d4fc860d79889531
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Enforcer/Enforce.lean
Enforce
0
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
18
1
[ { "theorem_name": "enforce_satisfiedBy_swf", "depth": 1, "n_commands": 0, "n_lines": 9, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro heq hI hsε hse ha\n rw [asserts_satisfiedBy_true]\n intro t hin\n rw [enforce_def] at ha\n rw [Set.mem_se...
[ { "name": "swf_implies_acyclic", "text": "private theorem swf_implies_acyclic {xs : List Expr} {env : Env} {εnv : SymEnv} {I : Interpretation} {t : Term}\n (heq : env ∼ SymEnv.interpret I εnv)\n (hI : I.WellFormed εnv.entities)\n (hsε : εnv.StronglyWellFormedForAll xs)\n (hse : env.StronglyWellFormedFor...
[ { "name": "enforce_satisfiedBy_swf", "fan_in": 0, "n_deps_direct": 3, "n_deps_transitive": 3, "n_lines": 18, "n_chars": 641, "n_subproofs": 0, "n_tactics": 9, "cyclomatic": 2, "n_automation": 0, "n_rewrites": 3, "n_structural": 5, "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...
@@ -45,6 +45,25 @@ := by simp only [enforce, acyclic, transitive] +private theorem swf_implies_acyclic {xs : List Expr} {env : Env} {εnv : SymEnv} {I : Interpretation} {t : Term} + (heq : env ∼ SymEnv.interpret I εnv) + (hI : I.WellFormed εnv.entities) + (hsε : εnv.StronglyWellFormedForAll xs) + (hse : env.St...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_3a1c7052dc4b_1
e8f8836a012abc1e
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Enforcer/Enforce.lean
Enforce
1
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
18
1
[ { "theorem_name": "same_env_implies_find?", "depth": 1, "n_commands": 0, "n_lines": 6, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n replace ⟨δ, hδ, heq⟩ := heq.right uid₁ d₁ hd₁\n replace ⟨f, hf, ts, heq, hinᵤ⟩ := heq.right.left uid₂ hin\n replac...
[ { "name": "εnv_interpret_find?_ancestor", "text": "private theorem εnv_interpret_find?_ancestor {εnv : SymEnv} {I : Interpretation} {δ : SymEntityData} {ancUF : UnaryFunction} {ety₁ ety₂ : EntityType}\n (hδ : (εnv.interpret I).entities.find? ety₁ = some δ)\n (hf : δ.ancestors.find? ety₂ = some ancUF) :\n ...
[ { "name": "same_env_implies_find?", "fan_in": 2, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 18, "n_chars": 767, "n_subproofs": 0, "n_tactics": 6, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 1, "n_structural": 1, "automation_only": false, "max...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -38,6 +38,22 @@ private def transitive (ft : Set Term) (εs : SymEntities) : List Term := ft.elts.flatMap (λ t => ft.elts.map (transitivity t · εs)) +private theorem εnv_interpret_find?_ancestor {εnv : SymEnv} {I : Interpretation} {δ : SymEntityData} {ancUF : UnaryFunction} {ety₁ ety₂ : EntityType} + (hδ : (ε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_3a1c7052dc4b_2
7cb7636e4d2c6674
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Enforcer/Enforce.lean
Enforce
2
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
18
2
[ { "theorem_name": "acyclic_implies_Acyclic", "depth": 1, "n_commands": 0, "n_lines": 25, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro uid d hd\n by_contra hin\n simp only [acyclic, Set.mem_elts_iff_mem_set, List.mem_map, forall_exists_index...
[ { "name": "same_env_implies_find?", "text": "private theorem same_env_implies_find? {uid₁ uid₂ : EntityUID} {d₁ : EntityData} {env : Env} {εnv : SymEnv} {I : Interpretation}\n (heq : env ∼ εnv.interpret I)\n (hd₁ : env.entities.find? uid₁ = some d₁)\n (hin : uid₂ ∈ d₁.ancestors) :\n ∃ δ f ts,\n Map.f...
[ { "name": "acyclic_implies_Acyclic", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 3, "n_lines": 33, "n_chars": 1526, "n_subproofs": 5, "n_tactics": 25, "cyclomatic": 3, "n_automation": 4, "n_rewrites": 1, "n_structural": 4, "automation_only": false, "...
3
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -65,6 +65,22 @@ simp only [Set.mem_elts_iff_mem_set, hin, Term.entityUIDs, TermPrim.entityUIDs, Set.mem_singleton, and_self] +private theorem same_env_implies_find? {uid₁ uid₂ : EntityUID} {d₁ : EntityData} {env : Env} {εnv : SymEnv} {I : Interpretation} + (heq : env ∼ εnv.interpret I) + (hd₁ : env.entit...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_3a1c7052dc4b_3
dbd221fe0b215205
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Enforcer/Enforce.lean
Enforce
3
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
18
2
[ { "theorem_name": "wfl_entities_implies_mem_entityUIDs_type", "depth": 1, "n_commands": 0, "n_lines": 8, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro hwl hty hin\n have ⟨ts, heq⟩ := wfl_of_type_set_is_set hwl hty\n subst heq\n replace hin ...
[ { "name": "mem_entityUIDs_mem_terms", "text": "private theorem mem_entityUIDs_mem_terms {uid : EntityUID} {ts : Set Term} {ety : EntityType} {εs : SymEntities} :\n (Term.set ts (.entity ety)).WellFormedLiteral εs →\n uid ∈ (Term.set ts (.entity ety)).entityUIDs →\n Term.entity uid ∈ ts\n:= by\n intro ⟨h...
[ { "name": "wfl_entities_implies_mem_entityUIDs_type", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 15, "n_chars": 545, "n_subproofs": 1, "n_tactics": 8, "cyclomatic": 1, "n_automation": 1, "n_rewrites": 1, "n_structural": 2, "automation_only...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -38,6 +38,24 @@ private def transitive (ft : Set Term) (εs : SymEntities) : List Term := ft.elts.flatMap (λ t => ft.elts.map (transitivity t · εs)) +private theorem mem_entityUIDs_mem_terms {uid : EntityUID} {ts : Set Term} {ety : EntityType} {εs : SymEntities} : + (Term.set ts (.entity ety)).WellFormedLitera...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_3a1c7052dc4b_4
457c810db623b6b2
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Enforcer/Enforce.lean
Enforce
4
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
18
2
[ { "theorem_name": "transitive_implies_Transitive_uuf_uuf", "depth": 1, "n_commands": 0, "n_lines": 33, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have hwε := swf_εnv_implies_wf hsε.left\n cases hft₁ : (Interpretation.repair.footprintUIDs (footpr...
[ { "name": "same_envs_implies_exists_ancestors_of_type", "text": "private theorem same_envs_implies_exists_ancestors_of_type\n {uid₁ : EntityUID} {ety₂ : EntityType} {d₁ : EntityData} {δ₁ : SymEntityData}\n {f₁₂ : UnaryFunction} {env : Env} {εnv : SymEnv} {I : Interpretation}\n (heq : env ∼ εnv.interpret...
[ { "name": "transitive_implies_Transitive_uuf_uuf", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 2, "n_lines": 53, "n_chars": 3307, "n_subproofs": 7, "n_tactics": 35, "cyclomatic": 6, "n_automation": 9, "n_rewrites": 2, "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...
@@ -59,6 +59,25 @@ simp only [UnaryFunction.isUDF, Bool.false_eq_true] at hsε · exact hsε pty₂ f₂ hf₂ +private theorem same_envs_implies_exists_ancestors_of_type + {uid₁ : EntityUID} {ety₂ : EntityType} {d₁ : EntityData} {δ₁ : SymEntityData} + {f₁₂ : UnaryFunction} {env : Env} {εnv : SymEnv} {I : Interpreta...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_3a1c7052dc4b_5
6e2482e74a776213
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Enforcer/Enforce.lean
Enforce
5
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
18
1
[ { "theorem_name": "transitive_implies_Transitive_udf_udf", "depth": 1, "n_commands": 0, "n_lines": 25, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have htr := hsε.right.right.right.left uid₁ δ₁ uid₂ δ₂ hδ₁ hδ₂\n simp only [SymEntityData.knownAnce...
[ { "name": "wfl_entities_implies_mem_entityUIDs_type", "text": "private theorem wfl_entities_implies_mem_entityUIDs_type {uid : EntityUID} {t : Term} {ety : EntityType} {εs : SymEntities} :\n t.WellFormedLiteral εs →\n t.typeOf = .set (.entity ety) →\n uid ∈ t.entityUIDs →\n uid.ty = ety\n:= by\n intro ...
[ { "name": "transitive_implies_Transitive_udf_udf", "fan_in": 1, "n_deps_direct": 5, "n_deps_transitive": 5, "n_lines": 43, "n_chars": 2658, "n_subproofs": 3, "n_tactics": 26, "cyclomatic": 4, "n_automation": 9, "n_rewrites": 2, "n_structural": 5, "automation_only"...
5
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -91,6 +91,20 @@ simp only [hwf, and_self] · simp only [hwf, and_self] +private theorem wfl_entities_implies_mem_entityUIDs_type {uid : EntityUID} {t : Term} {ety : EntityType} {εs : SymEntities} : + t.WellFormedLiteral εs → + t.typeOf = .set (.entity ety) → + uid ∈ t.entityUIDs → + uid.ty = ety +:= by ...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_3a1c7052dc4b_6
240f3e7484a20c3d
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Enforcer/Enforce.lean
Enforce
6
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
18
1
[ { "theorem_name": "transitive_implies_Transitive_uuf_uuf", "depth": 1, "n_commands": 0, "n_lines": 33, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have hwε := swf_εnv_implies_wf hsε.left\n cases hft₁ : (Interpretation.repair.footprintUIDs (footpr...
[ { "name": "partitioned_uuf_implies_isUUF", "text": "private theorem partitioned_uuf_implies_isUUF {ety pty₁ pty₂ : EntityType} {δ : SymEntityData} {f₁ : UUF} {f₂ : UnaryFunction} {εs : SymEntities}\n (hsε : εs.Partitioned)\n (hδ : Map.find? εs ety = some δ)\n (hf₁ : δ.ancestors.find? pty₁ = some (.uuf f...
[ { "name": "transitive_implies_Transitive", "fan_in": 1, "n_deps_direct": 4, "n_deps_transitive": 11, "n_lines": 23, "n_chars": 1353, "n_subproofs": 3, "n_tactics": 17, "cyclomatic": 5, "n_automation": 2, "n_rewrites": 1, "n_structural": 6, "automation_only": false...
11
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -159,6 +159,20 @@ simp only [Bool.false_eq_true] at * · simp only [henum₁, henum₂] +private theorem partitioned_uuf_implies_isUUF {ety pty₁ pty₂ : EntityType} {δ : SymEntityData} {f₁ : UUF} {f₂ : UnaryFunction} {εs : SymEntities} + (hsε : εs.Partitioned) + (hδ : Map.find? εs ety = some δ) + (hf₁ : δ.an...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_3a1c7052dc4b_7
3d499178ef472463
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Enforcer/Enforce.lean
Enforce
7
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
18
2
[ { "theorem_name": "enforce_satisfiedBy_swf", "depth": 1, "n_commands": 0, "n_lines": 9, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro heq hI hsε hse ha\n rw [asserts_satisfiedBy_true]\n intro t hin\n rw [enforce_def] at ha\n rw [Set.mem_se...
[ { "name": "enforce_def", "text": "private theorem enforce_def {xs : List Expr} {εnv : SymEnv} :\n enforce xs εnv =\n Set.make (acyclic (footprints xs εnv) εnv.entities ∪\n transitive (footprints xs εnv) εnv.entities)\n:= by\n simp only [enforce, acyclic, transitive]\n\n", "fan_in": 2, ...
[ { "name": "enforce_satisfiedBy_implies_acyclic_and_transitive", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 18, "n_chars": 693, "n_subproofs": 0, "n_tactics": 11, "cyclomatic": 2, "n_automation": 1, "n_rewrites": 3, "n_structural": 4, "auto...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -38,6 +38,13 @@ private def transitive (ft : Set Term) (εs : SymEntities) : List Term := ft.elts.flatMap (λ t => ft.elts.map (transitivity t · εs)) +private theorem enforce_def {xs : List Expr} {εnv : SymEnv} : + enforce xs εnv = + Set.make (acyclic (footprints xs εnv) εnv.entities ∪ + transitive ...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_3a1c7052dc4b_8
afef3c22d62443d4
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Enforcer/Enforce.lean
Enforce
8
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
18
1
[ { "theorem_name": "transitive_implies_Transitive_uuf_uuf", "depth": 1, "n_commands": 0, "n_lines": 33, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have hwε := swf_εnv_implies_wf hsε.left\n cases hft₁ : (Interpretation.repair.footprintUIDs (footpr...
[ { "name": "partitioned_uuf_implies_isUUF", "text": "private theorem partitioned_uuf_implies_isUUF {ety pty₁ pty₂ : EntityType} {δ : SymEntityData} {f₁ : UUF} {f₂ : UnaryFunction} {εs : SymEntities}\n (hsε : εs.Partitioned)\n (hδ : Map.find? εs ety = some δ)\n (hf₁ : δ.ancestors.find? pty₁ = some (.uuf f...
[ { "name": "enforce_satisfiedBy_implies_swf_extract?", "fan_in": 1, "n_deps_direct": 3, "n_deps_transitive": 15, "n_lines": 32, "n_chars": 1417, "n_subproofs": 3, "n_tactics": 19, "cyclomatic": 4, "n_automation": 2, "n_rewrites": 0, "n_structural": 10, "automation_...
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...
@@ -198,6 +198,20 @@ simp only [Bool.false_eq_true] at * · simp only [henum₁, henum₂] +private theorem partitioned_uuf_implies_isUUF {ety pty₁ pty₂ : EntityType} {δ : SymEntityData} {f₁ : UUF} {f₂ : UnaryFunction} {εs : SymEntities} + (hsε : εs.Partitioned) + (hδ : Map.find? εs ety = some δ) + (hf₁ : δ.an...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_3a1c7052dc4b_9
a30b94f679b1632e
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Enforcer/Enforce.lean
Enforce
9
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
18
2
[ { "theorem_name": "transitive_implies_Transitive_uuf_uuf", "depth": 1, "n_commands": 0, "n_lines": 33, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have hwε := swf_εnv_implies_wf hsε.left\n cases hft₁ : (Interpretation.repair.footprintUIDs (footpr...
[ { "name": "same_envs_implies_exists_ancestors_of_type", "text": "private theorem same_envs_implies_exists_ancestors_of_type\n {uid₁ : EntityUID} {ety₂ : EntityType} {d₁ : EntityData} {δ₁ : SymEntityData}\n {f₁₂ : UnaryFunction} {env : Env} {εnv : SymEnv} {I : Interpretation}\n (heq : env ∼ εnv.interpret...
[ { "name": "enforce_satisfiedBy_implies_swf", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 16, "n_lines": 16, "n_chars": 630, "n_subproofs": 1, "n_tactics": 4, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 0, "n_structural": 2, "automation_only": false...
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...
@@ -212,6 +212,25 @@ simp only [UnaryFunction.isUDF, Bool.false_eq_true] at hsε · exact hsε pty₂ f₂ hf₂ +private theorem same_envs_implies_exists_ancestors_of_type + {uid₁ : EntityUID} {ety₂ : EntityType} {d₁ : EntityData} {δ₁ : SymEntityData} + {f₁₂ : UnaryFunction} {env : Env} {εnv : SymEnv} {I : 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_6343b7f3d25c_0
0b4341b884a774d8
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
0
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ := Map.contains_iff_some_find?.mp hmem\n exists (SymEnti...
[ { "name": "ofEnv_preserves_entity", "text": "/--\nIf some entity exists in `Γ`, then it must\nalso exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData`\n-/\ntheorem ofEnv_preserves_entity\n {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry}\n (hεnv : εnv = SymEnv.ofEn...
[ { "name": "ofEnv_entity_exists", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 12, "n_chars": 395, "n_subproofs": 1, "n_tactics": 5, "cyclomatic": 1, "n_automation": 1, "n_rewrites": 0, "n_structural": 3, "automation_only": false, "max_ne...
1
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,12 +23,43 @@ open SymCC open Cedar.Data +/-- +If some entity exists in `Γ`, then it must +also exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData` +-/ +theorem ofEnv_preserves_entity + {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry} + (hεnv : εnv = SymEnv.ofEnv Γ) ...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_1
01f8fb033613b464
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
1
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_action_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 3, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n simp [ofEnv_preserves_action_entity hwf hmem]", "n_chars": 91, ...
[ { "name": "ofEnv_preserves_action_entity", "text": "/-- An action entity type is compiled correctly -/\ntheorem ofEnv_preserves_action_entity\n {Γ : TypeEnv} {uid : EntityUID}\n (hwf : Γ.WellFormed)\n (hmem : Map.contains Γ.acts uid) :\n Map.find? (SymEnv.ofEnv Γ).entities uid.ty =\n some (SymEntityD...
[ { "name": "ofEnv_action_entity_exists", "fan_in": 2, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 11, "n_chars": 340, "n_subproofs": 0, "n_tactics": 3, "cyclomatic": 1, "n_automation": 1, "n_rewrites": 0, "n_structural": 1, "automation_only": false, ...
1
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,13 +23,86 @@ open SymCC open Cedar.Data +/-- An action entity type is compiled correctly -/ +theorem ofEnv_preserves_action_entity + {Γ : TypeEnv} {uid : EntityUID} + (hwf : Γ.WellFormed) + (hmem : Map.contains Γ.acts uid) : + Map.find? (SymEnv.ofEnv Γ).entities uid.ty = + some (SymEntityData.ofAction...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_2
6b4cb848f450f97e
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
2
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ := Map.contains_iff_some_find?.mp hmem\n exists (SymEnti...
[ { "name": "ofEnv_preserves_entity", "text": "/--\nIf some entity exists in `Γ`, then it must\nalso exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData`\n-/\ntheorem ofEnv_preserves_entity\n {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry}\n (hεnv : εnv = SymEnv.ofEn...
[ { "name": "ofEnv_wf_entity", "fan_in": 2, "n_deps_direct": 2, "n_deps_transitive": 4, "n_lines": 17, "n_chars": 512, "n_subproofs": 1, "n_tactics": 9, "cyclomatic": 2, "n_automation": 2, "n_rewrites": 0, "n_structural": 3, "automation_only": false, "max_nestin...
4
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,6 +23,33 @@ open SymCC open Cedar.Data +/-- +If some entity exists in `Γ`, then it must +also exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData` +-/ +theorem ofEnv_preserves_entity + {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry} + (hεnv : εnv = SymEnv.ofEnv Γ) +...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_3
4c3239ee5e5a50ff
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
3
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ := Map.contains_iff_some_find?.mp hmem\n exists (SymEnti...
[ { "name": "ofEnv_preserves_entity", "text": "/--\nIf some entity exists in `Γ`, then it must\nalso exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData`\n-/\ntheorem ofEnv_preserves_entity\n {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry}\n (hεnv : εnv = SymEnv.ofEn...
[ { "name": "ofEnv_preserves_tags", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 36, "n_chars": 1202, "n_subproofs": 2, "n_tactics": 23, "cyclomatic": 3, "n_automation": 6, "n_rewrites": 0, "n_structural": 1, "automation_only": false, "max...
1
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -24,6 +24,33 @@ open Cedar.Data /-- +If some entity exists in `Γ`, then it must +also exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData` +-/ +theorem ofEnv_preserves_entity + {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry} + (hεnv : εnv = SymEnv.ofEnv Γ) + (hfind : M...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_4
7c0e1803b1abd0e5
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
4
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ := Map.contains_iff_some_find?.mp hmem\n exists (SymEnti...
[ { "name": "ofEnv_preserves_entity", "text": "/--\nIf some entity exists in `Γ`, then it must\nalso exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData`\n-/\ntheorem ofEnv_preserves_entity\n {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry}\n (hεnv : εnv = SymEnv.ofEn...
[ { "name": "ofEnv_preserves_entity_attr", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 64, "n_chars": 2651, "n_subproofs": 3, "n_tactics": 43, "cyclomatic": 5, "n_automation": 15, "n_rewrites": 0, "n_structural": 3, "automation_only": false, ...
1
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -24,6 +24,33 @@ open Cedar.Data /-- +If some entity exists in `Γ`, then it must +also exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData` +-/ +theorem ofEnv_preserves_entity + {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry} + (hεnv : εnv = SymEnv.ofEnv Γ) + (hfind : M...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_5
079d1dd7902ace5a
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
5
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ := Map.contains_iff_some_find?.mp hmem\n exists (SymEnti...
[ { "name": "ofEnv_preserves_entity", "text": "/--\nIf some entity exists in `Γ`, then it must\nalso exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData`\n-/\ntheorem ofEnv_preserves_entity\n {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry}\n (hεnv : εnv = SymEnv.ofEn...
[ { "name": "ofType_wf", "fan_in": 3, "n_deps_direct": 2, "n_deps_transitive": 6, "n_lines": 58, "n_chars": 1833, "n_subproofs": 4, "n_tactics": 49, "cyclomatic": 14, "n_automation": 11, "n_rewrites": 2, "n_structural": 22, "automation_only": false, "max_nesting...
6
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,6 +23,33 @@ open SymCC open Cedar.Data +/-- +If some entity exists in `Γ`, then it must +also exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData` +-/ +theorem ofEnv_preserves_entity + {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry} + (hεnv : εnv = SymEnv.ofEnv Γ) +...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_6
d64638488f0de3f7
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
6
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_action_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 3, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n simp [ofEnv_preserves_action_entity hwf hmem]", "n_chars": 91, ...
[ { "name": "ofEnv_preserves_action_entity", "text": "/-- An action entity type is compiled correctly -/\ntheorem ofEnv_preserves_action_entity\n {Γ : TypeEnv} {uid : EntityUID}\n (hwf : Γ.WellFormed)\n (hmem : Map.contains Γ.acts uid) :\n Map.find? (SymEnv.ofEnv Γ).entities uid.ty =\n some (SymEntityD...
[ { "name": "ofEnv_request_is_wf", "fan_in": 1, "n_deps_direct": 5, "n_deps_transitive": 9, "n_lines": 46, "n_chars": 1354, "n_subproofs": 4, "n_tactics": 31, "cyclomatic": 8, "n_automation": 10, "n_rewrites": 0, "n_structural": 10, "automation_only": false, "ma...
9
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -50,6 +50,77 @@ assumption case _ => contradiction +/-- An action entity type is compiled correctly -/ +theorem ofEnv_preserves_action_entity + {Γ : TypeEnv} {uid : EntityUID} + (hwf : Γ.WellFormed) + (hmem : Map.contains Γ.acts uid) : + Map.find? (SymEnv.ofEnv Γ).entities uid.ty = + some (SymEntity...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_7
6c529faad129e8e4
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
7
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_action_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 3, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n simp [ofEnv_preserves_action_entity hwf hmem]", "n_chars": 91, ...
[ { "name": "ofEnv_preserves_action_entity", "text": "/-- An action entity type is compiled correctly -/\ntheorem ofEnv_preserves_action_entity\n {Γ : TypeEnv} {uid : EntityUID}\n (hwf : Γ.WellFormed)\n (hmem : Map.contains Γ.acts uid) :\n Map.find? (SymEnv.ofEnv Γ).entities uid.ty =\n some (SymEntityD...
[ { "name": "ofEnv_request_is_swf", "fan_in": 2, "n_deps_direct": 2, "n_deps_transitive": 11, "n_lines": 12, "n_chars": 278, "n_subproofs": 0, "n_tactics": 5, "cyclomatic": 2, "n_automation": 1, "n_rewrites": 0, "n_structural": 3, "automation_only": false, "max_...
11
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -50,6 +50,77 @@ assumption case _ => contradiction +/-- An action entity type is compiled correctly -/ +theorem ofEnv_preserves_action_entity + {Γ : TypeEnv} {uid : EntityUID} + (hwf : Γ.WellFormed) + (hmem : Map.contains Γ.acts uid) : + Map.find? (SymEnv.ofEnv Γ).entities uid.ty = + some (SymEntity...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_8
52d5b4635f3102dc
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
8
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ := Map.contains_iff_some_find?.mp hmem\n exists (SymEnti...
[ { "name": "ofEnv_preserves_entity", "text": "/--\nIf some entity exists in `Γ`, then it must\nalso exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData`\n-/\ntheorem ofEnv_preserves_entity\n {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry}\n (hεnv : εnv = SymEnv.ofEn...
[ { "name": "ofStandardEntityType_is_wf", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 8, "n_lines": 117, "n_chars": 3632, "n_subproofs": 8, "n_tactics": 105, "cyclomatic": 10, "n_automation": 30, "n_rewrites": 0, "n_structural": 25, "automation_only": fals...
8
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,6 +23,33 @@ open SymCC open Cedar.Data +/-- +If some entity exists in `Γ`, then it must +also exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData` +-/ +theorem ofEnv_preserves_entity + {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry} + (hεnv : εnv = SymEnv.ofEnv Γ) +...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_9
dafcfc8bbc59ad43
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
9
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_action_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 3, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n simp [ofEnv_preserves_action_entity hwf hmem]", "n_chars": 91, ...
[ { "name": "ofEnv_preserves_action_entity", "text": "/-- An action entity type is compiled correctly -/\ntheorem ofEnv_preserves_action_entity\n {Γ : TypeEnv} {uid : EntityUID}\n (hwf : Γ.WellFormed)\n (hmem : Map.contains Γ.acts uid) :\n Map.find? (SymEnv.ofEnv Γ).entities uid.ty =\n some (SymEntityD...
[ { "name": "ofEntityType_is_wf", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 10, "n_lines": 14, "n_chars": 419, "n_subproofs": 0, "n_tactics": 4, "cyclomatic": 2, "n_automation": 0, "n_rewrites": 0, "n_structural": 3, "automation_only": false, "max_ne...
10
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -50,6 +50,77 @@ assumption case _ => contradiction +/-- An action entity type is compiled correctly -/ +theorem ofEnv_preserves_action_entity + {Γ : TypeEnv} {uid : EntityUID} + (hwf : Γ.WellFormed) + (hmem : Map.contains Γ.acts uid) : + Map.find? (SymEnv.ofEnv Γ).entities uid.ty = + some (SymEntity...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_10
34b316491851a9b7
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
10
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ := Map.contains_iff_some_find?.mp hmem\n exists (SymEnti...
[ { "name": "ofEnv_preserves_entity", "text": "/--\nIf some entity exists in `Γ`, then it must\nalso exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData`\n-/\ntheorem ofEnv_preserves_entity\n {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry}\n (hεnv : εnv = SymEnv.ofEn...
[ { "name": "ofActionType_ancsUDF_is_wf", "fan_in": 1, "n_deps_direct": 3, "n_deps_transitive": 7, "n_lines": 172, "n_chars": 5912, "n_subproofs": 20, "n_tactics": 151, "cyclomatic": 13, "n_automation": 38, "n_rewrites": 3, "n_structural": 34, "automation_only": fal...
7
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,6 +23,33 @@ open SymCC open Cedar.Data +/-- +If some entity exists in `Γ`, then it must +also exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData` +-/ +theorem ofEnv_preserves_entity + {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry} + (hεnv : εnv = SymEnv.ofEnv Γ) +...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_11
3590e871ae03ae13
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
11
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ := Map.contains_iff_some_find?.mp hmem\n exists (SymEnti...
[ { "name": "ofEnv_preserves_entity", "text": "/--\nIf some entity exists in `Γ`, then it must\nalso exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData`\n-/\ntheorem ofEnv_preserves_entity\n {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry}\n (hεnv : εnv = SymEnv.ofEn...
[ { "name": "ofActionType_is_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 8, "n_lines": 52, "n_chars": 1652, "n_subproofs": 5, "n_tactics": 41, "cyclomatic": 2, "n_automation": 14, "n_rewrites": 1, "n_structural": 11, "automation_only": false, "max...
8
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,6 +23,33 @@ open SymCC open Cedar.Data +/-- +If some entity exists in `Γ`, then it must +also exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData` +-/ +theorem ofEnv_preserves_entity + {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry} + (hεnv : εnv = SymEnv.ofEnv Γ) +...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_12
42f7bdcf1945ddc4
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
12
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_action_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 3, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n simp [ofEnv_preserves_action_entity hwf hmem]", "n_chars": 91, ...
[ { "name": "ofEnv_preserves_action_entity", "text": "/-- An action entity type is compiled correctly -/\ntheorem ofEnv_preserves_action_entity\n {Γ : TypeEnv} {uid : EntityUID}\n (hwf : Γ.WellFormed)\n (hmem : Map.contains Γ.acts uid) :\n Map.find? (SymEnv.ofEnv Γ).entities uid.ty =\n some (SymEntityD...
[ { "name": "ofEnv_entities_is_wf", "fan_in": 2, "n_deps_direct": 2, "n_deps_transitive": 13, "n_lines": 36, "n_chars": 1395, "n_subproofs": 13, "n_tactics": 29, "cyclomatic": 3, "n_automation": 7, "n_rewrites": 0, "n_structural": 6, "automation_only": false, "m...
13
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -50,6 +50,77 @@ assumption case _ => contradiction +/-- An action entity type is compiled correctly -/ +theorem ofEnv_preserves_action_entity + {Γ : TypeEnv} {uid : EntityUID} + (hwf : Γ.WellFormed) + (hmem : Map.contains Γ.acts uid) : + Map.find? (SymEnv.ofEnv Γ).entities uid.ty = + some (SymEntity...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_13
516ece87d44b2114
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
13
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ := Map.contains_iff_some_find?.mp hmem\n exists (SymEnti...
[ { "name": "ofEnv_preserves_entity", "text": "/--\nIf some entity exists in `Γ`, then it must\nalso exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData`\n-/\ntheorem ofEnv_preserves_entity\n {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry}\n (hεnv : εnv = SymEnv.ofEn...
[ { "name": "entity_uid_wf_implies_sym_entities_is_valid_entity_uid", "fan_in": 2, "n_deps_direct": 2, "n_deps_transitive": 2, "n_lines": 48, "n_chars": 1458, "n_subproofs": 2, "n_tactics": 41, "cyclomatic": 6, "n_automation": 13, "n_rewrites": 1, "n_structural": 6, ...
2
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,6 +23,33 @@ open SymCC open Cedar.Data +/-- +If some entity exists in `Γ`, then it must +also exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData` +-/ +theorem ofEnv_preserves_entity + {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry} + (hεnv : εnv = SymEnv.ofEnv Γ) +...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_14
af223240a5ed140b
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
14
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ := Map.contains_iff_some_find?.mp hmem\n exists (SymEnti...
[ { "name": "ofEnv_preserves_entity", "text": "/--\nIf some entity exists in `Γ`, then it must\nalso exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData`\n-/\ntheorem ofEnv_preserves_entity\n {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry}\n (hεnv : εnv = SymEnv.ofEn...
[ { "name": "env_valid_uid_implies_sym_env_valid_uid", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 3, "n_lines": 37, "n_chars": 1374, "n_subproofs": 4, "n_tactics": 30, "cyclomatic": 4, "n_automation": 8, "n_rewrites": 0, "n_structural": 6, "automation_onl...
3
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,6 +23,33 @@ open SymCC open Cedar.Data +/-- +If some entity exists in `Γ`, then it must +also exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData` +-/ +theorem ofEnv_preserves_entity + {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry} + (hεnv : εnv = SymEnv.ofEnv Γ) +...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_15
da43627b07b01eef
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
15
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ := Map.contains_iff_some_find?.mp hmem\n exists (SymEnti...
[ { "name": "ofEnv_preserves_entity", "text": "/--\nIf some entity exists in `Γ`, then it must\nalso exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData`\n-/\ntheorem ofEnv_preserves_entity\n {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry}\n (hεnv : εnv = SymEnv.ofEn...
[ { "name": "ofEnv_entities_valid_refs_for_wt_expr", "fan_in": 3, "n_deps_direct": 1, "n_deps_transitive": 3, "n_lines": 86, "n_chars": 2698, "n_subproofs": 7, "n_tactics": 75, "cyclomatic": 15, "n_automation": 23, "n_rewrites": 1, "n_structural": 27, "automation_on...
3
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,6 +23,33 @@ open SymCC open Cedar.Data +/-- +If some entity exists in `Γ`, then it must +also exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData` +-/ +theorem ofEnv_preserves_entity + {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry} + (hεnv : εnv = SymEnv.ofEnv Γ) +...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_16
3a2cea5eb7076276
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
16
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ := Map.contains_iff_some_find?.mp hmem\n exists (SymEnti...
[ { "name": "ofEnv_preserves_entity", "text": "/--\nIf some entity exists in `Γ`, then it must\nalso exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData`\n-/\ntheorem ofEnv_preserves_entity\n {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry}\n (hεnv : εnv = SymEnv.ofEn...
[ { "name": "wellTypedPolicy_ok_implies_valid_refs", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 5, "n_lines": 29, "n_chars": 894, "n_subproofs": 2, "n_tactics": 24, "cyclomatic": 6, "n_automation": 6, "n_rewrites": 2, "n_structural": 2, "automation_only":...
5
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,6 +23,33 @@ open SymCC open Cedar.Data +/-- +If some entity exists in `Γ`, then it must +also exists in `SymEnv.ofEnv Γ` with the corresponding `SymEntityData` +-/ +theorem ofEnv_preserves_entity + {Γ : TypeEnv} {εnv : SymEnv} {ety : EntityType} {entry : EntitySchemaEntry} + (hεnv : εnv = SymEnv.ofEnv Γ) +...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_17
1aa9340a0448faa9
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
17
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
2
[ { "theorem_name": "in_ancsUDF_implies_in_ancestors", "depth": 1, "n_commands": 0, "n_lines": 55, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n cases hfind_uid : Map.find? Γ.acts uid with\n | none =>\n simp only [\n SymEntityData.ofActionTyp...
[ { "name": "ancsUDF_app", "text": "/-- Simplifies `SymEntityData.ofActionType.ancsUDF` -/\ntheorem ancsUDF_app\n {Γ : TypeEnv} {uid : EntityUID} {entry : ActionSchemaEntry}\n (ancTy : EntityType)\n (hwf : Γ.WellFormed)\n (hfind : Map.find? Γ.acts uid = some entry) :\n Factory.app\n (SymEntityData.o...
[ { "name": "in_ancsUDF_implies_in_ancestors", "fan_in": 2, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 65, "n_chars": 2326, "n_subproofs": 7, "n_tactics": 56, "cyclomatic": 5, "n_automation": 14, "n_rewrites": 3, "n_structural": 3, "automation_only": fal...
1
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,6 +23,37 @@ open SymCC open Cedar.Data +/-- Simplifies `SymEntityData.ofActionType.ancsUDF` -/ +theorem ancsUDF_app + {Γ : TypeEnv} {uid : EntityUID} {entry : ActionSchemaEntry} + (ancTy : EntityType) + (hwf : Γ.WellFormed) + (hfind : Map.find? Γ.acts uid = some entry) : + Factory.app + (SymEntityD...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_18
3da01890d7c67ee0
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
18
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
2
[ { "theorem_name": "in_ancsUDF_implies_in_ancestors", "depth": 1, "n_commands": 0, "n_lines": 55, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n cases hfind_uid : Map.find? Γ.acts uid with\n | none =>\n simp only [\n SymEntityData.ofActionTyp...
[ { "name": "ancsUDF_app", "text": "/-- Simplifies `SymEntityData.ofActionType.ancsUDF` -/\ntheorem ancsUDF_app\n {Γ : TypeEnv} {uid : EntityUID} {entry : ActionSchemaEntry}\n (ancTy : EntityType)\n (hwf : Γ.WellFormed)\n (hfind : Map.find? Γ.acts uid = some entry) :\n Factory.app\n (SymEntityData.o...
[ { "name": "in_ancestors_implies_in_ancsUDF", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 27, "n_chars": 921, "n_subproofs": 0, "n_tactics": 19, "cyclomatic": 3, "n_automation": 4, "n_rewrites": 2, "n_structural": 8, "automation_only": false...
1
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,13 +23,62 @@ open SymCC open Cedar.Data +/-- Simplifies `SymEntityData.ofActionType.ancsUDF` -/ +theorem ancsUDF_app + {Γ : TypeEnv} {uid : EntityUID} {entry : ActionSchemaEntry} + (ancTy : EntityType) + (hwf : Γ.WellFormed) + (hfind : Map.find? Γ.acts uid = some entry) : + Factory.app + (SymEntity...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_19
c9ffafe3b0cd557d
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
19
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
2
[ { "theorem_name": "in_ancsUDF_implies_in_ancestors", "depth": 1, "n_commands": 0, "n_lines": 55, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n cases hfind_uid : Map.find? Γ.acts uid with\n | none =>\n simp only [\n SymEntityData.ofActionTyp...
[ { "name": "ancsUDF_app", "text": "/-- Simplifies `SymEntityData.ofActionType.ancsUDF` -/\ntheorem ancsUDF_app\n {Γ : TypeEnv} {uid : EntityUID} {entry : ActionSchemaEntry}\n (ancTy : EntityType)\n (hwf : Γ.WellFormed)\n (hfind : Map.find? Γ.acts uid = some entry) :\n Factory.app\n (SymEntityData.o...
[ { "name": "ofEnv_entities_is_acyclic", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 2, "n_lines": 48, "n_chars": 1931, "n_subproofs": 15, "n_tactics": 41, "cyclomatic": 3, "n_automation": 11, "n_rewrites": 0, "n_structural": 2, "automation_only": false, ...
2
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,6 +23,37 @@ open SymCC open Cedar.Data +/-- Simplifies `SymEntityData.ofActionType.ancsUDF` -/ +theorem ancsUDF_app + {Γ : TypeEnv} {uid : EntityUID} {entry : ActionSchemaEntry} + (ancTy : EntityType) + (hwf : Γ.WellFormed) + (hfind : Map.find? Γ.acts uid = some entry) : + Factory.app + (SymEntityD...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_20
688819dbebf9b386
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
20
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
2
[ { "theorem_name": "ofEnv_entities_is_transitive", "depth": 1, "n_commands": 0, "n_lines": 125, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intros uid₁ δ₁ uid₂ δ₂ hfind_uid₁ hfind_uid₂ hanc\n apply Set.subset_def.mpr\n intros uid huid_anc₂\n hav...
[ { "name": "ofEnv_entities_find?_some", "text": "theorem ofEnv_entities_find?_some\n {Γ : TypeEnv} {ety : EntityType} {δ : SymEntityData}\n (hwf : Γ.WellFormed)\n (hfind : Map.find? (SymEnv.ofEnv Γ).entities ety = .some δ) :\n ((∃ entry, Map.find? Γ.ets ety = .some (.standard entry) ∧\n δ = SymEntityD...
[ { "name": "ofEnv_entities_is_transitive", "fan_in": 1, "n_deps_direct": 3, "n_deps_transitive": 4, "n_lines": 131, "n_chars": 5488, "n_subproofs": 15, "n_tactics": 119, "cyclomatic": 10, "n_automation": 24, "n_rewrites": 0, "n_structural": 18, "automation_only": f...
4
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,6 +23,54 @@ open SymCC open Cedar.Data +theorem ofEnv_entities_find?_some + {Γ : TypeEnv} {ety : EntityType} {δ : SymEntityData} + (hwf : Γ.WellFormed) + (hfind : Map.find? (SymEnv.ofEnv Γ).entities ety = .some δ) : + ((∃ entry, Map.find? Γ.ets ety = .some (.standard entry) ∧ + δ = SymEntityData.ofSta...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_21
b241ef21a1f39148
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
21
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
2
[ { "theorem_name": "ofEnv_entities_is_transitive", "depth": 1, "n_commands": 0, "n_lines": 125, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intros uid₁ δ₁ uid₂ δ₂ hfind_uid₁ hfind_uid₂ hanc\n apply Set.subset_def.mpr\n intros uid huid_anc₂\n hav...
[ { "name": "ofEnv_entities_find?_some", "text": "theorem ofEnv_entities_find?_some\n {Γ : TypeEnv} {ety : EntityType} {δ : SymEntityData}\n (hwf : Γ.WellFormed)\n (hfind : Map.find? (SymEnv.ofEnv Γ).entities ety = .some δ) :\n ((∃ entry, Map.find? Γ.ets ety = .some (.standard entry) ∧\n δ = SymEntityD...
[ { "name": "ofEnv_entities_is_partitioned", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 120, "n_chars": 4893, "n_subproofs": 25, "n_tactics": 111, "cyclomatic": 7, "n_automation": 23, "n_rewrites": 0, "n_structural": 11, "automation_only": f...
1
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -23,11 +23,172 @@ open SymCC open Cedar.Data +theorem ofEnv_entities_find?_some + {Γ : TypeEnv} {ety : EntityType} {δ : SymEntityData} + (hwf : Γ.WellFormed) + (hfind : Map.find? (SymEnv.ofEnv Γ).entities ety = .some δ) : + ((∃ entry, Map.find? Γ.ets ety = .some (.standard entry) ∧ + δ = SymEntityData.ofS...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_22
dd1cfc94ff62c5c9
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
22
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
2
[ { "theorem_name": "in_ancsUDF_implies_in_ancestors", "depth": 1, "n_commands": 0, "n_lines": 55, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n cases hfind_uid : Map.find? Γ.acts uid with\n | none =>\n simp only [\n SymEntityData.ofActionTyp...
[ { "name": "ancsUDF_app", "text": "/-- Simplifies `SymEntityData.ofActionType.ancsUDF` -/\ntheorem ancsUDF_app\n {Γ : TypeEnv} {uid : EntityUID} {entry : ActionSchemaEntry}\n (ancTy : EntityType)\n (hwf : Γ.WellFormed)\n (hfind : Map.find? Γ.acts uid = some entry) :\n Factory.app\n (SymEntityData.o...
[ { "name": "ofEnv_entities_is_hierarchical", "fan_in": 1, "n_deps_direct": 3, "n_deps_transitive": 7, "n_lines": 12, "n_chars": 289, "n_subproofs": 0, "n_tactics": 6, "cyclomatic": 3, "n_automation": 0, "n_rewrites": 0, "n_structural": 5, "automation_only": false, ...
7
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -71,6 +71,37 @@ have := (Map.in_list_iff_find?_some hwf_acts).mp hmem_uid_entry simp [heq_ety, ←hsym_act, this] +/-- Simplifies `SymEntityData.ofActionType.ancsUDF` -/ +theorem ancsUDF_app + {Γ : TypeEnv} {uid : EntityUID} {entry : ActionSchemaEntry} + (ancTy : EntityType) + (hwf : Γ.WellFormed) + (h...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_23
1bed34b328cd7e2c
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
23
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_action_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 3, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n simp [ofEnv_preserves_action_entity hwf hmem]", "n_chars": 91, ...
[ { "name": "ofEnv_preserves_action_entity", "text": "/-- An action entity type is compiled correctly -/\ntheorem ofEnv_preserves_action_entity\n {Γ : TypeEnv} {uid : EntityUID}\n (hwf : Γ.WellFormed)\n (hmem : Map.contains Γ.acts uid) :\n Map.find? (SymEnv.ofEnv Γ).entities uid.ty =\n some (SymEntityD...
[ { "name": "ofEnv_entities_is_swf", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 22, "n_lines": 10, "n_chars": 218, "n_subproofs": 0, "n_tactics": 4, "cyclomatic": 2, "n_automation": 0, "n_rewrites": 0, "n_structural": 3, "automation_only": false, "max...
22
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -50,6 +50,77 @@ assumption case _ => contradiction +/-- An action entity type is compiled correctly -/ +theorem ofEnv_preserves_action_entity + {Γ : TypeEnv} {uid : EntityUID} + (hwf : Γ.WellFormed) + (hmem : Map.contains Γ.acts uid) : + Map.find? (SymEnv.ofEnv Γ).entities uid.ty = + some (SymEntity...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_24
deacd41b3b32e1dd
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
24
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_action_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 3, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n simp [ofEnv_preserves_action_entity hwf hmem]", "n_chars": 91, ...
[ { "name": "ofEnv_preserves_action_entity", "text": "/-- An action entity type is compiled correctly -/\ntheorem ofEnv_preserves_action_entity\n {Γ : TypeEnv} {uid : EntityUID}\n (hwf : Γ.WellFormed)\n (hmem : Map.contains Γ.acts uid) :\n Map.find? (SymEnv.ofEnv Γ).entities uid.ty =\n some (SymEntityD...
[ { "name": "ofEnv_is_wf", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 18, "n_lines": 16, "n_chars": 380, "n_subproofs": 0, "n_tactics": 5, "cyclomatic": 2, "n_automation": 1, "n_rewrites": 0, "n_structural": 3, "automation_only": false, "max_nesting":...
18
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -50,6 +50,77 @@ assumption case _ => contradiction +/-- An action entity type is compiled correctly -/ +theorem ofEnv_preserves_action_entity + {Γ : TypeEnv} {uid : EntityUID} + (hwf : Γ.WellFormed) + (hmem : Map.contains Γ.acts uid) : + Map.find? (SymEnv.ofEnv Γ).entities uid.ty = + some (SymEntity...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_25
6e78b20c14bf7403
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
25
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
1
[ { "theorem_name": "ofEnv_wf_entity", "depth": 1, "n_commands": 0, "n_lines": 10, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.isValidEntityType]\n cases hwf_ety with\n | inl hwf_ety =>\n exact ofEnv_entity_exists hwf_ety...
[ { "name": "ofEnv_entity_exists", "text": "/-- A variant of `ofEnv_preserves_entity` -/\ntheorem ofEnv_entity_exists\n {Γ : TypeEnv} {ety : EntityType}\n (hmem : Map.contains Γ.ets ety) :\n Map.contains (SymEnv.ofEnv Γ).entities ety\n:= by\n apply Map.contains_iff_some_find?.mpr\n have ⟨entry, hentry⟩ :...
[ { "name": "ofEnv_is_swf", "fan_in": 3, "n_deps_direct": 2, "n_deps_transitive": 27, "n_lines": 15, "n_chars": 333, "n_subproofs": 0, "n_tactics": 5, "cyclomatic": 2, "n_automation": 1, "n_rewrites": 0, "n_structural": 3, "automation_only": false, "max_nesting"...
27
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -145,6 +145,17 @@ exact (Map.in_list_iff_find?_some hwf_acts).mpr hentry · simp +/-- A variant of `ofEnv_preserves_entity` -/ +theorem ofEnv_entity_exists + {Γ : TypeEnv} {ety : EntityType} + (hmem : Map.contains Γ.ets ety) : + Map.contains (SymEnv.ofEnv Γ).entities ety +:= by + apply Map.contains_iff_...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_26
e56495ceacd5e5d7
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
26
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
4
[ { "theorem_name": "ofEnv_action_entity_exists", "depth": 1, "n_commands": 0, "n_lines": 3, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n apply Map.contains_iff_some_find?.mpr\n simp [ofEnv_preserves_action_entity hwf hmem]", "n_chars": 91, ...
[ { "name": "ofEnv_preserves_action_entity", "text": "/-- An action entity type is compiled correctly -/\ntheorem ofEnv_preserves_action_entity\n {Γ : TypeEnv} {uid : EntityUID}\n (hwf : Γ.WellFormed)\n (hmem : Map.contains Γ.acts uid) :\n Map.find? (SymEnv.ofEnv Γ).entities uid.ty =\n some (SymEntityD...
[ { "name": "ofEnv_wf_for_expr", "fan_in": 0, "n_deps_direct": 2, "n_deps_transitive": 21, "n_lines": 15, "n_chars": 418, "n_subproofs": 0, "n_tactics": 4, "cyclomatic": 2, "n_automation": 0, "n_rewrites": 0, "n_structural": 3, "automation_only": false, "max_nes...
21
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -50,6 +50,77 @@ assumption case _ => contradiction +/-- An action entity type is compiled correctly -/ +theorem ofEnv_preserves_action_entity + {Γ : TypeEnv} {uid : EntityUID} + (hwf : Γ.WellFormed) + (hmem : Map.contains Γ.acts uid) : + Map.find? (SymEnv.ofEnv Γ).entities uid.ty = + some (SymEntity...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_6343b7f3d25c_27
2645cab621a6dfbb
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
27
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
2
[ { "theorem_name": "ofEnv_wf_entity", "depth": 1, "n_commands": 0, "n_lines": 10, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.isValidEntityType]\n cases hwf_ety with\n | inl hwf_ety =>\n exact ofEnv_entity_exists hwf_ety...
[ { "name": "ofEnv_action_entity_exists", "text": "/-- Similar to `ofEnv_entity_exists` but for action entities -/\ntheorem ofEnv_action_entity_exists\n {Γ : TypeEnv} {uid : EntityUID}\n (hwf : Γ.WellFormed)\n (hmem : Map.contains Γ.acts uid) :\n Map.contains (SymEnv.ofEnv Γ).entities uid.ty\n:= by\n app...
[ { "name": "ofEnv_swf_for_expr", "fan_in": 0, "n_deps_direct": 2, "n_deps_transitive": 30, "n_lines": 12, "n_chars": 352, "n_subproofs": 0, "n_tactics": 4, "cyclomatic": 2, "n_automation": 0, "n_rewrites": 0, "n_structural": 3, "automation_only": false, "max_ne...
30
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -156,6 +156,16 @@ exists (SymEntityData.ofEntityType ety entry) exact ofEnv_preserves_entity rfl hentry +/-- Similar to `ofEnv_entity_exists` but for action entities -/ +theorem ofEnv_action_entity_exists + {Γ : TypeEnv} {uid : EntityUID} + (hwf : Γ.WellFormed) + (hmem : Map.contains Γ.acts uid) : + 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_6343b7f3d25c_28
e4309697162356cf
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
28
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
2
[ { "theorem_name": "ofEnv_wf_entity", "depth": 1, "n_commands": 0, "n_lines": 10, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.isValidEntityType]\n cases hwf_ety with\n | inl hwf_ety =>\n exact ofEnv_entity_exists hwf_ety...
[ { "name": "ofEnv_action_entity_exists", "text": "/-- Similar to `ofEnv_entity_exists` but for action entities -/\ntheorem ofEnv_action_entity_exists\n {Γ : TypeEnv} {uid : EntityUID}\n (hwf : Γ.WellFormed)\n (hmem : Map.contains Γ.acts uid) :\n Map.contains (SymEnv.ofEnv Γ).entities uid.ty\n:= by\n app...
[ { "name": "ofEnv_swf_for_policy", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 32, "n_lines": 12, "n_chars": 363, "n_subproofs": 0, "n_tactics": 4, "cyclomatic": 2, "n_automation": 0, "n_rewrites": 0, "n_structural": 3, "automation_only": false, "max_...
32
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -156,6 +156,16 @@ exists (SymEntityData.ofEntityType ety entry) exact ofEnv_preserves_entity rfl hentry +/-- Similar to `ofEnv_entity_exists` but for action entities -/ +theorem ofEnv_action_entity_exists + {Γ : TypeEnv} {uid : EntityUID} + (hwf : Γ.WellFormed) + (hmem : Map.contains Γ.acts uid) : + 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_6343b7f3d25c_29
38f6895080367464
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/ofEnv.lean
ofEnv
29
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
34
2
[ { "theorem_name": "ofEnv_wf_entity", "depth": 1, "n_commands": 0, "n_lines": 10, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.isValidEntityType]\n cases hwf_ety with\n | inl hwf_ety =>\n exact ofEnv_entity_exists hwf_ety...
[ { "name": "ofEnv_action_entity_exists", "text": "/-- Similar to `ofEnv_entity_exists` but for action entities -/\ntheorem ofEnv_action_entity_exists\n {Γ : TypeEnv} {uid : EntityUID}\n (hwf : Γ.WellFormed)\n (hmem : Map.contains Γ.acts uid) :\n Map.contains (SymEnv.ofEnv Γ).entities uid.ty\n:= by\n app...
[ { "name": "ofEnv_swf_for_policies", "fan_in": 0, "n_deps_direct": 2, "n_deps_transitive": 33, "n_lines": 22, "n_chars": 709, "n_subproofs": 3, "n_tactics": 14, "cyclomatic": 2, "n_automation": 3, "n_rewrites": 0, "n_structural": 4, "automation_only": false, "m...
33
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
import Cedar.SymCC import Cedar.Thm.Validation.Typechecker.WF import Cedar.Thm.WellTyped.Expr.TypeLifting import Cedar.Thm.WellTyped.Expr.Definition import Cedar.Thm.WellTyped.Expr.Typechecking import Cedar.Thm.SymCC.Data.Hierarchy import Cedar.Thm.SymCC.Env.WF import Cedar.Thm.SymCC.Data.LT import Cedar.Thm.SymCC.Term...
@@ -156,6 +156,16 @@ exists (SymEntityData.ofEntityType ety entry) exact ofEnv_preserves_entity rfl hentry +/-- Similar to `ofEnv_entity_exists` but for action entities -/ +theorem ofEnv_action_entity_exists + {Γ : TypeEnv} {uid : EntityUID} + (hwf : Γ.WellFormed) + (hmem : Map.contains Γ.acts uid) : + 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_91dd36ba35ae_3
42e2bb8b0ebbd475
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/Validation/EnvironmentValidation.lean
EnvironmentValidation
3
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
12
2
[ { "theorem_name": "standard_schema_entry_validate_well_formed_is_sound", "depth": 1, "n_commands": 0, "n_lines": 46, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [StandardSchemaEntry.WellFormed]\n simp only [StandardSchemaEntry.validateW...
[ { "name": "type_validate_lifted_is_sound", "text": "theorem type_validate_lifted_is_sound\n {ty : CedarType}\n (hok : ty.validateLifted = .ok ()) :\n CedarType.IsLifted ty\n:= by\n cases ty with\n | bool bty =>\n cases bty\n · constructor\n · simp [CedarType.validateLifted] at hok\n · simp ...
[ { "name": "entity_schema_entry_validate_well_formed_is_sound", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 5, "n_lines": 25, "n_chars": 743, "n_subproofs": 0, "n_tactics": 19, "cyclomatic": 3, "n_automation": 7, "n_rewrites": 0, "n_structural": 3, "autom...
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...
@@ -165,11 +165,102 @@ omega end +theorem type_validate_lifted_is_sound + {ty : CedarType} + (hok : ty.validateLifted = .ok ()) : + CedarType.IsLifted ty +:= by + cases ty with + | bool bty => + cases bty + · constructor + · simp [CedarType.validateLifted] at hok + · simp [CedarType.validateLif...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_91dd36ba35ae_4
343400694251db97
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/Validation/EnvironmentValidation.lean
EnvironmentValidation
4
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
12
2
[ { "theorem_name": "standard_schema_entry_validate_well_formed_is_sound", "depth": 1, "n_commands": 0, "n_lines": 46, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [StandardSchemaEntry.WellFormed]\n simp only [StandardSchemaEntry.validateW...
[ { "name": "type_validate_lifted_is_sound", "text": "theorem type_validate_lifted_is_sound\n {ty : CedarType}\n (hok : ty.validateLifted = .ok ()) :\n CedarType.IsLifted ty\n:= by\n cases ty with\n | bool bty =>\n cases bty\n · constructor\n · simp [CedarType.validateLifted] at hok\n · simp ...
[ { "name": "entity_schema_validate_well_formed_is_sound", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 6, "n_lines": 20, "n_chars": 675, "n_subproofs": 1, "n_tactics": 14, "cyclomatic": 2, "n_automation": 5, "n_rewrites": 0, "n_structural": 4, "automation_...
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...
@@ -165,11 +165,102 @@ omega end +theorem type_validate_lifted_is_sound + {ty : CedarType} + (hok : ty.validateLifted = .ok ()) : + CedarType.IsLifted ty +:= by + cases ty with + | bool bty => + cases bty + · constructor + · simp [CedarType.validateLifted] at hok + · simp [CedarType.validateLif...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_91dd36ba35ae_6
d1a851cf1db663fe
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/Validation/EnvironmentValidation.lean
EnvironmentValidation
6
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
12
2
[ { "theorem_name": "standard_schema_entry_validate_well_formed_is_sound", "depth": 1, "n_commands": 0, "n_lines": 46, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [StandardSchemaEntry.WellFormed]\n simp only [StandardSchemaEntry.validateW...
[ { "name": "type_validate_lifted_is_sound", "text": "theorem type_validate_lifted_is_sound\n {ty : CedarType}\n (hok : ty.validateLifted = .ok ()) :\n CedarType.IsLifted ty\n:= by\n cases ty with\n | bool bty =>\n cases bty\n · constructor\n · simp [CedarType.validateLifted] at hok\n · simp ...
[ { "name": "action_schema_validate_well_formed_is_sound", "fan_in": 1, "n_deps_direct": 3, "n_deps_transitive": 7, "n_lines": 51, "n_chars": 1717, "n_subproofs": 1, "n_tactics": 40, "cyclomatic": 9, "n_automation": 10, "n_rewrites": 0, "n_structural": 11, "automati...
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...
@@ -165,11 +165,114 @@ omega end +theorem type_validate_lifted_is_sound + {ty : CedarType} + (hok : ty.validateLifted = .ok ()) : + CedarType.IsLifted ty +:= by + cases ty with + | bool bty => + cases bty + · constructor + · simp [CedarType.validateLifted] at hok + · simp [CedarType.validateLif...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_91dd36ba35ae_7
c0c234028c52a887
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/Validation/EnvironmentValidation.lean
EnvironmentValidation
7
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
12
1
[ { "theorem_name": "env_validate_well_formed_is_sound", "depth": 1, "n_commands": 0, "n_lines": 24, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [TypeEnv.WellFormed]\n simp only [TypeEnv.validateWellFormed] at hok\n -- Check that the ent...
[ { "name": "entity_schema_validate_well_formed_is_sound", "text": "theorem entity_schema_validate_well_formed_is_sound\n {env : TypeEnv} {ets : EntitySchema}\n (hok : ets.validateWellFormed env = .ok ()) :\n EntitySchema.WellFormed env ets\n:= by\n simp only [EntitySchema.WellFormed]\n simp only [Entity...
[ { "name": "env_validate_well_formed_is_sound", "fan_in": 0, "n_deps_direct": 3, "n_deps_transitive": 12, "n_lines": 30, "n_chars": 940, "n_subproofs": 0, "n_tactics": 21, "cyclomatic": 4, "n_automation": 10, "n_rewrites": 0, "n_structural": 4, "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...
@@ -286,6 +286,25 @@ ] at hok simp [Set.wellFormed_correct.mp hwf_es, hok] +theorem entity_schema_validate_well_formed_is_sound + {env : TypeEnv} {ets : EntitySchema} + (hok : ets.validateWellFormed env = .ok ()) : + EntitySchema.WellFormed env ets +:= by + simp only [EntitySchema.WellFormed] + simp on...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_9329898cf2b8_0
7fddf0898bec58f1
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
0
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
2
[ { "theorem_name": "interpret_entities_isValidEntityUID", "depth": 1, "n_commands": 0, "n_lines": 7, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.isValidEntityUID]\n split\n case h_1 d h =>\n simp only [interpret_entities...
[ { "name": "interpret_entities_find?_none", "text": "public theorem interpret_entities_find?_none {εs : SymEntities} {I : Interpretation} {ety : EntityType}\n (h₁ : εs.find? ety = .none) :\n (εs.interpret I).find? ety = .none\n:= by simp [SymEntities.interpret, h₁]\n\n", "fan_in": 2, "n_lines": 6, ...
[ { "name": "interpret_entities_isValidEntityUID", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 2, "n_lines": 11, "n_chars": 393, "n_subproofs": 0, "n_tactics": 7, "cyclomatic": 2, "n_automation": 3, "n_rewrites": 0, "n_structural": 0, "automation_only": fa...
2
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -46,9 +46,20 @@ apply Map.find?_mapOnValues_some exact h₁ +public theorem interpret_entities_find?_none {εs : SymEntities} {I : Interpretation} {ety : EntityType} + (h₁ : εs.find? ety = .none) : + (εs.interpret I).find? ety = .none +:= by simp [SymEntities.interpret, h₁] + public theorem interpret_entitie...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_9329898cf2b8_1
d766865d17d35c2b
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
1
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
2
[ { "theorem_name": "interpret_entities_isValidEntityUID", "depth": 1, "n_commands": 0, "n_lines": 7, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.isValidEntityUID]\n split\n case h_1 d h =>\n simp only [interpret_entities...
[ { "name": "interpret_entities_find?_none", "text": "public theorem interpret_entities_find?_none {εs : SymEntities} {I : Interpretation} {ety : EntityType}\n (h₁ : εs.find? ety = .none) :\n (εs.interpret I).find? ety = .none\n:= by simp [SymEntities.interpret, h₁]\n\n", "fan_in": 2, "n_lines": 6, ...
[ { "name": "interpret_entities_ancestors_none", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 14, "n_chars": 533, "n_subproofs": 0, "n_tactics": 9, "cyclomatic": 2, "n_automation": 3, "n_rewrites": 0, "n_structural": 2, "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...
@@ -38,10 +38,23 @@ open Batteries Data Spec SymCC Factory +public theorem interpret_entities_find?_none {εs : SymEntities} {I : Interpretation} {ety : EntityType} + (h₁ : εs.find? ety = .none) : + (εs.interpret I).find? ety = .none +:= by simp [SymEntities.interpret, h₁] + public theorem interpret_entities_anc...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_9329898cf2b8_2
8e0fc4d024a838c5
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
2
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
2
[ { "theorem_name": "interpret_entities_ancestorsOfType_none", "depth": 1, "n_commands": 0, "n_lines": 13, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.ancestorsOfType, Option.bind_eq_bind, Option.bind_eq_none_iff]\n intro h₁ ...
[ { "name": "interpret_entities_ancestors_some", "text": "public theorem interpret_entities_ancestors_some {εs : SymEntities} {ety : EntityType} {ancs : Map EntityType UnaryFunction} (I : Interpretation) :\n εs.ancestors ety = .some ancs →\n (εs.interpret I).ancestors ety = .some (ancs.mapOnValues (UnaryFu...
[ { "name": "interpret_entities_ancestorsOfType_none", "fan_in": 0, "n_deps_direct": 2, "n_deps_transitive": 3, "n_lines": 18, "n_chars": 749, "n_subproofs": 0, "n_tactics": 13, "cyclomatic": 2, "n_automation": 4, "n_rewrites": 1, "n_structural": 3, "automation_only...
3
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -56,10 +56,32 @@ case some => simp only [h₃, Option.some.injEq, forall_eq', reduceCtorEq] at h₁ +public theorem interpret_entities_ancestors_some {εs : SymEntities} {ety : EntityType} {ancs : Map EntityType UnaryFunction} (I : Interpretation) : + εs.ancestors ety = .some ancs → + (εs.interpret I).ancest...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_9329898cf2b8_3
b7b235fd9160b80a
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
3
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
2
[ { "theorem_name": "interpret_entities_ancestorsOfType_none", "depth": 1, "n_commands": 0, "n_lines": 13, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.ancestorsOfType, Option.bind_eq_bind, Option.bind_eq_none_iff]\n intro h₁ ...
[ { "name": "interpret_entities_ancestors_some", "text": "public theorem interpret_entities_ancestors_some {εs : SymEntities} {ety : EntityType} {ancs : Map EntityType UnaryFunction} (I : Interpretation) :\n εs.ancestors ety = .some ancs →\n (εs.interpret I).ancestors ety = .some (ancs.mapOnValues (UnaryFu...
[ { "name": "interpret_entities_ancestorsOfType_some", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 11, "n_chars": 538, "n_subproofs": 0, "n_tactics": 6, "cyclomatic": 1, "n_automation": 2, "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...
@@ -38,10 +38,25 @@ open Batteries Data Spec SymCC Factory +public theorem interpret_entities_ancestors_some {εs : SymEntities} {ety : EntityType} {ancs : Map EntityType UnaryFunction} (I : Interpretation) : + εs.ancestors ety = .some ancs → + (εs.interpret I).ancestors ety = .some (ancs.mapOnValues (UnaryFunct...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_9329898cf2b8_4
4d3a4e503cd3c945
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
4
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
3
[ { "theorem_name": "interpret_entities_isValidEntityUID", "depth": 1, "n_commands": 0, "n_lines": 7, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.isValidEntityUID]\n split\n case h_1 d h =>\n simp only [interpret_entities...
[ { "name": "interpret_entities_find?_some", "text": "public theorem interpret_entities_find?_some {εs : SymEntities} {I : Interpretation} {ety : EntityType} {d : SymEntityData}\n (h₁ : εs.find? ety = .some d) :\n (εs.interpret I).find? ety = .some (d.interpret I)\n:= by\n simp only [SymEntities.interpret]...
[ { "name": "interpret_entities_tags_none", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 11, "n_chars": 462, "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...
@@ -38,10 +38,23 @@ open Batteries Data Spec SymCC Factory +public theorem interpret_entities_find?_some {εs : SymEntities} {I : Interpretation} {ety : EntityType} {d : SymEntityData} + (h₁ : εs.find? ety = .some d) : + (εs.interpret I).find? ety = .some (d.interpret I) +:= by + simp only [SymEntities.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_9329898cf2b8_5
5b3845f11cc070da
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
5
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
3
[ { "theorem_name": "interpret_entities_isValidEntityUID", "depth": 1, "n_commands": 0, "n_lines": 7, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.isValidEntityUID]\n split\n case h_1 d h =>\n simp only [interpret_entities...
[ { "name": "interpret_entities_find?_some", "text": "public theorem interpret_entities_find?_some {εs : SymEntities} {I : Interpretation} {ety : EntityType} {d : SymEntityData}\n (h₁ : εs.find? ety = .some d) :\n (εs.interpret I).find? ety = .some (d.interpret I)\n:= by\n simp only [SymEntities.interpret]...
[ { "name": "interpret_entities_tags_some", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 12, "n_chars": 533, "n_subproofs": 0, "n_tactics": 7, "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...
@@ -38,10 +38,24 @@ open Batteries Data Spec SymCC Factory +public theorem interpret_entities_find?_some {εs : SymEntities} {I : Interpretation} {ety : EntityType} {d : SymEntityData} + (h₁ : εs.find? ety = .some d) : + (εs.interpret I).find? ety = .some (d.interpret I) +:= by + simp only [SymEntities.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_9329898cf2b8_6
e70b4266f5c3ed62
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
6
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
2
[ { "theorem_name": "interpret_entities_isValidEntityUID", "depth": 1, "n_commands": 0, "n_lines": 7, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.isValidEntityUID]\n split\n case h_1 d h =>\n simp only [interpret_entities...
[ { "name": "interpret_entities_find?_none", "text": "public theorem interpret_entities_find?_none {εs : SymEntities} {I : Interpretation} {ety : EntityType}\n (h₁ : εs.find? ety = .none) :\n (εs.interpret I).find? ety = .none\n:= by simp [SymEntities.interpret, h₁]\n\n", "fan_in": 2, "n_lines": 6, ...
[ { "name": "interpret_entities_same_domain", "fan_in": 4, "n_deps_direct": 2, "n_deps_transitive": 4, "n_lines": 5, "n_chars": 227, "n_subproofs": 0, "n_tactics": 1, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 0, "n_structural": 0, "automation_only": false, ...
4
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -46,9 +46,20 @@ apply Map.find?_mapOnValues_some exact h₁ +public theorem interpret_entities_find?_none {εs : SymEntities} {I : Interpretation} {ety : EntityType} + (h₁ : εs.find? ety = .none) : + (εs.interpret I).find? ety = .none +:= by simp [SymEntities.interpret, h₁] + public theorem interpret_entitie...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_9329898cf2b8_7
c396dfaf9aa94fde
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
7
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
1
[ { "theorem_name": "interpret_εdata_wf", "depth": 1, "n_commands": 0, "n_lines": 28, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntityData.WellFormed, and_imp]\n intro h₁ h₂ h₃ h₄ h₅\n have h₆ := interpret_uf_wf h₁ h₂\n simp only ...
[ { "name": "interpret_uf_wf", "text": "public theorem interpret_uf_wf {εs : SymEntities} {I : Interpretation} {f : UnaryFunction} :\n I.WellFormed εs →\n f.WellFormed εs →\n (f.interpret I).WellFormed εs ∧\n (f.interpret I).argType = f.argType ∧\n (f.interpret I).outType = f.outType\n:= by\n intro h₁ h...
[ { "name": "interpret_εdata_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 34, "n_chars": 1338, "n_subproofs": 3, "n_tactics": 29, "cyclomatic": 4, "n_automation": 8, "n_rewrites": 2, "n_structural": 11, "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...
@@ -38,11 +38,56 @@ open Batteries Data Spec SymCC Factory +public theorem interpret_uf_wf {εs : SymEntities} {I : Interpretation} {f : UnaryFunction} : + I.WellFormed εs → + f.WellFormed εs → + (f.interpret I).WellFormed εs ∧ + (f.interpret I).argType = f.argType ∧ + (f.interpret I).outType = f.outType +:= b...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_9329898cf2b8_8
3cdc061b0b25ebd7
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
8
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
4
[ { "theorem_name": "interpret_εntities_wf", "depth": 1, "n_commands": 0, "n_lines": 17, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.WellFormed, SymEntities.interpret]\n intro h₀ h₂\n simp only [← Map.mapOnValues_wf, h₀.left...
[ { "name": "interpret_entities_same_domain", "text": "public theorem interpret_entities_same_domain (εs : SymEntities) (I : Interpretation) :\n SameDomain εs (εs.interpret I)\n:= And.intro (interpret_entities_isValidEntityUID εs I) (interpret_entities_isValidEntityType εs I)\n\n", "fan_in": 4, "n_li...
[ { "name": "interpret_εntities_wf", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 7, "n_lines": 23, "n_chars": 826, "n_subproofs": 3, "n_tactics": 17, "cyclomatic": 2, "n_automation": 4, "n_rewrites": 2, "n_structural": 5, "automation_only": false, "max...
7
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -67,6 +67,10 @@ simp only [SymEntities.isValidEntityType, SymEntities.interpret] rw [Map.contains_mapOnValues (SymEntityData.interpret I)] +public theorem interpret_entities_same_domain (εs : SymEntities) (I : Interpretation) : + SameDomain εs (εs.interpret I) +:= And.intro (interpret_entities_isValidEntity...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_9329898cf2b8_9
38a84c7d1de040e0
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
9
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
1
[ { "theorem_name": "interpret_ρeq_wf", "depth": 1, "n_commands": 0, "n_lines": 8, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro h₁ h₂\n have ⟨hp, hp', ha, ha', hr, hr', hc, hc'⟩ := h₂\n simp [SymRequest.WellFormed, SymRequest.interpret,\n ...
[ { "name": "interpret_term_wf_fun_typeOf", "text": "private theorem interpret_term_wf_fun_typeOf\n {εs : SymEntities} {I : Interpretation} {t : Term}\n {f : TermType → Bool} :\n I.WellFormed εs → t.WellFormed εs → f t.typeOf →\n (t.interpret I).WellFormed εs ∧ f (t.interpret I).typeOf\n:= by\n intro h₁ ...
[ { "name": "interpret_ρeq_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 14, "n_chars": 499, "n_subproofs": 1, "n_tactics": 8, "cyclomatic": 1, "n_automation": 1, "n_rewrites": 0, "n_structural": 1, "automation_only": false, "max_nesti...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -38,11 +38,28 @@ open Batteries Data Spec SymCC Factory +private theorem interpret_term_wf_fun_typeOf + {εs : SymEntities} {I : Interpretation} {t : Term} + {f : TermType → Bool} : + I.WellFormed εs → t.WellFormed εs → f t.typeOf → + (t.interpret I).WellFormed εs ∧ f (t.interpret I).typeOf +:= by + intro h...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_9329898cf2b8_10
314de8211df53ad6
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
10
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
4
[ { "theorem_name": "interpret_εntities_wf", "depth": 1, "n_commands": 0, "n_lines": 17, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.WellFormed, SymEntities.interpret]\n intro h₀ h₂\n simp only [← Map.mapOnValues_wf, h₀.left...
[ { "name": "interpret_entities_same_domain", "text": "public theorem interpret_entities_same_domain (εs : SymEntities) (I : Interpretation) :\n SameDomain εs (εs.interpret I)\n:= And.intro (interpret_entities_isValidEntityUID εs I) (interpret_entities_isValidEntityType εs I)\n\n", "fan_in": 4, "n_li...
[ { "name": "interpret_εnv_wf", "fan_in": 2, "n_deps_direct": 3, "n_deps_transitive": 10, "n_lines": 13, "n_chars": 465, "n_subproofs": 1, "n_tactics": 7, "cyclomatic": 2, "n_automation": 1, "n_rewrites": 0, "n_structural": 4, "automation_only": false, "max_nest...
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...
@@ -67,6 +67,10 @@ simp only [SymEntities.isValidEntityType, SymEntities.interpret] rw [Map.contains_mapOnValues (SymEntityData.interpret I)] +public theorem interpret_entities_same_domain (εs : SymEntities) (I : Interpretation) : + SameDomain εs (εs.interpret I) +:= And.intro (interpret_entities_isValidEntity...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_9329898cf2b8_11
fa29ae4827e7ce5e
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
11
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
1
[ { "theorem_name": "interpret_εntities_wf", "depth": 1, "n_commands": 0, "n_lines": 17, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.WellFormed, SymEntities.interpret]\n intro h₀ h₂\n simp only [← Map.mapOnValues_wf, h₀.left...
[ { "name": "interpret_εdata_wf", "text": "public theorem interpret_εdata_wf {εs : SymEntities} {I : Interpretation} {ety : EntityType} {εd : SymEntityData} :\n I.WellFormed εs →\n εd.WellFormed εs ety →\n (εd.interpret I).WellFormed εs ety\n:= by\n simp only [SymEntityData.WellFormed, and_imp]\n intro h...
[ { "name": "interpret_εnv_wf_for_expr", "fan_in": 0, "n_deps_direct": 2, "n_deps_transitive": 11, "n_lines": 12, "n_chars": 401, "n_subproofs": 0, "n_tactics": 6, "cyclomatic": 2, "n_automation": 1, "n_rewrites": 0, "n_structural": 4, "automation_only": false, ...
11
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -89,11 +89,60 @@ simp only [Interpretation.WellFormed.WellFormedUUFInterpretation] at h₁ simp only [h₁, and_self] +public theorem interpret_εdata_wf {εs : SymEntities} {I : Interpretation} {ety : EntityType} {εd : SymEntityData} : + I.WellFormed εs → + εd.WellFormed εs ety → + (εd.interpret 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_9329898cf2b8_12
9a38898eee1ca061
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
12
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
1
[ { "theorem_name": "interpret_εntities_wf", "depth": 1, "n_commands": 0, "n_lines": 17, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [SymEntities.WellFormed, SymEntities.interpret]\n intro h₀ h₂\n simp only [← Map.mapOnValues_wf, h₀.left...
[ { "name": "interpret_εdata_wf", "text": "public theorem interpret_εdata_wf {εs : SymEntities} {I : Interpretation} {ety : EntityType} {εd : SymEntityData} :\n I.WellFormed εs →\n εd.WellFormed εs ety →\n (εd.interpret I).WellFormed εs ety\n:= by\n simp only [SymEntityData.WellFormed, and_imp]\n intro h...
[ { "name": "interpret_εnv_wf_for_policies", "fan_in": 0, "n_deps_direct": 2, "n_deps_transitive": 11, "n_lines": 11, "n_chars": 441, "n_subproofs": 0, "n_tactics": 5, "cyclomatic": 1, "n_automation": 1, "n_rewrites": 0, "n_structural": 3, "automation_only": false, ...
11
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -89,11 +89,60 @@ simp only [Interpretation.WellFormed.WellFormedUUFInterpretation] at h₁ simp only [h₁, and_self] +public theorem interpret_εdata_wf {εs : SymEntities} {I : Interpretation} {ety : EntityType} {εd : SymEntityData} : + I.WellFormed εs → + εd.WellFormed εs ety → + (εd.interpret 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_9329898cf2b8_13
384e7abd268e87df
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Env/Interpret.lean
Interpret
13
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
14
1
[ { "theorem_name": "interpret_εnv_lit", "depth": 1, "n_commands": 0, "n_lines": 35, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro hw hI\n simp only [SymEnv.isLiteral, SymEnv.interpret, Bool.and_eq_true]\n constructor\n case left =>\n have...
[ { "name": "interpret_uf_lit", "text": "public theorem interpret_uf_lit {εs : SymEntities} {I : Interpretation} {f : UnaryFunction} :\n I.WellFormed εs →\n f.WellFormed εs →\n (f.interpret I).isLiteral\n:= by\n intro hI hwf\n simp only [UnaryFunction.interpret]\n split <;>\n simp only [UnaryFunction.i...
[ { "name": "interpret_εnv_lit", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 41, "n_chars": 1767, "n_subproofs": 2, "n_tactics": 38, "cyclomatic": 7, "n_automation": 8, "n_rewrites": 5, "n_structural": 9, "automation_only": false, "max_ne...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -38,6 +38,19 @@ open Batteries Data Spec SymCC Factory +public theorem interpret_uf_lit {εs : SymEntities} {I : Interpretation} {f : UnaryFunction} : + I.WellFormed εs → + f.WellFormed εs → + (f.interpret I).isLiteral +:= by + intro hI hwf + simp only [UnaryFunction.interpret] + split <;> + simp only [Un...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_679dd7e9e3d7_0
994184f0f00c1ba9
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/TPE/PreservesTypeOf.lean
PreservesTypeOf
0
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
10
1
[ { "theorem_name": "partial_eval_preserves_typeof", "depth": 1, "n_commands": 0, "n_lines": 42, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro res env\n cases res with\n | val v ty =>\n simp [TPE.evaluate, Residual.typeOf]\n | var v ty =>\...
[ { "name": "partial_eval_preserves_typeof_set", "text": "private theorem partial_eval_preserves_typeof_set {ls : List Residual} {ty : CedarType} :\n PEPreservesTypeOf (Residual.set ls ty)\n:= by\n intro env h_wt preq pes\n simp only [TPE.evaluate, TPE.set]\n split\n · simp [Residual.typeOf]\n · split\n...
[ { "name": "partial_eval_preserves_typeof", "fan_in": 0, "n_deps_direct": 10, "n_deps_transitive": 10, "n_lines": 51, "n_chars": 1656, "n_subproofs": 0, "n_tactics": 45, "cyclomatic": 9, "n_automation": 7, "n_rewrites": 1, "n_structural": 17, "automation_only": fal...
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...
@@ -223,6 +223,17 @@ . simp [Residual.typeOf] . simp [Residual.typeOf] +private theorem partial_eval_preserves_typeof_set {ls : List Residual} {ty : CedarType} : + PEPreservesTypeOf (Residual.set ls ty) +:= by + intro env h_wt preq pes + simp only [TPE.evaluate, TPE.set] + split + · simp [Residual.ty...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_2d0abe86328b_0
f46a31d6a699d5d6
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Enforcer/Acyclicity.lean
Acyclicity
0
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
4
1
[ { "theorem_name": "swf_implies_interpret_acyclicity", "depth": 1, "n_commands": 0, "n_lines": 20, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have hwt := (compile_wf hwε hok).left\n simp only [interpret_acyclicity hwε.left.right hI hwt hty]\n ha...
[ { "name": "pe_acyclicity_none", "text": "private theorem pe_acyclicity_none {ety : EntityType} {εs : SymEntities} :\n acyclicity (.none (.entity ety)) εs = true\n:= by\n simp only [acyclicity, typeOf_term_none]\n split <;> try rfl\n simp only [pe_isSome_none, pe_implies_false_left]\n\n", "fan_in": 1...
[ { "name": "swf_implies_interpret_acyclicity", "fan_in": 0, "n_deps_direct": 4, "n_deps_transitive": 4, "n_lines": 30, "n_chars": 1287, "n_subproofs": 4, "n_tactics": 21, "cyclomatic": 6, "n_automation": 7, "n_rewrites": 2, "n_structural": 3, "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...
@@ -30,6 +30,13 @@ open Data Spec SymCC Factory +private theorem pe_acyclicity_none {ety : EntityType} {εs : SymEntities} : + acyclicity (.none (.entity ety)) εs = true +:= by + simp only [acyclicity, typeOf_term_none] + split <;> try rfl + simp only [pe_isSome_none, pe_implies_false_left] + private theorem p...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_2d0abe86328b_1
700cb7ee291a0fa4
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Enforcer/Acyclicity.lean
Acyclicity
1
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
4
2
[ { "theorem_name": "swf_implies_interpret_acyclicity", "depth": 1, "n_commands": 0, "n_lines": 20, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have hwt := (compile_wf hwε hok).left\n simp only [interpret_acyclicity hwε.left.right hI hwt hty]\n ha...
[ { "name": "pe_acyclicity_some", "text": "private theorem pe_acyclicity_some {uid : EntityUID} {εs : SymEntities} :\n acyclicity (.some (.entity uid)) εs =\n match εs.ancestorsOfType uid.ty uid.ty with\n | .some f => not (set.member (.entity uid) (app f (.entity uid)))\n | .none => true\n:= by\n simp ...
[ { "name": "interpret_acyclicity_implies_acyclic", "fan_in": 0, "n_deps_direct": 2, "n_deps_transitive": 2, "n_lines": 29, "n_chars": 1541, "n_subproofs": 2, "n_tactics": 18, "cyclomatic": 3, "n_automation": 8, "n_rewrites": 0, "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...
@@ -30,6 +30,16 @@ open Data Spec SymCC Factory +private theorem pe_acyclicity_some {uid : EntityUID} {εs : SymEntities} : + acyclicity (.some (.entity uid)) εs = + match εs.ancestorsOfType uid.ty uid.ty with + | .some f => not (set.member (.entity uid) (app f (.entity uid))) + | .none => true +:= 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_39880e33cbe6_0
eceddfa9fcee89e8
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/Authorization/PolicySlice.lean
PolicySlice
0
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
2
1
[ { "theorem_name": "satisfiedPolicies_eq_for_sound_policy_slice", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro h\n unfold satisfiedPolicies\n rw [Set.make_make_eqv]\n exact sound_policy_slice_is_eq...
[ { "name": "sound_policy_slice_is_equisatisfied", "text": "theorem sound_policy_slice_is_equisatisfied (effect : Effect) {request : Request} {entities : Entities} {slice policies : Policies} :\n IsSoundPolicySlice request entities slice policies →\n slice.filterMap (satisfiedWithEffect effect · request ent...
[ { "name": "satisfiedPolicies_eq_for_sound_policy_slice", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 10, "n_chars": 424, "n_subproofs": 0, "n_tactics": 5, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 2, "n_structural": 2, "automation_o...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -64,10 +64,37 @@ def IsSoundBoundAnalysis (ba : BoundAnalysis) : Prop := ∀ (policy : Policy), IsSoundPolicyBound (ba policy) policy +theorem sound_policy_slice_is_equisatisfied (effect : Effect) {request : Request} {entities : Entities} {slice policies : Policies} : + IsSoundPolicySlice request entities slice...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_39880e33cbe6_1
630a7b1e52f80dd0
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/Authorization/PolicySlice.lean
PolicySlice
1
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
2
1
[ { "theorem_name": "errorPolicies_eq_for_sound_policy_slice", "depth": 1, "n_commands": 0, "n_lines": 7, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro h\n repeat rw [alternate_errorPolicies_equiv_errorPolicies]\n unfold alternateErrorPolicies...
[ { "name": "sound_policy_slice_is_equierror", "text": "theorem sound_policy_slice_is_equierror {request : Request} {entities : Entities} {slice policies : Policies} :\n IsSoundPolicySlice request entities slice policies →\n slice.filter (hasError · request entities) ≡ policies.filter (hasError · request en...
[ { "name": "errorPolicies_eq_for_sound_policy_slice", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 12, "n_chars": 455, "n_subproofs": 0, "n_tactics": 7, "cyclomatic": 2, "n_automation": 0, "n_rewrites": 3, "n_structural": 3, "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...
@@ -64,10 +64,35 @@ def IsSoundBoundAnalysis (ba : BoundAnalysis) : Prop := ∀ (policy : Policy), IsSoundPolicyBound (ba policy) policy +theorem sound_policy_slice_is_equierror {request : Request} {entities : Entities} {slice policies : Policies} : + IsSoundPolicySlice request entities slice policies → + slice.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_57785de4755c_0
ff8e52a41f2c1075
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
0
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
2
[ { "theorem_name": "compile_lit_wf", "depth": 1, "n_commands": 0, "n_lines": 19, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n rw [compile.eq_def] at hok\n simp only [compilePrim] at hok\n cases p <;>\n simp only [Except.ok.injEq, someOf] at * <;>...
[ { "name": "typeOf_term_some_is_option", "text": "private theorem typeOf_term_some_is_option {t : Term} :\n ∃ ty, Term.typeOf (Term.some t) = TermType.option ty\n:= by\n exists t.typeOf\n simp\n\n", "fan_in": 2, "n_lines": 7, "n_chars": 145, "n_subproofs": 0, "n_tactics": 3, "cyclo...
[ { "name": "compile_lit_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 24, "n_chars": 960, "n_subproofs": 0, "n_tactics": 22, "cyclomatic": 7, "n_automation": 7, "n_rewrites": 3, "n_structural": 2, "automation_only": false, "max_nestin...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -45,10 +45,34 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +private theorem typeOf_term_some_is_option {t : Term} : + ∃ ty, Term.typeOf (Term.some t) = TermType.option ty +:= by + exists t.typeOf + simp + private theorem compile_lit_wf {p: Prim} {εnv : SymEnv} ...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_1
026a753686327ae5
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
1
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
2
[ { "theorem_name": "compile_lit_wf", "depth": 1, "n_commands": 0, "n_lines": 19, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n rw [compile.eq_def] at hok\n simp only [compilePrim] at hok\n cases p <;>\n simp only [Except.ok.injEq, someOf] at * <;>...
[ { "name": "typeOf_term_some_is_option", "text": "private theorem typeOf_term_some_is_option {t : Term} :\n ∃ ty, Term.typeOf (Term.some t) = TermType.option ty\n:= by\n exists t.typeOf\n simp\n\n", "fan_in": 2, "n_lines": 7, "n_chars": 145, "n_subproofs": 0, "n_tactics": 3, "cyclo...
[ { "name": "compile_var_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 19, "n_chars": 653, "n_subproofs": 0, "n_tactics": 20, "cyclomatic": 10, "n_automation": 5, "n_rewrites": 2, "n_structural": 1, "automation_only": false, "max_nesti...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -45,11 +45,29 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +private theorem typeOf_term_some_is_option {t : Term} : + ∃ ty, Term.typeOf (Term.some t) = TermType.option ty +:= by + exists t.typeOf + simp + private theorem compile_var_wf {v : Var} {εnv : SymEnv} ...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_2
153a9ce24ab6d052
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
2
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
2
[ { "theorem_name": "compileHasAttr_wf", "depth": 1, "n_commands": 0, "n_lines": 13, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n replace ⟨t₂, rty, hok, ha, ha'⟩ := compileHasAttr_ok_implies hok\n split at ha' <;> subst ha'\n case h_1 heq =>\n h...
[ { "name": "compileAttrsOf_wf", "text": "public theorem compileAttrsOf_wf {t t₁: Term} {εs : SymEntities}\n (hwε : εs.WellFormed)\n (hw₁ : Term.WellFormed εs t₁)\n (hok : compileAttrsOf t₁ εs = Except.ok t) :\n t.WellFormed εs ∧\n ∃ rty, t.typeOf = .record rty ∧\n (t₁.typeOf = .record rty ∨\n ∃ ety ...
[ { "name": "compileHasAttr_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 20, "n_chars": 761, "n_subproofs": 1, "n_tactics": 15, "cyclomatic": 4, "n_automation": 3, "n_rewrites": 2, "n_structural": 3, "automation_only": false, "max_nes...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -45,12 +45,55 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +public theorem compileAttrsOf_wf {t t₁: Term} {εs : SymEntities} + (hwε : εs.WellFormed) + (hw₁ : Term.WellFormed εs t₁) + (hok : compileAttrsOf t₁ εs = Except.ok t) : + t.WellFormed εs ∧ + ∃ rty, 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_57785de4755c_3
ac9abfd34a336645
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
3
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
2
[ { "theorem_name": "compileHasAttr_wf", "depth": 1, "n_commands": 0, "n_lines": 13, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n replace ⟨t₂, rty, hok, ha, ha'⟩ := compileHasAttr_ok_implies hok\n split at ha' <;> subst ha'\n case h_1 heq =>\n h...
[ { "name": "compileAttrsOf_wf", "text": "public theorem compileAttrsOf_wf {t t₁: Term} {εs : SymEntities}\n (hwε : εs.WellFormed)\n (hw₁ : Term.WellFormed εs t₁)\n (hok : compileAttrsOf t₁ εs = Except.ok t) :\n t.WellFormed εs ∧\n ∃ rty, t.typeOf = .record rty ∧\n (t₁.typeOf = .record rty ∨\n ∃ ety ...
[ { "name": "compile_hasAttr_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 2, "n_lines": 18, "n_chars": 709, "n_subproofs": 3, "n_tactics": 11, "cyclomatic": 1, "n_automation": 1, "n_rewrites": 1, "n_structural": 2, "automation_only": false, "max_ne...
2
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -45,12 +45,55 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +public theorem compileAttrsOf_wf {t t₁: Term} {εs : SymEntities} + (hwε : εs.WellFormed) + (hw₁ : Term.WellFormed εs t₁) + (hok : compileAttrsOf t₁ εs = Except.ok t) : + t.WellFormed εs ∧ + ∃ rty, 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_57785de4755c_4
22c986f0b3198db8
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
4
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
2
[ { "theorem_name": "compileHasAttr_wf", "depth": 1, "n_commands": 0, "n_lines": 13, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n replace ⟨t₂, rty, hok, ha, ha'⟩ := compileHasAttr_ok_implies hok\n split at ha' <;> subst ha'\n case h_1 heq =>\n h...
[ { "name": "compileAttrsOf_wf", "text": "public theorem compileAttrsOf_wf {t t₁: Term} {εs : SymEntities}\n (hwε : εs.WellFormed)\n (hw₁ : Term.WellFormed εs t₁)\n (hok : compileAttrsOf t₁ εs = Except.ok t) :\n t.WellFormed εs ∧\n ∃ rty, t.typeOf = .record rty ∧\n (t₁.typeOf = .record rty ∨\n ∃ ety ...
[ { "name": "compileGetAttr_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 20, "n_chars": 738, "n_subproofs": 1, "n_tactics": 15, "cyclomatic": 4, "n_automation": 2, "n_rewrites": 2, "n_structural": 4, "automation_only": false, "max_nes...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -45,12 +45,55 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +public theorem compileAttrsOf_wf {t t₁: Term} {εs : SymEntities} + (hwε : εs.WellFormed) + (hw₁ : Term.WellFormed εs t₁) + (hok : compileAttrsOf t₁ εs = Except.ok t) : + t.WellFormed εs ∧ + ∃ rty, 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_57785de4755c_5
6aced44492788447
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
5
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
2
[ { "theorem_name": "compileHasAttr_wf", "depth": 1, "n_commands": 0, "n_lines": 13, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n replace ⟨t₂, rty, hok, ha, ha'⟩ := compileHasAttr_ok_implies hok\n split at ha' <;> subst ha'\n case h_1 heq =>\n h...
[ { "name": "compileAttrsOf_wf", "text": "public theorem compileAttrsOf_wf {t t₁: Term} {εs : SymEntities}\n (hwε : εs.WellFormed)\n (hw₁ : Term.WellFormed εs t₁)\n (hok : compileAttrsOf t₁ εs = Except.ok t) :\n t.WellFormed εs ∧\n ∃ rty, t.typeOf = .record rty ∧\n (t₁.typeOf = .record rty ∨\n ∃ ety ...
[ { "name": "compile_getAttr_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 2, "n_lines": 18, "n_chars": 717, "n_subproofs": 3, "n_tactics": 11, "cyclomatic": 1, "n_automation": 1, "n_rewrites": 1, "n_structural": 2, "automation_only": false, "max_ne...
2
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -45,12 +45,55 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +public theorem compileAttrsOf_wf {t t₁: Term} {εs : SymEntities} + (hwε : εs.WellFormed) + (hw₁ : Term.WellFormed εs t₁) + (hok : compileAttrsOf t₁ εs = Except.ok t) : + t.WellFormed εs ∧ + ∃ rty, 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_57785de4755c_6
4ca75d6e5031c6d9
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
6
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
1
[ { "theorem_name": "compileApp₁_wf", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have ⟨hwf, hty⟩ := compileApp₁_wf_types hw₁ hok\n simp only [hwf, true_and]\n split at hty <;>\n simp only [hty, TermType...
[ { "name": "compileApp₁_wf_types", "text": "public theorem compileApp₁_wf_types {op₁ : UnaryOp} {t t₁: Term} {εs : SymEntities}\n (hw₁ : Term.WellFormed εs t₁)\n (hok : compileApp₁ op₁ t₁ = Except.ok t) :\n t.WellFormed εs ∧\n match op₁ with\n | .neg => t.typeOf = .option (.bitvec 64)\n | _ => t.ty...
[ { "name": "compileApp₁_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 11, "n_chars": 392, "n_subproofs": 1, "n_tactics": 6, "cyclomatic": 3, "n_automation": 2, "n_rewrites": 0, "n_structural": 0, "automation_only": false, "max_nesting...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -45,11 +45,49 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +public theorem compileApp₁_wf_types {op₁ : UnaryOp} {t t₁: Term} {εs : SymEntities} + (hw₁ : Term.WellFormed εs t₁) + (hok : compileApp₁ op₁ t₁ = Except.ok t) : + t.WellFormed εs ∧ + match op₁ with + ...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_7
becd7e659715d2ae
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
7
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
1
[ { "theorem_name": "compileApp₁_wf", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have ⟨hwf, hty⟩ := compileApp₁_wf_types hw₁ hok\n simp only [hwf, true_and]\n split at hty <;>\n simp only [hty, TermType...
[ { "name": "compileApp₁_wf_types", "text": "public theorem compileApp₁_wf_types {op₁ : UnaryOp} {t t₁: Term} {εs : SymEntities}\n (hw₁ : Term.WellFormed εs t₁)\n (hok : compileApp₁ op₁ t₁ = Except.ok t) :\n t.WellFormed εs ∧\n match op₁ with\n | .neg => t.typeOf = .option (.bitvec 64)\n | _ => t.ty...
[ { "name": "compile_unaryApp_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 2, "n_lines": 16, "n_chars": 712, "n_subproofs": 3, "n_tactics": 9, "cyclomatic": 1, "n_automation": 1, "n_rewrites": 1, "n_structural": 0, "automation_only": false, "max_ne...
2
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -45,11 +45,49 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +public theorem compileApp₁_wf_types {op₁ : UnaryOp} {t t₁: Term} {εs : SymEntities} + (hw₁ : Term.WellFormed εs t₁) + (hok : compileApp₁ op₁ t₁ = Except.ok t) : + t.WellFormed εs ∧ + match op₁ with + ...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_8
b2e1121dc5083f88
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
8
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
1
[ { "theorem_name": "compileInₑ_wf", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have heq := compileInₑ.isEq_wf hw₁ hw₂\n have hin := compileInₑ.isIn_wf hwε hw₁ hty₁ hw₂ hty₂ ha\n rw [compileInₑ_def, comp...
[ { "name": "compileInₑ.isEq_wf", "text": "public theorem compileInₑ.isEq_wf {t₁ t₂ : Term} {εs : SymEntities}\n (hw₁ : Term.WellFormed εs t₁)\n (hw₂ : Term.WellFormed εs t₂) :\n (SymCC.compileInₑ.isEq t₁ t₂).WellFormed εs ∧ (SymCC.compileInₑ.isEq t₁ t₂).typeOf = .bool\n:= by\n rw [SymCC.compileInₑ.isEq...
[ { "name": "compileInₑ_wf", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 2, "n_lines": 15, "n_chars": 739, "n_subproofs": 2, "n_tactics": 5, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 1, "n_structural": 1, "automation_only": false, "max_nesting"...
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...
@@ -45,6 +45,17 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +public theorem compileInₑ.isEq_wf {t₁ t₂ : Term} {εs : SymEntities} + (hw₁ : Term.WellFormed εs t₁) + (hw₂ : Term.WellFormed εs t₂) : + (SymCC.compileInₑ.isEq t₁ t₂).WellFormed εs ∧ (SymCC.compileInₑ.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_57785de4755c_9
b561e4dc1c427791
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
9
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
1
[ { "theorem_name": "compileInₛ_wf", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have hin₁ := compileInₛ.isIn₁_wf hw₁ hw₂\n have hin₂ := compileInₛ.isIn₂_wf hwε hw₁ hty₁ hw₂ hty₂ ha\n rw [compileInₛ_def, ...
[ { "name": "compileInₛ.isIn₁_wf", "text": "public theorem compileInₛ.isIn₁_wf {t ts : Term} {εs : SymEntities}\n (hw₁ : Term.WellFormed εs t)\n (hw₂ : Term.WellFormed εs ts) :\n (SymCC.compileInₛ.isIn₁ t ts).WellFormed εs ∧ (SymCC.compileInₛ.isIn₁ t ts).typeOf = .bool\n:= by\n rw [SymCC.compileInₛ.isIn...
[ { "name": "compileInₛ_wf", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 2, "n_lines": 15, "n_chars": 751, "n_subproofs": 2, "n_tactics": 5, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 1, "n_structural": 1, "automation_only": false, "max_nesting"...
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...
@@ -45,6 +45,17 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +public theorem compileInₛ.isIn₁_wf {t ts : Term} {εs : SymEntities} + (hw₁ : Term.WellFormed εs t) + (hw₂ : Term.WellFormed εs ts) : + (SymCC.compileInₛ.isIn₁ t ts).WellFormed εs ∧ (SymCC.compileInₛ.is...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_10
475346d91cad98d6
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
10
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
1
[ { "theorem_name": "compileInₑ_wf", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have heq := compileInₑ.isEq_wf hw₁ hw₂\n have hin := compileInₑ.isIn_wf hwε hw₁ hty₁ hw₂ hty₂ ha\n rw [compileInₑ_def, comp...
[ { "name": "compileInₑ.isEq_wf", "text": "public theorem compileInₑ.isEq_wf {t₁ t₂ : Term} {εs : SymEntities}\n (hw₁ : Term.WellFormed εs t₁)\n (hw₂ : Term.WellFormed εs t₂) :\n (SymCC.compileInₑ.isEq t₁ t₂).WellFormed εs ∧ (SymCC.compileInₑ.isEq t₁ t₂).typeOf = .bool\n:= by\n rw [SymCC.compileInₑ.isEq...
[ { "name": "compileApp₂_wf_types", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 6, "n_lines": 102, "n_chars": 5730, "n_subproofs": 35, "n_tactics": 94, "cyclomatic": 11, "n_automation": 22, "n_rewrites": 2, "n_structural": 8, "automation_only": false, ...
6
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -45,6 +45,17 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +public theorem compileInₑ.isEq_wf {t₁ t₂ : Term} {εs : SymEntities} + (hw₁ : Term.WellFormed εs t₁) + (hw₂ : Term.WellFormed εs t₂) : + (SymCC.compileInₑ.isEq t₁ t₂).WellFormed εs ∧ (SymCC.compileInₑ.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_57785de4755c_11
18e11e3d9efd2151
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
11
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
1
[ { "theorem_name": "compileInₑ_wf", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have heq := compileInₑ.isEq_wf hw₁ hw₂\n have hin := compileInₑ.isIn_wf hwε hw₁ hty₁ hw₂ hty₂ ha\n rw [compileInₑ_def, comp...
[ { "name": "compileInₑ.isEq_wf", "text": "public theorem compileInₑ.isEq_wf {t₁ t₂ : Term} {εs : SymEntities}\n (hw₁ : Term.WellFormed εs t₁)\n (hw₂ : Term.WellFormed εs t₂) :\n (SymCC.compileInₑ.isEq t₁ t₂).WellFormed εs ∧ (SymCC.compileInₑ.isEq t₁ t₂).typeOf = .bool\n:= by\n rw [SymCC.compileInₑ.isEq...
[ { "name": "compileApp₂_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 7, "n_lines": 15, "n_chars": 575, "n_subproofs": 1, "n_tactics": 7, "cyclomatic": 2, "n_automation": 3, "n_rewrites": 0, "n_structural": 0, "automation_only": false, "max_nesting...
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...
@@ -45,6 +45,17 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +public theorem compileInₑ.isEq_wf {t₁ t₂ : Term} {εs : SymEntities} + (hw₁ : Term.WellFormed εs t₁) + (hw₂ : Term.WellFormed εs t₂) : + (SymCC.compileInₑ.isEq t₁ t₂).WellFormed εs ∧ (SymCC.compileInₑ.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_57785de4755c_12
2d05736a363b27c8
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
12
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
1
[ { "theorem_name": "compileInₑ_wf", "depth": 1, "n_commands": 0, "n_lines": 5, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n have heq := compileInₑ.isEq_wf hw₁ hw₂\n have hin := compileInₑ.isIn_wf hwε hw₁ hty₁ hw₂ hty₂ ha\n rw [compileInₑ_def, comp...
[ { "name": "compileInₑ.isEq_wf", "text": "public theorem compileInₑ.isEq_wf {t₁ t₂ : Term} {εs : SymEntities}\n (hw₁ : Term.WellFormed εs t₁)\n (hw₂ : Term.WellFormed εs t₂) :\n (SymCC.compileInₑ.isEq t₁ t₂).WellFormed εs ∧ (SymCC.compileInₑ.isEq t₁ t₂).typeOf = .bool\n:= by\n rw [SymCC.compileInₑ.isEq...
[ { "name": "compile_binaryApp_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 8, "n_lines": 20, "n_chars": 1009, "n_subproofs": 5, "n_tactics": 12, "cyclomatic": 1, "n_automation": 1, "n_rewrites": 1, "n_structural": 0, "automation_only": false, "max...
8
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -45,6 +45,17 @@ compile x εnv = .ok t → (t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty) +public theorem compileInₑ.isEq_wf {t₁ t₂ : Term} {εs : SymEntities} + (hw₁ : Term.WellFormed εs t₁) + (hw₂ : Term.WellFormed εs t₂) : + (SymCC.compileInₑ.isEq t₁ t₂).WellFormed εs ∧ (SymCC.compileInₑ.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_57785de4755c_13
4eb33e958afbfce3
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
13
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
1
[ { "theorem_name": "compileCall_wf", "depth": 1, "n_commands": 0, "n_lines": 4, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n replace ⟨hwf, hty⟩ := compileCall_wf_types hwf hok\n simp only [hwf, true_and]\n split at hty <;> simp only [hty, TermType...
[ { "name": "compileCall_wf_types", "text": "public theorem compileCall_wf_types {f : ExtFun} {ts : List Term} {εs : SymEntities} {t : Term}\n (hwf : ∀ t ∈ ts, Term.WellFormed εs t)\n (hok : compileCall f ts = Except.ok t) :\n t.WellFormed εs ∧\n match f with\n | .decimal => t.typeOf = .option (...
[ { "name": "compileCall_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 10, "n_chars": 396, "n_subproofs": 0, "n_tactics": 5, "cyclomatic": 3, "n_automation": 2, "n_rewrites": 0, "n_structural": 0, "automation_only": false, "max_nesting...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -99,11 +99,80 @@ exact Term.WellFormed.some_wf (Term.WellFormed.prim_wf TermPrim.WellFormed.ext_wf) )) +public theorem compileCall_wf_types {f : ExtFun} {ts : List Term} {εs : SymEntities} {t : Term} + (hwf : ∀ t ∈ ts, Term.WellFormed εs t) + (hok : compileCall f ts = Except.ok t) : + t.WellFormed εs ∧ +...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_14
9a09c80c32751ba2
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
14
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
1
[ { "theorem_name": "compileCall_wf", "depth": 1, "n_commands": 0, "n_lines": 4, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n replace ⟨hwf, hty⟩ := compileCall_wf_types hwf hok\n simp only [hwf, true_and]\n split at hty <;> simp only [hty, TermType...
[ { "name": "compileCall_wf_types", "text": "public theorem compileCall_wf_types {f : ExtFun} {ts : List Term} {εs : SymEntities} {t : Term}\n (hwf : ∀ t ∈ ts, Term.WellFormed εs t)\n (hok : compileCall f ts = Except.ok t) :\n t.WellFormed εs ∧\n match f with\n | .decimal => t.typeOf = .option (...
[ { "name": "compile_call_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 2, "n_lines": 14, "n_chars": 569, "n_subproofs": 0, "n_tactics": 7, "cyclomatic": 1, "n_automation": 1, "n_rewrites": 0, "n_structural": 2, "automation_only": false, "max_nestin...
2
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -99,11 +99,80 @@ exact Term.WellFormed.some_wf (Term.WellFormed.prim_wf TermPrim.WellFormed.ext_wf) )) +public theorem compileCall_wf_types {f : ExtFun} {ts : List Term} {εs : SymEntities} {t : Term} + (hwf : ∀ t ∈ ts, Term.WellFormed εs t) + (hok : compileCall f ts = Except.ok t) : + t.WellFormed εs ∧ +...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_15
c7bbbe622fa819ff
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
15
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
1
[ { "theorem_name": "compile_wf", "depth": 1, "n_commands": 0, "n_lines": 47, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro hwf hok\n match x with\n | .lit _ => exact compile_lit_wf hok\n | .var v => exact compile_var_wf h...
[ { "name": "compile_var_wf", "text": "private theorem compile_var_wf {v : Var} {εnv : SymEnv} {t : Term}\n (hwf : SymEnv.WellFormedFor εnv (Expr.var v))\n (hok : compile (Expr.var v) εnv = Except.ok t) :\n t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty\n:= by\n simp [SymEnv.WellFormedFor, SymEnv...
[ { "name": "compile_wf", "fan_in": 1, "n_deps_direct": 12, "n_deps_transitive": 28, "n_lines": 53, "n_chars": 1852, "n_subproofs": 16, "n_tactics": 47, "cyclomatic": 2, "n_automation": 0, "n_rewrites": 0, "n_structural": 19, "automation_only": false, "max_nesti...
28
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a 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,6 +74,24 @@ simp only [typeOf_term_some_is_option, and_true] exact Term.WellFormed.some_wf (Term.WellFormed.prim_wf (TermPrim.WellFormed.entity_wf h)) +private theorem compile_var_wf {v : Var} {εnv : SymEnv} {t : Term} + (hwf : SymEnv.WellFormedFor εnv (Expr.var v)) + (hok : compile (Expr.var v) ε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_57785de4755c_16
16cb096d70210d1f
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
16
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
1
[ { "theorem_name": "compile_wf", "depth": 1, "n_commands": 0, "n_lines": 47, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro hwf hok\n match x with\n | .lit _ => exact compile_lit_wf hok\n | .var v => exact compile_var_wf h...
[ { "name": "compile_var_wf", "text": "private theorem compile_var_wf {v : Var} {εnv : SymEnv} {t : Term}\n (hwf : SymEnv.WellFormedFor εnv (Expr.var v))\n (hok : compile (Expr.var v) εnv = Except.ok t) :\n t.WellFormed εnv.entities ∧ ∃ ty, t.typeOf = .option ty\n:= by\n simp [SymEnv.WellFormedFor, SymEnv...
[ { "name": "compile_option_get_wf", "fan_in": 0, "n_deps_direct": 1, "n_deps_transitive": 29, "n_lines": 15, "n_chars": 450, "n_subproofs": 1, "n_tactics": 5, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 0, "n_structural": 2, "automation_only": false, "max...
29
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a 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,6 +74,24 @@ simp only [typeOf_term_some_is_option, and_true] exact Term.WellFormed.some_wf (Term.WellFormed.prim_wf (TermPrim.WellFormed.entity_wf h)) +private theorem compile_var_wf {v : Var} {εnv : SymEnv} {t : Term} + (hwf : SymEnv.WellFormedFor εnv (Expr.var v)) + (hok : compile (Expr.var v) ε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_57785de4755c_17
ff8e89c37a214bf3
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
17
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
6
[ { "theorem_name": "evaluate_and_or_wf", "depth": 1, "n_commands": 0, "n_lines": 25, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [Result.as] at hok\n simp_do_let (evaluate x₁ env.request env.entities) as hok₁ at hok\n rename_i v₁\n sim...
[ { "name": "value_bool_wf", "text": "private theorem value_bool_wf {b : Bool} {es : Entities} :\n Value.WellFormed es (Value.prim (.bool b))\n:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed])\n\n", "fan_in": 6, "n_lines": 5, "n_chars": 175, "n_subproofs": 0, "n_tactic...
[ { "name": "evaluate_and_or_wf", "fan_in": 2, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 35, "n_chars": 1315, "n_subproofs": 0, "n_tactics": 29, "cyclomatic": 10, "n_automation": 8, "n_rewrites": 3, "n_structural": 4, "automation_only": false, "max_...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -105,6 +105,10 @@ evaluate x env.request env.entities = .ok v → v.WellFormed env.entities +private theorem value_bool_wf {b : Bool} {es : Entities} : + Value.WellFormed es (Value.prim (.bool b)) +:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed]) + private theorem evaluate_and_or_wf ...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_18
0ef7733bd9ecf5d5
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
18
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
6
[ { "theorem_name": "evaluate_and_or_wf", "depth": 1, "n_commands": 0, "n_lines": 25, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [Result.as] at hok\n simp_do_let (evaluate x₁ env.request env.entities) as hok₁ at hok\n rename_i v₁\n sim...
[ { "name": "value_bool_wf", "text": "private theorem value_bool_wf {b : Bool} {es : Entities} :\n Value.WellFormed es (Value.prim (.bool b))\n:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed])\n\n", "fan_in": 6, "n_lines": 5, "n_chars": 175, "n_subproofs": 0, "n_tactic...
[ { "name": "evaluate_and_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 2, "n_lines": 9, "n_chars": 297, "n_subproofs": 0, "n_tactics": 4, "cyclomatic": 1, "n_automation": 1, "n_rewrites": 1, "n_structural": 1, "automation_only": false, "max_nesting...
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...
@@ -105,6 +105,10 @@ evaluate x env.request env.entities = .ok v → v.WellFormed env.entities +private theorem value_bool_wf {b : Bool} {es : Entities} : + Value.WellFormed es (Value.prim (.bool b)) +:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed]) + private theorem evaluate_and_or_wf ...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_19
bfc64262eb97a056
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
19
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
6
[ { "theorem_name": "evaluate_and_or_wf", "depth": 1, "n_commands": 0, "n_lines": 25, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [Result.as] at hok\n simp_do_let (evaluate x₁ env.request env.entities) as hok₁ at hok\n rename_i v₁\n sim...
[ { "name": "value_bool_wf", "text": "private theorem value_bool_wf {b : Bool} {es : Entities} :\n Value.WellFormed es (Value.prim (.bool b))\n:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed])\n\n", "fan_in": 6, "n_lines": 5, "n_chars": 175, "n_subproofs": 0, "n_tactic...
[ { "name": "evaluate_or_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 2, "n_lines": 8, "n_chars": 256, "n_subproofs": 0, "n_tactics": 3, "cyclomatic": 1, "n_automation": 0, "n_rewrites": 1, "n_structural": 1, "automation_only": false, "max_nesting"...
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...
@@ -105,6 +105,10 @@ evaluate x env.request env.entities = .ok v → v.WellFormed env.entities +private theorem value_bool_wf {b : Bool} {es : Entities} : + Value.WellFormed es (Value.prim (.bool b)) +:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed]) + private theorem evaluate_and_or_wf ...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_20
c5f2addd7eae8321
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
20
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
6
[ { "theorem_name": "evaluate_and_or_wf", "depth": 1, "n_commands": 0, "n_lines": 25, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [Result.as] at hok\n simp_do_let (evaluate x₁ env.request env.entities) as hok₁ at hok\n rename_i v₁\n sim...
[ { "name": "value_bool_wf", "text": "private theorem value_bool_wf {b : Bool} {es : Entities} :\n Value.WellFormed es (Value.prim (.bool b))\n:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed])\n\n", "fan_in": 6, "n_lines": 5, "n_chars": 175, "n_subproofs": 0, "n_tactic...
[ { "name": "evaluate_hasAttr_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 15, "n_chars": 520, "n_subproofs": 0, "n_tactics": 10, "cyclomatic": 2, "n_automation": 3, "n_rewrites": 2, "n_structural": 1, "automation_only": false, "max_n...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -105,10 +105,23 @@ evaluate x env.request env.entities = .ok v → v.WellFormed env.entities +private theorem value_bool_wf {b : Bool} {es : Entities} : + Value.WellFormed es (Value.prim (.bool b)) +:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed]) + private theorem evaluate_hasAttr_w...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_21
1d8e427c9ffcf0ee
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
21
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
1
[ { "theorem_name": "evaluate_getAttr_wf", "depth": 1, "n_commands": 0, "n_lines": 27, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n rw [evaluate.eq_def] at hok\n simp only [getAttr, attrsOf] at hok\n simp_do_let (evaluate x env.request env.entities...
[ { "name": "value_record_wf_implies_attr_value_wf", "text": "private theorem value_record_wf_implies_attr_value_wf {r : Map Attr Value} {a : Attr} {v : Value} {es : Entities} :\n Value.WellFormed es (Value.record r) →\n Map.find? r a = some v →\n Value.WellFormed es v\n:= by\n intro hwf hf\n cases hwf\n...
[ { "name": "evaluate_getAttr_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 34, "n_chars": 1245, "n_subproofs": 0, "n_tactics": 27, "cyclomatic": 2, "n_automation": 7, "n_rewrites": 2, "n_structural": 4, "automation_only": false, "max_...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -105,12 +105,48 @@ evaluate x env.request env.entities = .ok v → v.WellFormed env.entities +private theorem value_record_wf_implies_attr_value_wf {r : Map Attr Value} {a : Attr} {v : Value} {es : Entities} : + Value.WellFormed es (Value.record r) → + Map.find? r a = some v → + Value.WellFormed es v +:...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_22
181edbb2050fd5ee
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
22
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
2
[ { "theorem_name": "intOrErr_ok_wf", "depth": 1, "n_commands": 0, "n_lines": 6, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n intro hok\n simp only [intOrErr] at hok\n split at hok <;> simp only [Except.ok.injEq, reduceCtorEq] at hok\n subst hok\n...
[ { "name": "value_int_wf", "text": "private theorem value_int_wf {i : Int64} {es : Entities} :\n Value.WellFormed es (Value.prim (.int i))\n:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed])\n\n", "fan_in": 2, "n_lines": 5, "n_chars": 174, "n_subproofs": 0, "n_tactics"...
[ { "name": "intOrErr_ok_wf", "fan_in": 2, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 10, "n_chars": 283, "n_subproofs": 0, "n_tactics": 7, "cyclomatic": 3, "n_automation": 2, "n_rewrites": 1, "n_structural": 2, "automation_only": false, "max_nesting...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -105,9 +105,18 @@ evaluate x env.request env.entities = .ok v → v.WellFormed env.entities +private theorem value_int_wf {i : Int64} {es : Entities} : + Value.WellFormed es (Value.prim (.int i)) +:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed]) + private theorem intOrErr_ok_wf {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_57785de4755c_23
b140e4bb81365c76
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
23
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
6
[ { "theorem_name": "evaluate_and_or_wf", "depth": 1, "n_commands": 0, "n_lines": 25, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [Result.as] at hok\n simp_do_let (evaluate x₁ env.request env.entities) as hok₁ at hok\n rename_i v₁\n sim...
[ { "name": "value_bool_wf", "text": "private theorem value_bool_wf {b : Bool} {es : Entities} :\n Value.WellFormed es (Value.prim (.bool b))\n:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed])\n\n", "fan_in": 6, "n_lines": 5, "n_chars": 175, "n_subproofs": 0, "n_tactic...
[ { "name": "evaluate_unaryApp_wf", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 3, "n_lines": 15, "n_chars": 514, "n_subproofs": 0, "n_tactics": 11, "cyclomatic": 4, "n_automation": 2, "n_rewrites": 2, "n_structural": 2, "automation_only": false, "max_...
3
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -105,6 +105,10 @@ evaluate x env.request env.entities = .ok v → v.WellFormed env.entities +private theorem value_bool_wf {b : Bool} {es : Entities} : + Value.WellFormed es (Value.prim (.bool b)) +:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed]) + private theorem value_int_wf {i : 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_57785de4755c_24
a1121c7bf42da39d
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
24
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
6
[ { "theorem_name": "evaluate_and_or_wf", "depth": 1, "n_commands": 0, "n_lines": 25, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [Result.as] at hok\n simp_do_let (evaluate x₁ env.request env.entities) as hok₁ at hok\n rename_i v₁\n sim...
[ { "name": "value_bool_wf", "text": "private theorem value_bool_wf {b : Bool} {es : Entities} :\n Value.WellFormed es (Value.prim (.bool b))\n:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed])\n\n", "fan_in": 6, "n_lines": 5, "n_chars": 175, "n_subproofs": 0, "n_tactic...
[ { "name": "inₛ_wf", "fan_in": 1, "n_deps_direct": 1, "n_deps_transitive": 1, "n_lines": 11, "n_chars": 343, "n_subproofs": 0, "n_tactics": 7, "cyclomatic": 1, "n_automation": 2, "n_rewrites": 1, "n_structural": 2, "automation_only": false, "max_nesting": 2 }...
1
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -105,9 +105,19 @@ evaluate x env.request env.entities = .ok v → v.WellFormed env.entities +private theorem value_bool_wf {b : Bool} {es : Entities} : + Value.WellFormed es (Value.prim (.bool b)) +:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed]) + private theorem inₛ_wf {uid : Entit...
{ "repo": "cedar-spec", "git_repo": "github.com/cedar-policy/cedar-spec", "revision": "795ddccff61c83aeb5d6a7ccd22abf5e00164c73", "lean_toolchain": "leanprover/lean4:v4.31.0", "proof_assistant": "lean", "ablator": "ablators/lean (corollary-delete-lemmas-leaves-all)", "ablator_flags": [ "--corollary-de...
ablate_57785de4755c_25
64a76302d64330fe
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
25
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
6
[ { "theorem_name": "evaluate_and_or_wf", "depth": 1, "n_commands": 0, "n_lines": 25, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [Result.as] at hok\n simp_do_let (evaluate x₁ env.request env.entities) as hok₁ at hok\n rename_i v₁\n sim...
[ { "name": "value_bool_wf", "text": "private theorem value_bool_wf {b : Bool} {es : Entities} :\n Value.WellFormed es (Value.prim (.bool b))\n:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed])\n\n", "fan_in": 6, "n_lines": 5, "n_chars": 175, "n_subproofs": 0, "n_tactic...
[ { "name": "evaluate_binaryApp_wf", "fan_in": 1, "n_deps_direct": 3, "n_deps_transitive": 4, "n_lines": 32, "n_chars": 1312, "n_subproofs": 0, "n_tactics": 27, "cyclomatic": 4, "n_automation": 5, "n_rewrites": 5, "n_structural": 5, "automation_only": false, "ma...
4
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -105,6 +105,10 @@ evaluate x env.request env.entities = .ok v → v.WellFormed env.entities +private theorem value_bool_wf {b : Bool} {es : Entities} : + Value.WellFormed es (Value.prim (.bool b)) +:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed]) + private theorem value_int_wf {i : 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_57785de4755c_26
eefe53df8045c8fb
lean
lean
github.com/cedar-policy/cedar-spec
795ddccff61c83aeb5d6a7ccd22abf5e00164c73
cedar-lean/Cedar/Thm/SymCC/Compiler/WF.lean
WF
26
lemma_delete
null
null
false
0.5
1
1
false
0
inf
0
inf
42
47
6
[ { "theorem_name": "evaluate_and_or_wf", "depth": 1, "n_commands": 0, "n_lines": 25, "is_leaf": true, "centrality": 0, "method": "deleted-dep", "proof_text": " by\n simp only [Result.as] at hok\n simp_do_let (evaluate x₁ env.request env.entities) as hok₁ at hok\n rename_i v₁\n sim...
[ { "name": "value_bool_wf", "text": "private theorem value_bool_wf {b : Bool} {es : Entities} :\n Value.WellFormed es (Value.prim (.bool b))\n:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed])\n\n", "fan_in": 6, "n_lines": 5, "n_chars": 175, "n_subproofs": 0, "n_tactic...
[ { "name": "evaluate_call_wf", "fan_in": 1, "n_deps_direct": 2, "n_deps_transitive": 2, "n_lines": 20, "n_chars": 766, "n_subproofs": 0, "n_tactics": 20, "cyclomatic": 6, "n_automation": 5, "n_rewrites": 5, "n_structural": 4, "automation_only": false, "max_nest...
2
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
/- Copyright Cedar Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
@@ -105,6 +105,10 @@ evaluate x env.request env.entities = .ok v → v.WellFormed env.entities +private theorem value_bool_wf {b : Bool} {es : Entities} : + Value.WellFormed es (Value.prim (.bool b)) +:= by exact Value.WellFormed.prim_wf (by simp only [Prim.WellFormed]) + private theorem value_int_wf {i : 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...